SMADB02800_제한약사용부서관리.xrw 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218
  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. <limitdruglist>
  11. <item>
  12. <drugcd/>
  13. <drugnm/>
  14. <orddeptcd/>
  15. <orddeptnm/>
  16. <fromdd/>
  17. <todd/>
  18. <lastupdtdt/>
  19. <lastupdtrid/>
  20. <olddrugcd/>
  21. <oldorddeptcd/>
  22. <oldtodd/>
  23. <alertmsg/>
  24. <instcd/>
  25. </item>
  26. </limitdruglist>
  27. </main>
  28. <send>
  29. <srchdd/>
  30. <srchdrugcd/>
  31. <req>
  32. <data1/>
  33. </req>
  34. </send>
  35. <init>
  36. <drugitem>
  37. <drugcd/>
  38. <drugnm/>
  39. </drugitem>
  40. </init>
  41. <hidden>
  42. <count/>
  43. <item>
  44. <drugcd/>
  45. <drugnm/>
  46. <orddeptcd/>
  47. <fromdd/>
  48. <todd/>
  49. <lastupdtdt/>
  50. <lastupdtrid/>
  51. </item>
  52. </hidden>
  53. <temp>
  54. <receivedata>
  55. <receiveref>/root/temp/receivedata/drugcd</receiveref>
  56. <drugcd/>
  57. </receivedata>
  58. </temp>
  59. </root>
  60. </instance>
  61. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  62. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  63. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  64. <submission id="TRADB02801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/limitdruglist"/>
  65. <submission id="TRADB02604" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/drugitem"/>
  66. <submission id="TXADB02801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" replace="instance" resultref="/root/hidden"/>
  67. </model>
  68. <script type="javascript" ev:event="xforms-ready">
  69. <![CDATA[
  70. // 권한 관리
  71. button2.disabled =! checkAuth("X"); // 저장
  72. btn_sea.dispatch("DOMActivate");
  73. ]]>
  74. </script>
  75. </xhtml:head>
  76. <xhtml:body guideline="1,1195;2,767;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  77. <group id="group1" style="left:0px; top:0px; width:1194px; height:13px; ">
  78. <caption id="caption19" class="tit_1" style="left:0px; top:0px; width:142px; height:14px; ">제한약사용부서관리</caption>
  79. </group>
  80. <group id="group4" scroll="auto" style="left:0px; top:13px; width:1195px; height:27px; ">
  81. <button id="button2" class="btn4_letter2" style="left:1130px; top:3px; width:56px; height:22px; ">
  82. <caption>저장</caption>
  83. <script type="javascript" ev:event="DOMActivate">
  84. <![CDATA[
  85. model.setValue("/root/send/req/data1", grid_limitdruglist.getUpdateData());
  86. if(submit("TXADB02801")) {
  87. model.setValue("/root/send/srchdrugcd",model.getValue("/root/send/srchdrugcd"));
  88. submit("TRADB02801");
  89. model.setValue("/root/send/srchdrugcd","");
  90. }
  91. ]]>
  92. </script>
  93. </button>
  94. </group>
  95. <group id="group3" scroll="auto" style="left:0px; top:40px; width:1195px; height:720px; ">
  96. <group id="group2" style="left:0px; top:5px; width:1194px; height:30px; ">
  97. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:1px; width:1194px; height:29px; background-color:#fffbf2; border-color:#ffd799; "/>
  98. <caption id="caption2" class="search_name" style="left:5px; top:6px; width:91px; height:17px; ">기준일자 :</caption>
  99. <caption id="caption4" class="search_name" style="left:210px; top:6px; width:91px; height:17px; ">약품코드 :</caption>
  100. <line id="line1" class="line_4" style="x1:1115px; y1:5px; x2:1115px; y2:25px; border-color:#ffe4bb; border-left-style:solid; "/>
  101. <input id="input1" ref="/root/send/srchdd" class="input_s_essential" inputtype="date" style="left:95px; top:6px; width:100px; height:19px; "/>
  102. <input id="input2" ref="/root/send/srchdrugcd" class="input_search" style="left:300px; top:6px; width:100px; height:19px; "/>
  103. <button id="button61" class="icon_search" style="left:409px; top:6px; width:16px; height:16px; ">
  104. <caption/>
  105. <script type="javascript" ev:event="DOMActivate">
  106. <![CDATA[
  107. modal("SPADB60100",0,100,150,"SPADB60100","/root/temp/receivedata","/root/temp/receivedata");
  108. drugcode = model.getValue("/root/temp/receivedata/drugcd");
  109. if (drugcode != "") {
  110. model.setValue("/root/send/srchdrugcd",drugcode);
  111. model.refresh();
  112. }
  113. ]]>
  114. </script>
  115. </button>
  116. <button id="btn_sea" class="btn1_letter2" style="left:1125px; top:5px; width:56px; height:22px; ">
  117. <caption>조회</caption>
  118. <script type="javascript" ev:event="DOMActivate">
  119. <![CDATA[
  120. // model.setValue("/root/send/srchdrugcd",model.getValue("/root/send/srchdrugcd_v"));
  121. submit("TRADB02801");
  122. // model.setValue("/root/send/srchdrugcd","");
  123. ]]>
  124. </script>
  125. </button>
  126. </group>
  127. <button id="button51" class="btn2_letter2" style="left:1150px; top:45px; width:42px; height:19px; ">
  128. <caption>엑셀</caption>
  129. </button>
  130. <button id="btn_grdadd" class="btn2_letter3" style="left:985px; top:45px; width:53px; height:19px; ">
  131. <caption>행추가</caption>
  132. <script type="javascript" ev:event="DOMActivate">
  133. <![CDATA[
  134. grid_limitdruglist.addItem();
  135. model.setValue("/root/main/limitdruglist/item["+ grid_limitdruglist.row +"]/fromdd", getCurrentDate());
  136. model.setValue("/root/main/limitdruglist/item["+ grid_limitdruglist.row +"]/todd", "99991231");
  137. grid_limitdruglist.bottomRow = grid_limitdruglist.row;
  138. grid_limitdruglist.refresh();
  139. ]]>
  140. </script>
  141. </button>
  142. <button id="btn_grdcopy" class="btn2_letter3" style="left:1040px; top:45px; width:53px; height:19px; ">
  143. <caption>행복사</caption>
  144. <script type="javascript" ev:event="DOMActivate">
  145. <![CDATA[
  146. var grdrow = grid_limitdruglist.row;
  147. var iCurRow = 0;
  148. model.copyNode("/root/hidden/item","/root/main/limitdruglist/item["+ grdrow +"]");
  149. grid_limitdruglist.insertItem(grdrow, "below", true);
  150. iCurRow = grid_limitdruglist.row;
  151. model.copyNode("/root/main/limitdruglist/item["+ iCurRow +"]","/root/hidden/item");
  152. model.setValue("/root/main/limitdruglist/item["+ iCurRow +"]/orddeptcd", "");
  153. model.setValue("/root/main/limitdruglist/item["+ iCurRow +"]/orddeptnm", "");
  154. model.setValue("/root/main/limitdruglist/item["+ iCurRow +"]/lastupdtdt", "");
  155. model.setValue("/root/main/limitdruglist/item["+ iCurRow +"]/lastupdtrid", "");
  156. model.setValue("/root/main/limitdruglist/item["+ iCurRow +"]/olddrugcd", "");
  157. model.setValue("/root/main/limitdruglist/item["+ iCurRow +"]/oldorddeptcd", "");
  158. model.setValue("/root/main/limitdruglist/item["+ iCurRow +"]/oldtodd", "");
  159. grid_limitdruglist.bottomRow = iCurRow;
  160. grid_limitdruglist.refresh();
  161. ]]>
  162. </script>
  163. </button>
  164. <button id="btn_grddel" class="btn2_letter3" style="left:1095px; top:45px; width:53px; height:19px; ">
  165. <caption>행삭제</caption>
  166. <script type="javascript" ev:event="DOMActivate">
  167. <![CDATA[
  168. grid_limitdruglist.addStatus(grid_limitdruglist.row,"delete");
  169. ]]>
  170. </script>
  171. </button>
  172. <datagrid id="grid_limitdruglist" nodeset="/root/main/limitdruglist/item" caption="약품코드^약품명^처방부서^처방부서명^메세지^시작일자^종료일자^최종수정일시^최종수정자^olddrugcd^oldorddeptcd^oldtodd^instcd" colsep="^" colwidth="106, 260, 90, 100, 200, 90, 90, 135, 75, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:65px; width:1194px; height:650px; ">
  173. <col ref="drugcd" type="inputbutton"/>
  174. <col ref="drugnm" type="input"/>
  175. <col ref="orddeptcd" type="inputbutton"/>
  176. <col ref="orddeptnm"/>
  177. <col ref="alertmsg" type="input"/>
  178. <col ref="fromdd" type="inputdate"/>
  179. <col ref="todd" type="inputdate" format="yyyy-mm-dd hh:mm:ss"/>
  180. <col ref="lastupdtdt" format="yyyy-mm-dd hh:mm:ss" style="text-align:center; "/>
  181. <col ref="lastupdtrid" style="text-align:center; "/>
  182. <col ref="olddrugcd" visibility="hidden"/>
  183. <col ref="oldorddeptcd" visibility="hidden"/>
  184. <col ref="oldtodd" visibility="hidden"/>
  185. <col ref="instcd" visibility="hidden"/>
  186. <script type="javascript" ev:event="onbuttonclick">
  187. <![CDATA[
  188. if ( grid_limitdruglist.colRef("drugcd") == grid_limitdruglist.col){
  189. modal("SPADB60100",0,100,150,"SPADB60100","/root/temp/receivedata","/root/temp/receivedata");
  190. drugcode = model.getValue("/root/temp/receivedata/drugcd");
  191. model.setValue("/root/main/limitdruglist/item["+grid_limitdruglist.row+"]/drugcd",drugcode);
  192. grid_limitdruglist.addStatus(grid_limitdruglist.row,"update"); //강제 상태변경
  193. if (drugcode != "") {
  194. model.setValue("/root/send/srchdrugcd",drugcode);
  195. submit("TRADB02604",false);
  196. model.setValue("/root/main/limitdruglist/item["+grid_limitdruglist.row+"]/drugnm",model.getValue("/root/init/drugitem/drugnm"));
  197. model.setValue("/root/send/srchdrugcd","");
  198. model.refresh();
  199. }
  200. } else if ( grid_limitdruglist.colRef("orddeptcd") == grid_limitdruglist.col){
  201. //setParameter("instcd","012");
  202. //modal("SPZSD00200");
  203. zbcfOpenInstDeptCodeList("deptnm","", "/root/main/limitdruglist/item["+grid_limitdruglist.row+"]/orddeptcd", "/root/main/limitdruglist/item["+grid_limitdruglist.row+"]/orddeptnm","orduseyn");
  204. grid_limitdruglist.addStatus(grid_limitdruglist.row,"update"); //강제 상태변경
  205. }
  206. ]]>
  207. </script>
  208. </datagrid>
  209. </group>
  210. </xhtml:body>
  211. </xhtml:html>