SPMRI04100_미비처방제어예외의사관리.xrw 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  1. <?xml version="1.0" encoding="UTF-8"?>
  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. <drlist>
  11. <drlist>
  12. <trgtcd/>
  13. <trgtnm/>
  14. <valifromdd/>
  15. <valitodd/>
  16. <trgtcdnm/>
  17. <cdseqno/>
  18. <hardcdno>9948</hardcdno>
  19. </drlist>
  20. </drlist>
  21. <drinfo>
  22. <trgtcd/>
  23. <valifromdd/>
  24. <valitodd/>
  25. <trgtcdnm/>
  26. <hardcdno>9948</hardcdno>
  27. </drinfo>
  28. </main>
  29. <send>
  30. <endshowyn/>
  31. <drlist/>
  32. <drinfo/>
  33. <hardcdno>9948</hardcdno>
  34. </send>
  35. <temp>
  36. <drlist/>
  37. <drinfo/>
  38. </temp>
  39. <tempchkrec>
  40. <rtndata>
  41. <checkmsg/>
  42. </rtndata>
  43. </tempchkrec>
  44. </root>
  45. </instance>
  46. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  47. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  48. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  49. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  50. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  51. <script type="javascript" ev:event="xforms-ready">
  52. <![CDATA[
  53. model.setValue("/root/main/drinfo/valifromdd", getCurrentDate());
  54. model.setValue("/root/main/drinfo/valitodd", "999912312359");
  55. btn_srch.dispatch("DOMActivate"); //조회
  56. model.refresh();
  57. ]]>
  58. </script>
  59. <submission id="TRMRI04100" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp/drlist"/>
  60. <submission id="TRMRI04101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/drinfo" resultref="/root/tempchkrec"/>
  61. <submission id="TXMRI04100" mediatype="application/x-www-form-urlencoded" ref="/root/send/drinfo" resultref="/root/main/drlist/drlist"/>
  62. <submission id="TXMRI04101" mediatype="application/x-www-form-urlencoded" ref="/root/send/drlist" resultref="/root/main/drlist/drlist"/>
  63. </model>
  64. </xhtml:head>
  65. <xhtml:body pagewidth="850" pageheight="500">
  66. <caption id="caption1" class="tit_2" style="left:0px; top:10px; width:130px; height:13px; ">예외의사등록</caption>
  67. <line id="line2" class="line_1" style="x1:0px; y1:25px; x2:810px; y2:25px; "/>
  68. <caption id="caption3" class="cell_1" style="left:0px; top:30px; width:100px; height:20px; ">의사ID</caption>
  69. <input id="ipt_trgtcd" ref="/root/main/drinfo/trgtcd" class="input_essential" style="left:102px; top:30px; width:100px; height:19px; "/>
  70. <line id="line6" class="line_3" style="x1:0px; y1:73px; x2:809px; y2:73px; "/>
  71. <caption id="caption4" class="cell_1" style="left:203px; top:30px; width:100px; height:20px; ">적용시작일자</caption>
  72. <caption id="caption5" class="cell_1" style="left:405px; top:30px; width:100px; height:20px; ">적용종료일자</caption>
  73. <input id="ipt_valifromdd" ref="/root/main/drinfo/valifromdd" class="input_essential" inputtype="date" style="left:304px; top:30px; width:100px; height:19px; ">
  74. <script type="javascript" ev:event="xforms-value-changed">
  75. <![CDATA[
  76. model.setValue("/root/main/drinfo/valifromdd", model.getValue("/root/main/drinfo/valifromdd")+getCurrentTime().substr(0,4));
  77. ipt_valifromdd.refresh();
  78. ]]>
  79. </script>
  80. </input>
  81. <input id="ipt_valitodd" ref="/root/main/drinfo/valitodd" class="input_essential" inputtype="date" style="left:506px; top:30px; width:100px; height:19px; ">
  82. <script type="javascript" ev:event="xforms-value-changed">
  83. <![CDATA[
  84. model.setValue("/root/main/drinfo/valitodd", model.getValue("/root/main/drinfo/valitodd")+getCurrentTime().substr(0,4));
  85. ipt_valitodd.refresh();
  86. ]]>
  87. </script>
  88. </input>
  89. <caption id="caption6" class="cell_1" style="left:0px; top:52px; width:100px; height:20px; ">비고</caption>
  90. <line id="line3" class="line_2" style="x1:0px; y1:50px; x2:809px; y2:50px; "/>
  91. <input id="ipt_hardspec" ref="/root/main/drinfo/trgtcdnm" style="left:102px; top:53px; width:708px; height:19px; "/>
  92. <caption id="caption7" class="tit_2" style="left:0px; top:100px; width:158px; height:13px; ">예외의사리스트</caption>
  93. <line id="line1" class="line_1" style="x1:0px; y1:115px; x2:810px; y2:115px; "/>
  94. <datagrid id="grd_drlist" nodeset="/root/main/drlist/drlist" autoresize="true" caption="의사ID^의사명^적용시작일자^적용종료일자^비고^cdseqno^hardcdno^환자별seq^적용시작일자^적용마감일자" colsep="^" colwidth="60, 60, 90, 90, 465, 100, 100" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:120px; width:810px; height:365px; ">
  95. <col ref="trgtcd" style="text-align:center; "/>
  96. <col ref="trgtnm" style="text-align:center; "/>
  97. <col ref="valifromdd" type="inputdate" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
  98. <col ref="valitodd" type="inputdate" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
  99. <col ref="trgtcdnm" type="input"/>
  100. <col ref="cdseqno" visibility="hidden"/>
  101. <col ref="hardcdno" visibility="hidden"/>
  102. </datagrid>
  103. <button id="btn_save" class="btn4_letter2" style="left:754px; top:3px; width:56px; height:22px; ">
  104. <caption>등록</caption>
  105. <script type="javascript" ev:event="DOMActivate">
  106. <![CDATA[
  107. //저장항목 필수체크
  108. if( model.getValue("/root/main/drinfo/trgtcd") == ""){
  109. messageBox("의사ID는","I003"); //필수입력입니다.
  110. return;
  111. }else if( model.getValue("/root/main/drinfo/valifromdd") == "" ){
  112. messageBox("적용시작일자","I003");
  113. return;
  114. }else if( model.getValue("/root/main/drinfo/valitodd") == ""){
  115. messageBox("적용종료일자","I003");
  116. return;
  117. }else{
  118. if( messageBox("","Q002") == "6"){ //저장하시겠습니까? / 예
  119. submit("TRMRI04101"); // ID체크
  120. if( model.getValue("/root/tempchkrec/rtndata/checkmsg") != ''){
  121. messageBox(model.getValue("/root/tempchkrec/rtndata/checkmsg"),"E");
  122. return;
  123. }else{
  124. model.copyNode("/root/send/drinfo","/root/main/drinfo");
  125. submit("TXMRI04100");
  126. model.refresh();
  127. }
  128. }
  129. }
  130. ]]>
  131. </script>
  132. </button>
  133. <button id="btn_set" class="btn4_letter2" style="left:698px; top:93px; width:56px; height:22px; ">
  134. <caption>수정</caption>
  135. <script type="javascript" ev:event="DOMActivate">
  136. <![CDATA[
  137. model.setValue("/root/send/drlist","");
  138. model.setValue("/root/send/drlist", grd_drlist.getUpdateData());
  139. submit("TXMRI04101");
  140. model.refresh();
  141. ]]>
  142. </script>
  143. </button>
  144. <button id="btn_del" class="btn4_letter2" style="left:755px; top:93px; width:56px; height:22px; ">
  145. <caption>삭제</caption>
  146. <script type="javascript" ev:event="DOMActivate">
  147. <![CDATA[
  148. grd_drlist.addStatus(grd_drlist.row, "delete");
  149. model.setValue("/root/send/drlist", grd_drlist.getUpdateData());
  150. submit("TXMRI04101");
  151. model.refresh();
  152. ]]>
  153. </script>
  154. </button>
  155. <button id="btn_srch" class="btn1_letter2" style="left:640px; top:93px; width:56px; height:22px; ">
  156. <caption>조회</caption>
  157. <script type="javascript" ev:event="DOMActivate">
  158. <![CDATA[
  159. submit("TRMRI04100");
  160. model.copyNode("/root/main/drlist","/root/temp/drlist");
  161. model.refresh();
  162. ]]>
  163. </script>
  164. </button>
  165. <select id="chk_endshowyn" ref="/root/send/endshowyn" visibility="visible" overflow="visible" appearance="full" style="left:536px; top:96px; width:95px; height:20px; border-style:none; ">
  166. <choices>
  167. <item>
  168. <label>종료된사용자</label>
  169. <value>Y</value>
  170. </item>
  171. </choices>
  172. </select>
  173. <line id="line4" class="line_3" style="x1:0px; y1:486px; x2:809px; y2:486px; "/>
  174. <caption id="caption2" class="cell_1" style="left:607px; top:30px; width:203px; height:20px; "/>
  175. </xhtml:body>
  176. </xhtml:html>