Compare commits
153 Commits
latest
...
e01a898db7
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e01a898db7 | ||
|
|
960cc2a554 | ||
| f6018ab02e | |||
|
|
2a8c6920cc | ||
|
|
d24ac73eb6 | ||
|
|
b67c660989 | ||
|
|
b6f7bf5ecd | ||
|
|
d9cde960ea | ||
|
|
a3a35fca78 | ||
|
|
307a33884e | ||
|
|
85b3e08b73 | ||
|
|
42a0f46c26 | ||
|
|
aa6b674ced | ||
|
|
5f44fa4ecb | ||
|
|
33f5fe5c2c | ||
|
|
11d4269f2a | ||
|
|
1cee2dea2f | ||
|
|
5c92b2dcb5 | ||
|
|
13ee711c95 | ||
|
|
e8e6dd5396 | ||
|
|
e5550f59ac | ||
|
|
ad6e2f784f | ||
|
|
a27a6625a4 | ||
|
|
58c6b922b5 | ||
|
|
de2a162353 | ||
|
|
d53fec0c56 | ||
|
|
bf6aa7d102 | ||
|
|
da2936ee0d | ||
|
|
f146dd1c74 | ||
|
|
499df06439 | ||
|
|
5942f73550 | ||
|
|
bb28a07de1 | ||
|
|
ca12ecf690 | ||
|
|
97b006aba9 | ||
|
|
54ecb6cf9c | ||
|
|
351d61ac8c | ||
|
|
de4f5a0e7b | ||
|
|
f4b732087a | ||
|
|
e5491aee7e | ||
|
|
8474291f48 | ||
|
|
913edd07d3 | ||
|
|
44e545bed8 | ||
|
|
47e46da7a9 | ||
|
|
57579b2927 | ||
|
|
2182593a90 | ||
|
|
7206c9858e | ||
|
|
fce87e9159 | ||
|
|
bd223a48ae | ||
|
|
4e25c3a694 | ||
|
|
5ba7919b29 | ||
|
|
3a2f956d02 | ||
|
|
3666713748 | ||
|
|
abc8eba8e8 | ||
|
|
5215337fae | ||
|
|
b2820e7ac7 | ||
|
|
f7cd049397 | ||
|
|
79dbb95213 | ||
|
|
79269514ba | ||
|
|
af9a9c8af5 | ||
|
|
c5370d5128 | ||
|
|
fcbea4a3f2 | ||
|
|
70f29a15e3 | ||
|
|
3459263972 | ||
|
|
d37580b5cb | ||
|
|
deecd47c0b | ||
|
|
d3e7645f85 | ||
|
|
b43aa52b96 | ||
|
|
139d31a770 | ||
|
|
ba2a5b966e | ||
|
|
4c9484d57e | ||
|
|
6fcb0a856a | ||
|
|
e4dd5d42e7 | ||
|
|
8692fa50e6 | ||
|
|
bcf6cb2b14 | ||
|
|
a85294085d | ||
|
|
54c536d2d0 | ||
|
|
79f0834946 | ||
|
|
322e21659d | ||
|
|
f8f5f36140 | ||
|
|
c6309663d8 | ||
|
|
93b0a4385b | ||
|
|
f70f734109 | ||
|
|
b30f940a15 | ||
|
|
0a3bfeef2d | ||
|
|
5441324de9 | ||
|
|
e206bf0efe | ||
|
|
7919b1e39f | ||
|
|
d3700f9327 | ||
|
|
232969d7cd | ||
|
|
28f149b579 | ||
|
|
d7509173f9 | ||
|
|
c7c1a86edf | ||
|
|
7b946457ee | ||
|
|
dc23d87855 | ||
|
|
93726110a4 | ||
|
|
4c94c2e3a7 | ||
|
|
2d6505f1c5 | ||
|
|
e30767101c | ||
|
|
cbddecb9d5 | ||
|
|
86e6717cf9 | ||
|
|
d3f411d2e5 | ||
|
|
ad2149cba1 | ||
|
|
e3fa701ba9 | ||
|
|
670bb37581 | ||
|
|
06f8d47af3 | ||
|
|
63e37bf98d | ||
|
|
1f02279f23 | ||
|
|
9988205756 | ||
|
|
da3c9bf314 | ||
|
|
f7680ffb3e | ||
|
|
0d68171be0 | ||
|
|
c29c95b2e6 | ||
|
|
036f9476e0 | ||
|
|
64e2a64c79 | ||
|
|
941116287e | ||
|
|
08101f4c85 | ||
|
|
a8a3ca622f | ||
|
|
5d6843f33e | ||
|
|
edf731702c | ||
|
|
80bbf8ca17 | ||
|
|
48f918060d | ||
|
|
8ade6577aa | ||
|
|
7a1b6be512 | ||
|
|
b078d3ff42 | ||
|
|
1080400c34 | ||
|
|
fb739a2307 | ||
|
|
00d5f86d10 | ||
|
|
36bf183c4a | ||
|
|
e5e9e6614b | ||
|
|
9fd0c16fbf | ||
|
|
7132b7c4ed | ||
|
|
171ec756e4 | ||
|
|
0967dd97da | ||
|
|
71f93ff704 | ||
|
|
358938b6a4 | ||
|
|
fda5ad5da0 | ||
|
|
3444d901c5 | ||
|
|
8be15fc9c7 | ||
|
|
bc55d24121 | ||
|
|
6e389605d9 | ||
|
|
1176c3a847 | ||
|
|
cfce43201d | ||
|
|
28a34ee269 | ||
|
|
8eaf796ac4 | ||
|
|
e39ab67be8 | ||
|
|
9f0a9c41aa | ||
|
|
2b2461f8b3 | ||
|
|
557e2dd8f5 | ||
|
|
6e74a37a4d | ||
|
|
dd7524e9a1 | ||
|
|
cba2b7b99e | ||
|
|
8dc85bc2cf | ||
|
|
58ebed2c04 |
35
.drone.yml
Normal file
35
.drone.yml
Normal file
@@ -0,0 +1,35 @@
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: default
|
||||
|
||||
|
||||
globals:
|
||||
- &docker_creds
|
||||
username:
|
||||
from_secret: gitea_username
|
||||
password:
|
||||
from_secret: gitea_password
|
||||
|
||||
steps:
|
||||
- name: API # building the API docker image
|
||||
pull: if-not-exists
|
||||
image: plugins/docker
|
||||
settings:
|
||||
dockerfile: Dockerfile.dev
|
||||
repo: gitea.71dev.com/kamonwantaengsuk/rmutr_report
|
||||
tags: latest
|
||||
registry: "gitea.71dev.com"
|
||||
#dry_run: true
|
||||
debug: false
|
||||
<<: *docker_creds
|
||||
- name: deploy
|
||||
pull: if-not-exists
|
||||
image: sinlead/drone-kubectl
|
||||
settings:
|
||||
kubernetes_server: "https://202.129.205.205:6443"
|
||||
kubernetes_cert:
|
||||
from_secret: kube_ca_certificate
|
||||
kubernetes_token:
|
||||
from_secret: kube_token
|
||||
commands:
|
||||
- kubectl --insecure-skip-tls-verify --namespace=rmutr rollout restart deployment/rmutr-report
|
||||
File diff suppressed because it is too large
Load Diff
@@ -29,42 +29,42 @@ namespace rmutr_report.Controllers
|
||||
ws.Range("A1:M1").Style.Alignment.WrapText = true;
|
||||
ws.Range("A1:M1").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Range("A1:M1").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell("A1").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("A1").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("A1").Style.Font.FontSize = 25;
|
||||
ws.Range("A1:N1").Style.Font.Bold = true;
|
||||
ws.Cell("N1").Value = "แบบ ง.6";
|
||||
ws.Cell("N1").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("N1").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell("N1").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("N1").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("N1").Style.Font.FontSize = 14;
|
||||
ws.Cell("N1").Style.Font.Bold = true;
|
||||
ws.Range("A2:D2").Merge().Value = "หน่วยงาน "+ _calculation_excess_tuition_fee.agency;
|
||||
ws.Cell("A2").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("A2").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("A2").Style.Font.FontSize = 14;
|
||||
ws.Cell("A2").Style.Font.Bold = true;
|
||||
ws.Cell("A2").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("A2").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Range("E2:G2").Merge().Value = "พื้นที่ "+ _calculation_excess_tuition_fee.area;
|
||||
ws.Cell("E2").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("E2").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("E2").Style.Font.FontSize = 14;
|
||||
ws.Cell("E2").Style.Font.Bold = true;
|
||||
ws.Cell("E2").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("E2").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Range("A3:G3").Merge().Value = "ผลผลิต "+ _calculation_excess_tuition_fee.product;
|
||||
ws.Cell("A3").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("A3").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("A3").Style.Font.FontSize = 14;
|
||||
ws.Cell("A3").Style.Font.Bold = true;
|
||||
ws.Cell("A3").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("A3").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Range("A5:A6").Merge().Value = "ลำดับที่";
|
||||
ws.Cell("A5").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("A5").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("A5").Style.Font.FontSize = 14;
|
||||
ws.Cell("A5").Style.Font.Bold = true;
|
||||
ws.Cell("A5").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("A5").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Range("A5:A6").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Range("B5:C6").Merge().Value = "ชื่อ - สกุล (1)";
|
||||
ws.Cell("B5").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("B5").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("B5").Style.Font.FontSize = 14;
|
||||
ws.Cell("B5").Style.Font.Bold = true;
|
||||
ws.Cell("B5").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
@@ -72,7 +72,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Range("B5:C6").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
|
||||
ws.Range("D5:D6").Merge().Value = "ตำแหน่ง (2)";
|
||||
ws.Cell("D5").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("D5").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("D5").Style.Font.FontSize = 14;
|
||||
ws.Cell("D5").Style.Font.Bold = true;
|
||||
ws.Cell("D5").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
@@ -80,7 +80,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Range("D5:D6").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
|
||||
ws.Range("E5:E6").Merge().Value = "ประเภทบุคลากร (3)";
|
||||
ws.Cell("E5").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("E5").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("E5").Style.Font.FontSize = 14;
|
||||
ws.Cell("E5").Style.Font.Bold = true;
|
||||
ws.Cell("E5").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
@@ -89,7 +89,7 @@ namespace rmutr_report.Controllers
|
||||
|
||||
ws.Range("F5:H5").Merge().Value = "จำนวนชั่วโมงที่สอน / 1 ภาคการศึกษา "+_calculation_excess_tuition_fee.academic_semester_name_th1+
|
||||
" / "+" "+_calculation_excess_tuition_fee.academic_year_name_th1+")";
|
||||
ws.Cell("F5").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("F5").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("F5").Style.Font.FontSize = 14;
|
||||
ws.Cell("F5").Style.Font.Bold = true;
|
||||
ws.Cell("F5").Style.Alignment.WrapText = true;
|
||||
@@ -98,7 +98,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Range("F5:H5").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
|
||||
ws.Cell("F6").Value = "จำนวนชั่วโมงที่สอนตามภาระงานแต่ละประเภท (ตามเกณฑ์) (4)";
|
||||
ws.Cell("F6").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("F6").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("F6").Style.Font.FontSize = 14;
|
||||
ws.Cell("F6").Style.Font.Bold = true;
|
||||
ws.Cell("F6").Style.Alignment.WrapText = true;
|
||||
@@ -107,7 +107,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell("F6").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
|
||||
ws.Cell("G6").Value = "จำนวนชั่วโมงที่สอนจริงตามภาระงานแต่ละประเภท (5)";
|
||||
ws.Cell("G6").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("G6").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("G6").Style.Font.FontSize = 14;
|
||||
ws.Cell("G6").Style.Font.Bold = true;
|
||||
ws.Cell("G6").Style.Alignment.WrapText = true;
|
||||
@@ -116,7 +116,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell("G6").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
|
||||
ws.Cell("H6").Value = "ผลต่าง ระหว่าง (5) - (4) = (6)";
|
||||
ws.Cell("H6").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("H6").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("H6").Style.Font.FontSize = 14;
|
||||
ws.Cell("H6").Style.Font.Bold = true;
|
||||
ws.Cell("H6").Style.Alignment.WrapText = true;
|
||||
@@ -125,7 +125,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell("H6").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
|
||||
ws.Range("I5:I6").Merge().Value = "อัตราค่าสอน(400) x ( 6 ) = (7)";
|
||||
ws.Cell("I5").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("I5").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("I5").Style.Font.FontSize = 14;
|
||||
ws.Cell("I5").Style.Font.Bold = true;
|
||||
ws.Cell("I5").Style.Alignment.WrapText = true;
|
||||
@@ -135,7 +135,7 @@ namespace rmutr_report.Controllers
|
||||
|
||||
ws.Range("J5:L5").Merge().Value = "จำนวนชั่วโมงที่สอน / 1 ภาคการศึกษา "+_calculation_excess_tuition_fee.academic_semester_name_th2+
|
||||
" / "+" "+_calculation_excess_tuition_fee.academic_year_name_th2+")";
|
||||
ws.Cell("J5").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("J5").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("J5").Style.Font.FontSize = 14;
|
||||
ws.Cell("J5").Style.Font.Bold = true;
|
||||
ws.Cell("J5").Style.Alignment.WrapText = true;
|
||||
@@ -144,7 +144,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Range("J5:L5").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
|
||||
ws.Cell("J6").Value = "จำนวนชั่วโมงที่สอนตามภาระงานแต่ละประเภท (ตามเกณฑ์) (8)";
|
||||
ws.Cell("J6").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("J6").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("J6").Style.Font.FontSize = 14;
|
||||
ws.Cell("J6").Style.Font.Bold = true;
|
||||
ws.Cell("J6").Style.Alignment.WrapText = true;
|
||||
@@ -153,7 +153,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell("J6").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
|
||||
ws.Cell("K6").Value = "จำนวนชั่วโมงที่สอนจริงตามภาระงานแต่ละประเภท (9)";
|
||||
ws.Cell("K6").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("K6").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("K6").Style.Font.FontSize = 14;
|
||||
ws.Cell("K6").Style.Font.Bold = true;
|
||||
ws.Cell("K6").Style.Alignment.WrapText = true;
|
||||
@@ -162,7 +162,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell("K6").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
|
||||
ws.Cell("L6").Value = "ผลต่าง ระหว่าง (9) - (8) = (10)";
|
||||
ws.Cell("L6").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("L6").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("L6").Style.Font.FontSize = 14;
|
||||
ws.Cell("L6").Style.Font.Bold = true;
|
||||
ws.Cell("L6").Style.Alignment.WrapText = true;
|
||||
@@ -171,7 +171,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell("L6").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
|
||||
ws.Range("M5:M6").Merge().Value = "อัตราค่าสอน(400) x (10) = (11)";
|
||||
ws.Cell("M5").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("M5").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("M5").Style.Font.FontSize = 14;
|
||||
ws.Cell("M5").Style.Font.Bold = true;
|
||||
ws.Cell("M5").Style.Alignment.WrapText = true;
|
||||
@@ -180,7 +180,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Range("M5:M6").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
|
||||
ws.Range("N5:N6").Merge().Value = "รวมงบประมาณ (7) + (11) = (12)";
|
||||
ws.Cell("N5").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("N5").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("N5").Style.Font.FontSize = 14;
|
||||
ws.Cell("N5").Style.Font.Bold = true;
|
||||
ws.Cell("N5").Style.Alignment.WrapText = true;
|
||||
@@ -266,7 +266,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell(row, 14).Value = expenses.teach_rate_1 + expenses.teach_rate_2;
|
||||
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 14)).Style.Font.FontName =
|
||||
"TH Sarabun New";
|
||||
"TH SarabunPSK";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 14)).Style.Font.FontSize = 14;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 14)).Style.Alignment.WrapText = true;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 14)).Style.Alignment.Vertical =
|
||||
@@ -306,7 +306,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell(row, 14).Value = sum13;
|
||||
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 14)).Style.Font.FontName =
|
||||
"TH Sarabun New";
|
||||
"TH SarabunPSK";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 14)).Style.Font.FontSize = 14;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 14)).Style.Alignment.WrapText = true;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 14)).Style.Alignment.Vertical =
|
||||
|
||||
@@ -137,21 +137,21 @@ namespace rmutr_report.Controllers
|
||||
ws.Column(22).Width = 10;
|
||||
ws.Column(23).Width = 10;
|
||||
//ws.Range(ws.Cell(1, 1), ws.Cell(1, 30)).Style.Alignment.WrapText = true;
|
||||
ws.Column(1).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Column(1).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Column(1).Style.Font.FontSize = 16;
|
||||
ws.Column(2).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Column(2).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Column(2).Style.Font.FontSize = 16;
|
||||
ws.Column(3).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Column(3).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Column(3).Style.Font.FontSize = 16;
|
||||
ws.Column(4).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Column(4).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Column(4).Style.Font.FontSize = 16;
|
||||
ws.Column(5).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Column(5).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Column(5).Style.Font.FontSize = 16;
|
||||
ws.Column(6).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Column(6).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Column(6).Style.Font.FontSize = 16;
|
||||
ws.Column(7).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Column(7).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Column(7).Style.Font.FontSize = 16;
|
||||
ws.Range("H3:W3").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Range("H3:W3").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Range("H3:W3").Style.Font.FontSize = 16;
|
||||
int col = 8;
|
||||
int rowhead = 3;
|
||||
@@ -168,7 +168,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell(rowhead, col).Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell(rowhead, col).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell(rowhead, col).Style.Border.RightBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell(rowhead,col).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell(rowhead,col).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell(rowhead,col).Style.Font.FontSize = 16;
|
||||
ws.Cell(rowhead,col).Style.Alignment.WrapText = true;
|
||||
col++;
|
||||
@@ -179,7 +179,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Range("H2").Value = "แผนปี "+_kpi.plan_year.Substring(2, 2)+" หน่วยงาน";
|
||||
ws.Cell("H2").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell("H2").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("H2").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("H2").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("H2").Style.Font.SetBold().Font.FontSize = 16;
|
||||
ws.Cell("H2").Style.Alignment.WrapText = true;
|
||||
ws.Cell("H2").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
@@ -196,7 +196,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Range("H2:I2").Merge().Value = "แผนปี "+_kpi.plan_year.Substring(2, 2)+" หน่วยงาน";
|
||||
ws.Cell("H2").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell("H2").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("H2").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("H2").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("H2").Style.Font.SetBold().Font.FontSize = 16;
|
||||
ws.Cell("H2").Style.Alignment.WrapText = true;
|
||||
ws.Cell("I2").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
@@ -213,7 +213,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Range("H2:J2").Merge().Value = "แผนปี "+_kpi.plan_year.Substring(2, 2)+" หน่วยงาน";
|
||||
ws.Cell("H2").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell("H2").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("H2").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("H2").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("H2").Style.Font.SetBold().Font.FontSize = 16;
|
||||
ws.Cell("H2").Style.Alignment.WrapText = true;
|
||||
ws.Cell("J2").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
@@ -230,7 +230,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Range("H2:K2").Merge().Value = "แผนปี "+_kpi.plan_year.Substring(2, 2)+" หน่วยงาน";
|
||||
ws.Cell("H2").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell("H2").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("H2").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("H2").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("H2").Style.Font.SetBold().Font.FontSize = 16;
|
||||
ws.Cell("H2").Style.Alignment.WrapText = true;
|
||||
ws.Cell("K2").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
@@ -246,7 +246,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Range("H2:L2").Merge().Value = "แผนปี "+_kpi.plan_year.Substring(2, 2)+" หน่วยงาน";
|
||||
ws.Cell("H2").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell("H2").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("H2").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("H2").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("H2").Style.Font.SetBold().Font.FontSize = 16;
|
||||
ws.Cell("H2").Style.Alignment.WrapText = true;
|
||||
ws.Cell("L2").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
@@ -262,7 +262,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Range("H2:M2").Merge().Value = "แผนปี "+_kpi.plan_year.Substring(2, 2)+" หน่วยงาน";
|
||||
ws.Cell("H2").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell("H2").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("H2").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("H2").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("H2").Style.Font.SetBold().Font.FontSize = 16;
|
||||
ws.Cell("H2").Style.Alignment.WrapText = true;
|
||||
ws.Cell("M2").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
@@ -280,7 +280,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Range("H2:N2").Merge().Value = "แผนปี "+_kpi.plan_year.Substring(2, 2)+" หน่วยงาน";
|
||||
ws.Cell("H2").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell("H2").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("H2").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("H2").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("H2").Style.Font.SetBold().Font.FontSize = 16;
|
||||
ws.Cell("H2").Style.Alignment.WrapText = true;
|
||||
ws.Cell("N2").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
@@ -296,7 +296,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Range("H2:O2").Merge().Value = "แผนปี "+_kpi.plan_year.Substring(2, 2)+" หน่วยงาน";
|
||||
ws.Cell("H2").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell("H2").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("H2").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("H2").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("H2").Style.Font.SetBold().Font.FontSize = 16;
|
||||
ws.Cell("H2").Style.Alignment.WrapText = true;
|
||||
ws.Cell("O2").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
@@ -312,7 +312,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Range("H2:P2").Merge().Value = "แผนปี "+_kpi.plan_year.Substring(2, 2)+" หน่วยงาน";
|
||||
ws.Cell("H2").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell("H2").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("H2").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("H2").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("H2").Style.Font.SetBold().Font.FontSize = 16;
|
||||
ws.Cell("H2").Style.Alignment.WrapText = true;
|
||||
ws.Cell("P2").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
@@ -328,7 +328,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Range("H2:Q2").Merge().Value = "แผนปี "+_kpi.plan_year.Substring(2, 2)+" หน่วยงาน";
|
||||
ws.Cell("H2").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell("H2").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("H2").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("H2").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("H2").Style.Font.SetBold().Font.FontSize = 16;
|
||||
ws.Cell("H2").Style.Alignment.WrapText = true;
|
||||
ws.Cell("Q2").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
@@ -345,7 +345,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Range("H2:R2").Merge().Value = "แผนปี "+_kpi.plan_year.Substring(2, 2)+" หน่วยงาน";
|
||||
ws.Cell("H2").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell("H2").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("H2").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("H2").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("H2").Style.Font.SetBold().Font.FontSize = 16;
|
||||
ws.Cell("H2").Style.Alignment.WrapText = true;
|
||||
ws.Cell("R2").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
@@ -361,7 +361,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Range("H2:S2").Merge().Value = "แผนปี "+_kpi.plan_year.Substring(2, 2)+" หน่วยงาน";
|
||||
ws.Cell("H2").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell("H2").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("H2").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("H2").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("H2").Style.Font.SetBold().Font.FontSize = 16;
|
||||
ws.Cell("H2").Style.Alignment.WrapText = true;
|
||||
ws.Cell("S2").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
@@ -377,7 +377,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Range("H2:T2").Merge().Value = "แผนปี "+_kpi.plan_year.Substring(2, 2)+" หน่วยงาน";
|
||||
ws.Cell("H2").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell("H2").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("H2").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("H2").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("H2").Style.Font.SetBold().Font.FontSize = 16;
|
||||
ws.Cell("H2").Style.Alignment.WrapText = true;
|
||||
ws.Cell("T2").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
@@ -393,7 +393,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Range("H2:U2").Merge().Value = "แผนปี "+_kpi.plan_year.Substring(2, 2)+" หน่วยงาน";
|
||||
ws.Cell("H2").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell("H2").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("H2").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("H2").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("H2").Style.Font.SetBold().Font.FontSize = 16;
|
||||
ws.Cell("H2").Style.Alignment.WrapText = true;
|
||||
ws.Cell("U2").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
@@ -409,7 +409,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Range("H2:V2").Merge().Value = "แผนปี "+_kpi.plan_year.Substring(2, 2)+" หน่วยงาน";
|
||||
ws.Cell("H2").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell("H2").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("H2").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("H2").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("H2").Style.Font.SetBold().Font.FontSize = 16;
|
||||
ws.Cell("H2").Style.Alignment.WrapText = true;
|
||||
ws.Cell("V2").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
@@ -425,7 +425,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Range("H2:W2").Merge().Value = "แผนปี "+_kpi.plan_year.Substring(2, 2)+" หน่วยงาน";
|
||||
ws.Cell("H2").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell("H2").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("H2").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("H2").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("H2").Style.Font.SetBold().Font.FontSize = 16;
|
||||
ws.Cell("H2").Style.Alignment.WrapText = true;
|
||||
ws.Cell("W2").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
@@ -441,7 +441,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Range("H2:X2").Merge().Value = "แผนปี "+_kpi.plan_year.Substring(2, 2)+" หน่วยงาน";
|
||||
ws.Cell("H2").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell("H2").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("H2").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("H2").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("H2").Style.Font.SetBold().Font.FontSize = 16;
|
||||
ws.Cell("H2").Style.Alignment.WrapText = true;
|
||||
ws.Cell("X2").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
@@ -459,7 +459,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Range("H2:Y2").Merge().Value = "แผนปี "+_kpi.plan_year.Substring(2, 2)+" หน่วยงาน";
|
||||
ws.Cell("H2").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell("H2").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("H2").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("H2").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("H2").Style.Font.SetBold().Font.FontSize = 16;
|
||||
ws.Cell("H2").Style.Alignment.WrapText = true;
|
||||
ws.Cell("Y2").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
@@ -477,7 +477,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Range("H2:Z2").Merge().Value = "แผนปี "+_kpi.plan_year.Substring(2, 2)+" หน่วยงาน";
|
||||
ws.Cell("H2").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell("H2").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("H2").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("H2").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("H2").Style.Font.SetBold().Font.FontSize = 16;
|
||||
ws.Cell("H2").Style.Alignment.WrapText = true;
|
||||
ws.Cell("Z2").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
@@ -495,7 +495,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Range("H2:AA2").Merge().Value = "แผนปี "+_kpi.plan_year.Substring(2, 2)+" หน่วยงาน";
|
||||
ws.Cell("H2").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell("H2").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("H2").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("H2").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("H2").Style.Font.SetBold().Font.FontSize = 16;
|
||||
ws.Cell("H2").Style.Alignment.WrapText = true;
|
||||
ws.Cell("AA2").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
@@ -759,17 +759,17 @@ namespace rmutr_report.Controllers
|
||||
foreach (var i in data1.agencys)
|
||||
{
|
||||
ws.Cell(row, col2).Value = i.value;
|
||||
ws.Cell(row, col2).Style.Alignment.SetTextRotation(90);
|
||||
//ws.Cell(row, col2).Style.Alignment.SetTextRotation(90);
|
||||
ws.Cell(row, col2).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell(row, col2).Style.Border.RightBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell(row,col2).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell(row,col2).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell(row,col2).Style.Font.FontSize = 16;
|
||||
ws.Cell(row,col2).Style.Alignment.WrapText = true;
|
||||
col2++;
|
||||
}
|
||||
ws.Range(ws.Cell(row, 1),ws.Cell(row,27)).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Range(ws.Cell(row, 1),ws.Cell(row,27)).Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Range(ws.Cell(row,8),ws.Cell(row,27)).Style.Alignment.SetTextRotation(90);
|
||||
//ws.Range(ws.Cell(row,8),ws.Cell(row,27)).Style.Alignment.SetTextRotation(90);
|
||||
ws.Range(ws.Cell(row,8),ws.Cell(row,27)).Style.Alignment.WrapText = true;
|
||||
|
||||
ws.Cell(row, 1).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
@@ -799,7 +799,7 @@ namespace rmutr_report.Controllers
|
||||
// ws.Cell(row, 23).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Range(ws.Cell(row, 1),ws.Cell(row,27)).Style.Alignment.WrapText = true;
|
||||
|
||||
ws.Range(ws.Cell(row, 1),ws.Cell(row,27)).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Range(ws.Cell(row, 1),ws.Cell(row,27)).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Range(ws.Cell(row, 1),ws.Cell(row,27)).Style.Font.FontSize = 16;
|
||||
row++;
|
||||
rowno++;
|
||||
|
||||
@@ -74,7 +74,7 @@ namespace rmutr_report.Controllers
|
||||
// }
|
||||
// ws.Range(ws.Cell(rowh, col1), ws.Cell(rowh, col1)).Merge().Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
// ws.Range(ws.Cell(rowh, col1), ws.Cell(rowh, col1)).Merge().Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
// ws.Range(ws.Cell(rowh, col1), ws.Cell(rowh, col1)).Merge().Style.Font.FontName = "TH Sarabun New";
|
||||
// ws.Range(ws.Cell(rowh, col1), ws.Cell(rowh, col1)).Merge().Style.Font.FontName = "TH SarabunPSK";
|
||||
// ws.Range(ws.Cell(rowh, col1), ws.Cell(rowh, col1)).Merge().Style.Font.SetBold().Font.FontSize = 16;
|
||||
// col1++;
|
||||
// ws.Cell("H3").Value = _kpi.text1;
|
||||
@@ -146,21 +146,21 @@ namespace rmutr_report.Controllers
|
||||
ws.Column(22).Width = 10;
|
||||
ws.Column(23).Width = 10;
|
||||
//ws.Range(ws.Cell(1, 1), ws.Cell(1, 30)).Style.Alignment.WrapText = true;
|
||||
ws.Column(1).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Column(1).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Column(1).Style.Font.FontSize = 16;
|
||||
ws.Column(2).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Column(2).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Column(2).Style.Font.FontSize = 16;
|
||||
ws.Column(3).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Column(3).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Column(3).Style.Font.FontSize = 16;
|
||||
ws.Column(4).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Column(4).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Column(4).Style.Font.FontSize = 16;
|
||||
ws.Column(5).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Column(5).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Column(5).Style.Font.FontSize = 16;
|
||||
ws.Column(6).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Column(6).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Column(6).Style.Font.FontSize = 16;
|
||||
ws.Column(7).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Column(7).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Column(7).Style.Font.FontSize = 16;
|
||||
ws.Range("H3:W3").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Range("H3:W3").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Range("H3:W3").Style.Font.FontSize = 16;
|
||||
int col = 8;
|
||||
int rowhead = 3;
|
||||
@@ -180,7 +180,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell(rowhead, col).Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell(rowhead, col).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell(rowhead, col).Style.Border.RightBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell(rowhead,col).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell(rowhead,col).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell(rowhead,col).Style.Font.FontSize = 16;
|
||||
ws.Cell(rowhead,col).Style.Alignment.WrapText = true;
|
||||
col++;
|
||||
@@ -191,7 +191,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Range("H2").Value = "แผนปี "+_kpi.plan_year.Substring(2, 2)+" หน่วยงาน";
|
||||
ws.Cell("H2").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell("H2").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("H2").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("H2").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("H2").Style.Font.SetBold().Font.FontSize = 16;
|
||||
ws.Cell("H2").Style.Alignment.WrapText = true;
|
||||
ws.Cell("H2").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
@@ -206,7 +206,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Range("H2:I2").Merge().Value = "แผนปี "+_kpi.plan_year.Substring(2, 2)+" หน่วยงาน";
|
||||
ws.Cell("H2").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell("H2").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("H2").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("H2").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("H2").Style.Font.SetBold().Font.FontSize = 16;
|
||||
ws.Cell("H2").Style.Alignment.WrapText = true;
|
||||
ws.Cell("I2").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
@@ -221,7 +221,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Range("H2:J2").Merge().Value = "แผนปี "+_kpi.plan_year.Substring(2, 2)+" หน่วยงาน";
|
||||
ws.Cell("H2").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell("H2").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("H2").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("H2").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("H2").Style.Font.SetBold().Font.FontSize = 16;
|
||||
ws.Cell("H2").Style.Alignment.WrapText = true;
|
||||
ws.Cell("J2").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
@@ -236,7 +236,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Range("H2:K2").Merge().Value = "แผนปี "+_kpi.plan_year.Substring(2, 2)+" หน่วยงาน";
|
||||
ws.Cell("H2").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell("H2").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("H2").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("H2").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("H2").Style.Font.SetBold().Font.FontSize = 16;
|
||||
ws.Cell("H2").Style.Alignment.WrapText = true;
|
||||
ws.Cell("K2").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
@@ -251,7 +251,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Range("H2:L2").Merge().Value = "แผนปี "+_kpi.plan_year.Substring(2, 2)+" หน่วยงาน";
|
||||
ws.Cell("H2").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell("H2").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("H2").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("H2").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("H2").Style.Font.SetBold().Font.FontSize = 16;
|
||||
ws.Cell("H2").Style.Alignment.WrapText = true;
|
||||
ws.Cell("L2").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
@@ -266,7 +266,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Range("H2:M2").Merge().Value = "แผนปี "+_kpi.plan_year.Substring(2, 2)+" หน่วยงาน";
|
||||
ws.Cell("H2").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell("H2").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("H2").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("H2").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("H2").Style.Font.SetBold().Font.FontSize = 16;
|
||||
ws.Cell("H2").Style.Alignment.WrapText = true;
|
||||
ws.Cell("M2").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
@@ -281,7 +281,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Range("H2:N2").Merge().Value = "แผนปี "+_kpi.plan_year.Substring(2, 2)+" หน่วยงาน";
|
||||
ws.Cell("H2").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell("H2").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("H2").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("H2").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("H2").Style.Font.SetBold().Font.FontSize = 16;
|
||||
ws.Cell("H2").Style.Alignment.WrapText = true;
|
||||
ws.Cell("N2").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
@@ -296,7 +296,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Range("H2:O2").Merge().Value = "แผนปี "+_kpi.plan_year.Substring(2, 2)+" หน่วยงาน";
|
||||
ws.Cell("H2").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell("H2").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("H2").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("H2").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("H2").Style.Font.SetBold().Font.FontSize = 16;
|
||||
ws.Cell("H2").Style.Alignment.WrapText = true;
|
||||
ws.Cell("O2").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
@@ -311,7 +311,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Range("H2:P2").Merge().Value = "แผนปี "+_kpi.plan_year.Substring(2, 2)+" หน่วยงาน";
|
||||
ws.Cell("H2").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell("H2").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("H2").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("H2").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("H2").Style.Font.SetBold().Font.FontSize = 16;
|
||||
ws.Cell("H2").Style.Alignment.WrapText = true;
|
||||
ws.Cell("P2").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
@@ -326,7 +326,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Range("H2:Q2").Merge().Value = "แผนปี "+_kpi.plan_year.Substring(2, 2)+" หน่วยงาน";
|
||||
ws.Cell("H2").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell("H2").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("H2").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("H2").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("H2").Style.Font.SetBold().Font.FontSize = 16;
|
||||
ws.Cell("H2").Style.Alignment.WrapText = true;
|
||||
ws.Cell("Q2").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
@@ -342,7 +342,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Range("H2:R2").Merge().Value = "แผนปี "+_kpi.plan_year.Substring(2, 2)+" หน่วยงาน";
|
||||
ws.Cell("H2").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell("H2").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("H2").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("H2").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("H2").Style.Font.SetBold().Font.FontSize = 16;
|
||||
ws.Cell("H2").Style.Alignment.WrapText = true;
|
||||
ws.Cell("R2").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
@@ -357,7 +357,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Range("H2:S2").Merge().Value = "แผนปี "+_kpi.plan_year.Substring(2, 2)+" หน่วยงาน";
|
||||
ws.Cell("H2").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell("H2").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("H2").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("H2").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("H2").Style.Font.SetBold().Font.FontSize = 16;
|
||||
ws.Cell("H2").Style.Alignment.WrapText = true;
|
||||
ws.Cell("S2").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
@@ -372,7 +372,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Range("H2:T2").Merge().Value = "แผนปี "+_kpi.plan_year.Substring(2, 2)+" หน่วยงาน";
|
||||
ws.Cell("H2").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell("H2").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("H2").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("H2").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("H2").Style.Font.SetBold().Font.FontSize = 16;
|
||||
ws.Cell("H2").Style.Alignment.WrapText = true;
|
||||
ws.Cell("T2").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
@@ -387,7 +387,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Range("H2:U2").Merge().Value = "แผนปี "+_kpi.plan_year.Substring(2, 2)+" หน่วยงาน";
|
||||
ws.Cell("H2").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell("H2").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("H2").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("H2").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("H2").Style.Font.SetBold().Font.FontSize = 16;
|
||||
ws.Cell("H2").Style.Alignment.WrapText = true;
|
||||
ws.Cell("U2").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
@@ -402,7 +402,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Range("H2:V2").Merge().Value = "แผนปี "+_kpi.plan_year.Substring(2, 2)+" หน่วยงาน";
|
||||
ws.Cell("H2").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell("H2").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("H2").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("H2").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("H2").Style.Font.SetBold().Font.FontSize = 16;
|
||||
ws.Cell("H2").Style.Alignment.WrapText = true;
|
||||
ws.Cell("V2").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
@@ -417,7 +417,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Range("H2:W2").Merge().Value = "แผนปี "+_kpi.plan_year.Substring(2, 2)+" หน่วยงาน";
|
||||
ws.Cell("H2").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell("H2").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("H2").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("H2").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("H2").Style.Font.SetBold().Font.FontSize = 16;
|
||||
ws.Cell("H2").Style.Alignment.WrapText = true;
|
||||
ws.Cell("W2").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
@@ -432,7 +432,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Range("H2:X2").Merge().Value = "แผนปี "+_kpi.plan_year.Substring(2, 2)+" หน่วยงาน";
|
||||
ws.Cell("H2").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell("H2").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("H2").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("H2").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("H2").Style.Font.SetBold().Font.FontSize = 16;
|
||||
ws.Cell("H2").Style.Alignment.WrapText = true;
|
||||
ws.Cell("X2").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
@@ -447,7 +447,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Range("H2:Y2").Merge().Value = "แผนปี "+_kpi.plan_year.Substring(2, 2)+" หน่วยงาน";
|
||||
ws.Cell("H2").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell("H2").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("H2").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("H2").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("H2").Style.Font.SetBold().Font.FontSize = 16;
|
||||
ws.Cell("H2").Style.Alignment.WrapText = true;
|
||||
ws.Cell("Y2").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
@@ -462,7 +462,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Range("H2:Z2").Merge().Value = "แผนปี "+_kpi.plan_year.Substring(2, 2)+" หน่วยงาน";
|
||||
ws.Cell("H2").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell("H2").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("H2").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("H2").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("H2").Style.Font.SetBold().Font.FontSize = 16;
|
||||
ws.Cell("H2").Style.Alignment.WrapText = true;
|
||||
ws.Cell("Z2").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
@@ -477,7 +477,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Range("H2:AA2").Merge().Value = "แผนปี "+_kpi.plan_year.Substring(2, 2)+" หน่วยงาน";
|
||||
ws.Cell("H2").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell("H2").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("H2").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("H2").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("H2").Style.Font.SetBold().Font.FontSize = 16;
|
||||
ws.Cell("H2").Style.Alignment.WrapText = true;
|
||||
ws.Cell("AA2").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
@@ -848,7 +848,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell(row, col2).Style.Alignment.SetTextRotation(90);
|
||||
ws.Cell(row, col2).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell(row, col2).Style.Border.RightBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell(row,col2).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell(row,col2).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell(row,col2).Style.Font.FontSize = 16;
|
||||
ws.Cell(row, col2).Style.Alignment.WrapText = true;
|
||||
col2++;
|
||||
@@ -900,7 +900,7 @@ namespace rmutr_report.Controllers
|
||||
// ws.Cell(row, 23).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
//ws.Range(ws.Cell(row, 1),ws.Cell(row,27)).Style.Alignment.WrapText = true;
|
||||
|
||||
ws.Range(ws.Cell(row, 1),ws.Cell(row,27)).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Range(ws.Cell(row, 1),ws.Cell(row,27)).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Range(ws.Cell(row, 1),ws.Cell(row,27)).Style.Font.FontSize = 16;
|
||||
|
||||
row++;
|
||||
|
||||
@@ -71,18 +71,18 @@ namespace rmutr_report.Controllers
|
||||
// ws.Range("A1:D1").Style.Alignment.WrapText = true;
|
||||
// ws.Range("A1:D1").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
// ws.Range("A1:D1").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
// ws.Cell("A1").Style.Font.FontName = "TH Sarabun New";
|
||||
// ws.Cell("A1").Style.Font.FontName = "TH SarabunPSK";
|
||||
// ws.Cell("A1").Style.Font.FontSize = 14;
|
||||
// ws.Range("A1:D1").Style.Font.Bold = true;
|
||||
// ws.Range("A2:D2").Merge().Value = "ผลผลิต " + _operating_expenses.product+ " หน่วยงาน " + _operating_expenses.agency + " พื้นที่ "+_operating_expenses.area;
|
||||
// ws.Range("A2:D2").Style.Alignment.WrapText = true;
|
||||
// ws.Range("A2:D2").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
// ws.Range("A2:D2").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
// ws.Cell("A2").Style.Font.FontName = "TH Sarabun New";
|
||||
// ws.Cell("A2").Style.Font.FontName = "TH SarabunPSK";
|
||||
// ws.Cell("A2").Style.Font.FontSize = 14;
|
||||
// ws.Range("A2:D2").Style.Font.Bold = true;
|
||||
// ws.Cell("D3").Value = "หน่วย : "+ _operating_expenses.total_amount +" บาท";
|
||||
// ws.Cell("D3").Style.Font.FontName = "TH Sarabun New";
|
||||
// ws.Cell("D3").Style.Font.FontName = "TH SarabunPSK";
|
||||
// ws.Cell("D3").Style.Font.FontSize = 14;
|
||||
// ws.Cell("D3").Style.Font.Bold = true;
|
||||
// ws.Cell("D3").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Right;
|
||||
@@ -90,7 +90,7 @@ namespace rmutr_report.Controllers
|
||||
// //ws.Cell("D3").DataType = XLDataType.Number;
|
||||
// ws.Cell("D3").Style.NumberFormat.NumberFormatId = 2;
|
||||
// ws.Cell("A4").Value = "ลำดับที่";
|
||||
// ws.Cell("A4").Style.Font.FontName = "TH Sarabun New";
|
||||
// ws.Cell("A4").Style.Font.FontName = "TH SarabunPSK";
|
||||
// ws.Cell("A4").Style.Font.FontSize = 14;
|
||||
// ws.Cell("A4").Style.Font.Bold = true;
|
||||
// ws.Cell("A4").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
@@ -100,7 +100,7 @@ namespace rmutr_report.Controllers
|
||||
// ws.Cell("A5").Style.Border.TopBorder = XLBorderStyleValues.Thin;
|
||||
// ws.Cell("A5").Style.Border.RightBorder = XLBorderStyleValues.Thin;
|
||||
// ws.Cell("B4").Value = "งบรายจ่าย";
|
||||
// ws.Cell("B4").Style.Font.FontName = "TH Sarabun New";
|
||||
// ws.Cell("B4").Style.Font.FontName = "TH SarabunPSK";
|
||||
// ws.Cell("B4").Style.Font.FontSize = 14;
|
||||
// ws.Cell("B4").Style.Font.Bold = true;
|
||||
// ws.Cell("B4").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
@@ -110,7 +110,7 @@ namespace rmutr_report.Controllers
|
||||
// ws.Cell("B5").Style.Border.TopBorder = XLBorderStyleValues.Thin;
|
||||
// ws.Cell("B5").Style.Border.RightBorder = XLBorderStyleValues.Thin;
|
||||
// ws.Cell("C4").Value = "คำขอตั้ง";
|
||||
// ws.Cell("C4").Style.Font.FontName = "TH Sarabun New";
|
||||
// ws.Cell("C4").Style.Font.FontName = "TH SarabunPSK";
|
||||
// ws.Cell("C4").Style.Font.FontSize = 14;
|
||||
// ws.Cell("C4").Style.Font.Bold = true;
|
||||
// ws.Cell("C4").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
@@ -120,7 +120,7 @@ namespace rmutr_report.Controllers
|
||||
// ws.Cell("C5").Style.Border.TopBorder = XLBorderStyleValues.Thin;
|
||||
// ws.Cell("C5").Style.Border.RightBorder = XLBorderStyleValues.Thin;
|
||||
// ws.Cell("D4").Value = "สรุปคำชี้แจง";
|
||||
// ws.Cell("D4").Style.Font.FontName = "TH Sarabun New";
|
||||
// ws.Cell("D4").Style.Font.FontName = "TH SarabunPSK";
|
||||
// ws.Cell("D4").Style.Font.FontSize = 14;
|
||||
// ws.Cell("D4").Style.Font.Bold = true;
|
||||
// ws.Cell("D4").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
@@ -144,7 +144,7 @@ namespace rmutr_report.Controllers
|
||||
// {
|
||||
// ws.Cell("C5").Value = "ปี "+_operating_expenses.request_year;
|
||||
// ws.Cell("C5").Style.Alignment.WrapText = true;
|
||||
// ws.Cell("C5").Style.Font.FontName = "TH Sarabun New";
|
||||
// ws.Cell("C5").Style.Font.FontName = "TH SarabunPSK";
|
||||
// ws.Cell("C5").Style.Font.FontSize = 14;
|
||||
// ws.Cell("C5").Style.Font.Bold = true;
|
||||
// ws.Cell("C5").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
@@ -158,7 +158,7 @@ namespace rmutr_report.Controllers
|
||||
// ws.Cell(row, 4).Value = expenses.clarification_summary;
|
||||
//
|
||||
// ws.Range(ws.Cell(row, 1), ws.Cell(row, 4)).Style.Font.FontName =
|
||||
// "TH Sarabun New";
|
||||
// "TH SarabunPSK";
|
||||
// ws.Range(ws.Cell(row, 1), ws.Cell(row, 4)).Style.Font.FontSize = 14;
|
||||
// ws.Range(ws.Cell(row, 1), ws.Cell(row, 4)).Style.Alignment.WrapText = true;
|
||||
// ws.Range(ws.Cell(row, 1), ws.Cell(row, 4)).Style.Alignment.Vertical =
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using ClosedXML.Excel;
|
||||
using FastReport;
|
||||
using FastReport.Export.OoXML;
|
||||
@@ -21,6 +22,7 @@ namespace rmutr_report.Controllers
|
||||
this._setting = setting;
|
||||
}
|
||||
|
||||
[SwaggerOperation("รับเงินแผ่นดิน")]
|
||||
[HttpPost, Route("reports/receive_government/{type}")] //รับเงินแผ่นดิน
|
||||
[ApiExplorerSettings(GroupName = "reports")]
|
||||
public IActionResult GetGovernmentBudgetReport([FromRoute] string type,
|
||||
@@ -63,6 +65,7 @@ namespace rmutr_report.Controllers
|
||||
return Ok();
|
||||
}
|
||||
|
||||
[SwaggerOperation("การจัดสรรงบประมาณแผ่นดินรวมทุกแผนงาน, แผนงานบุคลากร, พื้นฐาน+ยุทธศาตร์")]
|
||||
[HttpPost, Route("reports/budget_government_allocate/{type}")] // (พื้นฐาน+ยุทธศาตร์)
|
||||
[ApiExplorerSettings(GroupName = "reports")]
|
||||
public IActionResult GetInStrAllocateReport([FromRoute] string type,
|
||||
@@ -71,7 +74,7 @@ namespace rmutr_report.Controllers
|
||||
var workbook = new XLWorkbook();
|
||||
var ws = workbook.Worksheets.Add("การจัดสรรงบประมาณแผ่นดิน");
|
||||
ws.Range("A1:S1").Merge().Value = "การจัดสรรงบประมาณแผ่นดิน ปีงบประมาณ พ.ศ. " + allocate.budget_year
|
||||
+ " (" + allocate.report_name + ")";//" (แผนงาน พื้นฐาน และ แผนงาน ยุทธศาสตร์ฯ)";
|
||||
+ " (" + allocate.report_name + ")"; //" (แผนงาน พื้นฐาน และ แผนงาน ยุทธศาสตร์ฯ)";
|
||||
ws.Range("A1:S1").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Range("A1:S1").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Range("A1:S1").Style.Font.FontName = "TH SarabunPSK";
|
||||
@@ -394,7 +397,7 @@ namespace rmutr_report.Controllers
|
||||
|
||||
if (detail.color == 3) // ชื่อคณะ สีแดงอ่อน
|
||||
{
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row + 1, 1)).Merge().Value = detail.list;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row + 1, 1)).Merge().Value = detail.list;
|
||||
ws.Range(ws.Cell(row, 2), ws.Cell(row, 5)).Merge().Value = detail.total_budget_personnel;
|
||||
ws.Range(ws.Cell(row, 6), ws.Cell(row, 9)).Merge().Value = detail.total_budget_operating;
|
||||
ws.Range(ws.Cell(row, 10), ws.Cell(row, 11)).Merge().Value = detail.total_budget_investment;
|
||||
@@ -428,6 +431,7 @@ namespace rmutr_report.Controllers
|
||||
|
||||
row++;
|
||||
}
|
||||
|
||||
if (detail.color == 5) // ชื่อคณะ สีขาว
|
||||
{
|
||||
ws.Cell(row, 1).Value = "'- " + detail.list;
|
||||
@@ -466,7 +470,7 @@ namespace rmutr_report.Controllers
|
||||
|
||||
if (detail.color == 4) // ชื่อย่อยคณะ สีเทาอ่อน
|
||||
{
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row + 1, 1)).Merge().Value = detail.list;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row + 1, 1)).Merge().Value = detail.list;
|
||||
ws.Range(ws.Cell(row, 2), ws.Cell(row, 5)).Merge().Value = detail.total_budget_personnel;
|
||||
ws.Range(ws.Cell(row, 6), ws.Cell(row, 9)).Merge().Value = detail.total_budget_operating;
|
||||
ws.Range(ws.Cell(row, 10), ws.Cell(row, 11)).Merge().Value = detail.total_budget_investment;
|
||||
@@ -737,6 +741,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell(row, 17).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
row++;
|
||||
}
|
||||
|
||||
if (detail2.color == 5) // ชื่อคณะ สีขาว detail
|
||||
{
|
||||
ws.Cell(row, 1).Value = null;
|
||||
@@ -934,7 +939,6 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell(row, 17).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
row++;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -948,5 +952,562 @@ namespace rmutr_report.Controllers
|
||||
"budget_government_allocate" + ".xlsx");
|
||||
}
|
||||
}
|
||||
|
||||
[SwaggerOperation("1 รายการวัสดุ 2 รายการค่าใช้สอย")]
|
||||
[HttpPost, Route("reports/national_budget_list/{type}")]
|
||||
[ApiExplorerSettings(GroupName = "reports")]
|
||||
public IActionResult GetNationalBudgetListReport([FromRoute] string type,
|
||||
[FromBody] national_budget_list _nationalBudgetList)
|
||||
{
|
||||
string item = "รายการวัสดุ (คำของบประมาณรายจ่าย ปี ";
|
||||
string item2 = "รายการค่าใช้สอย (คำของบประมาณรายจ่าย ปี ";
|
||||
if (_nationalBudgetList.report_type == 1)
|
||||
{
|
||||
_nationalBudgetList.budget_year = item + _nationalBudgetList.budget_year + ")";
|
||||
foreach (var detail in _nationalBudgetList.data)
|
||||
{
|
||||
if (detail != null)
|
||||
{
|
||||
detail.total_amount = (detail.quantity * detail.unit_price);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (_nationalBudgetList.report_type == 2)
|
||||
{
|
||||
_nationalBudgetList.budget_year = item2 + _nationalBudgetList.budget_year + ")";
|
||||
foreach (var detail in _nationalBudgetList.data)
|
||||
{
|
||||
if (detail != null)
|
||||
{
|
||||
detail.total_amount = (detail.quantity * detail.unit_price*detail.quantity_month);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
var nationalBudgetLists = new List<national_budget_list>() { _nationalBudgetList };
|
||||
Report report = new Report();
|
||||
if (_nationalBudgetList.report_type == 2)
|
||||
{
|
||||
report.Load(_setting.report_path + "national_budget_list_type2.frx");
|
||||
report.RegisterData(nationalBudgetLists, "national_budget_list");
|
||||
report.Prepare();
|
||||
|
||||
MemoryStream stream1 = new MemoryStream();
|
||||
switch (type)
|
||||
{
|
||||
case "pdf":
|
||||
PDFExport pdf = new PDFExport();
|
||||
report.Export(pdf, stream1);
|
||||
stream1.Seek(0, SeekOrigin.Begin);
|
||||
return File(stream1, "application/pdf");
|
||||
|
||||
case "xls":
|
||||
case "xlsx":
|
||||
Excel2007Export excel = new Excel2007Export();
|
||||
report.Export(excel, stream1);
|
||||
stream1.Seek(0, SeekOrigin.Begin);
|
||||
return File(
|
||||
stream1,
|
||||
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
|
||||
"ค่าเช่าทรัพย์สิน" + ".xlsx");
|
||||
}
|
||||
}
|
||||
|
||||
if (_nationalBudgetList.report_type == 1)
|
||||
{
|
||||
report.Load(_setting.report_path + "national_budget_list.frx");
|
||||
report.RegisterData(nationalBudgetLists, "national_budget_list");
|
||||
report.Prepare();
|
||||
|
||||
MemoryStream stream = new MemoryStream();
|
||||
switch (type)
|
||||
{
|
||||
case "pdf":
|
||||
PDFExport pdf = new PDFExport();
|
||||
report.Export(pdf, stream);
|
||||
stream.Seek(0, SeekOrigin.Begin);
|
||||
return File(stream, "application/pdf");
|
||||
|
||||
case "xls":
|
||||
case "xlsx":
|
||||
Excel2007Export excel = new Excel2007Export();
|
||||
report.Export(excel, stream);
|
||||
stream.Seek(0, SeekOrigin.Begin);
|
||||
return File(
|
||||
stream,
|
||||
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
|
||||
"ค่าคณะกรรมการตรวจสอบพัสดุในงานจ้างก่อสร้าง" + ".xlsx");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
return Ok();
|
||||
}
|
||||
|
||||
[SwaggerOperation("ค่าประกันภัยรถยนต์ราชการ")]
|
||||
[HttpPost, Route("reports/budget_progress_insurances/{type}")]
|
||||
[ApiExplorerSettings(GroupName = "reports")]
|
||||
public IActionResult GetInsurancesListReport([FromRoute] string type,
|
||||
[FromBody] budget_progress_insurances insurances)
|
||||
{
|
||||
foreach (var detail in insurances.data)
|
||||
{
|
||||
if (detail != null)
|
||||
{
|
||||
detail.total_amount = (detail.amount + detail.car_act);
|
||||
}
|
||||
|
||||
switch (detail.month)
|
||||
{
|
||||
case 1:
|
||||
detail.month_th = "มกราคม";
|
||||
break;
|
||||
case 2:
|
||||
detail.month_th = "กุมภาพันธ์";
|
||||
break;
|
||||
case 3:
|
||||
detail.month_th = "มีนาคม";
|
||||
break;
|
||||
case 4:
|
||||
detail.month_th = "เมษายน";
|
||||
break;
|
||||
case 5:
|
||||
detail.month_th = "พฤษภาคม";
|
||||
break;
|
||||
case 6:
|
||||
detail.month_th = "มิถุนายน";
|
||||
break;
|
||||
case 7:
|
||||
detail.month_th = "กรกฎาคม";
|
||||
break;
|
||||
case 8:
|
||||
detail.month_th = "สิงหาคม";
|
||||
break;
|
||||
case 9:
|
||||
detail.month_th = "กันยายน";
|
||||
break;
|
||||
case 10:
|
||||
detail.month_th = "ตุลาคม";
|
||||
break;
|
||||
case 11:
|
||||
detail.month_th = "พฤศจิกายน";
|
||||
break;
|
||||
case 12:
|
||||
detail.month_th = "ธันวาคม";
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
var _insurances = new List<budget_progress_insurances>() { insurances };
|
||||
Report report = new Report();
|
||||
report.Load(_setting.report_path + "budget_progress_insurances.frx");
|
||||
report.RegisterData(_insurances, "budget_progress_insurances");
|
||||
report.Prepare();
|
||||
|
||||
MemoryStream stream = new MemoryStream();
|
||||
switch (type)
|
||||
{
|
||||
case "pdf":
|
||||
PDFExport pdf = new PDFExport();
|
||||
report.Export(pdf, stream);
|
||||
stream.Seek(0, SeekOrigin.Begin);
|
||||
return File(stream, "application/pdf");
|
||||
|
||||
case "xls":
|
||||
case "xlsx":
|
||||
Excel2007Export excel = new Excel2007Export();
|
||||
report.Export(excel, stream);
|
||||
stream.Seek(0, SeekOrigin.Begin);
|
||||
return File(
|
||||
stream,
|
||||
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
|
||||
"ค่าประกันภัยรถยนต์ราชการ" + ".xlsx");
|
||||
}
|
||||
|
||||
return Ok();
|
||||
}
|
||||
|
||||
[SwaggerOperation("ค่าคณะกรรมการตรวจสอบพัสดุในงานจ้างก่อสร้าง,ค่าคณะกรรมการอื่น ๆ")]
|
||||
[HttpPost, Route("reports/parcel_inspection_committee/{type}")]
|
||||
[ApiExplorerSettings(GroupName = "reports")]
|
||||
public IActionResult GetCommitteeReport([FromRoute] string type,
|
||||
[FromBody] parcel_inspection_committee committee)
|
||||
{
|
||||
int no = 1;
|
||||
|
||||
foreach (var data in committee.data)
|
||||
{
|
||||
data.list = "รายการ " + no;
|
||||
no++;
|
||||
foreach (var detail in data.data_detail)
|
||||
{
|
||||
if (detail != null)
|
||||
{
|
||||
data.total_amount = (detail.quantity * detail.quantity_person * detail.quantity_work *
|
||||
detail.amount);
|
||||
}
|
||||
}
|
||||
|
||||
var s = committee.data.Sum(d => d.total_amount);
|
||||
committee.total_all_amount = s;
|
||||
}
|
||||
|
||||
|
||||
var _committees = new List<parcel_inspection_committee>() { committee };
|
||||
Report report = new Report();
|
||||
report.Load(_setting.report_path + "other_committee_fee.frx");
|
||||
report.RegisterData(_committees, "parcel_inspection_committee");
|
||||
report.Prepare();
|
||||
|
||||
MemoryStream stream = new MemoryStream();
|
||||
switch (type)
|
||||
{
|
||||
case "pdf":
|
||||
PDFExport pdf = new PDFExport();
|
||||
report.Export(pdf, stream);
|
||||
stream.Seek(0, SeekOrigin.Begin);
|
||||
return File(stream, "application/pdf");
|
||||
|
||||
case "xls":
|
||||
case "xlsx":
|
||||
Excel2007Export excel = new Excel2007Export();
|
||||
report.Export(excel, stream);
|
||||
stream.Seek(0, SeekOrigin.Begin);
|
||||
return File(
|
||||
stream,
|
||||
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
|
||||
"national_budget_list" + ".xlsx");
|
||||
}
|
||||
|
||||
return Ok();
|
||||
}
|
||||
|
||||
[SwaggerOperation("ค่าจ้างให้บริการงานจ้างออกแบบ")]
|
||||
[HttpPost, Route("reports/design_services/{type}")]
|
||||
[ApiExplorerSettings(GroupName = "reports")]
|
||||
public IActionResult GetDesignServicesReport([FromRoute] string type,
|
||||
[FromBody] parcel_inspection_committee committee)
|
||||
{
|
||||
int no = 1;
|
||||
string per = "%";
|
||||
|
||||
foreach (var data in committee.data)
|
||||
{
|
||||
data.list = "รายการ " + no;
|
||||
no++;
|
||||
foreach (var detail in data.data_detail)
|
||||
{
|
||||
if (detail != null)
|
||||
{
|
||||
detail.unit = detail.quantity_work + per;
|
||||
detail.amount = (detail.quantity * detail.quantity_person * detail.quantity_work) / 100;
|
||||
}
|
||||
}
|
||||
|
||||
var total = data.data_detail.Sum(d => d.amount);
|
||||
data.total_amount = total;
|
||||
|
||||
var s = committee.data.Sum(d => d.total_amount);
|
||||
committee.total_all_amount = s;
|
||||
}
|
||||
|
||||
var _committees = new List<parcel_inspection_committee>() { committee };
|
||||
Report report = new Report();
|
||||
report.Load(_setting.report_path + "design_services.frx");
|
||||
report.RegisterData(_committees, "parcel_inspection_committee");
|
||||
report.Prepare();
|
||||
|
||||
MemoryStream stream = new MemoryStream();
|
||||
switch (type)
|
||||
{
|
||||
case "pdf":
|
||||
PDFExport pdf = new PDFExport();
|
||||
report.Export(pdf, stream);
|
||||
stream.Seek(0, SeekOrigin.Begin);
|
||||
return File(stream, "application/pdf");
|
||||
|
||||
case "xls":
|
||||
case "xlsx":
|
||||
Excel2007Export excel = new Excel2007Export();
|
||||
report.Export(excel, stream);
|
||||
stream.Seek(0, SeekOrigin.Begin);
|
||||
return File(
|
||||
stream,
|
||||
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
|
||||
"ค่าจ้างให้บริการงานจ้างออกแบบ" + ".xlsx");
|
||||
}
|
||||
|
||||
return Ok();
|
||||
}
|
||||
|
||||
[SwaggerOperation("ค่าอาหารทำการนอกเวลา 1 วันทำการปกติ 2 วันหยุดราชการ")]
|
||||
[HttpPost, Route("reports/meal_costs_outside/{type}")]
|
||||
[ApiExplorerSettings(GroupName = "reports")]
|
||||
public IActionResult GetDesignServicesReport([FromRoute] string type,
|
||||
[FromBody] meal_costs_outside mealCostsOutsides)
|
||||
{
|
||||
var meals = mealCostsOutsides.data.ToList();
|
||||
if (mealCostsOutsides.topic_type == 1)
|
||||
{
|
||||
mealCostsOutsides.topic = "วันทำการปกติ";
|
||||
}
|
||||
|
||||
if (mealCostsOutsides.topic_type == 2)
|
||||
{
|
||||
mealCostsOutsides.topic = "วันหยุดราชการ";
|
||||
}
|
||||
|
||||
foreach (var detail in mealCostsOutsides.data)
|
||||
{
|
||||
detail.total_amount = (detail.day * detail.person * detail.amount);
|
||||
}
|
||||
|
||||
mealCostsOutsides.day = mealCostsOutsides.data.Sum(d => d.day);
|
||||
mealCostsOutsides.person = mealCostsOutsides.data.Sum(d => d.person);
|
||||
mealCostsOutsides.amount = mealCostsOutsides.data.Sum(d => d.amount);
|
||||
mealCostsOutsides.total_amount = meals.Sum(f => f.total_amount);
|
||||
|
||||
var meal = new List<meal_costs_outside>() { mealCostsOutsides };
|
||||
Report report = new Report();
|
||||
report.Load(_setting.report_path + "meal_costs_outside.frx");
|
||||
report.RegisterData(meal, "meal_costs_outside");
|
||||
report.Prepare();
|
||||
|
||||
MemoryStream stream = new MemoryStream();
|
||||
switch (type)
|
||||
{
|
||||
case "pdf":
|
||||
PDFExport pdf = new PDFExport();
|
||||
report.Export(pdf, stream);
|
||||
stream.Seek(0, SeekOrigin.Begin);
|
||||
return File(stream, "application/pdf");
|
||||
|
||||
case "xls":
|
||||
case "xlsx":
|
||||
Excel2007Export excel = new Excel2007Export();
|
||||
report.Export(excel, stream);
|
||||
stream.Seek(0, SeekOrigin.Begin);
|
||||
return File(
|
||||
stream,
|
||||
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
|
||||
"ค่าอาหารทำการนอกเวลา" + ".xlsx");
|
||||
}
|
||||
|
||||
return Ok();
|
||||
}
|
||||
|
||||
[SwaggerOperation("ค่าเบี้ยเลี้ยง ที่พัก พาหนะ")]
|
||||
[HttpPost, Route("reports/expense/{type}")]
|
||||
[ApiExplorerSettings(GroupName = "reports")]
|
||||
public IActionResult GetExpenseReport([FromRoute] string type,
|
||||
[FromBody] expense _expense)
|
||||
{
|
||||
var meals = _expense.data.ToList();
|
||||
if (_expense.topic_type == 1)
|
||||
{
|
||||
_expense.topic = "ค่าเบี้ยเลี้ยง";
|
||||
_expense.text_1 = "จำนวนเงิน/วัน";
|
||||
_expense.text_2 = "จำนวน (วัน)";
|
||||
foreach (var detail in _expense.data)
|
||||
{
|
||||
detail.total_amount =
|
||||
(detail.quantity_1 * detail.quantity_2 * detail.quantity_3 * detail.quantity_4);
|
||||
}
|
||||
}
|
||||
|
||||
if (_expense.topic_type == 2)
|
||||
{
|
||||
_expense.topic = "ค่าเช่าที่พัก";
|
||||
_expense.text_1 = "จำนวนเงิน/คน/คืน";
|
||||
_expense.text_2 = "จำนวนวัน";
|
||||
foreach (var detail in _expense.data)
|
||||
{
|
||||
detail.total_amount = (detail.quantity_1 * detail.quantity_2 * detail.quantity_3);
|
||||
}
|
||||
}
|
||||
|
||||
if (_expense.topic_type == 3)
|
||||
{
|
||||
_expense.topic = "ค่าพาหนะ";
|
||||
_expense.text_1 = "จำนวนเงิน";
|
||||
_expense.text_2 = "จำนวนครั้ง";
|
||||
foreach (var detail in _expense.data)
|
||||
{
|
||||
detail.total_amount = (detail.quantity_1 * detail.quantity_2 * detail.quantity_3);
|
||||
}
|
||||
}
|
||||
|
||||
_expense.quantity_1 = _expense.data.Sum(d => d.quantity_1);
|
||||
_expense.quantity_2 = _expense.data.Sum(d => d.quantity_2);
|
||||
_expense.quantity_3 = _expense.data.Sum(d => d.quantity_3);
|
||||
_expense.quantity_4 = _expense.data.Sum(d => d.quantity_4);
|
||||
_expense.total_amount = meals.Sum(f => f.total_amount);
|
||||
|
||||
var expenses = new List<expense>() { _expense };
|
||||
Report report = new Report();
|
||||
if (_expense.topic_type == 1)
|
||||
{
|
||||
report.Load(_setting.report_path + "expense_allowance.frx");
|
||||
report.RegisterData(expenses, "expense");
|
||||
report.Prepare();
|
||||
MemoryStream stream1 = new MemoryStream();
|
||||
switch (type)
|
||||
{
|
||||
case "pdf":
|
||||
PDFExport pdf = new PDFExport();
|
||||
report.Export(pdf, stream1);
|
||||
stream1.Seek(0, SeekOrigin.Begin);
|
||||
return File(stream1, "application/pdf");
|
||||
|
||||
case "xls":
|
||||
case "xlsx":
|
||||
Excel2007Export excel = new Excel2007Export();
|
||||
report.Export(excel, stream1);
|
||||
stream1.Seek(0, SeekOrigin.Begin);
|
||||
return File(
|
||||
stream1,
|
||||
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
|
||||
"ค่าเบี้ยเลี้ยง" + ".xlsx");
|
||||
}
|
||||
}
|
||||
|
||||
if (_expense.topic_type != 1)
|
||||
{
|
||||
report.Load(_setting.report_path + "expense.frx");
|
||||
report.RegisterData(expenses, "expense");
|
||||
report.Prepare();
|
||||
|
||||
MemoryStream stream = new MemoryStream();
|
||||
switch (type)
|
||||
{
|
||||
case "pdf":
|
||||
PDFExport pdf = new PDFExport();
|
||||
report.Export(pdf, stream);
|
||||
stream.Seek(0, SeekOrigin.Begin);
|
||||
return File(stream, "application/pdf");
|
||||
|
||||
case "xls":
|
||||
case "xlsx":
|
||||
Excel2007Export excel = new Excel2007Export();
|
||||
report.Export(excel, stream);
|
||||
stream.Seek(0, SeekOrigin.Begin);
|
||||
return File(
|
||||
stream,
|
||||
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
|
||||
"ค่าใช้สอย" + ".xlsx");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
return Ok();
|
||||
}
|
||||
|
||||
[SwaggerOperation("แบบคำนวณค่าวัสดุการศึกษา")]
|
||||
[HttpPost, Route("reports/material_edu_cal_form/{type}")]
|
||||
[ApiExplorerSettings(GroupName = "reports")]
|
||||
public IActionResult GetCalFormReport([FromRoute] string type,
|
||||
[FromBody] material_edu_cal_form calForm)
|
||||
{
|
||||
foreach (var data in calForm.data)
|
||||
{
|
||||
int row_no = 1;
|
||||
var total = data.data_detail.ToList();
|
||||
foreach (var detail2 in data.data_detail)
|
||||
{
|
||||
if (detail2.topic_type == 2)
|
||||
{
|
||||
detail2.no = row_no.ToString();
|
||||
row_no++;
|
||||
// detail2.total_amount_1 = detail2.amount_1*detail2.rate_1;
|
||||
// detail2.total_amount_2 = detail2.amount_2*detail2.rate_2;
|
||||
// detail2.total_all_amount = detail2.total_amount_1 + detail2.total_amount_2;
|
||||
}
|
||||
|
||||
calForm.total_amount = calForm.data.Sum(d => d.amount);
|
||||
}
|
||||
}
|
||||
|
||||
var _cal = new List<material_edu_cal_form>() { calForm };
|
||||
Report report = new Report();
|
||||
report.Load(_setting.report_path + "material_edu_cal_form.frx");
|
||||
report.RegisterData(_cal, "material_edu_cal_form");
|
||||
report.Prepare();
|
||||
|
||||
MemoryStream stream = new MemoryStream();
|
||||
switch (type)
|
||||
{
|
||||
case "pdf":
|
||||
PDFExport pdf = new PDFExport();
|
||||
report.Export(pdf, stream);
|
||||
stream.Seek(0, SeekOrigin.Begin);
|
||||
return File(stream, "application/pdf");
|
||||
|
||||
case "xls":
|
||||
case "xlsx":
|
||||
Excel2007Export excel = new Excel2007Export();
|
||||
report.Export(excel, stream);
|
||||
stream.Seek(0, SeekOrigin.Begin);
|
||||
return File(
|
||||
stream,
|
||||
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
|
||||
"แบบคำนวณค่าวัสดุการศึกษา" + ".xlsx");
|
||||
}
|
||||
|
||||
return Ok();
|
||||
}
|
||||
|
||||
[SwaggerOperation("ค่าควบคุมงานก่อสร้าง")]
|
||||
[HttpPost, Route("reports/control_cost_construction/{type}")]
|
||||
[ApiExplorerSettings(GroupName = "reports")]
|
||||
public IActionResult GetConstructionReport([FromRoute] string type,
|
||||
[FromBody] control_cost_construction _expense)
|
||||
{
|
||||
if (_expense.topic_type == 1)
|
||||
{
|
||||
_expense.topic = "ค่าควบคุมงานก่อสร้าง (หัวหน้าควบคุมงานก่อสร้าง)";
|
||||
}
|
||||
|
||||
if (_expense.topic_type == 2)
|
||||
{
|
||||
_expense.topic = "ค่าควบคุมงานก่อสร้าง (ผู้ปฏิบัติการ)";
|
||||
}
|
||||
|
||||
foreach (var detail in _expense.data)
|
||||
{
|
||||
detail.total_amount = (detail.quantity_day * detail.quantity_person * detail.amount);
|
||||
}
|
||||
|
||||
var expenses = new List<control_cost_construction>() { _expense };
|
||||
Report report = new Report();
|
||||
report.Load(_setting.report_path + "control_cost_construction.frx");
|
||||
report.RegisterData(expenses, "control_cost_construction");
|
||||
report.Prepare();
|
||||
|
||||
MemoryStream stream = new MemoryStream();
|
||||
switch (type)
|
||||
{
|
||||
case "pdf":
|
||||
PDFExport pdf = new PDFExport();
|
||||
report.Export(pdf, stream);
|
||||
stream.Seek(0, SeekOrigin.Begin);
|
||||
return File(stream, "application/pdf");
|
||||
|
||||
case "xls":
|
||||
case "xlsx":
|
||||
Excel2007Export excel = new Excel2007Export();
|
||||
report.Export(excel, stream);
|
||||
stream.Seek(0, SeekOrigin.Begin);
|
||||
return File(
|
||||
stream,
|
||||
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
|
||||
"ค่าควบคุมงานก่อสร้าง" + ".xlsx");
|
||||
}
|
||||
|
||||
return Ok();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -26,12 +26,12 @@ namespace rmutr_report.Controllers
|
||||
{
|
||||
var workbook = new XLWorkbook();
|
||||
var ws = workbook.Worksheets.Add("ค่าเช่าบ้าน");
|
||||
ws.Cell("F1").Value = "แบบ ง.1";
|
||||
ws.Cell("F1").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("F1").Style.Font.FontSize = 16;
|
||||
ws.Cell("F1").Style.Font.Bold = true;
|
||||
ws.Cell("F1").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("F1").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell("G1").Value = "แบบ ง.1";
|
||||
ws.Cell("G1").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("G1").Style.Font.FontSize = 16;
|
||||
ws.Cell("G1").Style.Font.Bold = true;
|
||||
ws.Cell("G1").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("G1").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Range("A2:F2").Merge().Value = "รายละเอียดประกอบการเสนอของบประมาณรายการ ค่าเช่าบ้าน ปีงบประมาณ" + _house_for_rent.budget_year;
|
||||
ws.Range("A2:F2").Style.Alignment.WrapText = true;
|
||||
ws.Range("A2:F2").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
@@ -101,7 +101,14 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell("F5").Style.Font.FontSize = 16;
|
||||
ws.Cell("F5").Style.Font.Bold = true;
|
||||
ws.Cell("F5").Style.Alignment.WrapText = true;
|
||||
ws.Range("A4:F5").Style.Fill.BackgroundColor = XLColor.SeaShell;
|
||||
ws.Range("G4:G5").Merge().Value = "เบิกจ่ายจริง";
|
||||
ws.Range("G4:G5").Style.Alignment.WrapText = true;
|
||||
ws.Range("G4:G5").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Range("G4:G5").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Range("G4").Style.Font.SetBold().Font.FontName = "TH SarabunPSK";
|
||||
ws.Range("G4").Style.Font.FontSize = 16;
|
||||
ws.Range("A3:F3").Style.Font.Bold = true;
|
||||
ws.Range("A4:G5").Style.Fill.BackgroundColor = XLColor.SeaShell;
|
||||
ws.Range("A4:F5").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Range("A4:F5").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Range("A4:F5").Style.Border.OutsideBorder =
|
||||
@@ -116,12 +123,17 @@ namespace rmutr_report.Controllers
|
||||
XLBorderStyleValues.Thin;
|
||||
ws.Range("E4:E5").Style.Border.RightBorder =
|
||||
XLBorderStyleValues.Thin;
|
||||
ws.Range("G4:G5").Style.Border.RightBorder =
|
||||
XLBorderStyleValues.Thin;
|
||||
ws.Range("G4:G5").Style.Border.TopBorder =
|
||||
XLBorderStyleValues.Thin;
|
||||
ws.Column(1).Width = 10;
|
||||
ws.Column(2).Width = 40;
|
||||
ws.Column(3).Width = 25;
|
||||
ws.Column(4).Width = 15;
|
||||
ws.Column(5).Width = 15;
|
||||
ws.Column(6).Width = 15;
|
||||
ws.Column(7).Width = 15;
|
||||
|
||||
int row = 6;
|
||||
//int row2 = 9;
|
||||
@@ -136,17 +148,18 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell(row, 4).Value = house.salary_rate;
|
||||
ws.Cell(row, 5).Value = house.per_month;
|
||||
ws.Cell(row, 6).Value = house.per_year;
|
||||
ws.Cell(row, 7).Value = house.actual_disbursement;
|
||||
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 6)).Style.Font.FontName =
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 7)).Style.Font.FontName =
|
||||
"TH SarabunPSK";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 6)).Style.Font.FontSize = 16;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 6)).Style.Alignment.WrapText = true;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 6)).Style.Alignment.Vertical =
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 7)).Style.Font.FontSize = 16;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 7)).Style.Alignment.WrapText = true;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 7)).Style.Alignment.Vertical =
|
||||
XLAlignmentVerticalValues.Center;
|
||||
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 6)).Style.Border.OutsideBorder =
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 7)).Style.Border.OutsideBorder =
|
||||
XLBorderStyleValues.Thin;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 6)).Style.Border.RightBorder =
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 7)).Style.Border.RightBorder =
|
||||
XLBorderStyleValues.Thin;
|
||||
ws.Cell(row, 1).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell(row, 2).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Left;
|
||||
@@ -154,9 +167,10 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell(row, 4).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell(row, 5).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell(row, 6).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell(row, 7).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
|
||||
ws.Range(ws.Cell(row, 4), ws.Cell(row, 6)).SetDataType(XLDataType.Number);
|
||||
ws.Range(ws.Cell(row, 4), ws.Cell(row, 6)).Style.NumberFormat.SetFormat("#,#");
|
||||
ws.Range(ws.Cell(row, 4), ws.Cell(row, 7)).SetDataType(XLDataType.Number);
|
||||
ws.Range(ws.Cell(row, 4), ws.Cell(row, 7)).Style.NumberFormat.SetFormat("#,#");
|
||||
row++;
|
||||
|
||||
}
|
||||
|
||||
@@ -105,21 +105,21 @@ namespace rmutr_report.Controllers
|
||||
ws.Column(6).Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Column(7).Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Column(8).Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Column(1).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Column(1).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Column(1).Style.Font.FontSize = 16;
|
||||
ws.Column(2).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Column(2).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Column(2).Style.Font.FontSize = 16;
|
||||
ws.Column(3).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Column(3).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Column(3).Style.Font.FontSize = 16;
|
||||
ws.Column(4).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Column(4).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Column(4).Style.Font.FontSize = 16;
|
||||
ws.Column(5).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Column(5).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Column(5).Style.Font.FontSize = 16;
|
||||
ws.Column(6).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Column(6).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Column(6).Style.Font.FontSize = 16;
|
||||
ws.Column(7).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Column(7).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Column(7).Style.Font.FontSize = 16;
|
||||
ws.Column(8).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Column(8).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Column(8).Style.Font.FontSize = 16;
|
||||
int col = 1;
|
||||
int row = 4;
|
||||
@@ -134,7 +134,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Range("A1:H1").Merge().Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Range("A1:H1").Merge().Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell("A1").Style.Font.Bold = true;
|
||||
ws.Cell("A1").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("A1").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("A1").Style.Font.FontSize = 16;
|
||||
ws.Range("D2:E2").Merge().Value = "ค่าเป้าหมาย ปี " + _kpi.academic_year.Substring(2, 2);
|
||||
ws.Range("D2:E2").Style.Font.Bold = true;
|
||||
|
||||
@@ -97,35 +97,35 @@ namespace rmutr_report.Controllers
|
||||
ws.Column(13).Width = 40;
|
||||
ws.Column(14).Width = 40;
|
||||
ws.Column(15).Width = 40;
|
||||
ws.Column(1).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Column(1).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Column(1).Style.Font.FontSize = 16;
|
||||
ws.Column(2).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Column(2).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Column(2).Style.Font.FontSize = 16;
|
||||
ws.Column(3).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Column(3).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Column(3).Style.Font.FontSize = 16;
|
||||
ws.Column(4).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Column(4).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Column(4).Style.Font.FontSize = 16;
|
||||
ws.Column(5).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Column(5).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Column(5).Style.Font.FontSize = 16;
|
||||
ws.Column(6).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Column(6).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Column(6).Style.Font.FontSize = 16;
|
||||
ws.Column(7).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Column(7).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Column(7).Style.Font.FontSize = 16;
|
||||
ws.Column(8).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Column(8).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Column(8).Style.Font.FontSize = 16;
|
||||
ws.Column(9).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Column(9).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Column(9).Style.Font.FontSize = 16;
|
||||
ws.Column(10).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Column(10).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Column(10).Style.Font.FontSize = 16;
|
||||
ws.Column(11).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Column(11).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Column(11).Style.Font.FontSize = 16;
|
||||
ws.Column(12).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Column(12).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Column(12).Style.Font.FontSize = 16;
|
||||
ws.Column(13).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Column(13).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Column(13).Style.Font.FontSize = 16;
|
||||
ws.Column(14).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Column(14).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Column(14).Style.Font.FontSize = 16;
|
||||
ws.Column(15).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Column(15).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Column(15).Style.Font.FontSize = 16;
|
||||
int col = 1;
|
||||
int row = 4;
|
||||
@@ -192,7 +192,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell(row, 14).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell(row, 15).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Range(ws.Cell(row, 1),ws.Cell(row,15)).Style.Alignment.WrapText = true;
|
||||
ws.Range(ws.Cell(row, 1),ws.Cell(row,15)).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Range(ws.Cell(row, 1),ws.Cell(row,15)).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Range(ws.Cell(row, 1),ws.Cell(row,15)).Style.Font.FontSize = 16;
|
||||
row++;
|
||||
rowno++;
|
||||
|
||||
@@ -54,15 +54,15 @@ namespace rmutr_report.Controllers
|
||||
ws.Column(3).Width = 20;
|
||||
ws.Column(4).Width = 30;
|
||||
ws.Column(5).Width = 30;
|
||||
ws.Column(1).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Column(1).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Column(1).Style.Font.FontSize = 16;
|
||||
ws.Column(2).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Column(2).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Column(2).Style.Font.FontSize = 16;
|
||||
ws.Column(3).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Column(3).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Column(3).Style.Font.FontSize = 16;
|
||||
ws.Column(4).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Column(4).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Column(4).Style.Font.FontSize = 16;
|
||||
ws.Column(5).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Column(5).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Column(5).Style.Font.FontSize = 16;
|
||||
int col = 1;
|
||||
int row = 3;
|
||||
@@ -110,7 +110,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell(row, 5).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
|
||||
ws.Range(ws.Cell(row, 1),ws.Cell(row,5)).Style.Alignment.WrapText = true;
|
||||
ws.Range(ws.Cell(row, 1),ws.Cell(row,5)).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Range(ws.Cell(row, 1),ws.Cell(row,5)).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Range(ws.Cell(row, 1),ws.Cell(row,5)).Style.Font.FontSize = 16;
|
||||
row++;
|
||||
rowno++;
|
||||
|
||||
@@ -28,6 +28,7 @@ namespace rmutr_report.Controllers
|
||||
this._setting = setting;
|
||||
}
|
||||
|
||||
[SwaggerOperation("ข้อมูลจำนวนบุคลากร")]
|
||||
[HttpPost, Route("reports/personnel_summary/{type}")]
|
||||
[ApiExplorerSettings(GroupName = "reports")]
|
||||
public IActionResult GetHrReport([FromRoute] string type, [FromBody] personnel_summary personnel_summarys)
|
||||
@@ -85,6 +86,7 @@ namespace rmutr_report.Controllers
|
||||
return Ok();
|
||||
}
|
||||
|
||||
[SwaggerOperation("จำนวนบุคลากร สายวิชาการ และ สายสนับสนุน")]
|
||||
[HttpPost, Route("reports/man_power/{type}")]
|
||||
[ApiExplorerSettings(GroupName = "reports")]
|
||||
public IActionResult GetManReport([FromRoute] string type, [FromBody] List<man_power> man_powers)
|
||||
@@ -129,6 +131,7 @@ namespace rmutr_report.Controllers
|
||||
return Ok();
|
||||
}
|
||||
|
||||
[SwaggerOperation("จำนวนบุคลากร สายสนับสนุน")]
|
||||
[HttpPost, Route("reports/data_line_support/{type}")]
|
||||
[ApiExplorerSettings(GroupName = "reports")]
|
||||
public IActionResult GetDataLineReport([FromRoute] string type, [FromBody] data_line_support data_line_supports)
|
||||
@@ -173,6 +176,7 @@ namespace rmutr_report.Controllers
|
||||
return Ok();
|
||||
}
|
||||
|
||||
[SwaggerOperation("จำนวนบุคลากร สายวิชาการ จำแนกตามอัตรา มีคนครอง และอัตราว่าง")]
|
||||
[HttpPost, Route("reports/data_line_academic/{type}")]
|
||||
[ApiExplorerSettings(GroupName = "reports")]
|
||||
public IActionResult GetDataLineAcaReport([FromRoute] string type,
|
||||
@@ -218,6 +222,7 @@ namespace rmutr_report.Controllers
|
||||
return Ok();
|
||||
}
|
||||
|
||||
[SwaggerOperation("จำนวนบุคลากร สายวิชาการ จำแนกตามอัตรา มีคนครอง และอัตราว่าง")]
|
||||
[HttpPost, Route("reports/qualifications_teacher/{type}")]
|
||||
[ApiExplorerSettings(GroupName = "reports")]
|
||||
public IActionResult GetQualificationsTeacherReport([FromRoute] string type,
|
||||
@@ -263,6 +268,7 @@ namespace rmutr_report.Controllers
|
||||
return Ok();
|
||||
}
|
||||
|
||||
[SwaggerOperation("จำนวนบุคลากร สายวิชาการ ตามตำแหน่งทางวิชาการ")]
|
||||
[HttpPost, Route("reports/academic_position/{type}")]
|
||||
[ApiExplorerSettings(GroupName = "reports")]
|
||||
public IActionResult GetAcademicPositionReport([FromRoute] string type,
|
||||
@@ -308,6 +314,7 @@ namespace rmutr_report.Controllers
|
||||
return Ok();
|
||||
}
|
||||
|
||||
[SwaggerOperation("หนังสือแจ้งผลการเลื่อนค่าตอบแทนพนักงานราชการ")]
|
||||
[HttpPost, Route("reports/postponement_compensation/{type}")]
|
||||
[ApiExplorerSettings(GroupName = "reports")]
|
||||
public IActionResult GetPostponementCompensationReport([FromRoute] string type,
|
||||
@@ -495,6 +502,7 @@ namespace rmutr_report.Controllers
|
||||
return Ok();
|
||||
}
|
||||
|
||||
[SwaggerOperation("พนักงานราชการ")]
|
||||
[HttpPost, Route("reports/personnel_salary_government_employee/{type}")]
|
||||
[ApiExplorerSettings(GroupName = "reports")]
|
||||
public IActionResult GetPersonSalaryReport([FromRoute] string type,
|
||||
@@ -1012,7 +1020,7 @@ namespace rmutr_report.Controllers
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
[SwaggerOperation("ข้าราชการ")]
|
||||
[HttpPost, Route("reports/personnel_salary_government/{type}")]
|
||||
[ApiExplorerSettings(GroupName = "reports")]
|
||||
public IActionResult GetPersonSalaryGovernmentReport([FromRoute] string type,
|
||||
@@ -2105,7 +2113,7 @@ namespace rmutr_report.Controllers
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
[SwaggerOperation("ลูกจ้างประจํา")]
|
||||
[HttpPost, Route("reports/personnel_salary_permanent/{type}")]
|
||||
[ApiExplorerSettings(GroupName = "reports")]
|
||||
public IActionResult GetPersonSalaryReport([FromRoute] string type,
|
||||
@@ -2797,6 +2805,7 @@ namespace rmutr_report.Controllers
|
||||
}
|
||||
}
|
||||
|
||||
[SwaggerOperation("ลูกจ้างชั่วคราว")]
|
||||
[HttpPost, Route("reports/personnel_salary_temporary/{type}")]
|
||||
[ApiExplorerSettings(GroupName = "reports")]
|
||||
public IActionResult GetTemporaryReport([FromRoute] string type,
|
||||
@@ -3237,6 +3246,7 @@ namespace rmutr_report.Controllers
|
||||
}
|
||||
}
|
||||
|
||||
[SwaggerOperation("พนักงานมหาวิทยาลัย")]
|
||||
[HttpPost, Route("reports/personnel_salary_university/{type}")]
|
||||
[ApiExplorerSettings(GroupName = "reports")]
|
||||
public IActionResult GetPersonSalaryUniversityReport([FromRoute] string type,
|
||||
@@ -4130,7 +4140,7 @@ namespace rmutr_report.Controllers
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
[SwaggerOperation("ค่าตอบแทนพนักงานราชการ")]
|
||||
[HttpPost, Route("reports/set_personnel_budget/{type}")]
|
||||
[ApiExplorerSettings(GroupName = "reports")]
|
||||
public IActionResult GetSetPersonBudgetReport([FromRoute] string type,
|
||||
@@ -4809,6 +4819,7 @@ namespace rmutr_report.Controllers
|
||||
}
|
||||
}
|
||||
|
||||
[SwaggerOperation("การตั้งงบประมาณค่าใช้จ่ายบุคลากร")]
|
||||
[HttpPost, Route("reports/personnel_expense_budget/{type}")]
|
||||
[ApiExplorerSettings(GroupName = "reports")]
|
||||
public IActionResult GetSetPersonExBudgetReport([FromRoute] string type,
|
||||
@@ -6215,6 +6226,7 @@ namespace rmutr_report.Controllers
|
||||
}
|
||||
}
|
||||
|
||||
[SwaggerOperation("บุคลากร งบประมาณแผ่นดิน")]
|
||||
[HttpPost, Route("reports/national_budget/{type}")]
|
||||
[ApiExplorerSettings(GroupName = "reports")]
|
||||
public IActionResult GetNationalBudgetReport([FromRoute] string type,
|
||||
@@ -6480,6 +6492,7 @@ namespace rmutr_report.Controllers
|
||||
}
|
||||
}
|
||||
|
||||
[SwaggerOperation("งบประมาณ MTEF")]
|
||||
[HttpPost, Route("reports/mtef_personnel/{type}")]
|
||||
[ApiExplorerSettings(GroupName = "reports")]
|
||||
public IActionResult GetMtefReport([FromRoute] string type,
|
||||
@@ -6863,6 +6876,7 @@ namespace rmutr_report.Controllers
|
||||
}
|
||||
}
|
||||
|
||||
[SwaggerOperation("ข้อมูลการตั้งงบประมาณค่าใช้จ่ายบุคลากร")]
|
||||
[HttpPost, Route("reports/set_personnel_budget_university/{type}")]
|
||||
[ApiExplorerSettings(GroupName = "reports")]
|
||||
public IActionResult GetSetPersonUniBudgetReport([FromRoute] string type,
|
||||
@@ -8818,6 +8832,7 @@ namespace rmutr_report.Controllers
|
||||
}
|
||||
}
|
||||
|
||||
[SwaggerOperation("การตั้งงบประมาณค่าใช้จ่ายบุคลากร ของลูกจ้างประจำ")]
|
||||
[HttpPost, Route("reports/set_personnel_budget_permanent/{type}")]
|
||||
[ApiExplorerSettings(GroupName = "reports")]
|
||||
public IActionResult GetSetPersonPermanentReport([FromRoute] string type,
|
||||
@@ -9483,13 +9498,14 @@ namespace rmutr_report.Controllers
|
||||
}
|
||||
}
|
||||
|
||||
[HttpPost, Route("reports/budget_proposal_details/{type}")]
|
||||
[SwaggerOperation("รายละเอียดข้อเสนอวงเงิน, สรุปข้อเสนอวงเงิน")]
|
||||
[HttpPost, Route("reports/budget_expenditure_proposal/{type}")]
|
||||
[ApiExplorerSettings(GroupName = "reports")]
|
||||
public IActionResult GetPersonDetailReport([FromRoute] string type,
|
||||
[FromBody] set_personnel_budget_permanent personnel)
|
||||
[FromBody] budget_expenditure_proposal personnel)
|
||||
{
|
||||
var workbook = new XLWorkbook();
|
||||
var ws = workbook.Worksheets.Add("รายละเอียด");
|
||||
var ws = workbook.Worksheets.Add("Sheet1");
|
||||
ws.Range("A1:AA1").Merge().Value = "รายละเอียดข้อเสนอวงเงินงบประมาณรายจ่ายประจำปีงบประมาณ พ.ศ. " +
|
||||
personnel.academic_year_name_th;
|
||||
ws.Range("A1:AA1").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
@@ -9516,7 +9532,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell("A4").Style.Font.FontSize = 16;
|
||||
ws.Cell("A4").Style.Font.Bold = true;
|
||||
ws.Cell("A5").Value =
|
||||
"ประเภทหน่วยงาน ..............(ส่วนราชการ/ส่วนราชการไม่สังกัดสำนักนายกรัฐมนตรี/รัฐวิสาหกิจ/องค์การมหาชน/หน่วยงานอิสระ/หน่วยงานศาล/หน่วยงานรัฐสภา/หน่วยงานอื่นของรัฐ)";
|
||||
"ประเภทหน่วยงาน " + personnel.agency_type;
|
||||
ws.Cell("A5").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Left;
|
||||
ws.Cell("A5").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell("A5").Style.Font.FontName = "TH SarabunPSK";
|
||||
@@ -9527,6 +9543,10 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell("AA5").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell("AA5").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("AA5").Style.Font.FontSize = 16;
|
||||
ws.Column(1).Width = 50;
|
||||
ws.Column(2).Width = 15;
|
||||
ws.Column(3).Width = 15;
|
||||
ws.Column(4).Width = 15;
|
||||
ws.Column(5).Width = 15;
|
||||
ws.Column(6).Width = 15;
|
||||
ws.Column(7).Width = 15;
|
||||
@@ -9539,10 +9559,20 @@ namespace rmutr_report.Controllers
|
||||
ws.Column(14).Width = 15;
|
||||
ws.Column(15).Width = 15;
|
||||
ws.Column(16).Width = 15;
|
||||
ws.Column(17).Width = 30;
|
||||
ws.Column(17).Width = 15;
|
||||
ws.Column(18).Width = 15;
|
||||
ws.Column(19).Width = 15;
|
||||
ws.Column(20).Width = 15;
|
||||
ws.Column(21).Width = 15;
|
||||
ws.Column(22).Width = 15;
|
||||
ws.Column(23).Width = 15;
|
||||
ws.Column(24).Width = 15;
|
||||
ws.Column(25).Width = 15;
|
||||
ws.Column(26).Width = 15;
|
||||
ws.Column(27).Width = 25;
|
||||
|
||||
|
||||
int row = 12;
|
||||
//int no = 1;
|
||||
if (personnel != null)
|
||||
{
|
||||
ws.Range("A6:A11").Merge().Value = "รายการ";
|
||||
@@ -9756,6 +9786,664 @@ namespace rmutr_report.Controllers
|
||||
ws.Range("B11:Z11").Style.Border.RightBorder = XLBorderStyleValues.Thin;
|
||||
ws.Range("B11:Z11").Style.Border.LeftBorder = XLBorderStyleValues.Thin;
|
||||
ws.Range("B7:Z11").Style.Alignment.WrapText = true;
|
||||
foreach (var detail in personnel.budget_expenditure_proposal_details)
|
||||
{
|
||||
if (detail.topic_type == 1 && detail.topic == "รวมทั้งสิ้น")
|
||||
{
|
||||
ws.Cell(row, 1).Value = "รวมทั้งสิ้น";
|
||||
ws.Cell(row, 2).Value = detail.act_year1_1;
|
||||
ws.Cell(row, 3).Value = detail.act_year1_2;
|
||||
ws.Cell(row, 4).Value = detail.disbursement_results_1;
|
||||
ws.Cell(row, 5).Value = detail.disbursement_results_2;
|
||||
ws.Cell(row, 6).Value = detail.budget_act_year2_1;
|
||||
ws.Cell(row, 7).Value = detail.budget_act_year2_2;
|
||||
ws.Cell(row, 8).Value = detail.adjust_the_base_year2_1;
|
||||
ws.Cell(row, 9).Value = detail.adjust_the_base_year2_2;
|
||||
ws.Cell(row, 10).Value = detail.request_1;
|
||||
ws.Cell(row, 11).Value = detail.request_2;
|
||||
ws.Cell(row, 12).Value = detail.offer_account1_1;
|
||||
ws.Cell(row, 13).Value = detail.offer_account1_2;
|
||||
ws.Cell(row, 14).Value = detail.offer_increase_decrease_1;
|
||||
ws.Cell(row, 15).Value = detail.offer_increase_decrease_2;
|
||||
ws.Cell(row, 16).Value = detail.offer_new_rate_1;
|
||||
ws.Cell(row, 17).Value = detail.offer_new_rate_2;
|
||||
ws.Cell(row, 18).Value = detail.offer_total_1;
|
||||
ws.Cell(row, 19).Value = detail.offer_total_2;
|
||||
ws.Cell(row, 20).Value = detail.increase_decrease_from_year_1;
|
||||
ws.Cell(row, 21).Value = detail.increase_decrease_from_year_2;
|
||||
ws.Cell(row, 22).Value = detail.increase_decrease_from_year_3;
|
||||
ws.Cell(row, 23).Value = detail.increase_decrease_from_year_4;
|
||||
ws.Cell(row, 24).Value = detail.mtef_1;
|
||||
ws.Cell(row, 25).Value = detail.mtef_2;
|
||||
ws.Cell(row, 26).Value = detail.mtef_3;
|
||||
ws.Cell(row, 27).Value = detail.remark;
|
||||
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 27)).Style.Font.FontName =
|
||||
"TH SarabunPSK";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 27)).Style.Font.SetBold().Font.FontSize = 16;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 27)).Style.Alignment.WrapText = true;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 27)).Style.Alignment.Vertical =
|
||||
XLAlignmentVerticalValues.Center;
|
||||
ws.Cell(row, 1).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell(row, 27).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Left;
|
||||
ws.Range(ws.Cell(row, 2), ws.Cell(row, 26)).Style.Alignment.Horizontal =
|
||||
XLAlignmentHorizontalValues.Right;
|
||||
ws.Range(ws.Cell(row, 2), ws.Cell(row, 26)).Style.NumberFormat.SetFormat("#,#0");
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 27)).Style.Border.OutsideBorder =
|
||||
XLBorderStyleValues.Thin;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 27)).Style.Border.RightBorder =
|
||||
XLBorderStyleValues.Thin;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 27)).Style.Border.LeftBorder =
|
||||
XLBorderStyleValues.Thin;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 27)).Style.Fill.BackgroundColor =
|
||||
XLColor.FromArgb(255, 242, 204);
|
||||
ws.Cell(row, 3).Style.NumberFormat.SetFormat("#,#0.0000");
|
||||
ws.Cell(row, 5).Style.NumberFormat.SetFormat("#,#0.0000");
|
||||
ws.Cell(row, 7).Style.NumberFormat.SetFormat("#,#0.0000");
|
||||
ws.Cell(row, 9).Style.NumberFormat.SetFormat("#,#0.0000");
|
||||
ws.Cell(row, 11).Style.NumberFormat.SetFormat("#,#0.0000");
|
||||
ws.Cell(row, 13).Style.NumberFormat.SetFormat("#,#0.0000");
|
||||
ws.Cell(row, 15).Style.NumberFormat.SetFormat("#,#0.0000");
|
||||
ws.Cell(row, 17).Style.NumberFormat.SetFormat("#,#0.0000");
|
||||
ws.Cell(row, 19).Style.NumberFormat.SetFormat("#,#0.0000");
|
||||
ws.Cell(row, 22).Style.NumberFormat.SetFormat("#,#0.0000");
|
||||
ws.Cell(row, 24).Style.NumberFormat.SetFormat("#,#0.0000");
|
||||
ws.Cell(row, 25).Style.NumberFormat.SetFormat("#,#0.0000");
|
||||
ws.Cell(row, 26).Style.NumberFormat.SetFormat("#,#0.0000");
|
||||
|
||||
row++;
|
||||
}
|
||||
|
||||
if (detail.topic_type == 1 && detail.topic != "รวมทั้งสิ้น")
|
||||
{
|
||||
ws.Cell(row, 1).Value = detail.topic;
|
||||
ws.Cell(row, 2).Value = detail.act_year1_1;
|
||||
ws.Cell(row, 3).Value = detail.act_year1_2;
|
||||
ws.Cell(row, 4).Value = detail.disbursement_results_1;
|
||||
ws.Cell(row, 5).Value = detail.disbursement_results_2;
|
||||
ws.Cell(row, 6).Value = detail.budget_act_year2_1;
|
||||
ws.Cell(row, 7).Value = detail.budget_act_year2_2;
|
||||
ws.Cell(row, 8).Value = detail.adjust_the_base_year2_1;
|
||||
ws.Cell(row, 9).Value = detail.adjust_the_base_year2_2;
|
||||
ws.Cell(row, 10).Value = detail.request_1;
|
||||
ws.Cell(row, 11).Value = detail.request_2;
|
||||
ws.Cell(row, 12).Value = detail.offer_account1_1;
|
||||
ws.Cell(row, 13).Value = detail.offer_account1_2;
|
||||
ws.Cell(row, 14).Value = detail.offer_increase_decrease_1;
|
||||
ws.Cell(row, 15).Value = detail.offer_increase_decrease_2;
|
||||
ws.Cell(row, 16).Value = detail.offer_new_rate_1;
|
||||
ws.Cell(row, 17).Value = detail.offer_new_rate_2;
|
||||
ws.Cell(row, 18).Value = detail.offer_total_1;
|
||||
ws.Cell(row, 19).Value = detail.offer_total_2;
|
||||
ws.Cell(row, 20).Value = detail.increase_decrease_from_year_1;
|
||||
ws.Cell(row, 21).Value = detail.increase_decrease_from_year_2;
|
||||
ws.Cell(row, 22).Value = detail.increase_decrease_from_year_3;
|
||||
ws.Cell(row, 23).Value = detail.increase_decrease_from_year_4;
|
||||
ws.Cell(row, 24).Value = detail.mtef_1;
|
||||
ws.Cell(row, 25).Value = detail.mtef_2;
|
||||
ws.Cell(row, 26).Value = detail.mtef_3;
|
||||
ws.Cell(row, 27).Value = detail.remark;
|
||||
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 27)).Style.Font.FontName =
|
||||
"TH SarabunPSK";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 27)).Style.Font.SetBold().Font.FontSize = 16;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 27)).Style.Alignment.WrapText = true;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 27)).Style.Alignment.Vertical =
|
||||
XLAlignmentVerticalValues.Center;
|
||||
ws.Cell(row, 1).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Left;
|
||||
ws.Cell(row, 27).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Left;
|
||||
ws.Range(ws.Cell(row, 2), ws.Cell(row, 26)).Style.Alignment.Horizontal =
|
||||
XLAlignmentHorizontalValues.Right;
|
||||
ws.Range(ws.Cell(row, 2), ws.Cell(row, 26)).Style.NumberFormat.SetFormat("#,#0");
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 27)).Style.Border.OutsideBorder =
|
||||
XLBorderStyleValues.Thin;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 27)).Style.Border.RightBorder =
|
||||
XLBorderStyleValues.Thin;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 27)).Style.Border.LeftBorder =
|
||||
XLBorderStyleValues.Thin;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 27)).Style.Fill.BackgroundColor =
|
||||
XLColor.FromArgb(255, 242, 204);
|
||||
ws.Cell(row, 3).Style.NumberFormat.SetFormat("#,#0.0000");
|
||||
ws.Cell(row, 5).Style.NumberFormat.SetFormat("#,#0.0000");
|
||||
ws.Cell(row, 7).Style.NumberFormat.SetFormat("#,#0.0000");
|
||||
ws.Cell(row, 9).Style.NumberFormat.SetFormat("#,#0.0000");
|
||||
ws.Cell(row, 11).Style.NumberFormat.SetFormat("#,#0.0000");
|
||||
ws.Cell(row, 13).Style.NumberFormat.SetFormat("#,#0.0000");
|
||||
ws.Cell(row, 15).Style.NumberFormat.SetFormat("#,#0.0000");
|
||||
ws.Cell(row, 17).Style.NumberFormat.SetFormat("#,#0.0000");
|
||||
ws.Cell(row, 19).Style.NumberFormat.SetFormat("#,#0.0000");
|
||||
ws.Cell(row, 22).Style.NumberFormat.SetFormat("#,#0.0000");
|
||||
ws.Cell(row, 24).Style.NumberFormat.SetFormat("#,#0.0000");
|
||||
ws.Cell(row, 25).Style.NumberFormat.SetFormat("#,#0.0000");
|
||||
ws.Cell(row, 26).Style.NumberFormat.SetFormat("#,#0.0000");
|
||||
|
||||
row++;
|
||||
}
|
||||
|
||||
if (detail.topic_type == 2)
|
||||
{
|
||||
ws.Cell(row, 1).Value = detail.topic;
|
||||
ws.Cell(row, 2).Value = detail.act_year1_1;
|
||||
ws.Cell(row, 3).Value = detail.act_year1_2;
|
||||
ws.Cell(row, 4).Value = detail.disbursement_results_1;
|
||||
ws.Cell(row, 5).Value = detail.disbursement_results_2;
|
||||
ws.Cell(row, 6).Value = detail.budget_act_year2_1;
|
||||
ws.Cell(row, 7).Value = detail.budget_act_year2_2;
|
||||
ws.Cell(row, 8).Value = detail.adjust_the_base_year2_1;
|
||||
ws.Cell(row, 9).Value = detail.adjust_the_base_year2_2;
|
||||
ws.Cell(row, 10).Value = detail.request_1;
|
||||
ws.Cell(row, 11).Value = detail.request_2;
|
||||
ws.Cell(row, 12).Value = detail.offer_account1_1;
|
||||
ws.Cell(row, 13).Value = detail.offer_account1_2;
|
||||
ws.Cell(row, 14).Value = detail.offer_increase_decrease_1;
|
||||
ws.Cell(row, 15).Value = detail.offer_increase_decrease_2;
|
||||
ws.Cell(row, 16).Value = detail.offer_new_rate_1;
|
||||
ws.Cell(row, 17).Value = detail.offer_new_rate_2;
|
||||
ws.Cell(row, 18).Value = detail.offer_total_1;
|
||||
ws.Cell(row, 19).Value = detail.offer_total_2;
|
||||
ws.Cell(row, 20).Value = detail.increase_decrease_from_year_1;
|
||||
ws.Cell(row, 21).Value = detail.increase_decrease_from_year_2;
|
||||
ws.Cell(row, 22).Value = detail.increase_decrease_from_year_3;
|
||||
ws.Cell(row, 23).Value = detail.increase_decrease_from_year_4;
|
||||
ws.Cell(row, 24).Value = detail.mtef_1;
|
||||
ws.Cell(row, 25).Value = detail.mtef_2;
|
||||
ws.Cell(row, 26).Value = detail.mtef_3;
|
||||
ws.Cell(row, 27).Value = detail.remark;
|
||||
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 27)).Style.Font.FontName =
|
||||
"TH SarabunPSK";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 27)).Style.Font.SetBold().Font.FontSize = 16;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 27)).Style.Alignment.WrapText = true;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 27)).Style.Alignment.Vertical =
|
||||
XLAlignmentVerticalValues.Center;
|
||||
ws.Cell(row, 1).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Left;
|
||||
ws.Cell(row, 27).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Left;
|
||||
ws.Range(ws.Cell(row, 2), ws.Cell(row, 26)).Style.Alignment.Horizontal =
|
||||
XLAlignmentHorizontalValues.Right;
|
||||
ws.Range(ws.Cell(row, 2), ws.Cell(row, 26)).Style.NumberFormat.SetFormat("#,#0");
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 27)).Style.Border.OutsideBorder =
|
||||
XLBorderStyleValues.Thin;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 27)).Style.Border.RightBorder =
|
||||
XLBorderStyleValues.Thin;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 27)).Style.Border.LeftBorder =
|
||||
XLBorderStyleValues.Thin;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 27)).Style.Fill.BackgroundColor =
|
||||
XLColor.FromArgb(198, 224, 180);
|
||||
ws.Cell(row, 3).Style.NumberFormat.SetFormat("#,#0.0000");
|
||||
ws.Cell(row, 5).Style.NumberFormat.SetFormat("#,#0.0000");
|
||||
ws.Cell(row, 7).Style.NumberFormat.SetFormat("#,#0.0000");
|
||||
ws.Cell(row, 9).Style.NumberFormat.SetFormat("#,#0.0000");
|
||||
ws.Cell(row, 11).Style.NumberFormat.SetFormat("#,#0.0000");
|
||||
ws.Cell(row, 13).Style.NumberFormat.SetFormat("#,#0.0000");
|
||||
ws.Cell(row, 15).Style.NumberFormat.SetFormat("#,#0.0000");
|
||||
ws.Cell(row, 17).Style.NumberFormat.SetFormat("#,#0.0000");
|
||||
ws.Cell(row, 19).Style.NumberFormat.SetFormat("#,#0.0000");
|
||||
ws.Cell(row, 22).Style.NumberFormat.SetFormat("#,#0.0000");
|
||||
ws.Cell(row, 24).Style.NumberFormat.SetFormat("#,#0.0000");
|
||||
ws.Cell(row, 25).Style.NumberFormat.SetFormat("#,#0.0000");
|
||||
ws.Cell(row, 26).Style.NumberFormat.SetFormat("#,#0.0000");
|
||||
row++;
|
||||
}
|
||||
|
||||
if (detail.topic_type == 3)
|
||||
{
|
||||
ws.Cell(row, 1).Value = detail.topic;
|
||||
ws.Cell(row, 2).Value = detail.act_year1_1;
|
||||
ws.Cell(row, 3).Value = detail.act_year1_2;
|
||||
ws.Cell(row, 4).Value = detail.disbursement_results_1;
|
||||
ws.Cell(row, 5).Value = detail.disbursement_results_2;
|
||||
ws.Cell(row, 6).Value = detail.budget_act_year2_1;
|
||||
ws.Cell(row, 7).Value = detail.budget_act_year2_2;
|
||||
ws.Cell(row, 8).Value = detail.adjust_the_base_year2_1;
|
||||
ws.Cell(row, 9).Value = detail.adjust_the_base_year2_2;
|
||||
ws.Cell(row, 10).Value = detail.request_1;
|
||||
ws.Cell(row, 11).Value = detail.request_2;
|
||||
ws.Cell(row, 12).Value = detail.offer_account1_1;
|
||||
ws.Cell(row, 13).Value = detail.offer_account1_2;
|
||||
ws.Cell(row, 14).Value = detail.offer_increase_decrease_1;
|
||||
ws.Cell(row, 15).Value = detail.offer_increase_decrease_2;
|
||||
ws.Cell(row, 16).Value = detail.offer_new_rate_1;
|
||||
ws.Cell(row, 17).Value = detail.offer_new_rate_2;
|
||||
ws.Cell(row, 18).Value = detail.offer_total_1;
|
||||
ws.Cell(row, 19).Value = detail.offer_total_2;
|
||||
ws.Cell(row, 20).Value = detail.increase_decrease_from_year_1;
|
||||
ws.Cell(row, 21).Value = detail.increase_decrease_from_year_2;
|
||||
ws.Cell(row, 22).Value = detail.increase_decrease_from_year_3;
|
||||
ws.Cell(row, 23).Value = detail.increase_decrease_from_year_4;
|
||||
ws.Cell(row, 24).Value = detail.mtef_1;
|
||||
ws.Cell(row, 25).Value = detail.mtef_2;
|
||||
ws.Cell(row, 26).Value = detail.mtef_3;
|
||||
ws.Cell(row, 27).Value = detail.remark;
|
||||
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 27)).Style.Font.FontName =
|
||||
"TH SarabunPSK";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 27)).Style.Font.SetBold().Font.FontSize = 16;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 27)).Style.Alignment.WrapText = true;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 27)).Style.Alignment.Vertical =
|
||||
XLAlignmentVerticalValues.Center;
|
||||
ws.Cell(row, 1).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Left;
|
||||
ws.Cell(row, 27).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Left;
|
||||
ws.Range(ws.Cell(row, 2), ws.Cell(row, 26)).Style.Alignment.Horizontal =
|
||||
XLAlignmentHorizontalValues.Right;
|
||||
ws.Range(ws.Cell(row, 2), ws.Cell(row, 26)).Style.NumberFormat.SetFormat("#,#0");
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 27)).Style.Border.OutsideBorder =
|
||||
XLBorderStyleValues.Thin;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 27)).Style.Border.RightBorder =
|
||||
XLBorderStyleValues.Thin;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 27)).Style.Border.LeftBorder =
|
||||
XLBorderStyleValues.Thin;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 27)).Style.Fill.BackgroundColor =
|
||||
XLColor.FromArgb(217, 225, 242);
|
||||
ws.Cell(row, 3).Style.NumberFormat.SetFormat("#,#0.0000");
|
||||
ws.Cell(row, 5).Style.NumberFormat.SetFormat("#,#0.0000");
|
||||
ws.Cell(row, 7).Style.NumberFormat.SetFormat("#,#0.0000");
|
||||
ws.Cell(row, 9).Style.NumberFormat.SetFormat("#,#0.0000");
|
||||
ws.Cell(row, 11).Style.NumberFormat.SetFormat("#,#0.0000");
|
||||
ws.Cell(row, 13).Style.NumberFormat.SetFormat("#,#0.0000");
|
||||
ws.Cell(row, 15).Style.NumberFormat.SetFormat("#,#0.0000");
|
||||
ws.Cell(row, 17).Style.NumberFormat.SetFormat("#,#0.0000");
|
||||
ws.Cell(row, 19).Style.NumberFormat.SetFormat("#,#0.0000");
|
||||
ws.Cell(row, 22).Style.NumberFormat.SetFormat("#,#0.0000");
|
||||
ws.Cell(row, 24).Style.NumberFormat.SetFormat("#,#0.0000");
|
||||
ws.Cell(row, 25).Style.NumberFormat.SetFormat("#,#0.0000");
|
||||
ws.Cell(row, 26).Style.NumberFormat.SetFormat("#,#0.0000");
|
||||
row++;
|
||||
}
|
||||
|
||||
if (detail.topic_type == 4)
|
||||
{
|
||||
ws.Cell(row, 1).Value = detail.topic;
|
||||
ws.Cell(row, 2).Value = detail.act_year1_1;
|
||||
ws.Cell(row, 3).Value = detail.act_year1_2;
|
||||
ws.Cell(row, 4).Value = detail.disbursement_results_1;
|
||||
ws.Cell(row, 5).Value = detail.disbursement_results_2;
|
||||
ws.Cell(row, 6).Value = detail.budget_act_year2_1;
|
||||
ws.Cell(row, 7).Value = detail.budget_act_year2_2;
|
||||
ws.Cell(row, 8).Value = detail.adjust_the_base_year2_1;
|
||||
ws.Cell(row, 9).Value = detail.adjust_the_base_year2_2;
|
||||
ws.Cell(row, 10).Value = detail.request_1;
|
||||
ws.Cell(row, 11).Value = detail.request_2;
|
||||
ws.Cell(row, 12).Value = detail.offer_account1_1;
|
||||
ws.Cell(row, 13).Value = detail.offer_account1_2;
|
||||
ws.Cell(row, 14).Value = detail.offer_increase_decrease_1;
|
||||
ws.Cell(row, 15).Value = detail.offer_increase_decrease_2;
|
||||
ws.Cell(row, 16).Value = detail.offer_new_rate_1;
|
||||
ws.Cell(row, 17).Value = detail.offer_new_rate_2;
|
||||
ws.Cell(row, 18).Value = detail.offer_total_1;
|
||||
ws.Cell(row, 19).Value = detail.offer_total_2;
|
||||
ws.Cell(row, 20).Value = detail.increase_decrease_from_year_1;
|
||||
ws.Cell(row, 21).Value = detail.increase_decrease_from_year_2;
|
||||
ws.Cell(row, 22).Value = detail.increase_decrease_from_year_3;
|
||||
ws.Cell(row, 23).Value = detail.increase_decrease_from_year_4;
|
||||
ws.Cell(row, 24).Value = detail.mtef_1;
|
||||
ws.Cell(row, 25).Value = detail.mtef_2;
|
||||
ws.Cell(row, 26).Value = detail.mtef_3;
|
||||
ws.Cell(row, 27).Value = detail.remark;
|
||||
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 27)).Style.Font.FontName =
|
||||
"TH SarabunPSK";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 27)).Style.Font.SetBold().Font.FontSize = 16;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 27)).Style.Alignment.WrapText = true;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 27)).Style.Alignment.Vertical =
|
||||
XLAlignmentVerticalValues.Center;
|
||||
ws.Cell(row, 1).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Left;
|
||||
ws.Cell(row, 27).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Left;
|
||||
ws.Range(ws.Cell(row, 2), ws.Cell(row, 26)).Style.Alignment.Horizontal =
|
||||
XLAlignmentHorizontalValues.Right;
|
||||
ws.Range(ws.Cell(row, 2), ws.Cell(row, 26)).Style.NumberFormat.SetFormat("#,#0");
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 27)).Style.Border.OutsideBorder =
|
||||
XLBorderStyleValues.Thin;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 27)).Style.Border.RightBorder =
|
||||
XLBorderStyleValues.Thin;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 27)).Style.Border.LeftBorder =
|
||||
XLBorderStyleValues.Thin;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 27)).Style.Fill.BackgroundColor =
|
||||
XLColor.FromArgb(252, 228, 214);
|
||||
ws.Cell(row, 3).Style.NumberFormat.SetFormat("#,#0.0000");
|
||||
ws.Cell(row, 5).Style.NumberFormat.SetFormat("#,#0.0000");
|
||||
ws.Cell(row, 7).Style.NumberFormat.SetFormat("#,#0.0000");
|
||||
ws.Cell(row, 9).Style.NumberFormat.SetFormat("#,#0.0000");
|
||||
ws.Cell(row, 11).Style.NumberFormat.SetFormat("#,#0.0000");
|
||||
ws.Cell(row, 13).Style.NumberFormat.SetFormat("#,#0.0000");
|
||||
ws.Cell(row, 15).Style.NumberFormat.SetFormat("#,#0.0000");
|
||||
ws.Cell(row, 17).Style.NumberFormat.SetFormat("#,#0.0000");
|
||||
ws.Cell(row, 19).Style.NumberFormat.SetFormat("#,#0.0000");
|
||||
ws.Cell(row, 22).Style.NumberFormat.SetFormat("#,#0.0000");
|
||||
ws.Cell(row, 24).Style.NumberFormat.SetFormat("#,#0.0000");
|
||||
ws.Cell(row, 25).Style.NumberFormat.SetFormat("#,#0.0000");
|
||||
ws.Cell(row, 26).Style.NumberFormat.SetFormat("#,#0.0000");
|
||||
row++;
|
||||
}
|
||||
|
||||
if (detail.topic_type == 5)
|
||||
{
|
||||
ws.Cell(row, 1).Value = detail.topic;
|
||||
ws.Cell(row, 2).Value = detail.act_year1_1;
|
||||
ws.Cell(row, 3).Value = detail.act_year1_2;
|
||||
ws.Cell(row, 4).Value = detail.disbursement_results_1;
|
||||
ws.Cell(row, 5).Value = detail.disbursement_results_2;
|
||||
ws.Cell(row, 6).Value = detail.budget_act_year2_1;
|
||||
ws.Cell(row, 7).Value = detail.budget_act_year2_2;
|
||||
ws.Cell(row, 8).Value = detail.adjust_the_base_year2_1;
|
||||
ws.Cell(row, 9).Value = detail.adjust_the_base_year2_2;
|
||||
ws.Cell(row, 10).Value = detail.request_1;
|
||||
ws.Cell(row, 11).Value = detail.request_2;
|
||||
ws.Cell(row, 12).Value = detail.offer_account1_1;
|
||||
ws.Cell(row, 13).Value = detail.offer_account1_2;
|
||||
ws.Cell(row, 14).Value = detail.offer_increase_decrease_1;
|
||||
ws.Cell(row, 15).Value = detail.offer_increase_decrease_2;
|
||||
ws.Cell(row, 16).Value = detail.offer_new_rate_1;
|
||||
ws.Cell(row, 17).Value = detail.offer_new_rate_2;
|
||||
ws.Cell(row, 18).Value = detail.offer_total_1;
|
||||
ws.Cell(row, 19).Value = detail.offer_total_2;
|
||||
ws.Cell(row, 20).Value = detail.increase_decrease_from_year_1;
|
||||
ws.Cell(row, 21).Value = detail.increase_decrease_from_year_2;
|
||||
ws.Cell(row, 22).Value = detail.increase_decrease_from_year_3;
|
||||
ws.Cell(row, 23).Value = detail.increase_decrease_from_year_4;
|
||||
ws.Cell(row, 24).Value = detail.mtef_1;
|
||||
ws.Cell(row, 25).Value = detail.mtef_2;
|
||||
ws.Cell(row, 26).Value = detail.mtef_3;
|
||||
ws.Cell(row, 27).Value = detail.remark;
|
||||
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 27)).Style.Font.FontName =
|
||||
"TH SarabunPSK";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 27)).Style.Font.SetBold().Font.FontSize = 16;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 27)).Style.Alignment.WrapText = true;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 27)).Style.Alignment.Vertical =
|
||||
XLAlignmentVerticalValues.Center;
|
||||
ws.Cell(row, 1).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Left;
|
||||
ws.Cell(row, 27).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Left;
|
||||
ws.Range(ws.Cell(row, 2), ws.Cell(row, 26)).Style.Alignment.Horizontal =
|
||||
XLAlignmentHorizontalValues.Right;
|
||||
ws.Range(ws.Cell(row, 2), ws.Cell(row, 26)).Style.NumberFormat.SetFormat("#,#0");
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 27)).Style.Border.OutsideBorder =
|
||||
XLBorderStyleValues.Thin;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 27)).Style.Border.RightBorder =
|
||||
XLBorderStyleValues.Thin;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 27)).Style.Border.LeftBorder =
|
||||
XLBorderStyleValues.Thin;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 27)).Style.Fill.BackgroundColor =
|
||||
XLColor.FromArgb(226, 239, 218);
|
||||
ws.Cell(row, 3).Style.NumberFormat.SetFormat("#,#0.0000");
|
||||
ws.Cell(row, 5).Style.NumberFormat.SetFormat("#,#0.0000");
|
||||
ws.Cell(row, 7).Style.NumberFormat.SetFormat("#,#0.0000");
|
||||
ws.Cell(row, 9).Style.NumberFormat.SetFormat("#,#0.0000");
|
||||
ws.Cell(row, 11).Style.NumberFormat.SetFormat("#,#0.0000");
|
||||
ws.Cell(row, 13).Style.NumberFormat.SetFormat("#,#0.0000");
|
||||
ws.Cell(row, 15).Style.NumberFormat.SetFormat("#,#0.0000");
|
||||
ws.Cell(row, 17).Style.NumberFormat.SetFormat("#,#0.0000");
|
||||
ws.Cell(row, 19).Style.NumberFormat.SetFormat("#,#0.0000");
|
||||
ws.Cell(row, 22).Style.NumberFormat.SetFormat("#,#0.0000");
|
||||
ws.Cell(row, 24).Style.NumberFormat.SetFormat("#,#0.0000");
|
||||
ws.Cell(row, 25).Style.NumberFormat.SetFormat("#,#0.0000");
|
||||
ws.Cell(row, 26).Style.NumberFormat.SetFormat("#,#0.0000");
|
||||
row++;
|
||||
}
|
||||
|
||||
if (detail.topic_type == 6)
|
||||
{
|
||||
ws.Cell(row, 1).Value = " " + detail.topic;
|
||||
ws.Cell(row, 2).Value = detail.act_year1_1;
|
||||
ws.Cell(row, 3).Value = detail.act_year1_2;
|
||||
ws.Cell(row, 4).Value = detail.disbursement_results_1;
|
||||
ws.Cell(row, 5).Value = detail.disbursement_results_2;
|
||||
ws.Cell(row, 6).Value = detail.budget_act_year2_1;
|
||||
ws.Cell(row, 7).Value = detail.budget_act_year2_2;
|
||||
ws.Cell(row, 8).Value = detail.adjust_the_base_year2_1;
|
||||
ws.Cell(row, 9).Value = detail.adjust_the_base_year2_2;
|
||||
ws.Cell(row, 10).Value = detail.request_1;
|
||||
ws.Cell(row, 11).Value = detail.request_2;
|
||||
ws.Cell(row, 12).Value = detail.offer_account1_1;
|
||||
ws.Cell(row, 13).Value = detail.offer_account1_2;
|
||||
ws.Cell(row, 14).Value = detail.offer_increase_decrease_1;
|
||||
ws.Cell(row, 15).Value = detail.offer_increase_decrease_2;
|
||||
ws.Cell(row, 16).Value = detail.offer_new_rate_1;
|
||||
ws.Cell(row, 17).Value = detail.offer_new_rate_2;
|
||||
ws.Cell(row, 18).Value = detail.offer_total_1;
|
||||
ws.Cell(row, 19).Value = detail.offer_total_2;
|
||||
ws.Cell(row, 20).Value = detail.increase_decrease_from_year_1;
|
||||
ws.Cell(row, 21).Value = detail.increase_decrease_from_year_2;
|
||||
ws.Cell(row, 22).Value = detail.increase_decrease_from_year_3;
|
||||
ws.Cell(row, 23).Value = detail.increase_decrease_from_year_4;
|
||||
ws.Cell(row, 24).Value = detail.mtef_1;
|
||||
ws.Cell(row, 25).Value = detail.mtef_2;
|
||||
ws.Cell(row, 26).Value = detail.mtef_3;
|
||||
ws.Cell(row, 27).Value = detail.remark;
|
||||
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 27)).Style.Font.FontName =
|
||||
"TH SarabunPSK";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 27)).Style.Font.SetBold().Font.FontSize = 16;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 27)).Style.Alignment.WrapText = true;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 27)).Style.Alignment.Vertical =
|
||||
XLAlignmentVerticalValues.Center;
|
||||
ws.Cell(row, 1).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Left;
|
||||
ws.Cell(row, 27).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Left;
|
||||
ws.Range(ws.Cell(row, 2), ws.Cell(row, 26)).Style.Alignment.Horizontal =
|
||||
XLAlignmentHorizontalValues.Right;
|
||||
ws.Range(ws.Cell(row, 2), ws.Cell(row, 26)).Style.NumberFormat.SetFormat("#,#0");
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 27)).Style.Border.OutsideBorder =
|
||||
XLBorderStyleValues.Thin;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 27)).Style.Border.RightBorder =
|
||||
XLBorderStyleValues.Thin;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 27)).Style.Border.LeftBorder =
|
||||
XLBorderStyleValues.Thin;
|
||||
//ws.Range(ws.Cell(row, 1), ws.Cell(row, 27)).Style.Fill.BackgroundColor = XLColor.FromArgb(252, 228, 214);
|
||||
ws.Cell(row, 3).Style.NumberFormat.SetFormat("#,#0.0000");
|
||||
ws.Cell(row, 5).Style.NumberFormat.SetFormat("#,#0.0000");
|
||||
ws.Cell(row, 7).Style.NumberFormat.SetFormat("#,#0.0000");
|
||||
ws.Cell(row, 9).Style.NumberFormat.SetFormat("#,#0.0000");
|
||||
ws.Cell(row, 11).Style.NumberFormat.SetFormat("#,#0.0000");
|
||||
ws.Cell(row, 13).Style.NumberFormat.SetFormat("#,#0.0000");
|
||||
ws.Cell(row, 15).Style.NumberFormat.SetFormat("#,#0.0000");
|
||||
ws.Cell(row, 17).Style.NumberFormat.SetFormat("#,#0.0000");
|
||||
ws.Cell(row, 19).Style.NumberFormat.SetFormat("#,#0.0000");
|
||||
ws.Cell(row, 22).Style.NumberFormat.SetFormat("#,#0.0000");
|
||||
ws.Cell(row, 24).Style.NumberFormat.SetFormat("#,#0.0000");
|
||||
ws.Cell(row, 25).Style.NumberFormat.SetFormat("#,#0.0000");
|
||||
ws.Cell(row, 26).Style.NumberFormat.SetFormat("#,#0.0000");
|
||||
row++;
|
||||
}
|
||||
|
||||
if (detail.topic_type == 7)
|
||||
{
|
||||
ws.Cell(row, 1).Value = " " + detail.topic;
|
||||
ws.Cell(row, 2).Value = detail.act_year1_1;
|
||||
ws.Cell(row, 3).Value = detail.act_year1_2;
|
||||
ws.Cell(row, 4).Value = detail.disbursement_results_1;
|
||||
ws.Cell(row, 5).Value = detail.disbursement_results_2;
|
||||
ws.Cell(row, 6).Value = detail.budget_act_year2_1;
|
||||
ws.Cell(row, 7).Value = detail.budget_act_year2_2;
|
||||
ws.Cell(row, 8).Value = detail.adjust_the_base_year2_1;
|
||||
ws.Cell(row, 9).Value = detail.adjust_the_base_year2_2;
|
||||
ws.Cell(row, 10).Value = detail.request_1;
|
||||
ws.Cell(row, 11).Value = detail.request_2;
|
||||
ws.Cell(row, 12).Value = detail.offer_account1_1;
|
||||
ws.Cell(row, 13).Value = detail.offer_account1_2;
|
||||
ws.Cell(row, 14).Value = detail.offer_increase_decrease_1;
|
||||
ws.Cell(row, 15).Value = detail.offer_increase_decrease_2;
|
||||
ws.Cell(row, 16).Value = detail.offer_new_rate_1;
|
||||
ws.Cell(row, 17).Value = detail.offer_new_rate_2;
|
||||
ws.Cell(row, 18).Value = detail.offer_total_1;
|
||||
ws.Cell(row, 19).Value = detail.offer_total_2;
|
||||
ws.Cell(row, 20).Value = detail.increase_decrease_from_year_1;
|
||||
ws.Cell(row, 21).Value = detail.increase_decrease_from_year_2;
|
||||
ws.Cell(row, 22).Value = detail.increase_decrease_from_year_3;
|
||||
ws.Cell(row, 23).Value = detail.increase_decrease_from_year_4;
|
||||
ws.Cell(row, 24).Value = detail.mtef_1;
|
||||
ws.Cell(row, 25).Value = detail.mtef_2;
|
||||
ws.Cell(row, 26).Value = detail.mtef_3;
|
||||
ws.Cell(row, 27).Value = detail.remark;
|
||||
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 27)).Style.Font.FontName =
|
||||
"TH SarabunPSK";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 27)).Style.Font.SetBold().Font.FontSize = 16;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 27)).Style.Alignment.WrapText = true;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 27)).Style.Alignment.Vertical =
|
||||
XLAlignmentVerticalValues.Center;
|
||||
ws.Cell(row, 1).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Left;
|
||||
ws.Cell(row, 27).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Left;
|
||||
ws.Range(ws.Cell(row, 2), ws.Cell(row, 26)).Style.Alignment.Horizontal =
|
||||
XLAlignmentHorizontalValues.Right;
|
||||
ws.Range(ws.Cell(row, 2), ws.Cell(row, 26)).Style.NumberFormat.SetFormat("#,#0");
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 27)).Style.Border.OutsideBorder =
|
||||
XLBorderStyleValues.Thin;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 27)).Style.Border.RightBorder =
|
||||
XLBorderStyleValues.Thin;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 27)).Style.Border.LeftBorder =
|
||||
XLBorderStyleValues.Thin;
|
||||
//ws.Range(ws.Cell(row, 1), ws.Cell(row, 27)).Style.Fill.BackgroundColor = XLColor.FromArgb(226, 239, 218);
|
||||
ws.Cell(row, 3).Style.NumberFormat.SetFormat("#,#0.0000");
|
||||
ws.Cell(row, 5).Style.NumberFormat.SetFormat("#,#0.0000");
|
||||
ws.Cell(row, 7).Style.NumberFormat.SetFormat("#,#0.0000");
|
||||
ws.Cell(row, 9).Style.NumberFormat.SetFormat("#,#0.0000");
|
||||
ws.Cell(row, 11).Style.NumberFormat.SetFormat("#,#0.0000");
|
||||
ws.Cell(row, 13).Style.NumberFormat.SetFormat("#,#0.0000");
|
||||
ws.Cell(row, 15).Style.NumberFormat.SetFormat("#,#0.0000");
|
||||
ws.Cell(row, 17).Style.NumberFormat.SetFormat("#,#0.0000");
|
||||
ws.Cell(row, 19).Style.NumberFormat.SetFormat("#,#0.0000");
|
||||
ws.Cell(row, 22).Style.NumberFormat.SetFormat("#,#0.0000");
|
||||
ws.Cell(row, 24).Style.NumberFormat.SetFormat("#,#0.0000");
|
||||
ws.Cell(row, 25).Style.NumberFormat.SetFormat("#,#0.0000");
|
||||
ws.Cell(row, 26).Style.NumberFormat.SetFormat("#,#0.0000");
|
||||
row++;
|
||||
}
|
||||
|
||||
if (detail.topic_type == 8)
|
||||
{
|
||||
ws.Cell(row, 1).Value = " " + detail.topic;
|
||||
ws.Cell(row, 2).Value = detail.act_year1_1;
|
||||
ws.Cell(row, 3).Value = detail.act_year1_2;
|
||||
ws.Cell(row, 4).Value = detail.disbursement_results_1;
|
||||
ws.Cell(row, 5).Value = detail.disbursement_results_2;
|
||||
ws.Cell(row, 6).Value = detail.budget_act_year2_1;
|
||||
ws.Cell(row, 7).Value = detail.budget_act_year2_2;
|
||||
ws.Cell(row, 8).Value = detail.adjust_the_base_year2_1;
|
||||
ws.Cell(row, 9).Value = detail.adjust_the_base_year2_2;
|
||||
ws.Cell(row, 10).Value = detail.request_1;
|
||||
ws.Cell(row, 11).Value = detail.request_2;
|
||||
ws.Cell(row, 12).Value = detail.offer_account1_1;
|
||||
ws.Cell(row, 13).Value = detail.offer_account1_2;
|
||||
ws.Cell(row, 14).Value = detail.offer_increase_decrease_1;
|
||||
ws.Cell(row, 15).Value = detail.offer_increase_decrease_2;
|
||||
ws.Cell(row, 16).Value = detail.offer_new_rate_1;
|
||||
ws.Cell(row, 17).Value = detail.offer_new_rate_2;
|
||||
ws.Cell(row, 18).Value = detail.offer_total_1;
|
||||
ws.Cell(row, 19).Value = detail.offer_total_2;
|
||||
ws.Cell(row, 20).Value = detail.increase_decrease_from_year_1;
|
||||
ws.Cell(row, 21).Value = detail.increase_decrease_from_year_2;
|
||||
ws.Cell(row, 22).Value = detail.increase_decrease_from_year_3;
|
||||
ws.Cell(row, 23).Value = detail.increase_decrease_from_year_4;
|
||||
ws.Cell(row, 24).Value = detail.mtef_1;
|
||||
ws.Cell(row, 25).Value = detail.mtef_2;
|
||||
ws.Cell(row, 26).Value = detail.mtef_3;
|
||||
ws.Cell(row, 27).Value = detail.remark;
|
||||
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 27)).Style.Font.FontName =
|
||||
"TH SarabunPSK";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 27)).Style.Font.FontSize = 16;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 27)).Style.Alignment.WrapText = true;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 27)).Style.Alignment.Vertical =
|
||||
XLAlignmentVerticalValues.Center;
|
||||
ws.Cell(row, 1).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Left;
|
||||
ws.Cell(row, 27).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Left;
|
||||
ws.Range(ws.Cell(row, 2), ws.Cell(row, 26)).Style.Alignment.Horizontal =
|
||||
XLAlignmentHorizontalValues.Right;
|
||||
ws.Range(ws.Cell(row, 2), ws.Cell(row, 26)).Style.NumberFormat.SetFormat("#,#0");
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 27)).Style.Border.OutsideBorder =
|
||||
XLBorderStyleValues.Thin;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 27)).Style.Border.RightBorder =
|
||||
XLBorderStyleValues.Thin;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 27)).Style.Border.LeftBorder =
|
||||
XLBorderStyleValues.Thin;
|
||||
//ws.Range(ws.Cell(row, 1), ws.Cell(row, 27)).Style.Fill.BackgroundColor = XLColor.FromArgb(226, 239, 218);
|
||||
ws.Cell(row, 3).Style.NumberFormat.SetFormat("#,#0.0000");
|
||||
ws.Cell(row, 5).Style.NumberFormat.SetFormat("#,#0.0000");
|
||||
ws.Cell(row, 7).Style.NumberFormat.SetFormat("#,#0.0000");
|
||||
ws.Cell(row, 9).Style.NumberFormat.SetFormat("#,#0.0000");
|
||||
ws.Cell(row, 11).Style.NumberFormat.SetFormat("#,#0.0000");
|
||||
ws.Cell(row, 13).Style.NumberFormat.SetFormat("#,#0.0000");
|
||||
ws.Cell(row, 15).Style.NumberFormat.SetFormat("#,#0.0000");
|
||||
ws.Cell(row, 17).Style.NumberFormat.SetFormat("#,#0.0000");
|
||||
ws.Cell(row, 19).Style.NumberFormat.SetFormat("#,#0.0000");
|
||||
ws.Cell(row, 22).Style.NumberFormat.SetFormat("#,#0.0000");
|
||||
ws.Cell(row, 24).Style.NumberFormat.SetFormat("#,#0.0000");
|
||||
ws.Cell(row, 25).Style.NumberFormat.SetFormat("#,#0.0000");
|
||||
ws.Cell(row, 26).Style.NumberFormat.SetFormat("#,#0.0000");
|
||||
row++;
|
||||
}
|
||||
|
||||
if (detail.topic_type == 9)
|
||||
{
|
||||
ws.Cell(row, 1).Value = " " + detail.topic;
|
||||
ws.Cell(row, 2).Value = detail.act_year1_1;
|
||||
ws.Cell(row, 3).Value = detail.act_year1_2;
|
||||
ws.Cell(row, 4).Value = detail.disbursement_results_1;
|
||||
ws.Cell(row, 5).Value = detail.disbursement_results_2;
|
||||
ws.Cell(row, 6).Value = detail.budget_act_year2_1;
|
||||
ws.Cell(row, 7).Value = detail.budget_act_year2_2;
|
||||
ws.Cell(row, 8).Value = detail.adjust_the_base_year2_1;
|
||||
ws.Cell(row, 9).Value = detail.adjust_the_base_year2_2;
|
||||
ws.Cell(row, 10).Value = detail.request_1;
|
||||
ws.Cell(row, 11).Value = detail.request_2;
|
||||
ws.Cell(row, 12).Value = detail.offer_account1_1;
|
||||
ws.Cell(row, 13).Value = detail.offer_account1_2;
|
||||
ws.Cell(row, 14).Value = detail.offer_increase_decrease_1;
|
||||
ws.Cell(row, 15).Value = detail.offer_increase_decrease_2;
|
||||
ws.Cell(row, 16).Value = detail.offer_new_rate_1;
|
||||
ws.Cell(row, 17).Value = detail.offer_new_rate_2;
|
||||
ws.Cell(row, 18).Value = detail.offer_total_1;
|
||||
ws.Cell(row, 19).Value = detail.offer_total_2;
|
||||
ws.Cell(row, 20).Value = detail.increase_decrease_from_year_1;
|
||||
ws.Cell(row, 21).Value = detail.increase_decrease_from_year_2;
|
||||
ws.Cell(row, 22).Value = detail.increase_decrease_from_year_3;
|
||||
ws.Cell(row, 23).Value = detail.increase_decrease_from_year_4;
|
||||
ws.Cell(row, 24).Value = detail.mtef_1;
|
||||
ws.Cell(row, 25).Value = detail.mtef_2;
|
||||
ws.Cell(row, 26).Value = detail.mtef_3;
|
||||
ws.Cell(row, 27).Value = detail.remark;
|
||||
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 27)).Style.Font.FontName =
|
||||
"TH SarabunPSK";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 27)).Style.Font.FontSize = 16;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 27)).Style.Alignment.WrapText = true;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 27)).Style.Alignment.Vertical =
|
||||
XLAlignmentVerticalValues.Center;
|
||||
ws.Cell(row, 1).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Left;
|
||||
ws.Cell(row, 27).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Left;
|
||||
ws.Range(ws.Cell(row, 2), ws.Cell(row, 26)).Style.Alignment.Horizontal =
|
||||
XLAlignmentHorizontalValues.Right;
|
||||
ws.Range(ws.Cell(row, 2), ws.Cell(row, 26)).Style.NumberFormat.SetFormat("#,#0");
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 27)).Style.Border.OutsideBorder =
|
||||
XLBorderStyleValues.Thin;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 27)).Style.Border.RightBorder =
|
||||
XLBorderStyleValues.Thin;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 27)).Style.Border.LeftBorder =
|
||||
XLBorderStyleValues.Thin;
|
||||
//ws.Range(ws.Cell(row, 1), ws.Cell(row, 27)).Style.Fill.BackgroundColor = XLColor.FromArgb(226, 239, 218);
|
||||
ws.Cell(row, 3).Style.NumberFormat.SetFormat("#,#0.0000");
|
||||
ws.Cell(row, 5).Style.NumberFormat.SetFormat("#,#0.0000");
|
||||
ws.Cell(row, 7).Style.NumberFormat.SetFormat("#,#0.0000");
|
||||
ws.Cell(row, 9).Style.NumberFormat.SetFormat("#,#0.0000");
|
||||
ws.Cell(row, 11).Style.NumberFormat.SetFormat("#,#0.0000");
|
||||
ws.Cell(row, 13).Style.NumberFormat.SetFormat("#,#0.0000");
|
||||
ws.Cell(row, 15).Style.NumberFormat.SetFormat("#,#0.0000");
|
||||
ws.Cell(row, 17).Style.NumberFormat.SetFormat("#,#0.0000");
|
||||
ws.Cell(row, 19).Style.NumberFormat.SetFormat("#,#0.0000");
|
||||
ws.Cell(row, 22).Style.NumberFormat.SetFormat("#,#0.0000");
|
||||
ws.Cell(row, 24).Style.NumberFormat.SetFormat("#,#0.0000");
|
||||
ws.Cell(row, 25).Style.NumberFormat.SetFormat("#,#0.0000");
|
||||
ws.Cell(row, 26).Style.NumberFormat.SetFormat("#,#0.0000");
|
||||
row++;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
ws.Cell(row, 1).Value =
|
||||
"หมายเหตุ : 1. บัญชี 2 หมายถึง อัตราใหม่ เงินเพิ่มอื่นที่จ่ายควบกับเงินเดือนและค่าใช้จ่ายตามสิทธิที่กฎหมายกำหนดให้จ่ายแก่อัตราตั้งใหม่ 2. การกำหนดทะเบียนรายการ /ชื่อรายการ ต้องตรงกับชื่อที่กำหนดไว้ตามกฎหมาย และระเบียบที่เกี่ยวข้อง";
|
||||
ws.Cell(row, 1).Style.Font.FontName =
|
||||
"TH SarabunPSK";
|
||||
ws.Cell(row, 1).Style.Font.FontSize = 16;
|
||||
ws.Cell(row, 1).Style.Alignment.WrapText = true;
|
||||
}
|
||||
|
||||
using (var stream1 = new MemoryStream())
|
||||
@@ -9766,7 +10454,7 @@ namespace rmutr_report.Controllers
|
||||
return File(
|
||||
content,
|
||||
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
|
||||
"budget_proposal_details_" + date + ".xlsx");
|
||||
"budget_expenditure_proposal_" + date + ".xlsx");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
1249
Controllers/PersonnelReportController.cs
Normal file
1249
Controllers/PersonnelReportController.cs
Normal file
File diff suppressed because it is too large
Load Diff
@@ -1,5 +1,6 @@
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using ClosedXML.Excel;
|
||||
using FastReport;
|
||||
using FastReport.Export.Csv;
|
||||
@@ -13,47 +14,391 @@ using Swashbuckle.AspNetCore.Annotations;
|
||||
namespace rmutr_report.Controllers
|
||||
{
|
||||
[SwaggerTag("สำหรับรายงานคำขอโครงการพันธุกรรมพืช ง.5-2.1")]
|
||||
public class plant_genetic_conservation_project: Controller
|
||||
public class plant_genetic_conservation_project : Controller
|
||||
{
|
||||
readonly Setting _setting;
|
||||
readonly Setting _setting;
|
||||
|
||||
public plant_genetic_conservation_project(Setting setting)
|
||||
{
|
||||
this._setting = setting;
|
||||
}
|
||||
[HttpPost, Route("reports/plant_genetic_conservation_project/{type}")]
|
||||
[ApiExplorerSettings(GroupName = "reports")]
|
||||
public IActionResult GetConservationProjectReport([FromRoute] string type, [FromBody] conservation_project project)
|
||||
{
|
||||
|
||||
foreach (var v in project.five)
|
||||
{
|
||||
string na = "ประเด็นยุทธศาสตร์ที่ " ;
|
||||
v.strategic_issues = na + v.strategic_issues;
|
||||
string na2 = "กลยุทธ์ที่ " ;
|
||||
v.measure = na2 + v.measure;
|
||||
}
|
||||
foreach (var v in project.eleventh)
|
||||
{
|
||||
foreach (var vv in v.elevenths)
|
||||
{
|
||||
|
||||
string na = "ครั้งที่ ";
|
||||
vv.the_time = na + vv.the_time;
|
||||
// string na2 = " จำนวน ";
|
||||
// vv.count_day = na2 + vv.count_day + " วัน";
|
||||
// if (project.count_day != null)
|
||||
// {
|
||||
// project.text3 = "จำนวน " + project.count_day + " วัน";
|
||||
// }
|
||||
[HttpPost, Route("reports/plant_genetic_conservation_project/{type}")]
|
||||
[ApiExplorerSettings(GroupName = "reports")]
|
||||
public IActionResult GetConservationProjectReport([FromRoute] string type,
|
||||
[FromBody] project_principle_rationale project)
|
||||
{
|
||||
if (project != null)
|
||||
{
|
||||
if (project.activity.Any())
|
||||
{
|
||||
if (project.activity == null)
|
||||
{
|
||||
foreach (var detail in project.activity)
|
||||
{
|
||||
detail.activity = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
project.activity.Add(new activity_data()
|
||||
{
|
||||
activity = ""
|
||||
});
|
||||
}
|
||||
if (project.ninth != null)
|
||||
{
|
||||
foreach (var vv in project.ninth)
|
||||
{
|
||||
if (vv.clause == "9.1 ตัวชี้วัดผลสัมฤทธิ์")
|
||||
{
|
||||
vv.clause = "12.1 ตัวชี้วัดผลสัมฤทธิ์";
|
||||
}
|
||||
|
||||
if (vv.clause == "9.2 ตัวชี้วัดเชิงนโยบาย")
|
||||
{
|
||||
vv.clause = "12.2 ตัวชี้วัดเชิงนโยบาย";
|
||||
}
|
||||
|
||||
if (vv.ninths.Any())
|
||||
{
|
||||
if (vv.ninths == null)
|
||||
{
|
||||
foreach (var detail6 in vv.ninths)
|
||||
{
|
||||
detail6.detail = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
vv.ninths.Add(new ninth_data_detail()
|
||||
{
|
||||
detail = ""
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (project.sixteenths != null)
|
||||
{
|
||||
int t = 1;
|
||||
|
||||
foreach (var sixteenthData in project.sixteenths)
|
||||
{
|
||||
string a = "กิจกรรมที่ " + t + " ";
|
||||
var sum1 = sixteenthData.sixteenths2.Sum(d => d.salaya);
|
||||
var sum2 = sixteenthData.sixteenths2.Sum(d => d.bophitphimuk);
|
||||
var sum3 = sixteenthData.sixteenths2.Sum(d => d.pohchang);
|
||||
var sum4 = sixteenthData.sixteenths2.Sum(d => d.klai_kangwon);
|
||||
sixteenthData.salaya_total = sum1;
|
||||
sixteenthData.bophitphimuk_total = sum2;
|
||||
sixteenthData.pohchang_total = sum3;
|
||||
sixteenthData.klai_kangwon_total = sum4;
|
||||
if (sixteenthData.activity_table != null)
|
||||
{
|
||||
sixteenthData.activity_table = a + sixteenthData.activity_table;
|
||||
}
|
||||
|
||||
if (sixteenthData.activity_table == null)
|
||||
{
|
||||
sixteenthData.activity_table = null;
|
||||
}
|
||||
if (sixteenthData.total_target != null)
|
||||
{
|
||||
project.text1 = "ผลรวมกลุ่มเป้าหมาย " + sixteenthData.total_target;
|
||||
}
|
||||
|
||||
if (sixteenthData.total_target == null)
|
||||
{
|
||||
project.text1 = "ผลรวมกลุ่มเป้าหมาย -";
|
||||
}
|
||||
|
||||
if (sixteenthData.total_board != null)
|
||||
{
|
||||
project.text2 = "ผลรวมคณะกรรมการ " + sixteenthData.total_board;
|
||||
}
|
||||
|
||||
if (sixteenthData.total_board == null)
|
||||
{
|
||||
project.text2 = "ผลรวมคณะกรรมการ -";
|
||||
}
|
||||
t++;
|
||||
}
|
||||
}
|
||||
|
||||
if (project.seventeenth != null)
|
||||
{
|
||||
int t = 1;
|
||||
//int ti= 1;
|
||||
foreach (var v in project.seventeenth)
|
||||
{
|
||||
string a = "กิจกรรมที่ " + t + " ";
|
||||
if (v.activity != null)
|
||||
{
|
||||
v.activity = a + v.activity;
|
||||
}
|
||||
|
||||
if (v.activity == null)
|
||||
{
|
||||
v.activity = null;
|
||||
}
|
||||
|
||||
t++;
|
||||
foreach (var vv in v.seventeenths)
|
||||
{
|
||||
string na = "ครั้งที่ ";
|
||||
vv.the_time = na + "1";
|
||||
//ti++;
|
||||
foreach (var detail in vv.seventeenths2)
|
||||
{
|
||||
string in1 = "พื้นที่ (ภายในมหาวิทยาลัย) ";
|
||||
string in2 = "ระบุสถานที่ ";
|
||||
string out1 = "จังหวัด (ภายนอกมหาวิทยาลัย) ";
|
||||
|
||||
if (detail.internal_external1 == "ภายในมหาวิทยาลัย")
|
||||
{
|
||||
detail.text1 = "ภายในมหาวิทยาลัย";
|
||||
detail.area_province1 = in1 + detail.area_province1;
|
||||
detail.location1 = in2 + detail.location1;
|
||||
}
|
||||
|
||||
if (detail.internal_external2 == "ภายนอกมหาวิทยาลัย")
|
||||
{
|
||||
detail.text2 = "ภายนอกมหาวิทยาลัย";
|
||||
detail.area_province2 = out1 + detail.area_province2;
|
||||
detail.location2 = in2 + detail.location2;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (project.eighteenth != null)
|
||||
{
|
||||
int t = 1;
|
||||
//int ti = 1;
|
||||
foreach (var v in project.eighteenth)
|
||||
{
|
||||
string a = "กิจกรรมที่ " + t + " ";
|
||||
if (v.activity != null)
|
||||
{
|
||||
v.activity = a + v.activity;
|
||||
}
|
||||
|
||||
if (v.activity == null)
|
||||
{
|
||||
v.activity = null;
|
||||
}
|
||||
|
||||
t++;
|
||||
foreach (var vv in v.eighteenths)
|
||||
{
|
||||
string na = "ครั้งที่ ";
|
||||
vv.the_time = na + vv.the_time;
|
||||
//ti++;
|
||||
string na2 = " จำนวน ";
|
||||
vv.count_day = na2 + vv.count_day + " วัน";
|
||||
if (project.count_day != null)
|
||||
{
|
||||
project.text3 = "จำนวน " + project.count_day + " วัน";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (project.nineteenth != null)
|
||||
{
|
||||
int t = 1;
|
||||
foreach (var v in project.nineteenth)
|
||||
{
|
||||
foreach (var vv in v.nineteenth_data_header)
|
||||
{
|
||||
string a = "กิจกรรมที่ " + t + " ";
|
||||
|
||||
if (vv.activity != null)
|
||||
{
|
||||
vv.activity = a + vv.activity;
|
||||
}
|
||||
|
||||
if (vv.activity == null)
|
||||
{
|
||||
vv.activity = null;
|
||||
}
|
||||
|
||||
t++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
if (project.twenty_one != null)
|
||||
{
|
||||
int t = 1;
|
||||
foreach (var v in project.twenty_one)
|
||||
{
|
||||
string a = "กิจกรรมที่ " + t + " ";
|
||||
if (v.activity != null)
|
||||
{
|
||||
v.activity = a + v.activity;
|
||||
}
|
||||
|
||||
if (v.activity == null)
|
||||
{
|
||||
v.activity = null;
|
||||
}
|
||||
|
||||
t++;
|
||||
foreach (var vv in v.twenty_ones)
|
||||
{
|
||||
// if (vv.clause1 != null || vv.clause1 != "")
|
||||
// {
|
||||
// vv.clause1 = vv.clause1;
|
||||
// }
|
||||
//
|
||||
// if (vv.clause2 != null || vv.clause2 != "")
|
||||
// {
|
||||
// vv.clause2 = vv.clause2;
|
||||
// }
|
||||
//
|
||||
// if (vv.clause3 != null || vv.clause3 != "")
|
||||
// {
|
||||
// vv.clause3 = vv.clause3;
|
||||
// }
|
||||
//
|
||||
// if (vv.clause4 != null || vv.clause4 != "")
|
||||
// {
|
||||
// vv.clause4 = vv.clause4;
|
||||
// }
|
||||
if (vv.count_quantitative != null)
|
||||
{
|
||||
string na = " หน่วยนับ";
|
||||
vv.khrang1 = na;
|
||||
}
|
||||
|
||||
if (vv.count_unit != null)
|
||||
{
|
||||
string na = "ผู้เข้าร่วมโครงการ ";
|
||||
string na1 = " จำนวน ";
|
||||
string na2 = " คน";
|
||||
vv.text1 = na;
|
||||
vv.text11 = na1;
|
||||
vv.nuai_nap = na2;
|
||||
}
|
||||
|
||||
if (vv.count_project != null)
|
||||
{
|
||||
vv.clause1 = "24.1 เชิงปริมาณ";
|
||||
string na = "จำนวนครั้งที่ดำเนินโครงการ ";
|
||||
string na2 = " ครั้ง";
|
||||
vv.text2 = na;
|
||||
vv.khrang2 = na2;
|
||||
vv.text12 = "หน่วยนับ";
|
||||
}
|
||||
|
||||
if (vv.count_training != null)
|
||||
{
|
||||
string na = "จำนวนการจัดอบรมและสัมมนา ";
|
||||
string na2 = " เรื่อง";
|
||||
vv.text3 = na;
|
||||
vv.rueang = na2;
|
||||
}
|
||||
|
||||
if (vv.count_knowledge != null)
|
||||
{
|
||||
string na = "จำนวนเผยแพร่ความรู้บริการวิชาการ ";
|
||||
string na2 = " ครั้ง";
|
||||
vv.text4 = na;
|
||||
vv.khrang3 = na2;
|
||||
}
|
||||
|
||||
if (vv.percentage_finish != null)
|
||||
{
|
||||
vv.clause2 = "24.2 เชิงเวลา";
|
||||
// string na3 = "วัน/เดือน/ปี ที่จะดำเนินโครงการ ";
|
||||
// string na4 = " ถึง ";
|
||||
// vv.range = na4;
|
||||
// vv.text5 = na3;
|
||||
string na5 = "โครงการแล้วเสร็จตามเวลาที่กำหนด (ร้อยละ) ";
|
||||
vv.text6 = na5;
|
||||
}
|
||||
|
||||
if (vv.percentage1 != null || vv.percentage2 != null)
|
||||
{
|
||||
vv.clause3 = "24.3 เชิงคุณภาพ";
|
||||
string na = "ผู้เข้าร่วมโครงการมีความรู้ความเข้าใจเพิ่มขึ้น (ร้อยละ) ";
|
||||
string na1 = "ความพึงพอใจของผู้เข้ารับบริการในกระบวนการให้บริการ (ร้อยละ) ";
|
||||
string na2 = "โครงการที่บรรลุผลตามวัตถุประสงค์ของโครงการ (ร้อยละ) ";
|
||||
vv.text7 = na;
|
||||
vv.text8 = na1;
|
||||
vv.text9 = "ผู้เข้าร่วมโครงการสามารถนำความรู้ที่ได้รับไปบูรณาการอย่างไรบ้าง";
|
||||
vv.text10 = na2;
|
||||
}
|
||||
|
||||
if (vv.expenses != null)
|
||||
{
|
||||
vv.clause4 = "24.4 เชิงค่าใช้จ่าย";
|
||||
vv.bath = " บาท";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
var _project = new List<conservation_project>() {project};
|
||||
|
||||
if (project.twenty_four != null)
|
||||
{
|
||||
int t = 1;
|
||||
foreach (var v in project.twenty_four)
|
||||
{
|
||||
string a = "กิจกรรมที่ " + t + " ";
|
||||
if (v.activity != null)
|
||||
{
|
||||
v.activity = a + v.activity;
|
||||
}
|
||||
|
||||
if (v.activity == null)
|
||||
{
|
||||
v.activity = null;
|
||||
}
|
||||
|
||||
t++;
|
||||
}
|
||||
}
|
||||
if (project.twenty_fifth != null)
|
||||
{
|
||||
int t = 1;
|
||||
foreach (var v in project.twenty_fifth)
|
||||
{
|
||||
foreach (var acti in v.activity)
|
||||
{
|
||||
v.activitys = acti;
|
||||
}
|
||||
|
||||
foreach (var locat in v.location)
|
||||
{
|
||||
v.locations = locat;
|
||||
}
|
||||
string a = "กิจกรรมที่ " + t + " ";
|
||||
if (v.activity_display_name != null)
|
||||
{
|
||||
v.activity_display_name = a + v.activity_display_name;
|
||||
}
|
||||
|
||||
if (v.activity_display_name == null)
|
||||
{
|
||||
v.activity_display_name = null;
|
||||
}
|
||||
|
||||
t++;
|
||||
}
|
||||
}
|
||||
var _project = new List<project_principle_rationale>() { project };
|
||||
|
||||
Report report = new Report();
|
||||
report.Load(_setting.report_path + "plant_genetic_conservation_project.frx");
|
||||
report.RegisterData(_project, "conservation_project");
|
||||
report.RegisterData(_project, "project_principle_rationale");
|
||||
report.Prepare();
|
||||
|
||||
MemoryStream stream = new MemoryStream();
|
||||
@@ -84,7 +429,8 @@ namespace rmutr_report.Controllers
|
||||
stream.Seek(0, SeekOrigin.Begin);
|
||||
return File(stream, "text/csv");
|
||||
break;
|
||||
case "doc": case "docx":
|
||||
case "doc":
|
||||
case "docx":
|
||||
Word2007Export word = new Word2007Export();
|
||||
report.Export(word, stream);
|
||||
stream.Seek(0, SeekOrigin.Begin);
|
||||
@@ -94,6 +440,5 @@ namespace rmutr_report.Controllers
|
||||
|
||||
return Ok();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
127
Controllers/ProjectPerformanceReport.Controller.cs
Normal file
127
Controllers/ProjectPerformanceReport.Controller.cs
Normal file
@@ -0,0 +1,127 @@
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using FastReport;
|
||||
using FastReport.Export.OoXML;
|
||||
using FastReport.Export.Pdf;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using rmutr_report.Models;
|
||||
using Swashbuckle.AspNetCore.Annotations;
|
||||
|
||||
namespace rmutr_report.Controllers
|
||||
{
|
||||
[SwaggerTag("แบบรายงานผลการดำเนินงานโครงการ")]
|
||||
public class projectPerformanceForm : Controller
|
||||
{
|
||||
readonly Setting _setting;
|
||||
|
||||
public projectPerformanceForm(Setting setting)
|
||||
{
|
||||
_setting = setting;
|
||||
}
|
||||
|
||||
[HttpPost, Route("reports/project_performance_report_form/{type}")]
|
||||
[ApiExplorerSettings(GroupName = "reports")]
|
||||
public IActionResult GetProjectPerformanceReport([FromRoute] string type,
|
||||
[FromBody] project_performance_report_form reportForm)
|
||||
{
|
||||
if (reportForm.national_budget_money==true)
|
||||
{
|
||||
reportForm.check_box1 = "/";
|
||||
}
|
||||
if (reportForm.income_budget==true)
|
||||
{
|
||||
reportForm.check_box2 = "/";
|
||||
}
|
||||
if (reportForm.other==true)
|
||||
{
|
||||
reportForm.check_box3 = "/";
|
||||
}
|
||||
if (reportForm.digital_innovation==true)
|
||||
{
|
||||
reportForm.check_box4 = "/";
|
||||
}
|
||||
if (reportForm.moral==true)
|
||||
{
|
||||
reportForm.check_box5 = "/";
|
||||
}
|
||||
if (reportForm.open_mind==true)
|
||||
{
|
||||
reportForm.check_box6 = "/";
|
||||
}
|
||||
if (reportForm.value==true)
|
||||
{
|
||||
reportForm.check_box7 = "/";
|
||||
}
|
||||
if (reportForm.entrepreneurship==true)
|
||||
{
|
||||
reportForm.check_box8 = "/";
|
||||
}
|
||||
if (reportForm.unity==true)
|
||||
{
|
||||
reportForm.check_box9 = "/";
|
||||
}
|
||||
if (reportForm.porfessional==true)
|
||||
{
|
||||
reportForm.check_box10 = "/";
|
||||
}
|
||||
if (reportForm.check_twenty_four==true)
|
||||
{
|
||||
reportForm.check_twenty_four1 = "/";
|
||||
}
|
||||
if (reportForm.check_twenty_four==false)
|
||||
{
|
||||
reportForm.check_twenty_four2 = "/";
|
||||
}
|
||||
if (reportForm.project_style!=null)
|
||||
{
|
||||
foreach (var projects in reportForm.project_style)
|
||||
{
|
||||
if (projects.check == true)
|
||||
{
|
||||
projects.checkbox = "/";
|
||||
}
|
||||
if (projects.check == false)
|
||||
{
|
||||
projects.checkbox = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (reportForm.twenty_four_table!=null)
|
||||
{
|
||||
var sum1 = reportForm.twenty_four_table.Sum(g => g.amount_1);
|
||||
var sum2 = reportForm.twenty_four_table.Sum(g => g.amount_2);
|
||||
reportForm.total_amount_1 = sum1;
|
||||
reportForm.total_amount_2 = sum2;
|
||||
}
|
||||
var projectPerformance = new List<project_performance_report_form>() { reportForm };
|
||||
|
||||
Report report = new Report();
|
||||
report.Load(_setting.report_path + "project_performance_report_form.frx");
|
||||
report.RegisterData(projectPerformance, "project_performance_report_form");
|
||||
report.Prepare();
|
||||
|
||||
MemoryStream stream = new MemoryStream();
|
||||
switch (type)
|
||||
{
|
||||
case "pdf":
|
||||
PDFExport pdf = new PDFExport();
|
||||
report.Export(pdf, stream);
|
||||
stream.Seek(0, SeekOrigin.Begin);
|
||||
return File(stream, "application/pdf");
|
||||
|
||||
case "xls":
|
||||
case "xlsx":
|
||||
Excel2007Export excel = new Excel2007Export();
|
||||
report.Export(excel, stream);
|
||||
stream.Seek(0, SeekOrigin.Begin);
|
||||
return File(
|
||||
stream,
|
||||
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
|
||||
"project_performance_report_form" + ".xlsx");
|
||||
}
|
||||
|
||||
return Ok();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -25,7 +25,7 @@ namespace rmutr_report.Controllers
|
||||
{
|
||||
this._setting = setting;
|
||||
}
|
||||
|
||||
[SwaggerOperation("ร5. คำชี้แจงงบลงทุน ค่าที่ดินและสิ่งก่อสร้าง")]
|
||||
[HttpPost, Route("reports/ro_five/{type}")]
|
||||
[ApiExplorerSettings(GroupName = "reports")]
|
||||
public IActionResult GetRoFiveReport([FromRoute] string type, [FromBody] ro_five building_fours)
|
||||
@@ -265,7 +265,7 @@ namespace rmutr_report.Controllers
|
||||
|
||||
return Ok();
|
||||
}
|
||||
|
||||
[SwaggerOperation("ร8. ประมาณการรายรับจากงานวิจัยภายนอก")]
|
||||
[HttpPost, Route("reports/external_research/{type}")]
|
||||
[ApiExplorerSettings(GroupName = "reports")]
|
||||
public IActionResult GetExReport([FromRoute] string type, [FromBody] external_research external)
|
||||
@@ -352,7 +352,7 @@ namespace rmutr_report.Controllers
|
||||
|
||||
return Ok();
|
||||
}
|
||||
|
||||
[SwaggerOperation("ร9. ประมาณการรายรับจากงานบริการวิชาการ")]
|
||||
[HttpPost, Route("reports/ro_nine/{type}")]
|
||||
[ApiExplorerSettings(GroupName = "reports")]
|
||||
public IActionResult GetNineReport([FromRoute] string type, [FromBody] ro_nine external)
|
||||
@@ -435,7 +435,7 @@ namespace rmutr_report.Controllers
|
||||
|
||||
return Ok();
|
||||
}
|
||||
|
||||
[SwaggerOperation("ร10. ประมาณการรายรับจากการบริหารสินทรัพย์ที่ก่อให้เกิดรายได้")]
|
||||
[HttpPost, Route("reports/ro_ten/{type}")]
|
||||
[ApiExplorerSettings(GroupName = "reports")]
|
||||
public IActionResult GetTenReport([FromRoute] string type, [FromBody] ro_ten ten)
|
||||
@@ -496,7 +496,7 @@ namespace rmutr_report.Controllers
|
||||
|
||||
return Ok();
|
||||
}
|
||||
|
||||
[SwaggerOperation("ร11. ประมาณการรายรับจากรายได้ประเภทอื่น ๆ")]
|
||||
[HttpPost, Route("reports/ro_eleven/{type}")]
|
||||
[ApiExplorerSettings(GroupName = "reports")]
|
||||
public IActionResult GetEleReport([FromRoute] string type, [FromBody] ro_eleven eleven)
|
||||
@@ -544,106 +544,7 @@ namespace rmutr_report.Controllers
|
||||
|
||||
return Ok();
|
||||
}
|
||||
|
||||
[HttpPost, Route("reports/revenue_estimate_income_summary/{type}")]
|
||||
[ApiExplorerSettings(GroupName = "reports")]
|
||||
public IActionResult GetEstimateIncomeReport([FromRoute] string type,
|
||||
[FromBody] revenue_estimate_income_summary estimate)
|
||||
{
|
||||
var s1 = estimate.data.Sum(d => d.science_1);
|
||||
var s2 = estimate.data.Sum(d => d.social_1);
|
||||
var s3 = estimate.data.Sum(d => d.science_2);
|
||||
var s4 = estimate.data.Sum(d => d.social_2);
|
||||
var s5 = estimate.data.Sum(d => d.total_register_fee);
|
||||
var s6 = estimate.data.Sum(d => d.science_3);
|
||||
var s7 = estimate.data.Sum(d => d.social_3);
|
||||
var s8 = estimate.data.Sum(d => d.science_4);
|
||||
var s9 = estimate.data.Sum(d => d.social_4);
|
||||
var s10 = estimate.data.Sum(d => d.total_education_fee);
|
||||
var s11 = estimate.data.Sum(d => d.total_science);
|
||||
var s12 = estimate.data.Sum(d => d.total_social);
|
||||
var s13 = estimate.data.Sum(d => d.total_science_social);
|
||||
|
||||
estimate.sum_1 = s1;
|
||||
estimate.sum_2 = s2;
|
||||
estimate.sum_3 = s3;
|
||||
estimate.sum_4 = s4;
|
||||
estimate.sum_5 = s5;
|
||||
estimate.sum_6 = s6;
|
||||
estimate.sum_7 = s7;
|
||||
estimate.sum_8 = s8;
|
||||
estimate.sum_9 = s9;
|
||||
estimate.sum_10 = s10;
|
||||
estimate.sum_11 = s11;
|
||||
estimate.sum_12 = s12;
|
||||
estimate.sum_13 = s13;
|
||||
var estimateEducation = new List<revenue_estimate_income_summary>() { estimate };
|
||||
|
||||
Report report = new Report();
|
||||
report.Load(_setting.report_path + "revenue_estimate_income_summary.frx");
|
||||
report.RegisterData(estimateEducation, "revenue_estimate_income_summary");
|
||||
report.Prepare();
|
||||
|
||||
MemoryStream stream = new MemoryStream();
|
||||
switch (type)
|
||||
{
|
||||
case "pdf":
|
||||
PDFExport pdf = new PDFExport();
|
||||
report.Export(pdf, stream);
|
||||
stream.Seek(0, SeekOrigin.Begin);
|
||||
return File(stream, "application/pdf");
|
||||
|
||||
case "xls":
|
||||
case "xlsx":
|
||||
Excel2007Export excel = new Excel2007Export();
|
||||
report.Export(excel, stream);
|
||||
stream.Seek(0, SeekOrigin.Begin);
|
||||
|
||||
return File(
|
||||
stream,
|
||||
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
|
||||
"estimateincome_" + ".xlsx");
|
||||
}
|
||||
|
||||
return Ok();
|
||||
}
|
||||
|
||||
[HttpPost, Route("reports/revenue_estimate_education_fee/{type}")]
|
||||
[ApiExplorerSettings(GroupName = "reports")]
|
||||
public IActionResult GetEstimateReport([FromRoute] string type,
|
||||
[FromBody] revenue_estimate_education_fee estimate)
|
||||
{
|
||||
var estimateEducation = new List<revenue_estimate_education_fee>() { estimate };
|
||||
|
||||
Report report = new Report();
|
||||
report.Load(_setting.report_path + "revenue_estimate_education_fee.frx");
|
||||
report.RegisterData(estimateEducation, "revenue_estimate_education_fee");
|
||||
report.Prepare();
|
||||
|
||||
MemoryStream stream = new MemoryStream();
|
||||
switch (type)
|
||||
{
|
||||
case "pdf":
|
||||
PDFExport pdf = new PDFExport();
|
||||
report.Export(pdf, stream);
|
||||
stream.Seek(0, SeekOrigin.Begin);
|
||||
return File(stream, "application/pdf");
|
||||
|
||||
case "xls":
|
||||
case "xlsx":
|
||||
Excel2007Export excel = new Excel2007Export();
|
||||
report.Export(excel, stream);
|
||||
stream.Seek(0, SeekOrigin.Begin);
|
||||
|
||||
return File(
|
||||
stream,
|
||||
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
|
||||
"estimateEducation" + ".xlsx");
|
||||
}
|
||||
|
||||
return Ok();
|
||||
}
|
||||
|
||||
[SwaggerOperation("ร12. ประมาณการรายรับภาคปกติของคณะศิลปศาสตร์จาก ค่าหน่วยกิตที่ลงทะเบียน")]
|
||||
[HttpPost, Route("reports/revenue_estimate_register_credits/{type}")]
|
||||
[ApiExplorerSettings(GroupName = "reports")]
|
||||
public IActionResult GetRegisterCreditsReport([FromRoute] string type,
|
||||
@@ -1579,7 +1480,7 @@ namespace rmutr_report.Controllers
|
||||
XLColor.FromArgb(255, 255, 153);
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 3)).Style.Alignment.Horizontal =
|
||||
XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell(row, rowhead2 + 6).Style.Alignment.Horizontal =
|
||||
ws.Range(ws.Cell(row, 4), ws.Cell(row, rowhead2 + 6)).Style.Alignment.Horizontal =
|
||||
XLAlignmentHorizontalValues.Right;
|
||||
ws.Range(ws.Cell(row, 4), ws.Cell(row, rowhead2 + 6)).Style.NumberFormat.SetFormat("#,#");
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 2)).Style.Alignment.Horizontal =
|
||||
@@ -1711,6 +1612,8 @@ namespace rmutr_report.Controllers
|
||||
ws.Range(ws.Cell(row, 4), ws.Cell(row, rowhead2 + 7)).Style.NumberFormat.SetFormat("#,#");
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 2)).Style.Alignment.Horizontal =
|
||||
XLAlignmentHorizontalValues.Center;
|
||||
ws.Range(ws.Cell(row, 4), ws.Cell(row, rowhead2 + 7)).Style.Alignment.Horizontal =
|
||||
XLAlignmentHorizontalValues.Right;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, rowhead2 + 7)).Style.Border.OutsideBorder =
|
||||
XLBorderStyleValues.Thin;
|
||||
ws.Range(ws.Cell(row, 3), ws.Cell(row, rowhead2 + 7)).Style.Border.RightBorder =
|
||||
@@ -1836,6 +1739,8 @@ namespace rmutr_report.Controllers
|
||||
ws.Range(ws.Cell(row, 4), ws.Cell(row, rowhead2 + 8)).Style.NumberFormat.SetFormat("#,#");
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 2)).Style.Alignment.Horizontal =
|
||||
XLAlignmentHorizontalValues.Center;
|
||||
ws.Range(ws.Cell(row, 4), ws.Cell(row, rowhead2 + 8)).Style.Alignment.Horizontal =
|
||||
XLAlignmentHorizontalValues.Right;
|
||||
ws.Range(ws.Cell(row, 3), ws.Cell(row, rowhead2 + 8)).Style.Border.OutsideBorder =
|
||||
XLBorderStyleValues.Thin;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, rowhead2 + 8)).Style.Border.RightBorder =
|
||||
@@ -1961,6 +1866,8 @@ namespace rmutr_report.Controllers
|
||||
ws.Range(ws.Cell(row, 4), ws.Cell(row, rowhead2 + 9)).Style.NumberFormat.SetFormat("#,#");
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 2)).Style.Alignment.Horizontal =
|
||||
XLAlignmentHorizontalValues.Center;
|
||||
ws.Range(ws.Cell(row, 4), ws.Cell(row, rowhead2 + 8)).Style.Alignment.Horizontal =
|
||||
XLAlignmentHorizontalValues.Right;
|
||||
ws.Range(ws.Cell(row, 3), ws.Cell(row, rowhead2 + 9)).Style.Border.OutsideBorder =
|
||||
XLBorderStyleValues.Thin;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, rowhead2 + 9)).Style.Border.RightBorder =
|
||||
@@ -2086,6 +1993,8 @@ namespace rmutr_report.Controllers
|
||||
ws.Range(ws.Cell(row, 4), ws.Cell(row, rowhead2 + 10)).Style.NumberFormat.SetFormat("#,#");
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 2)).Style.Alignment.Horizontal =
|
||||
XLAlignmentHorizontalValues.Center;
|
||||
ws.Range(ws.Cell(row, 4), ws.Cell(row, rowhead2 + 10)).Style.Alignment.Horizontal =
|
||||
XLAlignmentHorizontalValues.Right;
|
||||
ws.Range(ws.Cell(row, 3), ws.Cell(row, rowhead2 + 10)).Style.Border.OutsideBorder =
|
||||
XLBorderStyleValues.Thin;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, rowhead2 + 10)).Style.Border.RightBorder =
|
||||
@@ -2211,6 +2120,8 @@ namespace rmutr_report.Controllers
|
||||
ws.Range(ws.Cell(row, 4), ws.Cell(row, rowhead2 + 11)).Style.NumberFormat.SetFormat("#,#");
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 2)).Style.Alignment.Horizontal =
|
||||
XLAlignmentHorizontalValues.Center;
|
||||
ws.Range(ws.Cell(row, 4), ws.Cell(row, rowhead2 + 11)).Style.Alignment.Horizontal =
|
||||
XLAlignmentHorizontalValues.Right;
|
||||
ws.Range(ws.Cell(row, 3), ws.Cell(row, rowhead2 + 11)).Style.Border.OutsideBorder =
|
||||
XLBorderStyleValues.Thin;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, rowhead2 + 11)).Style.Border.RightBorder =
|
||||
@@ -2336,6 +2247,8 @@ namespace rmutr_report.Controllers
|
||||
ws.Range(ws.Cell(row, 4), ws.Cell(row, rowhead2 + 12)).Style.NumberFormat.SetFormat("#,#");
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 2)).Style.Alignment.Horizontal =
|
||||
XLAlignmentHorizontalValues.Center;
|
||||
ws.Range(ws.Cell(row, 4), ws.Cell(row, rowhead2 + 12)).Style.Alignment.Horizontal =
|
||||
XLAlignmentHorizontalValues.Right;
|
||||
ws.Range(ws.Cell(row, 3), ws.Cell(row, rowhead2 + 12)).Style.Border.OutsideBorder =
|
||||
XLBorderStyleValues.Thin;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, rowhead2 + 12)).Style.Border.RightBorder =
|
||||
@@ -2461,6 +2374,8 @@ namespace rmutr_report.Controllers
|
||||
ws.Range(ws.Cell(row, 4), ws.Cell(row, rowhead2 + 13)).Style.NumberFormat.SetFormat("#,#");
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 2)).Style.Alignment.Horizontal =
|
||||
XLAlignmentHorizontalValues.Center;
|
||||
ws.Range(ws.Cell(row, 4), ws.Cell(row, rowhead2 + 13)).Style.Alignment.Horizontal =
|
||||
XLAlignmentHorizontalValues.Right;
|
||||
ws.Range(ws.Cell(row, 3), ws.Cell(row, rowhead2 + 13)).Style.Border.OutsideBorder =
|
||||
XLBorderStyleValues.Thin;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, rowhead2 + 13)).Style.Border.RightBorder =
|
||||
@@ -2586,6 +2501,8 @@ namespace rmutr_report.Controllers
|
||||
ws.Range(ws.Cell(row, 4), ws.Cell(row, rowhead2 + 14)).Style.NumberFormat.SetFormat("#,#");
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 2)).Style.Alignment.Horizontal =
|
||||
XLAlignmentHorizontalValues.Center;
|
||||
ws.Range(ws.Cell(row, 4), ws.Cell(row, rowhead2 + 14)).Style.Alignment.Horizontal =
|
||||
XLAlignmentHorizontalValues.Right;
|
||||
ws.Range(ws.Cell(row, 3), ws.Cell(row, rowhead2 + 14)).Style.Border.OutsideBorder =
|
||||
XLBorderStyleValues.Thin;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, rowhead2 + 14)).Style.Border.RightBorder =
|
||||
@@ -2711,6 +2628,8 @@ namespace rmutr_report.Controllers
|
||||
ws.Range(ws.Cell(row, 4), ws.Cell(row, rowhead2 + 15)).Style.NumberFormat.SetFormat("#,#");
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 2)).Style.Alignment.Horizontal =
|
||||
XLAlignmentHorizontalValues.Center;
|
||||
ws.Range(ws.Cell(row, 4), ws.Cell(row, rowhead2 + 15)).Style.Alignment.Horizontal =
|
||||
XLAlignmentHorizontalValues.Right;
|
||||
ws.Range(ws.Cell(row, 3), ws.Cell(row, rowhead2 + 15)).Style.Border.OutsideBorder =
|
||||
XLBorderStyleValues.Thin;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, rowhead2 + 15)).Style.Border.RightBorder =
|
||||
@@ -2836,6 +2755,8 @@ namespace rmutr_report.Controllers
|
||||
ws.Range(ws.Cell(row, 4), ws.Cell(row, rowhead2 + 16)).Style.NumberFormat.SetFormat("#,#");
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 2)).Style.Alignment.Horizontal =
|
||||
XLAlignmentHorizontalValues.Center;
|
||||
ws.Range(ws.Cell(row, 4), ws.Cell(row, rowhead2 + 16)).Style.Alignment.Horizontal =
|
||||
XLAlignmentHorizontalValues.Right;
|
||||
ws.Range(ws.Cell(row, 3), ws.Cell(row, rowhead2 + 16)).Style.Border.OutsideBorder =
|
||||
XLBorderStyleValues.Thin;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, rowhead2 + 16)).Style.Border.RightBorder =
|
||||
@@ -2961,6 +2882,8 @@ namespace rmutr_report.Controllers
|
||||
ws.Range(ws.Cell(row, 4), ws.Cell(row, rowhead2 + 17)).Style.NumberFormat.SetFormat("#,#");
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 2)).Style.Alignment.Horizontal =
|
||||
XLAlignmentHorizontalValues.Center;
|
||||
ws.Range(ws.Cell(row, 4), ws.Cell(row, rowhead2 + 17)).Style.Alignment.Horizontal =
|
||||
XLAlignmentHorizontalValues.Right;
|
||||
ws.Range(ws.Cell(row, 3), ws.Cell(row, rowhead2 + 17)).Style.Border.OutsideBorder =
|
||||
XLBorderStyleValues.Thin;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, rowhead2 + 17)).Style.Border.RightBorder =
|
||||
@@ -3086,6 +3009,8 @@ namespace rmutr_report.Controllers
|
||||
ws.Range(ws.Cell(row, 4), ws.Cell(row, rowhead2 + 18)).Style.NumberFormat.SetFormat("#,#");
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 2)).Style.Alignment.Horizontal =
|
||||
XLAlignmentHorizontalValues.Center;
|
||||
ws.Range(ws.Cell(row, 4), ws.Cell(row, rowhead2 + 18)).Style.Alignment.Horizontal =
|
||||
XLAlignmentHorizontalValues.Right;
|
||||
ws.Range(ws.Cell(row, 3), ws.Cell(row, rowhead2 + 18)).Style.Border.OutsideBorder =
|
||||
XLBorderStyleValues.Thin;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, rowhead2 + 18)).Style.Border.RightBorder =
|
||||
@@ -3211,6 +3136,8 @@ namespace rmutr_report.Controllers
|
||||
ws.Range(ws.Cell(row, 4), ws.Cell(row, rowhead2 + 19)).Style.NumberFormat.SetFormat("#,#");
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 2)).Style.Alignment.Horizontal =
|
||||
XLAlignmentHorizontalValues.Center;
|
||||
ws.Range(ws.Cell(row, 4), ws.Cell(row, rowhead2 + 19)).Style.Alignment.Horizontal =
|
||||
XLAlignmentHorizontalValues.Right;
|
||||
ws.Range(ws.Cell(row, 3), ws.Cell(row, rowhead2 + 19)).Style.Border.OutsideBorder =
|
||||
XLBorderStyleValues.Thin;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, rowhead2 + 19)).Style.Border.RightBorder =
|
||||
@@ -3336,6 +3263,8 @@ namespace rmutr_report.Controllers
|
||||
ws.Range(ws.Cell(row, 4), ws.Cell(row, rowhead2 + 20)).Style.NumberFormat.SetFormat("#,#");
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 2)).Style.Alignment.Horizontal =
|
||||
XLAlignmentHorizontalValues.Center;
|
||||
ws.Range(ws.Cell(row, 4), ws.Cell(row, rowhead2 + 20)).Style.Alignment.Horizontal =
|
||||
XLAlignmentHorizontalValues.Right;
|
||||
ws.Range(ws.Cell(row, 3), ws.Cell(row, rowhead2 + 20)).Style.Border.OutsideBorder =
|
||||
XLBorderStyleValues.Thin;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, rowhead2 + 20)).Style.Border.RightBorder =
|
||||
@@ -3461,6 +3390,8 @@ namespace rmutr_report.Controllers
|
||||
ws.Range(ws.Cell(row, 4), ws.Cell(row, rowhead2 + 21)).Style.NumberFormat.SetFormat("#,#");
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 2)).Style.Alignment.Horizontal =
|
||||
XLAlignmentHorizontalValues.Center;
|
||||
ws.Range(ws.Cell(row, 4), ws.Cell(row, rowhead2 + 21)).Style.Alignment.Horizontal =
|
||||
XLAlignmentHorizontalValues.Right;
|
||||
ws.Range(ws.Cell(row, 3), ws.Cell(row, rowhead2 + 21)).Style.Border.OutsideBorder =
|
||||
XLBorderStyleValues.Thin;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, rowhead2 + 20)).Style.Border.RightBorder =
|
||||
@@ -3586,6 +3517,8 @@ namespace rmutr_report.Controllers
|
||||
ws.Range(ws.Cell(row, 4), ws.Cell(row, rowhead2 + 22)).Style.NumberFormat.SetFormat("#,#");
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 2)).Style.Alignment.Horizontal =
|
||||
XLAlignmentHorizontalValues.Center;
|
||||
ws.Range(ws.Cell(row, 4), ws.Cell(row, rowhead2 + 22)).Style.Alignment.Horizontal =
|
||||
XLAlignmentHorizontalValues.Right;
|
||||
ws.Range(ws.Cell(row, 3), ws.Cell(row, rowhead2 + 22)).Style.Border.OutsideBorder =
|
||||
XLBorderStyleValues.Thin;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, rowhead2 + 22)).Style.Border.RightBorder =
|
||||
@@ -3711,6 +3644,8 @@ namespace rmutr_report.Controllers
|
||||
ws.Range(ws.Cell(row, 4), ws.Cell(row, rowhead2 + 23)).Style.NumberFormat.SetFormat("#,#");
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 2)).Style.Alignment.Horizontal =
|
||||
XLAlignmentHorizontalValues.Center;
|
||||
ws.Range(ws.Cell(row, 4), ws.Cell(row, rowhead2 + 23)).Style.Alignment.Horizontal =
|
||||
XLAlignmentHorizontalValues.Right;
|
||||
ws.Range(ws.Cell(row, 3), ws.Cell(row, rowhead2 + 23)).Style.Border.OutsideBorder =
|
||||
XLBorderStyleValues.Thin;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, rowhead2 + 23)).Style.Border.RightBorder =
|
||||
@@ -3836,6 +3771,8 @@ namespace rmutr_report.Controllers
|
||||
ws.Range(ws.Cell(row, 4), ws.Cell(row, rowhead2 + 24)).Style.NumberFormat.SetFormat("#,#");
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 2)).Style.Alignment.Horizontal =
|
||||
XLAlignmentHorizontalValues.Center;
|
||||
ws.Range(ws.Cell(row, 4), ws.Cell(row, rowhead2 + 24)).Style.Alignment.Horizontal =
|
||||
XLAlignmentHorizontalValues.Right;
|
||||
ws.Range(ws.Cell(row, 3), ws.Cell(row, rowhead2 + 24)).Style.Border.OutsideBorder =
|
||||
XLBorderStyleValues.Thin;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, rowhead2 + 24)).Style.Border.RightBorder =
|
||||
@@ -3961,6 +3898,8 @@ namespace rmutr_report.Controllers
|
||||
ws.Range(ws.Cell(row, 4), ws.Cell(row, rowhead2 + 25)).Style.NumberFormat.SetFormat("#,#");
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 2)).Style.Alignment.Horizontal =
|
||||
XLAlignmentHorizontalValues.Center;
|
||||
ws.Range(ws.Cell(row, 4), ws.Cell(row, rowhead2 + 25)).Style.Alignment.Horizontal =
|
||||
XLAlignmentHorizontalValues.Right;
|
||||
ws.Range(ws.Cell(row, 3), ws.Cell(row, rowhead2 + 25)).Style.Border.OutsideBorder =
|
||||
XLBorderStyleValues.Thin;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, rowhead2 + 25)).Style.Border.RightBorder =
|
||||
@@ -4058,7 +3997,117 @@ namespace rmutr_report.Controllers
|
||||
"revenueEstimate_register" + ".xlsx");
|
||||
}
|
||||
}
|
||||
|
||||
[SwaggerOperation("ร13. ประมาณการรายรับภาคปกติของคณะศิลปศาสตร์จาก ค่าบำรุงการศึกษา")]
|
||||
[HttpPost, Route("reports/revenue_estimate_education_fee/{type}")]
|
||||
[ApiExplorerSettings(GroupName = "reports")]
|
||||
public IActionResult GetEstimateReport([FromRoute] string type,
|
||||
[FromBody] revenue_estimate_education_fee estimate)
|
||||
{
|
||||
if (estimate.budget_project_name_th != null)
|
||||
{
|
||||
string myStr = estimate.budget_project_name_th;
|
||||
string[] projectname = myStr.Split("ผู้สำเร็จการศึกษา");
|
||||
foreach (string projectnames in projectname)
|
||||
{
|
||||
estimate.side = projectnames;
|
||||
}
|
||||
}
|
||||
|
||||
var estimateEducation = new List<revenue_estimate_education_fee>() { estimate };
|
||||
|
||||
Report report = new Report();
|
||||
report.Load(_setting.report_path + "revenue_estimate_education_fee.frx");
|
||||
report.RegisterData(estimateEducation, "revenue_estimate_education_fee");
|
||||
report.Prepare();
|
||||
|
||||
MemoryStream stream = new MemoryStream();
|
||||
switch (type)
|
||||
{
|
||||
case "pdf":
|
||||
PDFExport pdf = new PDFExport();
|
||||
report.Export(pdf, stream);
|
||||
stream.Seek(0, SeekOrigin.Begin);
|
||||
return File(stream, "application/pdf");
|
||||
|
||||
case "xls":
|
||||
case "xlsx":
|
||||
Excel2007Export excel = new Excel2007Export();
|
||||
report.Export(excel, stream);
|
||||
stream.Seek(0, SeekOrigin.Begin);
|
||||
|
||||
return File(
|
||||
stream,
|
||||
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
|
||||
"estimateEducation" + ".xlsx");
|
||||
}
|
||||
|
||||
return Ok();
|
||||
}
|
||||
[SwaggerOperation("ร14. แบบฟอร์มสรุปรายรับคณะศิลปศาสตร์จากการจัดการศึกษาให้กับคณะอื่น")]
|
||||
[HttpPost, Route("reports/revenue_estimate_income_summary/{type}")]
|
||||
[ApiExplorerSettings(GroupName = "reports")]
|
||||
public IActionResult GetEstimateIncomeReport([FromRoute] string type,
|
||||
[FromBody] revenue_estimate_income_summary estimate)
|
||||
{
|
||||
var s1 = estimate.data.Sum(d => d.science_1);
|
||||
var s2 = estimate.data.Sum(d => d.social_1);
|
||||
var s3 = estimate.data.Sum(d => d.science_2);
|
||||
var s4 = estimate.data.Sum(d => d.social_2);
|
||||
var s5 = estimate.data.Sum(d => d.total_register_fee);
|
||||
var s6 = estimate.data.Sum(d => d.science_3);
|
||||
var s7 = estimate.data.Sum(d => d.social_3);
|
||||
var s8 = estimate.data.Sum(d => d.science_4);
|
||||
var s9 = estimate.data.Sum(d => d.social_4);
|
||||
var s10 = estimate.data.Sum(d => d.total_education_fee);
|
||||
var s11 = estimate.data.Sum(d => d.total_science);
|
||||
var s12 = estimate.data.Sum(d => d.total_social);
|
||||
var s13 = estimate.data.Sum(d => d.total_science_social);
|
||||
|
||||
estimate.sum_1 = s1;
|
||||
estimate.sum_2 = s2;
|
||||
estimate.sum_3 = s3;
|
||||
estimate.sum_4 = s4;
|
||||
estimate.sum_5 = s5;
|
||||
estimate.sum_6 = s6;
|
||||
estimate.sum_7 = s7;
|
||||
estimate.sum_8 = s8;
|
||||
estimate.sum_9 = s9;
|
||||
estimate.sum_10 = s10;
|
||||
estimate.sum_11 = s11;
|
||||
estimate.sum_12 = s12;
|
||||
estimate.sum_13 = s13;
|
||||
var estimateEducation = new List<revenue_estimate_income_summary>() { estimate };
|
||||
|
||||
Report report = new Report();
|
||||
report.Load(_setting.report_path + "revenue_estimate_income_summary.frx");
|
||||
report.RegisterData(estimateEducation, "revenue_estimate_income_summary");
|
||||
report.Prepare();
|
||||
|
||||
MemoryStream stream = new MemoryStream();
|
||||
switch (type)
|
||||
{
|
||||
case "pdf":
|
||||
PDFExport pdf = new PDFExport();
|
||||
report.Export(pdf, stream);
|
||||
stream.Seek(0, SeekOrigin.Begin);
|
||||
return File(stream, "application/pdf");
|
||||
|
||||
case "xls":
|
||||
case "xlsx":
|
||||
Excel2007Export excel = new Excel2007Export();
|
||||
report.Export(excel, stream);
|
||||
stream.Seek(0, SeekOrigin.Begin);
|
||||
|
||||
return File(
|
||||
stream,
|
||||
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
|
||||
"estimateincome_" + ".xlsx");
|
||||
}
|
||||
|
||||
return Ok();
|
||||
}
|
||||
[SwaggerOperation("ร1. แบบฟอร์มเสนอขอปรับเปลี่ยนชื่อตำแหน่ง")]
|
||||
[HttpPost, Route("reports/form_1_2/{type}")]
|
||||
[ApiExplorerSettings(GroupName = "reports")]
|
||||
public IActionResult GetForm2Report([FromRoute] string type,
|
||||
@@ -4109,7 +4158,7 @@ namespace rmutr_report.Controllers
|
||||
|
||||
return Ok();
|
||||
}
|
||||
|
||||
[SwaggerOperation("ร1. แบบฟอร์มเสนอขออัตราใหม่")]
|
||||
[HttpPost, Route("reports/form_1_3/{type}")]
|
||||
[ApiExplorerSettings(GroupName = "reports")]
|
||||
public IActionResult GetForm3Report([FromRoute] string type,
|
||||
@@ -4284,15 +4333,17 @@ namespace rmutr_report.Controllers
|
||||
|
||||
return Ok();
|
||||
}
|
||||
[HttpPost, Route("reports/budget_income_qualification/{type}")]
|
||||
[SwaggerOperation("ร1. แบบฟอร์มเสนอขอปรับคุณวุฒิ")]
|
||||
[HttpPost, Route("reports/budget_income_qualification/{type}")]
|
||||
[ApiExplorerSettings(GroupName = "reports")]
|
||||
public IActionResult GetForm1Report([FromRoute] string type,
|
||||
[FromBody] form_1_1 form1)
|
||||
{
|
||||
if (form1.budget_income_qualification_date!=null)
|
||||
if (form1.budget_income_qualification_date != null)
|
||||
{
|
||||
form1.budget_income_qualification_dates = form1.budget_income_qualification_date.Value.ToString("dd MMMM yyyy", CultureInfo.CreateSpecificCulture("th-TH"));
|
||||
|
||||
form1.budget_income_qualification_dates =
|
||||
form1.budget_income_qualification_date.Value.ToString("dd MMMM yyyy",
|
||||
CultureInfo.CreateSpecificCulture("th-TH"));
|
||||
}
|
||||
|
||||
if (form1.budget_project_date != null)
|
||||
@@ -4341,6 +4392,65 @@ namespace rmutr_report.Controllers
|
||||
"budget_income_qualification" + ".xlsx");
|
||||
}
|
||||
|
||||
return Ok();
|
||||
}
|
||||
[SwaggerOperation("รายงานสรุปประมาณการรายรับ หลักสูตรสหกิจศึกษา")]
|
||||
[HttpPost, Route("reports/summary_income_cooperative/{type}")]
|
||||
[ApiExplorerSettings(GroupName = "reports")]
|
||||
public IActionResult GetCooperativeReport([FromRoute] string type,
|
||||
[FromBody] summary_income_cooperative cooperative)
|
||||
{
|
||||
/*var sum1 = cooperative.data.Where(j=>j.topic_type==3).Sum(d => d.revenue_estimates);
|
||||
var sum2 = cooperative.data.Where(j=>j.topic_type==3).Sum(d => d.deduct_expenses_percent60);
|
||||
var sum3 = cooperative.data.Where(j=>j.topic_type==3).Sum(d => d.deduct_expenses_percent10);
|
||||
var sum4 = cooperative.data.Where(j=>j.topic_type==3).Sum(d => d.balance);
|
||||
var sum5 = cooperative.data.Where(j=>j.topic_type==3).Sum(d => d.deduct_tuition_fees);
|
||||
var sum6 = cooperative.data.Where(j=>j.topic_type==3).Sum(d => d.balance_university);*/
|
||||
|
||||
foreach (var detail in cooperative.data)
|
||||
{
|
||||
|
||||
if (detail.topic_type == 4)
|
||||
{
|
||||
string myStr = detail.topic;
|
||||
string[] projectname = myStr.Split("ผู้สำเร็จการศึกษา");
|
||||
foreach (string projectnames in projectname)
|
||||
{
|
||||
detail.topic = "รวม "+ projectnames;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
var cooperatives = new List<summary_income_cooperative>() { cooperative };
|
||||
|
||||
Report report = new Report();
|
||||
report.Load(_setting.report_path + "summary_income_cooperative.frx");
|
||||
report.RegisterData(cooperatives, "summary_income_cooperative");
|
||||
report.Prepare();
|
||||
|
||||
MemoryStream stream = new MemoryStream();
|
||||
switch (type)
|
||||
{
|
||||
case "pdf":
|
||||
PDFExport pdf = new PDFExport();
|
||||
report.Export(pdf, stream);
|
||||
stream.Seek(0, SeekOrigin.Begin);
|
||||
return File(stream, "application/pdf");
|
||||
|
||||
case "xls":
|
||||
case "xlsx":
|
||||
Excel2007Export excel = new Excel2007Export();
|
||||
report.Export(excel, stream);
|
||||
stream.Seek(0, SeekOrigin.Begin);
|
||||
|
||||
return File(
|
||||
stream,
|
||||
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
|
||||
"Cooperative" + ".xlsx");
|
||||
}
|
||||
|
||||
return Ok();
|
||||
}
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -14,7 +14,6 @@ using Swashbuckle.AspNetCore.Annotations;
|
||||
namespace rmutr_report.Controllers
|
||||
{
|
||||
[SwaggerTag("สำหรับรายงาน ร.2 คำขอชี้แจงงบบุคลากร")]
|
||||
|
||||
public class RoTwo : Controller
|
||||
{
|
||||
readonly Setting _setting;
|
||||
@@ -26,69 +25,89 @@ namespace rmutr_report.Controllers
|
||||
|
||||
[HttpPost, Route("reports/personnel_statement/{type}")]
|
||||
[ApiExplorerSettings(GroupName = "reports")]
|
||||
public IActionResult GetRoThreeReport([FromRoute] string type, [FromBody] personnel_statement personnel_statements)
|
||||
public IActionResult GetRoThreeReport([FromRoute] string type,
|
||||
[FromBody] personnel_statement personnel_statements)
|
||||
{
|
||||
int no = 1;
|
||||
int no_2 = 1;
|
||||
|
||||
foreach (var personnelStatementDetail in personnel_statements.personnel_statement_details)
|
||||
{
|
||||
personnelStatementDetail.start_dates =
|
||||
personnelStatementDetail.start_date.Value.ToString("dd/MM/yyyy",
|
||||
CultureInfo.CreateSpecificCulture("th-TH"));
|
||||
if (personnelStatementDetail.start_date != null)
|
||||
{
|
||||
personnelStatementDetail.start_dates =
|
||||
personnelStatementDetail.start_date.Value.ToString("dd/MM/yyyy",
|
||||
CultureInfo.CreateSpecificCulture("th-TH"));
|
||||
}
|
||||
else
|
||||
{
|
||||
personnelStatementDetail.start_dates = "";
|
||||
}
|
||||
|
||||
if (personnelStatementDetail.topic_type == 2)
|
||||
{
|
||||
personnelStatementDetail.row_no = no;
|
||||
no++;
|
||||
}
|
||||
}
|
||||
|
||||
foreach (var personnelStatementDetail2 in personnel_statements.personnel_statement_details_2)
|
||||
{
|
||||
personnelStatementDetail2.start_dates =
|
||||
personnelStatementDetail2.start_date.Value.ToString("dd/MM/yyyy",
|
||||
CultureInfo.CreateSpecificCulture("th-TH"));
|
||||
if (personnelStatementDetail2.start_date != null)
|
||||
{
|
||||
personnelStatementDetail2.start_dates =
|
||||
personnelStatementDetail2.start_date.Value.ToString("dd/MM/yyyy",
|
||||
CultureInfo.CreateSpecificCulture("th-TH"));
|
||||
}
|
||||
else
|
||||
{
|
||||
personnelStatementDetail2.start_dates = "";
|
||||
}
|
||||
|
||||
if (personnelStatementDetail2.topic_type == 2)
|
||||
{
|
||||
personnelStatementDetail2.row_no = no_2;
|
||||
no_2++;
|
||||
}
|
||||
}
|
||||
|
||||
var personnelstatements = new List<personnel_statement>() { personnel_statements };
|
||||
|
||||
Report report = new Report();
|
||||
report.Load(_setting.report_path + "personnel_statement.frx");
|
||||
report.RegisterData(personnelstatements, "personnel_statement");
|
||||
report.Prepare();
|
||||
|
||||
MemoryStream stream = new MemoryStream();
|
||||
switch (type)
|
||||
{
|
||||
case "pdf":
|
||||
PDFExport pdf = new PDFExport();
|
||||
report.Export(pdf, stream);
|
||||
stream.Seek(0, SeekOrigin.Begin);
|
||||
return File(stream, "application/pdf");
|
||||
case "xls":
|
||||
case "xlsx":
|
||||
Excel2007Export excel = new Excel2007Export();
|
||||
report.Export(excel, stream);
|
||||
stream.Seek(0, SeekOrigin.Begin);
|
||||
//return File(stream, "application/vnd.ms-excel");
|
||||
string date = DateTime.Now.ToString("yyyyMMddHHmmss");
|
||||
return File(
|
||||
stream,
|
||||
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
|
||||
"personnel_statement_"+date + ".xlsx");
|
||||
break;
|
||||
case "doc":
|
||||
case "docx":
|
||||
Word2007Export word = new Word2007Export();
|
||||
report.Export(word, stream);
|
||||
stream.Seek(0, SeekOrigin.Begin);
|
||||
return File(stream, "appllication/vnd.ms-word");
|
||||
break;
|
||||
Report report = new Report();
|
||||
report.Load(_setting.report_path + "personnel_statement.frx");
|
||||
report.RegisterData(personnelstatements, "personnel_statement");
|
||||
report.Prepare();
|
||||
|
||||
MemoryStream stream = new MemoryStream();
|
||||
switch (type)
|
||||
{
|
||||
case "pdf":
|
||||
PDFExport pdf = new PDFExport();
|
||||
report.Export(pdf, stream);
|
||||
stream.Seek(0, SeekOrigin.Begin);
|
||||
return File(stream, "application/pdf");
|
||||
case "xls":
|
||||
case "xlsx":
|
||||
Excel2007Export excel = new Excel2007Export();
|
||||
report.Export(excel, stream);
|
||||
stream.Seek(0, SeekOrigin.Begin);
|
||||
//return File(stream, "application/vnd.ms-excel");
|
||||
string date = DateTime.Now.ToString("yyyyMMddHHmmss");
|
||||
return File(
|
||||
stream,
|
||||
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
|
||||
"personnel_statement_" + date + ".xlsx");
|
||||
break;
|
||||
case "doc":
|
||||
case "docx":
|
||||
Word2007Export word = new Word2007Export();
|
||||
report.Export(word, stream);
|
||||
stream.Seek(0, SeekOrigin.Begin);
|
||||
return File(stream, "appllication/vnd.ms-word");
|
||||
break;
|
||||
}
|
||||
|
||||
return Ok();
|
||||
}
|
||||
|
||||
return Ok();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -150,7 +150,7 @@ namespace rmutr_report.Controllers
|
||||
" มหาวิทยาลัยเทคโนโลยีราชมงคลรัตนโกสินทร์";
|
||||
ws.Cell("A1").Style.Font.Bold = true;
|
||||
ws.Cell("A1").Style.Alignment.WrapText = true;
|
||||
ws.Cell("A1").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("A1").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("A1").Style.Font.FontSize = 16;
|
||||
ws.Range("A1:AD1").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Range("A1:AD1").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
@@ -254,7 +254,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Column(25).Width = 10;
|
||||
ws.Column(26).Width = 10;
|
||||
ws.Column(27).Width = 10;
|
||||
ws.Range("A2:AD3").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Range("A2:AD3").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Range("A2:AD3").Style.Font.FontSize = 16;
|
||||
ws.Range("A2:AD3").Style.Fill.BackgroundColor =
|
||||
XLColor.Bisque;
|
||||
@@ -310,7 +310,7 @@ namespace rmutr_report.Controllers
|
||||
header.female5 + header.female6;
|
||||
ws.Cell(row, 29).Value = sum1 + sum2 + sum3 + sum4 + sum5 + sum6;
|
||||
ws.Cell(row, 30).Value = sumroom;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontSize = 14;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.Bold = true;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 2)).Merge().Style.Fill.BackgroundColor =
|
||||
@@ -365,7 +365,7 @@ namespace rmutr_report.Controllers
|
||||
detail.female5 + detail.female6;
|
||||
ws.Cell(row, 29).Value = sum1 + sum2 + sum3 + sum4 + sum5 + sum6;
|
||||
ws.Cell(row, 30).Value = sumroom;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontSize = 14;
|
||||
ws.Cell(row, 1).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell(row, 1).Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
@@ -421,7 +421,7 @@ namespace rmutr_report.Controllers
|
||||
header.female5 + header.female6;
|
||||
ws.Cell(row, 29).Value = sum1 + sum2 + sum3 + sum4 + sum5 + sum6;
|
||||
ws.Cell(row, 30).Value = sumroom;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontSize = 14;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.Bold = true;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 2)).Merge().Style.Fill.BackgroundColor =
|
||||
@@ -475,7 +475,7 @@ namespace rmutr_report.Controllers
|
||||
header.female5 + header.female6;
|
||||
ws.Cell(row, 29).Value = sum1 + sum2 + sum3 + sum4 + sum5 + sum6;
|
||||
ws.Cell(row, 30).Value = sumroom;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontSize = 14;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.Bold = true;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 2)).Merge().Style.Fill.BackgroundColor =
|
||||
@@ -529,7 +529,7 @@ namespace rmutr_report.Controllers
|
||||
header.female5 + header.female6;
|
||||
ws.Cell(row, 29).Value = sum1 + sum2 + sum3 + sum4 + sum5 + sum6;
|
||||
ws.Cell(row, 30).Value = sumroom;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontSize = 14;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 2)).Merge().Style.Fill.BackgroundColor =
|
||||
XLColor.BabyBlue;
|
||||
@@ -584,7 +584,7 @@ namespace rmutr_report.Controllers
|
||||
detail.female5 + detail.female6;
|
||||
ws.Cell(row, 29).Value = sum1 + sum2 + sum3 + sum4 + sum5 + sum6;
|
||||
ws.Cell(row, 30).Value = sumroom;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontSize = 14;
|
||||
ws.Cell(row, 1).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell(row, 1).Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
@@ -652,7 +652,7 @@ namespace rmutr_report.Controllers
|
||||
detail.female5 + detail.female6;
|
||||
ws.Cell(row, 29).Value = sums1 + sums2 + sums3 + sums4 + sums5 + sums6;
|
||||
ws.Cell(row, 30).Value = sumsroom;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontSize = 14;
|
||||
// ws.Cell(row, 1).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Left;
|
||||
// ws.Cell(row, 1).Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
@@ -708,7 +708,7 @@ namespace rmutr_report.Controllers
|
||||
header.female5 + header.female6;
|
||||
ws.Cell(row, 29).Value = sum1 + sum2 + sum3 + sum4 + sum5 + sum6;
|
||||
ws.Cell(row, 30).Value = sumroom;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontSize = 14;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 2)).Merge().Style.Fill.BackgroundColor =
|
||||
XLColor.Gainsboro;
|
||||
@@ -771,7 +771,7 @@ namespace rmutr_report.Controllers
|
||||
detail.female5 + detail.female6;
|
||||
ws.Cell(row, 29).Value = sums1 + sums2 + sums3 + sums4 + sums5 + sums6;
|
||||
ws.Cell(row, 30).Value = sumsroom;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontSize = 14;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 2)).Merge().Style.Alignment.Horizontal =
|
||||
XLAlignmentHorizontalValues.Left;
|
||||
@@ -829,7 +829,7 @@ namespace rmutr_report.Controllers
|
||||
header.female5 + header.female6;
|
||||
ws.Cell(row, 29).Value = sum1 + sum2 + sum3 + sum4 + sum5 + sum6;
|
||||
ws.Cell(row, 30).Value = sumroom;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontSize = 14;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 2)).Merge().Style.Fill.BackgroundColor = XLColor.White;
|
||||
ws.Range(ws.Cell(row, 3), ws.Cell(row, 30)).Style.Fill.BackgroundColor = XLColor.White;
|
||||
@@ -892,7 +892,7 @@ namespace rmutr_report.Controllers
|
||||
detail.female5 + detail.female6;
|
||||
ws.Cell(row, 29).Value = sums1 + sums2 + sums3 + sums4 + sums5 + sums6;
|
||||
ws.Cell(row, 30).Value = sumsroom;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontSize = 14;
|
||||
ws.Cell(row, 1).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell(row, 1).Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
@@ -945,7 +945,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell(row, 28).Value = null;
|
||||
ws.Cell(row, 29).Value = null;
|
||||
ws.Cell(row, 30).Value = null;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontSize = 14;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 2)).Merge().Style.Fill.BackgroundColor =
|
||||
XLColor.White;
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using ClosedXML.Excel;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using rmutr_report.Models;
|
||||
@@ -35,7 +36,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell("A1").Style.Font.FontSize = 16;
|
||||
ws.Range("A1:J1").Style.Font.Bold = true;
|
||||
ws.Range("A2:J2").Merge().Value =
|
||||
"ผลผลิต " + _study_material.product + " คณะ " + _study_material.faculty;
|
||||
"ผลผลิต " + _study_material.product +" " + _study_material.faculty;
|
||||
ws.Range("A2:J2").Style.Alignment.WrapText = true;
|
||||
ws.Range("A2:J2").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Range("A2:J2").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
@@ -143,11 +144,13 @@ namespace rmutr_report.Controllers
|
||||
var row1 = ws.Row(3);
|
||||
row1.Height = 20;
|
||||
int row = 6;
|
||||
|
||||
|
||||
if (_study_material != null)
|
||||
{
|
||||
foreach (var data in _study_material.data1)
|
||||
{
|
||||
|
||||
// ws.Cell(row, 1).Value = "ภาคการศึกษา " + data.academic_semester + "/" + data.academic_year;
|
||||
// ws.Range(ws.Cell(row, 1), ws.Cell(row, 10)).Style.Font.FontName =
|
||||
// "TH SarabunPSK";
|
||||
@@ -180,6 +183,8 @@ namespace rmutr_report.Controllers
|
||||
// ws.Cell(row, 1).Value = "ภาคการศึกษา " + data.academic_semester + "/" + data.academic_year;
|
||||
ws.Cell(row, 2).Value =
|
||||
"ชั้นปีที่ " + data2.year_class + " (รหัส " + data.academic_year + ")";
|
||||
ws.Cell(row, 9).Value = data2.total_cost_science;
|
||||
ws.Cell(row, 10).Value = data2.total_cost_social;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 10)).Style.Font.FontName =
|
||||
"TH SarabunPSK";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 10)).Style.Font.FontSize = 16;
|
||||
@@ -208,7 +213,7 @@ namespace rmutr_report.Controllers
|
||||
row++;
|
||||
foreach (var data3 in data2.data3)
|
||||
{
|
||||
//_study_material.text = " - สาขา ";
|
||||
|
||||
if (data3.academic_semester == "รวม" ||
|
||||
data3.academic_semester == "รวม 1 ปีภาคการศึกษา")
|
||||
{
|
||||
@@ -291,12 +296,12 @@ namespace rmutr_report.Controllers
|
||||
ws.Range(ws.Cell(row, 3), ws.Cell(row, 10)).Style.NumberFormat.SetFormat("#,#");
|
||||
//row++;
|
||||
}
|
||||
|
||||
row++;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
// if (data.academic_semester != "รวม")
|
||||
// {
|
||||
// ws.Cell(row, 1).Value = data.academic_semester;
|
||||
@@ -378,6 +383,31 @@ namespace rmutr_report.Controllers
|
||||
// row++;
|
||||
// }
|
||||
}
|
||||
if (_study_material.total_cost_science !=null &&_study_material.total_cost_social !=null)
|
||||
{
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 8)).Merge().Value = "รวมทั้งหมด";
|
||||
ws.Cell(row, 9).Value = _study_material.total_cost_science;
|
||||
ws.Cell(row, 10).Value = _study_material.total_cost_social;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 10)).Style.Font.FontName =
|
||||
"TH SarabunPSK";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 10)).Style.Font.FontSize = 16;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 10)).Style.Alignment.WrapText = true;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 10)).Style.Alignment.Vertical =
|
||||
XLAlignmentVerticalValues.Center;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 8)).Style.Alignment.Horizontal =
|
||||
XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell(row, 9).Style.Alignment.Horizontal =
|
||||
XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell(row, 10).Style.Alignment.Horizontal =
|
||||
XLAlignmentHorizontalValues.Center;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 10)).Style.Font.Bold = true;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 10)).Style.Border.OutsideBorder =
|
||||
XLBorderStyleValues.Thin;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 10)).Style.Border.RightBorder =
|
||||
XLBorderStyleValues.Thin;
|
||||
ws.Range(ws.Cell(row, 9), ws.Cell(row, 10)).SetDataType(XLDataType.Number);
|
||||
ws.Range(ws.Cell(row, 9), ws.Cell(row, 10)).Style.NumberFormat.SetFormat("#,#");
|
||||
}
|
||||
}
|
||||
|
||||
using (var stream = new MemoryStream())
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -153,7 +153,7 @@ namespace rmutr_report.Controllers
|
||||
" มหาวิทยาลัยเทคโนโลยีราชมงคลรัตนโกสินทร์";
|
||||
ws.Cell("A1").Style.Font.Bold = true;
|
||||
ws.Cell("A1").Style.Alignment.WrapText = true;
|
||||
ws.Cell("A1").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("A1").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("A1").Style.Font.FontSize = 16;
|
||||
ws.Range("A1:AD1").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Range("A1:AD1").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
@@ -257,7 +257,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Column(25).Width = 10;
|
||||
ws.Column(26).Width = 10;
|
||||
ws.Column(27).Width = 10;
|
||||
ws.Range("A2:AD3").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Range("A2:AD3").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Range("A2:AD3").Style.Font.FontSize = 16;
|
||||
ws.Range("A2:AD3").Style.Fill.BackgroundColor =
|
||||
XLColor.Bisque;
|
||||
@@ -313,7 +313,7 @@ namespace rmutr_report.Controllers
|
||||
|
||||
ws.Cell(row, 29).Value = sum1 + sum2 + sum3 + sum4 + sum5 + sum6;
|
||||
ws.Cell(row, 30).Value = sumroom;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontSize = 14;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.Bold = true;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 2)).Merge().Style.Fill.BackgroundColor =
|
||||
@@ -367,7 +367,7 @@ namespace rmutr_report.Controllers
|
||||
// ws.Cell(row, 28).Value = detail.female7;
|
||||
// ws.Cell(row, 29).Value = detail.total7;
|
||||
// ws.Cell(row, 30).Value = detail.room7;
|
||||
// ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontName = "TH Sarabun New";
|
||||
// ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontName = "TH SarabunPSK";
|
||||
// ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontSize = 14;
|
||||
// ws.Cell(row, 1).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
// ws.Cell(row, 1).Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
@@ -421,7 +421,7 @@ namespace rmutr_report.Controllers
|
||||
|
||||
ws.Cell(row, 29).Value = sum1 + sum2 + sum3 + sum4 + sum5 + sum6;
|
||||
ws.Cell(row, 30).Value = sumroom;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontSize = 14;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.Bold = true;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 2)).Merge().Style.Fill.BackgroundColor =
|
||||
@@ -477,7 +477,7 @@ namespace rmutr_report.Controllers
|
||||
|
||||
ws.Cell(row, 29).Value = sum1 + sum2 + sum3 + sum4 + sum5 + sum6;
|
||||
ws.Cell(row, 30).Value = sumroom;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontSize = 14;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.Bold = true;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 2)).Merge().Style.Fill.BackgroundColor =
|
||||
@@ -534,7 +534,7 @@ namespace rmutr_report.Controllers
|
||||
|
||||
ws.Cell(row, 29).Value = sum1 + sum2 + sum3 + sum4 + sum5 + sum6;
|
||||
ws.Cell(row, 30).Value = sumroom;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontSize = 14;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 2)).Merge().Style.Fill.BackgroundColor = XLColor.White;
|
||||
ws.Range(ws.Cell(row, 3), ws.Cell(row, 30)).Style.Fill.BackgroundColor = XLColor.White;
|
||||
@@ -586,7 +586,7 @@ namespace rmutr_report.Controllers
|
||||
// ws.Cell(row, 28).Value = detail.female7;
|
||||
// ws.Cell(row, 29).Value = detail.total7;
|
||||
// ws.Cell(row, 30).Value = detail.room7;
|
||||
// ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontName = "TH Sarabun New";
|
||||
// ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontName = "TH SarabunPSK";
|
||||
// ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontSize = 14;
|
||||
// // ws.Cell(row, 1).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Left;
|
||||
// // ws.Cell(row, 1).Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
@@ -638,7 +638,7 @@ namespace rmutr_report.Controllers
|
||||
|
||||
ws.Cell(row, 29).Value = sum1 + sum2 + sum3 + sum4 + sum5 + sum6;
|
||||
ws.Cell(row, 30).Value = sumroom;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontSize = 14;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.Bold = true;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 2)).Merge().Style.Fill.BackgroundColor =
|
||||
@@ -694,7 +694,7 @@ namespace rmutr_report.Controllers
|
||||
|
||||
ws.Cell(row, 29).Value = sum1 + sum2 + sum3 + sum4 + sum5 + sum6;
|
||||
ws.Cell(row, 30).Value = sumroom;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontSize = 14;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 2)).Merge().Style.Fill.BackgroundColor =
|
||||
XLColor.MintGreen;
|
||||
@@ -759,7 +759,7 @@ namespace rmutr_report.Controllers
|
||||
detail.female5 + detail.female6;
|
||||
ws.Cell(row, 29).Value = sums1 + sums2 + sums3 + sums4 + sums5 + sums6;
|
||||
ws.Cell(row, 30).Value = sumsroom;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontSize = 14;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 2)).Merge().Style.Alignment.Horizontal =
|
||||
XLAlignmentHorizontalValues.Left;
|
||||
@@ -816,7 +816,7 @@ namespace rmutr_report.Controllers
|
||||
|
||||
ws.Cell(row, 29).Value = sum1 + sum2 + sum3 + sum4 + sum5 + sum6;
|
||||
ws.Cell(row, 30).Value = sumroom;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontSize = 14;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 2)).Merge().Style.Fill.BackgroundColor =
|
||||
XLColor.BabyBlue;
|
||||
@@ -881,7 +881,7 @@ namespace rmutr_report.Controllers
|
||||
detail.female5 + detail.female6;
|
||||
ws.Cell(row, 29).Value = sums1 + sums2 + sums3 + sums4 + sums5 + sums6;
|
||||
ws.Cell(row, 30).Value = sumsroom;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontSize = 14;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 2)).Merge().Style.Alignment.Horizontal =
|
||||
XLAlignmentHorizontalValues.Left;
|
||||
@@ -937,7 +937,7 @@ namespace rmutr_report.Controllers
|
||||
|
||||
ws.Cell(row, 29).Value = sum1 + sum2 + sum3 + sum4 + sum5 + sum6;
|
||||
ws.Cell(row, 30).Value = sumroom;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontSize = 14;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 2)).Merge().Style.Fill.BackgroundColor =
|
||||
XLColor.Gainsboro;
|
||||
@@ -1001,7 +1001,7 @@ namespace rmutr_report.Controllers
|
||||
detail.female5 + detail.female6;
|
||||
ws.Cell(row, 29).Value = sums1 + sums2 + sums3 + sums4 + sums5 + sums6;
|
||||
ws.Cell(row, 30).Value = sumsroom;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontSize = 14;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 2)).Merge().Style.Alignment.Horizontal =
|
||||
XLAlignmentHorizontalValues.Left;
|
||||
@@ -1057,7 +1057,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell(row, 28).Value = null;
|
||||
ws.Cell(row, 29).Value = null;
|
||||
ws.Cell(row, 30).Value = null;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontSize = 14;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 2)).Merge().Style.Fill.BackgroundColor =
|
||||
XLColor.White;
|
||||
|
||||
@@ -88,25 +88,25 @@ namespace rmutr_report.Controllers
|
||||
ws.Column(9).Width = 20;
|
||||
ws.Column(10).Width = 30;
|
||||
|
||||
ws.Column(1).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Column(1).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Column(1).Style.Font.FontSize = 16;
|
||||
ws.Column(2).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Column(2).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Column(2).Style.Font.FontSize = 16;
|
||||
ws.Column(3).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Column(3).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Column(3).Style.Font.FontSize = 16;
|
||||
ws.Column(4).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Column(4).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Column(4).Style.Font.FontSize = 16;
|
||||
ws.Column(5).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Column(5).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Column(5).Style.Font.FontSize = 16;
|
||||
ws.Column(6).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Column(6).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Column(6).Style.Font.FontSize = 16;
|
||||
ws.Column(7).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Column(7).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Column(7).Style.Font.FontSize = 16;
|
||||
ws.Column(8).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Column(8).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Column(8).Style.Font.FontSize = 16;
|
||||
ws.Column(9).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Column(9).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Column(9).Style.Font.FontSize = 16;
|
||||
ws.Column(10).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Column(10).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Column(10).Style.Font.FontSize = 16;
|
||||
|
||||
int col = 1;
|
||||
@@ -164,7 +164,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell(row, 10).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
|
||||
ws.Range(ws.Cell(row, 1),ws.Cell(row,10)).Style.Alignment.WrapText = true;
|
||||
ws.Range(ws.Cell(row, 1),ws.Cell(row,10)).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Range(ws.Cell(row, 1),ws.Cell(row,10)).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Range(ws.Cell(row, 1),ws.Cell(row,10)).Style.Font.FontSize = 16;
|
||||
row++;
|
||||
rowno++;
|
||||
|
||||
@@ -46,7 +46,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell("F2").Value = "ผู้รวบรวมและรายงาน";
|
||||
ws.Cell("F2").Style.Font.Bold = true;
|
||||
ws.Cell("F2").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell("G2").Value = "แผนปี" + _kpi.plan_year.Substring(2,2);
|
||||
ws.Cell("G2").Value = "แผนปี" + _kpi.plan_year;//.Substring(2,2);
|
||||
ws.Cell("G2").Style.Font.Bold = true;
|
||||
ws.Cell("G2").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell("H2").Value = "ผลลัพธ์";
|
||||
@@ -74,25 +74,25 @@ namespace rmutr_report.Controllers
|
||||
ws.Column(8).Width = 10;
|
||||
ws.Column(9).Width = 20;
|
||||
ws.Column(10).Width = 30;
|
||||
ws.Column(1).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Column(1).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Column(1).Style.Font.FontSize = 16;
|
||||
ws.Column(2).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Column(2).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Column(2).Style.Font.FontSize = 16;
|
||||
ws.Column(3).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Column(3).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Column(3).Style.Font.FontSize = 16;
|
||||
ws.Column(4).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Column(4).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Column(4).Style.Font.FontSize = 16;
|
||||
ws.Column(5).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Column(5).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Column(5).Style.Font.FontSize = 16;
|
||||
ws.Column(6).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Column(6).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Column(6).Style.Font.FontSize = 16;
|
||||
ws.Column(7).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Column(7).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Column(7).Style.Font.FontSize = 16;
|
||||
ws.Column(8).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Column(8).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Column(8).Style.Font.FontSize = 16;
|
||||
ws.Column(9).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Column(9).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Column(9).Style.Font.FontSize = 16;
|
||||
ws.Column(10).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Column(10).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Column(10).Style.Font.FontSize = 16;
|
||||
int col = 1;
|
||||
int row = 3;
|
||||
@@ -150,7 +150,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell(row, 10).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
|
||||
ws.Range(ws.Cell(row, 1),ws.Cell(row,10)).Style.Alignment.WrapText = true;
|
||||
ws.Range(ws.Cell(row, 1),ws.Cell(row,10)).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Range(ws.Cell(row, 1),ws.Cell(row,10)).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Range(ws.Cell(row, 1),ws.Cell(row,10)).Style.Font.FontSize = 16;
|
||||
row++;
|
||||
rowno++;
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using ClosedXML.Excel;
|
||||
using FastReport;
|
||||
using FastReport.Export.Csv;
|
||||
@@ -19,141 +20,429 @@ namespace rmutr_report.Controllers
|
||||
|
||||
public ProjectPrincipleRationale(Setting setting)
|
||||
{
|
||||
this._setting = setting;
|
||||
_setting = setting;
|
||||
}
|
||||
|
||||
[HttpPost, Route("reports/project_principle_rationale/{type}")]
|
||||
[ApiExplorerSettings(GroupName = "reports")]
|
||||
public IActionResult GetProjectReport([FromRoute] string type, [FromBody] project_principle_rationale project)
|
||||
{
|
||||
var total = project.activity.Count;
|
||||
//var total2 = project.sixteenth.Count;
|
||||
foreach (var v in project.activity)
|
||||
if (project != null)
|
||||
{
|
||||
if (v.activity != null)
|
||||
if (project.activity.Any())
|
||||
{
|
||||
//var total = project.activity.Select(r => r.count).Sum(t => t.Value);
|
||||
project.together_with = "ประกอบด้วยกิจกรรมหรือโครงการย่อย " + total + " โครงการดังนี้คือ";
|
||||
if (project.activity == null)
|
||||
{
|
||||
foreach (var detail in project.activity)
|
||||
{
|
||||
detail.activity = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
project.together_with = null;
|
||||
}
|
||||
}
|
||||
|
||||
foreach (var v in project.eighth)
|
||||
{
|
||||
string na = "ประเด็นยุทธศาสตร์ที่ ";
|
||||
v.strategic_issues = na + v.strategic_issues;
|
||||
string na2 = "กลยุทธ์ที่ ";
|
||||
v.measure = na2 + v.measure;
|
||||
}
|
||||
|
||||
foreach (var vv in project.fourteenth)
|
||||
{
|
||||
|
||||
// string na = "องค์ประกอบที่ " ;
|
||||
// vv.component = na + vv.component;
|
||||
string na2 = "ตัวบ่งชี้ที่ ";
|
||||
vv.indicator = na2 + vv.indicator;
|
||||
|
||||
}
|
||||
|
||||
// project.count_activity = total2;
|
||||
foreach (var v in project.eighteenth)
|
||||
{
|
||||
foreach (var vv in v.eighteenths)
|
||||
{
|
||||
string na = "ครั้งที่ ";
|
||||
vv.the_time = na + vv.the_time;
|
||||
string na2 = " จำนวน ";
|
||||
vv.count_day = na2 + vv.count_day + " วัน";
|
||||
if (project.count_day != null)
|
||||
project.activity.Add(new activity_data()
|
||||
{
|
||||
project.text3 = "จำนวน " + project.count_day + " วัน";
|
||||
activity = ""
|
||||
});
|
||||
}
|
||||
|
||||
if (project.ninth != null)
|
||||
{
|
||||
foreach (var vv in project.ninth)
|
||||
{
|
||||
if (vv.ninths.Any())
|
||||
{
|
||||
if (vv.ninths == null)
|
||||
{
|
||||
foreach (var detail6 in vv.ninths)
|
||||
{
|
||||
detail6.detail = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
vv.ninths.Add(new ninth_data_detail()
|
||||
{
|
||||
detail = ""
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (project.total_target != null)
|
||||
{
|
||||
project.text1 = "ผลรวมกลุ่มเป้าหมาย " + project.total_target;
|
||||
}
|
||||
|
||||
if (project.total_board != null)
|
||||
{
|
||||
project.text2 = "ผลรวมคณะกรรมการ " + project.total_board;
|
||||
}
|
||||
|
||||
if (project.twenty_one != null)
|
||||
{
|
||||
// foreach (var vv in project.twenty_one)
|
||||
// {
|
||||
// if (vv.activity != null || vv.activity!= "")
|
||||
// {
|
||||
// vv.activity = vv.activity;
|
||||
// }
|
||||
// if (vv.clause1 != null || vv.clause1!= "")
|
||||
// {
|
||||
// vv.clause1 = vv.clause1;
|
||||
// }
|
||||
// if (vv.clause2 != null || vv.clause2!= "")
|
||||
// {
|
||||
// vv.clause2 = vv.clause2;
|
||||
// }
|
||||
// if (vv.clause3 != null || vv.clause3!= "")
|
||||
// {
|
||||
// vv.clause3 = vv.clause3;
|
||||
// }
|
||||
// if (vv.clause4 != null || vv.clause4!= "")
|
||||
// {
|
||||
// vv.clause4 = vv.clause4;
|
||||
// }
|
||||
// if (vv.count_unit != null || vv.count_unit != "")
|
||||
// {
|
||||
// string na = "ผู้เข้าร่วมโครงการ จำนวน ";
|
||||
// string na2 = " หน่วยนับ";
|
||||
// project.text1 = na + vv.count_unit + na2;
|
||||
// }
|
||||
//
|
||||
// if (vv.count_project != null || vv.count_project != "")
|
||||
// {
|
||||
// string na = "จำนวนครั้งที่ดำเนินโครงการ ";
|
||||
// string na2 = " ครั้ง";
|
||||
// project.text2 = na + vv.count_project + na2;
|
||||
// }
|
||||
//
|
||||
// if (vv.count_training != null || vv.count_training != "")
|
||||
// {
|
||||
// string na = "จำนวนการจัดอบรมและสัมมนา ";
|
||||
// string na2 = " เรื่อง";
|
||||
// project.text3 = na + vv.count_training + na2;
|
||||
// }
|
||||
//
|
||||
// if (vv.count_knowledge != null || vv.count_knowledge != "")
|
||||
// {
|
||||
// string na = "จำนวนเผยแพร่ความรู้บริการวิชาการ ";
|
||||
// string na2 = " ครั้ง";
|
||||
// project.text4 = na + vv.count_knowledge + na2;
|
||||
// }
|
||||
// string na3 = "วัน/เดือน/ปี ที่จะดำเนินโครงการ ";
|
||||
// string na4 = " ถึง ";
|
||||
// project.text5 = na3 + vv.project_start_date + na4 + vv.project_end_date;
|
||||
// string na5 = "โครงการแล้วเสร็จตามเวลาที่กำหนด (ร้อยละ) ";
|
||||
// project.text6 = na5 + vv.percentage_finish;
|
||||
//
|
||||
// }
|
||||
|
||||
if (project.twenty_one == null)
|
||||
if (project.sixteenths != null)
|
||||
{
|
||||
project.twenty_one = null;
|
||||
int t = 1;
|
||||
|
||||
foreach (var sixteenthData in project.sixteenths)
|
||||
{
|
||||
string a = "กิจกรรมที่ " + t + " ";
|
||||
var sum1 = sixteenthData.sixteenths2.Sum(d => d.salaya);
|
||||
var sum2 = sixteenthData.sixteenths2.Sum(d => d.bophitphimuk);
|
||||
var sum3 = sixteenthData.sixteenths2.Sum(d => d.pohchang);
|
||||
var sum4 = sixteenthData.sixteenths2.Sum(d => d.klai_kangwon);
|
||||
sixteenthData.salaya_total = sum1;
|
||||
sixteenthData.bophitphimuk_total = sum2;
|
||||
sixteenthData.pohchang_total = sum3;
|
||||
sixteenthData.klai_kangwon_total = sum4;
|
||||
if (sixteenthData.activity_table != null)
|
||||
{
|
||||
sixteenthData.activity_table = a + sixteenthData.activity_table;
|
||||
}
|
||||
|
||||
if (sixteenthData.activity_table == null)
|
||||
{
|
||||
sixteenthData.activity_table = null;
|
||||
}
|
||||
|
||||
if (sixteenthData.total_target != null)
|
||||
{
|
||||
project.text1 = "ผลรวมกลุ่มเป้าหมาย " + sixteenthData.total_target;
|
||||
}
|
||||
|
||||
if (sixteenthData.total_target == null)
|
||||
{
|
||||
project.text1 = "ผลรวมกลุ่มเป้าหมาย -";
|
||||
}
|
||||
|
||||
if (sixteenthData.total_board != null)
|
||||
{
|
||||
project.text2 = "ผลรวมคณะกรรมการ " + sixteenthData.total_board;
|
||||
}
|
||||
|
||||
if (sixteenthData.total_board == null)
|
||||
{
|
||||
project.text2 = "ผลรวมคณะกรรมการ -";
|
||||
}
|
||||
|
||||
t++;
|
||||
}
|
||||
}
|
||||
|
||||
if (project.seventeenth != null)
|
||||
{
|
||||
int t = 1;
|
||||
//int ti= 1;
|
||||
foreach (var v in project.seventeenth)
|
||||
{
|
||||
string a = "กิจกรรมที่ " + t + " ";
|
||||
if (v.activity != null)
|
||||
{
|
||||
v.activity = a + v.activity;
|
||||
}
|
||||
|
||||
if (v.activity == null)
|
||||
{
|
||||
v.activity = null;
|
||||
}
|
||||
|
||||
t++;
|
||||
foreach (var vv in v.seventeenths)
|
||||
{
|
||||
string na = "ครั้งที่ ";
|
||||
vv.the_time = na + "1";
|
||||
//ti++;
|
||||
foreach (var detail in vv.seventeenths2)
|
||||
{
|
||||
string in1 = "พื้นที่ (ภายในมหาวิทยาลัย) ";
|
||||
string in2 = "ระบุสถานที่ ";
|
||||
string out1 = "จังหวัด (ภายนอกมหาวิทยาลัย) ";
|
||||
|
||||
if (detail.internal_external1 == "ภายในมหาวิทยาลัย")
|
||||
{
|
||||
detail.text1 = "ภายในมหาวิทยาลัย";
|
||||
detail.area_province1 = in1 + detail.area_province1;
|
||||
detail.location1 = in2 + detail.location1;
|
||||
}
|
||||
|
||||
if (detail.internal_external2 == "ภายนอกมหาวิทยาลัย")
|
||||
{
|
||||
detail.text2 = "ภายนอกมหาวิทยาลัย";
|
||||
detail.area_province2 = out1 + detail.area_province2;
|
||||
detail.location2 = in2 + detail.location2;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (project.eighteenth != null)
|
||||
{
|
||||
int t = 1;
|
||||
//int ti = 1;
|
||||
foreach (var v in project.eighteenth)
|
||||
{
|
||||
string a = "กิจกรรมที่ " + t + " ";
|
||||
if (v.activity != null)
|
||||
{
|
||||
v.activity = a + v.activity;
|
||||
}
|
||||
|
||||
if (v.activity == null)
|
||||
{
|
||||
v.activity = null;
|
||||
}
|
||||
|
||||
t++;
|
||||
foreach (var vv in v.eighteenths)
|
||||
{
|
||||
string na = "ครั้งที่ ";
|
||||
vv.the_time = na + vv.the_time;
|
||||
//ti++;
|
||||
string na2 = " จำนวน ";
|
||||
vv.count_day = na2 + vv.count_day + " วัน";
|
||||
if (project.count_day != null)
|
||||
{
|
||||
project.text3 = "จำนวน " + project.count_day + " วัน";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (project.nineteenth != null)
|
||||
{
|
||||
int t = 1;
|
||||
foreach (var v in project.nineteenth)
|
||||
{
|
||||
foreach (var vv in v.nineteenth_data_header)
|
||||
{
|
||||
string a = "กิจกรรมที่ " + t + " ";
|
||||
|
||||
if (vv.activity != null)
|
||||
{
|
||||
vv.activity = a + vv.activity;
|
||||
}
|
||||
|
||||
if (vv.activity == null)
|
||||
{
|
||||
vv.activity = null;
|
||||
}
|
||||
|
||||
t++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (project.twenty_one != null)
|
||||
{
|
||||
foreach (var v in project.twenty_one)
|
||||
{
|
||||
if (v.activity != null || v.activity != "")
|
||||
{
|
||||
v.activity = v.activity;
|
||||
}
|
||||
|
||||
foreach (var vv in v.twenty_ones)
|
||||
{
|
||||
// if (vv.clause1 != null || vv.clause1 != "")
|
||||
// {
|
||||
// vv.clause1 = vv.clause1;
|
||||
// }
|
||||
//
|
||||
// if (vv.clause2 != null || vv.clause2 != "")
|
||||
// {
|
||||
// vv.clause2 = vv.clause2;
|
||||
// }
|
||||
//
|
||||
// if (vv.clause3 != null || vv.clause3 != "")
|
||||
// {
|
||||
// vv.clause3 = vv.clause3;
|
||||
// }
|
||||
//
|
||||
// if (vv.clause4 != null || vv.clause4 != "")
|
||||
// {
|
||||
// vv.clause4 = vv.clause4;
|
||||
// }
|
||||
if (vv.count_quantitative != null)
|
||||
{
|
||||
string na = " หน่วยนับ";
|
||||
vv.khrang1 = na;
|
||||
}
|
||||
|
||||
if (vv.count_unit != null)
|
||||
{
|
||||
string na = "ผู้เข้าร่วมโครงการ ";
|
||||
string na1 = " จำนวน ";
|
||||
string na2 = " คน";
|
||||
vv.text1 = na;
|
||||
vv.text11 = na1;
|
||||
vv.nuai_nap = na2;
|
||||
}
|
||||
|
||||
if (vv.count_project != null)
|
||||
{
|
||||
vv.clause1 = "21.1 เชิงปริมาณ";
|
||||
string na = "จำนวนครั้งที่ดำเนินโครงการ ";
|
||||
string na2 = " ครั้ง";
|
||||
vv.text2 = na;
|
||||
vv.khrang2 = na2;
|
||||
vv.text12 = "หน่วยนับ";
|
||||
}
|
||||
|
||||
if (vv.count_training != null)
|
||||
{
|
||||
string na = "จำนวนการจัดอบรมและสัมมนา ";
|
||||
string na2 = " เรื่อง";
|
||||
vv.text3 = na;
|
||||
vv.rueang = na2;
|
||||
}
|
||||
|
||||
if (vv.count_knowledge != null)
|
||||
{
|
||||
string na = "จำนวนเผยแพร่ความรู้บริการวิชาการ ";
|
||||
string na2 = " ครั้ง";
|
||||
vv.text4 = na;
|
||||
vv.khrang3 = na2;
|
||||
}
|
||||
|
||||
if (vv.project_start_date != null)
|
||||
{
|
||||
vv.clause2 = "21.2 เชิงเวลา";
|
||||
string na3 = "วัน/เดือน/ปี ที่จะดำเนินโครงการ ";
|
||||
string na4 = " ถึง ";
|
||||
vv.range = na4;
|
||||
vv.text5 = na3;
|
||||
string na5 = "โครงการแล้วเสร็จตามเวลาที่กำหนด (ร้อยละ) ";
|
||||
vv.text6 = na5;
|
||||
}
|
||||
|
||||
if (vv.project_start_date == " - " || vv.project_end_date == " - ")
|
||||
{
|
||||
vv.text5 = null;
|
||||
vv.range = null;
|
||||
vv.project_start_date = null;
|
||||
vv.project_end_date = null;
|
||||
}
|
||||
|
||||
if (vv.day != null)
|
||||
{
|
||||
string na6 = "จำนวนวัน ";
|
||||
vv.day = na6 + vv.day;
|
||||
}
|
||||
|
||||
if (vv.day == null)
|
||||
{
|
||||
vv.day = null;
|
||||
}
|
||||
|
||||
|
||||
if (vv.percentage1 != null || vv.percentage2 != null || vv.percentage3 != null)
|
||||
{
|
||||
vv.clause3 = "21.3 เชิงคุณภาพ";
|
||||
string na = "ผู้เข้าร่วมโครงการมีความรู้ความเข้าใจเพิ่มขึ้น (ร้อยละ) ";
|
||||
string na1 = "ความพึงพอใจของผู้เข้ารับบริการในกระบวนการให้บริการ (ร้อยละ) ";
|
||||
vv.text7 = na;
|
||||
vv.text8 = na1;
|
||||
vv.text9 = "ผู้เข้าร่วมโครงการสามารถนำความรู้ที่ได้รับไปบูรณาการอย่างไรบ้าง";
|
||||
vv.text10 = "รายละเอียด";
|
||||
vv.text13 = "โครงการที่บรรลุผลตามวัตถุประสงค์ของโครงการ (ร้อยละ) ";
|
||||
}
|
||||
|
||||
if (vv.expenses != null)
|
||||
{
|
||||
vv.clause4 = "21.4 เชิงค่าใช้จ่าย";
|
||||
vv.bath = " บาท";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (project.twenty_four != null)
|
||||
{
|
||||
int no = 1;
|
||||
int t = 1;
|
||||
foreach (var v in project.twenty_four)
|
||||
{
|
||||
string aa = "กิจกรรมที่ " + t + " ";
|
||||
if (v.activity != null)
|
||||
{
|
||||
v.activity = aa + v.activity;
|
||||
}
|
||||
|
||||
if (v.activity == null)
|
||||
{
|
||||
v.activity = null;
|
||||
}
|
||||
|
||||
t++;
|
||||
foreach (var dataDetail in v.twenty_fours)
|
||||
{
|
||||
string a = "ชื่อผู้รับผิดชอบ กิจกรรมที่ " + no;
|
||||
no++;
|
||||
if (dataDetail.responsible_person != null)
|
||||
{
|
||||
dataDetail.text1 = a + " " + dataDetail.responsible_person;
|
||||
}
|
||||
|
||||
string b = "หน่วยงาน / คณะ ";
|
||||
if (dataDetail.agency != null)
|
||||
{
|
||||
dataDetail.text2 = b + dataDetail.agency;
|
||||
}
|
||||
|
||||
string c = "พื้นที่ ";
|
||||
if (dataDetail.area != null)
|
||||
{
|
||||
dataDetail.text3 = c + dataDetail.area;
|
||||
}
|
||||
|
||||
string d = "เบอร์โทรศัพท์ภายใน ";
|
||||
if (dataDetail.telephone_number != null)
|
||||
{
|
||||
dataDetail.text4 = d + dataDetail.telephone_number;
|
||||
}
|
||||
|
||||
string e = "เบอร์มือถือ ";
|
||||
if (dataDetail.mobile_number != null)
|
||||
{
|
||||
dataDetail.text5 = e + dataDetail.mobile_number;
|
||||
}
|
||||
|
||||
string f = "อีเมล ";
|
||||
if (dataDetail.email != null)
|
||||
{
|
||||
dataDetail.text6 = f + dataDetail.email;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (project.twenty_fifth != null)
|
||||
{
|
||||
int t = 1;
|
||||
foreach (var fifthData in project.twenty_fifth)
|
||||
{
|
||||
foreach (var acti in fifthData.activity)
|
||||
{
|
||||
fifthData.activitys = acti;
|
||||
}
|
||||
|
||||
foreach (var locat in fifthData.location)
|
||||
{
|
||||
fifthData.locations = locat;
|
||||
}
|
||||
string a = "กิจกรรมที่ " + t + " ";
|
||||
if (fifthData.activity_display_name != null)
|
||||
{
|
||||
fifthData.activity_display_name = a + fifthData.activity_display_name;
|
||||
}
|
||||
|
||||
if (fifthData.activity_display_name == null)
|
||||
{
|
||||
fifthData.activity_display_name = null;
|
||||
}
|
||||
|
||||
t++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
var _project = new List<project_principle_rationale>() { project };
|
||||
|
||||
Report report = new Report();
|
||||
report.Load(_setting.report_path + "project_principle_rationale.frx");
|
||||
report.Load(_setting.report_path + "project_principle_rationale_1.frx");
|
||||
report.RegisterData(_project, "project_principle_rationale");
|
||||
report.Prepare();
|
||||
|
||||
@@ -197,179 +486,220 @@ namespace rmutr_report.Controllers
|
||||
return Ok();
|
||||
}
|
||||
|
||||
[HttpPost, Route("reports/project_principle_rationale_no_activity/{type}")]
|
||||
[ApiExplorerSettings(GroupName = "reports")]
|
||||
public IActionResult GetProject2Report([FromRoute] string type, [FromBody] project_principle_rationale project)
|
||||
{
|
||||
var total = project.activity.Count;
|
||||
//var total2 = project.sixteenth.Count;
|
||||
foreach (var v in project.activity)
|
||||
{
|
||||
if (v.activity != null)
|
||||
{
|
||||
//var total = project.activity.Select(r => r.count).Sum(t => t.Value);
|
||||
project.together_with = "ประกอบด้วยกิจกรรมหรือโครงการย่อย " + total + " โครงการดังนี้คือ";
|
||||
}
|
||||
else
|
||||
{
|
||||
project.together_with = null;
|
||||
}
|
||||
}
|
||||
|
||||
foreach (var v in project.eighth)
|
||||
{
|
||||
string na = "ประเด็นยุทธศาสตร์ที่ ";
|
||||
v.strategic_issues = na + v.strategic_issues;
|
||||
string na2 = "กลยุทธ์ที่ ";
|
||||
v.measure = na2 + v.measure;
|
||||
}
|
||||
|
||||
foreach (var vv in project.fourteenth)
|
||||
{
|
||||
|
||||
// string na = "องค์ประกอบที่ " ;
|
||||
// vv.component = na + vv.component;
|
||||
string na2 = "ตัวบ่งชี้ที่ ";
|
||||
vv.indicator = na2 + vv.indicator;
|
||||
|
||||
}
|
||||
|
||||
// project.count_activity = total2;
|
||||
foreach (var v in project.eighteenth)
|
||||
{
|
||||
foreach (var vv in v.eighteenths)
|
||||
{
|
||||
string na = "ครั้งที่ ";
|
||||
vv.the_time = na + vv.the_time;
|
||||
string na2 = " จำนวน ";
|
||||
vv.count_day = na2 + vv.count_day + " วัน";
|
||||
if (project.count_day != null)
|
||||
{
|
||||
project.text3 = "จำนวน " + project.count_day + " วัน";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (project.total_target != null)
|
||||
{
|
||||
project.text1 = "ผลรวมกลุ่มเป้าหมาย " + project.total_target;
|
||||
}
|
||||
|
||||
if (project.total_board != null)
|
||||
{
|
||||
project.text2 = "ผลรวมคณะกรรมการ " + project.total_board;
|
||||
}
|
||||
|
||||
if (project.twenty_one != null)
|
||||
{
|
||||
// foreach (var vv in project.twenty_one)
|
||||
// {
|
||||
// if (vv.activity != null || vv.activity!= "")
|
||||
// {
|
||||
// vv.activity = vv.activity;
|
||||
// }
|
||||
// if (vv.clause1 != null || vv.clause1!= "")
|
||||
// {
|
||||
// vv.clause1 = vv.clause1;
|
||||
// }
|
||||
// if (vv.clause2 != null || vv.clause2!= "")
|
||||
// {
|
||||
// vv.clause2 = vv.clause2;
|
||||
// }
|
||||
// if (vv.clause3 != null || vv.clause3!= "")
|
||||
// {
|
||||
// vv.clause3 = vv.clause3;
|
||||
// }
|
||||
// if (vv.clause4 != null || vv.clause4!= "")
|
||||
// {
|
||||
// vv.clause4 = vv.clause4;
|
||||
// }
|
||||
// if (vv.count_unit != null || vv.count_unit != "")
|
||||
// {
|
||||
// string na = "ผู้เข้าร่วมโครงการ จำนวน ";
|
||||
// string na2 = " หน่วยนับ";
|
||||
// project.text1 = na + vv.count_unit + na2;
|
||||
// }
|
||||
//
|
||||
// if (vv.count_project != null || vv.count_project != "")
|
||||
// {
|
||||
// string na = "จำนวนครั้งที่ดำเนินโครงการ ";
|
||||
// string na2 = " ครั้ง";
|
||||
// project.text2 = na + vv.count_project + na2;
|
||||
// }
|
||||
//
|
||||
// if (vv.count_training != null || vv.count_training != "")
|
||||
// {
|
||||
// string na = "จำนวนการจัดอบรมและสัมมนา ";
|
||||
// string na2 = " เรื่อง";
|
||||
// project.text3 = na + vv.count_training + na2;
|
||||
// }
|
||||
//
|
||||
// if (vv.count_knowledge != null || vv.count_knowledge != "")
|
||||
// {
|
||||
// string na = "จำนวนเผยแพร่ความรู้บริการวิชาการ ";
|
||||
// string na2 = " ครั้ง";
|
||||
// project.text4 = na + vv.count_knowledge + na2;
|
||||
// }
|
||||
// string na3 = "วัน/เดือน/ปี ที่จะดำเนินโครงการ ";
|
||||
// string na4 = " ถึง ";
|
||||
// project.text5 = na3 + vv.project_start_date + na4 + vv.project_end_date;
|
||||
// string na5 = "โครงการแล้วเสร็จตามเวลาที่กำหนด (ร้อยละ) ";
|
||||
// project.text6 = na5 + vv.percentage_finish;
|
||||
//
|
||||
// }
|
||||
|
||||
if (project.twenty_one == null)
|
||||
{
|
||||
project.twenty_one = null;
|
||||
}
|
||||
}
|
||||
|
||||
var _project = new List<project_principle_rationale>() { project };
|
||||
|
||||
Report report = new Report();
|
||||
report.Load(_setting.report_path + "project_principle_rationale_no_activity.frx");
|
||||
report.RegisterData(_project, "project_principle_rationale");
|
||||
report.Prepare();
|
||||
|
||||
MemoryStream stream = new MemoryStream();
|
||||
switch (type)
|
||||
{
|
||||
case "pdf":
|
||||
PDFExport pdf = new PDFExport();
|
||||
report.Export(pdf, stream);
|
||||
stream.Seek(0, SeekOrigin.Begin);
|
||||
return File(stream, "application/pdf");
|
||||
|
||||
case "xls":
|
||||
case "xlsx":
|
||||
Excel2007Export excel = new Excel2007Export();
|
||||
report.Export(excel, stream);
|
||||
stream.Seek(0, SeekOrigin.Begin);
|
||||
return File(stream, "application/vnd.ms-excel");
|
||||
break;
|
||||
case "mht":
|
||||
MHTExport mht = new MHTExport();
|
||||
report.Export(mht, stream);
|
||||
stream.Seek(0, SeekOrigin.Begin);
|
||||
return File(stream, "multipart/related");
|
||||
break;
|
||||
case "csv":
|
||||
CSVExport csv = new CSVExport();
|
||||
report.Export(csv, stream);
|
||||
stream.Seek(0, SeekOrigin.Begin);
|
||||
return File(stream, "text/csv");
|
||||
break;
|
||||
case "doc":
|
||||
case "docx":
|
||||
Word2007Export word = new Word2007Export();
|
||||
report.Export(word, stream);
|
||||
stream.Seek(0, SeekOrigin.Begin);
|
||||
return File(stream, "appllication/vnd.ms-word");
|
||||
break;
|
||||
}
|
||||
|
||||
return Ok();
|
||||
}
|
||||
// [HttpPost, Route("reports/project_principle_rationale_no_activity/{type}")]
|
||||
// [ApiExplorerSettings(GroupName = "reports")]
|
||||
// public IActionResult GetProject2Report([FromRoute] string type,
|
||||
// [FromBody] project_principle_rationale project)
|
||||
// {
|
||||
// var total = project.activity.Count;
|
||||
// if (project.activity != null)
|
||||
// {
|
||||
// foreach (var v in project.activity)
|
||||
// {
|
||||
// if (v.activity != null)
|
||||
// {
|
||||
// //var total = project.activity.Select(r => r.count).Sum(t => t.Value);
|
||||
// project.together_with = "ประกอบด้วยกิจกรรมหรือโครงการย่อย " + total + " โครงการดังนี้คือ";
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// project.together_with = null;
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// if (project.eighth != null)
|
||||
// {
|
||||
// foreach (var v in project.eighth)
|
||||
// {
|
||||
// string na = "ประเด็นยุทธศาสตร์ที่ ";
|
||||
// v.strategic_issues = na + v.strategic_issues;
|
||||
// string na2 = "กลยุทธ์ที่ ";
|
||||
// v.measure = na2 + v.measure;
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// if (project.fourteenth != null)
|
||||
// {
|
||||
// foreach (var vv in project.fourteenth)
|
||||
// {
|
||||
// // string na = "องค์ประกอบที่ " ;
|
||||
// // vv.component = na + vv.component;
|
||||
// string na2 = "ตัวบ่งชี้ที่ ";
|
||||
// vv.indicator = na2 + vv.indicator;
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// if (project.sixteenths != null)
|
||||
// {
|
||||
// foreach (var sixteenthData in project.sixteenths)
|
||||
// {
|
||||
// var sum1 = sixteenthData.sixteenths2.Sum(d => d.salaya);
|
||||
// var sum2 = sixteenthData.sixteenths2.Sum(d => d.bophitphimuk);
|
||||
// var sum3 = sixteenthData.sixteenths2.Sum(d => d.pohchang);
|
||||
// var sum4 = sixteenthData.sixteenths2.Sum(d => d.klai_kangwon);
|
||||
// sixteenthData.salaya_total = sum1;
|
||||
// sixteenthData.bophitphimuk_total = sum2;
|
||||
// sixteenthData.pohchang_total = sum3;
|
||||
// sixteenthData.klai_kangwon_total = sum4;
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// if (project.eighteenth != null)
|
||||
// {
|
||||
// foreach (var v in project.eighteenth)
|
||||
// {
|
||||
// foreach (var vv in v.eighteenths)
|
||||
// {
|
||||
// string na = "ครั้งที่ ";
|
||||
// vv.the_time = na + vv.the_time;
|
||||
// string na2 = " จำนวน ";
|
||||
// vv.count_day = na2 + vv.count_day + " วัน";
|
||||
// if (project.count_day != null)
|
||||
// {
|
||||
// project.text3 = "จำนวน " + project.count_day + " วัน";
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// if (project.total_target != null)
|
||||
// {
|
||||
// project.text1 = "ผลรวมกลุ่มเป้าหมาย " + project.total_target;
|
||||
// }
|
||||
//
|
||||
// if (project.total_board != null)
|
||||
// {
|
||||
// project.text2 = "ผลรวมคณะกรรมการ " + project.total_board;
|
||||
// }
|
||||
//
|
||||
// if (project.twenty_one != null)
|
||||
// {
|
||||
// // foreach (var vv in project.twenty_one)
|
||||
// // {
|
||||
// // if (vv.activity != null || vv.activity!= "")
|
||||
// // {
|
||||
// // vv.activity = vv.activity;
|
||||
// // }
|
||||
// // if (vv.clause1 != null || vv.clause1!= "")
|
||||
// // {
|
||||
// // vv.clause1 = vv.clause1;
|
||||
// // }
|
||||
// // if (vv.clause2 != null || vv.clause2!= "")
|
||||
// // {
|
||||
// // vv.clause2 = vv.clause2;
|
||||
// // }
|
||||
// // if (vv.clause3 != null || vv.clause3!= "")
|
||||
// // {
|
||||
// // vv.clause3 = vv.clause3;
|
||||
// // }
|
||||
// // if (vv.clause4 != null || vv.clause4!= "")
|
||||
// // {
|
||||
// // vv.clause4 = vv.clause4;
|
||||
// // }
|
||||
// // if (vv.count_unit != null || vv.count_unit != "")
|
||||
// // {
|
||||
// // string na = "ผู้เข้าร่วมโครงการ จำนวน ";
|
||||
// // string na2 = " หน่วยนับ";
|
||||
// // project.text1 = na + vv.count_unit + na2;
|
||||
// // }
|
||||
// //
|
||||
// // if (vv.count_project != null || vv.count_project != "")
|
||||
// // {
|
||||
// // string na = "จำนวนครั้งที่ดำเนินโครงการ ";
|
||||
// // string na2 = " ครั้ง";
|
||||
// // project.text2 = na + vv.count_project + na2;
|
||||
// // }
|
||||
// //
|
||||
// // if (vv.count_training != null || vv.count_training != "")
|
||||
// // {
|
||||
// // string na = "จำนวนการจัดอบรมและสัมมนา ";
|
||||
// // string na2 = " เรื่อง";
|
||||
// // project.text3 = na + vv.count_training + na2;
|
||||
// // }
|
||||
// //
|
||||
// // if (vv.count_knowledge != null || vv.count_knowledge != "")
|
||||
// // {
|
||||
// // string na = "จำนวนเผยแพร่ความรู้บริการวิชาการ ";
|
||||
// // string na2 = " ครั้ง";
|
||||
// // project.text4 = na + vv.count_knowledge + na2;
|
||||
// // }
|
||||
// // string na3 = "วัน/เดือน/ปี ที่จะดำเนินโครงการ ";
|
||||
// // string na4 = " ถึง ";
|
||||
// // project.text5 = na3 + vv.project_start_date + na4 + vv.project_end_date;
|
||||
// // string na5 = "โครงการแล้วเสร็จตามเวลาที่กำหนด (ร้อยละ) ";
|
||||
// // project.text6 = na5 + vv.percentage_finish;
|
||||
// //
|
||||
// // }
|
||||
//
|
||||
// if (project.twenty_one == null)
|
||||
// {
|
||||
// project.twenty_one = null;
|
||||
// }
|
||||
// }
|
||||
//
|
||||
//
|
||||
// if (project.twenty_fifth != null)
|
||||
// {
|
||||
// foreach (var fifthData in project.twenty_fifth)
|
||||
// {
|
||||
// foreach (var acti in fifthData.activity)
|
||||
// {
|
||||
// fifthData.activitys = acti;
|
||||
// }
|
||||
//
|
||||
// foreach (var locat in fifthData.location)
|
||||
// {
|
||||
// fifthData.locations = locat;
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// var _project = new List<project_principle_rationale>() { project };
|
||||
//
|
||||
// Report report = new Report();
|
||||
// report.Load(_setting.report_path + "project_principle_rationale_no_activity.frx");
|
||||
// report.RegisterData(_project, "project_principle_rationale");
|
||||
// report.Prepare();
|
||||
//
|
||||
// MemoryStream stream = new MemoryStream();
|
||||
// switch (type)
|
||||
// {
|
||||
// case "pdf":
|
||||
// PDFExport pdf = new PDFExport();
|
||||
// report.Export(pdf, stream);
|
||||
// stream.Seek(0, SeekOrigin.Begin);
|
||||
// return File(stream, "application/pdf");
|
||||
//
|
||||
// case "xls":
|
||||
// case "xlsx":
|
||||
// Excel2007Export excel = new Excel2007Export();
|
||||
// report.Export(excel, stream);
|
||||
// stream.Seek(0, SeekOrigin.Begin);
|
||||
// return File(stream, "application/vnd.ms-excel");
|
||||
// break;
|
||||
// case "mht":
|
||||
// MHTExport mht = new MHTExport();
|
||||
// report.Export(mht, stream);
|
||||
// stream.Seek(0, SeekOrigin.Begin);
|
||||
// return File(stream, "multipart/related");
|
||||
// break;
|
||||
// case "csv":
|
||||
// CSVExport csv = new CSVExport();
|
||||
// report.Export(csv, stream);
|
||||
// stream.Seek(0, SeekOrigin.Begin);
|
||||
// return File(stream, "text/csv");
|
||||
// break;
|
||||
// case "doc":
|
||||
// case "docx":
|
||||
// Word2007Export word = new Word2007Export();
|
||||
// report.Export(word, stream);
|
||||
// stream.Seek(0, SeekOrigin.Begin);
|
||||
// return File(stream, "appllication/vnd.ms-word");
|
||||
// break;
|
||||
// }
|
||||
//
|
||||
// return Ok();
|
||||
// }
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,6 @@
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using ClosedXML.Excel;
|
||||
using FastReport;
|
||||
using FastReport.Export.Csv;
|
||||
@@ -13,46 +14,392 @@ using Swashbuckle.AspNetCore.Annotations;
|
||||
namespace rmutr_report.Controllers
|
||||
{
|
||||
[SwaggerTag("สำหรับรายงานคำขอโครงการ Thailand 4.0 (ง.5-2.2)")]
|
||||
public class project_request_thailand: Controller
|
||||
public class project_request_thailand : Controller
|
||||
{
|
||||
readonly Setting _setting;
|
||||
readonly Setting _setting;
|
||||
|
||||
public project_request_thailand(Setting setting)
|
||||
{
|
||||
this._setting = setting;
|
||||
}
|
||||
[HttpPost, Route("reports/project_request_thailand/{type}")]
|
||||
|
||||
[HttpPost, Route("reports/project_request_thailand/{type}")]
|
||||
[ApiExplorerSettings(GroupName = "reports")]
|
||||
public IActionResult GetRequestProjectReport([FromRoute] string type, [FromBody] project_request_thai project)
|
||||
public IActionResult GetRequestProjectReport([FromRoute] string type,
|
||||
[FromBody] project_principle_rationale project)
|
||||
{
|
||||
|
||||
foreach (var v in project.five)
|
||||
// foreach (var v in project.five)
|
||||
// {
|
||||
// string na = "ประเด็นยุทธศาสตร์ที่ " ;
|
||||
// v.strategic_issues = na + v.strategic_issues;
|
||||
// string na2 = "กลยุทธ์ที่ " ;
|
||||
// v.measure = na2 + v.measure;
|
||||
// }
|
||||
// foreach (var v in project.eleventh)
|
||||
// {
|
||||
// foreach (var vv in v.elevenths)
|
||||
// {
|
||||
// string na = "ครั้งที่ ";
|
||||
// vv.the_time = na + vv.the_time;
|
||||
//
|
||||
// }
|
||||
// }
|
||||
if (project != null)
|
||||
{
|
||||
string na = "ประเด็นยุทธศาสตร์ที่ " ;
|
||||
v.strategic_issues = na + v.strategic_issues;
|
||||
string na2 = "กลยุทธ์ที่ " ;
|
||||
v.measure = na2 + v.measure;
|
||||
}
|
||||
foreach (var v in project.eleventh)
|
||||
{
|
||||
foreach (var vv in v.elevenths)
|
||||
|
||||
if (project.activity.Any())
|
||||
{
|
||||
string na = "ครั้งที่ ";
|
||||
vv.the_time = na + vv.the_time;
|
||||
// string na2 = " จำนวน ";
|
||||
// // vv.count_day = na2 + vv.count_day + " วัน";
|
||||
// // if (project.count_day != null)
|
||||
// // {
|
||||
// // project.text3 = "จำนวน " + project.count_day + " วัน";
|
||||
// // }
|
||||
if (project.activity == null)
|
||||
{
|
||||
foreach (var detail in project.activity)
|
||||
{
|
||||
detail.activity = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
project.activity.Add(new activity_data()
|
||||
{
|
||||
activity = ""
|
||||
});
|
||||
}
|
||||
|
||||
if (project.ninth != null)
|
||||
{
|
||||
foreach (var vv in project.ninth)
|
||||
{
|
||||
if (vv.clause == "9.1 ตัวชี้วัดผลสัมฤทธิ์")
|
||||
{
|
||||
vv.clause = "11.1 ตัวชี้วัดผลสัมฤทธิ์";
|
||||
}
|
||||
|
||||
if (vv.clause == "9.2 ตัวชี้วัดเชิงนโยบาย")
|
||||
{
|
||||
vv.clause = "11.2 ตัวชี้วัดเชิงนโยบาย";
|
||||
}
|
||||
|
||||
if (vv.ninths.Any())
|
||||
{
|
||||
if (vv.ninths == null)
|
||||
{
|
||||
foreach (var detail6 in vv.ninths)
|
||||
{
|
||||
detail6.detail = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
vv.ninths.Add(new ninth_data_detail()
|
||||
{
|
||||
detail = ""
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (project.sixteenths != null)
|
||||
{
|
||||
int t = 1;
|
||||
|
||||
foreach (var sixteenthData in project.sixteenths)
|
||||
{
|
||||
string a = "กิจกรรมที่ " + t + " ";
|
||||
var sum1 = sixteenthData.sixteenths2.Sum(d => d.salaya);
|
||||
var sum2 = sixteenthData.sixteenths2.Sum(d => d.bophitphimuk);
|
||||
var sum3 = sixteenthData.sixteenths2.Sum(d => d.pohchang);
|
||||
var sum4 = sixteenthData.sixteenths2.Sum(d => d.klai_kangwon);
|
||||
sixteenthData.salaya_total = sum1;
|
||||
sixteenthData.bophitphimuk_total = sum2;
|
||||
sixteenthData.pohchang_total = sum3;
|
||||
sixteenthData.klai_kangwon_total = sum4;
|
||||
if (sixteenthData.activity_table != null)
|
||||
{
|
||||
sixteenthData.activity_table = a + sixteenthData.activity_table;
|
||||
}
|
||||
|
||||
if (sixteenthData.activity_table == null)
|
||||
{
|
||||
sixteenthData.activity_table = null;
|
||||
}
|
||||
if (sixteenthData.total_target != null)
|
||||
{
|
||||
project.text1 = "ผลรวมกลุ่มเป้าหมาย " + sixteenthData.total_target;
|
||||
}
|
||||
|
||||
if (sixteenthData.total_target == null)
|
||||
{
|
||||
project.text1 = "ผลรวมกลุ่มเป้าหมาย -";
|
||||
}
|
||||
|
||||
if (sixteenthData.total_board != null)
|
||||
{
|
||||
project.text2 = "ผลรวมคณะกรรมการ " + sixteenthData.total_board;
|
||||
}
|
||||
|
||||
if (sixteenthData.total_board == null)
|
||||
{
|
||||
project.text2 = "ผลรวมคณะกรรมการ -";
|
||||
}
|
||||
|
||||
t++;
|
||||
}
|
||||
}
|
||||
|
||||
if (project.seventeenth != null)
|
||||
{
|
||||
int t = 1;
|
||||
//int ti= 1;
|
||||
foreach (var v in project.seventeenth)
|
||||
{
|
||||
string a = "กิจกรรมที่ " + t + " ";
|
||||
if (v.activity != null)
|
||||
{
|
||||
v.activity = a + v.activity;
|
||||
}
|
||||
|
||||
if (v.activity == null)
|
||||
{
|
||||
v.activity = null;
|
||||
}
|
||||
|
||||
t++;
|
||||
foreach (var vv in v.seventeenths)
|
||||
{
|
||||
string na = "ครั้งที่ ";
|
||||
vv.the_time = na + "1";
|
||||
//ti++;
|
||||
foreach (var detail in vv.seventeenths2)
|
||||
{
|
||||
string in1 = "พื้นที่ (ภายในมหาวิทยาลัย) ";
|
||||
string in2 = "ระบุสถานที่ ";
|
||||
string out1 = "จังหวัด (ภายนอกมหาวิทยาลัย) ";
|
||||
|
||||
if (detail.internal_external1 == "ภายในมหาวิทยาลัย")
|
||||
{
|
||||
detail.text1 = "ภายในมหาวิทยาลัย";
|
||||
detail.area_province1 = in1 + detail.area_province1;
|
||||
detail.location1 = in2 + detail.location1;
|
||||
}
|
||||
|
||||
if (detail.internal_external2 == "ภายนอกมหาวิทยาลัย")
|
||||
{
|
||||
detail.text2 = "ภายนอกมหาวิทยาลัย";
|
||||
detail.area_province2 = out1 + detail.area_province2;
|
||||
detail.location2 = in2 + detail.location2;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (project.eighteenth != null)
|
||||
{
|
||||
int t = 1;
|
||||
//int ti = 1;
|
||||
foreach (var v in project.eighteenth)
|
||||
{
|
||||
string a = "กิจกรรมที่ " + t + " ";
|
||||
if (v.activity != null)
|
||||
{
|
||||
v.activity = a + v.activity;
|
||||
}
|
||||
|
||||
if (v.activity == null)
|
||||
{
|
||||
v.activity = null;
|
||||
}
|
||||
|
||||
t++;
|
||||
foreach (var vv in v.eighteenths)
|
||||
{
|
||||
string na = "ครั้งที่ ";
|
||||
vv.the_time = na + vv.the_time;
|
||||
//ti++;
|
||||
string na2 = " จำนวน ";
|
||||
vv.count_day = na2 + vv.count_day + " วัน";
|
||||
if (project.count_day != null)
|
||||
{
|
||||
project.text3 = "จำนวน " + project.count_day + " วัน";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (project.nineteenth != null)
|
||||
{
|
||||
int t = 1;
|
||||
foreach (var v in project.nineteenth)
|
||||
{
|
||||
foreach (var vv in v.nineteenth_data_header)
|
||||
{
|
||||
string a = "กิจกรรมที่ " + t + " ";
|
||||
|
||||
if (vv.activity != null)
|
||||
{
|
||||
vv.activity = a + vv.activity;
|
||||
}
|
||||
|
||||
if (vv.activity == null)
|
||||
{
|
||||
vv.activity = null;
|
||||
}
|
||||
|
||||
t++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (project.twenty_one != null)
|
||||
{
|
||||
int t = 1;
|
||||
foreach (var v in project.twenty_one)
|
||||
{
|
||||
string a = "กิจกรรมที่ " + t + " ";
|
||||
if (v.activity != null)
|
||||
{
|
||||
v.activity = a + v.activity;
|
||||
}
|
||||
|
||||
if (v.activity == null)
|
||||
{
|
||||
v.activity = null;
|
||||
}
|
||||
|
||||
t++;
|
||||
|
||||
foreach (var vv in v.twenty_ones)
|
||||
{
|
||||
if (vv.count_quantitative != null)
|
||||
{
|
||||
string na = " หน่วยนับ";
|
||||
vv.khrang1 = na;
|
||||
}
|
||||
|
||||
if (vv.count_unit != null)
|
||||
{
|
||||
string na = "ผู้เข้าร่วมโครงการ ";
|
||||
string na1 = " จำนวน ";
|
||||
string na2 = " คน";
|
||||
vv.text1 = na;
|
||||
vv.text11 = na1;
|
||||
vv.nuai_nap = na2;
|
||||
}
|
||||
|
||||
if (vv.count_project != null)
|
||||
{
|
||||
vv.clause1 = "23.1 เชิงปริมาณ";
|
||||
string na = "จำนวนครั้งที่ดำเนินโครงการ ";
|
||||
string na2 = " ครั้ง";
|
||||
vv.text2 = na;
|
||||
vv.khrang2 = na2;
|
||||
vv.text12 = "หน่วยนับ";
|
||||
}
|
||||
|
||||
if (vv.count_training != null)
|
||||
{
|
||||
string na = "จำนวนการจัดอบรมและสัมมนา ";
|
||||
string na2 = " เรื่อง";
|
||||
vv.text3 = na;
|
||||
vv.rueang = na2;
|
||||
}
|
||||
|
||||
if (vv.count_knowledge != null)
|
||||
{
|
||||
string na = "จำนวนเผยแพร่ความรู้บริการวิชาการ ";
|
||||
string na2 = " ครั้ง";
|
||||
vv.text4 = na;
|
||||
vv.khrang3 = na2;
|
||||
}
|
||||
|
||||
if (vv.percentage_finish != null)
|
||||
{
|
||||
vv.clause2 = "23.2 เชิงเวลา";
|
||||
// string na3 = "วัน/เดือน/ปี ที่จะดำเนินโครงการ ";
|
||||
// string na4 = " ถึง ";
|
||||
// vv.range = na4;
|
||||
// vv.text5 = na3;
|
||||
string na5 = "โครงการแล้วเสร็จตามเวลาที่กำหนด (ร้อยละ) ";
|
||||
vv.text6 = na5;
|
||||
}
|
||||
|
||||
if (vv.percentage1 != null || vv.percentage2 != null)
|
||||
{
|
||||
vv.clause3 = "23.3 เชิงคุณภาพ";
|
||||
string na = "ผู้เข้าร่วมโครงการมีความรู้ความเข้าใจเพิ่มขึ้น (ร้อยละ) ";
|
||||
string na1 = "ความพึงพอใจของผู้เข้ารับบริการในกระบวนการให้บริการ (ร้อยละ) ";
|
||||
string na2 = "โครงการที่บรรลุผลตามวัตถุประสงค์ของโครงการ (ร้อยละ) ";
|
||||
vv.text7 = na;
|
||||
vv.text8 = na1;
|
||||
vv.text9 = "ผู้เข้าร่วมโครงการสามารถนำความรู้ที่ได้รับไปบูรณาการอย่างไรบ้าง";
|
||||
vv.text10 = na2;
|
||||
}
|
||||
|
||||
if (vv.expenses != null)
|
||||
{
|
||||
vv.clause4 = "23.4 เชิงค่าใช้จ่าย";
|
||||
vv.bath = " บาท";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
var _project = new List<project_request_thai>() {project};
|
||||
if (project.twenty_four != null)
|
||||
{
|
||||
int t = 1;
|
||||
foreach (var v in project.twenty_four)
|
||||
{
|
||||
string a = "กิจกรรมที่ " + t + " ";
|
||||
if (v.activity != null)
|
||||
{
|
||||
v.activity = a + v.activity;
|
||||
}
|
||||
|
||||
if (v.activity == null)
|
||||
{
|
||||
v.activity = null;
|
||||
}
|
||||
|
||||
t++;
|
||||
}
|
||||
}
|
||||
if (project.twenty_fifth != null)
|
||||
{
|
||||
int t = 1;
|
||||
foreach (var v in project.twenty_fifth)
|
||||
{
|
||||
foreach (var acti in v.activity)
|
||||
{
|
||||
v.activitys = acti;
|
||||
}
|
||||
|
||||
foreach (var locat in v.location)
|
||||
{
|
||||
v.locations = locat;
|
||||
}
|
||||
string a = "กิจกรรมที่ " + t + " ";
|
||||
if (v.activity_display_name != null)
|
||||
{
|
||||
v.activity_display_name = a + v.activity_display_name;
|
||||
}
|
||||
|
||||
if (v.activity_display_name == null)
|
||||
{
|
||||
v.activity_display_name = null;
|
||||
}
|
||||
|
||||
t++;
|
||||
}
|
||||
}
|
||||
|
||||
var _project = new List<project_principle_rationale>() { project };
|
||||
|
||||
Report report = new Report();
|
||||
report.Load(_setting.report_path + "project_request_thailands.frx");
|
||||
report.RegisterData(_project, "project_request_thai");
|
||||
report.RegisterData(_project, "project_principle_rationale");
|
||||
report.Prepare();
|
||||
|
||||
MemoryStream stream = new MemoryStream();
|
||||
@@ -63,21 +410,21 @@ namespace rmutr_report.Controllers
|
||||
report.Export(pdf, stream);
|
||||
stream.Seek(0, SeekOrigin.Begin);
|
||||
return File(stream, "application/pdf");
|
||||
|
||||
break;
|
||||
case "xls":
|
||||
case "xlsx":
|
||||
Excel2007Export excel = new Excel2007Export();
|
||||
report.Export(excel, stream);
|
||||
stream.Seek(0, SeekOrigin.Begin);
|
||||
return File(stream, "application/vnd.ms-excel");
|
||||
break;
|
||||
case "mht":
|
||||
MHTExport mht = new MHTExport();
|
||||
report.Export(mht, stream);
|
||||
case "xlsx":
|
||||
Excel2007Export excel1 = new Excel2007Export();
|
||||
report.Export(excel1, stream);
|
||||
stream.Seek(0, SeekOrigin.Begin);
|
||||
return File(stream, "multipart/related");
|
||||
return File(stream, "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet");
|
||||
break;
|
||||
case "doc": case "docx":
|
||||
case "doc":
|
||||
case "docx":
|
||||
Word2007Export word = new Word2007Export();
|
||||
report.Export(word, stream);
|
||||
stream.Seek(0, SeekOrigin.Begin);
|
||||
@@ -87,6 +434,5 @@ namespace rmutr_report.Controllers
|
||||
|
||||
return Ok();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -1,14 +1,13 @@
|
||||
FROM mcr.microsoft.com/dotnet/core/sdk:3.1 as build-env
|
||||
FROM registry.71dev.com/dotnetsdk:5.0 as build-env
|
||||
WORKDIR /source
|
||||
COPY . .
|
||||
RUN dotnet restore --configfile nuget.config --disable-parallel
|
||||
RUN dotnet build
|
||||
RUN dotnet publish -o /publish --configuration Release;
|
||||
|
||||
FROM mcr.microsoft.com/dotnet/aspnet:3.1
|
||||
FROM registry.71dev.com/dotnetsdk:5.0
|
||||
COPY . .
|
||||
RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get install -y --no-install-recommends apt-utils
|
||||
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y fontconfig
|
||||
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y --allow-unauthenticated libc6-dev
|
||||
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y --allow-unauthenticated libgdiplus
|
||||
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y --allow-unauthenticated libx11-dev
|
||||
@@ -16,8 +15,7 @@ RUN DEBIAN_FRONTEND=noninteractive rm -rf /var/lib/apt/lists/*
|
||||
RUN mkdir -p /usr/local/share/fonts/fonts/sarabun
|
||||
COPY Fonts/* /usr/local/share/fonts/sarabun/
|
||||
RUN chmod 644 /usr/local/share/fonts/sarabun/*
|
||||
RUN fc-cache -fv
|
||||
WORKDIR /app
|
||||
COPY --from=build-env /publish .
|
||||
ENV ASPNETCORE_URLS http://*:8080
|
||||
ENTRYPOINT ["dotnet", "rmutr_report.dll"]
|
||||
ENTRYPOINT ["dotnet", "rmutr_report.dll"]
|
||||
BIN
Fonts/WINGDNG2.TTF
Normal file
BIN
Fonts/WINGDNG2.TTF
Normal file
Binary file not shown.
56
Models/Personnel/budget_expenditure_proposal.cs
Normal file
56
Models/Personnel/budget_expenditure_proposal.cs
Normal file
@@ -0,0 +1,56 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace rmutr_report.Models.Personnel
|
||||
{
|
||||
public class budget_expenditure_proposal
|
||||
{
|
||||
[Key] public Guid? budget_expenditure_proposal_uid { get; set; }
|
||||
public string academic_year_name_th { get; set; }
|
||||
public string agency_category_name { get; set; }
|
||||
public string agency_name_th { get; set; }
|
||||
public string agency_type { get; set; }
|
||||
public int? type { get; set; }
|
||||
|
||||
public DateTime? version { get; set; }
|
||||
public List<t_budget_expenditure_proposal_detail> budget_expenditure_proposal_details { get; set; }
|
||||
}
|
||||
|
||||
public class t_budget_expenditure_proposal_detail
|
||||
{
|
||||
[Key] public Guid? budget_expenditure_proposal_detail_uid { get; set; }
|
||||
public Guid? budget_expenditure_proposal_uid { get; set; }
|
||||
public string topic { get; set; }
|
||||
[Column(TypeName = "decimal(18,4)")] public decimal? act_year1_1 { get; set; }
|
||||
[Column(TypeName = "decimal(18,4)")] public decimal? act_year1_2 { get; set; }
|
||||
[Column(TypeName = "decimal(18,4)")] public decimal? disbursement_results_1 { get; set; }
|
||||
[Column(TypeName = "decimal(18,4)")] public decimal? disbursement_results_2 { get; set; }
|
||||
[Column(TypeName = "decimal(18,4)")] public decimal? budget_act_year2_1 { get; set; }
|
||||
[Column(TypeName = "decimal(18,4)")] public decimal? budget_act_year2_2 { get; set; }
|
||||
[Column(TypeName = "decimal(18,4)")] public decimal? adjust_the_base_year2_1 { get; set; }
|
||||
[Column(TypeName = "decimal(18,4)")] public decimal? adjust_the_base_year2_2 { get; set; }
|
||||
[Column(TypeName = "decimal(18,4)")] public decimal? request_1 { get; set; }
|
||||
[Column(TypeName = "decimal(18,4)")] public decimal? request_2 { get; set; }
|
||||
[Column(TypeName = "decimal(18,4)")] public decimal? offer_account1_1 { get; set; }
|
||||
[Column(TypeName = "decimal(18,4)")] public decimal? offer_account1_2 { get; set; }
|
||||
[Column(TypeName = "decimal(18,4)")] public decimal? offer_increase_decrease_1 { get; set; }
|
||||
[Column(TypeName = "decimal(18,4)")] public decimal? offer_increase_decrease_2 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18,4)")] public decimal? offer_new_rate_1 { get; set; }
|
||||
[Column(TypeName = "decimal(18,4)")] public decimal? offer_new_rate_2 { get; set; }
|
||||
[Column(TypeName = "decimal(18,4)")] public decimal? offer_total_1 { get; set; }
|
||||
[Column(TypeName = "decimal(18,4)")] public decimal? offer_total_2 { get; set; }
|
||||
[Column(TypeName = "decimal(18,4)")] public decimal? increase_decrease_from_year_1 { get; set; }
|
||||
[Column(TypeName = "decimal(18,4)")] public decimal? increase_decrease_from_year_2 { get; set; }
|
||||
[Column(TypeName = "decimal(18,4)")] public decimal? increase_decrease_from_year_3 { get; set; }
|
||||
[Column(TypeName = "decimal(18,4)")] public decimal? increase_decrease_from_year_4 { get; set; }
|
||||
[Column(TypeName = "decimal(18,4)")] public decimal? mtef_1 { get; set; }
|
||||
[Column(TypeName = "decimal(18,4)")] public decimal? mtef_2 { get; set; }
|
||||
[Column(TypeName = "decimal(18,4)")] public decimal? mtef_3 { get; set; }
|
||||
public string remark { get; set; }
|
||||
public int? topic_type { get; set; }
|
||||
public int? row { get; set; }
|
||||
}
|
||||
}
|
||||
139
Models/Personnel/personnel_report.cs
Normal file
139
Models/Personnel/personnel_report.cs
Normal file
@@ -0,0 +1,139 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace rmutr_report.Models.Personnel
|
||||
{
|
||||
public class personnel_report
|
||||
{
|
||||
[Key] public Guid? personnel_uid { get; set; }
|
||||
public Guid? sync_uid { get; set; }
|
||||
public string academic_year_name_th { get; set; }
|
||||
public string agency_name_th { get; set; }
|
||||
public string personnel_type_code { get; set; }
|
||||
public List<t_personnel_report_detail> personnel_report_detail { get; set; }
|
||||
public double? value_1 { get; set; }
|
||||
public double? value_2 { get; set; }
|
||||
public double? value_3 { get; set; }
|
||||
public double? value_4 { get; set; }
|
||||
|
||||
public double? value_5 { get; set; }
|
||||
public double? value_6 { get; set; }
|
||||
public double? value_7 { get; set; }
|
||||
|
||||
public double? value_8 { get; set; }
|
||||
public double? value_9 { get; set; }
|
||||
public double? value_10 { get; set; }
|
||||
|
||||
public double? value_11 { get; set; }
|
||||
public double? value_12 { get; set; }
|
||||
public double? value_13 { get; set; }
|
||||
public double? value_14 { get; set; }
|
||||
|
||||
public double? value_15 { get; set; }
|
||||
public double? value_16 { get; set; }
|
||||
public double? value_17 { get; set; }
|
||||
|
||||
public double? value_18 { get; set; }
|
||||
|
||||
|
||||
public double? value_19 { get; set; }
|
||||
|
||||
public double? value_20 { get; set; }
|
||||
|
||||
public double? value_21 { get; set; }
|
||||
public double? value_22 { get; set; }
|
||||
|
||||
public double? value_23 { get; set; }
|
||||
|
||||
public double? value_24 { get; set; }
|
||||
public double? value_25 { get; set; }
|
||||
public double? value_26 { get; set; }
|
||||
public double? value_27 { get; set; }
|
||||
public double? value_28 { get; set; }
|
||||
|
||||
public double? value_29 { get; set; }
|
||||
|
||||
public double? value_30 { get; set; }
|
||||
public double? value_31 { get; set; }
|
||||
|
||||
public double? value_32 { get; set; }
|
||||
public double? value_33 { get; set; }
|
||||
public double? value_34 { get; set; }
|
||||
public double? value_35 { get; set; }
|
||||
}
|
||||
|
||||
public class t_personnel_report_detail
|
||||
{
|
||||
[Key] public Guid? personnel_report_detail_uid { get; set; }
|
||||
public Guid? personnel_report_uid { get; set; }
|
||||
public int? topic_type { get; set; }
|
||||
public string topic { get; set; }
|
||||
public double? value_1 { get; set; }
|
||||
public double? value_2 { get; set; }
|
||||
public double? value_3 { get; set; }
|
||||
public double? value_4 { get; set; }
|
||||
|
||||
public double? value_5 { get; set; }
|
||||
public double? value_6 { get; set; }
|
||||
public double? value_7 { get; set; }
|
||||
|
||||
public double? value_8 { get; set; }
|
||||
public double? value_9 { get; set; }
|
||||
public double? value_10 { get; set; }
|
||||
|
||||
public double? value_11 { get; set; }
|
||||
public double? value_12 { get; set; }
|
||||
public double? value_13 { get; set; }
|
||||
public double? value_14 { get; set; }
|
||||
|
||||
public double? value_15 { get; set; }
|
||||
public double? value_16 { get; set; }
|
||||
public double? value_17 { get; set; }
|
||||
|
||||
public double? value_18 { get; set; }
|
||||
|
||||
|
||||
public double? value_19 { get; set; }
|
||||
|
||||
public double? value_20 { get; set; }
|
||||
|
||||
public double? value_21 { get; set; }
|
||||
public double? value_22 { get; set; }
|
||||
|
||||
public double? value_23 { get; set; }
|
||||
|
||||
public double? value_24 { get; set; }
|
||||
public double? value_25 { get; set; }
|
||||
public double? value_26 { get; set; }
|
||||
public double? value_27 { get; set; }
|
||||
public double? value_28 { get; set; }
|
||||
|
||||
public double? value_29 { get; set; }
|
||||
|
||||
public double? value_30 { get; set; }
|
||||
public double? value_31 { get; set; }
|
||||
|
||||
public double? value_32 { get; set; }
|
||||
public double? value_33 { get; set; }
|
||||
public double? value_34 { get; set; }
|
||||
public double? value_35 { get; set; }
|
||||
|
||||
public double? value_36 { get; set; }
|
||||
public double? value_37 { get; set; }
|
||||
public double? value_38 { get; set; }
|
||||
public double? value_39 { get; set; }
|
||||
public double? value_40 { get; set; }
|
||||
public double? value_41 { get; set; }
|
||||
public double? value_42 { get; set; }
|
||||
public double? value_43 { get; set; }
|
||||
public double? value_44 { get; set; }
|
||||
public double? value_45 { get; set; }
|
||||
|
||||
public double? value_46 { get; set; }
|
||||
public double? value_47 { get; set; }
|
||||
public double? value_48 { get; set; }
|
||||
public double? value_49 { get; set; }
|
||||
public double? value_50 { get; set; }
|
||||
}
|
||||
}
|
||||
78
Models/Personnel/summary_mtef.cs
Normal file
78
Models/Personnel/summary_mtef.cs
Normal file
@@ -0,0 +1,78 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace rmutr_report.Models.Personnel
|
||||
{
|
||||
public class summary_mtef
|
||||
{
|
||||
public string budget_year { get; set; }
|
||||
public string year1 { get; set; }
|
||||
public string year2 { get; set; }
|
||||
public string year3 { get; set; }
|
||||
public string year4 { get; set; }
|
||||
public string year5 { get; set; }
|
||||
public string year6 { get; set; }
|
||||
public string year7 { get; set; }
|
||||
public string year8 { get; set; }
|
||||
public List<summary_mtef_detail>data { get; set; }
|
||||
public decimal? budget_1 { get; set; }
|
||||
public decimal? budget_2 { get; set; }
|
||||
public decimal? budget_3 { get; set; }
|
||||
public decimal? budget_4 { get; set; }
|
||||
public decimal? budget_5 { get; set; }
|
||||
public decimal? budget_6 { get; set; }
|
||||
public decimal? budget_7 { get; set; }
|
||||
public decimal? budget_8 { get; set; }
|
||||
public decimal? budget_9 { get; set; }
|
||||
}
|
||||
public class summary_mtef_detail {
|
||||
|
||||
public string list { get; set; }
|
||||
public decimal? budget_1 { get; set; }
|
||||
public decimal? budget_2 { get; set; }
|
||||
public decimal? budget_3 { get; set; }
|
||||
public decimal? budget_4 { get; set; }
|
||||
public decimal? budget_5 { get; set; }
|
||||
public decimal? budget_6 { get; set; }
|
||||
public decimal? budget_7 { get; set; }
|
||||
public decimal? budget_8 { get; set; }
|
||||
public decimal? budget_9 { get; set; }
|
||||
}
|
||||
|
||||
public class mtef_plan
|
||||
{
|
||||
public string budget_project_name_th { get; set; }
|
||||
public string year1 { get; set; }
|
||||
public string year2 { get; set; }
|
||||
public string year3 { get; set; }
|
||||
public string year4 { get; set; }
|
||||
public string year5 { get; set; }
|
||||
public string year6 { get; set; }
|
||||
public string year7 { get; set; }
|
||||
public string year8 { get; set; }
|
||||
public List<mtef_plan_detail>data { get; set; }
|
||||
public decimal? budget_1 { get; set; }
|
||||
public decimal? budget_2 { get; set; }
|
||||
public decimal? budget_3 { get; set; }
|
||||
public decimal? budget_4 { get; set; }
|
||||
public decimal? budget_5 { get; set; }
|
||||
public decimal? budget_6 { get; set; }
|
||||
public decimal? budget_7 { get; set; }
|
||||
public decimal? budget_8 { get; set; }
|
||||
public decimal? budget_9 { get; set; }
|
||||
}
|
||||
|
||||
public class mtef_plan_detail
|
||||
{
|
||||
public int? topic_type { get; set; }
|
||||
public string list { get; set; }
|
||||
public decimal? budget_1 { get; set; }
|
||||
public decimal? budget_2 { get; set; }
|
||||
public decimal? budget_3 { get; set; }
|
||||
public decimal? budget_4 { get; set; }
|
||||
public decimal? budget_5 { get; set; }
|
||||
public decimal? budget_6 { get; set; }
|
||||
public decimal? budget_7 { get; set; }
|
||||
public decimal? budget_8 { get; set; }
|
||||
public decimal? budget_9 { get; set; }
|
||||
}
|
||||
}
|
||||
37
Models/RoReport/calculate_meeting_expenses.cs
Normal file
37
Models/RoReport/calculate_meeting_expenses.cs
Normal file
@@ -0,0 +1,37 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace rmutr_report.Models.RoThree
|
||||
{
|
||||
public class calculate_meeting_expenses
|
||||
{
|
||||
public int? topic_type { get; set; }
|
||||
public string text1 { get; set; }
|
||||
public string text2 { get; set; }
|
||||
public string text3 { get; set; }
|
||||
public string text4 { get; set; }
|
||||
public string budget_year { get; set; }
|
||||
public string date_range { get; set; }
|
||||
public string product { get; set; }
|
||||
public string agency_name_th { get; set; }
|
||||
public string sector { get; set; }
|
||||
public List<calculate_meeting_expenses_data_datail> data { get; set; }
|
||||
public decimal? disbursement_result { get; set; }
|
||||
public decimal? expense_rate { get; set; }
|
||||
public decimal? count_person { get; set; }
|
||||
public decimal? count_meetings { get; set; }
|
||||
public decimal? total { get; set; }
|
||||
}
|
||||
|
||||
public class calculate_meeting_expenses_data_datail
|
||||
{
|
||||
public int? topic_type { get; set; } //1 สีเหลือง 2 ข้อย่อย
|
||||
public string no { get; set; }
|
||||
public string row_no { get; set; }
|
||||
public string topic_name { get; set; }
|
||||
public decimal? disbursement_result { get; set; }
|
||||
public decimal? expense_rate { get; set; }
|
||||
public decimal? count_person { get; set; }
|
||||
public decimal? count_meetings { get; set; }
|
||||
public decimal? total { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -11,7 +11,6 @@ namespace rmutr_report.Models.RoThree
|
||||
public string sector { get; set; }
|
||||
public decimal? total_amount { get; set; }
|
||||
public List<compensation_head_detail> data { get; set; }
|
||||
|
||||
}
|
||||
|
||||
public class compensation_head_detail
|
||||
|
||||
27
Models/RoReport/compensation_ro_three.cs
Normal file
27
Models/RoReport/compensation_ro_three.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace rmutr_report.Models.RoThree
|
||||
{
|
||||
public class compensation_ro_three
|
||||
{
|
||||
public int? topic_type { get; set; } //1 2 3
|
||||
public string topic_name { get; set; }
|
||||
public string budget_year { get; set; }
|
||||
public string date_range { get; set; }
|
||||
public string product { get; set; }
|
||||
public string agency_name_th { get; set; }
|
||||
public string sector { get; set; }
|
||||
public decimal? total_amount { get; set; }
|
||||
public List<compensation_ro_three_detail> data { get; set; }
|
||||
}
|
||||
|
||||
public class compensation_ro_three_detail
|
||||
{
|
||||
public string faculty_name_th { get; set; }
|
||||
public string display_name_th { get; set; }
|
||||
public decimal? salary_rate { get; set; }
|
||||
public decimal? budget_amount { get; set; }
|
||||
public string remark { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
22
Models/RoReport/consultant_compensation.cs
Normal file
22
Models/RoReport/consultant_compensation.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace rmutr_report.Models.RoThree
|
||||
{
|
||||
public class consultant_compensation
|
||||
{
|
||||
public int? topic_type { get; set; } //1 2 3 4 5 6
|
||||
public string topic_name { get; set; }
|
||||
public decimal? total_amount { get; set; }
|
||||
|
||||
public List<consultant_compensation_detail> data { get; set; }
|
||||
}
|
||||
|
||||
public class consultant_compensation_detail
|
||||
{
|
||||
public string list { get; set; }
|
||||
public decimal? quantity_day { get; set; }
|
||||
public decimal? quantity_person { get; set; }
|
||||
public decimal? rate { get; set; }
|
||||
public decimal? total_amount { get; set; }
|
||||
}
|
||||
}
|
||||
22
Models/RoReport/contributions.cs
Normal file
22
Models/RoReport/contributions.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace rmutr_report.Models.RoThree
|
||||
{
|
||||
public class contributions
|
||||
{
|
||||
public int? topic_type { get; set; } //1 2
|
||||
public string topic_name { get; set; }
|
||||
public decimal? total_amount { get; set; }
|
||||
|
||||
public List<contributions_detail> data { get; set; }
|
||||
}
|
||||
|
||||
public class contributions_detail
|
||||
{
|
||||
public string position { get; set; }
|
||||
public string qualification { get; set; }
|
||||
public decimal? salary { get; set; }
|
||||
public decimal? amount { get; set; }
|
||||
public decimal? per_year { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -9,6 +9,7 @@ namespace rmutr_report.Models.RoThree
|
||||
[Key] public Guid? budget_income_qualification_uid { get; set; }
|
||||
public Guid? budget_year_uid { get; set; }
|
||||
public int? budget_income_qualification_no { get; set; }
|
||||
public string qualification_no { get; set; }
|
||||
public DateTime? budget_income_qualification_date { get; set; }
|
||||
public string budget_income_qualification_dates { get; set; }
|
||||
public string budget_income_qualification_topic { get; set; }
|
||||
@@ -19,7 +20,9 @@ namespace rmutr_report.Models.RoThree
|
||||
public string position_name { get; set; }
|
||||
public Guid? agency_uid { get; set; }
|
||||
public Guid? budget_plan_uid { get; set; }
|
||||
|
||||
public Guid? budget_project_uid { get; set; }
|
||||
|
||||
//
|
||||
public string college_faculty_name_th { get; set; }
|
||||
public string budget_project_name_th { get; set; }
|
||||
@@ -30,21 +33,23 @@ namespace rmutr_report.Models.RoThree
|
||||
public string year_budget_project { get; set; }
|
||||
public int? budget_project_time_year { get; set; }
|
||||
public int? budget_project_time_month { get; set; }
|
||||
public string due_to { get; set; } //เนื่องจาก
|
||||
public string due_to { get; set; }
|
||||
public Guid? current_position_uid { get; set; }
|
||||
public Guid? new_position_uid { get; set; }
|
||||
public Guid? current_qualification_uid { get; set; }
|
||||
|
||||
public Guid? new_qualification_uid { get; set; }
|
||||
|
||||
//
|
||||
public string current_position { get; set; }
|
||||
public string new_position { get; set; }
|
||||
public string new_position { get; set; }
|
||||
public string current_qualification { get; set; }
|
||||
public string new_qualification { get; set; }
|
||||
[Column(TypeName ="decimal(18,2)")]
|
||||
public decimal? current_salary { get; set; }
|
||||
[Column(TypeName ="decimal(18,2)")]
|
||||
public decimal? new_salary { get; set; }
|
||||
[Column(TypeName = "decimal(18,2)")] public decimal? current_salary { get; set; }
|
||||
[Column(TypeName = "decimal(18,2)")] public decimal? new_salary { get; set; }
|
||||
public string budget_income_qualification_file_1 { get; set; }
|
||||
public string budget_income_qualification_file_2 { get; set; }
|
||||
public string remark { get; set; }//เนื่องจาก
|
||||
|
||||
}
|
||||
}
|
||||
@@ -54,6 +54,7 @@ namespace rmutr_report.Models.RoThree
|
||||
public decimal? salary { get; set; }
|
||||
|
||||
public string new_position { get; set; }
|
||||
|
||||
//
|
||||
public Guid? budget_project_uid { get; set; }
|
||||
public Guid? budget_plan_uid { get; set; }
|
||||
|
||||
@@ -55,6 +55,7 @@ namespace rmutr_report.Models.RoThree
|
||||
|
||||
//
|
||||
public string another_document_remark { get; set; }
|
||||
|
||||
//
|
||||
public string budget_year { get; set; }
|
||||
public string agency_category_name { get; set; }
|
||||
@@ -129,11 +130,12 @@ namespace rmutr_report.Models.RoThree
|
||||
|
||||
//
|
||||
public int? row { get; set; }
|
||||
|
||||
//
|
||||
public decimal? quantity { get; set; }
|
||||
public List<t_form_1_3_files> files { get; set; }
|
||||
}
|
||||
|
||||
|
||||
public class t_form_1_3_files
|
||||
{
|
||||
[Key] public Guid? form_1_3_files_uid { get; set; }
|
||||
|
||||
31
Models/RoReport/house_rent_ro_three.cs
Normal file
31
Models/RoReport/house_rent_ro_three.cs
Normal file
@@ -0,0 +1,31 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace rmutr_report.Models.RoThree
|
||||
{
|
||||
public class house_rent_ro_three
|
||||
{
|
||||
public int? topic_type { get; set; } //1 2 3
|
||||
public string topic_name { get; set; }
|
||||
public string budget_year { get; set; }
|
||||
public string product { get; set; }
|
||||
public string agency_name_th { get; set; }
|
||||
public string sector { get; set; }
|
||||
public List<house_rent_ro_three_detail> data { get; set; }
|
||||
}
|
||||
|
||||
public class house_rent_ro_three_detail
|
||||
{
|
||||
public string display_name_th { get; set; }
|
||||
public string position { get; set; }
|
||||
public string qualification { get; set; }
|
||||
public decimal? salary_rate { get; set; }
|
||||
public decimal? other_compensation { get; set; }
|
||||
public decimal? rent_per_month { get; set; }
|
||||
public decimal? rent_per_year { get; set; }
|
||||
public decimal? book { get; set; }
|
||||
public decimal? insurance { get; set; }
|
||||
public decimal? fee { get; set; }
|
||||
|
||||
public string station { get; set; }
|
||||
}
|
||||
}
|
||||
20
Models/RoReport/land_rent.cs
Normal file
20
Models/RoReport/land_rent.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace rmutr_report.Models.RoThree
|
||||
{
|
||||
public class land_rent
|
||||
{
|
||||
public string budget_year { get; set; }
|
||||
public decimal? total_amount { get; set; }
|
||||
public List<land_rent_data_datail> data { get; set; }
|
||||
}
|
||||
|
||||
public class land_rent_data_datail
|
||||
{
|
||||
public string list { get; set; }
|
||||
public decimal? amount { get; set; }
|
||||
public string unit { get; set; }
|
||||
public decimal? unit_price { get; set; }
|
||||
public decimal? total_amount { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -10,99 +10,107 @@ namespace rmutr_report.Models.RoThree
|
||||
public string semester_year_1 { get; set; }
|
||||
public string semester_year_2 { get; set; }
|
||||
public string material_semester_year_1 { get; set; }
|
||||
|
||||
public string material_semester_year_2 { get; set; }
|
||||
|
||||
//
|
||||
public decimal? semester_year_1_level_1 { get; set; }
|
||||
public decimal? semester_year_1_level_2 { get; set; }
|
||||
public decimal? semester_year_1_level_3 { get; set; }
|
||||
public decimal? semester_year_1_level_4 { get; set; }
|
||||
public decimal? semester_year_1_level_5 { get; set; }
|
||||
public decimal? semester_year_1_level_1 { get; set; }
|
||||
public decimal? semester_year_1_level_2 { get; set; }
|
||||
public decimal? semester_year_1_level_3 { get; set; }
|
||||
public decimal? semester_year_1_level_4 { get; set; }
|
||||
public decimal? semester_year_1_level_5 { get; set; }
|
||||
public decimal? total_semester_year_level_1 { get; set; }
|
||||
public decimal? rate_semester_year_level_1 { get; set; }
|
||||
public decimal? rate_semester_year_level_1 { get; set; }
|
||||
|
||||
public decimal? material_amount_1 { get; set; }
|
||||
|
||||
//
|
||||
public decimal? semester_year_2_level_1 { get; set; }
|
||||
public decimal? semester_year_2_level_2 { get; set; }
|
||||
public decimal? semester_year_2_level_3 { get; set; }
|
||||
public decimal? semester_year_2_level_4 { get; set; }
|
||||
public decimal? semester_year_2_level_5 { get; set; }
|
||||
public decimal? semester_year_2_level_1 { get; set; }
|
||||
public decimal? semester_year_2_level_2 { get; set; }
|
||||
public decimal? semester_year_2_level_3 { get; set; }
|
||||
public decimal? semester_year_2_level_4 { get; set; }
|
||||
public decimal? semester_year_2_level_5 { get; set; }
|
||||
public decimal? total_semester_year_level_2 { get; set; }
|
||||
public decimal? rate_semester_year_level_2 { get; set; }
|
||||
public decimal? material_amount_2 { get; set; }
|
||||
public decimal? total_material { get; set; }
|
||||
public List<material_education_detail1> data_1 { get; set; }
|
||||
public decimal? rate_semester_year_level_2 { get; set; }
|
||||
public decimal? material_amount_2 { get; set; }
|
||||
public decimal? total_material { get; set; }
|
||||
public List<material_education_detail1> data_1 { get; set; }
|
||||
}
|
||||
|
||||
public class material_education_detail1
|
||||
{
|
||||
public string education_level { get; set; }
|
||||
public decimal? semester_year_1_level_1 { get; set; }
|
||||
public decimal? semester_year_1_level_2 { get; set; }
|
||||
public decimal? semester_year_1_level_3 { get; set; }
|
||||
public decimal? semester_year_1_level_4 { get; set; }
|
||||
public decimal? semester_year_1_level_5 { get; set; }
|
||||
public string education_level { get; set; }
|
||||
public decimal? semester_year_1_level_1 { get; set; }
|
||||
public decimal? semester_year_1_level_2 { get; set; }
|
||||
public decimal? semester_year_1_level_3 { get; set; }
|
||||
public decimal? semester_year_1_level_4 { get; set; }
|
||||
public decimal? semester_year_1_level_5 { get; set; }
|
||||
public decimal? total_semester_year_level_1 { get; set; }
|
||||
public decimal? rate_semester_year_level_1 { get; set; }
|
||||
public decimal? material_amount_1 { get; set; }
|
||||
//
|
||||
public decimal? semester_year_2_level_1 { get; set; }
|
||||
public decimal? semester_year_2_level_2 { get; set; }
|
||||
public decimal? semester_year_2_level_3 { get; set; }
|
||||
public decimal? semester_year_2_level_4 { get; set; }
|
||||
public decimal? semester_year_2_level_5 { get; set; }
|
||||
public decimal? total_semester_year_level_2 { get; set; }
|
||||
public decimal? rate_semester_year_level_2 { get; set; }
|
||||
public decimal? material_amount_2 { get; set; }
|
||||
public decimal? total_material { get; set; }
|
||||
public List<material_education_detail2> data_2 { get; set; }
|
||||
public decimal? rate_semester_year_level_1 { get; set; }
|
||||
|
||||
public decimal? material_amount_1 { get; set; }
|
||||
|
||||
//
|
||||
public decimal? semester_year_2_level_1 { get; set; }
|
||||
public decimal? semester_year_2_level_2 { get; set; }
|
||||
public decimal? semester_year_2_level_3 { get; set; }
|
||||
public decimal? semester_year_2_level_4 { get; set; }
|
||||
public decimal? semester_year_2_level_5 { get; set; }
|
||||
public decimal? total_semester_year_level_2 { get; set; }
|
||||
public decimal? rate_semester_year_level_2 { get; set; }
|
||||
public decimal? material_amount_2 { get; set; }
|
||||
public decimal? total_material { get; set; }
|
||||
public List<material_education_detail2> data_2 { get; set; }
|
||||
}
|
||||
|
||||
public class material_education_detail2
|
||||
{
|
||||
public string curriculum { get; set; }
|
||||
public decimal? semester_year_1_level_1 { get; set; }
|
||||
public decimal? semester_year_1_level_2 { get; set; }
|
||||
public decimal? semester_year_1_level_3 { get; set; }
|
||||
public decimal? semester_year_1_level_4 { get; set; }
|
||||
public decimal? semester_year_1_level_5 { get; set; }
|
||||
public string curriculum { get; set; }
|
||||
public decimal? semester_year_1_level_1 { get; set; }
|
||||
public decimal? semester_year_1_level_2 { get; set; }
|
||||
public decimal? semester_year_1_level_3 { get; set; }
|
||||
public decimal? semester_year_1_level_4 { get; set; }
|
||||
public decimal? semester_year_1_level_5 { get; set; }
|
||||
public decimal? total_semester_year_level_1 { get; set; }
|
||||
public decimal? rate_semester_year_level_1 { get; set; }
|
||||
public decimal? material_amount_1 { get; set; }
|
||||
//
|
||||
public decimal? semester_year_2_level_1 { get; set; }
|
||||
public decimal? semester_year_2_level_2 { get; set; }
|
||||
public decimal? semester_year_2_level_3 { get; set; }
|
||||
public decimal? semester_year_2_level_4 { get; set; }
|
||||
public decimal? semester_year_2_level_5 { get; set; }
|
||||
public decimal? total_semester_year_level_2 { get; set; }
|
||||
public decimal? rate_semester_year_level_2 { get; set; }
|
||||
public decimal? material_amount_2 { get; set; }
|
||||
public decimal? total_material { get; set; }
|
||||
public List<material_education_detail3> data_3 { get; set; }
|
||||
public decimal? rate_semester_year_level_1 { get; set; }
|
||||
|
||||
public decimal? material_amount_1 { get; set; }
|
||||
|
||||
//
|
||||
public decimal? semester_year_2_level_1 { get; set; }
|
||||
public decimal? semester_year_2_level_2 { get; set; }
|
||||
public decimal? semester_year_2_level_3 { get; set; }
|
||||
public decimal? semester_year_2_level_4 { get; set; }
|
||||
public decimal? semester_year_2_level_5 { get; set; }
|
||||
public decimal? total_semester_year_level_2 { get; set; }
|
||||
public decimal? rate_semester_year_level_2 { get; set; }
|
||||
public decimal? material_amount_2 { get; set; }
|
||||
public decimal? total_material { get; set; }
|
||||
public List<material_education_detail3> data_3 { get; set; }
|
||||
}
|
||||
|
||||
public class material_education_detail3
|
||||
{
|
||||
public string major { get; set; }
|
||||
public decimal? semester_year_1_level_1 { get; set; }
|
||||
public decimal? semester_year_1_level_2 { get; set; }
|
||||
public decimal? semester_year_1_level_3 { get; set; }
|
||||
public decimal? semester_year_1_level_4 { get; set; }
|
||||
public decimal? semester_year_1_level_5 { get; set; }
|
||||
public string major { get; set; }
|
||||
public decimal? semester_year_1_level_1 { get; set; }
|
||||
public decimal? semester_year_1_level_2 { get; set; }
|
||||
public decimal? semester_year_1_level_3 { get; set; }
|
||||
public decimal? semester_year_1_level_4 { get; set; }
|
||||
public decimal? semester_year_1_level_5 { get; set; }
|
||||
public decimal? total_semester_year_level_1 { get; set; }
|
||||
public decimal? rate_semester_year_level_1 { get; set; }
|
||||
public decimal? rate_semester_year_level_1 { get; set; }
|
||||
|
||||
public decimal? material_amount_1 { get; set; }
|
||||
|
||||
//
|
||||
public decimal? semester_year_2_level_1 { get; set; }
|
||||
public decimal? semester_year_2_level_2 { get; set; }
|
||||
public decimal? semester_year_2_level_3 { get; set; }
|
||||
public decimal? semester_year_2_level_4 { get; set; }
|
||||
public decimal? semester_year_2_level_5 { get; set; }
|
||||
public decimal? semester_year_2_level_1 { get; set; }
|
||||
public decimal? semester_year_2_level_2 { get; set; }
|
||||
public decimal? semester_year_2_level_3 { get; set; }
|
||||
public decimal? semester_year_2_level_4 { get; set; }
|
||||
public decimal? semester_year_2_level_5 { get; set; }
|
||||
public decimal? total_semester_year_level_2 { get; set; }
|
||||
public decimal? rate_semester_year_level_2 { get; set; }
|
||||
public decimal? material_amount_2 { get; set; }
|
||||
public decimal? total_material { get; set; }
|
||||
public decimal? rate_semester_year_level_2 { get; set; }
|
||||
public decimal? material_amount_2 { get; set; }
|
||||
public decimal? total_material { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -8,15 +8,14 @@ namespace rmutr_report.Models.RoThree
|
||||
public string agency_name_th { get; set; }
|
||||
public string sector { get; set; }
|
||||
public decimal? total_amount { get; set; }
|
||||
public List<material_fuel_lubricant_detail> data { get; set; }
|
||||
public List<material_fuel_lubricant_detail> data { get; set; }
|
||||
}
|
||||
|
||||
public class material_fuel_lubricant_detail
|
||||
{
|
||||
public string type { get; set; }
|
||||
public decimal? total_amount { get; set; }
|
||||
public List<material_fuel_lubricant_data_detail> data_detail { get; set; }
|
||||
|
||||
public List<material_fuel_lubricant_data_detail> data_detail { get; set; }
|
||||
}
|
||||
|
||||
public class material_fuel_lubricant_data_detail
|
||||
|
||||
@@ -4,6 +4,7 @@ namespace rmutr_report.Models.RoThree
|
||||
{
|
||||
public class material_ro_three
|
||||
{
|
||||
public string material_name { get; set; }
|
||||
public string product { get; set; }
|
||||
public string agency_name_th { get; set; }
|
||||
public string sector { get; set; }
|
||||
@@ -18,5 +19,5 @@ namespace rmutr_report.Models.RoThree
|
||||
public decimal? unit_price { get; set; }
|
||||
public decimal? material_amount { get; set; }
|
||||
public string remark { get; set; }
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -12,8 +12,6 @@ namespace rmutr_report.Models.RoThree
|
||||
public string disbursement_result_year { get; set; }
|
||||
public string set_year { get; set; }
|
||||
public List<operating_budget_ro_three_detail> data_1 { get; set; }
|
||||
|
||||
|
||||
}
|
||||
|
||||
public class operating_budget_ro_three_detail
|
||||
@@ -26,8 +24,7 @@ namespace rmutr_report.Models.RoThree
|
||||
public decimal? rate { get; set; }
|
||||
public decimal? total_amount { get; set; }
|
||||
public string remark { get; set; }
|
||||
public List<operating_budget_ro_three_detail2> data_2{ get; set; }
|
||||
|
||||
public List<operating_budget_ro_three_detail2> data_2 { get; set; }
|
||||
}
|
||||
|
||||
public class operating_budget_ro_three_detail2
|
||||
@@ -41,8 +38,7 @@ namespace rmutr_report.Models.RoThree
|
||||
public decimal? rate { get; set; }
|
||||
public decimal? total_amount { get; set; }
|
||||
public string remark { get; set; }
|
||||
public List<operating_budget_ro_three_detail3> data_3{ get; set; }
|
||||
|
||||
public List<operating_budget_ro_three_detail3> data_3 { get; set; }
|
||||
}
|
||||
|
||||
public class operating_budget_ro_three_detail3
|
||||
@@ -56,8 +52,7 @@ namespace rmutr_report.Models.RoThree
|
||||
public decimal? rate { get; set; }
|
||||
public decimal? total_amount { get; set; }
|
||||
public string remark { get; set; }
|
||||
public List<operating_budget_ro_three_detail4> data_4{ get; set; }
|
||||
|
||||
public List<operating_budget_ro_three_detail4> data_4 { get; set; }
|
||||
}
|
||||
|
||||
public class operating_budget_ro_three_detail4
|
||||
@@ -69,6 +64,6 @@ namespace rmutr_report.Models.RoThree
|
||||
public decimal? quantity_2 { get; set; }
|
||||
public decimal? rate { get; set; }
|
||||
public decimal? total_amount { get; set; }
|
||||
public string remark { get; set; }
|
||||
public string remark { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -8,22 +8,20 @@ namespace rmutr_report.Models.RoThree
|
||||
public string area { get; set; }
|
||||
public string faculty { get; set; }
|
||||
public string semester { get; set; }
|
||||
public string year { get; set; }
|
||||
public string budget_project_name_th { get; set; }
|
||||
public List<revenue_estimate_education_fee_detail1> data_1 { get; set; }
|
||||
public string side { get; set; }
|
||||
public decimal? total_curriculum { get; set; }
|
||||
public decimal? total_revenue { get; set; }
|
||||
|
||||
|
||||
public string year { get; set; }
|
||||
public string budget_project_name_th { get; set; }
|
||||
public List<revenue_estimate_education_fee_detail1> data_1 { get; set; }
|
||||
public string side { get; set; }
|
||||
public decimal? total_revenue { get; set; }
|
||||
}
|
||||
|
||||
public class revenue_estimate_education_fee_detail1
|
||||
{
|
||||
public string curriculum { get; set; }
|
||||
public decimal? total_curriculum { get; set; }
|
||||
public List<revenue_estimate_education_fee_detail2> data_2 { get; set; }
|
||||
|
||||
}
|
||||
|
||||
public class revenue_estimate_education_fee_detail2
|
||||
{
|
||||
public string year_class { get; set; }
|
||||
@@ -41,9 +39,8 @@ public decimal? total_revenue { get; set; }
|
||||
public decimal? allocation { get; set; }
|
||||
public decimal? total_allocation_amount { get; set; }
|
||||
public List<revenue_estimate_education_fee_detail3> data_3 { get; set; }
|
||||
|
||||
|
||||
}
|
||||
|
||||
public class revenue_estimate_education_fee_detail3
|
||||
{
|
||||
public string topic_code { get; set; }
|
||||
|
||||
@@ -10,8 +10,8 @@ namespace rmutr_report.Models.RoThree
|
||||
public string register_semester_year_1 { get; set; }
|
||||
public string register_semester_year_2 { get; set; }
|
||||
public string education_semester_year_1 { get; set; }
|
||||
public string education_semester_year_2 { get; set; }
|
||||
public List<revenue_estimate_income_summary_detail> data{ get; set; }
|
||||
public string education_semester_year_2 { get; set; }
|
||||
public List<revenue_estimate_income_summary_detail> data { get; set; }
|
||||
public decimal? sum_1 { get; set; }
|
||||
public decimal? sum_2 { get; set; }
|
||||
public decimal? sum_3 { get; set; }
|
||||
@@ -31,7 +31,6 @@ namespace rmutr_report.Models.RoThree
|
||||
public string test { get; set; }
|
||||
public string position_test { get; set; }
|
||||
public string test_date { get; set; }
|
||||
|
||||
}
|
||||
|
||||
public class revenue_estimate_income_summary_detail
|
||||
@@ -50,6 +49,5 @@ namespace rmutr_report.Models.RoThree
|
||||
public decimal? total_science { get; set; }
|
||||
public decimal? total_social { get; set; }
|
||||
public decimal? total_science_social { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
25
Models/RoReport/service_fee_ro_three.cs
Normal file
25
Models/RoReport/service_fee_ro_three.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace rmutr_report.Models.RoThree
|
||||
{
|
||||
public class service_fee_ro_three
|
||||
{
|
||||
public string budget_year { get; set; }
|
||||
public string date_range { get; set; }
|
||||
public string product { get; set; }
|
||||
public string agency_name_th { get; set; }
|
||||
public string sector { get; set; }
|
||||
public List<service_fee_ro_three_data_datail> data { get; set; }
|
||||
|
||||
}
|
||||
|
||||
public class service_fee_ro_three_data_datail
|
||||
{
|
||||
public string service_fee_type { get; set; }
|
||||
public string list { get; set; }
|
||||
public decimal? area { get; set; }
|
||||
public decimal? count_person { get; set; }
|
||||
public decimal? wage_month { get; set; }
|
||||
public decimal? wage_year { get; set; }
|
||||
}
|
||||
}
|
||||
28
Models/RoReport/summary_income_cooperative.cs
Normal file
28
Models/RoReport/summary_income_cooperative.cs
Normal file
@@ -0,0 +1,28 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace rmutr_report.Models.RoThree
|
||||
{
|
||||
public class summary_income_cooperative
|
||||
{
|
||||
public string budget_year { get; set; }
|
||||
public string date_range { get; set; }
|
||||
public string faculty_college { get; set; }
|
||||
public string area { get; set; }
|
||||
public List<summary_income_cooperative_detail> data { get; set; }
|
||||
public string maker { get; set; }
|
||||
public string position_maker { get; set; }
|
||||
public string maker_date { get; set; }
|
||||
}
|
||||
|
||||
public class summary_income_cooperative_detail
|
||||
{
|
||||
public int? topic_type { get; set; }
|
||||
public string topic { get; set; }
|
||||
public double? revenue_estimates { get; set; }
|
||||
public double? deduct_expenses_percent60 { get; set; }
|
||||
public double? deduct_expenses_percent10 { get; set; }
|
||||
public double? balance { get; set; }
|
||||
public double? deduct_tuition_fees { get; set; }
|
||||
public double? balance_university { get; set; }
|
||||
}
|
||||
}
|
||||
50
Models/RoReport/teaching_fee_extra_ro_three.cs
Normal file
50
Models/RoReport/teaching_fee_extra_ro_three.cs
Normal file
@@ -0,0 +1,50 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace rmutr_report.Models.RoThree
|
||||
{
|
||||
public class teaching_fee_extra_ro_three
|
||||
{
|
||||
public string budget_year { get; set; }
|
||||
public string product { get; set; }
|
||||
public string agency_name_th { get; set; }
|
||||
public string sector { get; set; }
|
||||
public string area { get; set; }
|
||||
public string year { get; set; }
|
||||
public string semester { get; set; }
|
||||
public List<teaching_fee_extra_ro_three_data> data { get; set; }
|
||||
public decimal? month_1 { get; set; }
|
||||
public decimal? month_2 { get; set; }
|
||||
public decimal? month_3 { get; set; }
|
||||
public decimal? month_4 { get; set; }
|
||||
public decimal? month_5 { get; set; }
|
||||
public decimal? month_6 { get; set; }
|
||||
public decimal? month_7 { get; set; }
|
||||
public decimal? month_8 { get; set; }
|
||||
public decimal? month_9 { get; set; }
|
||||
public decimal? month_10 { get; set; }
|
||||
public decimal? month_11 { get; set; }
|
||||
public decimal? month_12 { get; set; }
|
||||
public decimal? total { get; set; }
|
||||
}
|
||||
|
||||
public class teaching_fee_extra_ro_three_data
|
||||
{
|
||||
public string row_no { get; set; }
|
||||
public string display_name { get; set; }
|
||||
public string position { get; set; }
|
||||
public string subject { get; set; }
|
||||
public decimal? month_1 { get; set; }
|
||||
public decimal? month_2 { get; set; }
|
||||
public decimal? month_3 { get; set; }
|
||||
public decimal? month_4 { get; set; }
|
||||
public decimal? month_5 { get; set; }
|
||||
public decimal? month_6 { get; set; }
|
||||
public decimal? month_7 { get; set; }
|
||||
public decimal? month_8 { get; set; }
|
||||
public decimal? month_9 { get; set; }
|
||||
public decimal? month_10 { get; set; }
|
||||
public decimal? month_11 { get; set; }
|
||||
public decimal? month_12 { get; set; }
|
||||
public decimal? total { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -4,18 +4,17 @@ namespace rmutr_report.Models.RoThree
|
||||
{
|
||||
public class teaching_fee_ro_three
|
||||
{
|
||||
public string budget_year_1 { get; set; }
|
||||
public string date_range_1 { get; set; }
|
||||
public string product_1 { get; set; }
|
||||
public string semester_1 { get; set; }
|
||||
public string academic_year_1 { get; set; }
|
||||
public string agency_name_th_1 { get; set; }
|
||||
public string sector_1 { get; set; }
|
||||
public string disbursement_result_year_1 { get; set; }
|
||||
public string disbursement_result_semester_1 { get; set; }
|
||||
|
||||
public List<teaching_fee_ro_three_data_1> data_1 { get; set; }
|
||||
//
|
||||
public string budget_year { get; set; }
|
||||
public string date_range { get; set; }
|
||||
public string product { get; set; }
|
||||
public string semester { get; set; }
|
||||
public string academic_year { get; set; }
|
||||
public string agency_name_th { get; set; }
|
||||
public string sector { get; set; }
|
||||
public string disbursement_result_year { get; set; }
|
||||
public string disbursement_result_semester { get; set; }
|
||||
|
||||
public List<teaching_fee_ro_three_data> data { get; set; }
|
||||
public decimal? table_1_ba_1 { get; set; }
|
||||
public decimal? table_1_ma_1 { get; set; }
|
||||
public decimal? table_1_ba_2 { get; set; }
|
||||
@@ -25,54 +24,12 @@ namespace rmutr_report.Models.RoThree
|
||||
public decimal? table_1_teaching_fee_1 { get; set; }
|
||||
public decimal? table_1_teaching_fee_2 { get; set; }
|
||||
public decimal? table_1_total { get; set; }
|
||||
|
||||
public string budget_year_2 { get; set; }
|
||||
public string date_range_2 { get; set; }
|
||||
public string product_2 { get; set; }
|
||||
public string semester_2 { get; set; }
|
||||
public string academic_year_2 { get; set; }
|
||||
public string agency_name_th_2 { get; set; }
|
||||
public string sector_2 { get; set; }
|
||||
public string disbursement_result_year_2 { get; set; }
|
||||
public string disbursement_result_semester_2 { get; set; }
|
||||
public List<teaching_fee_ro_three_data_1> data_2 { get; set; }
|
||||
//
|
||||
public decimal? table_2_ba_1 { get; set; }
|
||||
public decimal? table_2_ma_1 { get; set; }
|
||||
public decimal? table_2_ba_2 { get; set; }
|
||||
public decimal? table_2_ma_2 { get; set; }
|
||||
public decimal? table_2_ba_3 { get; set; }
|
||||
public decimal? table_2_ma_3 { get; set; }
|
||||
public decimal? table_2_teaching_fee_1 { get; set; }
|
||||
public decimal? table_2_teaching_fee_2 { get; set; }
|
||||
public decimal? table_2_total { get; set; }
|
||||
|
||||
public string budget_year_3 { get; set; }
|
||||
public string date_range_3 { get; set; }
|
||||
public string product_3 { get; set; }
|
||||
public string semester_3 { get; set; }
|
||||
public string academic_year_3 { get; set; }
|
||||
public string agency_name_th_3 { get; set; }
|
||||
public string sector_3 { get; set; }
|
||||
public string disbursement_result_year_3 { get; set; }
|
||||
public string disbursement_result_semester_3 { get; set; }
|
||||
public List<teaching_fee_ro_three_data_1> data_3 { get; set; }
|
||||
//
|
||||
public decimal? table_3_ba_1 { get; set; }
|
||||
public decimal? table_3_ma_1 { get; set; }
|
||||
public decimal? table_3_ba_2 { get; set; }
|
||||
public decimal? table_3_ma_2 { get; set; }
|
||||
public decimal? table_3_ba_3 { get; set; }
|
||||
public decimal? table_3_ma_3 { get; set; }
|
||||
public decimal? table_3_teaching_fee_1 { get; set; }
|
||||
public decimal? table_3_teaching_fee_2 { get; set; }
|
||||
public decimal? table_3_total { get; set; }
|
||||
|
||||
}
|
||||
|
||||
public class teaching_fee_ro_three_data_1
|
||||
|
||||
public class teaching_fee_ro_three_data
|
||||
{
|
||||
public string display_name { get; set; }
|
||||
public string subject_name_th { get; set; }
|
||||
public string position { get; set; }
|
||||
public decimal? disbursement_result { get; set; }
|
||||
public decimal? number_of_hours_ba_1 { get; set; }
|
||||
@@ -81,8 +38,8 @@ namespace rmutr_report.Models.RoThree
|
||||
public decimal? number_of_hours_ma_2 { get; set; }
|
||||
public decimal? number_of_hours_ba_3 { get; set; }
|
||||
public decimal? number_of_hours_ma_3 { get; set; }
|
||||
public decimal? excess_teaching_fee_1 { get; set; }
|
||||
public decimal? excess_teaching_fee_2 { get; set; }
|
||||
public decimal? teaching_fee_1 { get; set; }
|
||||
public decimal? teaching_fee_2 { get; set; }
|
||||
public decimal? total { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -17,50 +17,75 @@ namespace rmutr_report.Models
|
||||
//public string agency_category_name { get; set; } //ผลผลิต
|
||||
public decimal? total { get; set; }
|
||||
public List<budget> budgets { get; set; }
|
||||
//public List<budget> budgets2 { get; set; }
|
||||
}
|
||||
|
||||
public class budget
|
||||
{
|
||||
public string topic { get; set; }
|
||||
public decimal? total { get; set; } //แผนงาน
|
||||
|
||||
public personnel_list personnel_lists { get; set; }
|
||||
public personnel_list personnel_lists { get; set; }
|
||||
public List<personnel_list> personnel_list_s { get; set; }
|
||||
}
|
||||
|
||||
public class personnel_list //รายการบุคลกร
|
||||
{
|
||||
public string topic { get; set; }
|
||||
public decimal? total { get; set; }
|
||||
public List<budget_personnel_list> budget_personnel_lists { get; set; }
|
||||
public List<budget_personnel_list> budget_personnel_lists2 { get; set; }
|
||||
}
|
||||
|
||||
public class budget_personnel_list //งบบุคลากร
|
||||
{
|
||||
public string topic { get; set; }
|
||||
public decimal? rate { get; set; }
|
||||
public decimal? total { get; set; }
|
||||
public string text1 { get; set; }
|
||||
public string text2 { get; set; }
|
||||
public List<budget_personnel_list_2> budget_personnel_lists_2 { get; set; }
|
||||
}
|
||||
|
||||
public class budget_personnel_list_2 //ค่าจ้างชั่วคราว
|
||||
{
|
||||
public int? row_no { get; set; }
|
||||
public string topic { get; set; }
|
||||
public decimal? rate { get; set; }
|
||||
public decimal? total { get; set; }
|
||||
public string text1 { get; set; }
|
||||
public string text2 { get; set; }
|
||||
public List<budget_rate> budget_rates { get; set; }
|
||||
}
|
||||
|
||||
public class budget_rate //อัตราเดิม/อัตราใหม่
|
||||
{
|
||||
public int? row_no { get; set; }
|
||||
public string topic { get; set; }
|
||||
public decimal? rate { get; set; }
|
||||
public decimal? total { get; set; }
|
||||
public string text1 { get; set; }
|
||||
public string text2 { get; set; }
|
||||
public List<details> details { get; set; }
|
||||
}
|
||||
|
||||
public class details //อันรองลงมา
|
||||
{
|
||||
public int? row_no { get; set; }
|
||||
public string position_level { get; set; }
|
||||
public string qualification { get; set; }
|
||||
public decimal? rate { get; set; }
|
||||
public decimal? total { get; set; }
|
||||
public string text1 { get; set; }
|
||||
public string text2 { get; set; }
|
||||
public List<details2> details2 { get; set; }
|
||||
}
|
||||
public class details2 //อันรองลงมา
|
||||
{
|
||||
public int? row_no { get; set; }
|
||||
public string topic { get; set; }
|
||||
|
||||
public decimal? total { get; set; }
|
||||
public string text1 { get; set; }
|
||||
}
|
||||
|
||||
}
|
||||
95
Models/budget/budget_expenditure_report_from_revenue_v2.cs
Normal file
95
Models/budget/budget_expenditure_report_from_revenue_v2.cs
Normal file
@@ -0,0 +1,95 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace rmutr_report.Models
|
||||
{
|
||||
public class budget_expenditure_report_from_revenue_v2
|
||||
{
|
||||
public string academic_year_name_th { get; set; }
|
||||
public string sector { get; set; } //ภาค
|
||||
public string parent_agency_name { get; set; } //หน่วยงาน
|
||||
public string agency_name_th { get; set; } //พื้นที่
|
||||
public decimal? total { get; set; }
|
||||
public List<budget_expenditure_report_from_revenue_v2_detail> details { get; set; }
|
||||
}
|
||||
|
||||
public class budget_expenditure_report_from_revenue_v2_detail
|
||||
{
|
||||
public int? topic_type { get; set; }
|
||||
public int? row_no1 { get; set; }
|
||||
public int? row_no2 { get; set; }
|
||||
public int? row_no3 { get; set; }
|
||||
public int? row_no4 { get; set; }
|
||||
public int? row_no5 { get; set; }
|
||||
public int? row_no6 { get; set; }
|
||||
public int? row_no7 { get; set; }
|
||||
public int? row_no8 { get; set; }
|
||||
public string topic { get; set; }
|
||||
public string qualification { get; set; }
|
||||
public string unit { get; set; }
|
||||
public decimal? value1 { get; set; }
|
||||
public decimal? value2 { get; set; }
|
||||
public decimal? value3 { get; set; }
|
||||
public decimal? value4 { get; set; }
|
||||
public string topic1 { get; set; }
|
||||
public string topic2 { get; set; }
|
||||
public string topic3 { get; set; }
|
||||
public string topic4 { get; set; }
|
||||
public string topic5 { get; set; }
|
||||
public string topic6 { get; set; }
|
||||
public string topic7 { get; set; }
|
||||
public string topic8 { get; set; }
|
||||
public string topic9 { get; set; }
|
||||
public string topic10 { get; set; }
|
||||
public string topic11 { get; set; }
|
||||
public string topic12 { get; set; }
|
||||
public string topic13 { get; set; }
|
||||
public string topic14 { get; set; }
|
||||
public string topic15 { get; set; }
|
||||
public string topic16 { get; set; }
|
||||
public string topic17 { get; set; }
|
||||
public decimal? amount1 { get; set; }
|
||||
public decimal? amount2 { get; set; }
|
||||
public decimal? amount3 { get; set; }
|
||||
public decimal? amount4 { get; set; }
|
||||
public decimal? amount5 { get; set; }
|
||||
public decimal? amount6 { get; set; }
|
||||
public decimal? amount7 { get; set; }
|
||||
public decimal? amount8 { get; set; }
|
||||
public decimal? amount9 { get; set; }
|
||||
public decimal? amount10 { get; set; }
|
||||
public decimal? amount11 { get; set; }
|
||||
public decimal? amount12 { get; set; }
|
||||
public decimal? amount13 { get; set; }
|
||||
public decimal? amount14 { get; set; }
|
||||
public decimal? amount15 { get; set; }
|
||||
public decimal? amount16 { get; set; }
|
||||
public decimal? amount17 { get; set; }
|
||||
public decimal? amount18 { get; set; }
|
||||
public decimal? amount19 { get; set; }
|
||||
public string text1 { get; set; }
|
||||
public string text2 { get; set; }
|
||||
public string text3 { get; set; }
|
||||
public string text4 { get; set; }
|
||||
public string text5 { get; set; }
|
||||
public string text6 { get; set; }
|
||||
public string text7 { get; set; }
|
||||
public string text8 { get; set; }
|
||||
public string text9 { get; set; }
|
||||
public string text10 { get; set; }
|
||||
public string text11 { get; set; }
|
||||
public string text12 { get; set; }
|
||||
public string text13 { get; set; }
|
||||
public string text14 { get; set; }
|
||||
public string text15 { get; set; }
|
||||
public string text16 { get; set; }
|
||||
public string text17 { get; set; }
|
||||
public string text18 { get; set; }
|
||||
public string text19 { get; set; }
|
||||
public string text20 { get; set; }
|
||||
public string text21 { get; set; }
|
||||
public string text22 { get; set; }
|
||||
public string text23 { get; set; }
|
||||
public string text24 { get; set; }
|
||||
//public string line { get; set; }
|
||||
}
|
||||
}
|
||||
20
Models/budget/budget_progress_insurances.cs
Normal file
20
Models/budget/budget_progress_insurances.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace rmutr_report.Models
|
||||
{
|
||||
public class budget_progress_insurances
|
||||
{
|
||||
public string budget_year { get; set; }
|
||||
public List<budget_progress_insurances_detail> data { get; set; }
|
||||
}
|
||||
|
||||
public class budget_progress_insurances_detail
|
||||
{
|
||||
public string car_number { get; set; }
|
||||
public decimal? amount { get; set; }
|
||||
public decimal? car_act { get; set; }
|
||||
public int? month { get; set; }
|
||||
public string month_th { get; set; }
|
||||
public decimal? total_amount { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -150,54 +150,55 @@ namespace rmutr_report.Models
|
||||
|
||||
public class operating_expenses_details2
|
||||
{
|
||||
public int? color { get; set; }
|
||||
public string list { get; set; }
|
||||
public decimal? total_amount { get; set; }
|
||||
public string remark { get; set; }
|
||||
|
||||
public List<operating_expenses_details3> research_support_3 { get; set; }
|
||||
|
||||
//public List<operating_expenses_details3> research_support_3 { get; set; }
|
||||
//public List<operating_expenses_details3> subsidy_science_3 { get; set; }
|
||||
//public List<operating_expenses_details3> subsidy_society_3 { get; set; }
|
||||
}
|
||||
|
||||
public class operating_expenses_details3
|
||||
{
|
||||
public int? color { get; set; }
|
||||
public string list { get; set; }
|
||||
public decimal? total_amount { get; set; }
|
||||
// public class operating_expenses_details3
|
||||
// {
|
||||
// public int? color { get; set; }
|
||||
// public string list { get; set; }
|
||||
// public decimal? total_amount { get; set; }
|
||||
//
|
||||
// public List<operating_expenses_details4> research_support_4 { get; set; }
|
||||
// //public List<operating_expenses_details4> subsidy_science_4 { get; set; }
|
||||
// //public List<operating_expenses_details4> subsidy_society_4 { get; set; }
|
||||
// }
|
||||
|
||||
public List<operating_expenses_details4> research_support_4 { get; set; }
|
||||
//public List<operating_expenses_details4> subsidy_science_4 { get; set; }
|
||||
//public List<operating_expenses_details4> subsidy_society_4 { get; set; }
|
||||
}
|
||||
// public class operating_expenses_details4
|
||||
// {
|
||||
// public int? color { get; set; }
|
||||
// public string list { get; set; }
|
||||
// public decimal? total_amount { get; set; }
|
||||
//
|
||||
// public List<operating_expenses_details5> research_support_detail { get; set; }
|
||||
// //public List<operating_expenses_details5> subsidy_science_detail { get; set; }
|
||||
// //public List<operating_expenses_details5> subsidy_society_detail { get; set; }
|
||||
// }
|
||||
|
||||
public class operating_expenses_details4
|
||||
{
|
||||
public int? color { get; set; }
|
||||
public string list { get; set; }
|
||||
public decimal? total_amount { get; set; }
|
||||
// public class operating_expenses_details5
|
||||
// {
|
||||
// public string list { get; set; }
|
||||
// public decimal? total_amount { get; set; }
|
||||
// public string remark { get; set; }
|
||||
//
|
||||
// public List<operating_expenses_details6> research_support_detail_2 { get; set; }
|
||||
// //public List<operating_expenses_details_6> subsidy_science_detail_2 { get; set; }
|
||||
// //public List<operating_expenses_details_6> subsidy_society_detail_2 { get; set; }
|
||||
// }
|
||||
|
||||
public List<operating_expenses_details5> research_support_detail { get; set; }
|
||||
//public List<operating_expenses_details5> subsidy_science_detail { get; set; }
|
||||
//public List<operating_expenses_details5> subsidy_society_detail { get; set; }
|
||||
}
|
||||
|
||||
public class operating_expenses_details5
|
||||
{
|
||||
public string list { get; set; }
|
||||
public decimal? total_amount { get; set; }
|
||||
public string remark { get; set; }
|
||||
|
||||
public List<operating_expenses_details6> research_support_detail_2 { get; set; }
|
||||
//public List<operating_expenses_details_6> subsidy_science_detail_2 { get; set; }
|
||||
//public List<operating_expenses_details_6> subsidy_society_detail_2 { get; set; }
|
||||
}
|
||||
|
||||
public class operating_expenses_details6
|
||||
{
|
||||
public string list { get; set; }
|
||||
public decimal? total_amount { get; set; }
|
||||
public string remark { get; set; }
|
||||
}
|
||||
// public class operating_expenses_details6
|
||||
// {
|
||||
// public string list { get; set; }
|
||||
// public decimal? total_amount { get; set; }
|
||||
// public string remark { get; set; }
|
||||
// }
|
||||
|
||||
public class subsidy_science_details
|
||||
{
|
||||
@@ -208,38 +209,6 @@ namespace rmutr_report.Models
|
||||
}
|
||||
|
||||
public class subsidy_science_details2
|
||||
{
|
||||
public int? color { get; set; }
|
||||
public string list { get; set; }
|
||||
public decimal? total_amount { get; set; }
|
||||
public List<subsidy_science_details3> subsidy_science_3 { get; set; }
|
||||
}
|
||||
|
||||
public class subsidy_science_details3
|
||||
{
|
||||
public int? color { get; set; }
|
||||
public string list { get; set; }
|
||||
public decimal? total_amount { get; set; }
|
||||
public List<subsidy_science_details4> subsidy_science_4 { get; set; }
|
||||
}
|
||||
|
||||
public class subsidy_science_details4
|
||||
{
|
||||
public int? color { get; set; }
|
||||
public string list { get; set; }
|
||||
public decimal? total_amount { get; set; }
|
||||
public List<subsidy_science_details5> subsidy_science_detail { get; set; }
|
||||
}
|
||||
|
||||
public class subsidy_science_details5
|
||||
{
|
||||
public string list { get; set; }
|
||||
public decimal? total_amount { get; set; }
|
||||
public string remark { get; set; }
|
||||
public List<subsidy_science_details6> subsidy_science_detail_2 { get; set; }
|
||||
}
|
||||
|
||||
public class subsidy_science_details6
|
||||
{
|
||||
public string list { get; set; }
|
||||
public string unit { get; set; }
|
||||
@@ -248,6 +217,7 @@ namespace rmutr_report.Models
|
||||
public string remark { get; set; }
|
||||
}
|
||||
|
||||
|
||||
public class subsidy_society_details
|
||||
{
|
||||
public int? color { get; set; }
|
||||
@@ -259,43 +229,15 @@ namespace rmutr_report.Models
|
||||
public class subsidy_society_details2
|
||||
{
|
||||
public int? color { get; set; }
|
||||
public string list { get; set; }
|
||||
public decimal? total_amount { get; set; }
|
||||
public List<subsidy_society_details3> subsidy_society_3 { get; set; }
|
||||
}
|
||||
|
||||
public class subsidy_society_details3
|
||||
{
|
||||
public int? color { get; set; }
|
||||
public string list { get; set; }
|
||||
public decimal? total_amount { get; set; }
|
||||
public List<subsidy_society_details4> subsidy_society_4 { get; set; }
|
||||
}
|
||||
|
||||
public class subsidy_society_details4
|
||||
{
|
||||
public int? color { get; set; }
|
||||
public string list { get; set; }
|
||||
public decimal? total_amount { get; set; }
|
||||
public List<subsidy_society_details5> subsidy_society_detail { get; set; }
|
||||
}
|
||||
|
||||
public class subsidy_society_details5
|
||||
{
|
||||
public string list { get; set; }
|
||||
public decimal? total_amount { get; set; }
|
||||
public string remark { get; set; }
|
||||
public List<subsidy_society_details6> subsidy_society_detail_2 { get; set; }
|
||||
}
|
||||
|
||||
public class subsidy_society_details6
|
||||
{
|
||||
public string list { get; set; }
|
||||
public string unit { get; set; }
|
||||
public decimal? unit_amount { get; set; }
|
||||
public decimal? total_amount { get; set; }
|
||||
public string remark { get; set; }
|
||||
}
|
||||
|
||||
|
||||
|
||||
// public class durable_articles_headers
|
||||
// {
|
||||
// public string header_name { get; set; }
|
||||
@@ -495,7 +437,7 @@ namespace rmutr_report.Models
|
||||
public class subsidy_service_headers_detail2
|
||||
{
|
||||
public int? color { get; set; }
|
||||
|
||||
|
||||
//public string rowno { get; set; }
|
||||
public string list { get; set; }
|
||||
public decimal? amount_1 { get; set; }
|
||||
@@ -504,64 +446,64 @@ namespace rmutr_report.Models
|
||||
public decimal? amount_4 { get; set; }
|
||||
public decimal? amount_5 { get; set; }
|
||||
public decimal? amount_6 { get; set; }
|
||||
|
||||
|
||||
public decimal? amount_7 { get; set; }
|
||||
|
||||
//public string remark { get; set; }
|
||||
public List<subsidy_service_headers_detail3> subsidy_service_3 { get; set; }
|
||||
|
||||
public string remark { get; set; }
|
||||
//public List<subsidy_service_headers_detail3> subsidy_service_3 { get; set; }
|
||||
//public List<subsidy_service_headers_detail3> subsidy_arts_culture_3 { get; set; }
|
||||
}
|
||||
//
|
||||
// public class subsidy_service_headers_detail3
|
||||
// {
|
||||
// public int? color { get; set; }
|
||||
//
|
||||
// //public string rowno { get; set; }
|
||||
// public string list { get; set; }
|
||||
// public decimal? amount_1 { get; set; }
|
||||
// public decimal? amount_2 { get; set; }
|
||||
// public decimal? amount_3 { get; set; }
|
||||
// public decimal? amount_4 { get; set; }
|
||||
// public decimal? amount_5 { get; set; }
|
||||
// public decimal? amount_6 { get; set; }
|
||||
//
|
||||
// public decimal? amount_7 { get; set; }
|
||||
//
|
||||
// //public string remark { get; set; }
|
||||
// public List<subsidy_service_headers_detail4> subsidy_service_4 { get; set; }
|
||||
// //public List<subsidy_service_headers_detail4> subsidy_arts_culture_4 { get; set; }
|
||||
// }
|
||||
|
||||
public class subsidy_service_headers_detail3
|
||||
{
|
||||
public int? color { get; set; }
|
||||
|
||||
//public string rowno { get; set; }
|
||||
public string list { get; set; }
|
||||
public decimal? amount_1 { get; set; }
|
||||
public decimal? amount_2 { get; set; }
|
||||
public decimal? amount_3 { get; set; }
|
||||
public decimal? amount_4 { get; set; }
|
||||
public decimal? amount_5 { get; set; }
|
||||
public decimal? amount_6 { get; set; }
|
||||
|
||||
public decimal? amount_7 { get; set; }
|
||||
|
||||
//public string remark { get; set; }
|
||||
public List<subsidy_service_headers_detail4> subsidy_service_4 { get; set; }
|
||||
//public List<subsidy_service_headers_detail4> subsidy_arts_culture_4 { get; set; }
|
||||
}
|
||||
|
||||
public class subsidy_service_headers_detail4
|
||||
{
|
||||
public int? color { get; set; }
|
||||
public string list { get; set; }
|
||||
public decimal? amount_1 { get; set; }
|
||||
public decimal? amount_2 { get; set; }
|
||||
public decimal? amount_3 { get; set; }
|
||||
public decimal? amount_4 { get; set; }
|
||||
public decimal? amount_5 { get; set; }
|
||||
public decimal? amount_6 { get; set; }
|
||||
public decimal? amount_7 { get; set; }
|
||||
|
||||
public List<subsidy_service_headers_detail5> subsidy_service_detail { get; set; }
|
||||
//public List<subsidy_service_headers_detail5> subsidy_arts_culture_detail { get; set; }
|
||||
}
|
||||
|
||||
public class subsidy_service_headers_detail5
|
||||
{
|
||||
//public string color { get; set; }
|
||||
//public string rowno { get; set; }
|
||||
public string list { get; set; }
|
||||
public decimal? amount_1 { get; set; }
|
||||
public decimal? amount_2 { get; set; }
|
||||
public decimal? amount_3 { get; set; }
|
||||
public decimal? amount_4 { get; set; }
|
||||
public decimal? amount_5 { get; set; }
|
||||
public decimal? amount_6 { get; set; }
|
||||
public decimal? amount_7 { get; set; }
|
||||
public string remark { get; set; }
|
||||
}
|
||||
// public class subsidy_service_headers_detail4
|
||||
// {
|
||||
// public int? color { get; set; }
|
||||
// public string list { get; set; }
|
||||
// public decimal? amount_1 { get; set; }
|
||||
// public decimal? amount_2 { get; set; }
|
||||
// public decimal? amount_3 { get; set; }
|
||||
// public decimal? amount_4 { get; set; }
|
||||
// public decimal? amount_5 { get; set; }
|
||||
// public decimal? amount_6 { get; set; }
|
||||
// public decimal? amount_7 { get; set; }
|
||||
//
|
||||
// public List<subsidy_service_headers_detail5> subsidy_service_detail { get; set; }
|
||||
// //public List<subsidy_service_headers_detail5> subsidy_arts_culture_detail { get; set; }
|
||||
// }
|
||||
//
|
||||
// public class subsidy_service_headers_detail5
|
||||
// {
|
||||
// //public string color { get; set; }
|
||||
// //public string rowno { get; set; }
|
||||
// public string list { get; set; }
|
||||
// public decimal? amount_1 { get; set; }
|
||||
// public decimal? amount_2 { get; set; }
|
||||
// public decimal? amount_3 { get; set; }
|
||||
// public decimal? amount_4 { get; set; }
|
||||
// public decimal? amount_5 { get; set; }
|
||||
// public decimal? amount_6 { get; set; }
|
||||
// public decimal? amount_7 { get; set; }
|
||||
// public string remark { get; set; }
|
||||
// }
|
||||
|
||||
public class subsidy_arts_culture_detail
|
||||
{
|
||||
@@ -584,62 +526,6 @@ namespace rmutr_report.Models
|
||||
|
||||
public class subsidy_arts_culture_detail2
|
||||
{
|
||||
public int? color { get; set; }
|
||||
|
||||
//public string rowno { get; set; }
|
||||
public string list { get; set; }
|
||||
public decimal? amount_1 { get; set; }
|
||||
public decimal? amount_2 { get; set; }
|
||||
public decimal? amount_3 { get; set; }
|
||||
public decimal? amount_4 { get; set; }
|
||||
public decimal? amount_5 { get; set; }
|
||||
|
||||
public decimal? amount_6 { get; set; }
|
||||
|
||||
//public decimal? amount_7 { get; set; }
|
||||
//public string remark { get; set; }
|
||||
public List<subsidy_arts_culture_detail3> subsidy_arts_culture_3 { get; set; }
|
||||
}
|
||||
|
||||
public class subsidy_arts_culture_detail3
|
||||
{
|
||||
public int? color { get; set; }
|
||||
|
||||
//public string rowno { get; set; }
|
||||
public string list { get; set; }
|
||||
public decimal? amount_1 { get; set; }
|
||||
public decimal? amount_2 { get; set; }
|
||||
public decimal? amount_3 { get; set; }
|
||||
public decimal? amount_4 { get; set; }
|
||||
public decimal? amount_5 { get; set; }
|
||||
|
||||
public decimal? amount_6 { get; set; }
|
||||
|
||||
//public decimal? amount_7 { get; set; }
|
||||
//public string remark { get; set; }
|
||||
public List<subsidy_arts_culture_detail4> subsidy_arts_culture_4 { get; set; }
|
||||
}
|
||||
|
||||
public class subsidy_arts_culture_detail4
|
||||
{
|
||||
public int? color { get; set; }
|
||||
public string list { get; set; }
|
||||
public decimal? amount_1 { get; set; }
|
||||
public decimal? amount_2 { get; set; }
|
||||
public decimal? amount_3 { get; set; }
|
||||
public decimal? amount_4 { get; set; }
|
||||
public decimal? amount_5 { get; set; }
|
||||
|
||||
public decimal? amount_6 { get; set; }
|
||||
|
||||
//public decimal? amount_7 { get; set; }
|
||||
public List<subsidy_arts_culture_detail5> subsidy_arts_culture_detail { get; set; }
|
||||
}
|
||||
|
||||
public class subsidy_arts_culture_detail5
|
||||
{
|
||||
//public string color { get; set; }
|
||||
//public string rowno { get; set; }
|
||||
public string list { get; set; }
|
||||
public decimal? amount_1 { get; set; }
|
||||
public decimal? amount_2 { get; set; }
|
||||
@@ -653,6 +539,12 @@ namespace rmutr_report.Models
|
||||
public string remark { get; set; }
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
public class thailand_details
|
||||
{
|
||||
public int? color { get; set; }
|
||||
@@ -662,30 +554,6 @@ namespace rmutr_report.Models
|
||||
}
|
||||
|
||||
public class thailand_detail2
|
||||
{
|
||||
public int? color { get; set; }
|
||||
public string list { get; set; }
|
||||
public decimal? total_amount { get; set; }
|
||||
public List<thailand_detail3> thailand_3 { get; set; }
|
||||
}
|
||||
|
||||
public class thailand_detail3
|
||||
{
|
||||
public int? color { get; set; }
|
||||
public string list { get; set; }
|
||||
public decimal? total_amount { get; set; }
|
||||
public List<thailand_detail4> thailand_4 { get; set; }
|
||||
}
|
||||
|
||||
public class thailand_detail4
|
||||
{
|
||||
public int? color { get; set; }
|
||||
public string list { get; set; }
|
||||
public decimal? total_amount { get; set; }
|
||||
public List<thailand_detail5> thailand_detail { get; set; }
|
||||
}
|
||||
|
||||
public class thailand_detail5
|
||||
{
|
||||
public string list { get; set; }
|
||||
public string unit { get; set; }
|
||||
@@ -694,6 +562,8 @@ namespace rmutr_report.Models
|
||||
public string remark { get; set; }
|
||||
}
|
||||
|
||||
|
||||
|
||||
public class subsidy_budget_details
|
||||
{
|
||||
public int? color { get; set; }
|
||||
@@ -710,7 +580,6 @@ namespace rmutr_report.Models
|
||||
|
||||
public class subsidy_budget_details2
|
||||
{
|
||||
public int? color { get; set; }
|
||||
public string list { get; set; }
|
||||
public decimal? amount_1 { get; set; }
|
||||
public decimal? amount_2 { get; set; }
|
||||
@@ -719,61 +588,12 @@ namespace rmutr_report.Models
|
||||
public decimal? amount_5 { get; set; }
|
||||
public decimal? total_amount { get; set; }
|
||||
public string remark { get; set; }
|
||||
public List<subsidy_budget_details3> subsidy_budget_project_3 { get; set; }
|
||||
}
|
||||
|
||||
public class subsidy_budget_details3
|
||||
{
|
||||
public int? color { get; set; }
|
||||
public string list { get; set; }
|
||||
public decimal? amount_1 { get; set; }
|
||||
public decimal? amount_2 { get; set; }
|
||||
public decimal? amount_3 { get; set; }
|
||||
public decimal? amount_4 { get; set; }
|
||||
public decimal? amount_5 { get; set; }
|
||||
public decimal? total_amount { get; set; }
|
||||
public string remark { get; set; }
|
||||
public List<subsidy_budget_details4> subsidy_budget_project_4 { get; set; }
|
||||
}
|
||||
|
||||
|
||||
public class subsidy_budget_details4
|
||||
{
|
||||
public int? color { get; set; }
|
||||
public string list { get; set; }
|
||||
public decimal? amount_1 { get; set; }
|
||||
public decimal? amount_2 { get; set; }
|
||||
public decimal? amount_3 { get; set; }
|
||||
public decimal? amount_4 { get; set; }
|
||||
public decimal? amount_5 { get; set; }
|
||||
public decimal? total_amount { get; set; }
|
||||
public string remark { get; set; }
|
||||
public List<subsidy_budget_details5> subsidy_budget_project_detail { get; set; }
|
||||
}
|
||||
|
||||
|
||||
public class subsidy_budget_details5
|
||||
{
|
||||
public string list { get; set; }
|
||||
public decimal? amount_1 { get; set; }
|
||||
public decimal? amount_2 { get; set; }
|
||||
public decimal? amount_3 { get; set; }
|
||||
public decimal? amount_4 { get; set; }
|
||||
public decimal? amount_5 { get; set; }
|
||||
public decimal? total_amount { get; set; }
|
||||
public string remark { get; set; }
|
||||
public List<subsidy_budget_details6> subsidy_budget_project_detail_2 { get; set; }
|
||||
}
|
||||
|
||||
public class subsidy_budget_details6
|
||||
{
|
||||
public string list { get; set; }
|
||||
public decimal? amount_1 { get; set; }
|
||||
public decimal? amount_2 { get; set; }
|
||||
public decimal? amount_3 { get; set; }
|
||||
public decimal? amount_4 { get; set; }
|
||||
public decimal? amount_5 { get; set; }
|
||||
public decimal? total_amount { get; set; }
|
||||
public string remark { get; set; }
|
||||
}
|
||||
public class integrated_plan_details
|
||||
{
|
||||
public int? color { get; set; }
|
||||
@@ -783,37 +603,39 @@ namespace rmutr_report.Models
|
||||
}
|
||||
|
||||
public class integrated_plan_detail2
|
||||
{
|
||||
public int? color { get; set; }
|
||||
public string list { get; set; }
|
||||
public decimal? total_amount { get; set; }
|
||||
public List<integrated_plan_detail3> integrated_plan_3 { get; set; }
|
||||
}
|
||||
|
||||
public class integrated_plan_detail3
|
||||
{
|
||||
public int? color { get; set; }
|
||||
public string list { get; set; }
|
||||
public decimal? total_amount { get; set; }
|
||||
public List<integrated_plan_detail4>integrated_plan_4 { get; set; }
|
||||
}
|
||||
|
||||
public class integrated_plan_detail4
|
||||
{
|
||||
public int? color { get; set; }
|
||||
public string list { get; set; }
|
||||
public decimal? total_amount { get; set; }
|
||||
public List<integrated_plan_detail5> integrated_plan_detail { get; set; }
|
||||
}
|
||||
|
||||
public class integrated_plan_detail5
|
||||
{
|
||||
public string list { get; set; }
|
||||
public string unit { get; set; }
|
||||
public decimal? unit_amount { get; set; }
|
||||
public decimal? total_amount { get; set; }
|
||||
public string remark { get; set; }
|
||||
//public List<integrated_plan_detail3> integrated_plan_3 { get; set; }
|
||||
}
|
||||
|
||||
// public class integrated_plan_detail3
|
||||
// {
|
||||
// public int? color { get; set; }
|
||||
// public string list { get; set; }
|
||||
// public decimal? total_amount { get; set; }
|
||||
// public List<integrated_plan_detail4>integrated_plan_4 { get; set; }
|
||||
// }
|
||||
//
|
||||
// public class integrated_plan_detail4
|
||||
// {
|
||||
// public int? color { get; set; }
|
||||
// public string list { get; set; }
|
||||
// public decimal? total_amount { get; set; }
|
||||
// public List<integrated_plan_detail5> integrated_plan_detail { get; set; }
|
||||
// }
|
||||
|
||||
// public class integrated_plan_detail5
|
||||
// {
|
||||
// public string list { get; set; }
|
||||
// public string unit { get; set; }
|
||||
// public decimal? unit_amount { get; set; }
|
||||
// public decimal? total_amount { get; set; }
|
||||
// public string remark { get; set; }
|
||||
// }
|
||||
public class strategic_plan_details
|
||||
{
|
||||
public int? color { get; set; }
|
||||
@@ -823,35 +645,37 @@ namespace rmutr_report.Models
|
||||
}
|
||||
|
||||
public class strategic_plan_details2
|
||||
{
|
||||
public int? color { get; set; }
|
||||
public string list { get; set; }
|
||||
public decimal? total_amount { get; set; }
|
||||
public List<strategic_plan_details3> strategic_plan_3 { get; set; }
|
||||
}
|
||||
|
||||
public class strategic_plan_details3
|
||||
{
|
||||
public int? color { get; set; }
|
||||
public string list { get; set; }
|
||||
public decimal? total_amount { get; set; }
|
||||
public List<strategic_plan_details4> strategic_plan_4 { get; set; }
|
||||
}
|
||||
|
||||
public class strategic_plan_details4
|
||||
{
|
||||
public int? color { get; set; }
|
||||
public string list { get; set; }
|
||||
public decimal? total_amount { get; set; }
|
||||
public List<strategic_plan_details5> strategic_plan_detail { get; set; }
|
||||
}
|
||||
|
||||
public class strategic_plan_details5
|
||||
{
|
||||
public string list { get; set; }
|
||||
public string unit { get; set; }
|
||||
public decimal? unit_amount { get; set; }
|
||||
public decimal? total_amount { get; set; }
|
||||
public string remark { get; set; }
|
||||
//public List<strategic_plan_details3> strategic_plan_3 { get; set; }
|
||||
}
|
||||
|
||||
// public class strategic_plan_details3
|
||||
// {
|
||||
// public int? color { get; set; }
|
||||
// public string list { get; set; }
|
||||
// public decimal? total_amount { get; set; }
|
||||
// public List<strategic_plan_details4> strategic_plan_4 { get; set; }
|
||||
// }
|
||||
//
|
||||
// public class strategic_plan_details4
|
||||
// {
|
||||
// public int? color { get; set; }
|
||||
// public string list { get; set; }
|
||||
// public decimal? total_amount { get; set; }
|
||||
// public List<strategic_plan_details5> strategic_plan_detail { get; set; }
|
||||
// }
|
||||
|
||||
// public class strategic_plan_details5
|
||||
// {
|
||||
// public string list { get; set; }
|
||||
// public string unit { get; set; }
|
||||
// public decimal? unit_amount { get; set; }
|
||||
// public decimal? total_amount { get; set; }
|
||||
// public string remark { get; set; }
|
||||
// }
|
||||
}
|
||||
34
Models/budget/control_cost_construction.cs
Normal file
34
Models/budget/control_cost_construction.cs
Normal file
@@ -0,0 +1,34 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace rmutr_report.Models
|
||||
{
|
||||
public class control_cost_construction
|
||||
{
|
||||
public int? topic_type { get; set; }
|
||||
public string topic { get; set; }
|
||||
public List<control_cost_construction_detail> data { get; set; }
|
||||
}
|
||||
|
||||
public class control_cost_construction_detail
|
||||
{
|
||||
public decimal? quantity_day { get; set; }
|
||||
public decimal? quantity_person { get; set; }
|
||||
public decimal? amount { get; set; }
|
||||
public decimal? quantity_work { get; set; }
|
||||
public decimal? total_amount { get; set; }
|
||||
}
|
||||
public class control_cost_construction_wages
|
||||
{
|
||||
|
||||
public decimal? total_amount { get; set; }
|
||||
public List<control_cost_construction_wages_detail> data { get; set; }
|
||||
}
|
||||
public class control_cost_construction_wages_detail
|
||||
{
|
||||
public decimal? quantity_day { get; set; }
|
||||
public decimal? quantity_person { get; set; }
|
||||
public decimal? amount { get; set; }
|
||||
public decimal? quantity_work { get; set; }
|
||||
public decimal? total_amount { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -44,8 +44,8 @@ namespace rmutr_report.Models
|
||||
public List<specification_datas> specification_data { get; set; }
|
||||
public string specification { get; set; }
|
||||
public string quantity_specification { get; set; }
|
||||
public decimal? unit_price_specification { get; set; }
|
||||
public decimal? amount_specification { get; set; }
|
||||
public string unit_price_specification { get; set; }
|
||||
public string amount_specification { get; set; }
|
||||
public List<budget_spending_plans> budget_spending_plan {get; set; }
|
||||
public string procurement_process { get; set; }
|
||||
public string incurring_debt { get; set; }
|
||||
|
||||
@@ -5,39 +5,31 @@ namespace rmutr_report.Models
|
||||
public class expenditure_budget_proposal
|
||||
{
|
||||
public string budget_year { get; set; }
|
||||
// public decimal? budget_amount { get; set; }
|
||||
// public decimal? total_amount_1 { get; set; }
|
||||
// public decimal? total_amount_2 { get; set; }
|
||||
public List<group_headers> group_header { get; set; }
|
||||
public decimal? total_budget { get; set; }
|
||||
public List<proposal_initial_project> projects { get; set; }
|
||||
|
||||
}
|
||||
|
||||
public class group_headers
|
||||
{
|
||||
public string list_1 { get; set; }
|
||||
public string list_2 { get; set; }
|
||||
public string rowno { get; set; }
|
||||
public string list_3 { get; set; }
|
||||
public decimal? budget_amount { get; set; }
|
||||
public decimal? total_amount_1 { get; set; }
|
||||
public decimal? total_amount_2 { get; set; }
|
||||
public List<expenditure_budget_proposal_headers> header { get; set; }
|
||||
|
||||
}
|
||||
|
||||
public class expenditure_budget_proposal_headers
|
||||
public class proposal_initial_project
|
||||
{
|
||||
public string rowno { get; set; }
|
||||
public string header { get; set; }
|
||||
public decimal? budget_amount { get; set; }
|
||||
public List<expenditure_budget_proposal_headers2> data { get; set; }
|
||||
|
||||
public string project_name_th { get; set; }
|
||||
public decimal? total_budget { get; set; }
|
||||
public List<proposal_initial_type> types { get; set; }
|
||||
|
||||
}
|
||||
|
||||
public class expenditure_budget_proposal_headers2
|
||||
public class proposal_initial_type
|
||||
{
|
||||
public string list { get; set; }
|
||||
public string type_name { get; set; }
|
||||
public decimal? total_budget { get; set; }
|
||||
public List<proposal_initial_list> lists { get; set; }
|
||||
|
||||
}
|
||||
|
||||
public class proposal_initial_list
|
||||
{
|
||||
public string list_name { get; set; }
|
||||
public decimal? target_group_count { get; set; }
|
||||
public string target_group_unit { get; set; }
|
||||
public decimal? time_count { get; set; }
|
||||
@@ -46,15 +38,12 @@ namespace rmutr_report.Models
|
||||
public string budget_unit { get; set; }
|
||||
public decimal? quantity { get; set; }
|
||||
public string quantity_unit { get; set; }
|
||||
public decimal? budget_amount { get; set; }
|
||||
public List<expenditure_budget_proposal_headers3> data2 { get; set; }
|
||||
|
||||
|
||||
public decimal? total_budget { get; set; }
|
||||
public List<proposal_initial_detail> details { get; set; }
|
||||
}
|
||||
|
||||
public class expenditure_budget_proposal_headers3
|
||||
public class proposal_initial_detail
|
||||
{
|
||||
public string list { get; set; }
|
||||
public string detail_name { get; set; }
|
||||
public decimal? target_group_count { get; set; }
|
||||
public string target_group_unit { get; set; }
|
||||
public decimal? time_count { get; set; }
|
||||
@@ -63,6 +52,6 @@ namespace rmutr_report.Models
|
||||
public string budget_unit { get; set; }
|
||||
public decimal? quantity { get; set; }
|
||||
public string quantity_unit { get; set; }
|
||||
public decimal? budget_amount { get; set; }
|
||||
public decimal? total_budget { get; set; }
|
||||
}
|
||||
}
|
||||
28
Models/budget/expense.cs
Normal file
28
Models/budget/expense.cs
Normal file
@@ -0,0 +1,28 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace rmutr_report.Models
|
||||
{
|
||||
public class expense
|
||||
{
|
||||
public int? topic_type { get; set; }
|
||||
public string topic { get; set; }
|
||||
public string text_1 { get; set; }
|
||||
public string text_2 { get; set; }
|
||||
public decimal? quantity_1 { get; set; }
|
||||
public decimal? quantity_2 { get; set; }
|
||||
public decimal? quantity_3 { get; set; }
|
||||
public decimal? quantity_4 { get; set; }
|
||||
public decimal? total_amount { get; set; }
|
||||
public List<expense_detail> data { get; set; }
|
||||
}
|
||||
|
||||
public class expense_detail
|
||||
{
|
||||
public string topic { get; set; }
|
||||
public decimal? quantity_1 { get; set; }
|
||||
public decimal? quantity_2 { get; set; }
|
||||
public decimal? quantity_3 { get; set; }
|
||||
public decimal? quantity_4 { get; set; }
|
||||
public decimal? total_amount { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -18,5 +18,6 @@ namespace rmutr_report.Models
|
||||
|
||||
public decimal? per_month { get; set; }
|
||||
public decimal? per_year { get; set; }
|
||||
public decimal? actual_disbursement { get; set; }
|
||||
}
|
||||
}
|
||||
25
Models/budget/investment_budget_summary.cs
Normal file
25
Models/budget/investment_budget_summary.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace rmutr_report.Models
|
||||
{
|
||||
public class investment_budget_summary
|
||||
{
|
||||
public string budget_year { get; set; }
|
||||
// public decimal? total_request_count_item { get; set; }
|
||||
// public decimal? total_request_amount { get; set; }
|
||||
// public decimal? total_offer_count_item { get; set; }
|
||||
// public decimal? total_offer_amount { get; set; }
|
||||
public List<investment_budget_summary_detail> data { get; set; }
|
||||
}
|
||||
|
||||
public class investment_budget_summary_detail
|
||||
{
|
||||
public int? topic_type { get; set; }
|
||||
public string row_no { get; set; }
|
||||
public string topic { get; set; }
|
||||
public decimal? request_count_item { get; set; }
|
||||
public decimal? request_amount { get; set; }
|
||||
public decimal? offer_count_item { get; set; }
|
||||
public decimal? offer_amount { get; set; }
|
||||
}
|
||||
}
|
||||
45
Models/budget/material_edu_cal_form.cs
Normal file
45
Models/budget/material_edu_cal_form.cs
Normal file
@@ -0,0 +1,45 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace rmutr_report.Models
|
||||
{
|
||||
public class material_edu_cal_form
|
||||
{
|
||||
public string budget_year { get; set; }
|
||||
public string faculty_name_th { get; set; }
|
||||
public string area { get; set; }
|
||||
public List<material_edu_cal_form_detail> data { get; set; }
|
||||
public decimal? total_amount { get; set; }
|
||||
}
|
||||
|
||||
public class material_edu_cal_form_detail
|
||||
{
|
||||
public string faculty_name_th { get; set; }
|
||||
public string area { get; set; }
|
||||
public string curriculum_name_th { get; set; }
|
||||
public string semester_1 { get; set; }
|
||||
public string semester_2 { get; set; }
|
||||
public string year_1 { get; set; }
|
||||
public string year_2 { get; set; }
|
||||
public decimal? amount { get; set; }
|
||||
public List<material_edu_cal_form_detail2> data_detail { get; set; }
|
||||
|
||||
}
|
||||
|
||||
public class material_edu_cal_form_detail2
|
||||
{
|
||||
public int? topic_type { get; set; }
|
||||
public string no { get; set; }
|
||||
public string topic { get; set; }
|
||||
// public string semester_1 { get; set; }
|
||||
// public string semester_2 { get; set; }
|
||||
// public string year_1 { get; set; }
|
||||
// public string year_2 { get; set; }
|
||||
public decimal? amount_1 { get; set; }
|
||||
public decimal? rate_1 { get; set; }
|
||||
public decimal? total_amount_1 { get; set; }
|
||||
public decimal? amount_2 { get; set; }
|
||||
public decimal? rate_2 { get; set; }
|
||||
public decimal? total_amount_2 { get; set; }
|
||||
public decimal? total_all_amount { get; set; }
|
||||
}
|
||||
}
|
||||
25
Models/budget/meal_costs_outside.cs
Normal file
25
Models/budget/meal_costs_outside.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace rmutr_report.Models
|
||||
{
|
||||
public class meal_costs_outside
|
||||
{
|
||||
public int? topic_type { get; set; }
|
||||
public string topic { get; set; }
|
||||
public decimal? day { get; set; }
|
||||
public decimal? person { get; set; }
|
||||
public decimal? amount { get; set; }
|
||||
public decimal? total_amount { get; set; }
|
||||
|
||||
public List<meal_costs_outside_detail>data { get; set; }
|
||||
}
|
||||
|
||||
public class meal_costs_outside_detail
|
||||
{
|
||||
public string topic { get; set; }
|
||||
public decimal? day { get; set; }
|
||||
public decimal? person { get; set; }
|
||||
public decimal? amount { get; set; }
|
||||
public decimal? total_amount { get; set; }
|
||||
}
|
||||
}
|
||||
23
Models/budget/national_budget_list.cs
Normal file
23
Models/budget/national_budget_list.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace rmutr_report.Models
|
||||
{
|
||||
public class national_budget_list
|
||||
{
|
||||
public int? report_type { get; set; }
|
||||
public string type { get; set; }
|
||||
public string budget_year { get; set; }
|
||||
public List<national_budget_list_detail> data { get; set; }
|
||||
}
|
||||
|
||||
public class national_budget_list_detail
|
||||
{
|
||||
public string list { get; set; }
|
||||
public decimal? quantity { get; set; }
|
||||
public string unit { get; set; }
|
||||
public decimal? unit_price { get; set; }
|
||||
public decimal? quantity_month { get; set; }
|
||||
public decimal? total_amount { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
30
Models/budget/parcel_inspection_committee.cs
Normal file
30
Models/budget/parcel_inspection_committee.cs
Normal file
@@ -0,0 +1,30 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace rmutr_report.Models
|
||||
{
|
||||
public class parcel_inspection_committee
|
||||
{
|
||||
public string topic_name { get; set; }
|
||||
public decimal? total_all_amount { get; set; }
|
||||
public List<committee> data { get; set; }
|
||||
}
|
||||
|
||||
public class committee
|
||||
{
|
||||
public string list { get; set; }
|
||||
public decimal? total_amount { get; set; }
|
||||
|
||||
public List<committee_data> data_detail { get; set; }
|
||||
|
||||
}
|
||||
|
||||
public class committee_data
|
||||
{
|
||||
public decimal? quantity { get; set; }
|
||||
public decimal? quantity_person { get; set; }
|
||||
public decimal? amount { get; set; }
|
||||
public decimal? total_amount { get; set; }
|
||||
public decimal? quantity_work { get; set; }
|
||||
public string unit { get; set; }
|
||||
}
|
||||
}
|
||||
156
Models/budget/project_performance_report_form.cs
Normal file
156
Models/budget/project_performance_report_form.cs
Normal file
@@ -0,0 +1,156 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace rmutr_report.Models
|
||||
{
|
||||
public class project_performance_report_form
|
||||
{
|
||||
public string budget_year { get; set; }
|
||||
public string project_name { get; set; }
|
||||
public string responsible_person { get; set; }
|
||||
public string faculty { get; set; }
|
||||
public string start_date { get; set; }
|
||||
public string end_date { get; set; }
|
||||
public string project_location { get; set; }
|
||||
public List<project_styles> project_style{ get; set; } //ข้อ 6
|
||||
|
||||
public string strategic_issues { get; set; }//ข้อ 7
|
||||
public List<project_objectives> project_objective{ get; set; } //ข้อ 8
|
||||
public List<operations_activities> operations_activitie { get; set; }//ข้อ 9
|
||||
public bool? national_budget_money { get; set; }//ข้อ 10
|
||||
public bool? income_budget { get; set; }//ข้อ 10
|
||||
public bool? other { get; set; }//ข้อ 10
|
||||
public string check_box1 { get; set; }//ข้อ 10
|
||||
public string check_box2 { get; set; }//ข้อ 10
|
||||
public string check_box3 { get; set; }//ข้อ 10
|
||||
public string other_remark { get; set; }//ข้อ 10
|
||||
public string product { get; set; }//ข้อ 10
|
||||
public decimal? amount { get; set; }//ข้อ 10
|
||||
public decimal? approval { get; set; }//ข้อ 10
|
||||
public decimal? really_pay { get; set; }//ข้อ 10
|
||||
public List<overall_operating_results> overall_operating_result { get; set; }//ข้อ 11.1
|
||||
public List<qualitatives> qualitative { get; set; }//ข้อ 11.2
|
||||
public List<times> time { get; set; }//ข้อ 11.3
|
||||
public List<indicators_project_objectives> indicators_project_objective { get; set; }//ข้อ 11.4
|
||||
public bool? digital_innovation { get; set; }//ข้อ 12
|
||||
public bool? moral { get; set; }//ข้อ 12
|
||||
public bool? open_mind { get; set; }//ข้อ 12
|
||||
public bool? value { get; set; }//ข้อ 12
|
||||
public bool? entrepreneurship { get; set; }//ข้อ 12
|
||||
public bool? unity { get; set; }//ข้อ 12
|
||||
public bool? porfessional { get; set; }//ข้อ 12
|
||||
public string check_box4 { get; set; }//ข้อ 12
|
||||
public string check_box5 { get; set; }//ข้อ 12
|
||||
public string check_box6 { get; set; }//ข้อ 12
|
||||
public string check_box7 { get; set; }//ข้อ 12
|
||||
public string check_box8 { get; set; }//ข้อ 12
|
||||
public string check_box9 { get; set; }//ข้อ 12
|
||||
public string check_box10 { get; set; }//ข้อ 12
|
||||
public string developed { get; set; }//ข้อ 12
|
||||
public string explain { get; set; }//ข้อ 13
|
||||
public string explain_SDG { get; set; }//ข้อ 14
|
||||
public string value_analysis { get; set; }//ข้อ 15
|
||||
public string output { get; set; }//ข้อ 16
|
||||
public string outcome { get; set; }//ข้อ 17
|
||||
public string effect { get; set; } //ข้อ 18
|
||||
public string obstacle { get; set; } //ข้อ 19
|
||||
public string suggestions { get; set; } //ข้อ 20
|
||||
public string expected_results_inside { get; set; } //ข้อ 21
|
||||
public string expected_results_outside { get; set; } //ข้อ 21
|
||||
public string next_action_plan { get; set; } //ข้อ 22
|
||||
public string results_continuous_development { get; set; } //ข้อ 23
|
||||
public bool? check_twenty_four { get; set; }//ข้อ 24
|
||||
public string check_twenty_four1 { get; set; }//ข้อ 24
|
||||
public string check_twenty_four2 { get; set; }//ข้อ 24
|
||||
public List<twenty_four_tables> twenty_four_table { get; set; }//ข้อ 24
|
||||
public decimal? total_amount_1 { get; set; }
|
||||
public decimal? total_amount_2 { get; set; }
|
||||
}
|
||||
|
||||
public class project_styles
|
||||
{
|
||||
public bool? check { get; set; }//ข้อ 6
|
||||
public string checkbox { get; set; }//ข้อ 6
|
||||
public string project_style { get; set; }
|
||||
|
||||
}
|
||||
|
||||
public class project_objectives
|
||||
{
|
||||
public string row { get; set; }
|
||||
public string project_objective { get; set; }//ข้อ 8
|
||||
|
||||
}
|
||||
|
||||
public class operations_activities
|
||||
{
|
||||
public string row { get; set; }
|
||||
public string operations_activitie { get; set; }//ข้อ 9
|
||||
}
|
||||
|
||||
public class overall_operating_results
|
||||
{
|
||||
|
||||
public decimal? quantity { get; set; }
|
||||
public decimal? participants_quantity { get; set; }
|
||||
public decimal? participants_university { get; set; }
|
||||
public decimal? board { get; set; }
|
||||
public decimal? lecturer { get; set; }
|
||||
public decimal? participants { get; set; }
|
||||
public decimal? executive_1 { get; set; }
|
||||
public decimal? teacher_1 { get; set; }
|
||||
public decimal? student_1 { get; set; }
|
||||
public decimal? support_personnel_1 { get; set; }
|
||||
public decimal? government_officer { get; set; }
|
||||
public decimal? university_staff { get; set; }
|
||||
public decimal? government_employee { get; set; }
|
||||
public decimal? temporary_employee { get; set; }
|
||||
public decimal? external_participants { get; set; }
|
||||
public decimal? external_lecturer { get; set; }
|
||||
public decimal? external_participants2 { get; set; }
|
||||
public decimal? executive_2 { get; set; }
|
||||
public decimal? teacher_2 { get; set; }
|
||||
public decimal? student_2 { get; set; }
|
||||
public decimal? personnel_2 { get; set; }
|
||||
public decimal? activity { get; set; }
|
||||
|
||||
|
||||
}
|
||||
|
||||
public class qualitatives
|
||||
{
|
||||
public string topic { get; set; }
|
||||
public List<data_lists> data { get; set; }
|
||||
}
|
||||
|
||||
public class data_lists
|
||||
{
|
||||
public string list { get; set; }
|
||||
public decimal? percentage { get; set; }
|
||||
}
|
||||
|
||||
public class times
|
||||
{
|
||||
public decimal? percentage { get; set; }
|
||||
|
||||
}
|
||||
|
||||
public class indicators_project_objectives
|
||||
{
|
||||
public string kpi { get; set; }
|
||||
public decimal? target_value_plan { get; set; }
|
||||
public decimal? target_value_result { get; set; }
|
||||
public string remark { get; set; }
|
||||
}
|
||||
|
||||
public class twenty_four_tables
|
||||
{
|
||||
public int? topic_type { get; set; }
|
||||
public string topic { get; set; }
|
||||
public decimal? amount_1 { get; set; }
|
||||
public decimal? amount_2 { get; set; }
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -1,17 +1,22 @@
|
||||
using System.Collections.Generic;
|
||||
using DocumentFormat.OpenXml.Office2010.ExcelAc;
|
||||
|
||||
namespace rmutr_report.Models
|
||||
{
|
||||
public class project_principle_rationale
|
||||
{
|
||||
public string budget_year_name_th { get; set; }
|
||||
public string responsible_person { get; set; }
|
||||
public string area { get; set; }
|
||||
public string faculty { get; set; }
|
||||
public string product { get; set; }
|
||||
public string side { get; set; }
|
||||
public string project { get; set; }
|
||||
//public int? count_project { get; set; }
|
||||
public string login_name { get; set; }
|
||||
public List<activity_data> activity { get; set; }
|
||||
public string together_with { get; set; }
|
||||
public string strategic_plan { get; set; } //ข้อ 2
|
||||
public List<project_activity_styles> project_activity_style { get; set; } //2. ลักษณะกิจกรรมโครงการ
|
||||
public string target_second { get; set; }
|
||||
public string subject_second { get; set; }
|
||||
public string country_reform_plan { get; set; } //ข้อ 3
|
||||
@@ -37,32 +42,47 @@ namespace rmutr_report.Models
|
||||
public string strategic_issues_thirteenth { get; set; } //ข้อ 13
|
||||
public string subject_thirteenth { get; set; } //ข้อ 13
|
||||
public string strategy_thirteenth { get; set; } //ข้อ 13
|
||||
public decimal? durable_articles { get; set; } //งบลงทุน
|
||||
public decimal? land_building { get; set; } // ค่าที่ดินและสิ่งก่อสร้าง
|
||||
public List<fourteenth_data> fourteenth { get; set; } //ข้อ 14
|
||||
public List<fifteenth_data> fifteenth { get; set; } //ข้อ 15
|
||||
public int? count_activity { get; set; } //ข้อ 16
|
||||
//public int? count_activity { get; set; } //ข้อ 16
|
||||
public string text1 { get; set; } //ข้อ 16
|
||||
public string text2 { get; set; } //ข้อ 16
|
||||
public int? total_target { get; set; } //ข้อ 16 ผลรวมกลุ่มเป้าหมาย
|
||||
public int? total_board { get; set; } //ข้อ 16 ผลรวมคณะกรรมการ
|
||||
public string operational_activitie { get; set; }//ข้อ 15 ง.5-3
|
||||
public string evaluation { get; set; }//ข้อ 16 ง.5-3
|
||||
// public int? total_target { get; set; } //ข้อ 16 ผลรวมกลุ่มเป้าหมาย
|
||||
// public int? total_board { get; set; } //ข้อ 16 ผลรวมคณะกรรมการ
|
||||
public List<sixteenth_data> sixteenth { get; set; } //ข้อ 16
|
||||
public List<sixteenth_data_detail> sixteenths { get; set; } //ข้อ 16 detail ตาราง
|
||||
|
||||
public List<seventeenth_data> seventeenth { get; set; } //ข้อ 17
|
||||
public int? count_day { get; set; } //ข้อ 18
|
||||
public string text3 { get; set; } //ข้อ 18
|
||||
public List<eighteenth_data> eighteenth { get; set; } //ข้อ 18
|
||||
public List<nineteenth_data> nineteenth { get; set; } //ข้อ 19
|
||||
public List<nineteenth_data1> nineteenth1 { get; set; } //ข้อ 19
|
||||
public List<seventeenth_datas> seventeenth_thai { get; set; } //ข้อ 17
|
||||
public List<eighteenths_datas> eighteenth_thai { get; set; } //ข้อ 18
|
||||
public List<eighteenths_datas> nineteenth_thai { get; set; } //ข้อ 19
|
||||
public List<project_activity_styles> nineteenth_style { get; set; } //ข้อ 19 ลักษณะโครงการ
|
||||
public decimal? budget_amount { get; set; } //ข้อ 20
|
||||
public List<twentieth_data> twentieth { get; set; } //ข้อ 20
|
||||
public List<twenty_one_data> twenty_one { get; set; } //ข้อ 21
|
||||
public List<twenty_one_data_activity1> twenty_one_activity1 { get; set; } //ข้อ 21 มีหลายกิจกรรม
|
||||
public List<twenty_one_data_activity2> twenty_one_activity2 { get; set; } //ข้อ 21 มีหลายกิจกรรม
|
||||
public List<twenty_one_data_activity3> twenty_one_activity3 { get; set; } //ข้อ 21 มีหลายกิจกรรม
|
||||
// public List<twenty_one_data_activity1> twenty_one_activity1 { get; set; } //ข้อ 21 มีหลายกิจกรรม
|
||||
// public List<twenty_one_data_activity2> twenty_one_activity2 { get; set; } //ข้อ 21 มีหลายกิจกรรม
|
||||
// public List<twenty_one_data_activity3> twenty_one_activity3 { get; set; } //ข้อ 21 มีหลายกิจกรรม
|
||||
public string text4 { get; set; } //ข้อ 21
|
||||
public string text5 { get; set; } //ข้อ 21
|
||||
public string text6 { get; set; } //ข้อ 21
|
||||
public string activity_description { get; set; } //ข้อ 21 พันธุกรรมพืช
|
||||
public List<twenty_two_data> twenty_two { get; set; } //ข้อ 22
|
||||
public List<twenty_three_data> twenty_three { get; set; } //ข้อ 23
|
||||
public List<twenty_four_data> twenty_four { get; set; } //ข้อ 24
|
||||
public List<twenty_fifth_data> twenty_fifth { get; set; } //ข้อ 25
|
||||
|
||||
public string url_file1 { get; set; } //ง.5-3
|
||||
public string url_file2 { get; set; } //ง.5-3
|
||||
public string url_file3 { get; set; } //ข้อ 23 ง.5-3
|
||||
|
||||
}
|
||||
|
||||
@@ -71,6 +91,10 @@ namespace rmutr_report.Models
|
||||
public string activity { get; set; }
|
||||
}
|
||||
|
||||
public class project_activity_styles
|
||||
{
|
||||
public string style { get; set; }
|
||||
}
|
||||
public class sixth_data
|
||||
{
|
||||
public string objective{ get; set; }
|
||||
@@ -114,14 +138,14 @@ namespace rmutr_report.Models
|
||||
public class fifteenth_data
|
||||
{
|
||||
public string activity { get; set; }
|
||||
public string activity_table { get; set; }
|
||||
public List<fifteenth_data_detail> fifteenths { get; set; }
|
||||
//public string activity_table { get; set; }
|
||||
//public List<fifteenth_data_detail> fifteenths { get; set; }
|
||||
}
|
||||
|
||||
public class fifteenth_data_detail
|
||||
{
|
||||
public string detail { get; set; }
|
||||
}
|
||||
// public class fifteenth_data_detail
|
||||
// {
|
||||
// public string detail { get; set; }
|
||||
// }
|
||||
|
||||
public class sixteenth_data
|
||||
{
|
||||
@@ -131,61 +155,71 @@ namespace rmutr_report.Models
|
||||
public class sixteenth_data_detail
|
||||
{
|
||||
public string activity_table { get; set; }
|
||||
public string budget_unit_name_th { get; set; }
|
||||
public int? total_target { get; set; } //ข้อ 16 ผลรวมกลุ่มเป้าหมาย
|
||||
public int? total_board { get; set; } //ข้อ 16 ผลรวมคณะกรรมการ
|
||||
public int? count_activity { get; set; } //ข้อ 16 ผมรวมทั้งหมด
|
||||
|
||||
public List<sixteenth_data_details> sixteenths2 { get; set; }
|
||||
public decimal? salaya_total { get; set; }
|
||||
public decimal? bophitphimuk_total { get; set; }
|
||||
public decimal? pohchang_total { get; set; }
|
||||
public decimal? klai_kangwon_total { get; set; }
|
||||
|
||||
}
|
||||
|
||||
public class sixteenth_data_details
|
||||
{
|
||||
|
||||
public decimal? salaya_executive { get; set; }
|
||||
public decimal? bophitphimuk_executive { get; set; }
|
||||
public decimal? pohchang_executive { get; set; }
|
||||
public decimal? klai_kangwon_executive { get; set; }
|
||||
public decimal? salaya_teacher { get; set; }
|
||||
public decimal? bophitphimuk_teacher { get; set; }
|
||||
public decimal? pohchang_teacher { get; set; }
|
||||
public decimal? klai_kangwon_teacher { get; set; }
|
||||
public decimal? salaya_officer { get; set; }
|
||||
public decimal? bophitphimuk_officer { get; set; }
|
||||
public decimal? pohchang_officer { get; set; }
|
||||
public decimal? klai_kangwon_officer { get; set; }
|
||||
public decimal? salaya_internal_student { get; set; }
|
||||
public decimal? bophitphimuk_internal_student { get; set; }
|
||||
public decimal? pohchang_internal_student { get; set; }
|
||||
public decimal? klai_kangwon_internal_student { get; set; }
|
||||
public decimal? salaya_external_student{ get; set; }
|
||||
public decimal? bophitphimuk_external_student { get; set; }
|
||||
public decimal? pohchang_external_student { get; set; }
|
||||
public decimal? klai_kangwon_external_student { get; set; }
|
||||
public decimal? salaya_person { get; set; }
|
||||
public decimal? bophitphimuk_person { get; set; }
|
||||
public decimal? pohchang_person{ get; set; }
|
||||
public decimal? klai_kangwon_person { get; set; }
|
||||
public decimal? salaya_lecturer { get; set; }
|
||||
public decimal? bophitphimuk_lecturer { get; set; }
|
||||
public decimal? pohchang_lecturer { get; set; }
|
||||
public decimal? klai_kangwon_lecturer{ get; set; }
|
||||
public string target_group { get; set; }
|
||||
public decimal? salaya { get; set; }
|
||||
public decimal? bophitphimuk{ get; set; }
|
||||
public decimal? pohchang{ get; set; }
|
||||
public decimal? klai_kangwon{ get; set; }
|
||||
// public decimal? salaya_teacher { get; set; }
|
||||
// public decimal? bophitphimuk_teacher { get; set; }
|
||||
// public decimal? pohchang_teacher { get; set; }
|
||||
// public decimal? klai_kangwon_teacher { get; set; }
|
||||
// public decimal? salaya_officer { get; set; }
|
||||
// public decimal? bophitphimuk_officer { get; set; }
|
||||
// public decimal? pohchang_officer { get; set; }
|
||||
// public decimal? klai_kangwon_officer { get; set; }
|
||||
// public decimal? salaya_internal_student { get; set; }
|
||||
// public decimal? bophitphimuk_internal_student { get; set; }
|
||||
// public decimal? pohchang_internal_student { get; set; }
|
||||
// public decimal? klai_kangwon_internal_student { get; set; }
|
||||
// public decimal? salaya_external_student{ get; set; }
|
||||
// public decimal? bophitphimuk_external_student { get; set; }
|
||||
// public decimal? pohchang_external_student { get; set; }
|
||||
// public decimal? klai_kangwon_external_student { get; set; }
|
||||
// public decimal? salaya_person { get; set; }
|
||||
// public decimal? bophitphimuk_person { get; set; }
|
||||
// public decimal? pohchang_person{ get; set; }
|
||||
// public decimal? klai_kangwon_person { get; set; }
|
||||
// public decimal? salaya_lecturer { get; set; }
|
||||
// public decimal? bophitphimuk_lecturer { get; set; }
|
||||
// public decimal? pohchang_lecturer { get; set; }
|
||||
// public decimal? klai_kangwon_lecturer{ get; set; }
|
||||
|
||||
public decimal? salaya_board { get; set; }
|
||||
public decimal? bophitphimuk_board { get; set; }
|
||||
public decimal? pohchang_board { get; set; }
|
||||
public decimal? klai_kangwon_board { get; set; }
|
||||
// public decimal? salaya_board { get; set; }
|
||||
// public decimal? bophitphimuk_board { get; set; }
|
||||
// public decimal? pohchang_board { get; set; }
|
||||
// public decimal? klai_kangwon_board { get; set; }
|
||||
//
|
||||
// public decimal? salaya_driver { get; set; }
|
||||
// public decimal? bophitphimuk_driver { get; set; }
|
||||
// public decimal? pohchang_driver { get; set; }
|
||||
// public decimal? klai_kangwon_driver{ get; set; }
|
||||
//
|
||||
// public decimal? salaya_other { get; set; }
|
||||
// public decimal? bophitphimuk_other { get; set; }
|
||||
// public decimal? pohchang_other { get; set; }
|
||||
// public decimal? klai_kangwon_other { get; set; }
|
||||
|
||||
public decimal? salaya_driver { get; set; }
|
||||
public decimal? bophitphimuk_driver { get; set; }
|
||||
public decimal? pohchang_driver { get; set; }
|
||||
public decimal? klai_kangwon_driver{ get; set; }
|
||||
|
||||
public decimal? salaya_other { get; set; }
|
||||
public decimal? bophitphimuk_other { get; set; }
|
||||
public decimal? pohchang_other { get; set; }
|
||||
public decimal? klai_kangwon_other { get; set; }
|
||||
|
||||
public decimal? salaya_total { get; set; }
|
||||
public decimal? bophitphimuk_total { get; set; }
|
||||
public decimal? pohchang_total { get; set; }
|
||||
public decimal? klai_kangwon_total { get; set; }
|
||||
// public decimal? salaya_total { get; set; }
|
||||
// public decimal? bophitphimuk_total { get; set; }
|
||||
// public decimal? pohchang_total { get; set; }
|
||||
// public decimal? klai_kangwon_total { get; set; }
|
||||
}
|
||||
|
||||
public class seventeenth_data
|
||||
@@ -209,7 +243,8 @@ namespace rmutr_report.Models
|
||||
public string internal_external2 { get; set; }
|
||||
public string area_province2 { get; set; }
|
||||
public string location2 { get; set; }
|
||||
// public string external_university { get; set; }
|
||||
public string text1 { get; set; }
|
||||
public string text2 { get; set; }
|
||||
// public string province { get; set; }
|
||||
// public string province_location { get; set; }
|
||||
|
||||
@@ -294,10 +329,12 @@ namespace rmutr_report.Models
|
||||
{
|
||||
public string header_name1 { get; set; }
|
||||
public string header_name2 { get; set; }
|
||||
//public string header_name3 { get; set; }
|
||||
public string header_name3 { get; set; }
|
||||
public string header_name4 { get; set; }
|
||||
public List<nineteenth2_data_details> nineteenths_expenses1 { get; set; }
|
||||
public List<nineteenth2_data_details2> nineteenths_expenses2 { get; set; }
|
||||
public List<nineteenth2_data_details3> nineteenths_expenses3 { get; set; }
|
||||
public List<nineteenth2_data_details2> nineteenths_expenses3 { get; set; }
|
||||
public List<nineteenth2_data_details2> nineteenths_expenses4 { get; set; }
|
||||
}
|
||||
|
||||
public class nineteenth2_data_details
|
||||
@@ -316,24 +353,24 @@ namespace rmutr_report.Models
|
||||
public decimal? count_person { get; set; }
|
||||
public decimal? total_amount { get; set; }
|
||||
}
|
||||
|
||||
public class nineteenth2_data_details3
|
||||
{
|
||||
|
||||
// public class nineteenth2_data_details3
|
||||
// {
|
||||
|
||||
public string header_name3 { get; set; }
|
||||
public List<nineteenths_expenses3_detail> nineteenths_expenses3_details { get; set; }
|
||||
//public string header_name3 { get; set; }
|
||||
//public List<nineteenths_expenses3_detail> nineteenths_expenses3_details { get; set; }
|
||||
|
||||
|
||||
}
|
||||
//}
|
||||
|
||||
public class nineteenths_expenses3_detail
|
||||
{
|
||||
public string name { get; set; }
|
||||
public decimal? amount { get; set; }
|
||||
public decimal? potion { get; set; }
|
||||
public decimal? count_person { get; set; }
|
||||
public decimal? total_amount { get; set; }
|
||||
}
|
||||
// public class nineteenths_expenses3_detail
|
||||
// {
|
||||
// public string name { get; set; }
|
||||
// public decimal? amount { get; set; }
|
||||
// public decimal? potion { get; set; }
|
||||
// public decimal? count_person { get; set; }
|
||||
// public decimal? total_amount { get; set; }
|
||||
// }
|
||||
|
||||
public class nineteenth_data_detail3
|
||||
{
|
||||
@@ -362,6 +399,13 @@ namespace rmutr_report.Models
|
||||
}
|
||||
|
||||
public class twenty_one_data
|
||||
{
|
||||
public string activity { get; set; }
|
||||
public string remark { get; set; }
|
||||
public List<twenty_one_data_detail> twenty_ones { get; set; }
|
||||
}
|
||||
|
||||
public class twenty_one_data_detail
|
||||
{
|
||||
public string text1 { get; set; }
|
||||
public string text2 { get; set; }
|
||||
@@ -373,6 +417,9 @@ namespace rmutr_report.Models
|
||||
public string text8 { get; set; }
|
||||
public string text9 { get; set; }
|
||||
public string text10 { get; set; }
|
||||
public string text11 { get; set; }
|
||||
public string text12 { get; set; }
|
||||
public string text13 { get; set; }
|
||||
public string bath { get; set; }
|
||||
public string nuai_nap { get; set; }
|
||||
public string khrang1 { get; set; }
|
||||
@@ -380,6 +427,7 @@ namespace rmutr_report.Models
|
||||
public string khrang3 { get; set; }
|
||||
public string rueang { get; set; }
|
||||
public string clause1 { get; set; }
|
||||
public string budget_unit_name_th { get; set; }
|
||||
public string count_quantitative { get; set; }
|
||||
public string count_unit { get; set; }
|
||||
public string count_project { get; set; }
|
||||
@@ -388,84 +436,96 @@ namespace rmutr_report.Models
|
||||
public string clause2 { get; set; }
|
||||
public string project_start_date { get; set; }
|
||||
public string project_end_date { get; set; }
|
||||
public string range { get; set; }
|
||||
public string percentage_finish { get; set; }
|
||||
public string day { get; set; }
|
||||
public string clause3 { get; set; }
|
||||
public string percentage1 { get; set; }
|
||||
public string percentage2 { get; set; }
|
||||
public string percentage3 { get; set; }
|
||||
public string acquired_knowledge { get; set; }
|
||||
public string detail1 { get; set; }
|
||||
public string detail2 { get; set; }
|
||||
public string clause4 { get; set; }
|
||||
public decimal? expenses { get; set; }
|
||||
}
|
||||
|
||||
public class twenty_one_data_activity1
|
||||
{
|
||||
public string clause1 { get; set; }
|
||||
public string count_quantitative { get; set; }
|
||||
public string khrang1 { get; set; }
|
||||
public string text1 { get; set; }
|
||||
public string count_unit { get; set; }
|
||||
public string nuai_nap { get; set; }
|
||||
public string text2 { get; set; }
|
||||
public string count_project { get; set; }
|
||||
public string khrang2 { get; set; }
|
||||
public string text3 { get; set; }
|
||||
public string count_training { get; set; }
|
||||
public string rueang { get; set; }
|
||||
public string text4 { get; set; }
|
||||
public string count_knowledge { get; set; }
|
||||
public string khrang3 { get; set; }
|
||||
public List<twenty_one_data_activity1_detail> twenty_one_data_activity1_detail { get; set; }
|
||||
|
||||
}
|
||||
|
||||
public class twenty_one_data_activity1_detail
|
||||
{
|
||||
public string activity_clause1 { get; set; }
|
||||
public string text1 { get; set; }
|
||||
public string count_unit { get; set; }
|
||||
public string nuai_nap { get; set; }
|
||||
public string text2 { get; set; }
|
||||
public string count_project { get; set; }
|
||||
public string khrang2 { get; set; }
|
||||
public string text3 { get; set; }
|
||||
public string count_training { get; set; }
|
||||
public string rueang { get; set; }
|
||||
public string text4 { get; set; }
|
||||
public string count_knowledge { get; set; }
|
||||
public string khrang3 { get; set; }
|
||||
}
|
||||
public class twenty_one_data_activity2
|
||||
{
|
||||
public string clause2 { get; set; }
|
||||
public string activity_clause2 { get; set; }
|
||||
|
||||
public string text5 { get; set; }
|
||||
public string project_start_date { get; set; }
|
||||
public string project_end_date { get; set; }
|
||||
public string detail { get; set; }
|
||||
//public string detail2 { get; set; }
|
||||
|
||||
public string text6 { get; set; }
|
||||
public string percentage_finish { get; set; }
|
||||
|
||||
}
|
||||
public class twenty_one_data_activity3
|
||||
{
|
||||
|
||||
public string text7 { get; set; }
|
||||
public string text8 { get; set; }
|
||||
public string text9 { get; set; }
|
||||
public string text10 { get; set; }
|
||||
public string clause3 { get; set; }
|
||||
public string percentage1 { get; set; }
|
||||
public string percentage2 { get; set; }
|
||||
public string acquired_knowledge { get; set; }
|
||||
public string detail1 { get; set; }
|
||||
public string detail2 { get; set; }
|
||||
public string clause4 { get; set; }
|
||||
public decimal? expenses { get; set; }
|
||||
public string bath { get; set; }
|
||||
public string target_1 { get; set; }
|
||||
public string target_2 { get; set; }
|
||||
public string target_3 { get; set; }
|
||||
public string target_4 { get; set; }
|
||||
public string results_1 { get; set; }
|
||||
public string results_2 { get; set; }
|
||||
public string results_3 { get; set; }
|
||||
public string results_4 { get; set; }
|
||||
}
|
||||
|
||||
// public class twenty_one_data_activity1
|
||||
// {
|
||||
// public string clause1 { get; set; }
|
||||
// public string count_quantitative { get; set; }
|
||||
// public string khrang1 { get; set; }
|
||||
// public string text1 { get; set; }
|
||||
// public string count_unit { get; set; }
|
||||
// public string nuai_nap { get; set; }
|
||||
// public string text2 { get; set; }
|
||||
// public string count_project { get; set; }
|
||||
// public string khrang2 { get; set; }
|
||||
// public string text3 { get; set; }
|
||||
// public string count_training { get; set; }
|
||||
// public string rueang { get; set; }
|
||||
// public string text4 { get; set; }
|
||||
// public string count_knowledge { get; set; }
|
||||
// public string khrang3 { get; set; }
|
||||
// public List<twenty_one_data_activity1_detail> twenty_one_data_activity1_detail { get; set; }
|
||||
//
|
||||
// }
|
||||
//
|
||||
// public class twenty_one_data_activity1_detail
|
||||
// {
|
||||
// public string activity_clause1 { get; set; }
|
||||
// public string text1 { get; set; }
|
||||
// public string count_unit { get; set; }
|
||||
// public string nuai_nap { get; set; }
|
||||
// public string text2 { get; set; }
|
||||
// public string count_project { get; set; }
|
||||
// public string khrang2 { get; set; }
|
||||
// public string text3 { get; set; }
|
||||
// public string count_training { get; set; }
|
||||
// public string rueang { get; set; }
|
||||
// public string text4 { get; set; }
|
||||
// public string count_knowledge { get; set; }
|
||||
// public string khrang3 { get; set; }
|
||||
// }
|
||||
// public class twenty_one_data_activity2
|
||||
// {
|
||||
// public string clause2 { get; set; }
|
||||
// public string activity_clause2 { get; set; }
|
||||
//
|
||||
// public string text5 { get; set; }
|
||||
// public string project_start_date { get; set; }
|
||||
// public string project_end_date { get; set; }
|
||||
//
|
||||
// public string text6 { get; set; }
|
||||
// public string percentage_finish { get; set; }
|
||||
//
|
||||
// }
|
||||
// public class twenty_one_data_activity3
|
||||
// {
|
||||
//
|
||||
// public string text7 { get; set; }
|
||||
// public string text8 { get; set; }
|
||||
// public string text9 { get; set; }
|
||||
// public string text10 { get; set; }
|
||||
// public string clause3 { get; set; }
|
||||
// public string percentage1 { get; set; }
|
||||
// public string percentage2 { get; set; }
|
||||
// public string acquired_knowledge { get; set; }
|
||||
// public string detail1 { get; set; }
|
||||
// public string detail2 { get; set; }
|
||||
// public string clause4 { get; set; }
|
||||
// public decimal? expenses { get; set; }
|
||||
// public string bath { get; set; }
|
||||
// }
|
||||
public class twenty_two_data
|
||||
{
|
||||
public string list { get; set; }
|
||||
@@ -478,6 +538,12 @@ namespace rmutr_report.Models
|
||||
}
|
||||
|
||||
public class twenty_four_data
|
||||
{
|
||||
public string activity { get; set; }
|
||||
public List<twenty_four_data_detail> twenty_fours { get; set; }
|
||||
}
|
||||
|
||||
public class twenty_four_data_detail
|
||||
{
|
||||
public string text1 { get; set; }
|
||||
public string text2 { get; set; }
|
||||
@@ -490,15 +556,17 @@ namespace rmutr_report.Models
|
||||
public string area { get; set; }
|
||||
public string telephone_number { get; set; }
|
||||
public string mobile_number { get; set; }
|
||||
public string email { get; set; }
|
||||
public string email { get; set; }
|
||||
}
|
||||
|
||||
public class twenty_fifth_data
|
||||
{
|
||||
public string activity { get; set; }
|
||||
public List<string> activity { get; set; }
|
||||
public string activitys { get; set; }
|
||||
public string activity_display_name { get; set; }
|
||||
public string dates { get; set; }
|
||||
public string location { get; set; }
|
||||
public List<string> location { get; set; }
|
||||
public string locations { get; set; }
|
||||
public List<twenty_fifth_data_details> twenty_fifth_data_detail { get; set; }
|
||||
|
||||
}
|
||||
@@ -509,6 +577,7 @@ namespace rmutr_report.Models
|
||||
public string times { get; set; }
|
||||
public string detail { get; set; }
|
||||
public string lecturer { get; set; }
|
||||
public string in_out { get; set; }
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -85,60 +85,69 @@ namespace rmutr_report.Models
|
||||
{
|
||||
public string activity_table { get; set; }
|
||||
public List<tenth2_datas_details> tenths2 { get; set; }
|
||||
}
|
||||
|
||||
public class tenth2_datas_details
|
||||
{
|
||||
public decimal? salaya_executive { get; set; }
|
||||
public decimal? bophitphimuk_executive { get; set; }
|
||||
public decimal? pohchang_executive { get; set; }
|
||||
public decimal? klai_kangwon_executive { get; set; }
|
||||
public decimal? salaya_teacher { get; set; }
|
||||
public decimal? bophitphimuk_teacher { get; set; }
|
||||
public decimal? pohchang_teacher { get; set; }
|
||||
public decimal? klai_kangwon_teacher { get; set; }
|
||||
public decimal? salaya_officer { get; set; }
|
||||
public decimal? bophitphimuk_officer { get; set; }
|
||||
public decimal? pohchang_officer { get; set; }
|
||||
public decimal? klai_kangwon_officer { get; set; }
|
||||
public decimal? salaya_internal_student { get; set; }
|
||||
public decimal? bophitphimuk_internal_student { get; set; }
|
||||
public decimal? pohchang_internal_student { get; set; }
|
||||
public decimal? klai_kangwon_internal_student { get; set; }
|
||||
public decimal? salaya_external_student { get; set; }
|
||||
public decimal? bophitphimuk_external_student { get; set; }
|
||||
public decimal? pohchang_external_student { get; set; }
|
||||
public decimal? klai_kangwon_external_student { get; set; }
|
||||
public decimal? salaya_person { get; set; }
|
||||
public decimal? bophitphimuk_person { get; set; }
|
||||
public decimal? pohchang_person { get; set; }
|
||||
public decimal? klai_kangwon_person { get; set; }
|
||||
public decimal? salaya_lecturer { get; set; }
|
||||
public decimal? bophitphimuk_lecturer { get; set; }
|
||||
public decimal? pohchang_lecturer { get; set; }
|
||||
public decimal? klai_kangwon_lecturer { get; set; }
|
||||
|
||||
public decimal? salaya_board { get; set; }
|
||||
public decimal? bophitphimuk_board { get; set; }
|
||||
public decimal? pohchang_board { get; set; }
|
||||
public decimal? klai_kangwon_board { get; set; }
|
||||
|
||||
public decimal? salaya_driver { get; set; }
|
||||
public decimal? bophitphimuk_driver { get; set; }
|
||||
public decimal? pohchang_driver { get; set; }
|
||||
public decimal? klai_kangwon_driver { get; set; }
|
||||
|
||||
public decimal? salaya_other { get; set; }
|
||||
public decimal? bophitphimuk_other { get; set; }
|
||||
public decimal? pohchang_other { get; set; }
|
||||
public decimal? klai_kangwon_other { get; set; }
|
||||
|
||||
public decimal? salaya_total { get; set; }
|
||||
public decimal? bophitphimuk_total { get; set; }
|
||||
public decimal? pohchang_total { get; set; }
|
||||
public decimal? klai_kangwon_total { get; set; }
|
||||
}
|
||||
|
||||
public class tenth2_datas_details
|
||||
{
|
||||
public string target_group { get; set; }
|
||||
public decimal? salaya { get; set; }
|
||||
public decimal? bophitphimuk{ get; set; }
|
||||
public decimal? pohchang{ get; set; }
|
||||
public decimal? klai_kangwon{ get; set; }
|
||||
// public decimal? salaya_executive { get; set; }
|
||||
// public decimal? bophitphimuk_executive { get; set; }
|
||||
// public decimal? pohchang_executive { get; set; }
|
||||
// public decimal? klai_kangwon_executive { get; set; }
|
||||
// public decimal? salaya_teacher { get; set; }
|
||||
// public decimal? bophitphimuk_teacher { get; set; }
|
||||
// public decimal? pohchang_teacher { get; set; }
|
||||
// public decimal? klai_kangwon_teacher { get; set; }
|
||||
// public decimal? salaya_officer { get; set; }
|
||||
// public decimal? bophitphimuk_officer { get; set; }
|
||||
// public decimal? pohchang_officer { get; set; }
|
||||
// public decimal? klai_kangwon_officer { get; set; }
|
||||
// public decimal? salaya_internal_student { get; set; }
|
||||
// public decimal? bophitphimuk_internal_student { get; set; }
|
||||
// public decimal? pohchang_internal_student { get; set; }
|
||||
// public decimal? klai_kangwon_internal_student { get; set; }
|
||||
// public decimal? salaya_external_student { get; set; }
|
||||
// public decimal? bophitphimuk_external_student { get; set; }
|
||||
// public decimal? pohchang_external_student { get; set; }
|
||||
// public decimal? klai_kangwon_external_student { get; set; }
|
||||
// public decimal? salaya_person { get; set; }
|
||||
// public decimal? bophitphimuk_person { get; set; }
|
||||
// public decimal? pohchang_person { get; set; }
|
||||
// public decimal? klai_kangwon_person { get; set; }
|
||||
// public decimal? salaya_lecturer { get; set; }
|
||||
// public decimal? bophitphimuk_lecturer { get; set; }
|
||||
// public decimal? pohchang_lecturer { get; set; }
|
||||
// public decimal? klai_kangwon_lecturer { get; set; }
|
||||
//
|
||||
// public decimal? salaya_board { get; set; }
|
||||
// public decimal? bophitphimuk_board { get; set; }
|
||||
// public decimal? pohchang_board { get; set; }
|
||||
// public decimal? klai_kangwon_board { get; set; }
|
||||
//
|
||||
// public decimal? salaya_driver { get; set; }
|
||||
// public decimal? bophitphimuk_driver { get; set; }
|
||||
// public decimal? pohchang_driver { get; set; }
|
||||
// public decimal? klai_kangwon_driver { get; set; }
|
||||
//
|
||||
// public decimal? salaya_other { get; set; }
|
||||
// public decimal? bophitphimuk_other { get; set; }
|
||||
// public decimal? pohchang_other { get; set; }
|
||||
// public decimal? klai_kangwon_other { get; set; }
|
||||
//
|
||||
// public decimal? salaya_total { get; set; }
|
||||
// public decimal? bophitphimuk_total { get; set; }
|
||||
// public decimal? pohchang_total { get; set; }
|
||||
// public decimal? klai_kangwon_total { get; set; }
|
||||
}
|
||||
|
||||
public class operating_activities
|
||||
{
|
||||
public string activity { get; set; }
|
||||
@@ -146,18 +155,19 @@ namespace rmutr_report.Models
|
||||
|
||||
public class output_datas
|
||||
{
|
||||
public string kpi_name { get; set; }
|
||||
public string quantity_kpi { get; set; }
|
||||
public string quantity_target { get; set; }
|
||||
public string quantity_measure { get; set; }
|
||||
public string quality_kpi { get; set; }
|
||||
public string quality_target { get; set; }
|
||||
public string quality_measure { get; set; }
|
||||
public string time_kpi { get; set; }
|
||||
public string time_target { get; set; }
|
||||
public string time_measure { get; set; }
|
||||
public string cost_kpi { get; set; }
|
||||
public string cost_target { get; set; }
|
||||
public string cost_measure { get; set; }
|
||||
// public string quality_kpi { get; set; }
|
||||
// public string quality_target { get; set; }
|
||||
// public string quality_measure { get; set; }
|
||||
// public string time_kpi { get; set; }
|
||||
// public string time_target { get; set; }
|
||||
// public string time_measure { get; set; }
|
||||
// public string cost_kpi { get; set; }
|
||||
// public string cost_target { get; set; }
|
||||
// public string cost_measure { get; set; }
|
||||
}
|
||||
|
||||
public class thirteen_data
|
||||
|
||||
53
Models/budget/student_admission_plan.cs
Normal file
53
Models/budget/student_admission_plan.cs
Normal file
@@ -0,0 +1,53 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace rmutr_report.Models
|
||||
{
|
||||
public class student_admission_plan
|
||||
{
|
||||
public int? student_type_code { get; set; } //1นักศึกษารับใหม่ 2นักศึกษาทั้งหมด 3นักศึกษาสำเร็จ
|
||||
public string student_type_name { get; set; }
|
||||
public string academic_year_from { get; set; }
|
||||
public string academic_year_to{ get; set; }
|
||||
public string faculty_name_th { get; set; }
|
||||
public string level { get; set; }
|
||||
public string course_name_th { get; set; }
|
||||
public string major_name_th { get; set; }
|
||||
public string budget_project_name_th { get; set; }
|
||||
public string agency_name_th { get; set; }
|
||||
public string budget_location_name_th { get; set; }
|
||||
//
|
||||
public string year_1 { get; set; }
|
||||
public string year_2 { get; set; }
|
||||
public string year_3 { get; set; }
|
||||
public string year_4 { get; set; }
|
||||
public string year_5 { get; set; }
|
||||
public string year_6 { get; set; }
|
||||
public string text { get; set; }
|
||||
|
||||
public List<student_admission_plan_detail> data { get; set; }
|
||||
}
|
||||
|
||||
public class student_admission_plan_detail
|
||||
{
|
||||
public int? topic_type { get; set; }
|
||||
public string topic { get; set; }
|
||||
public decimal? sector_normal_year_1 { get; set; }
|
||||
public decimal? sector_normal_year_2 { get; set; }
|
||||
public decimal? sector_normal_year_3 { get; set; }
|
||||
public decimal? sector_normal_year_4 { get; set; }
|
||||
public decimal? sector_normal_year_5 { get; set; }
|
||||
public decimal? sector_normal_year_6 { get; set; }
|
||||
public decimal? sector_associate_year_1 { get; set; }
|
||||
public decimal? sector_associate_year_2 { get; set; }
|
||||
public decimal? sector_associate_year_3 { get; set; }
|
||||
public decimal? sector_associate_year_4 { get; set; }
|
||||
public decimal? sector_associate_year_5 { get; set; }
|
||||
public decimal? sector_associate_year_6 { get; set; }
|
||||
public decimal? total_year_1 { get; set; }
|
||||
public decimal? total_year_2 { get; set; }
|
||||
public decimal? total_year_3 { get; set; }
|
||||
public decimal? total_year_4 { get; set; }
|
||||
public decimal? total_year_5 { get; set; }
|
||||
public decimal? total_year_6 { get; set; }
|
||||
}
|
||||
}
|
||||
182
Models/budget/student_overview.cs
Normal file
182
Models/budget/student_overview.cs
Normal file
@@ -0,0 +1,182 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace rmutr_report.Models
|
||||
{
|
||||
public class student_overview
|
||||
{
|
||||
public int? student_type_code { get; set; } //1นักศึกษารับใหม่ 2นักศึกษาทั้งหมด 3นักศึกษาสำเร็จ
|
||||
public string student_type_name { get; set; }
|
||||
public string academic_year_from { get; set; }
|
||||
public string academic_year_to{ get; set; }
|
||||
//
|
||||
public string year_1 { get; set; }
|
||||
public string year_2 { get; set; }
|
||||
public string year_3 { get; set; }
|
||||
public string year_4 { get; set; }
|
||||
public string year_5 { get; set; }
|
||||
public string year_6 { get; set; }
|
||||
public List<student_overview_detail> data { get; set; }
|
||||
public decimal? ba_degree_science_1 { get; set; }
|
||||
public decimal? ba_degree_social_1{ get; set; }
|
||||
public decimal? ba_degree_total_1 { get; set; }
|
||||
public decimal? ma_degree_science_1 { get; set; }
|
||||
public decimal? ma_degree_social_1 { get; set; }
|
||||
public decimal? ma_degree_total_1 { get; set; }
|
||||
public decimal? doctor_degree_science_1 { get; set; }
|
||||
public decimal? doctor_degree_social_1 { get; set; }
|
||||
public decimal? doctor_degree_total_1 { get; set; }
|
||||
public decimal? total_science_1 { get; set; }
|
||||
public decimal? total_social_1 { get; set; }
|
||||
public decimal? total_1 { get; set; }
|
||||
//
|
||||
public decimal? ba_degree_science_2 { get; set; }
|
||||
public decimal? ba_degree_social_2{ get; set; }
|
||||
public decimal? ba_degree_total_2 { get; set; }
|
||||
public decimal? ma_degree_science_2 { get; set; }
|
||||
public decimal? ma_degree_social_2 { get; set; }
|
||||
public decimal? ma_degree_total_2 { get; set; }
|
||||
public decimal? doctor_degree_science_2 { get; set; }
|
||||
public decimal? doctor_degree_social_2 { get; set; }
|
||||
public decimal? doctor_degree_total_2 { get; set; }
|
||||
public decimal? total_science_2 { get; set; }
|
||||
public decimal? total_social_2 { get; set; }
|
||||
public decimal? total_2 { get; set; }
|
||||
//
|
||||
public decimal? ba_degree_science_3 { get; set; }
|
||||
public decimal? ba_degree_social_3{ get; set; }
|
||||
public decimal? ba_degree_total_3 { get; set; }
|
||||
public decimal? ma_degree_science_3 { get; set; }
|
||||
public decimal? ma_degree_social_3 { get; set; }
|
||||
public decimal? ma_degree_total_3 { get; set; }
|
||||
public decimal? doctor_degree_science_3 { get; set; }
|
||||
public decimal? doctor_degree_social_3 { get; set; }
|
||||
public decimal? doctor_degree_total_3 { get; set; }
|
||||
public decimal? total_science_3 { get; set; }
|
||||
public decimal? total_social_3 { get; set; }
|
||||
public decimal? total_3 { get; set; }
|
||||
//
|
||||
public decimal? ba_degree_science_4 { get; set; }
|
||||
public decimal? ba_degree_social_4{ get; set; }
|
||||
public decimal? ba_degree_total_4 { get; set; }
|
||||
public decimal? ma_degree_science_4 { get; set; }
|
||||
public decimal? ma_degree_social_4 { get; set; }
|
||||
public decimal? ma_degree_total_4 { get; set; }
|
||||
public decimal? doctor_degree_science_4 { get; set; }
|
||||
public decimal? doctor_degree_social_4 { get; set; }
|
||||
public decimal? doctor_degree_total_4 { get; set; }
|
||||
public decimal? total_science_4 { get; set; }
|
||||
public decimal? total_social_4 { get; set; }
|
||||
public decimal? total_4 { get; set; }
|
||||
//
|
||||
public decimal? ba_degree_science_5 { get; set; }
|
||||
public decimal? ba_degree_social_5{ get; set; }
|
||||
public decimal? ba_degree_total_5 { get; set; }
|
||||
public decimal? ma_degree_science_5 { get; set; }
|
||||
public decimal? ma_degree_social_5 { get; set; }
|
||||
public decimal? ma_degree_total_5 { get; set; }
|
||||
public decimal? doctor_degree_science_5 { get; set; }
|
||||
public decimal? doctor_degree_social_5 { get; set; }
|
||||
public decimal? doctor_degree_total_5 { get; set; }
|
||||
public decimal? total_science_5 { get; set; }
|
||||
public decimal? total_social_5 { get; set; }
|
||||
public decimal? total_5 { get; set; }
|
||||
//
|
||||
public decimal? ba_degree_science_6 { get; set; }
|
||||
public decimal? ba_degree_social_6{ get; set; }
|
||||
public decimal? ba_degree_total_6 { get; set; }
|
||||
public decimal? ma_degree_science_6 { get; set; }
|
||||
public decimal? ma_degree_social_6 { get; set; }
|
||||
public decimal? ma_degree_total_6 { get; set; }
|
||||
public decimal? doctor_degree_science_6 { get; set; }
|
||||
public decimal? doctor_degree_social_6 { get; set; }
|
||||
public decimal? doctor_degree_total_6 { get; set; }
|
||||
public decimal? total_science_6 { get; set; }
|
||||
public decimal? total_social_6 { get; set; }
|
||||
public decimal? total_6 { get; set; }
|
||||
|
||||
}
|
||||
|
||||
public class student_overview_detail
|
||||
{
|
||||
public int? topic_type { get; set; }
|
||||
public string row_no { get; set; }
|
||||
public string topic { get; set; }
|
||||
public decimal? ba_degree_science_1 { get; set; }
|
||||
public decimal? ba_degree_social_1{ get; set; }
|
||||
public decimal? ba_degree_total_1 { get; set; }
|
||||
public decimal? ma_degree_science_1 { get; set; }
|
||||
public decimal? ma_degree_social_1 { get; set; }
|
||||
public decimal? ma_degree_total_1 { get; set; }
|
||||
public decimal? doctor_degree_science_1 { get; set; }
|
||||
public decimal? doctor_degree_social_1 { get; set; }
|
||||
public decimal? doctor_degree_total_1 { get; set; }
|
||||
public decimal? total_science_1 { get; set; }
|
||||
public decimal? total_social_1 { get; set; }
|
||||
public decimal? total_1 { get; set; }
|
||||
//
|
||||
public decimal? ba_degree_science_2 { get; set; }
|
||||
public decimal? ba_degree_social_2{ get; set; }
|
||||
public decimal? ba_degree_total_2 { get; set; }
|
||||
public decimal? ma_degree_science_2 { get; set; }
|
||||
public decimal? ma_degree_social_2 { get; set; }
|
||||
public decimal? ma_degree_total_2 { get; set; }
|
||||
public decimal? doctor_degree_science_2 { get; set; }
|
||||
public decimal? doctor_degree_social_2 { get; set; }
|
||||
public decimal? doctor_degree_total_2 { get; set; }
|
||||
public decimal? total_science_2 { get; set; }
|
||||
public decimal? total_social_2 { get; set; }
|
||||
public decimal? total_2 { get; set; }
|
||||
//
|
||||
public decimal? ba_degree_science_3 { get; set; }
|
||||
public decimal? ba_degree_social_3{ get; set; }
|
||||
public decimal? ba_degree_total_3 { get; set; }
|
||||
public decimal? ma_degree_science_3 { get; set; }
|
||||
public decimal? ma_degree_social_3 { get; set; }
|
||||
public decimal? ma_degree_total_3 { get; set; }
|
||||
public decimal? doctor_degree_science_3 { get; set; }
|
||||
public decimal? doctor_degree_social_3 { get; set; }
|
||||
public decimal? doctor_degree_total_3 { get; set; }
|
||||
public decimal? total_science_3 { get; set; }
|
||||
public decimal? total_social_3 { get; set; }
|
||||
public decimal? total_3 { get; set; }
|
||||
//
|
||||
public decimal? ba_degree_science_4 { get; set; }
|
||||
public decimal? ba_degree_social_4{ get; set; }
|
||||
public decimal? ba_degree_total_4 { get; set; }
|
||||
public decimal? ma_degree_science_4 { get; set; }
|
||||
public decimal? ma_degree_social_4 { get; set; }
|
||||
public decimal? ma_degree_total_4 { get; set; }
|
||||
public decimal? doctor_degree_science_4 { get; set; }
|
||||
public decimal? doctor_degree_social_4 { get; set; }
|
||||
public decimal? doctor_degree_total_4 { get; set; }
|
||||
public decimal? total_science_4 { get; set; }
|
||||
public decimal? total_social_4 { get; set; }
|
||||
public decimal? total_4 { get; set; }
|
||||
//
|
||||
public decimal? ba_degree_science_5 { get; set; }
|
||||
public decimal? ba_degree_social_5{ get; set; }
|
||||
public decimal? ba_degree_total_5 { get; set; }
|
||||
public decimal? ma_degree_science_5 { get; set; }
|
||||
public decimal? ma_degree_social_5 { get; set; }
|
||||
public decimal? ma_degree_total_5 { get; set; }
|
||||
public decimal? doctor_degree_science_5 { get; set; }
|
||||
public decimal? doctor_degree_social_5 { get; set; }
|
||||
public decimal? doctor_degree_total_5 { get; set; }
|
||||
public decimal? total_science_5 { get; set; }
|
||||
public decimal? total_social_5 { get; set; }
|
||||
public decimal? total_5 { get; set; }
|
||||
//
|
||||
public decimal? ba_degree_science_6 { get; set; }
|
||||
public decimal? ba_degree_social_6{ get; set; }
|
||||
public decimal? ba_degree_total_6 { get; set; }
|
||||
public decimal? ma_degree_science_6 { get; set; }
|
||||
public decimal? ma_degree_social_6 { get; set; }
|
||||
public decimal? ma_degree_total_6 { get; set; }
|
||||
public decimal? doctor_degree_science_6 { get; set; }
|
||||
public decimal? doctor_degree_social_6 { get; set; }
|
||||
public decimal? doctor_degree_total_6 { get; set; }
|
||||
public decimal? total_science_6 { get; set; }
|
||||
public decimal? total_social_6 { get; set; }
|
||||
public decimal? total_6 { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -8,7 +8,8 @@ namespace rmutr_report.Models
|
||||
public string product { get; set; }
|
||||
public string faculty { get; set; }
|
||||
public List<study_material_detail1> data1 { get; set; }
|
||||
//public string text { get; set; }
|
||||
public decimal? total_cost_science { get; set; }
|
||||
public decimal? total_cost_social { get; set; }
|
||||
|
||||
}
|
||||
|
||||
@@ -25,7 +26,8 @@ namespace rmutr_report.Models
|
||||
{
|
||||
public string year_class { get; set; }
|
||||
public string code { get; set; }
|
||||
|
||||
public decimal? total_cost_science { get; set; }
|
||||
public decimal? total_cost_social { get; set; }
|
||||
public List<study_material_detail3> data3 { get; set; }
|
||||
|
||||
}
|
||||
@@ -33,8 +35,6 @@ namespace rmutr_report.Models
|
||||
{
|
||||
public string academic_semester { get; set; }
|
||||
public string student { get; set; }
|
||||
// public string code { get; set; }
|
||||
// public string major { get; set; }
|
||||
public decimal? salaya { get; set; }
|
||||
public decimal? bophitphimuk { get; set; }
|
||||
public decimal? pohchang { get; set; }
|
||||
|
||||
38
Models/budget/summary_budget_expense.cs
Normal file
38
Models/budget/summary_budget_expense.cs
Normal file
@@ -0,0 +1,38 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace rmutr_report.Models
|
||||
{
|
||||
public class summary_budget_expense
|
||||
{
|
||||
public string budget_year { get; set; }
|
||||
public string agency_name_th { get; set; }
|
||||
public string budget_plan_name_th { get; set; }
|
||||
public string parent_agency_name { get; set; }
|
||||
public List<summary_budget_expense_detail> data { get; set; }
|
||||
public decimal? total_equipment { get; set; }
|
||||
public decimal? total_land_building { get; set; }
|
||||
public decimal? total_subsidy { get; set; }
|
||||
public decimal? total_compensation { get; set; }
|
||||
public decimal? total_living_expenses { get; set; }
|
||||
public decimal? total_material { get; set; }
|
||||
public decimal? total_utilities { get; set; }
|
||||
public decimal? total_other_expenses { get; set; }
|
||||
public decimal? total_other_budget_expenses { get; set; }
|
||||
public decimal? total_all { get; set; }
|
||||
}
|
||||
|
||||
public class summary_budget_expense_detail
|
||||
{
|
||||
public string budget_project_name_th { get; set; }
|
||||
public decimal? equipment { get; set; }
|
||||
public decimal? land_building { get; set; }
|
||||
public decimal? subsidy { get; set; }
|
||||
public decimal? compensation { get; set; }
|
||||
public decimal? living_expenses { get; set; }
|
||||
public decimal? material { get; set; }
|
||||
public decimal? utilities { get; set; }
|
||||
public decimal? other_expenses { get; set; }
|
||||
public decimal? other_budget_expenses { get; set; }
|
||||
public decimal? total { get; set; }
|
||||
}
|
||||
}
|
||||
67
Models/budget/summary_demand_status_equipment.cs
Normal file
67
Models/budget/summary_demand_status_equipment.cs
Normal file
@@ -0,0 +1,67 @@
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace rmutr_report.Models
|
||||
{
|
||||
public class summary_demand_status_equipment
|
||||
{
|
||||
public string budget_year { get; set; }
|
||||
public string request_assets_year_1 { get; set; }
|
||||
public string request_assets_year_2 { get; set; }
|
||||
public string request_assets_year_3 { get; set; }
|
||||
public List<summary_demand_status_equipment_detail> data { get; set; }
|
||||
}
|
||||
|
||||
public class summary_demand_status_equipment_detail
|
||||
{
|
||||
public string row_order { get; set; }
|
||||
public string row_no { get; set; }
|
||||
public int? topic_type { get; set; }
|
||||
public string topic { get; set; }
|
||||
public decimal? request_assets_year_1 { get; set; }
|
||||
public decimal? request_assets_year_2 { get; set; }
|
||||
public decimal? request_assets_year_3 { get; set; }
|
||||
public decimal? asset_available_amount { get; set; }
|
||||
public decimal? asset_broken_amount { get; set; }
|
||||
public decimal? not_available { get; set; }
|
||||
public decimal? average_service_life { get; set; }
|
||||
public string unit { get; set; }
|
||||
public decimal? unit_price { get; set; }
|
||||
public decimal? replacement_original { get; set; }
|
||||
public decimal? increase_efficiency { get; set; }
|
||||
public decimal? building { get; set; }
|
||||
public decimal? total_amount { get; set; }
|
||||
public decimal? request_amount { get; set; }
|
||||
public decimal? offer_amount { get; set; }
|
||||
public string remark { get; set; }
|
||||
public bool? conform_1 { get; set; }
|
||||
public bool? conform_2 { get; set; }
|
||||
public bool? conform_3 { get; set; }
|
||||
|
||||
public bool? standard_price_1 { get; set; }
|
||||
public bool? standard_price_2 { get; set; }
|
||||
public bool? standard_price_3 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18,4)")] public decimal? limit_price_1 { get; set; }
|
||||
[Column(TypeName = "decimal(18,4)")] public decimal? limit_price_2 { get; set; }
|
||||
[Column(TypeName = "decimal(18,4)")] public decimal? limit_price_3 { get; set; }
|
||||
public bool? unique_feature_1 { get; set; }
|
||||
public bool? unique_feature_2 { get; set; }
|
||||
public bool? unique_feature_3 { get; set; }
|
||||
|
||||
public string budget_location_name_th { get; set; }
|
||||
|
||||
public string faculty_name_th { get; set; }
|
||||
|
||||
//
|
||||
public string conform1 { get; set; }
|
||||
public string conform2 { get; set; }
|
||||
public string conform3 { get; set; }
|
||||
public string standard_price1 { get; set; }
|
||||
public string standard_price2 { get; set; }
|
||||
public string standard_price3 { get; set; }
|
||||
public string unique_feature1 { get; set; }
|
||||
public string unique_feature2 { get; set; }
|
||||
public string unique_feature3 { get; set; }
|
||||
}
|
||||
}
|
||||
47
Models/budget/summary_overview_building.cs
Normal file
47
Models/budget/summary_overview_building.cs
Normal file
@@ -0,0 +1,47 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace rmutr_report.Models
|
||||
{
|
||||
public class summary_overview_building
|
||||
{
|
||||
public string budget_year { get; set; }
|
||||
public List<summary_overview_building_detail> data { get; set; }
|
||||
}
|
||||
|
||||
public class summary_overview_building_detail
|
||||
{
|
||||
public string row_order { get; set; }
|
||||
public string row_no { get; set; }
|
||||
public int? topic_type { get; set; }
|
||||
public string topic { get; set; }
|
||||
public string province { get; set; }
|
||||
public decimal? quantity { get; set; }
|
||||
public string unit { get; set; }
|
||||
public decimal? unit_price { get; set; }
|
||||
public decimal? request_amount { get; set; }
|
||||
public decimal? offer_amount { get; set; }
|
||||
public string remark { get; set; }
|
||||
public string assembly_details { get; set; }
|
||||
public decimal? usable_area { get; set; }
|
||||
public decimal? construction_period { get; set; }
|
||||
public decimal? quantity_period_work { get; set; }
|
||||
public bool? readiness_action_1 { get; set; }
|
||||
public bool? readiness_action_2 { get; set; }
|
||||
public bool? readiness_action_3 { get; set; }
|
||||
public bool? readiness_action_4 { get; set; }
|
||||
public bool? appearance_equipment_1 { get; set; }
|
||||
public bool? appearance_equipment_2 { get; set; }
|
||||
public bool? appearance_equipment_3 { get; set; }
|
||||
public string education_type { get; set; }
|
||||
public string budget_location_name_th { get; set; }
|
||||
public string faculty_name_th { get; set; }
|
||||
//
|
||||
public string readiness_action1 { get; set; }
|
||||
public string readiness_action2 { get; set; }
|
||||
public string readiness_action3 { get; set; }
|
||||
public string readiness_action4 { get; set; }
|
||||
public string appearance_equipment1 { get; set; }
|
||||
public string appearance_equipment2 { get; set; }
|
||||
public string appearance_equipment3 { get; set; }
|
||||
}
|
||||
}
|
||||
27
Models/budget/target_budget_project.cs
Normal file
27
Models/budget/target_budget_project.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace rmutr_report.Models
|
||||
{
|
||||
public class target_budget_project
|
||||
{
|
||||
public string budget_project_name_th { get; set; }
|
||||
public string plan_year_1 { get; set; }
|
||||
public string plan_year_2 { get; set; }
|
||||
public string plan_year_3 { get; set; }
|
||||
public string plan_year_4 { get; set; }
|
||||
public string plan_year_5 { get; set; }
|
||||
public List<target_budget_project_detail> data { get; set; }
|
||||
}
|
||||
|
||||
public class target_budget_project_detail
|
||||
{
|
||||
public string indicators_money_source { get; set; }
|
||||
public string unit { get; set; }
|
||||
public string plan_value_1 { get; set; }
|
||||
public string plan_value_2 { get; set; }
|
||||
public string plan_value_3 { get; set; }
|
||||
public string plan_value_4 { get; set; }
|
||||
public string plan_value_5 { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
Binary file not shown.
Binary file not shown.
@@ -492,3 +492,5 @@ Yu Gothic UI C:\WINDOWS\Fonts\YuGothM.ttc
|
||||
Yu Gothic C:\WINDOWS\Fonts\YuGothR.ttc
|
||||
游ゴシック C:\WINDOWS\Fonts\YuGothR.ttc
|
||||
Yu Gothic UI Semilight C:\WINDOWS\Fonts\YuGothR.ttc
|
||||
Microsoft Uighur-B C:\WINDOWS\Fonts\MSUIGHUB.TTF
|
||||
Microsoft Uighur C:\WINDOWS\Fonts\MSUIGHUR.TTF
|
||||
|
||||
Binary file not shown.
Binary file not shown.
@@ -1,27 +1,27 @@
|
||||
pipelines:
|
||||
branches:
|
||||
master:
|
||||
- step:
|
||||
runs-on:
|
||||
- self.hosted
|
||||
- linux
|
||||
- 8x
|
||||
size: 8x
|
||||
services:
|
||||
- docker
|
||||
caches:
|
||||
- docker
|
||||
script: # Modify the commands below to build your repository.
|
||||
- docker login --username $DOCKER_USERNAME --password $DOCKER_PASSWORD
|
||||
- docker build -f Dockerfile.dev -t registry.71dev.com/rmutr_report:latest .
|
||||
- docker push registry.71dev.com/rmutr_report:latest
|
||||
- step:
|
||||
name: Deploy to kubernates
|
||||
image: atlassian/pipelines-kubectl
|
||||
script:
|
||||
- echo $KUBE_CONFIG_DELL | base64 -d > kubeconfig
|
||||
- kubectl --insecure-skip-tls-verify --kubeconfig=kubeconfig rollout restart deployment/rmutr-report -n rmutr
|
||||
definitions:
|
||||
services:
|
||||
docker:
|
||||
memory: 14336
|
||||
#pipelines:
|
||||
# branches:
|
||||
# master:
|
||||
# - step:
|
||||
# runs-on:
|
||||
# - self.hosted
|
||||
# - linux
|
||||
# - 8x
|
||||
# size: 8x
|
||||
# services:
|
||||
# - docker
|
||||
# caches:
|
||||
# - docker
|
||||
# script: # Modify the commands below to build your repository.
|
||||
# - docker login --username $DOCKER_USERNAME --password $DOCKER_PASSWORD
|
||||
# - docker build -f Dockerfile.dev -t registry.71dev.com/rmutr_report:latest .
|
||||
# - docker push registry.71dev.com/rmutr_report:latest
|
||||
# - step:
|
||||
# name: Deploy to kubernates
|
||||
# image: atlassian/pipelines-kubectl
|
||||
# script:
|
||||
# - echo $KUBE_CONFIG_DELL | base64 -d > kubeconfig
|
||||
# - kubectl --insecure-skip-tls-verify --kubeconfig=kubeconfig rollout restart deployment/rmutr-report -n rmutr
|
||||
#definitions:
|
||||
# services:
|
||||
# docker:
|
||||
# memory: 14336
|
||||
@@ -1,4 +1,4 @@
|
||||
// <autogenerated />
|
||||
using System;
|
||||
using System.Reflection;
|
||||
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v5.0", FrameworkDisplayName = "")]
|
||||
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v5.0", FrameworkDisplayName = ".NET 5.0")]
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Binary file not shown.
@@ -14,7 +14,7 @@ using System.Reflection;
|
||||
[assembly: System.Reflection.AssemblyCompanyAttribute("rmutr_report")]
|
||||
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
|
||||
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
|
||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")]
|
||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+2a8c6920cc53b17bc219268341f228fe657671f5")]
|
||||
[assembly: System.Reflection.AssemblyProductAttribute("rmutr_report")]
|
||||
[assembly: System.Reflection.AssemblyTitleAttribute("rmutr_report")]
|
||||
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
||||
|
||||
@@ -1 +1 @@
|
||||
b48f1bd72c29690b00599a37fe20d70100e422f1
|
||||
836a80720f2f8243c5ce706e7774077a966a1fb6b3c3aeda70e8df7dc0fb4c96
|
||||
|
||||
@@ -5,6 +5,9 @@ build_property.UsingMicrosoftNETSdkWeb = true
|
||||
build_property.ProjectTypeGuids =
|
||||
build_property.InvariantGlobalization =
|
||||
build_property.PlatformNeutralAssembly =
|
||||
build_property.EnforceExtendedAnalyzerRules =
|
||||
build_property._SupportedPlatformList = Linux,macOS,Windows
|
||||
build_property.RootNamespace = rmutr_report
|
||||
build_property.ProjectDir = C:\Users\USER\Documents\rmutr_report\
|
||||
build_property.EnableComHosting =
|
||||
build_property.EnableGeneratedComInterfaceComImportInterop =
|
||||
|
||||
@@ -1 +1 @@
|
||||
b75da1d35a4ca649b17d81186a0cb0b6010aa3ac
|
||||
814cbd923d0b771afb4468edd956b64b37aff6602890bfb34cfcf0a5743cec8f
|
||||
|
||||
Binary file not shown.
Binary file not shown.
@@ -1 +1 @@
|
||||
46314eaf8986a1d57ba3dc517059d914c26f9b2b
|
||||
e2b740473ce2922e386ca29207bf0ddd8d311b9fa433e7d972dee6de2a5bd678
|
||||
|
||||
@@ -85,3 +85,95 @@ C:\Users\USER\Documents\rmutr_report\obj\Debug\net5.0\rmutr_report.xml
|
||||
C:\Users\USER\Documents\rmutr_report\obj\Debug\net5.0\rmutr_report.pdb
|
||||
C:\Users\USER\Documents\rmutr_report\obj\Debug\net5.0\rmutr_report.genruntimeconfig.cache
|
||||
C:\Users\USER\Documents\rmutr_report\obj\Debug\net5.0\ref\rmutr_report.dll
|
||||
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\appsettings.Development.json
|
||||
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\appsettings.json
|
||||
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\nuget.config
|
||||
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\rmutr_report.exe
|
||||
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\rmutr_report.deps.json
|
||||
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\rmutr_report.runtimeconfig.json
|
||||
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\rmutr_report.runtimeconfig.dev.json
|
||||
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\rmutr_report.dll
|
||||
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\rmutr_report.pdb
|
||||
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\rmutr_report.xml
|
||||
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\ClosedXML.dll
|
||||
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\DocumentFormat.OpenXml.dll
|
||||
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\ExcelNumberFormat.dll
|
||||
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\FastReport.dll
|
||||
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\Microsoft.CodeAnalysis.dll
|
||||
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\Microsoft.CodeAnalysis.CSharp.dll
|
||||
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\Microsoft.CodeAnalysis.VisualBasic.dll
|
||||
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\Microsoft.OpenApi.dll
|
||||
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\Swashbuckle.AspNetCore.Annotations.dll
|
||||
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\Swashbuckle.AspNetCore.Swagger.dll
|
||||
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\Swashbuckle.AspNetCore.SwaggerGen.dll
|
||||
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\Swashbuckle.AspNetCore.SwaggerUI.dll
|
||||
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\System.Data.SqlClient.dll
|
||||
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\System.IO.Packaging.dll
|
||||
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\cs\Microsoft.CodeAnalysis.resources.dll
|
||||
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\de\Microsoft.CodeAnalysis.resources.dll
|
||||
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\es\Microsoft.CodeAnalysis.resources.dll
|
||||
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\fr\Microsoft.CodeAnalysis.resources.dll
|
||||
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\it\Microsoft.CodeAnalysis.resources.dll
|
||||
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\ja\Microsoft.CodeAnalysis.resources.dll
|
||||
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\ko\Microsoft.CodeAnalysis.resources.dll
|
||||
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\pl\Microsoft.CodeAnalysis.resources.dll
|
||||
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\pt-BR\Microsoft.CodeAnalysis.resources.dll
|
||||
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\ru\Microsoft.CodeAnalysis.resources.dll
|
||||
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\tr\Microsoft.CodeAnalysis.resources.dll
|
||||
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\zh-Hans\Microsoft.CodeAnalysis.resources.dll
|
||||
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\zh-Hant\Microsoft.CodeAnalysis.resources.dll
|
||||
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\cs\Microsoft.CodeAnalysis.CSharp.resources.dll
|
||||
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\de\Microsoft.CodeAnalysis.CSharp.resources.dll
|
||||
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\es\Microsoft.CodeAnalysis.CSharp.resources.dll
|
||||
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\fr\Microsoft.CodeAnalysis.CSharp.resources.dll
|
||||
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\it\Microsoft.CodeAnalysis.CSharp.resources.dll
|
||||
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\ja\Microsoft.CodeAnalysis.CSharp.resources.dll
|
||||
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\ko\Microsoft.CodeAnalysis.CSharp.resources.dll
|
||||
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\pl\Microsoft.CodeAnalysis.CSharp.resources.dll
|
||||
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\pt-BR\Microsoft.CodeAnalysis.CSharp.resources.dll
|
||||
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\ru\Microsoft.CodeAnalysis.CSharp.resources.dll
|
||||
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\tr\Microsoft.CodeAnalysis.CSharp.resources.dll
|
||||
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\zh-Hans\Microsoft.CodeAnalysis.CSharp.resources.dll
|
||||
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\zh-Hant\Microsoft.CodeAnalysis.CSharp.resources.dll
|
||||
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\cs\Microsoft.CodeAnalysis.VisualBasic.resources.dll
|
||||
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\de\Microsoft.CodeAnalysis.VisualBasic.resources.dll
|
||||
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\es\Microsoft.CodeAnalysis.VisualBasic.resources.dll
|
||||
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\fr\Microsoft.CodeAnalysis.VisualBasic.resources.dll
|
||||
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\it\Microsoft.CodeAnalysis.VisualBasic.resources.dll
|
||||
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\ja\Microsoft.CodeAnalysis.VisualBasic.resources.dll
|
||||
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\ko\Microsoft.CodeAnalysis.VisualBasic.resources.dll
|
||||
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\pl\Microsoft.CodeAnalysis.VisualBasic.resources.dll
|
||||
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\pt-BR\Microsoft.CodeAnalysis.VisualBasic.resources.dll
|
||||
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\ru\Microsoft.CodeAnalysis.VisualBasic.resources.dll
|
||||
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\tr\Microsoft.CodeAnalysis.VisualBasic.resources.dll
|
||||
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\zh-Hans\Microsoft.CodeAnalysis.VisualBasic.resources.dll
|
||||
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\zh-Hant\Microsoft.CodeAnalysis.VisualBasic.resources.dll
|
||||
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\runtimes\any\lib\netcoreapp3.0\FastReport.Compat.dll
|
||||
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\runtimes\any\lib\netcoreapp3.0\FastReport.DataVisualization.dll
|
||||
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\runtimes\win-arm64\native\sni.dll
|
||||
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\runtimes\win-x64\native\sni.dll
|
||||
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\runtimes\win-x86\native\sni.dll
|
||||
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\runtimes\unix\lib\netstandard2.0\System.Data.SqlClient.dll
|
||||
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\runtimes\win\lib\netstandard2.0\System.Data.SqlClient.dll
|
||||
C:\Users\USER\RiderProjects\rmutr_report\obj\Debug\net5.0\rmutr_report.csproj.AssemblyReference.cache
|
||||
C:\Users\USER\RiderProjects\rmutr_report\obj\Debug\net5.0\rmutr_report.GeneratedMSBuildEditorConfig.editorconfig
|
||||
C:\Users\USER\RiderProjects\rmutr_report\obj\Debug\net5.0\rmutr_report.AssemblyInfoInputs.cache
|
||||
C:\Users\USER\RiderProjects\rmutr_report\obj\Debug\net5.0\rmutr_report.AssemblyInfo.cs
|
||||
C:\Users\USER\RiderProjects\rmutr_report\obj\Debug\net5.0\rmutr_report.csproj.CoreCompileInputs.cache
|
||||
C:\Users\USER\RiderProjects\rmutr_report\obj\Debug\net5.0\rmutr_report.MvcApplicationPartsAssemblyInfo.cs
|
||||
C:\Users\USER\RiderProjects\rmutr_report\obj\Debug\net5.0\rmutr_report.MvcApplicationPartsAssemblyInfo.cache
|
||||
C:\Users\USER\RiderProjects\rmutr_report\obj\Debug\net5.0\scopedcss\bundle\rmutr_report.styles.css
|
||||
C:\Users\USER\RiderProjects\rmutr_report\obj\Debug\net5.0\staticwebassets\rmutr_report.StaticWebAssets.Manifest.cache
|
||||
C:\Users\USER\RiderProjects\rmutr_report\obj\Debug\net5.0\rmutr_report.RazorTargetAssemblyInfo.cache
|
||||
C:\Users\USER\RiderProjects\rmutr_report\obj\Debug\net5.0\rmutr_report.csproj.CopyComplete
|
||||
C:\Users\USER\RiderProjects\rmutr_report\obj\Debug\net5.0\rmutr_report.dll
|
||||
C:\Users\USER\RiderProjects\rmutr_report\obj\Debug\net5.0\refint\rmutr_report.dll
|
||||
C:\Users\USER\RiderProjects\rmutr_report\obj\Debug\net5.0\rmutr_report.xml
|
||||
C:\Users\USER\RiderProjects\rmutr_report\obj\Debug\net5.0\rmutr_report.pdb
|
||||
C:\Users\USER\RiderProjects\rmutr_report\obj\Debug\net5.0\rmutr_report.genruntimeconfig.cache
|
||||
C:\Users\USER\RiderProjects\rmutr_report\obj\Debug\net5.0\ref\rmutr_report.dll
|
||||
C:\Users\USER\Documents\rmutr_report\obj\Debug\net5.0\staticwebassets\rmutr_report.StaticWebAssets.Pack.cache
|
||||
C:\Users\USER\Documents\rmutr_report\obj\Debug\net5.0\staticwebassets\msbuild.rmutr_report.Microsoft.AspNetCore.StaticWebAssets.props
|
||||
C:\Users\USER\Documents\rmutr_report\obj\Debug\net5.0\staticwebassets\msbuild.build.rmutr_report.props
|
||||
C:\Users\USER\Documents\rmutr_report\obj\Debug\net5.0\staticwebassets\msbuild.buildMultiTargeting.rmutr_report.props
|
||||
C:\Users\USER\Documents\rmutr_report\obj\Debug\net5.0\staticwebassets\msbuild.buildTransitive.rmutr_report.props
|
||||
|
||||
Binary file not shown.
@@ -1 +1 @@
|
||||
1d39a36735b2d72fa7731390686302bd2991a9b8
|
||||
7fbffe610e4933d17629d872cd661838bac95725f539e92f735cab904b788195
|
||||
|
||||
Binary file not shown.
@@ -0,0 +1,3 @@
|
||||
<Project>
|
||||
<Import Project="Microsoft.AspNetCore.StaticWebAssets.props" />
|
||||
</Project>
|
||||
@@ -0,0 +1,3 @@
|
||||
<Project>
|
||||
<Import Project="..\build\rmutr_report.props" />
|
||||
</Project>
|
||||
@@ -0,0 +1,3 @@
|
||||
<Project>
|
||||
<Import Project="..\buildMultiTargeting\rmutr_report.props" />
|
||||
</Project>
|
||||
File diff suppressed because it is too large
Load Diff
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user