-
Notifications
You must be signed in to change notification settings - Fork 0
/
epi_input_intensity_2.aspx.cs
71 lines (68 loc) · 2.74 KB
/
epi_input_intensity_2.aspx.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
using ClosedXML.Excel;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Web;
using System.Web.Script.Services;
using System.Web.Services;
using System.Web.UI;
using System.Web.UI.WebControls;
public partial class epi_input_intensity_2 : System.Web.UI.Page
{
private const string sFolderInSharePahtTemp = "UploadFiles/intensity_2/Temp/";
private const string sFolderInPathSave = "UploadFiles/intensity_2/File/{0}/";
private const int nIndicator = 6;
private const int nOperationType = 11;
protected void Page_Load(object sender, EventArgs e)
{
}
[WebMethod]
[ScriptMethod(UseHttpGet = false, ResponseFormat = ResponseFormat.Json)]
public static sysGlobalClass.TRetunrLoadData LoadData(string sFacility, string sYear)
{
sysGlobalClass.TRetunrLoadData o = new sysGlobalClass.TRetunrLoadData();
Intensity_Function.IntensityClass ic = new Intensity_Function.IntensityClass();
ic.rt = o;
ic.nIndicator = nIndicator;
ic.nOperationType = nOperationType;
ic.nFacility = SystemFunction.GetIntNullToZero(sFacility);
ic.sYear = sYear;
ic.sFolderInPathSave = sFolderInPathSave;
ic.lstMonth = new List<int>();
o = Intensity_Function.GetLoadData(ic);
return o;
}
[WebMethod]
[ScriptMethod(UseHttpGet = false, ResponseFormat = ResponseFormat.Json)]
public static sysGlobalClass.TRetunrLoadData CreateLinkExport(string sFacility, string sYear)
{
sysGlobalClass.TRetunrLoadData o = new sysGlobalClass.TRetunrLoadData();
Intensity_Function.IntensityClass ic = new Intensity_Function.IntensityClass();
ic.rt = o;
ic.nIndicator = nIndicator;
ic.nOperationType = nOperationType;
ic.nFacility = SystemFunction.GetIntNullToZero(sFacility);
ic.sYear = sYear;
ic.sFolderInPathSave = sFolderInPathSave;
ic.lstMonth = new List<int>();
o = Intensity_Function.CreateLinkExport(ic);
return o;
}
[WebMethod]
[ScriptMethod(UseHttpGet = false, ResponseFormat = ResponseFormat.Json)]
public static sysGlobalClass.TRetunrLoadData SaveData(sysGlobalClass.TRetunrLoadData lst, string sFacility, string sYear)
{
sysGlobalClass.TRetunrLoadData o = new sysGlobalClass.TRetunrLoadData();
Intensity_Function.IntensityClass ic = new Intensity_Function.IntensityClass();
ic.rt = lst;
ic.nIndicator = nIndicator;
ic.nOperationType = nOperationType;
ic.nFacility = SystemFunction.GetIntNullToZero(sFacility);
ic.sYear = sYear;
ic.sFolderInPathSave = sFolderInPathSave;
ic.lstMonth = lst.lstMonth;
o = Intensity_Function.SaveData(ic);
return o;
}
}