SMLLJ00510_범용검사통계.xrw 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  3. <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
  4. <xhtml:head>
  5. <xhtml:title>샘플 뱅킹 시스템</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <samplebank>
  11. <item>
  12. <bcno/>
  13. <pid/>
  14. <patnm/>
  15. <sex/>
  16. <age/>
  17. <orddeptnm/>
  18. <orddrnm/>
  19. <prcpnm/>
  20. <bcolldt/>
  21. <spcnm/>
  22. <spcstat/>
  23. <prcpremfact/>
  24. </item>
  25. </samplebank>
  26. <popupendflag/>
  27. </main>
  28. <send>
  29. <reqfromdd/>
  30. <reqtodd/>
  31. <code/>
  32. <select>1</select>
  33. </send>
  34. <hidden>
  35. <statshopefromdd/>
  36. <statshopetodd/>
  37. <ioflag>0</ioflag>
  38. <sectcd/>
  39. <workgbn>A</workgbn>
  40. <cntgbn>T</cntgbn>
  41. <itemgbn/>
  42. <ddstandard>1</ddstandard>
  43. </hidden>
  44. <init>
  45. </init>
  46. </root>
  47. </instance>
  48. <script type="javascript" ev:event="xforms-ready">
  49. <![CDATA[
  50. var reqfromdd = getCurrentDate().substr(0,8).toDate().getAddDate(-7,"D").getDateFormat("YYYYMMDD");
  51. ipt_reqfromdd.value = reqfromdd;
  52. var reqtodd = getCurrentDate().substr(0,8).toDate().getDateFormat("YYYYMMDD");
  53. ipt_reqtodd.value = reqtodd;
  54. // 이재오 추가 2012.11.26
  55. fBaseInfoRef("0111|"); //0111 : 계코드
  56. var toDay = getCurrentDate();
  57. model.setValue("/root/hidden/sectcd", "00"); //부서를 전체로 놓는다.
  58. model.setValue("/root/hidden/ioflag", "0"); //입원/외래구분을 전체로 놓는다.
  59. model.setValue("/root/hidden/statshopefromdd", toDay); //통계희망시작일 = 현재일자
  60. model.setValue("/root/hidden/statshopetodd", toDay); //통계희망종료일 = 현재일자
  61. model.refresh();
  62. ]]>
  63. </script>
  64. <submission id="TRLLJ00501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/samplebank"/>
  65. <submission id="TXLLR91101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance"/>
  66. <submission id="TRLZZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init"/>
  67. <submission id="TRLLS01101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/ddstats"/>
  68. </model>
  69. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  70. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  71. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  72. <script type="javascript" src="../../../lis/commonweb/js/LLZ001.js"/>
  73. </xhtml:head>
  74. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  75. <group id="grp_tle" style="left:0px; top:0px; width:1194px; height:13px; ">
  76. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:200px; height:14px; ">일일 통계 작업</caption>
  77. </group>
  78. <group id="grp_biz" scroll="auto" style="left:0px; top:20px; width:675px; height:230px; ">
  79. <line id="line1" class="line_1" style="x1:380px; y1:210px; x2:440px; y2:210px; "/>
  80. <group id="grp_sea" style="left:5px; top:35px; width:660px; height:185px; vertical-align:top; ">
  81. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:450px; height:170px; background-color:#fffbf2; border-color:#ffd799; "/>
  82. <caption id="caption2" class="search_name" style="left:15px; top:9px; width:112px; height:17px; ">조회 구간 :</caption>
  83. <caption id="caption5" class="search_no_b" style="left:233px; top:10px; width:12px; height:17px; ">~</caption>
  84. <line id="line13" class="line_4" style="x1:615px; y1:45px; x2:615px; y2:67px; "/>
  85. <input id="ipt_reqfromdd" ref="/root/send/reqfromdd" class="input_default" inputtype="date" style="left:130px; top:8px; width:100px; height:19px; "/>
  86. <input id="ipt_reqtodd" ref="/root/send/reqtodd" class="input_default" inputtype="date" style="left:249px; top:8px; width:100px; height:19px; "/>
  87. <button id="btn_sea" class="btn1_letter2" style="left:280px; top:35px; width:56px; height:22px; ">
  88. <caption>조회</caption>
  89. <script type="javascript" ev:event="DOMActivate">
  90. <![CDATA[
  91. submit("TRLLJ00501");
  92. ]]>
  93. </script>
  94. </button>
  95. <select1 id="combo1" ref="/root/send/select" appearance="minimal" style="left:129px; top:139px; width:100px; height:19px; ">
  96. <choices>
  97. <item>
  98. <label>바코드번호</label>
  99. <value>1</value>
  100. </item>
  101. <item>
  102. <label>등록번호</label>
  103. <value>2</value>
  104. </item>
  105. <item>
  106. <label>환자명</label>
  107. <value>3</value>
  108. </item>
  109. <item>
  110. <label>진료과</label>
  111. <value>4</value>
  112. </item>
  113. <item>
  114. <label>진료의</label>
  115. <value>5</value>
  116. </item>
  117. <item>
  118. <label>채혈일시</label>
  119. <value>6</value>
  120. </item>
  121. <item>
  122. <label>검체명</label>
  123. <value>7</value>
  124. </item>
  125. </choices>
  126. </select1>
  127. <caption id="caption1" class="search_name" style="left:30px; top:140px; width:112px; height:17px; ">조회 구분 :</caption>
  128. <input id="input1" ref="/root/send/code" style="left:231px; top:139px; width:100px; height:19px; "/>
  129. <caption id="caption3" class="search_name" style="left:15px; top:65px; width:95px; height:17px; ">부 서 :</caption>
  130. <select1 id="combo3" ref="/root/hidden/sectcd" appearance="minimal" style="left:125px; top:64px; width:122px; height:19px; ">
  131. <choices>
  132. <itemset nodeset="/root/init/LB0111">
  133. <label ref="nm"/>
  134. <value ref="cd"/>
  135. </itemset>
  136. </choices>
  137. <script type="javascript" ev:event="xforms-value-changed">
  138. <![CDATA[
  139. //fGridInit();
  140. ]]>
  141. </script>
  142. </select1>
  143. </group>
  144. <button id="btn_excsave" class="btn2_letter4" style="left:280px; top:140px; width:64px; height:19px; ">
  145. <caption>엑셀저장</caption>
  146. <script type="javascript" ev:event="DOMActivate">
  147. <![CDATA[
  148. var fileName = window.fileDialog("save", ",", false, "샘플뱅킹리스트", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  149. if (fileName != "")
  150. {
  151. grd_smpbaking.saveExcel(fileName);
  152. }
  153. ]]>
  154. </script>
  155. </button>
  156. <datagrid id="grd_smpbaking" nodeset="/root/main/samplebank/item" caption="바코드번호^등록번호^환자명^성별^나이^진료과^진료의^채혈일시^처방명^검체명^검체상태^의뢰의사Remark" colsep="^" colwidth="130, 90, 100, 50, 62, 100, 90, 130, 226, 100, 100, 300" dataheight="25" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" tooltip="true" style="left:475px; top:50px; width:175px; height:155px; ">
  157. <col ref="bcno" type="output"/>
  158. <col ref="pid" type="output"/>
  159. <col ref="patnm" type="output"/>
  160. <col ref="sex" type="output"/>
  161. <col ref="age" type="output"/>
  162. <col ref="orddeptnm" type="output"/>
  163. <col ref="orddrnm" type="output"/>
  164. <col ref="bcolldt" type="output" format="yyyy-mm-dd hh:nn:ss"/>
  165. <col ref="prcpnm" type="output"/>
  166. <col ref="spcnm" type="output"/>
  167. <col ref="spcstat" type="output"/>
  168. <col ref="prcpremfact" type="output"/>
  169. <script type="javascript" ev:event="onaftersort">
  170. <![CDATA[
  171. grd_smpbaking.gridToInstance();
  172. ]]>
  173. </script>
  174. </datagrid>
  175. <button id="button23" class="btn3_letter5" style="left:265px; top:100px; width:56px; height:22px; ">
  176. <caption>batch 작업</caption>
  177. <script type="javascript" ev:event="onclick">
  178. <![CDATA[
  179. var fromdd = parseInt(model.getValue("/root/hidden/statshopefromdd").substr(0,4));
  180. var todd = parseInt(model.getValue("/root/hidden/statshopetodd").substr(0,4));
  181. if(todd - fromdd >9 ){
  182. messageBox("10년 이내로 조회 가능합니다\n조회기간을 다시 선택하세요", "I");
  183. return;
  184. }
  185. if(fromdd > todd){
  186. messageBox("통계 희망일 시작시간이 종료시간보다 작아야 합니다. ", "I");
  187. return;
  188. }
  189. // model.makeValue("/root/send/workgbn", model.getValue("/root/hidden/workgbn")); //근무구분 Ο주간 Ο야간 ΟAll
  190. // model.makeValue("/root/send/cntgbn", model.getValue("/root/hidden/cntgbn")); //건수구분 Ο검사T Ο환자P
  191. // model.makeValue("/root/send/itemgbn", model.getValue("/root/hidden/itemgbn")); //검사항목제외
  192. //model.makeValue("/root/send/ioflag", model.getValue("/root/hidden/ioflag")); //입원/외래구분 I, O, E, S
  193. model.makeValue("/root/send/sectcd", model.getValue("/root/hidden/sectcd")); //계코드 부서콤보
  194. model.makeValue("/root/send/statshopefromdd", model.getValue("/root/hidden/statshopefromdd")); //통계희망시작일
  195. model.makeValue("/root/send/statshopetodd", model.getValue("/root/hidden/statshopetodd")); //통계희망종료일
  196. model.makeValue("/root/send/ddstandard", model.getValue("/root/hidden/ddstandard")); //통계기준일 1= 접수일 2=보고일
  197. // model.makeValue("/root/send/refflag", "dd"); //일월연구분
  198. submit("TRLLS01101");
  199. submit("TXLLR91101");
  200. // setRowStyle("grd_dd", "2", "소계", "tclsscrnnm", "equal"); //소계 색변경
  201. // }
  202. // setRowStyle("grd_dd", "11", "부서계", "tclsscrnnm", "equal"); //부서별합계 색변경
  203. // setRowStyle("grd_dd", "11", "부서합계", "tclsscrnnm", "equal"); //부서별합계 색변경
  204. // setRowStyle("grd_dd", "3", "합계", "sectnm", "equal"); //총합계 색변경 에메랄드색
  205. }
  206. // model.resetInstanceNode("/root/send");
  207. // model.resetInstanceNode("/root/main/totalcnts");
  208. ]]>
  209. </script>
  210. </button>
  211. <select1 id="combo2" ref="/root/hidden/ddstandard" appearance="minimal" style="left:125px; top:69px; width:92px; height:19px; ">
  212. <choices>
  213. <item>
  214. <label>보고일</label>
  215. <value>1</value>
  216. </item>
  217. <item>
  218. <label>접수일</label>
  219. <value>2</value>
  220. </item>
  221. </choices>
  222. <script type="javascript" ev:event="xforms-value-changed">
  223. <![CDATA[
  224. //fGridInit();
  225. ]]>
  226. </script>
  227. </select1>
  228. <caption id="caption13" class="search_name" style="left:20px; top:70px; width:99px; height:17px; ">통계기준일 :</caption>
  229. </group>
  230. </xhtml:body>
  231. </xhtml:html>