fmsdailyreport-view-model.js 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560
  1. 
  2. (function () {
  3. BemsWebApplication.FmsDailyReportViewModel = function (data) {
  4. this.SiteId = ko.observable();
  5. this.DailyReportId = ko.observable();
  6. this.Name = ko.observable();
  7. this.Contents = ko.observable();
  8. this.RegisterUserId = ko.observable();
  9. this.AddDate = ko.observable();
  10. this.RegisterDate = ko.observable();
  11. this.BusinessFieldId = ko.observable();
  12. this.Datas = ko.observable();
  13. this.ApproverUserId = ko.observable();
  14. this.ApproveDate = ko.observable();
  15. this.ApproverUserId2 = ko.observable();
  16. this.ApproveDate2 = ko.observable();
  17. this.ApproverUserId3 = ko.observable();
  18. this.ApproveDate3 = ko.observable();
  19. this.ApproverUserId4 = ko.observable();
  20. this.ApproveDate4 = ko.observable();
  21. this.ApproverUserId5 = ko.observable();
  22. this.ApproveDate5 = ko.observable();
  23. this.HumanResourceTotal = ko.observable();
  24. this.HumanResourceVacancy = ko.observable();
  25. this.HumanResourceOff = ko.observable();
  26. this.HumanResourceVacation = ko.observable();
  27. this.HumanResourceCurrent = ko.observable();
  28. this.HumanResourceTrain = ko.observable();
  29. this.HumanResourceOut = ko.observable();
  30. this.HumanResourceEtc = ko.observable();
  31. this.dataseq = ko.observable();
  32. this.Approveseq = ko.observable();
  33. this.ApproveCnt = ko.observable();
  34. this.HumanResourceClosed = ko.observable();
  35. this.WorkStatusTypeOccasional = ko.observable();
  36. this.WorkStatusTypePeriodicInspection = ko.observable();
  37. this.WorkStatusTypeForensicExamination = ko.observable();
  38. this.WorkStatusTypeEtc = ko.observable();
  39. this.WorkStatusTypeTotal = ko.observable();
  40. this.WorkStatusPending = ko.observable();
  41. this.WorkStatusInProgress = ko.observable();
  42. this.WorkStatusDeferred = ko.observable();
  43. this.WorkStatusComplete = ko.observable();
  44. this.WorkStatusApproved = ko.observable();
  45. this.WorkStatusTotal = ko.observable();
  46. this.resultWorkCommon = ko.observableArray();
  47. this.resultFmsMaterial = ko.observableArray();
  48. this.resultEnergy1Name = ko.observableArray();
  49. this.resultEnergy1Today = ko.observableArray();
  50. this.resultEnergy1Daybefore = ko.observableArray();
  51. this.resultEnergy1Dailyusage = ko.observableArray();
  52. this.resultEnergy1Monthusage = ko.observableArray();
  53. this.resultEnergy2Name = ko.observableArray();
  54. this.resultEnergy2Today = ko.observableArray();
  55. this.resultEnergy2Daybefore = ko.observableArray();
  56. this.resultEnergy2Dailyusage = ko.observableArray();
  57. this.resultEnergy2Monthusage = ko.observableArray();
  58. this.resultEnergy3Name = ko.observableArray();
  59. this.resultEnergy3Today = ko.observableArray();
  60. this.resultEnergy3Daybefore = ko.observableArray();
  61. this.resultEnergy3Dailyusage = ko.observableArray();
  62. this.resultEnergy3Monthusage = ko.observableArray();
  63. this.resultEnergy4Name = ko.observableArray();
  64. this.resultEnergy4Today = ko.observableArray();
  65. this.resultEnergy4Daybefore = ko.observableArray();
  66. this.resultEnergy4Dailyusage = ko.observableArray();
  67. this.resultEnergy4Monthusage = ko.observableArray();
  68. this.resultEnergy5Name = ko.observableArray();
  69. this.resultEnergy5Today = ko.observableArray();
  70. this.resultEnergy5Daybefore = ko.observableArray();
  71. this.resultEnergy5Dailyusage = ko.observableArray();
  72. this.resultEnergy5Monthusage = ko.observableArray();
  73. this.resultEnergy6Name = ko.observableArray();
  74. this.resultEnergy6Today = ko.observableArray();
  75. this.resultEnergy6Daybefore = ko.observableArray();
  76. this.resultEnergy6Dailyusage = ko.observableArray();
  77. this.resultEnergy6Monthusage = ko.observableArray();
  78. this.resultEnergy7Name = ko.observableArray();
  79. this.resultEnergy7Today = ko.observableArray();
  80. this.resultEnergy7Daybefore = ko.observableArray();
  81. this.resultEnergy7Dailyusage = ko.observableArray();
  82. this.resultEnergy7Monthusage = ko.observableArray();
  83. this.resultEnergy8Name = ko.observableArray();
  84. this.resultEnergy8Today = ko.observableArray();
  85. this.resultEnergy8Daybefore = ko.observableArray();
  86. this.resultEnergy8Dailyusage = ko.observableArray();
  87. this.resultEnergy8Monthusage = ko.observableArray();
  88. this.resultEnergy9Name = ko.observableArray();
  89. this.resultEnergy9Today = ko.observableArray();
  90. this.resultEnergy9Daybefore = ko.observableArray();
  91. this.resultEnergy9Dailyusage = ko.observableArray();
  92. this.resultEnergy9Monthusage = ko.observableArray();
  93. this.resultEnergytotal1Name = ko.observableArray();
  94. this.resultEnergytotal1Today = ko.observableArray();
  95. this.resultEnergytotal1Daybefore = ko.observableArray();
  96. this.resultEnergytotal1Dailyusage = ko.observableArray();
  97. this.resultEnergytotal1Monthusage = ko.observableArray();
  98. this.resultEnergytotal2Name = ko.observableArray();
  99. this.resultEnergytotal2Today = ko.observableArray();
  100. this.resultEnergytotal2Daybefore = ko.observableArray();
  101. this.resultEnergytotal2Dailyusage = ko.observableArray();
  102. this.resultEnergytotal2Monthusage = ko.observableArray();
  103. this.resultEnergytotal3Name = ko.observableArray();
  104. this.resultEnergytotal3Today = ko.observableArray();
  105. this.resultEnergytotal3Daybefore = ko.observableArray();
  106. this.resultEnergytotal3Dailyusage = ko.observableArray();
  107. this.resultEnergytotal3Monthusage = ko.observableArray();
  108. this.resultWorkCommon1 = ko.observableArray();
  109. this.resultFmsMaterial1 = ko.observableArray();
  110. this.resultWorkCommon2 = ko.observableArray();
  111. this.resultFmsMaterial2 = ko.observableArray();
  112. this.resultWorkCommon3 = ko.observableArray();
  113. this.resultFmsMaterial3 = ko.observableArray();
  114. this.resultWorkCommon4 = ko.observableArray();
  115. this.resultFmsMaterial4 = ko.observableArray();
  116. this.resultWorkCommon5 = ko.observableArray();
  117. this.resultFmsMaterial5 = ko.observableArray();
  118. this.resultWorkCommon6 = ko.observableArray();
  119. this.resultFmsMaterial6 = ko.observableArray();
  120. this.resultWorkCommon7 = ko.observableArray();
  121. this.resultFmsMaterial7 = ko.observableArray();
  122. this.resultWorkCommon8 = ko.observableArray();
  123. this.resultFmsMaterial8 = ko.observableArray();
  124. if (data)
  125. this.fromJS(data);
  126. };
  127. $.extend(BemsWebApplication.FmsDailyReportViewModel.prototype, {
  128. toJS: function () {
  129. var dataArray = {
  130. //Department: this.Department(),
  131. //Author: this.Author(),
  132. HumanResourceTotal: this.HumanResourceTotal(),
  133. HumanResourceOff: this.HumanResourceOff(),
  134. HumanResourceVacancy: this.HumanResourceVacancy(),
  135. HumanResourceVacation: this.HumanResourceVacation(),
  136. HumanResourceClosed: this.HumanResourceClosed(),
  137. HumanResourceCurrent: this.HumanResourceCurrent(),
  138. HumanResourceTrain: this.HumanResourceTrain(),
  139. HumanResourceOut: this.HumanResourceOut(),
  140. HumanResourceEtc: this.HumanResourceEtc(),
  141. dataseq: this.dataseq(),
  142. Approveseq: this.Approveseq(),
  143. ApproveCnt: this.ApproveCnt(),
  144. WorkStatus: {
  145. WorkStatusTypeOccasional: this.WorkStatusTypeOccasional(),
  146. WorkStatusTypePeriodicInspection: this.WorkStatusTypePeriodicInspection(),
  147. WorkStatusTypeForensicExamination: this.WorkStatusTypeForensicExamination(),
  148. WorkStatusTypeEtc: this.WorkStatusTypeEtc(),
  149. WorkStatusTypeTotal: this.WorkStatusTypeTotal(),
  150. WorkStatusPending: this.WorkStatusPending(),
  151. WorkStatusInProgress: this.WorkStatusInProgress(),
  152. WorkStatusDeferred: this.WorkStatusDeferred(),
  153. WorkStatusComplete: this.WorkStatusComplete(),
  154. WorkStatusApproved: this.WorkStatusApproved(),
  155. WorkStatusTotal: this.WorkStatusTotal(),
  156. },
  157. resultEnergy1: {
  158. Name: this.resultEnergy1Name(),
  159. Today: this.resultEnergy1Today(),
  160. Daybefore: this.resultEnergy1Daybefore(),
  161. Dailyusage: this.resultEnergy1Dailyusage(),
  162. Monthusage: this.resultEnergy1Monthusage(),
  163. },
  164. resultEnergy2: {
  165. Name: this.resultEnergy2Name(),
  166. Today: this.resultEnergy2Today(),
  167. Daybefore: this.resultEnergy2Daybefore(),
  168. Dailyusage: this.resultEnergy2Dailyusage(),
  169. Monthusage: this.resultEnergy2Monthusage(),
  170. },
  171. resultEnergy3: {
  172. Name: this.resultEnergy3Name(),
  173. Today: this.resultEnergy3Today(),
  174. Daybefore: this.resultEnergy3Daybefore(),
  175. Dailyusage: this.resultEnergy3Dailyusage(),
  176. Monthusage: this.resultEnergy3Monthusage(),
  177. },
  178. resultEnergy4: {
  179. Name: this.resultEnergy4Name(),
  180. Today: this.resultEnergy4Today(),
  181. Daybefore: this.resultEnergy4Daybefore(),
  182. Dailyusage: this.resultEnergy4Dailyusage(),
  183. Monthusage: this.resultEnergy4Monthusage(),
  184. },
  185. resultEnergy5: {
  186. Name: this.resultEnergy5Name(),
  187. Today: this.resultEnergy5Today(),
  188. Daybefore: this.resultEnergy5Daybefore(),
  189. Dailyusage: this.resultEnergy5Dailyusage(),
  190. Monthusage: this.resultEnergy5Monthusage(),
  191. },
  192. resultEnergy6: {
  193. Name: this.resultEnergy6Name(),
  194. Today: this.resultEnergy6Today(),
  195. Daybefore: this.resultEnergy6Daybefore(),
  196. Dailyusage: this.resultEnergy6Dailyusage(),
  197. Monthusage: this.resultEnergy6Monthusage(),
  198. },
  199. resultEnergy7: {
  200. Name: this.resultEnergy7Name(),
  201. Today: this.resultEnergy7Today(),
  202. Daybefore: this.resultEnergy7Daybefore(),
  203. Dailyusage: this.resultEnergy7Dailyusage(),
  204. Monthusage: this.resultEnergy7Monthusage(),
  205. },
  206. resultEnergy8: {
  207. Name: this.resultEnergy8Name(),
  208. Today: this.resultEnergy8Today(),
  209. Daybefore: this.resultEnergy8Daybefore(),
  210. Dailyusage: this.resultEnergy8Dailyusage(),
  211. Monthusage: this.resultEnergy8Monthusage(),
  212. },
  213. resultEnergy9: {
  214. Name: this.resultEnergy9Name(),
  215. Today: this.resultEnergy9Today(),
  216. Daybefore: this.resultEnergy9Daybefore(),
  217. Dailyusage: this.resultEnergy9Dailyusage(),
  218. Monthusage: this.resultEnergy9Monthusage(),
  219. },
  220. resultEnergytotal1: {
  221. Name: this.resultEnergytotal1Name(),
  222. Today: this.resultEnergytotal1Today(),
  223. Daybefore: this.resultEnergytotal1Daybefore(),
  224. Dailyusage: this.resultEnergytotal1Dailyusage(),
  225. Monthusage: this.resultEnergytotal1Monthusage(),
  226. },
  227. resultEnergytotal2: {
  228. Name: this.resultEnergytotal2Name(),
  229. Today: this.resultEnergytotal2Today(),
  230. Daybefore: this.resultEnergytotal2Daybefore(),
  231. Dailyusage: this.resultEnergytotal2Dailyusage(),
  232. Monthusage: this.resultEnergytotal2Monthusage(),
  233. },
  234. resultEnergytotal3: {
  235. Name: this.resultEnergytotal3Name(),
  236. Today: this.resultEnergytotal3Today(),
  237. Daybefore: this.resultEnergytotal3Daybefore(),
  238. Dailyusage: this.resultEnergytotal3Dailyusage(),
  239. Monthusage: this.resultEnergytotal3Monthusage(),
  240. },
  241. resultWorkCommon: this.resultWorkCommon(),
  242. resultFmsMaterial: this.resultFmsMaterial(),
  243. resultWorkCommon1: this.resultWorkCommon1(),
  244. resultFmsMaterial1: this.resultFmsMaterial1(),
  245. resultWorkCommon2: this.resultWorkCommon2(),
  246. resultFmsMaterial2: this.resultFmsMaterial2(),
  247. resultWorkCommon3: this.resultWorkCommon3(),
  248. resultFmsMaterial3: this.resultFmsMaterial3(),
  249. resultWorkCommon4: this.resultWorkCommon4(),
  250. resultFmsMaterial4: this.resultFmsMaterial4(),
  251. resultWorkCommon5: this.resultWorkCommon5(),
  252. resultFmsMaterial5: this.resultFmsMaterial5(),
  253. resultWorkCommon6: this.resultWorkCommon6(),
  254. resultFmsMaterial6: this.resultFmsMaterial6(),
  255. resultWorkCommon7: this.resultWorkCommon7(),
  256. resultFmsMaterial7: this.resultFmsMaterial7(),
  257. resultWorkCommon8: this.resultWorkCommon8(),
  258. resultFmsMaterial8: this.resultFmsMaterial8(),
  259. };
  260. return {
  261. SiteId: this.SiteId(),
  262. DailyReportId: this.DailyReportId(),
  263. Name: this.Name(),
  264. Contents: this.Contents(),
  265. RegisterUserId: this.RegisterUserId(),
  266. AddDate: this.AddDate(),
  267. RegisterDate: this.RegisterDate(),
  268. ApproverUserId: this.ApproverUserId(),
  269. ApproveDate: this.ApproveDate(),
  270. ApproverUserId2: this.ApproverUserId2(),
  271. ApproveDate2: this.ApproveDate2(),
  272. ApproverUserId3: this.ApproverUserId3(),
  273. ApproveDate3: this.ApproveDate3(),
  274. ApproverUserId4: this.ApproverUserId4(),
  275. ApproveDate4: this.ApproveDate4(),
  276. ApproverUserId5: this.ApproverUserId5(),
  277. ApproveDate5: this.ApproveDate5(),
  278. BusinessFieldId: this.BusinessFieldId(),
  279. Datas: JSON.stringify(dataArray)
  280. };
  281. },
  282. fromJS: function (data) {
  283. if (data) {
  284. this.SiteId(data.SiteId);
  285. this.DailyReportId(data.DailyReportId);
  286. this.Name(data.Name);
  287. this.Contents(data.Contents);
  288. this.RegisterUserId(data.RegisterUserId);
  289. this.AddDate(data.AddDate);
  290. this.RegisterDate(data.RegisterDate);
  291. this.ApproverUserId(data.ApproverUserId);
  292. this.ApproveDate(data.ApproveDate);
  293. this.ApproverUserId2(data.ApproverUserId2);
  294. this.ApproveDate2(data.ApproveDate2);
  295. this.ApproverUserId3(data.ApproverUserId3);
  296. this.ApproveDate3(data.ApproveDate3);
  297. this.ApproverUserId4(data.ApproverUserId4);
  298. this.ApproveDate4(data.ApproveDate4);
  299. this.ApproverUserId5(data.ApproverUserId5);
  300. this.ApproveDate5(data.ApproveDate5);
  301. this.BusinessFieldId(data.BusinessFieldId);
  302. if (data.Datas) {
  303. var datas = JSON.parse(data.Datas);
  304. this.HumanResourceTotal(datas.HumanResourceTotal);
  305. this.HumanResourceOff(datas.HumanResourceOff);
  306. this.HumanResourceVacancy(datas.HumanResourceVacancy);
  307. this.HumanResourceVacation(datas.HumanResourceVacation);
  308. this.HumanResourceClosed(datas.HumanResourceClosed);
  309. this.HumanResourceCurrent(datas.HumanResourceCurrent);
  310. this.HumanResourceTrain(datas.HumanResourceTrain);
  311. this.HumanResourceOut(datas.HumanResourceOut);
  312. this.HumanResourceEtc(datas.HumanResourceEtc);
  313. this.dataseq(datas.dataseq);
  314. this.Approveseq(datas.Approveseq);
  315. this.ApproveCnt(datas.ApproveCnt);
  316. this.WorkStatusTypeOccasional(datas.WorkStatus.WorkStatusTypeOccasional);
  317. this.WorkStatusTypePeriodicInspection(datas.WorkStatus.WorkStatusTypePeriodicInspection);
  318. this.WorkStatusTypeForensicExamination(datas.WorkStatus.WorkStatusTypeForensicExamination);
  319. this.WorkStatusTypeEtc(datas.WorkStatus.WorkStatusTypeEtc);
  320. this.WorkStatusTypeTotal(datas.WorkStatus.WorkStatusTypeTotal);
  321. this.WorkStatusPending(datas.WorkStatus.WorkStatusPending);
  322. this.WorkStatusInProgress(datas.WorkStatus.WorkStatusInProgress);
  323. this.WorkStatusDeferred(datas.WorkStatus.WorkStatusDeferred);
  324. this.WorkStatusComplete(datas.WorkStatus.WorkStatusComplete);
  325. this.WorkStatusApproved(datas.WorkStatus.WorkStatusApproved);
  326. this.WorkStatusTotal(datas.WorkStatus.WorkStatusTotal);
  327. this.resultEnergy1Name(datas.resultEnergy1.Name);
  328. this.resultEnergy1Today(datas.resultEnergy1.Today);
  329. this.resultEnergy1Daybefore(datas.resultEnergy1.Daybefore);
  330. this.resultEnergy1Dailyusage(datas.resultEnergy1.Dailyusage);
  331. this.resultEnergy1Monthusage(datas.resultEnergy1.Monthusage);
  332. this.resultEnergy2Name(datas.resultEnergy2.Name);
  333. this.resultEnergy2Today(datas.resultEnergy2.Today);
  334. this.resultEnergy2Daybefore(datas.resultEnergy2.Daybefore);
  335. this.resultEnergy2Dailyusage(datas.resultEnergy2.Dailyusage);
  336. this.resultEnergy2Monthusage(datas.resultEnergy2.Monthusage);
  337. this.resultEnergy3Name(datas.resultEnergy3.Name);
  338. this.resultEnergy3Today(datas.resultEnergy3.Today);
  339. this.resultEnergy3Daybefore(datas.resultEnergy3.Daybefore);
  340. this.resultEnergy3Dailyusage(datas.resultEnergy3.Dailyusage);
  341. this.resultEnergy3Monthusage(datas.resultEnergy3.Monthusage);
  342. this.resultEnergy4Name(datas.resultEnergy4.Name);
  343. this.resultEnergy4Today(datas.resultEnergy4.Today);
  344. this.resultEnergy4Daybefore(datas.resultEnergy4.Daybefore);
  345. this.resultEnergy4Dailyusage(datas.resultEnergy4.Dailyusage);
  346. this.resultEnergy4Monthusage(datas.resultEnergy4.Monthusage);
  347. this.resultEnergy5Name(datas.resultEnergy5.Name);
  348. this.resultEnergy5Today(datas.resultEnergy5.Today);
  349. this.resultEnergy5Daybefore(datas.resultEnergy5.Daybefore);
  350. this.resultEnergy5Dailyusage(datas.resultEnergy5.Dailyusage);
  351. this.resultEnergy5Monthusage(datas.resultEnergy5.Monthusage);
  352. this.resultEnergy6Name(datas.resultEnergy6.Name);
  353. this.resultEnergy6Today(datas.resultEnergy6.Today);
  354. this.resultEnergy6Daybefore(datas.resultEnergy6.Daybefore);
  355. this.resultEnergy6Dailyusage(datas.resultEnergy6.Dailyusage);
  356. this.resultEnergy6Monthusage(datas.resultEnergy6.Monthusage);
  357. this.resultEnergy7Name(datas.resultEnergy7.Name);
  358. this.resultEnergy7Today(datas.resultEnergy7.Today);
  359. this.resultEnergy7Daybefore(datas.resultEnergy7.Daybefore);
  360. this.resultEnergy7Dailyusage(datas.resultEnergy7.Dailyusage);
  361. this.resultEnergy7Monthusage(datas.resultEnergy7.Monthusage);
  362. this.resultEnergy8Name(datas.resultEnergy8.Name);
  363. this.resultEnergy8Today(datas.resultEnergy8.Today);
  364. this.resultEnergy8Daybefore(datas.resultEnergy8.Daybefore);
  365. this.resultEnergy8Dailyusage(datas.resultEnergy8.Dailyusage);
  366. this.resultEnergy8Monthusage(datas.resultEnergy8.Monthusage);
  367. this.resultEnergy9Name(datas.resultEnergy9.Name);
  368. this.resultEnergy9Today(datas.resultEnergy9.Today);
  369. this.resultEnergy9Daybefore(datas.resultEnergy9.Daybefore);
  370. this.resultEnergy9Dailyusage(datas.resultEnergy9.Dailyusage);
  371. this.resultEnergy9Monthusage(datas.resultEnergy9.Monthusage);
  372. this.resultEnergytotal1Name(datas.resultEnergytotal1.Name);
  373. this.resultEnergytotal1Today(datas.resultEnergytotal1.Today);
  374. this.resultEnergytotal1Daybefore(datas.resultEnergytotal1.Daybefore);
  375. this.resultEnergytotal1Dailyusage(datas.resultEnergytotal1.Dailyusage);
  376. this.resultEnergytotal1Monthusage(datas.resultEnergytotal1.Monthusage);
  377. this.resultEnergytotal2Name(datas.resultEnergytotal2.Name);
  378. this.resultEnergytotal2Today(datas.resultEnergytotal2.Today);
  379. this.resultEnergytotal2Daybefore(datas.resultEnergytotal2.Daybefore);
  380. this.resultEnergytotal2Dailyusage(datas.resultEnergytotal2.Dailyusage);
  381. this.resultEnergytotal2Monthusage(datas.resultEnergytotal2.Monthusage);
  382. this.resultEnergytotal3Name(datas.resultEnergytotal3.Name);
  383. this.resultEnergytotal3Today(datas.resultEnergytotal3.Today);
  384. this.resultEnergytotal3Daybefore(datas.resultEnergytotal3.Daybefore);
  385. this.resultEnergytotal3Dailyusage(datas.resultEnergytotal3.Dailyusage);
  386. this.resultEnergytotal3Monthusage(datas.resultEnergytotal3.Monthusage);
  387. this.resultWorkCommon(datas.resultWorkCommon);
  388. this.resultFmsMaterial(datas.resultFmsMaterial);
  389. this.resultWorkCommon1(datas.resultWorkCommon1);
  390. this.resultFmsMaterial1(datas.resultFmsMaterial1);
  391. this.resultWorkCommon2(datas.resultWorkCommon2);
  392. this.resultFmsMaterial2(datas.resultFmsMaterial2);
  393. this.resultWorkCommon3(datas.resultWorkCommon3);
  394. this.resultFmsMaterial3(datas.resultFmsMaterial3);
  395. this.resultWorkCommon4(datas.resultWorkCommon4);
  396. this.resultFmsMaterial4(datas.resultFmsMaterial4);
  397. this.resultWorkCommon5(datas.resultWorkCommon5);
  398. this.resultFmsMaterial5(datas.resultFmsMaterial5);
  399. this.resultWorkCommon6(datas.resultWorkCommon6);
  400. this.resultFmsMaterial6(datas.resultFmsMaterial6);
  401. this.resultWorkCommon7(datas.resultWorkCommon7);
  402. this.resultFmsMaterial7(datas.resultFmsMaterial7);
  403. this.resultWorkCommon8(datas.resultWorkCommon8);
  404. this.resultFmsMaterial8(datas.resultFmsMaterial8);
  405. } else {
  406. this.HumanResourceTotal(null);
  407. this.HumanResourceOff(null);
  408. this.HumanResourceVacancy(null);
  409. this.HumanResourceVacation(null);
  410. this.HumanResourceClosed(null);
  411. this.HumanResourceCurrent(null);
  412. this.HumanResourceTrain(null);
  413. this.HumanResourceOut(null);
  414. this.HumanResourceEtc(null);
  415. this.dataseq(null);
  416. this.Approveseq(null);
  417. this.ApproveCnt(null);
  418. this.WorkStatusTypeOccasional(null);
  419. this.WorkStatusTypePeriodicInspection(null);
  420. this.WorkStatusTypeForensicExamination(null);
  421. this.WorkStatusTypeEtc(null);
  422. this.WorkStatusTypeTotal(null);
  423. this.WorkStatusPending(null);
  424. this.WorkStatusInProgress(null);
  425. this.WorkStatusDeferred(null);
  426. this.WorkStatusComplete(null);
  427. this.WorkStatusApproved(null);
  428. this.WorkStatusTotal(null);
  429. this.resultEnergy1Name(null);
  430. this.resultEnergy1Today(null);
  431. this.resultEnergy1Daybefore(null);
  432. this.resultEnergy1Dailyusage(null);
  433. this.resultEnergy1Monthusage(null);
  434. this.resultEnergy2Name(null);
  435. this.resultEnergy2Today(null);
  436. this.resultEnergy2Daybefore(null);
  437. this.resultEnergy2Dailyusage(null);
  438. this.resultEnergy2Monthusage(null);
  439. this.resultEnergy3Name(null);
  440. this.resultEnergy3Today(null);
  441. this.resultEnergy3Daybefore(null);
  442. this.resultEnergy3Dailyusage(null);
  443. this.resultEnergy3Monthusage(null);
  444. this.resultEnergy4Name(null);
  445. this.resultEnergy4Today(null);
  446. this.resultEnergy4Daybefore(null);
  447. this.resultEnergy4Dailyusage(null);
  448. this.resultEnergy4Monthusage(null);
  449. this.resultEnergy5Name(null);
  450. this.resultEnergy5Today(null);
  451. this.resultEnergy5Daybefore(null);
  452. this.resultEnergy5Dailyusage(null);
  453. this.resultEnergy5Monthusage(null);
  454. this.resultEnergy6Name(null);
  455. this.resultEnergy6Today(null);
  456. this.resultEnergy6Daybefore(null);
  457. this.resultEnergy6Dailyusage(null);
  458. this.resultEnergy6Monthusage(null);
  459. this.resultEnergy7Name(null);
  460. this.resultEnergy7Today(null);
  461. this.resultEnergy7Daybefore(null);
  462. this.resultEnergy7Dailyusage(null);
  463. this.resultEnergy7Monthusage(null);
  464. this.resultEnergy8Name(null);
  465. this.resultEnergy8Today(null);
  466. this.resultEnergy8Daybefore(null);
  467. this.resultEnergy8Dailyusage(null);
  468. this.resultEnergy8Monthusage(null);
  469. this.resultEnergy9Name(null);
  470. this.resultEnergy9Today(null);
  471. this.resultEnergy9Daybefore(null);
  472. this.resultEnergy9Dailyusage(null);
  473. this.resultEnergy9Monthusage(null);
  474. this.resultEnergytotal1Name(null);
  475. this.resultEnergytotal1Today(null);
  476. this.resultEnergytotal1Daybefore(null);
  477. this.resultEnergytotal1Dailyusage(null);
  478. this.resultEnergytotal1Monthusage(null);
  479. this.resultEnergytotal2Name(null);
  480. this.resultEnergytotal2Today(null);
  481. this.resultEnergytotal2Daybefore(null);
  482. this.resultEnergytotal2Dailyusage(null);
  483. this.resultEnergytotal2Monthusage(null);
  484. this.resultEnergytotal3Name(null);
  485. this.resultEnergytotal3Today(null);
  486. this.resultEnergytotal3Daybefore(null);
  487. this.resultEnergytotal3Dailyusage(null);
  488. this.resultEnergytotal3Monthusage(null);
  489. this.resultWorkCommon([]);
  490. this.resultFmsMaterial([]);
  491. this.resultWorkCommon1([]);
  492. this.resultFmsMaterial1([]);
  493. this.resultWorkCommon2([]);
  494. this.resultFmsMaterial2([]);
  495. this.resultWorkCommon3([]);
  496. this.resultFmsMaterial3([]);
  497. this.resultWorkCommon4([]);
  498. this.resultFmsMaterial4([]);
  499. this.resultWorkCommon5([]);
  500. this.resultFmsMaterial5([]);
  501. this.resultWorkCommon6([]);
  502. this.resultFmsMaterial6([]);
  503. this.resultWorkCommon7([]);
  504. this.resultFmsMaterial7([]);
  505. this.resultWorkCommon8([]);
  506. this.resultFmsMaterial8([]);
  507. }
  508. }
  509. }
  510. });
  511. })();