SMLPS01500_세포진단비율.xfdl 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMLPS01500" position="absolute 0 0 1197 761" titletext="세포 진단비율 통계" oninit="SMLPS01500_oninit" onload="SMLPS01500_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption6" text="세포 진단비율" class="tit_1" position="absolute 0 0 116 25" anchor="left top"/>
  8. <Button id="button13" taborder="1" text="EXCEL저장" class="btn7" position="absolute 1103 66 1195 88" onclick="button13_onclick" anchor="top right"/>
  9. <Static id="caption4" text="접수검사목록" class="tit_2" position="absolute 1 84 102 100" anchor="left top"/>
  10. <Shape id="line1" linetype="horizontal" class="line_1" position="absolute 0 100 1194 106" 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 0 104 1194 757" autofittype="col" autosizingtype="none" cellsizingtype="none" anchor="all">
  12. <Formats>
  13. <Format id="default">
  14. <Columns>
  15. <Column size="0"/>
  16. <Column size="32"/>
  17. <Column size="447"/>
  18. <Column size="100"/>
  19. <Column size="120"/>
  20. <Column size="120"/>
  21. <Column size="120"/>
  22. <Column size="120"/>
  23. <Column size="120"/>
  24. <Column size="0"/>
  25. <Column size="100"/>
  26. </Columns>
  27. <Rows>
  28. <Row size="24" band="head"/>
  29. <Row size="24"/>
  30. <Row size="24" band="summ"/>
  31. </Rows>
  32. <Band id="head">
  33. <Cell text="기관코드"/>
  34. <Cell col="1"/>
  35. <Cell col="2" text="진단명"/>
  36. <Cell col="3" text="진단명"/>
  37. <Cell col="4" text="Unsatisfactory for &#10;evaluation" wordwrap="char" autosizerow="limitmin"/>
  38. <Cell col="5" text="Negative(Benign)"/>
  39. <Cell col="6" text="Atypical cells"/>
  40. <Cell col="7" text="Malignant&#10;Neoplasm"/>
  41. <Cell col="8" text="Others"/>
  42. <Cell col="9" text="총건수"/>
  43. <Cell col="10" text="비율"/>
  44. </Band>
  45. <Band id="body">
  46. <Cell text="bind:instcd"/>
  47. <Cell col="1" text="expr:currow+1"/>
  48. <Cell col="2" class="text_center" text="bind:diagmain"/>
  49. <Cell col="3" class="text_center" text="bind:diagnm"/>
  50. <Cell col="4" class="text_right" text="bind:diagcnt1"/>
  51. <Cell col="5" class="text_right" text="bind:diagcnt2"/>
  52. <Cell col="6" class="text_right" text="bind:diagcnt3"/>
  53. <Cell col="7" class="text_right" text="bind:diagcnt4"/>
  54. <Cell col="8" class="text_right" text="bind:diagcnt5"/>
  55. <Cell col="9" class="text_right" text="bind:diagtotal"/>
  56. <Cell col="10" class="text_right" text="bind:diagrate"/>
  57. </Band>
  58. <Band id="summary">
  59. <Cell/>
  60. <Cell col="1"/>
  61. <Cell col="2" text="Total"/>
  62. <Cell col="3" text="Total"/>
  63. <Cell col="4" text="expr:getSum('diagcnt1')"/>
  64. <Cell col="5" text="expr:getSum('diagcnt2')"/>
  65. <Cell col="6" text="expr:getSum('diagcnt3')"/>
  66. <Cell col="7" text="expr:getSum('diagcnt4')"/>
  67. <Cell col="8" text="expr:getSum('diagcnt5')"/>
  68. <Cell col="9"/>
  69. <Cell col="10" text="expr:getSum('diagcnt6')"/>
  70. </Band>
  71. </Format>
  72. </Formats>
  73. </Grid>
  74. <Div id="grp_sea" taborder="3" position="absolute 0 25 1195 60" class="div_SA" anchor="left top right">
  75. <Layouts>
  76. <Layout>
  77. <Shape id="line13" linetype="vertical" class="line_4" position="absolute 1105 7 1111 29" anchor="top right"/>
  78. <Static id="caption2" text="진단일자 :" class="search_name" position="absolute 15 9 87 26" anchor="left top"/>
  79. <Static id="caption5" text="~" class="search_no_b" position="absolute 198 11 210 28" anchor="left top"/>
  80. <Button id="btn_sea" taborder="6" text="조회" class="btn1" position="absolute 1123 7 1179 29" anchor="top right" onclick="grp_sea_btn_sea_onclick"/>
  81. <Calendar id="ipt_cnclfromdd" taborder="7" class="input_s_essential" position="absolute 92 8 192 27" mask="yyyy-mm-dd" anchor="left top"/>
  82. <Calendar id="ipt_cncltodd" taborder="8" class="input_s_essential" position="absolute 216 8 316 27" mask="yyyy-mm-dd" anchor="left top" onkeyup="grp_sea_ipt_cncltodd_onkeyup"/>
  83. <Static id="caption8" text="통계구분 :" class="search_name" visible="false" position="absolute 441 9 515 27" anchor="left top"/>
  84. <Combo id="cbo_statsflagcd" taborder="9" innerdataset="ds_init_cbo_statsflagcd" codecolumn="resncd" datacolumn="resncnts" visible="false" position="absolute 530 8 678 27" anchor="left top"/>
  85. <Static id="caption1" text="진단구분 :" class="search_name" position="absolute 906 10 984 27" anchor="top right"/>
  86. <Combo id="combo1" taborder="10" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 995 8 1095 27" anchor="top right" onitemchanged="grp_sea_combo1_onitemchanged">
  87. <Dataset id="innerdataset">
  88. <ColumnInfo>
  89. <Column id="codecolumn"/>
  90. <Column id="datacolumn"/>
  91. </ColumnInfo>
  92. <Rows>
  93. <Row>
  94. <Col id="codecolumn">0</Col>
  95. <Col id="datacolumn">부인과</Col>
  96. </Row>
  97. <Row>
  98. <Col id="codecolumn">1</Col>
  99. <Col id="datacolumn">비부인과</Col>
  100. </Row>
  101. </Rows>
  102. </Dataset>
  103. </Combo>
  104. </Layout>
  105. </Layouts>
  106. </Div>
  107. </Layout>
  108. </Layouts>
  109. <Objects>
  110. <Dataset id="ds_grd_statsinfolist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  111. <ColumnInfo>
  112. <Column id="instcd" type="STRING"/>
  113. <Column id="diagmain" type="STRING"/>
  114. <Column id="diagnm" type="STRING"/>
  115. <Column id="diagcnt1" type="STRING"/>
  116. <Column id="diagcnt2" type="STRING"/>
  117. <Column id="diagcnt3" type="STRING"/>
  118. <Column id="diagcnt4" type="STRING"/>
  119. <Column id="diagcnt5" type="STRING"/>
  120. <Column id="diagtotal" type="STRING"/>
  121. <Column id="diagrate" type="STRING"/>
  122. </ColumnInfo>
  123. </Dataset>
  124. <Dataset id="ds_init_cbo_statsflagcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  125. <ColumnInfo>
  126. <Column id="resncnts" type="STRING"/>
  127. <Column id="resncd" type="STRING"/>
  128. </ColumnInfo>
  129. </Dataset>
  130. <Dataset id="ds_resncd_resncdlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  131. <ColumnInfo>
  132. <Column id="instcd" type="STRING" size="256"/>
  133. <Column id="baseflagcd" type="STRING" size="256"/>
  134. <Column id="resncd" type="STRING" size="256"/>
  135. <Column id="resncnts" type="STRING" size="256"/>
  136. </ColumnInfo>
  137. <Rows>
  138. <Row/>
  139. </Rows>
  140. </Dataset>
  141. <Dataset id="ds_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  142. <ColumnInfo>
  143. <Column id="sysdt" type="STRING" size="256"/>
  144. <Column id="resncd" type="STRING" size="256"/>
  145. <Column id="statsfromdd" type="STRING" size="256"/>
  146. <Column id="statstodd" type="STRING" size="256"/>
  147. <Column id="statsworkflagcd" type="STRING" size="256"/>
  148. <Column id="diagflagcd" type="STRING" size="256"/>
  149. </ColumnInfo>
  150. <Rows>
  151. <Row/>
  152. </Rows>
  153. </Dataset>
  154. </Objects>
  155. <Bind>
  156. <BindItem id="item0" compid="grp_sea.ipt_cnclfromdd" propid="value" datasetid="ds_init" columnid="statsfromdd"/>
  157. <BindItem id="item1" compid="grp_sea.ipt_cncltodd" propid="value" datasetid="ds_init" columnid="statstodd"/>
  158. <BindItem id="item2" compid="grp_sea.combo1" propid="value" datasetid="ds_init" columnid="diagflagcd"/>
  159. </Bind>
  160. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  161. * System Name :
  162. * Job Name :
  163. * Creator :
  164. * Make Date : 2015-11-13
  165. * Description :
  166. *---------------------------------------------------------------------------------------
  167. * Modify Date Modifier Modify Description
  168. *---------------------------------------------------------------------------------------
  169. * 2015-11-13 Live Converter TF->XP
  170. *
  171. *---------------------------------------------------------------------------------------
  172. ****************************************************************************************/
  173. include "com_commonxp::comm_main.xjs";
  174. function SMLPS01500_oninit(obj:Form, e:InitEventInfo)
  175. {
  176. frmf_initForm(obj);
  177. }
  178. function SMLPS01500_onload(obj:Form, e:LoadEventInfo)
  179. {
  180. grdf_initGrid(grd_statsinfolist);
  181. fExeInitialize();
  182. }
  183. function fExeInitialize()
  184. {
  185. dsf_createDsRow("ds_send", [{col: "instcd", val: sysf_getUserInfo("dutplceinstcd")}]);
  186. var oParam = {};
  187. oParam.id = "TRLPZ00102";
  188. oParam.service = "plgycomnusemngtapp.BaseInfoCode";
  189. oParam.method = "reqGetSystemDateTimeInformation";
  190. oParam.inds = "refData=ds_send";
  191. oParam.outds = "ds_data_sysdtinfo=sysdtinfo";
  192. oParam.async = false;
  193. //oParam.callback = "cf_TRLPZ00102";
  194. tranf_submit(oParam);
  195. dsf_createDsRow("ds_send", [{col: "baseflagcd", val: "84"}]);
  196. var oParam = {};
  197. oParam.id = "TRLPZ00103";
  198. oParam.service = "plgycomnusemngtapp.BaseInfoCode";
  199. oParam.method = "reqGetReasonCodeList";
  200. oParam.inds = "refData=ds_send";
  201. oParam.outds = "ds_resncd_resncdlist=refrslt";
  202. oParam.async = false;
  203. //oParam.callback = "cf_TRLPZ00103";
  204. tranf_submit(oParam);
  205. ds_init.setColumn(0, "statsfromdd", utlf_getCurrentDate());
  206. ds_init.setColumn(0, "statstodd", utlf_getCurrentDate());
  207. ds_init.setColumn(0, "statsworkflagcd", "0101");
  208. ds_init.setColumn(0, "diagflagcd", "0");
  209. fExeDiagFlagChange();
  210. }
  211. function fExeDiagFlagChange()
  212. {
  213. if(ds_init.getColumn(0, "diagflagcd") == "0")
  214. {
  215. grd_statsinfolist.setCellProperty("head", 2, "text", "진단명");
  216. grd_statsinfolist.setFormatColProperty(3, "size", 450);
  217. grd_statsinfolist.setCellProperty("head", 3, "text", "진단명");
  218. grd_statsinfolist.setCellProperty("head", 4, "text", "총건수");
  219. grd_statsinfolist.setCellProperty("head", 10, "text", "비율");
  220. for(i = 5; i <= 9; i++)
  221. {
  222. grd_statsinfolist.setFormatColProperty(i, "size", 0);
  223. }
  224. }
  225. else
  226. {
  227. grd_statsinfolist.setFormatColProperty(2, "size", 400);
  228. grd_statsinfolist.setFormatColProperty(10, "size", 100);
  229. for(i = 4; i <= 8; i++)
  230. {
  231. grd_statsinfolist.setFormatColProperty(i, "size", 120);
  232. grd_statsinfolist.setCellProperty("head", 4, "text", "Unsatisfactory for evaluation");
  233. }
  234. grd_statsinfolist.setFormatColProperty(3, "size", 0);
  235. grd_statsinfolist.setFormatColProperty(9, "size", 0);
  236. }
  237. }
  238. //조회
  239. function fGetStatsInfoList()
  240. {
  241. dsf_createDsRow("ds_send", [{col: "instcd", val : sysf_getUserInfo("dutplceinstcd")}
  242. ,{col: "statsfromdd", val : ds_init.getColumn(0, "statsfromdd")}
  243. ,{col: "statstodd", val : ds_init.getColumn(0, "statstodd")}
  244. ,{col: "diagflagcd", val : ds_init.getColumn(0, "diagflagcd")}]);
  245. //-------------------
  246. //submit("TRLPS01501");
  247. var oParam = {};
  248. oParam.id = "TRLPS01501";
  249. oParam.service = "plgystatsmngtapp.StatsMngtRef";
  250. oParam.method = "reqGetCellDiagStats";
  251. oParam.inds = "refData=ds_send";
  252. oParam.outds = "ds_grd_statsinfolist=reflist";
  253. oParam.async = false;
  254. //oParam.callback = "cf_TRLPS01501";
  255. tranf_submit(oParam);
  256. }
  257. function grp_sea_combo1_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  258. {
  259. fExeDiagFlagChange();
  260. }
  261. //조회
  262. function grp_sea_btn_sea_onclick(obj:Button, e:ClickEventInfo)
  263. {
  264. fGetStatsInfoList();
  265. }
  266. function grp_sea_ipt_cncltodd_onkeyup(obj:Calendar, e:KeyEventInfo)
  267. {
  268. if(e.keycode == 13)
  269. {
  270. fGetStatsInfoList();
  271. }
  272. }
  273. //엑셀저장
  274. function button13_onclick(obj:Button, e:ClickEventInfo)
  275. {
  276. grdf_exportExcel(grd_statsinfolist, "세포 진단 비율통계", "sheet1", false);
  277. }
  278. ]]></Script>
  279. </Form>
  280. </FDL>