SMAEA00600_미예약자 조회.xrw 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276
  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>미예약자조회</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <send>
  10. <data>
  11. <pid/>
  12. <deptcd/>
  13. <fromDate/>
  14. <toDate/>
  15. <excuroomcd/>
  16. <term/>
  17. <rcpt>Y</rcpt>
  18. </data>
  19. <globalinstance>
  20. <instance1/>
  21. </globalinstance>
  22. </send>
  23. <init>
  24. <cmb_info>
  25. <initexecroom>
  26. <excuroomcdid/>
  27. <excuroomcdnm/>
  28. </initexecroom>
  29. <suppdept>
  30. <suppdeptcd/>
  31. <depthngnm/>
  32. </suppdept>
  33. </cmb_info>
  34. </init>
  35. <hidden>
  36. <source>
  37. <hngnm/>
  38. </source>
  39. </hidden>
  40. <main>
  41. <send/>
  42. <patinfo>
  43. <patinfolist/>
  44. </patinfo>
  45. <booklist>
  46. <detail>
  47. <pid/>
  48. <hngnm/>
  49. <hometel/>
  50. <mpphontel/>
  51. <prcpdd/>
  52. <prcpcd/>
  53. <prcpnm/>
  54. <orddepthngnm/>
  55. <ioflag/>
  56. <rcpt/>
  57. <pno/>
  58. </detail>
  59. </booklist>
  60. </main>
  61. <init2>
  62. <cmb_info2>
  63. <initexcuroomcd>
  64. <excuroomcdnm/>
  65. <excuroomcdid/>
  66. </initexcuroomcd>
  67. </cmb_info2>
  68. </init2>
  69. </root>
  70. </instance>
  71. <!-- 예약조회-->
  72. <submission id="TRAEA00905" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" replace="instance" resultref="root/main/booklist"/>
  73. <submission id="TRAEA01301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/globalinstance" replace="instance" resultref="/root/init/cmb_info"/>
  74. <submission id="TRAEA01115" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/globalinstance" replace="instance" resultref="/root/init2/cmb_info"/>
  75. </model>
  76. <script type="javascript" ev:event="xforms-ready">
  77. <![CDATA[
  78. /*검색구분*/
  79. aezfSetSuppDeptcd();
  80. var _curDate = getCurrentDate();
  81. // ipt_date1.value = _curDate.toDate().getAddDate(-30,"D").getDateFormat("YYYYMMDD") ;
  82. //ipt_date2.value = getCurrentDate();
  83. ipt_date1.value = getCurrentDate();
  84. ipt_date2.value = getCurrentDate();
  85. submit("TRAEA01301"); // 검사치료실 가져오기
  86. if( instance1.selectSingleNode("/root/init/cmb_info/suppdept[suppdeptcd='" + model.getValue("/root/send/globalinstance/instance1") + "']") == null ){
  87. model.setValue("/root/send/globalinstance/instance1", "");
  88. }
  89. //*********************************************************************************************************************************************
  90. //담당 검사실 갖고오기
  91. submit("TRAEA01115",false);
  92. //담당 검사실 세팅
  93. model.setValue("/root/send/data/excuroomcd",model.getValue("/root/init2/cmb_info/initexcuroomcd[1]/excuroomcd"));
  94. //*********************************************************************************************************************************************
  95. var gv_pid = getGlobalVariable("gv_pid", "A"); //글로벌변수로 넘겨준 등록번호값
  96. if(gv_pid != "") { //글로벌변수(등록번호)가 있는경우
  97. model.setValue("/root/send/data/pid", gv_pid);
  98. }
  99. btn_sea.dispatch("DOMActivate");
  100. ]]>
  101. </script>
  102. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  103. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  104. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  105. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  106. <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
  107. </xhtml:head>
  108. <xhtml:body guideline="1,1195;2,802;2,784;">
  109. <group id="group1" style="left:0px; top:0px; width:1194px; height:13px; ">
  110. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:137px; height:14px; ">미예약자조회</caption>
  111. </group>
  112. <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  113. <group id="grp_sea" style="left:0px; top:10px; width:1194px; height:65px; vertical-align:top; ">
  114. <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:2px; width:1194px; height:55px; background-color:#fffbf2; border-color:#ffd799; "/>
  115. <caption id="caption2" class="search_name" style="left:10px; top:8px; width:94px; height:17px; ">처방일자 :</caption>
  116. <input id="ipt_date1" ref="/root/send/data/fromDate" class="input_default" inputtype="date" style="left:98px; top:6px; width:90px; height:19px; "/>
  117. <input id="ipt_date2" ref="/root/send/data/toDate" class="input_default" inputtype="date" style="left:210px; top:6px; width:90px; height:19px; "/>
  118. <line id="line13" class="line_4" style="x1:1116px; y1:6px; x2:1116px; y2:48px; "/>
  119. <caption id="caption1" style="left:191px; top:9px; width:25px; height:20px; ">~</caption>
  120. <button id="btn_sea" class="btn1_letter2" style="left:1126px; top:17px; width:56px; height:22px; ">
  121. <caption>조회</caption>
  122. <script type="javascript" ev:event="DOMActivate">
  123. <![CDATA[
  124. var _fromdate = ipt_date1.value;
  125. var _todate = ipt_date2.value;
  126. if(_fromdate.length<8 && _todate.length<8){
  127. messageBox("날짜를","C001")
  128. }else{
  129. //model.setValue("root/send/data/deptcd","2160000000");
  130. model.setValue("/root/send/data/deptcd", model.getValue("/root/send/globalinstance/instance1"));
  131. submit("TRAEA00905");
  132. }
  133. ]]>
  134. </script>
  135. </button>
  136. <input id="ipt_pid" ref="/root/send/data/pid" class="input_search" style="left:98px; top:33px; width:90px; height:19px; ">
  137. <script type="javascript" ev:event="onkeyup">
  138. <![CDATA[
  139. if(event.keyCode == "13") {
  140. inputEnterKey("btn_sea","DOMActivate");
  141. }
  142. ]]>
  143. </script>
  144. </input>
  145. <output id="opt_patnm" ref="/root/hidden" class="output_fix" style="left:210px; top:33px; width:113px; height:19px; "/>
  146. <button id="button61" class="icon_search" style="left:189px; top:36px; width:16px; height:16px; ">
  147. <caption/>
  148. <script type="javascript" ev:event="DOMActivate">
  149. <![CDATA[
  150. // 환자조회
  151. modal("SPPMC02500", "", "200", "200", "SPPMC02500","/root/send/data/pid","/root/main/send");
  152. model.setValue("/root/hidden/source/hngnm", model.getValue("/root/main/patinfo/patinfolist/hngnm"));
  153. model.setValue("/root/send/data/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
  154. model.refresh();
  155. ]]>
  156. </script>
  157. </button>
  158. <caption id="caption3" class="search_name" style="left:10px; top:34px; width:94px; height:17px; ">등록번호 :</caption>
  159. <caption id="caption12" class="search_name" style="left:726px; top:8px; width:106px; height:17px; ">검사/치료실 :</caption>
  160. <select1 id="cmb_excuroom" ref="/root/send/data/excuroomcd" class="combo_default" navindex="1" appearance="minimal" editmode="inputsearch" style="left:838px; top:6px; width:120px; height:19px; ">
  161. <choices>
  162. <itemset nodeset="/root/init2/cmb_info/initexecroom">
  163. <label ref="excuroomcdnm"/>
  164. <value ref="excuroomcdid"/>
  165. </itemset>
  166. </choices>
  167. <script type="javascript" ev:event="xforms-value-changed">
  168. <![CDATA[
  169. btn_sea.dispatch("DOMActivate");
  170. ]]>
  171. </script>
  172. </select1>
  173. <select1 id="cmb_deptcd" ref="/root/send/globalinstance/instance1" appearance="minimal" editmode="inputsearch" style="left:497px; top:6px; width:226px; height:19px; ">
  174. <choices>
  175. <itemset nodeset="/root/init/cmb_info/suppdept">
  176. <label ref="depthngnm"/>
  177. <value ref="suppdeptcd"/>
  178. </itemset>
  179. </choices>
  180. <script type="javascript" ev:event="xforms-value-changed">
  181. <![CDATA[
  182. model.setValue("/root/send/globalinstance/instance1", cmb_deptcd.value);
  183. submit("TRAEA01301");
  184. //btn_sea.dispatch("DOMActivate");
  185. ]]>
  186. </script>
  187. </select1>
  188. <caption id="caption4" class="search_name" style="left:408px; top:8px; width:86px; height:17px; ">지원부서 :</caption>
  189. <select1 id="cmb_term" ref="/root/send/data/term" class="combo_default" appearance="minimal" style="left:305px; top:6px; width:80px; height:19px; ">
  190. <choices>
  191. <item>
  192. <label>일자선택</label>
  193. <value>0</value>
  194. </item>
  195. <item>
  196. <label>15일</label>
  197. <value>15</value>
  198. </item>
  199. <item>
  200. <label>30일</label>
  201. <value>30</value>
  202. </item>
  203. <item>
  204. <label>60일</label>
  205. <value>60</value>
  206. </item>
  207. </choices>
  208. <script type="javascript" ev:event="xforms-select">
  209. <![CDATA[
  210. if(cmb_term.value == "0" )
  211. {
  212. ipt_date1.disabled = false;
  213. ipt_date2.disabled = false;
  214. }
  215. else
  216. {
  217. var date2 = ipt_date2.value;
  218. var term = cmb_term.value;
  219. ipt_date1.value = date2.toDate().getAddDate(-term,"D").getDateFormat("YYYYMMDD") ;
  220. ipt_date1.disabled = true;
  221. ipt_date2.disabled = true;
  222. }
  223. ]]>
  224. </script>
  225. </select1>
  226. <caption id="caption5" class="search_name" style="left:408px; top:34px; width:86px; height:17px; ">수납여부 :</caption>
  227. <select1 id="radio1" ref="/root/send/data/rcpt" overflow="visible" appearance="full" cols="2" style="left:497px; top:34px; width:175px; height:20px; font-weight:bold; border-style:none; ">
  228. <choices>
  229. <item>
  230. <label>미수납포함</label>
  231. <value>N</value>
  232. </item>
  233. <item>
  234. <label>수납</label>
  235. <value>Y</value>
  236. </item>
  237. </choices>
  238. </select1>
  239. </group>
  240. <datagrid id="datagrid1" nodeset="/root/main/booklist/detail" caption="등록번호^성명^주민번호^집전화^이동전화^처방일자^처방코드^처방명^처방의^입원/외래^수납^caption1^caption2" colsep="^" colwidth="87, 82, 69, 100, 100, 74, 95, 322, 139, 61, 45" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:90px; width:1195px; height:615px; ">
  241. <col ref="pid"/>
  242. <col ref="hngnm"/>
  243. <col ref="pno"/>
  244. <col ref="hometel"/>
  245. <col ref="mpphontel"/>
  246. <col ref="prcpdd" format="yyyy-mm-dd" style="text-align:center; "/>
  247. <col ref="prcpcd"/>
  248. <col ref="prcpnm"/>
  249. <col ref="orddepthngnm"/>
  250. <col ref="ioflag"/>
  251. <col ref="rcpt"/>
  252. </datagrid>
  253. <caption id="caption10" class="tit_2" style="left:5px; top:70px; width:130px; height:13px; ">미예약자 현황</caption>
  254. <line id="line3" class="line_1" style="x1:0px; y1:85px; x2:1194px; y2:85px; "/>
  255. </group>
  256. <button id="button89" class="btn6_letter2" style="left:0px; top:735px; width:56px; height:22px; ">
  257. <caption>출력</caption>
  258. <script type="javascript" ev:event="DOMActivate">
  259. <![CDATA[
  260. exeReportPreview("RPAEA03400", "XMLSTR", "/root/main/booklist/detail");
  261. ]]>
  262. </script>
  263. </button>
  264. </xhtml:body>
  265. </xhtml:html>