SMDRP00200_보고서-진료카드 예약환자 발급 이력.xrw 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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>Untitle</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <list>
  11. <msg>
  12. <pid/>
  13. <hngnm/>
  14. <issdg/>
  15. <eqmpos/>
  16. <issdd/>
  17. <issrid/>
  18. <orddeptcd/>
  19. <orddrid/>
  20. </msg>
  21. </list>
  22. </main>
  23. <send>
  24. <issdds/>
  25. <issdde/>
  26. <orddeptcd/>
  27. <orddrid/>
  28. <pid/>
  29. <hngnm/>
  30. <offset/>
  31. <pagesize>200</pagesize>
  32. </send>
  33. <properties>
  34. <error>
  35. <msg/>
  36. </error>
  37. </properties>
  38. <temp/>
  39. <init>
  40. <orddeptcd>
  41. <dept>
  42. <deptcd/>
  43. <depthngnm/>
  44. </dept>
  45. </orddeptcd>
  46. <orddrid>
  47. <itemlist>
  48. <emplno/>
  49. <name/>
  50. </itemlist>
  51. <userlist>
  52. <usercombo>
  53. <usernm/>
  54. <userid/>
  55. </usercombo>
  56. </userlist>
  57. </orddrid>
  58. </init>
  59. </root>
  60. </instance>
  61. <script type="javascript" ev:event="xforms-ready">
  62. <![CDATA[
  63. //TRDRP00202 해당과에 대한 콤보 처리는 공통스크립트로 처리 잠시보류 .
  64. //submit("TRDRP00202");
  65. //submit("TRDRP00203");
  66. var instcd = getUserInfo("dutplceinstcd");
  67. var standard_yn = "orduseyn";
  68. var ord_deptflag = "D"; // 외래진료과
  69. var rslt_ref = "/root/init/orddeptcd";
  70. zbcfGetDeptCodeList(instcd, standard_yn, ord_deptflag, rslt_ref);
  71. model.setValue("/root/send/issdds", getCurrentDate());
  72. model.setValue("/root/send/issdde", getCurrentDate());
  73. model.removeNodeset("/root/main/list/msg");
  74. addComboItem( "cmb_search");
  75. addComboItem( "cmb_orddrid");
  76. model.refresh();
  77. ]]>
  78. </script>
  79. <submission id="TRDRP00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" add="bottom" resultref="/root/main/list"/>
  80. <submission id="TRDRP00202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/temp" replace="instance" resultref="/root/init/orddeptcd"/>
  81. <submission id="TRDRP00203" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/orddeptcd" replace="instance" resultref="/root/init/orddrid"/>
  82. <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="urlencoded-post" replace="instance"/>
  83. <submission id="TRZSU10105" mediatype="application/x-www-form-urlencoded" method="urlencoded-post" replace="instance"/>
  84. </model>
  85. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  86. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  87. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  88. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  89. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  90. <script type="javascript" src="../../../com/userdeptinfoweb/js/ZSU001.js"/>
  91. <script type="javascript" src="../../../crd/cardissueweb/js/crdcommon.js"/>
  92. </xhtml:head>
  93. <xhtml:body guideline="1,1193;1,1195;2,33;2,30;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  94. <group id="group1" style="left:0px; top:0px; width:1194px; height:13px; ">
  95. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">보고서 - 진료카드 예약환자 발급이력</caption>
  96. </group>
  97. <group id="group3" style="left:0px; top:13px; width:1195px; height:767px; ">
  98. <group id="group2" style="left:0px; top:10px; width:1194px; height:35px; ">
  99. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  100. <caption id="caption1" class="search_name" style="left:530px; top:10px; width:65px; height:17px; ">담당의</caption>
  101. <button id="btn_search" class="btn1_letter2" style="left:1125px; top:7px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
  102. <caption>조회</caption>
  103. <script type="javascript" ev:event="DOMActivate">
  104. <![CDATA[
  105. var issddsDate = input11.value;
  106. var issddeDate = input12.value;
  107. if(issddsDate>issddeDate){
  108. messageBox("조회 하고자 하는 발급일자를 제대로", "C001");
  109. }else if(issddsDate.length<8 | issddeDate.length<8){
  110. messageBox("조회하고자 하는 발급 일자를 제대로", "C001");
  111. }else{
  112. model.removeNodeset("/root/main/list/msg");
  113. model.setValue("/root/send/offset", 0);
  114. submit("TRDRP00201");
  115. var subMessage = model.getValue("/root/main/list/msg[1]/tot_cnt");
  116. subMessage = intComma(subMessage);
  117. setSystemMessage(subMessage+"건이 조회 되었습니다.");
  118. }
  119. ]]>
  120. </script>
  121. </button>
  122. <line id="line2" class="line_4" style="x1:1110px; y1:7px; x2:1110px; y2:27px; border-color:#ffe4bb; border-left-style:solid; "/>
  123. <caption id="caption5" class="search_name" style="left:5px; top:11px; width:84px; height:17px; ">발급일자</caption>
  124. <select1 id="cmb_search" ref="/root/send/orddeptcd" class="combo_search" appearance="minimal" style="left:395px; top:10px; width:125px; height:19px; ">
  125. <choices>
  126. <itemset nodeset="/root/init/orddeptcd/dept">
  127. <label ref="depthngnm"/>
  128. <value ref="deptcd"/>
  129. </itemset>
  130. </choices>
  131. <script type="javascript" ev:event="xforms-select">
  132. <![CDATA[
  133. //submit("TRDRP00203");//보류
  134. model.setFocus("cmb_orddrid");
  135. //model.removenode("/root/send/orddrid");
  136. //model.makeNode("/root/send/orddrid");
  137. var deptcd = model.getValue("/root/send/orddeptcd");
  138. zsufGetUserInfoCombo(deptcd, "/root/init/orddrid/userlist","_D");
  139. if (model.getValue("/root/send/orddeptcd") == "") {
  140. model.makeValue("/root/init/orddrid", "");
  141. }
  142. addComboItem( "cmb_orddrid");
  143. model.setValue("/root/send/orddrid", "");
  144. model.refresh();
  145. ]]>
  146. </script>
  147. </select1>
  148. <caption id="caption4" class="search_name" style="left:325px; top:11px; width:65px; height:17px; vertical-align:middle; ">예약과</caption>
  149. <caption id="caption8" class="search_name" style="left:695px; top:10px; width:76px; height:17px; ">등록번호</caption>
  150. <input id="input2" ref="/root/send/pid" class="input_search" maxlength="10" format="9999999999" style="left:780px; top:10px; width:100px; height:19px; ">
  151. <script type="javascript" ev:event="onkeypress">
  152. <![CDATA[
  153. inputEnterKey("btn_search", "DOMActivate");
  154. ]]>
  155. </script>
  156. </input>
  157. <input id="input11" ref="/root/send/issdds" class="input_s_essential" editable="true" inputtype="date" format="yyyy-mm-dd" style="left:90px; top:10px; width:100px; height:19px; ">
  158. <script type="javascript" ev:event="DOMFocusOut">
  159. <![CDATA[
  160. //var issddsDate = input11.value;
  161. //isValidDateTime(issddsDate, 'YYYYMMDD');
  162. ]]>
  163. </script>
  164. </input>
  165. <input id="input12" ref="/root/send/issdde" class="input_s_essential" editable="true" inputtype="date" format="yyyy-mm-dd" style="left:210px; top:10px; width:100px; height:19px; "/>
  166. <caption id="caption3" class="search_name" style="left:890px; top:10px; width:76px; height:17px; ">환자성명</caption>
  167. <input id="input4" ref="/root/send/hngnm" class="input_search" maxlength="15" style="left:970px; top:10px; width:100px; height:19px; ">
  168. <script type="javascript" ev:event="onkeypress">
  169. <![CDATA[
  170. inputEnterKey("btn_search", "DOMActivate");
  171. ]]>
  172. </script>
  173. </input>
  174. <select1 id="cmb_orddrid" ref="/root/send/orddrid" class="combo_search" appearance="minimal" style="left:600px; top:10px; width:90px; height:19px; ">
  175. <choices>
  176. <itemset nodeset="/root/init/orddrid/userlist/usercombo">
  177. <label ref="usernm"/>
  178. <value ref="userid"/>
  179. </itemset>
  180. </choices>
  181. <script type="javascript" ev:event="xforms-select">
  182. <![CDATA[
  183. model.removeNodeset("/root/main/list/msg");
  184. //submit("TRDRP00203");
  185. submit("TRDRP00201");
  186. ]]>
  187. </script>
  188. </select1>
  189. <caption id="caption7" class="search_no_b" style="left:195px; top:10px; width:15px; height:17px; ">~</caption>
  190. </group>
  191. <caption id="caption2" class="tit_2" style="left:5px; top:65px; width:300px; height:13px; font-family:돋움; vertical-align:middle; ">발급 정보 리스트</caption>
  192. <line id="line1" class="line_1" style="x1:0px; y1:80px; x2:1194px; y2:80px; "/>
  193. <datagrid id="grd_scrnlist" nodeset="/root/main/list/msg" caption="등록번호^환자명^발급차수^발급장비명^발급일^발급자^예약과^담당의" colsep="^" colwidth="150, 150, 100, 150, 150, 130, 150, 150" dataheight="23" defaultrows="1" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" style="left:0px; top:85px; width:1194px; height:655px; ">
  194. <col explorerbar="sortshowmove" ref="pid" style="text-align:center; "/>
  195. <col explorerbar="sortshowmove" ref="hngnm" style="text-align:center; "/>
  196. <col explorerbar="sortshowmove" ref="issdg" style="text-align:center; "/>
  197. <col explorerbar="sortshowmove" ref="eqmpos" style="text-align:center; "/>
  198. <col explorerbar="sortshowmove" ref="issdd" format="yyyy-mm-dd" style="left:698px; top:23px; width:386px; height:23px; text-align:center; "/>
  199. <col explorerbar="sortshowmove" ref="issrid" style="text-align:center; "/>
  200. <col explorerbar="sortshowmove" disabled="true" ref="orddeptcd" type="combo" style="text-align:center; ">
  201. <choices>
  202. <itemset nodeset="/root/init/orddeptcd/dept">
  203. <label ref="depthngnm"/>
  204. <value ref="deptcd"/>
  205. </itemset>
  206. </choices>
  207. </col>
  208. <col explorerbar="sortshowmove" ref="orddrid" style="text-align:center; "/>
  209. <script type="javascript" ev:event="onscroll">
  210. <![CDATA[
  211. if(grd_scrnlist.vscroll.attribute("max") == grd_scrnlist.vscroll.attribute("pos")) {
  212. // end of scroll
  213. model.setValue("/root/send/offset", grd_scrnlist.rows-grd_scrnlist.fixedRows); // grid의 header row는 제외
  214. submit("TRDRP00201");
  215. var subMessage = model.getValue("/root/main/list/msg[1]/tot_cnt");
  216. subMessage = intComma(subMessage);
  217. setSystemMessage(subMessage+"건이 조회 되었습니다.");
  218. }
  219. ]]>
  220. </script>
  221. </datagrid>
  222. <button id="btn_cle" class="btn4_letter3" disable.background-image="../../../com/commonweb/images/dis_btn4_letter3.gif" style="left:1125px; top:745px; width:68px; height:22px; background-image:../../../com/commonweb/images/btn4_letter3.gif; ">
  223. <caption>초기화</caption>
  224. <script type="javascript" ev:event="DOMActivate">
  225. <![CDATA[
  226. model.reset();
  227. model.refresh();
  228. ]]>
  229. </script>
  230. </button>
  231. <button id="button3" class="btn2_letter4" disable.background-image="../../../com/commonweb/images/dis_btn2_letter4.gif" style="left:1130px; top:60px; width:64px; height:19px; background-image:../../../com/commonweb/images/btn2_letter4.gif; ">
  232. <caption>엑셀저장</caption>
  233. <script type="javascript" ev:event="DOMActivate">
  234. <![CDATA[
  235. var dataYn = model.getValue("/root/main/list/msg["+1+"]/pid");
  236. if(dataYn == ""){
  237. messageBox("조회된 ", "E013");
  238. return;
  239. }else{
  240. var fileName = window.fileDialog("save",",",false,"보고서-진료카드 예약환자 발급이력","xls","All Files(*.*)|*.*|Excel Files(*.xls)|*.xls");
  241. }
  242. if(fileName !=""){
  243. grd_scrnlist.saveExcel(fileName);
  244. }
  245. ]]>
  246. </script>
  247. </button>
  248. </group>
  249. </xhtml:body>
  250. </xhtml:html>