SMLQP00600_혈당기QC월별현황.xfdl 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMLQP00600" position="absolute 0 0 1199 786" titletext="혈당기 QC 월별 현황 조회" oninit="SMLQP00600_oninit" onload="SMLQP00600_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption14" text="혈당기 QC 월별 현황 조회" class="tit_1" position="absolute 0 0 264 23"/>
  8. <Button id="button11" taborder="1" text="출력" class="btn6" position="absolute 0 24 56 46" onclick="button11_onclick"/>
  9. <Shape id="line7" linetype="horizontal" class="line_2" position="absolute 0 45 1194 51" anchor="left top right"/>
  10. <Button id="button1" taborder="2" text="저장" class="btn4" position="absolute 1068 24 1124 46" anchor="top right" onclick="button1_onclick"/>
  11. <Button id="button5" taborder="3" text="초기화" class="btn4" position="absolute 1127 24 1195 46" anchor="top right" onclick="button5_onclick"/>
  12. <Static id="caption13" text="혈당기기 사용 현황" class="tit_2" position="absolute 0 95 154 116" anchor="left top"/>
  13. <Shape id="line6" class="line_10" position="absolute 0 111 1193 117" anchor="left top right"/>
  14. <Shape id="line1" linetype="vertical" class="line_3" position="absolute 0 170 1193 176"/>
  15. <Shape id="line2" class="line_10" position="absolute 0 197 1193 203" anchor="left top right"/>
  16. <Static id="caption1" text="혈당기기 정도관리 시행 현황" class="tit_2" position="absolute 0 181 235 202" anchor="left top"/>
  17. <Div id="group1" taborder="4" class="div_SA" position="absolute 0 50 1195 90" anchor="left top right">
  18. <Layouts>
  19. <Layout>
  20. <Button id="button3" taborder="5" text="조회" class="btn1" position="absolute 1124 10 1180 32" anchor="top right" onclick="group1_button3_onclick"/>
  21. <Shape id="line3" linetype="vertical" class="line_4" position="absolute 1106 10 1112 32" anchor="top right"/>
  22. <Static id="caption5" text="조회 구분 :" class="search_name" position="absolute 15 11 106 28"/>
  23. <Calendar id="input3" taborder="6" autoselect="true" autoskip="true" dateformat="yyyy-MM" class="input_search" position="absolute 108 10 193 29" mask="yyyy-mm" value="null" editformat="yyyy-MM" onchanged="group1_input3_onchanged"/>
  24. </Layout>
  25. </Layouts>
  26. </Div>
  27. <Grid id="datagrid1" class="datagrid2" taborder="5" useinputpanel="false" cellsizingtype="col" autofittype="col" position="absolute 0 202 1193 295" anchor="left top right" binddataset="ds_main_qclist">
  28. <Formats>
  29. <Format id="default">
  30. <Columns>
  31. <Column size="123"/>
  32. <Column size="80"/>
  33. <Column size="95"/>
  34. <Column size="124"/>
  35. <Column size="117"/>
  36. <Column size="105"/>
  37. <Column size="107"/>
  38. <Column size="77"/>
  39. <Column size="88"/>
  40. <Column size="92"/>
  41. <Column size="116"/>
  42. </Columns>
  43. <Rows>
  44. <Row size="24" band="head"/>
  45. <Row size="24" band="head"/>
  46. <Row size="24"/>
  47. <Row size="24"/>
  48. </Rows>
  49. <Band id="head">
  50. <Cell rowspan="2" text="월 정도관리 현황" taborder="undefined"/>
  51. <Cell col="1" rowspan="2" text="측정 기기" taborder="undefined"/>
  52. <Cell col="2" rowspan="2" text="High Control" taborder="undefined"/>
  53. <Cell col="3" rowspan="2" text="범위내 Data" taborder="undefined"/>
  54. <Cell col="4" colspan="2" text="범위를벗어난 Data" taborder="undefined"/>
  55. <Cell col="6" rowspan="2" text="Low Control" taborder="undefined"/>
  56. <Cell col="7" rowspan="2" text="범위내 Data" taborder="undefined"/>
  57. <Cell col="8" colspan="2" text="범위를 벗어난Data" taborder="undefined"/>
  58. <Cell col="10" rowspan="2" text="Result Flagged as&#13;&#10;Procedure Error" taborder="undefined"/>
  59. <Cell row="1" col="4" text="Above"/>
  60. <Cell row="1" col="5" text="Below"/>
  61. <Cell row="1" col="8" text="Above"/>
  62. <Cell row="1" col="9" text="Below"/>
  63. </Band>
  64. <Band id="body">
  65. <Cell text="bind:title2"/>
  66. <Cell col="1" text="bind:qcmetcnt"/>
  67. <Cell col="2" text="bind:highcnt"/>
  68. <Cell col="3" text="bind:hight"/>
  69. <Cell col="4" text="bind:highh"/>
  70. <Cell col="5" text="bind:highl"/>
  71. <Cell col="6" text="bind:lowcnt"/>
  72. <Cell col="7" text="bind:lowt"/>
  73. <Cell col="8" text="bind:lowh"/>
  74. <Cell col="9" text="bind:lowl"/>
  75. <Cell col="10" text="bind:errcnt"/>
  76. <Cell row="1" text="bind:title3"/>
  77. <Cell row="1" col="1" text="bind:qcmeterper"/>
  78. <Cell row="1" col="2" text="bind:highper"/>
  79. <Cell row="1" col="3" text="bind:hightper"/>
  80. <Cell row="1" col="4" text="bind:highhper"/>
  81. <Cell row="1" col="5" text="bind:highlper"/>
  82. <Cell row="1" col="6" text="bind:lowper"/>
  83. <Cell row="1" col="7" text="bind:lowtper"/>
  84. <Cell row="1" col="8" text="bind:lowhper"/>
  85. <Cell row="1" col="9" text="bind:lowlper"/>
  86. <Cell row="1" col="10" text="bind:errper"/>
  87. </Band>
  88. </Format>
  89. </Formats>
  90. </Grid>
  91. <Grid id="datagrid2" class="datagrid2" taborder="6" binddataset="ds_main_uselist" useinputpanel="false" cellsizingtype="col" autofittype="col" position="absolute 0 116 1193 176" anchor="left top right">
  92. <Formats>
  93. <Format id="default">
  94. <Columns>
  95. <Column size="175"/>
  96. <Column size="158"/>
  97. <Column size="164"/>
  98. <Column size="167"/>
  99. <Column size="175"/>
  100. <Column size="177"/>
  101. <Column size="174"/>
  102. </Columns>
  103. <Rows>
  104. <Row size="24" band="head"/>
  105. <Row size="24"/>
  106. </Rows>
  107. <Band id="head">
  108. <Cell text="월"/>
  109. <Cell col="1" text="측정기기 총 수량"/>
  110. <Cell col="2" text="총 Test 수"/>
  111. <Cell col="3" text="환자 검사 총 건수"/>
  112. <Cell col="4" text="환자 검사 / 총 건수(%)"/>
  113. <Cell col="5" text="정도관리 총 건수"/>
  114. <Cell col="6" text="정도관리 / 총건수(%)"/>
  115. </Band>
  116. <Band id="body">
  117. <Cell text="bind:title1"/>
  118. <Cell col="1" text="bind:metercnt"/>
  119. <Cell col="2" text="bind:totalcnt"/>
  120. <Cell col="3" text="bind:patcnt"/>
  121. <Cell col="4" text="bind:patper"/>
  122. <Cell col="5" text="bind:qccnt"/>
  123. <Cell col="6" text="bind:qcper"/>
  124. </Band>
  125. </Format>
  126. </Formats>
  127. </Grid>
  128. <Static id="caption2" text="병동별 정도관리 지침 오류 현황" class="tit_2" position="absolute 0 309 235 330" anchor="left top"/>
  129. <Button id="btn_addrow" taborder="7" text="행추가" class="btn2" position="absolute 1138 305 1191 324" anchor="top right" onclick="btn_addrow_onclick"/>
  130. <Shape id="line4" class="line_10" position="absolute 0 325 1193 331" anchor="left top right"/>
  131. <Grid id="datagrid3" class="datagrid" taborder="8" binddataset="ds_main_errlist" useinputpanel="false" cellsizingtype="col" autofittype="col" position="absolute 0 330 1193 615" anchor="all">
  132. <Formats>
  133. <Format id="default">
  134. <Columns>
  135. <Column size="250"/>
  136. <Column size="200"/>
  137. <Column size="540"/>
  138. <Column size="200"/>
  139. </Columns>
  140. <Rows>
  141. <Row size="24" band="head"/>
  142. <Row size="24"/>
  143. </Rows>
  144. <Band id="head">
  145. <Cell text="정도관리 지침 미시행 구분"/>
  146. <Cell col="1" text="해당 병동"/>
  147. <Cell col="2" text="미실행 내용(장비별)"/>
  148. <Cell col="3" text="UM 확인"/>
  149. </Band>
  150. <Band id="body">
  151. <Cell text="bind:flag" edittype="text" displaytype="text"/>
  152. <Cell col="1" text="bind:ward" edittype="text" displaytype="text"/>
  153. <Cell col="2" text="bind:info" edittype="text" displaytype="text"/>
  154. <Cell col="3" text="bind:um" edittype="text" displaytype="text"/>
  155. </Band>
  156. </Format>
  157. </Formats>
  158. </Grid>
  159. <Shape id="line5" linetype="horizontal" class="line_3" position="absolute 0 294 1194 300" anchor="left top right"/>
  160. <TextArea id="textarea1" taborder="9" position="absolute 95 618 1195 778" anchor="left right bottom" wordwrap="word"/>
  161. <Static id="caption3" text="요 청 사 항" position="absolute 0 618 94 778" anchor="left bottom" style="background:#99ccffff;align:center middle;font:Dotum,9,bold;"/>
  162. <Shape id="line8" linetype="horizontal" class="line_3" position="absolute 0 614 1194 620" anchor="left right bottom"/>
  163. <Shape id="line10" linetype="horizontal" class="line_3" position="absolute 0 777 1194 783" anchor="left right bottom"/>
  164. </Layout>
  165. </Layouts>
  166. <Objects>
  167. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  168. <ColumnInfo>
  169. <Column id="reqym" type="STRING" size="256"/>
  170. <Column id="descrslt" type="STRING" size="256"/>
  171. </ColumnInfo>
  172. <Rows>
  173. <Row>
  174. <Col id="reqym"/>
  175. <Col id="descrslt"/>
  176. </Row>
  177. </Rows>
  178. </Dataset>
  179. <Dataset id="ds_main_uselist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  180. <ColumnInfo>
  181. <Column id="title1" type="STRING" size="256" sumtext="혈당기기사용현황"/>
  182. <Column id="metercnt" type="STRING" size="256" sumtext="장비총수량"/>
  183. <Column id="totalcnt" type="STRING" size="256" sumtext="총검사건수"/>
  184. <Column id="patcnt" type="STRING" size="256" sumtext="환자검사건수"/>
  185. <Column id="patper" type="STRING" size="256" sumtext="환자퍼센트"/>
  186. <Column id="qccnt" type="STRING" size="256" sumtext="정도관리총건수"/>
  187. <Column id="qcper" type="STRING" size="256" sumtext="정도관리퍼센트"/>
  188. </ColumnInfo>
  189. </Dataset>
  190. <Dataset id="ds_main_qclist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  191. <ColumnInfo>
  192. <Column id="title2" type="STRING" size="256" sumtext="제목"/>
  193. <Column id="qcmetcnt" type="STRING" size="256" sumtext="층정기기건수"/>
  194. <Column id="highcnt" type="STRING" size="256" sumtext="-"/>
  195. <Column id="hight" type="STRING" size="256" sumtext="-"/>
  196. <Column id="highh" type="STRING" size="256" sumtext="-"/>
  197. <Column id="highl" type="STRING" size="256" sumtext="-"/>
  198. <Column id="lowcnt" type="STRING" size="256" sumtext="-"/>
  199. <Column id="lowt" type="STRING" size="256" sumtext="-"/>
  200. <Column id="lowh" type="STRING" size="256" sumtext="-"/>
  201. <Column id="lowl" type="STRING" size="256" sumtext="-"/>
  202. <Column id="errcnt" type="STRING" size="256" sumtext="-"/>
  203. <Column id="title3" type="STRING" size="256" sumtext="-"/>
  204. <Column id="qcmeterper" type="STRING" size="256" sumtext="-"/>
  205. <Column id="highper" type="STRING" size="256" sumtext="-"/>
  206. <Column id="hightper" type="STRING" size="256" sumtext="-"/>
  207. <Column id="highhper" type="STRING" size="256" sumtext="-"/>
  208. <Column id="highlper" type="STRING" size="256" sumtext="-"/>
  209. <Column id="lowper" type="STRING" size="256" sumtext="-"/>
  210. <Column id="lowtper" type="STRING" size="256" sumtext="-"/>
  211. <Column id="lowhper" type="STRING" size="256" sumtext="-"/>
  212. <Column id="lowlper" type="STRING" size="256" sumtext="-"/>
  213. <Column id="errper" type="STRING" size="256" sumtext="-"/>
  214. </ColumnInfo>
  215. </Dataset>
  216. <Dataset id="ds_main_errlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  217. <ColumnInfo>
  218. <Column id="flag" type="STRING" size="256" sumtext="-"/>
  219. <Column id="ward" type="STRING" size="256" sumtext="-"/>
  220. <Column id="info" type="STRING" size="256" sumtext="-"/>
  221. <Column id="um" type="STRING" size="256" sumtext="-"/>
  222. </ColumnInfo>
  223. </Dataset>
  224. <Dataset id="ds_main_srltlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  225. <ColumnInfo>
  226. <Column id="srlt" type="STRING" size="256" sumtext="xml"/>
  227. </ColumnInfo>
  228. </Dataset>
  229. <Dataset id="ds_main_request" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  230. <ColumnInfo>
  231. <Column id="request" type="STRING" size="256"/>
  232. </ColumnInfo>
  233. </Dataset>
  234. <Dataset id="ds_hidden_print_errlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  235. <ColumnInfo>
  236. <Column id="flag" type="STRING" size="256"/>
  237. </ColumnInfo>
  238. </Dataset>
  239. </Objects>
  240. <Bind>
  241. <BindItem id="item0" compid="group1.input3" propid="value" datasetid="ds_send" columnid="reqym"/>
  242. <BindItem id="item1" compid="textarea1" propid="value" datasetid="ds_main_request" columnid="request"/>
  243. </Bind>
  244. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  245. * System Name :
  246. * Job Name :
  247. * Creator :
  248. * Make Date : 2015-05-01
  249. * Description :
  250. *---------------------------------------------------------------------------------------
  251. * Modify Date Modifier Modify Description
  252. *---------------------------------------------------------------------------------------
  253. * 2015-05-01 Live Converter TF->XP
  254. *
  255. *---------------------------------------------------------------------------------------
  256. ****************************************************************************************/
  257. include "com_commonxp::comm_main.xjs";
  258. include "lis_commonxp::LLZ001.xjs";
  259. var vMonth = group1.input3.value;
  260. function SMLQP00600_oninit(obj:Form, e:InitEventInfo)
  261. {
  262. frmf_initForm(obj);
  263. }
  264. function SMLQP00600_onload(obj:Form, e:LoadEventInfo)
  265. {
  266. grdf_initGrid(datagrid2);
  267. grdf_initGrid(datagrid1);
  268. grdf_initGrid(datagrid3);
  269. fSetInit();
  270. }
  271. function fSetInit()
  272. {
  273. ds_send.setColumn(0, "reqym", utlf_getCurrentDate());
  274. vMonth = utlf_getCurrentDate().toDate("YYYYMMDD").getDateFormat("YYYY-MM");
  275. datagrid2.setCellProperty("Head", 0, "text", vMonth+"월");
  276. datagrid1.setCellProperty("Head", 0, "text", vMonth+"월");
  277. }
  278. function group1_input3_onchanged(obj:Calendar, e:ChangeEventInfo)
  279. {
  280. vMonth = obj.text;
  281. datagrid2.setCellProperty("Head", 0, "text", vMonth+"월");
  282. datagrid1.setCellProperty("Head", 0, "text", vMonth+"월");
  283. ds_send.setColumn(0, "reqym", String(obj.value).substr(0,6))
  284. }
  285. function group1_button3_onclick(obj:Button, e:ClickEventInfo)
  286. {
  287. fGetList();
  288. }
  289. function fGetList()
  290. {
  291. var oParam = {};
  292. oParam.id = "TRLQP00601";
  293. oParam.service = "grademngtprintapp.QCRsltReference";
  294. oParam.method = "reqGetSureList";
  295. oParam.inds = "cond=ds_send";
  296. oParam.outds = "ds_main_uselist=return ds_main_qclist=return ds_main_errlist=errlist ds_main_request=return ds_main_srltlist=return";
  297. oParam.async = false;
  298. //oParam.callback = "cf_TRLQP00601";
  299. tranf_submit(oParam);
  300. if(ds_main_srltlist.rowcount > 0)
  301. {
  302. ds_main_request.setColumn(0, "request", ds_main_srltlist.getColumn(0, "srlt")); // model.getValue("/root/main/srltlist/srlt/main/request/request"));
  303. //copyNodesetType("/root/main/errlist", "/root/main/srltlist/srlt/main/errlist", "replace");
  304. //model.removeNodeset("/root/main/srltlist/srlt"); //서식결과 내용 삭제
  305. }
  306. }
  307. function btn_addrow_onclick(obj:Button, e:ClickEventInfo)
  308. {
  309. ds_main_errlist.addRow();
  310. }
  311. function button1_onclick(obj:Button, e:ClickEventInfo)
  312. {
  313. fSaveInfo();
  314. }
  315. function fSaveInfo()
  316. {
  317. // var node = instance1.selectSingleNode("/root/main");
  318. // model.setValue("/root/send/descrslt", node.xml);
  319. var oParam = {};
  320. oParam.id = "TXLQP00601";
  321. oParam.service = "grademngtprintapp.QCRsltReference";
  322. oParam.method = "reqSetSureList";
  323. oParam.inds = "cond=ds_send";
  324. oParam.async = false;
  325. //oParam.callback = "cf_TXLQP00601";
  326. tranf_submit(oParam);
  327. }
  328. function button5_onclick(obj:Button, e:ClickEventInfo)
  329. {
  330. this.reload();
  331. }
  332. function button11_onclick(obj:Button, e:ClickEventInfo)
  333. {
  334. fPrint();
  335. }
  336. function fPrint()
  337. {
  338. ds_hidden_print_errlist.clearData();
  339. ds_hidden_print_errlist.copyData(ds_main_errlist);
  340. var strYM = ds_send.getColumn(0, "reqym");
  341. var vErrCnt = 0;
  342. var vFlag = "";
  343. var vWard = "";
  344. var vInfo = "";
  345. var vUM = "";
  346. while(ds_hidden_print_errlist.rowcount != 0)
  347. {
  348. vFlag += ds_hidden_print_errlist.getColumn(0, "flag") + "\n";
  349. vWard += ds_hidden_print_errlist.getColumn(0, "ward") + "\n";
  350. vInfo += ds_hidden_print_errlist.getColumn(0, "info") + "\n";
  351. vUM += ds_hidden_print_errlist.getColumn(0, "um") + "\n";
  352. }
  353. dsf_makeValue(ds_hidden_print_errlist, "flag", "string", vFlag, 0);
  354. dsf_makeValue(ds_hidden_print_errlist, "ward", "string", vWard, 0);
  355. dsf_makeValue(ds_hidden_print_errlist, "info", "string", vInfo, 0);
  356. dsf_makeValue(ds_hidden_print_errlist, "um", "string", vUM, 0);
  357. var objDOM = rptf_createDOM(); // DOM 객체 설정
  358. rptf_setNodeListToDOM(objDOM, "/root/hidden/print/uselist", ds_hidden_print_errlist);
  359. rptf_setNodeListToDOM(objDOM, "/root/hidden/print/qclist", ds_main_qclist);
  360. rptf_setNodeListToDOM(objDOM, "/root/hidden/print/errlist", ds_main_errlist);
  361. rptf_setNodeListToDOM(objDOM, "/root/hidden/print/request", ds_main_request);
  362. rptf_setNodeListToDOM(objDOM, "/root/send", ds_send);
  363. var objParam = new Object();
  364. objParam.xml_data_XML1 = objDOM.documentElement.source; // 최상의노드 XML 스트링 추출
  365. var option = "";
  366. rptf_exeReportPreview30(["RPLQP00600"],[objParam], option);
  367. }
  368. ]]></Script>
  369. </Form>
  370. </FDL>