SMAEA04800_치료예약현황조회.xrw 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290
  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. <main>
  10. <curersrvlist>
  11. <mainlist>
  12. <prcpdd/>
  13. <pid/>
  14. <hngnm/>
  15. <sex/>
  16. <tel/>
  17. <orddeptnm/>
  18. <prcpnm/>
  19. <rsrvdt/>
  20. <examgoal/>
  21. <rsrvflag/>
  22. </mainlist>
  23. </curersrvlist>
  24. <popupendflag/>
  25. <patinfo>
  26. <patinfolist/>
  27. </patinfo>
  28. </main>
  29. <send>
  30. <data>
  31. <srchlfag/>
  32. <srchdate1/>
  33. <srchdate2/>
  34. <srchpid/>
  35. <hngnm/>
  36. </data>
  37. <savedata/>
  38. <data2>
  39. <srchcond/>
  40. <pid/>
  41. <hngnm/>
  42. <rrgstno1/>
  43. <rrgstno2/>
  44. <acptdd/>
  45. </data2>
  46. <globalinstance>
  47. <instance1/>
  48. </globalinstance>
  49. </send>
  50. <hidden>
  51. <srchcond/>
  52. <pid/>
  53. <hngnm/>
  54. <rrgstno1/>
  55. <rrgstno2/>
  56. <session/>
  57. </hidden>
  58. <init>
  59. <today/>
  60. <roomlist/>
  61. <orddeptcd>
  62. <cd/>
  63. <nm/>
  64. <deptengabbr/>
  65. <reqdeptno/>
  66. </orddeptcd>
  67. <orddrid>
  68. <cd/>
  69. <nm/>
  70. <dp/>
  71. <sp/>
  72. </orddrid>
  73. </init>
  74. <temp>
  75. <printyn1/>
  76. <printyn2/>
  77. <printyn3/>
  78. </temp>
  79. </root>
  80. </instance>
  81. <script type="javascript" ev:event="xforms-ready">
  82. <![CDATA[
  83. // 부서코드 설정
  84. aezfSetSuppDeptcd();
  85. // 진료과/진료의 조회
  86. submit("TRPMOCOM01", false);
  87. fInit();
  88. ]]>
  89. </script>
  90. <submission id="TRPMOCOM01" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/hidden/session" replace="instance" resultref="/root/init"/>
  91. <submission id="TRMMO04105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/patnm"/>
  92. <submission id="TRAEA04801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/curersrvlist"/>
  93. </model>
  94. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  95. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  96. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  97. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  98. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  99. <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
  100. <script type="javascript">
  101. <![CDATA[
  102. function fInit() {
  103. model.removenode("/root/main/curersrvlist");
  104. var baseDate = getCurrentDate().toDate("YYYYMMDD");
  105. var nowDay = baseDate.getDayOfWeek("N");
  106. var dayCnt = - (eval(nowDay) - 1) ;
  107. model.setValue("/root/send/data/srchdate1", ((getCurrentDate()).toDate()).getAddDate(dayCnt).getDateFormat());
  108. model.setValue("/root/send/data/srchdate2", ((getCurrentDate()).toDate()).getAddDate(dayCnt+6).getDateFormat());
  109. model.refresh();
  110. }
  111. // 환자별 치료 검사 예약 조회
  112. function fGetCureRsrvList() {
  113. var srchpid = model.getValue("/root/send/data/srchpid");
  114. if (srchpid == "") {
  115. var srchdate1 = model.getValue("/root/send/data/srchdate1");
  116. if (srchdate1 == "") {
  117. messageBox("조회시작일자를 선택해 주십시오.","I999");
  118. return "0";
  119. }
  120. var srchdate2 = model.getValue("/root/send/data/srchdate2");
  121. if (srchdate2 == "") {
  122. messageBox("조회종료일자를 선택해 주십시오.","I999");
  123. return "0";
  124. }
  125. }
  126. model.resetInstanceNode("/root/main/curescheinfo/maininfo");
  127. model.removenode("/root/main/cureschelist");
  128. submit("TRAEA04801");
  129. model.refresh();
  130. }
  131. ]]>
  132. </script>
  133. </xhtml:head>
  134. <xhtml:body pagewidth="1211" pageheight="784" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  135. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:5px; top:16px; width:1185px; height:34px; background-color:#fffbf2; border-color:#ffd799; "/>
  136. <datagrid id="grd_list" nodeset="/root/main/curersrvlist/mainlist" caption="처방일자^등록번호^성명^나이/성^연락처^진료과^처방명^예약일시^목적^예약구분" colsep="^" colwidth="90, 100, 100, 82, 97, 100, 299, 120, 82, 74" explorerbar="sort" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:5px; top:80px; width:1185px; height:670px; ">
  137. <col ref="prcpdd" format="yyyy-mm-dd" style="text-align:center; "/>
  138. <col ref="pid" style="text-align:center; "/>
  139. <col ref="hngnm" style="text-align:center; "/>
  140. <col ref="sex" style="text-align:center; "/>
  141. <col ref="tel"/>
  142. <col ref="orddeptnm" type="output"/>
  143. <col ref="prcpnm"/>
  144. <col ref="rsrvdt" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
  145. <col disabled="true" ref="examgoal" type="combo" style="text-align:center; ">
  146. <choices>
  147. <item>
  148. <label>진단</label>
  149. <value>A</value>
  150. </item>
  151. <item>
  152. <label>치료준비</label>
  153. <value>B</value>
  154. </item>
  155. <item>
  156. <label>치료 후</label>
  157. <value>C</value>
  158. </item>
  159. </choices>
  160. </col>
  161. <col ref="rsrvflag"/>
  162. <script type="javascript" ev:event="onaftersort">
  163. <![CDATA[
  164. grd_list.gridToInstance();
  165. ]]>
  166. </script>
  167. </datagrid>
  168. <button id="button6" class="icon_search" style="left:558px; top:24px; width:16px; height:16px; ">
  169. <caption/>
  170. <script type="javascript" ev:event="onclick">
  171. <![CDATA[
  172. model.setValue("/root/send/data2/srchcond", "2");
  173. model.setValue("/root/send/data2/pid", model.getValue("/root/main/cond/pid"));
  174. modal("SPPMC02500", "", "200", "200", "SPPMC02500","/root/send/data2","/root/send");
  175. var sPid = model.getValue("/root/main/patinfo/patinfolist/pid");
  176. var sHngnm = model.getValue("/root/main/patinfo/patinfolist/hngnm");
  177. model.setValue("/root/send/data/srchpid", sPid);
  178. model.setValue("/root/send/data/hngnm", sHngnm);
  179. fGetCureRsrvList();
  180. ]]>
  181. </script>
  182. </button>
  183. <caption id="caption3" class="search_name" style="left:10px; top:25px; width:94px; height:17px; ">조회일자 :</caption>
  184. <button id="btn_req" class="btn1_letter2" style="left:1125px; top:22px; width:56px; height:22px; ">
  185. <caption>조회</caption>
  186. <script type="javascript" ev:event="DOMActivate">
  187. <![CDATA[
  188. fGetCureRsrvList();
  189. ]]>
  190. </script>
  191. </button>
  192. <input id="input36" ref="/root/send/data/srchdate2" class="input_s_essential" inputtype="date" style="left:222px; top:24px; width:100px; height:19px; "/>
  193. <input id="input37" ref="/root/send/data/srchdate1" class="input_s_essential" inputtype="date" style="left:118px; top:24px; width:100px; height:19px; "/>
  194. <caption id="caption58" class="search_name" style="left:364px; top:25px; width:86px; height:17px; ">등록번호 :</caption>
  195. <input id="input19" ref="/root/send/data/srchpid" class="input_search" style="left:455px; top:24px; width:100px; height:19px; ">
  196. <script type="javascript" ev:event="onkeypress">
  197. <![CDATA[
  198. if(event.keyCode == "13"){
  199. setInputNodeCurText();
  200. fGetCureRsrvList();
  201. }
  202. ]]>
  203. </script>
  204. </input>
  205. <group id="grp_btn" style="left:0px; top:752px; width:1190px; height:27px; ">
  206. <button id="btn_save" class="btn4_letter2" style="left:1132px; top:0px; width:56px; height:22px; ">
  207. <caption>출력</caption>
  208. <script type="javascript" ev:event="DOMActivate">
  209. <![CDATA[
  210. var rowcnt = getNodesetCount("/root/main/curersrvlist/mainlist");
  211. if (rowcnt > 0) {
  212. model.makeValue("/root/main/curersrvlist/mainlist[" + 1 + "]/srchdate1", model.getValue("/root/send/data/srchdate1"));
  213. model.makeValue("/root/main/curersrvlist/mainlist[" + 1 + "]/srchdate2", model.getValue("/root/send/data/srchdate2"));
  214. exeReportPreview("RPAEA04800", "XMLSTR", "/root/main/curersrvlist/mainlist");
  215. } else {
  216. messageBox("출력할 내역이", "I004");
  217. }
  218. ]]>
  219. </script>
  220. </button>
  221. </group>
  222. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:204px; height:14px; ">검사예약현황조회</caption>
  223. <caption id="caption23" class="tit_2" style="left:5px; top:60px; width:181px; height:14px; ">검사 예약 현황</caption>
  224. <line id="line1" class="line_1" style="x1:5px; y1:75px; x2:1190px; y2:75px; "/>
  225. <button id="btn_excsave" class="btn2_letter4" visibility="visible" style="left:1126px; top:55px; width:64px; height:19px; ">
  226. <caption>엑셀저장</caption>
  227. <script type="javascript" ev:event="DOMActivate">
  228. <![CDATA[
  229. var fileName = window.fileDialog("save", ",", false, "", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  230. if (fileName != "")
  231. {
  232. grd_list.saveExcel(fileName);
  233. }
  234. ]]>
  235. </script>
  236. </button>
  237. <output id="ipt_patnm" ref="/root/send/data/hngnm" class="output_fix" style="left:580px; top:24px; width:85px; height:19px; "/>
  238. <button id="btn_Previous" class="icon_pre" style="left:102px; top:25px; width:13px; height:15px; ">
  239. <script type="javascript" ev:event="DOMActivate">
  240. <![CDATA[
  241. var baseDate = model.getValue("/root/send/data/srchdate1");
  242. model.setValue("/root/send/data/srchdate1", (baseDate.toDate()).getAddDate(-7).getDateFormat());
  243. model.setValue("/root/send/data/srchdate2", (baseDate.toDate()).getAddDate(-1).getDateFormat());
  244. model.refresh();
  245. fGetCureRsrvList();
  246. ]]>
  247. </script>
  248. <caption/>
  249. </button>
  250. <button id="btn_Next" class="icon_next" style="left:325px; top:25px; width:13px; height:15px; ">
  251. <script type="javascript" ev:event="DOMActivate">
  252. <![CDATA[
  253. var baseDate = model.getValue("/root/send/data/srchdate2");
  254. model.setValue("/root/send/data/srchdate1", (baseDate.toDate()).getAddDate(1).getDateFormat());
  255. model.setValue("/root/send/data/srchdate2", (baseDate.toDate()).getAddDate(7).getDateFormat());
  256. model.refresh();
  257. fGetCureRsrvList();
  258. ]]>
  259. </script>
  260. <caption/>
  261. </button>
  262. </xhtml:body>
  263. </xhtml:html>