SMAEA04400_예약취소 및 변경내역조회(통합예약).xrw 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330
  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. <prcsprescondlist>
  11. <prcsprescond>
  12. <pid/>
  13. <hngnm/>
  14. <prcpdd/>
  15. <prcpdept/>
  16. <prcpcd/>
  17. <prcpnm/>
  18. <execprcpstatcd/>
  19. <state/>
  20. <excuroom/>
  21. <rsrvdt/>
  22. <updtaft/>
  23. <execdt/>
  24. <cnclresncd/>
  25. <rsrvrid/>
  26. <execprcpuniqno/>
  27. </prcsprescond>
  28. <patinfo>
  29. <patinfolist/>
  30. </patinfo>
  31. </prcsprescondlist>
  32. <patinfo>
  33. <patinfolist/>
  34. </patinfo>
  35. <popupendflag/>
  36. </main>
  37. <send>
  38. <ddflag/>
  39. <fromdd/>
  40. <todd/>
  41. <suppdeptcd/>
  42. <orddeptcd/>
  43. <wardcd/>
  44. <pid/>
  45. <juminno/>
  46. <patnm/>
  47. <gb/>
  48. <excuroomcd/>
  49. <globalinstance>
  50. <instance1/>
  51. </globalinstance>
  52. </send>
  53. <init>
  54. <cmb_info>
  55. <initexecroom>
  56. <excuroomcdid/>
  57. <excuroomcdnm/>
  58. </initexecroom>
  59. <suppdept>
  60. <suppdeptcd/>
  61. <depthngnm/>
  62. </suppdept>
  63. </cmb_info>
  64. <baseinfo>
  65. <initexecprcpstatcd/>
  66. </baseinfo>
  67. </init>
  68. <hidden/>
  69. <temp/>
  70. </root>
  71. </instance>
  72. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  73. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  74. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  75. <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
  76. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  77. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  78. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  79. <script type="javascript">
  80. <![CDATA[
  81. function readfunc() {
  82. var _frdt = model.getValue("/root/send/fromdd");
  83. var _todt = model.getValue("/root/send/todd");
  84. if ( _frdt == "" && _todt != "") {
  85. messageBox("검색하실 날짜 범위의 시작 일자를 입력해 주십시오." , "I999");
  86. model.setFocus("ipt_startrsrvdd");
  87. return;
  88. }
  89. if ( _frdt != "" && _todt == "") {
  90. messageBox("검색하실 날짜 범위의 마지막 일자를 입력해 주십시오." , "I999");
  91. model.setFocus("ipt_endrsrvdd");
  92. return;
  93. }
  94. if ( getDateInterval(_frdt, _todt) < 0 ) {
  95. messageBox("입력하신 날짜 범위로는 검색할 수 없습니다. 기준일자를 확인해 주십시오." , "I999");
  96. model.setFocus("ipt_startrsrvdd");
  97. return;
  98. }
  99. /*
  100. if (model.getValue("/root/send/pid") == "" && model.getValue("/root/send/juminno") == ""){
  101. messageBox("등록번호나 주민번호를 입력한 후 조회하시기 바랍니다.", "E999", "");
  102. return;
  103. }
  104. */
  105. if (submit("TRAEA04401")){
  106. model.setValue("/root/send/pid", model.getValue("/root/main/prcsprescondlist/patinfolist/pid"));
  107. model.setValue("/root/send/juminno", model.getValue("/root/main/prcsprescondlist/patinfolist/juminno"));
  108. grd_rsrvcnclprescond.refresh();
  109. for (var i = 1; i < grd_rsrvcnclprescond.rows; i++){
  110. if (model.getValue("/root/main/prcsprescondlist/prcsprescond[" + i + "]/state") == "취소" ||
  111. model.getValue("/root/main/prcsprescondlist/prcsprescond[" + i + "]/execprcpstatcd") == "D/C"){ //2011.01.21 취소내역추가조회 - 박재영
  112. grd_rsrvcnclprescond.rowstyle(i, "data", "background-color") = "#ffcc99";
  113. }else{
  114. grd_rsrvcnclprescond.rowstyle(i, "data", "background-color") = "#ffffff";
  115. }
  116. }
  117. if (model.getValue("/root/send/pid") != "" && model.getValue("") != "/root/send/juminno"){
  118. grd_rsrvcnclprescond.colHidden(1) = true;
  119. grd_rsrvcnclprescond.colHidden(2) = true;
  120. }else{
  121. grd_rsrvcnclprescond.colHidden(1) = false;
  122. grd_rsrvcnclprescond.colHidden(2) = false;
  123. }
  124. }
  125. model.refresh();
  126. }
  127. ]]>
  128. </script>
  129. <!-- 예약변경리스트조회-->
  130. <submission id="TRAEA04401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="root/main/prcsprescondlist"/>
  131. <!--공통코드 조회-->
  132. <submission id="TRAEA00802" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/cmb_info"/>
  133. <submission id="TRAEA01301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/globalinstance" replace="instance" resultref="/root/init/cmb_info"/>
  134. <script type="javascript" ev:event="xforms-ready">
  135. <![CDATA[
  136. //처방상태 공통코드 갖고오기
  137. //zbcfGetCodeList( new Array("M0011"), new Array("/root/init/baseinfo/initexecprcpstatcd") );
  138. //submit("TRZBC00101", false);
  139. aezfSetSuppDeptcd();
  140. //submit("TRAEA00802");
  141. if (model.getValue("/root/send/pid") != ""){
  142. model.setValue("/root/send/fromdd", getCurrentDate().toDate().getAddDate(-3,"M").getDateFormat("YYYYMMDD"));
  143. }else{
  144. model.setValue("/root/send/fromdd", getCurrentDate().toDate().getAddDate(-5,"D").getDateFormat("YYYYMMDD"));
  145. }
  146. model.setValue("/root/send/todd", getCurrentDate());
  147. submit("TRAEA01301", false); // 검사치료실 가져오기
  148. if( instance1.selectSingleNode("/root/init/cmb_info/suppdept[suppdeptcd='" + model.getValue("/root/send/globalinstance/instance1") + "']") == null ){
  149. model.setValue("/root/send/globalinstance/instance1", "");
  150. }
  151. model.refresh();
  152. model.removeNodeset("/root/main/rsrvcnclprescond/rsrvcncllist");
  153. model.setValue("/root/send/gb", "1");
  154. if (model.getValue("/root/send/pid") != ""){
  155. grd_rsrvcnclprescond.colHidden(1) = true;
  156. grd_rsrvcnclprescond.colHidden(2) = true;
  157. model.setValue("/root/send/globalinstance/instance1", "");
  158. btn_sea.dispatch("DOMActivate");
  159. }else{
  160. grd_rsrvcnclprescond.colHidden(1) = false;
  161. grd_rsrvcnclprescond.colHidden(2) = false;
  162. model.setFocus("ipt_pid");
  163. }
  164. model.refresh();
  165. ]]>
  166. </script>
  167. </model>
  168. </xhtml:head>
  169. <xhtml:body guideline="1,1195;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  170. <group id="group1" style="left:0px; top:0px; width:1194px; height:13px; ">
  171. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:168px; height:14px; ">검사 예약 변경 조회</caption>
  172. </group>
  173. <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  174. <group id="grp_sea" style="left:0px; top:10px; width:1194px; height:60px; vertical-align:top; ">
  175. <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:57px; background-color:#fffbf2; border-color:#ffd799; "/>
  176. <caption id="caption3" class="search_name" style="left:15px; top:18px; width:86px; height:17px; ">처방일자 :</caption>
  177. <input id="ipt_startrsrvdd" ref="/root/send/fromdd" class="input_default" navindex="1" inputtype="date" style="left:110px; top:18px; width:100px; height:19px; text-align:center; "/>
  178. <input id="ipt_endrsrvdd" ref="/root/send/todd" class="input_default" navindex="2" inputtype="date" style="left:225px; top:18px; width:100px; height:19px; text-align:center; "/>
  179. <caption id="caption4" class="search_name" style="left:395px; top:35px; width:86px; height:17px; ">등록번호 :</caption>
  180. <button id="btn_sea" class="btn1_letter2" style="left:1120px; top:20px; width:56px; height:22px; ">
  181. <caption>조회</caption>
  182. <script type="javascript" ev:event="DOMActivate">
  183. <![CDATA[
  184. readfunc();
  185. ]]>
  186. </script>
  187. </button>
  188. <input id="ipt_pid" ref="/root/send/pid" navindex="3" style="left:490px; top:35px; width:125px; height:19px; ">
  189. <script type="javascript" ev:event="onkeyup">
  190. <![CDATA[
  191. if(event.keyCode == "13") {
  192. inputEnterKey("button1","DOMActivate");
  193. }
  194. ]]>
  195. </script>
  196. </input>
  197. <caption id="caption1" class="search_name" style="left:660px; top:35px; width:86px; height:17px; ">주민번호 :</caption>
  198. <input id="input2" ref="/root/send/juminno" navindex="4" format="999999-9999999" style="left:775px; top:35px; width:125px; height:19px; text-align:center; ">
  199. <script type="javascript" ev:event="xforms-value-changed">
  200. <![CDATA[
  201. if (model.getValue("/root/send/juminno") != ""){
  202. model.setValue("/root/send/gb", "2");
  203. model.refresh();
  204. btn_sea.dispatch("DOMActivate");
  205. }
  206. ]]>
  207. </script>
  208. </input>
  209. <caption id="caption2" style="left:213px; top:20px; width:10px; height:20px; ">-</caption>
  210. <button id="button1" class="btn1_letter2" visibility="hidden" style="left:1030px; top:30px; width:56px; height:22px; ">
  211. <caption>임시</caption>
  212. <script type="javascript" ev:event="DOMActivate">
  213. <![CDATA[
  214. model.setValue("/root/send/gb", "1");
  215. model.refresh();
  216. btn_sea.dispatch("DOMActivate");
  217. ]]>
  218. </script>
  219. </button>
  220. <button id="button2" class="btn1_letter2" visibility="hidden" style="left:970px; top:30px; width:56px; height:22px; ">
  221. <caption>임시</caption>
  222. <script type="javascript" ev:event="DOMActivate">
  223. <![CDATA[
  224. model.setValue("/root/send/gb", "2");
  225. model.refresh();
  226. btn_sea.dispatch("DOMActivate");
  227. ]]>
  228. </script>
  229. </button>
  230. <caption id="caption10" class="search_name" style="left:395px; top:10px; width:86px; height:17px; ">지원부서 :</caption>
  231. <caption id="caption12" class="search_name" style="left:660px; top:10px; width:106px; height:17px; ">검사/치료실 :</caption>
  232. <select1 id="cmb_deptcd" ref="/root/send/globalinstance/instance1" appearance="minimal" editmode="inputsearch" style="left:490px; top:10px; width:125px; height:19px; ">
  233. <choices>
  234. <itemset nodeset="/root/init/cmb_info/suppdept">
  235. <label ref="depthngnm"/>
  236. <value ref="suppdeptcd"/>
  237. </itemset>
  238. </choices>
  239. <script type="javascript" ev:event="xforms-value-changed">
  240. <![CDATA[
  241. /*
  242. model.setValue("/root/send/globalinstance/instance1", cmb_deptcd.value);
  243. submit("TRAEA01301", false);
  244. btn_sea.dispatch("DOMActivate");
  245. */
  246. ]]>
  247. </script>
  248. </select1>
  249. <select1 id="cmb_excuroom" ref="/root/send/excuroomcd" class="combo_default" navindex="1" appearance="minimal" editmode="inputsearch" style="left:775px; top:10px; width:125px; height:19px; ">
  250. <choices>
  251. <itemset nodeset="/root/init/cmb_info/initexecroom">
  252. <label ref="excuroomcdnm"/>
  253. <value ref="excuroomcdid"/>
  254. </itemset>
  255. </choices>
  256. <script type="javascript" ev:event="xforms-value-changed">
  257. <![CDATA[
  258. btn_sea.dispatch("DOMActivate");
  259. ]]>
  260. </script>
  261. </select1>
  262. <button id="button61" class="icon_search" navindex="2" style="left:622px; top:35px; width:16px; height:16px; ">
  263. <caption/>
  264. <script type="javascript" ev:event="DOMActivate">
  265. <![CDATA[
  266. /* @group : 개인별 예약현황조회
  267. * @ver : 2007.7.25
  268. * @by : 조원영
  269. * @-----------------------------------
  270. * @type : function
  271. * @access : public
  272. * @desc : 등록번호를 통한 환자 이름 조회
  273. */
  274. modal("SPPMC02500", "", "200", "200", "SPPMC02500", "/root/send/pid", "/root/send");
  275. model.setValue("/root/send/pid", model.getValue("/root/main/patinfo/patinfolist/pid") ); // 등록번호 설정
  276. model.setValue("/root/send/gb", "1");
  277. model.refresh();
  278. btn_sea.dispatch("DOMActivate");
  279. ]]>
  280. </script>
  281. </button>
  282. </group>
  283. <line id="line2" class="line_1" style="x1:0px; y1:132px; x2:1195px; y2:132px; "/>
  284. <datagrid id="grd_rsrvcnclprescond" nodeset="/root/main/prcsprescondlist/prcsprescond" caption="등록번호^환자명^처방일자^진료과(진료의)^처방코드^처방명^처방상태^구분^치료실^예약일시^변경일시^실시일시^사유^예약자^치료사^2" colsep="^" colwidth="84, 70, 79, 153, 99, 210, 69, 49, 110, 116, 114, 125, 153, 55, 70, 21" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:135px; width:1193px; height:607px; ">
  285. <col ref="pid"/>
  286. <col ref="hngnm"/>
  287. <col ref="prcpdd" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
  288. <col ref="prcpdept" format="yyyy-mm-dd hh:nn" style="text-align:left; "/>
  289. <col ref="prcpcd" format="yyyy-mm-dd hh:nn" style="text-align:left; "/>
  290. <col ref="prcpnm" style="text-align:left; "/>
  291. <col ref="execprcpstatcd" style="text-align:left; "/>
  292. <col ref="state"/>
  293. <col ref="excuroom"/>
  294. <col ref="rsrvdt" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
  295. <col ref="updtaft" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
  296. <col ref="execdt" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; "/>
  297. <col ref="cnclresncd"/>
  298. <col ref="rsrvrid"/>
  299. <col ref="execrid" style="text-align:left; "/>
  300. <col ref="execprcpuniqno" visibility="hidden"/>
  301. </datagrid>
  302. <caption id="caption9" class="tit_2" style="left:0px; top:115px; width:121px; height:13px; ">예약변경내역현황</caption>
  303. <input id="opt_addr" ref="/root/main/prcsprescondlist/patinfolist/addr" class="output_fix" disabled="true" style="left:609px; top:82px; width:583px; height:19px; "/>
  304. <input id="opt_sex" ref="/root/main/prcsprescondlist/patinfolist/sex" class="output_fix" disabled="true" style="left:208px; top:82px; width:20px; height:19px; text-align:center; "/>
  305. <line id="line12" class="line_1" style="x1:0px; y1:75px; x2:1195px; y2:74px; "/>
  306. <input id="opt_hngnm" ref="/root/main/prcsprescondlist/patinfolist/hngnm" class="output_fix" disabled="true" style="left:52px; top:82px; width:85px; height:19px; "/>
  307. <caption id="caption11" class="cell_1" style="left:231px; top:80px; width:50px; height:23px; vertical-align:middle; ">집전화</caption>
  308. <input id="opt_hometel" ref="/root/main/prcsprescondlist/patinfolist/hometel" class="output_fix" disabled="true" style="left:282px; top:82px; width:95px; height:19px; "/>
  309. <caption id="caption5" class="cell_1" style="left:0px; top:80px; width:50px; height:23px; vertical-align:middle; ">환자명</caption>
  310. <input id="opt_mpphontel" ref="/root/main/prcsprescondlist/patinfolist/mpphontel" class="output_fix" disabled="true" style="left:431px; top:82px; width:124px; height:19px; "/>
  311. <caption id="caption16" class="cell_1" style="left:140px; top:80px; width:43px; height:23px; vertical-align:middle; ">S/A</caption>
  312. <caption id="caption7" class="cell_1" style="left:558px; top:80px; width:50px; height:23px; vertical-align:middle; ">집주소</caption>
  313. <input id="opt_age" ref="/root/main/prcsprescondlist/patinfolist/age" class="output_fix" disabled="true" style="left:184px; top:82px; width:25px; height:19px; text-align:center; "/>
  314. <caption id="caption8" class="cell_1" style="left:380px; top:80px; width:50px; height:23px; vertical-align:middle; ">핸드폰</caption>
  315. </group>
  316. <line id="line13" class="line_4" style="x1:1105px; y1:30px; x2:1105px; y2:77px; "/>
  317. <group id="grp_btn" style="left:0px; top:757px; width:1195px; height:27px; ">
  318. <button id="btn_prt" class="btn6_letter2" visibility="hidden" style="left:0px; top:5px; width:56px; height:22px; ">
  319. <caption>출력</caption>
  320. </button>
  321. </group>
  322. <line id="line1" class="line_4" style="x1:350px; y1:30px; x2:350px; y2:77px; "/>
  323. </xhtml:body>
  324. </xhtml:html>