SMLPS00500_진단별통계.xfdl 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMLPS00500" position="absolute 0 0 1199 769" titletext="진단별통계" oninit="SMLPS00500_oninit" onload="SMLPS00500_onload">
  5. <Layouts>
  6. <Layout>
  7. <Button id="button13" taborder="1" text="EXCEL저장" class="btn7" position="absolute 1103 68 1195 90" anchor="top right" onclick="button13_onclick"/>
  8. <Static id="caption6" text="진단별통계" class="tit_1" position="absolute 0 0 100 25" anchor="left top"/>
  9. <Static id="caption4" text="진단목록" class="tit_2" position="absolute 1 91 76 108" anchor="left top"/>
  10. <Shape id="line1" linetype="horizontal" class="line_1" position="absolute 1 107 1195 113" style="strokepen:3 solid #33bbbbff;" anchor="left top right"/>
  11. <Grid id="grd_statsinfolist" class="datagrid2" taborder="2" binddataset="ds_grd_statsinfolist" useinputpanel="false" position="absolute 1 111 1195 764" autofittype="col" anchor="all">
  12. <Formats>
  13. <Format id="default">
  14. <Columns>
  15. <Column size="0"/>
  16. <Column size="26"/>
  17. <Column size="144"/>
  18. <Column size="32"/>
  19. <Column size="32"/>
  20. <Column size="32"/>
  21. <Column size="32"/>
  22. <Column size="32"/>
  23. <Column size="32"/>
  24. <Column size="32"/>
  25. <Column size="32"/>
  26. <Column size="32"/>
  27. <Column size="32"/>
  28. <Column size="32"/>
  29. <Column size="32"/>
  30. <Column size="32"/>
  31. <Column size="32"/>
  32. <Column size="32"/>
  33. <Column size="32"/>
  34. <Column size="32"/>
  35. <Column size="32"/>
  36. <Column size="32"/>
  37. <Column size="32"/>
  38. <Column size="32"/>
  39. <Column size="32"/>
  40. <Column size="32"/>
  41. <Column size="32"/>
  42. <Column size="32"/>
  43. <Column size="32"/>
  44. <Column size="32"/>
  45. <Column size="32"/>
  46. <Column size="32"/>
  47. <Column size="32"/>
  48. <Column size="32"/>
  49. <Column size="32"/>
  50. </Columns>
  51. <Rows>
  52. <Row size="26" band="head"/>
  53. <Row size="24"/>
  54. </Rows>
  55. <Band id="head">
  56. <Cell text="기관코드"/>
  57. <Cell col="1"/>
  58. <Cell col="2" text="진단명"/>
  59. <Cell col="3" text="01"/>
  60. <Cell col="4" text="02"/>
  61. <Cell col="5" text="03"/>
  62. <Cell col="6" text="04"/>
  63. <Cell col="7" text="05"/>
  64. <Cell col="8" text="06"/>
  65. <Cell col="9" text="07"/>
  66. <Cell col="10" text="08"/>
  67. <Cell col="11" text="09"/>
  68. <Cell col="12" text="10"/>
  69. <Cell col="13" text="11"/>
  70. <Cell col="14" text="12"/>
  71. <Cell col="15" text="13"/>
  72. <Cell col="16" text="14"/>
  73. <Cell col="17" text="15"/>
  74. <Cell col="18" text="16"/>
  75. <Cell col="19" text="17"/>
  76. <Cell col="20" text="18"/>
  77. <Cell col="21" text="19"/>
  78. <Cell col="22" text="20"/>
  79. <Cell col="23" text="21"/>
  80. <Cell col="24" text="22"/>
  81. <Cell col="25" text="23"/>
  82. <Cell col="26" text="24"/>
  83. <Cell col="27" text="25"/>
  84. <Cell col="28" text="26"/>
  85. <Cell col="29" text="27"/>
  86. <Cell col="30" text="28"/>
  87. <Cell col="31" text="29"/>
  88. <Cell col="32" text="30"/>
  89. <Cell col="33" text="31"/>
  90. <Cell col="34" text="총&#10;건수"/>
  91. </Band>
  92. <Band id="body">
  93. <Cell text="bind:instcd"/>
  94. <Cell col="1" text="expr:currow + 1"/>
  95. <Cell col="2" style="align:left middle;" text="bind:diagcnts"/>
  96. <Cell col="3" class="text_right" text="bind:day01"/>
  97. <Cell col="4" class="text_right" text="bind:day02"/>
  98. <Cell col="5" class="text_right" text="bind:day03"/>
  99. <Cell col="6" class="text_right" text="bind:day04"/>
  100. <Cell col="7" class="text_right" text="bind:day05"/>
  101. <Cell col="8" class="text_right" text="bind:day06"/>
  102. <Cell col="9" class="text_right" text="bind:day07"/>
  103. <Cell col="10" class="text_right" text="bind:day08"/>
  104. <Cell col="11" class="text_right" text="bind:day09"/>
  105. <Cell col="12" class="text_right" text="bind:day10"/>
  106. <Cell col="13" class="text_right" text="bind:day11"/>
  107. <Cell col="14" class="text_right" text="bind:day12"/>
  108. <Cell col="15" class="text_right" text="bind:day13"/>
  109. <Cell col="16" class="text_right" text="bind:day14"/>
  110. <Cell col="17" class="text_right" text="bind:day15"/>
  111. <Cell col="18" class="text_right" text="bind:day16"/>
  112. <Cell col="19" class="text_right" text="bind:day17"/>
  113. <Cell col="20" class="text_right" text="bind:day18"/>
  114. <Cell col="21" class="text_right" text="bind:day19"/>
  115. <Cell col="22" class="text_right" text="bind:day20"/>
  116. <Cell col="23" class="text_right" text="bind:day21"/>
  117. <Cell col="24" class="text_right" text="bind:day22"/>
  118. <Cell col="25" class="text_right" text="bind:day23"/>
  119. <Cell col="26" class="text_right" text="bind:day24"/>
  120. <Cell col="27" class="text_right" text="bind:day25"/>
  121. <Cell col="28" class="text_right" text="bind:day26"/>
  122. <Cell col="29" class="text_right" text="bind:day27"/>
  123. <Cell col="30" class="text_right" text="bind:day28"/>
  124. <Cell col="31" class="text_right" text="bind:day29"/>
  125. <Cell col="32" class="text_right" text="bind:day30"/>
  126. <Cell col="33" class="text_right" text="bind:day31"/>
  127. <Cell col="34" class="text_right" text="bind:daytot"/>
  128. </Band>
  129. </Format>
  130. </Formats>
  131. </Grid>
  132. <Div id="grp_sea" taborder="3" position="absolute 0 25 1195 60" class="div_SA" anchor="left top right">
  133. <Layouts>
  134. <Layout>
  135. <Shape id="line13" linetype="vertical" class="line_4" position="absolute 1105 7 1111 29" anchor="top right"/>
  136. <Static id="caption2" text="진단일자 :" class="search_name" position="absolute 15 9 101 26" anchor="left top"/>
  137. <Static id="caption5" text="~" class="search_no_b" position="absolute 207 8 219 25" anchor="left top"/>
  138. <Button id="btn_sea" taborder="4" text="조회" class="btn1" position="absolute 1123 7 1179 29" anchor="top right" onclick="grp_sea_btn_sea_onclick"/>
  139. <Calendar id="ipt_cnclfromdd" taborder="5" class="input_s_essential" position="absolute 104 8 204 27" mask="yyyy-mm-dd" anchor="left top"/>
  140. <Calendar id="ipt_cncltodd" taborder="6" class="input_s_essential" position="absolute 223 8 323 27" mask="yyyy-mm-dd" anchor="left top" onkeyup="grp_sea_ipt_cncltodd_onkeyup"/>
  141. <Static id="caption1" text="검색방법 :" class="search_name" position="absolute 932 9 1018 26" anchor="top right"/>
  142. <Combo id="cbo_refmthdcd" taborder="7" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 1023 8 1093 27" anchor="top right" onitemchanged="grp_sea_cbo_refmthdcd_onitemchanged">
  143. <Dataset id="innerdataset">
  144. <ColumnInfo>
  145. <Column id="codecolumn"/>
  146. <Column id="datacolumn"/>
  147. </ColumnInfo>
  148. <Rows>
  149. <Row>
  150. <Col id="codecolumn">0</Col>
  151. <Col id="datacolumn">일별</Col>
  152. </Row>
  153. <Row>
  154. <Col id="codecolumn">1</Col>
  155. <Col id="datacolumn">월별</Col>
  156. </Row>
  157. <Row>
  158. <Col id="codecolumn">2</Col>
  159. <Col id="datacolumn">년별</Col>
  160. </Row>
  161. </Rows>
  162. </Dataset>
  163. </Combo>
  164. </Layout>
  165. </Layouts>
  166. </Div>
  167. </Layout>
  168. </Layouts>
  169. <Objects>
  170. <Dataset id="ds_grd_statsinfolist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  171. <ColumnInfo>
  172. <Column id="instcd" type="STRING"/>
  173. <Column id="diagcnts" type="STRING"/>
  174. <Column id="day01" type="STRING"/>
  175. <Column id="day02" type="STRING"/>
  176. <Column id="day03" type="STRING"/>
  177. <Column id="day04" type="STRING"/>
  178. <Column id="day05" type="STRING"/>
  179. <Column id="day06" type="STRING"/>
  180. <Column id="day07" type="STRING"/>
  181. <Column id="day08" type="STRING"/>
  182. <Column id="day09" type="STRING"/>
  183. <Column id="day10" type="STRING"/>
  184. <Column id="day11" type="STRING"/>
  185. <Column id="day12" type="STRING"/>
  186. <Column id="day13" type="STRING"/>
  187. <Column id="day14" type="STRING"/>
  188. <Column id="day15" type="STRING"/>
  189. <Column id="day16" type="STRING"/>
  190. <Column id="day17" type="STRING"/>
  191. <Column id="day18" type="STRING"/>
  192. <Column id="day19" type="STRING"/>
  193. <Column id="day20" type="STRING"/>
  194. <Column id="day21" type="STRING"/>
  195. <Column id="day22" type="STRING"/>
  196. <Column id="day23" type="STRING"/>
  197. <Column id="day24" type="STRING"/>
  198. <Column id="day25" type="STRING"/>
  199. <Column id="day26" type="STRING"/>
  200. <Column id="day27" type="STRING"/>
  201. <Column id="day28" type="STRING"/>
  202. <Column id="day29" type="STRING"/>
  203. <Column id="day30" type="STRING"/>
  204. <Column id="day31" type="STRING"/>
  205. <Column id="daytot" type="STRING"/>
  206. </ColumnInfo>
  207. </Dataset>
  208. <Dataset id="ds_data_sysdtinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  209. <ColumnInfo>
  210. <Column id="sysdd" type="STRING" size="256"/>
  211. <Column id="systm" type="STRING" size="256"/>
  212. </ColumnInfo>
  213. </Dataset>
  214. <Dataset id="ds_init_sysdt" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  215. <ColumnInfo>
  216. <Column id="sysdd" type="STRING" size="256"/>
  217. <Column id="systm" type="STRING" size="256"/>
  218. </ColumnInfo>
  219. <Rows>
  220. <Row/>
  221. </Rows>
  222. </Dataset>
  223. <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  224. <ColumnInfo>
  225. <Column id="seaval" type="STRING" size="256"/>
  226. <Column id="readfromdd" type="STRING" size="256"/>
  227. <Column id="readtodd" type="STRING" size="256"/>
  228. <Column id="refmthdcd" type="STRING" size="256"/>
  229. </ColumnInfo>
  230. <Rows>
  231. <Row>
  232. <Col id="refmthdcd">0</Col>
  233. </Row>
  234. </Rows>
  235. </Dataset>
  236. </Objects>
  237. <Bind>
  238. <BindItem id="item0" compid="grp_sea.ipt_cnclfromdd" propid="value" datasetid="ds_hidden" columnid="readfromdd"/>
  239. <BindItem id="item1" compid="grp_sea.ipt_cncltodd" propid="value" datasetid="ds_hidden" columnid="readtodd"/>
  240. <BindItem id="item2" compid="grp_sea.cbo_refmthdcd" propid="value" datasetid="ds_hidden" columnid="refmthdcd"/>
  241. </Bind>
  242. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  243. * System Name :
  244. * Job Name :
  245. * Creator :
  246. * Make Date : 2015-11-13
  247. * Description :
  248. *---------------------------------------------------------------------------------------
  249. * Modify Date Modifier Modify Description
  250. *---------------------------------------------------------------------------------------
  251. * 2015-11-13 Live Converter TF->XP
  252. *
  253. *---------------------------------------------------------------------------------------
  254. ****************************************************************************************/
  255. include "com_commonxp::comm_main.xjs";
  256. function SMLPS00500_oninit(obj:Form, e:InitEventInfo)
  257. {
  258. frmf_initForm(obj);
  259. }
  260. function SMLPS00500_onload(obj:Form, e:LoadEventInfo)
  261. {
  262. grdf_initGrid(grd_statsinfolist);
  263. fExeInitialize();
  264. }
  265. function fExeInitialize()
  266. {
  267. dsf_createDsRow("ds_send", [{col: "instcd", val: sysf_getUserInfo("dutplceinstcd")}]);
  268. var oParam = {};
  269. oParam.id = "TRLPZ00102";
  270. oParam.service = "plgycomnusemngtapp.BaseInfoCode";
  271. oParam.method = "reqGetSystemDateTimeInformation";
  272. oParam.inds = "refData=ds_send";
  273. oParam.outds = "ds_data_sysdtinfo=sysdtinfo";
  274. oParam.async = false;
  275. //oParam.callback = "cf_TRLPZ00102";
  276. tranf_submit(oParam);
  277. //------------
  278. // 초기값 설정
  279. // model.makeValue("/root/hidden/seaval", ""); // 검색값
  280. // model.makeValue("/root/hidden/readfromdd", model.getValue("/root/init/sysdt/sysdtinfo/sysdd")); // 진단일자(From)
  281. // model.makeValue("/root/hidden/readtodd", model.getValue("/root/init/sysdt/sysdtinfo/sysdd")); // 진단일자(To)
  282. // model.makeValue("/root/hidden/refmthdcd", "0"); // 검색방법(일별)
  283. ds_hidden.setColumn(0, "seaval", ""); // 검색값
  284. ds_hidden.setColumn(0, "readfromdd", utlf_getCurrentDate()); // 접수일자(From)
  285. ds_hidden.setColumn(0, "readtodd", utlf_getCurrentDate()); // 접수일자(To)
  286. ds_hidden.setColumn(0, "refmthdcd", "0"); // 검색방법(일별)
  287. fExeRadioChange();
  288. }
  289. function fExeRadioChange()
  290. {
  291. for(var i = 14; i <= 34; i++)
  292. {
  293. grd_statsinfolist.setFormatColProperty(i, "size", 31);
  294. }
  295. var iFromNo = 0;
  296. var iToNo = 0;
  297. var iWidth = 0;
  298. var bState = false;
  299. var k = 0;
  300. var iYear = 0;
  301. var sFromDD = grp_sea.ipt_cnclfromdd.value;
  302. sFromDD_d = sFromDD.toFormatString("%Y%m%d");
  303. var sToDD = grp_sea.ipt_cnclfromdd.value;
  304. sToDD_d = sToDD.toFormatString("%Y%m%d");
  305. if(grp_sea.cbo_refmthdcd.value == "0")
  306. {
  307. iFromNo = 5;
  308. iToNo = ds_grd_statsinfolist.colcount;
  309. iWidth = 31;
  310. bState = false;
  311. sText = "구분코드^검사코드^검사실^검사항목^01^02^03^04^05^06^07^08^09^10^11^12^13^14^15^16^17^18^19^20^21^22^23^24^25^26^27^28^29^30^31^총\n건수";
  312. for(var i = 1; i <= 31; i++)
  313. {
  314. grd_statsinfolist.setCellProperty("head", 2+i, "text", i);
  315. }
  316. }
  317. else if(grp_sea.cbo_refmthdcd.value == "1")
  318. {
  319. iFromNo = 17;
  320. iToNo = 35;
  321. iWidth = 75;
  322. bState = true;
  323. sText = "구분코드^검사코드^검사실^검사항목^01^02^03^04^05^06^07^08^09^10^11^12^13^14^15^16^17^18^19^20^21^22^23^24^25^26^27^28^29^30^31^총\n건수";
  324. for(var i = 1; i <= 31; i++)
  325. {
  326. grd_statsinfolist.setCellProperty("head", 2+i, "text", i);
  327. if(i > 12)
  328. {
  329. grd_statsinfolist.setFormatColProperty(2+i, "size", 0);
  330. }
  331. }
  332. }
  333. else
  334. {
  335. iFromNo = 25;
  336. iToNo = 35;
  337. iWidth = 47;
  338. bState = true;
  339. for (var iNo = toNumber(sFromDD_d.substr(0,4)); iNo <= toNumber(sFromDD_d.substr(0,4)) + 20; iNo++)
  340. {
  341. grd_statsinfolist.setCellProperty("head", 3+k, "text", iNo);
  342. k++;
  343. }
  344. for(var j = 22; j <= 33; j++)
  345. {
  346. grd_statsinfolist.setFormatColProperty(j, "size", 0);
  347. }
  348. }
  349. ds_grd_statsinfolist.clearData();
  350. }
  351. //조회
  352. function fGetStatsInfoList()
  353. {
  354. // model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
  355. // model.makeValue("/root/send/readfromdd", model.getValue("/root/hidden/readfromdd"));
  356. // model.makeValue("/root/send/readtodd", model.getValue("/root/hidden/readtodd"));
  357. // model.makeValue("/root/send/refmthdcd", model.getValue("/root/hidden/refmthdcd"));
  358. dsf_createDsRow("ds_send", [{col: "instcd", val : sysf_getUserInfo("dutplceinstcd")}
  359. ,{col: "readfromdd", val : ds_hidden.getColumn(0, "readfromdd")}
  360. ,{col: "readtodd", val : ds_hidden.getColumn(0, "readtodd")}
  361. ,{col: "refmthdcd", val : ds_hidden.getColumn(0, "refmthdcd")}]);
  362. //submit("TRLPS00501");
  363. var oParam = {};
  364. oParam.id = "TRLPS00501";
  365. oParam.service = "plgystatsmngtapp.StatsMngtRef";
  366. oParam.method = "reqGetDiagStats";
  367. oParam.inds = "refData=ds_send";
  368. oParam.outds = "ds_grd_statsinfolist=reflist";
  369. oParam.async = false;
  370. //oParam.callback = "cf_TRLPS00501";
  371. tranf_submit(oParam);
  372. }
  373. function grp_sea_cbo_refmthdcd_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  374. {
  375. fExeRadioChange();
  376. }
  377. //조회
  378. function grp_sea_btn_sea_onclick(obj:Button, e:ClickEventInfo)
  379. {
  380. fGetStatsInfoList();
  381. }
  382. function grp_sea_ipt_cncltodd_onkeyup(obj:Calendar, e:KeyEventInfo)
  383. {
  384. if(e.keycode == 13)
  385. {
  386. fGetStatsInfoList();
  387. }
  388. }
  389. function button13_onclick(obj:Button, e:ClickEventInfo)
  390. {
  391. grdf_exportExcel(grd_statsinfolist, "", "sheet1", false);
  392. }
  393. ]]></Script>
  394. </Form>
  395. </FDL>