SPPMB00901_의사휴진일정입력.xrw 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.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. </main>
  11. <send>
  12. <orddrid/>
  13. <orddeptcd/>
  14. <fromdd/>
  15. <todd/>
  16. <ordendflag/>
  17. <iupdtorddeptcd/>
  18. <iupdtorddrid/>
  19. </send>
  20. <init>
  21. </init>
  22. <hidden>
  23. </hidden>
  24. <temp/>
  25. </root>
  26. </instance>
  27. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  28. <script type="javascript" ev:event="xforms-ready">
  29. <![CDATA[
  30. zbcfGetCodeList(new Array("P0037","P0406"), new Array("/root/init/P0037list","/root/init/P0406list"));
  31. pamGetDeptCDDrIDList();
  32. model.refresh();
  33. fInitialize();
  34. ]]>
  35. </script>
  36. <submission id="TRPAM00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/hidden/tmp"/>
  37. <submission id="TRPMB02001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/norsrv"/>
  38. <submission id="TXPMB02002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/updatedata" resultref="/root/main/result"/>
  39. </model>
  40. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  41. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  42. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  43. <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
  44. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  45. <script type="javascript">
  46. <![CDATA[
  47. function fInitialize(){
  48. model.resetInstanceNode("/root/send");
  49. model.resetInstanceNode("/root/main");
  50. model.resetInstanceNode("/root/main/norsrvlist");
  51. model.refresh();
  52. }
  53. //미예약 현황 조회
  54. function fSearchOutNoRsrvList(){
  55. model.resetInstanceNode("/root/send");
  56. model.setValue("/root/send/orddrid", model.getValue("/root/main/orddrid"));
  57. model.setValue("/root/send/orddeptcd", model.getValue("/root/main/orddeptcd"));
  58. if(submit("TRPMB02001")) {
  59. var rows = grd_rsrvchg.rows;
  60. var fixedRows = grd_rsrvchg.fixedRows;
  61. var dataRows = rows - fixedRows;
  62. for (var i = dataRows ; i>0; i--){
  63. if(model.getValue("/root/main/norsrv/norsrvlist["+i+"]/outrsrvupdtendyn") == ""){
  64. model.setValue("/root/main/norsrv/norsrvlist["+i+"]/outrsrvupdtendyn","N");
  65. }
  66. if(model.getValue("/root/main/norsrv/norsrvlist["+i+"]/outrsrvupdtendyn2") == ""){
  67. model.setValue("/root/main/norsrv/norsrvlist["+i+"]/outrsrvupdtendyn2","N");
  68. }
  69. if(model.getValue("/root/main/norsrv/norsrvlist["+i+"]/outrsrvupdtendyn3") == ""){
  70. model.setValue("/root/main/norsrv/norsrvlist["+i+"]/outrsrvupdtendyn3","N");
  71. }
  72. }
  73. }
  74. }
  75. //외래예역변경완료
  76. function fUpdateOutRsrvChg(){
  77. //체크된 데이터만 가져온다.
  78. var nodeList = instance1.selectNodes("/root/main/norsrv/norsrvlist[check='Y']");
  79. var rCSV = getNodeListCSV(nodeList);
  80. if( rCSV == "" || rCSV == null || rCSV == undefined){
  81. //messageBox("미예약 항목이 선택되지 않았습니다.", "E999", "");
  82. messageBox("변경할 미예약 내역이 선택되지", "E007");
  83. return false;
  84. }
  85. if(messageBox("변경된 예약내역을 반영하시겠습니까?", "Q999") != 6) return false;
  86. model.resetInstanceNode("/root/send/updatedata");
  87. //model.setValue("/root/send/updatedata/datalist", rCSV);
  88. setCSVToNode("/root/temp", rCSV);
  89. instance1.selectSingleNode("/root/temp").xml;
  90. model.copyNode("/root/send/updatedata", "/root/temp");
  91. if(submit("TXPMB02002")){
  92. //정상적으로 처리되었습니다.
  93. messageBox("정상적으로 ","I001");
  94. var rows = grd_rsrvchg.rows;
  95. var fixedRows = grd_rsrvchg.fixedRows;
  96. var dataRows = rows - fixedRows;
  97. for (var i = dataRows ; i>0; i--){
  98. if (model.getValue("/root/main/norsrv/norsrvlist["+i+"]/check") == "Y"){
  99. model.setValue("/root/main/norsrv/norsrvlist["+i+"]/check","N");
  100. }
  101. }
  102. model.removenode("/root/temp");
  103. model.makeNode("/root/temp");
  104. }
  105. model.refresh();
  106. }
  107. ]]>
  108. </script>
  109. </xhtml:head>
  110. <xhtml:body pagewidth="400" pageheight="230" guideline="1,880;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  111. <group id="group1" style="left:0px; top:0px; width:375px; height:13px; ">
  112. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:137px; height:14px; ">의사휴진일정입력</caption>
  113. </group>
  114. <group id="group3" scroll="auto" style="left:0px; top:13px; width:375px; height:182px; ">
  115. <caption id="caption1" class="tit_2" style="left:5px; top:9px; width:95px; height:13px; ">휴진일정내역</caption>
  116. <line id="line1" class="line_1" style="x1:0px; y1:24px; x2:375px; y2:24px; "/>
  117. <caption id="caption2" class="cell_1" style="left:3px; top:29px; width:100px; height:23px; vertical-align:middle; ">진료과</caption>
  118. <caption id="caption3" class="cell_1" style="left:3px; top:53px; width:100px; height:23px; vertical-align:middle; ">의사명</caption>
  119. <caption id="caption4" class="cell_1" style="left:3px; top:77px; width:100px; height:23px; vertical-align:middle; ">휴진기간</caption>
  120. <input id="ipt_insufromdd" ref="/root/send/fromdd" class="input_default" inputtype="date" style="left:105px; top:79px; width:121px; height:19px; "/>
  121. <input id="input1" ref="/root/send/todd" class="input_default" inputtype="date" style="left:238px; top:79px; width:121px; height:19px; "/>
  122. <caption id="caption71" style="left:228px; top:79px; width:10px; height:20px; vertical-align:middle; ">-</caption>
  123. <caption id="caption5" class="cell_1" style="left:3px; top:101px; width:100px; height:23px; vertical-align:middle; ">휴진구분</caption>
  124. <select1 id="combo1" ref="/root/send/ordendflag" appearance="minimal" style="left:105px; top:104px; width:120px; height:19px; ">
  125. <choices>
  126. <itemset nodeset="/root/init/orddrid/orddridlist">
  127. <label ref="nm"/>
  128. <value ref="cd"/>
  129. </itemset>
  130. </choices>
  131. </select1>
  132. <caption id="caption7" class="cell_1" style="left:3px; top:125px; width:100px; height:23px; vertical-align:middle; ">입원대진의사</caption>
  133. <select1 id="combo2" ref="/root/send/iupdtorddeptcd" appearance="minimal" style="left:105px; top:128px; width:120px; height:19px; ">
  134. <choices>
  135. <itemset nodeset="/root/init/orddeptcd/orddeptcdlist">
  136. <label ref="nm"/>
  137. <value ref="cd"/>
  138. </itemset>
  139. </choices>
  140. <script type="javascript" ev:event="xforms-value-changed">
  141. <![CDATA[
  142. cmb_orddrid.choices.itemset.attribute("nodeset") = "/root/init/orddrid/orddridlist[dp = '" + cmb_orddeptcd.value + "']";
  143. model.setValue("/root/main/orddrid", "");
  144. cmb_orddrid.refresh();
  145. ]]>
  146. </script>
  147. </select1>
  148. <select1 id="combo3" ref="/root/send/iupdtorddrid" appearance="minimal" style="left:228px; top:128px; width:120px; height:19px; ">
  149. <choices>
  150. <itemset nodeset="/root/init/orddeptcd/orddeptcdlist">
  151. <label ref="nm"/>
  152. <value ref="cd"/>
  153. </itemset>
  154. </choices>
  155. <script type="javascript" ev:event="xforms-value-changed">
  156. <![CDATA[
  157. cmb_orddrid.choices.itemset.attribute("nodeset") = "/root/init/orddrid/orddridlist[dp = '" + cmb_orddeptcd.value + "']";
  158. model.setValue("/root/main/orddrid", "");
  159. cmb_orddrid.refresh();
  160. ]]>
  161. </script>
  162. </select1>
  163. <select1 id="combo4" ref="/root/send/orddeptcd" appearance="minimal" style="left:105px; top:30px; width:120px; height:19px; ">
  164. <choices>
  165. <itemset nodeset="/root/init/orddeptcd/orddeptcdlist">
  166. <label ref="nm"/>
  167. <value ref="cd"/>
  168. </itemset>
  169. </choices>
  170. <script type="javascript" ev:event="xforms-value-changed">
  171. <![CDATA[
  172. cmb_orddrid.choices.itemset.attribute("nodeset") = "/root/init/orddrid/orddridlist[dp = '" + cmb_orddeptcd.value + "']";
  173. model.setValue("/root/main/orddrid", "");
  174. cmb_orddrid.refresh();
  175. ]]>
  176. </script>
  177. </select1>
  178. <select1 id="combo5" ref="/root/send/orddrid" appearance="minimal" style="left:105px; top:55px; width:120px; height:19px; ">
  179. <choices>
  180. <itemset nodeset="/root/init/orddeptcd/orddeptcdlist">
  181. <label ref="nm"/>
  182. <value ref="cd"/>
  183. </itemset>
  184. </choices>
  185. <script type="javascript" ev:event="xforms-value-changed">
  186. <![CDATA[
  187. cmb_orddrid.choices.itemset.attribute("nodeset") = "/root/init/orddrid/orddridlist[dp = '" + cmb_orddeptcd.value + "']";
  188. model.setValue("/root/main/orddrid", "");
  189. cmb_orddrid.refresh();
  190. ]]>
  191. </script>
  192. </select1>
  193. <line id="line32" class="line_6" style="x1:0px; y1:152px; x2:375px; y2:152px; "/>
  194. </group>
  195. <button id="btn_saveSche7" class="btn4_letter2" style="left:318px; top:170px; width:56px; height:22px; ">
  196. <caption>닫기</caption>
  197. <script type="javascript" ev:event="DOMActivate">
  198. <![CDATA[
  199. model.close();
  200. ]]>
  201. </script>
  202. </button>
  203. <button id="btn_outrsrvchg" class="btn4_letter2" style="left:260px; top:170px; width:56px; height:22px; ">
  204. <caption>저장</caption>
  205. <script type="javascript" ev:event="DOMActivate">
  206. <![CDATA[
  207. fUpdateOutRsrvChg();
  208. ]]>
  209. </script>
  210. </button>
  211. <button id="button1" class="btn4_letter3" style="left:190px; top:170px; width:68px; height:22px; ">
  212. <caption>초기화</caption>
  213. <script type="javascript" ev:event="DOMActivate">
  214. <![CDATA[
  215. fInitialize();
  216. ]]>
  217. </script>
  218. </button>
  219. </xhtml:body>
  220. </xhtml:html>