SMAEA00300_개인별예약현황조회.xrw 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271
  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. <rsrvprescond>
  11. <rsrvlist>
  12. <rsrvdt/>
  13. <prcpcd/>
  14. <prcpnm/>
  15. <prcpstatcd/>
  16. <prcpdd/>
  17. <orddeptnm/>
  18. <orddrnm/>
  19. <excuroomnm/>
  20. <execrid/>
  21. <usernm/>
  22. <hngnm/>
  23. </rsrvlist>
  24. </rsrvprescond>
  25. <ordprescond>
  26. <ordlist>
  27. <ordno/>
  28. <actorddd/>
  29. <orddeptnm/>
  30. <orddrnm/>
  31. </ordlist>
  32. </ordprescond>
  33. <patinfo>
  34. <patinfolist/>
  35. </patinfo>
  36. <popupendflag/>
  37. </main>
  38. <send>
  39. <srchpid/>
  40. <frdt/>
  41. <todt/>
  42. <req>
  43. <data/>
  44. </req>
  45. <globalinstance>
  46. <instance1/>
  47. </globalinstance>
  48. </send>
  49. <init>
  50. <baseinfo>
  51. <initexecprcpstatcd/>
  52. </baseinfo>
  53. </init>
  54. <hidden>
  55. <source>
  56. <pathngnm/>
  57. </source>
  58. </hidden>
  59. </root>
  60. </instance>
  61. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  62. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  63. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  64. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  65. <!-- 사용자의 기본부서코드를 가져오기 위한 script (검사실에 한정)-->
  66. <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
  67. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  68. <submission id="TRAEA00301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/rsrvprescond"/>
  69. <submission id="TRAEA00302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/ordprescond"/>
  70. <submission id="TRZBC00101"/>
  71. <bind id="bind_prcpstatcd" ref="/root/main/rsrvprescond/rsrvlist/prcpstatcd" readonly="../prcpstatcd!=''"/>
  72. <script type="javascript" ev:event="xforms-ready">
  73. <![CDATA[
  74. aezfSetSuppDeptcd();
  75. zbcfGetCodeList( new Array("M0011"), new Array("/root/init/baseinfo/initexecprcpstatcd") );
  76. submit("TRZBC00101", false);
  77. //ipt_startrsrvdd.value = getCurrentDate();
  78. //ipt_endrsrvdd.value = getCurrentDate().toDate().getAddDate(+1,"M").getDateFormat("YYYYMMDD");
  79. ipt_endrsrvdd.value = getCurrentDate();
  80. ipt_startrsrvdd.value = getCurrentDate().toDate().getAddDate(-1,"Y").getDateFormat("YYYYMMDD");
  81. model.removeNodeset("/root/main/rsrvprescond/rsrvlist");
  82. model.removeNodeset("/root/main/ordprescond/ordlist");
  83. model.refresh();
  84. model.setFocus("ipt_pid");
  85. if (model.getValue("/root/send/srchpid") != ""){
  86. btn_sea.dispatch("DOMActivate");
  87. }else{
  88. var paminfo = getGlobalVariable("paminfo"); //프로그램에 따라 원무정보(paminfo), 환자기본정보(patflag) get
  89. var gv_pid = getGlobalVariable("gv_pid", "A"); //글로벌변수로 넘겨준 등록번호값
  90. if(paminfo != "") //원무 정보(기본 정보)가 있는 경우
  91. {
  92. model.removeNodeset("/root/paminfo"); //여러개의 instance발생을 막기 위해 removeNodeset을 해줘야 함.
  93. model.makeNode("/root/paminfo");
  94. setCSVToNode("/root/paminfo", paminfo);
  95. //상단 정보를 이용하여 프로그램 수행
  96. var pid = model.getValue("/root/paminfo" + "/list/pid");
  97. model.setValue("/root/send/srchpid", pid);
  98. btn_sea.dispatch("DOMActivate");
  99. }
  100. if(gv_pid != "") { //글로벌변수(등록번호)가 있는경우
  101. model.setValue("/root/send/srchpid", gv_pid);
  102. btn_sea.dispatch("DOMActivate");
  103. }
  104. }
  105. ]]>
  106. </script>
  107. </model>
  108. </xhtml:head>
  109. <xhtml:body guideline="1,1195;2,757;2,784;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  110. <group id="group1" style="left:0px; top:0px; width:1194px; height:13px; ">
  111. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:142px; height:14px; ">개인별 예약현황 조회</caption>
  112. </group>
  113. <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  114. <group id="grp_sea" style="left:0px; top:10px; width:1194px; height:35px; vertical-align:top; ">
  115. <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  116. <caption id="caption1" class="search_name" style="left:15px; top:8px; width:86px; height:17px; ">등록번호 :</caption>
  117. <input id="ipt_pid" ref="/root/send/srchpid" class="input_search" navindex="1" maxlength="10" style="left:105px; top:8px; width:100px; height:19px; "/>
  118. <script type="javascript" ev:event="onkeyup">
  119. <![CDATA[
  120. /*
  121. var _str = ipt_pid.currentText;
  122. if ( _str.isNumber() == false ) {
  123. messageBox("등록번호는 숫자만 입력이 가능합니다.", "I999");
  124. ipt_pid.value = "";
  125. }
  126. */
  127. inputEnterKey("btn_sea", "DOMActivate");
  128. ]]>
  129. </script>
  130. <script type="javascript" ev:event="DOMFocusIn">
  131. <![CDATA[
  132. opt_pathngnm.value = "";
  133. ]]>
  134. </script>
  135. <output id="opt_pathngnm" ref="/root/hidden/source/pathngnm" class="output_fix" style="left:232px; top:8px; width:100px; height:19px; "/>
  136. <line id="line13" class="line_4" style="x1:1108px; y1:9px; x2:1108px; y2:31px; "/>
  137. <button id="button61" class="icon_search" navindex="2" style="left:210px; top:9px; width:16px; height:16px; ">
  138. <caption/>
  139. <script type="javascript" ev:event="DOMActivate">
  140. <![CDATA[
  141. /* @group : 개인별 예약현황조회
  142. * @ver : 2007.7.25
  143. * @by : 조원영
  144. * @-----------------------------------
  145. * @type : function
  146. * @access : public
  147. * @desc : 등록번호를 통한 환자 이름 조회
  148. */
  149. modal("SPPMC02500", "", "200", "200", "SPPMC02500", "/root/send/srchpid", "/root/send");
  150. model.setValue( "/root/send/srchpid", model.getValue("/root/main/patinfo/patinfolist/pid") ); // 등록번호 설정
  151. model.setValue( "/root/hidden/source/pathngnm", model.getValue("/root/main/patinfo/patinfolist/hngnm") ); // 환자 이름
  152. model.refresh();
  153. ]]>
  154. </script>
  155. </button>
  156. <button id="btn_sea" class="btn1_letter2" navindex="5" style="left:1124px; top:7px; width:56px; height:22px; ">
  157. <caption>조회</caption>
  158. <script type="javascript" ev:event="DOMActivate">
  159. <![CDATA[
  160. var _pid = model.getValue("root/send/srchpid");
  161. var _frdt = model.getValue("/root/send/frdt");
  162. var _todt = model.getValue("/root/send/todt");
  163. if ( _pid == "" ) {
  164. messageBox("필수입력사항인 등록번호를 입력해 주십시오.", "I999");
  165. model.setFocus("ipt_pid");
  166. }else if ( _frdt == "" && _todt != "" ) {
  167. messageBox("검색하실 날짜 범위의 시작일자를 입력해 주십시오." , "I999");
  168. model.setFocus("ipt_startrsrvdd");
  169. }else if ( _frdt != "" && _todt == "") {
  170. messageBox("검색하실 날짜 범위의 마지막 일자를 입력해 주십시오." , "I999");
  171. model.setFocus("ipt_endrsrvdd");
  172. }else if ( getDateInterval(_frdt, _todt) < 0 ) {
  173. messageBox("입력하신 날짜 범위로는 검색할 수 없습니다. 입력하신 날짜를 확인해 주십시오." , "I999");
  174. model.setFocus("ipt_startrsrvdd");
  175. }else {
  176. submit("TRAEA00301");
  177. submit("TRAEA00302");
  178. if ( grd_rsrvprescond.rows == 1 && grd_ordprescond.rows == 1 ) {
  179. messageBox("입력하신 등록번호/일자에 해당하는 환자의 예약 및 진료 정보가 DB에 존재하지 않습니다.", "I999");
  180. }else{
  181. var _dt = "";
  182. for (var i = 1; i < parseInt(grd_rsrvprescond.rows); i++) {
  183. //_dt = model.getValue("/root/main/rsrvprescond/rsrvlist[" + i + "]/rsrvdt");
  184. //_dt = _dt.toDate("YYYYMMDDhhmm").getDateFormat("YYYY-MM-DD hh:mm");
  185. //model.setValue("/root/main/rsrvprescond/rsrvlist[" + i + "]/rsrvdt", _dt);
  186. model.setValue("/root/hidden/source/pathngnm", model.getValue("/root/main/rsrvprescond/rsrvlist[" + 1 + "]/hngnm"));
  187. }
  188. model.refresh();
  189. }
  190. }
  191. ]]>
  192. </script>
  193. </button>
  194. <caption id="caption5" class="search_name" style="left:380px; top:8px; width:86px; height:17px; ">적용일자</caption>
  195. <input id="ipt_startrsrvdd" ref="/root/send/frdt" class="input_default" navindex="3" inputtype="date" style="left:474px; top:8px; width:100px; height:14px; text-align:center; "/>
  196. <input id="ipt_endrsrvdd" ref="/root/send/todt" class="input_default" navindex="4" inputtype="date" style="left:579px; top:8px; width:100px; height:14px; text-align:center; "/>
  197. </group>
  198. <datagrid id="grd_rsrvprescond" nodeset="/root/main/rsrvprescond/rsrvlist" caption="예약일시^처방코드^처방명^처방상태^처방일자^실시일시^진료과^진료의사^검사/치료실^검사/실시자^예약자^caption1" colsep="^" colwidth="111, 89, 249, 70, 85, 107, 85, 63, 123, 84, 77, 27" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:75px; width:890px; height:664px; ">
  199. <col ref="rsrvdt" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
  200. <col ref="prcpcd"/>
  201. <col ref="prcpnm"/>
  202. <col ref="prcpstatcd" type="combo">
  203. <choices>
  204. <itemset nodeset="/root/init/baseinfo/initexecprcpstatcd/M0011">
  205. <label ref="cdnm"/>
  206. <value ref="cdid"/>
  207. </itemset>
  208. </choices>
  209. </col>
  210. <col ref="prcpdd" format="yyyy-mm-dd" style="text-align:center; "/>
  211. <col ref="execdt" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
  212. <col ref="orddeptnm"/>
  213. <col ref="orddrnm"/>
  214. <col ref="excuroomnm"/>
  215. <col ref="execrid"/>
  216. <col ref="usernm"/>
  217. <col ref="hngnm" visibility="hidden"/>
  218. <script type="javascript" ev:event="onaftersort">
  219. <![CDATA[
  220. grd_rsrvprescond.gridToInstance();
  221. ]]>
  222. </script>
  223. </datagrid>
  224. <button id="button3" class="btn2_letter4" style="left:1129px; top:50px; width:64px; height:19px; ">
  225. <caption>엑셀저장</caption>
  226. <script type="javascript" ev:event="DOMActivate">
  227. <![CDATA[
  228. var fileName = window.fileDialog("save", ",", false, "예약현황", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  229. var fileName2 = window.fileDialog("save", ",", false, "진료현황", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  230. if (fileName != ""){
  231. grd_rsrvprescond.saveExcel(fileName);
  232. grd_ordprescond.saveExcel(fileName2);
  233. }
  234. ]]>
  235. </script>
  236. </button>
  237. <line id="line1" class="line_1" style="x1:0px; y1:70px; x2:890px; y2:70px; "/>
  238. <datagrid id="grd_ordprescond" nodeset="/root/main/ordprescond/ordlist" caption="진료일자^진료과^진료의" colsep="^" colwidth="110, 85, 56" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="true" style="left:895px; top:75px; width:298px; height:664px; ">
  239. <col ref="orddd" format="yyyy-mm-dd hh:nn"/>
  240. <col ref="orddeptnm"/>
  241. <col ref="orddrnm"/>
  242. </datagrid>
  243. <line id="line2" class="line_1" style="x1:895px; y1:70px; x2:1193px; y2:70px; "/>
  244. <caption id="caption2" class="tit_2" style="left:5px; top:54px; width:97px; height:13px; ">예약현황</caption>
  245. <caption id="caption3" class="tit_2" style="left:898px; top:53px; width:97px; height:13px; ">진료현황</caption>
  246. </group>
  247. <group id="grp_btn" style="left:0px; top:757px; width:1195px; height:27px; ">
  248. <button id="btn_cls" class="btn4_letter2" style="left:1137px; top:3px; width:56px; height:22px; ">
  249. <caption>닫기</caption>
  250. <close ev:event="DOMActivate"/>
  251. </button>
  252. </group>
  253. </xhtml:body>
  254. </xhtml:html>