SPPMB01100_의사일정복사.xrw 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  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. <orgorddeptcd/>
  11. <orgorddrid/>
  12. <copyorddeptcd/>
  13. <copyorddrid/>
  14. <result/>
  15. </main>
  16. <send>
  17. <orgorddeptcd/>
  18. <orgorddrid/>
  19. <copyorddeptcd/>
  20. <copyorddrid/>
  21. </send>
  22. <init>
  23. <orddeptcd>
  24. <orddeptcdlist>
  25. <cd/>
  26. <nm/>
  27. </orddeptcdlist>
  28. </orddeptcd>
  29. <orddrid>
  30. <orddridlist>
  31. <cd/>
  32. <nm/>
  33. <dp/>
  34. <sp/>
  35. </orddridlist>
  36. </orddrid>
  37. </init>
  38. <hidden/>
  39. <temp/>
  40. </root>
  41. </instance>
  42. <submission id="TRPAM00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/hidden/tmp"/>
  43. <submission id="TXPMB01101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/result"/>
  44. </model>
  45. <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
  46. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  47. <script type="javascript" ev:event="xforms-ready">
  48. <![CDATA[
  49. pamGetDeptCDDrIDList();
  50. if( model.getValue("/root/temp/orddeptcd") != "" ){
  51. model.setValue("/root/main/orgorddeptcd", model.getValue("/root/temp/orddeptcd"));
  52. cmb_orgorddrid.choices.itemset.attribute("nodeset") = "/root/init/orddrid/orddridlist[dp = '" + model.getValue("/root/main/orgorddeptcd") + "']";
  53. //cmb_orgorddrid.refresh();
  54. model.setValue("/root/main/orgorddrid", model.getValue("/root/temp/orddrid"));
  55. }
  56. model.refresh();
  57. ]]>
  58. </script>
  59. <script type="javascript">
  60. <![CDATA[
  61. //function fChangeDrNameNodeSet(orddeptcd){
  62. //}
  63. ]]>
  64. </script>
  65. </xhtml:head>
  66. <xhtml:body pagewidth="274" pageheight="252" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
  67. <group id="grp_biz" scroll="auto" style="left:0px; top:0px; width:254px; height:205px; ">
  68. <caption id="caption7" class="cell_1" style="left:0px; top:180px; width:100px; height:23px; vertical-align:middle; ">의사명</caption>
  69. <caption id="caption6" class="cell_1" style="left:0px; top:54px; width:100px; height:23px; vertical-align:middle; ">의사명</caption>
  70. <caption id="caption1" class="tit_2" style="left:5px; top:10px; width:121px; height:13px; ">의사일정복사원본</caption>
  71. <line id="line1" class="line_1" style="x1:0px; y1:25px; x2:253px; y2:25px; "/>
  72. <line id="line2" class="line_2" style="x1:0px; y1:52px; x2:253px; y2:52px; "/>
  73. <caption id="caption5" class="tit_2" style="left:5px; top:136px; width:121px; height:13px; ">의사일정복사대상</caption>
  74. <line id="line5" class="line_1" style="x1:0px; y1:151px; x2:253px; y2:151px; "/>
  75. <line id="line6" class="line_3" style="x1:0px; y1:76px; x2:253px; y2:76px; "/>
  76. <select1 id="cmb_copyorddeptcd" ref="/root/main/copyorddeptcd" class="combo_default" appearance="minimal" style="left:103px; top:158px; width:150px; height:19px; ">
  77. <choices>
  78. <itemset nodeset="/root/init/orddeptcd/orddeptcdlist">
  79. <label ref="nm"/>
  80. <value ref="cd"/>
  81. </itemset>
  82. </choices>
  83. <script type="javascript" ev:event="xforms-value-changed">
  84. <![CDATA[
  85. cmb_copyorddrid.choices.itemset.attribute("nodeset") = "/root/init/orddrid/orddridlist[dp = '" + cmb_copyorddeptcd.value + "']";
  86. model.setValue("/root/main/copyorddrid", "");
  87. //cmb_copyorddrid.refresh();
  88. model.refresh();
  89. ]]>
  90. </script>
  91. </select1>
  92. <line id="line3" class="line_2" style="x1:0px; y1:178px; x2:253px; y2:178px; "/>
  93. <select1 id="cmb_copyorddrid" ref="/root/main/copyorddrid" class="combo_default" appearance="minimal" style="left:103px; top:182px; width:150px; height:19px; ">
  94. <choices>
  95. <itemset nodeset="/root/init/orddrid/orddridlist">
  96. <label ref="nm"/>
  97. <value ref="cd"/>
  98. </itemset>
  99. </choices>
  100. </select1>
  101. <caption id="caption2" class="cell_1" style="left:0px; top:30px; width:100px; height:23px; vertical-align:middle; ">진료과</caption>
  102. <caption id="caption4" class="cell_1" style="left:0px; top:156px; width:100px; height:23px; vertical-align:middle; ">진료과</caption>
  103. <select1 id="cmb_orgorddeptcd" ref="/root/main/orgorddeptcd" class="combo_default" appearance="minimal" style="left:103px; top:31px; width:150px; height:19px; ">
  104. <choices>
  105. <itemset nodeset="/root/init/orddeptcd/orddeptcdlist">
  106. <label ref="nm"/>
  107. <value ref="cd"/>
  108. </itemset>
  109. </choices>
  110. <script type="javascript" ev:event="xforms-value-changed">
  111. <![CDATA[
  112. cmb_orgorddrid.choices.itemset.attribute("nodeset") = "/root/init/orddrid/orddridlist[dp = '" + cmb_orgorddeptcd.value + "']";
  113. model.setValue("/root/main/orgorddrid", "");
  114. //cmb_orgorddrid.refresh();
  115. model.refresh();
  116. ]]>
  117. </script>
  118. </select1>
  119. <select1 id="cmb_orgorddrid" ref="/root/main/orgorddrid" class="combo_default" appearance="minimal" style="left:103px; top:55px; width:150px; height:19px; ">
  120. <choices>
  121. <itemset nodeset="/root/init/orddrid/orddridlist">
  122. <label ref="nm"/>
  123. <value ref="cd"/>
  124. </itemset>
  125. </choices>
  126. </select1>
  127. <button id="button1" class="icon_bottom" style="left:115px; top:100px; width:26px; height:19px; ">
  128. <caption/>
  129. </button>
  130. <line id="line4" class="line_3" style="x1:0px; y1:203px; x2:253px; y2:203px; "/>
  131. </group>
  132. <group id="grp_btn" scroll="auto" style="left:0px; top:205px; width:254px; height:27px; ">
  133. <button id="button4" class="btn4_letter2" style="left:139px; top:5px; width:56px; height:22px; ">
  134. <caption>복사</caption>
  135. <script type="javascript" ev:event="DOMActivate">
  136. <![CDATA[
  137. var orgorddeptcd = model.getValue("/root/main/orgorddeptcd");
  138. var orgorddrid = model.getValue("/root/main/orgorddrid");
  139. var copyorddeptcd = model.getValue("/root/main/copyorddeptcd");
  140. var copyorddrid = model.getValue("/root/main/copyorddrid");
  141. if( orgorddeptcd != "" && orgorddrid != "" && copyorddeptcd != "" && copyorddrid != ""){
  142. model.setValue("/root/send/orgorddeptcd", orgorddeptcd);
  143. model.setValue("/root/send/orgorddrid", orgorddrid);
  144. model.setValue("/root/send/copyorddeptcd", copyorddeptcd);
  145. model.setValue("/root/send/copyorddrid", copyorddrid);
  146. if(submit("TXPMB01101")){
  147. messageBox("일정복사가", "I002");
  148. }
  149. }else{
  150. messageBox("진료과 또는 진료의사가 선택되지 않았습니다. 확인 후 다시 시도해 주십시요.", "E999", "");
  151. }
  152. ]]>
  153. </script>
  154. </button>
  155. <button id="button9" class="btn4_letter2" style="left:198px; top:5px; width:56px; height:22px; ">
  156. <caption>취소</caption>
  157. <script type="javascript" ev:event="DOMActivate">
  158. <![CDATA[
  159. window.close();
  160. ]]>
  161. </script>
  162. </button>
  163. <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:254px; y2:0px; "/>
  164. </group>
  165. </xhtml:body>
  166. </xhtml:html>