SMAEA03300_시행부서변경.xrw 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261
  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. <patinfo>
  11. <patinfolist/>
  12. </patinfo>
  13. <execdeptlist>
  14. <prcpcd/>
  15. <prcpegnm/>
  16. <prcpnm/>
  17. <restrid/>
  18. <restdeptcd/>
  19. <afterexecdeptcd/>
  20. <beforexecdeptcd/>
  21. <prcpdd/>
  22. <prcpno/>
  23. <prcphistno/>
  24. <instcd/>
  25. <pid/>
  26. <mmoh/>
  27. <mmohnm/>
  28. </execdeptlist>
  29. </main>
  30. <send>
  31. <fromdd/>
  32. <todd/>
  33. <suppdeptcd/>
  34. <excuroomcd/>
  35. <orddeptcd/>
  36. <wardcd/>
  37. <pid/>
  38. <patnm/>
  39. <globalinstance>
  40. <instance1/>
  41. </globalinstance>
  42. <prcpcd/>
  43. <execdeptlist/>
  44. </send>
  45. <init>
  46. <cmb_info>
  47. <suppdeptlist>
  48. <suppdept>
  49. <suppdeptcd/>
  50. <depthngnm/>
  51. </suppdept>
  52. </suppdeptlist>
  53. <orddeptcdlist>
  54. <dept>
  55. <deptcd/>
  56. <depthngnm/>
  57. </dept>
  58. </orddeptcdlist>
  59. <excuroomcdlist>
  60. <excuroom>
  61. <basecd/>
  62. <basecdflagdesc/>
  63. </excuroom>
  64. </excuroomcdlist>
  65. </cmb_info>
  66. </init>
  67. <hidden>
  68. <source>
  69. <pathngnm/>
  70. </source>
  71. <supdept>
  72. <cdid/>
  73. <cdnm/>
  74. </supdept>
  75. </hidden>
  76. <temp/>
  77. </root>
  78. </instance>
  79. <script type="javascript" ev:event="xforms-ready">
  80. <![CDATA[
  81. aezfSetSuppDeptcd();
  82. model.setValue("/root/send/suppdeptcd", model.getValue("/root/send/globalinstance/instance1"));
  83. model.setValue("/root/send/fromdd", getCurrentDate());
  84. model.setValue("/root/send/todd", getCurrentDate());
  85. model.removeNodeset("/root/main/execdeptlist");
  86. model.refresh();
  87. ]]>
  88. </script>
  89. <submission id="TRAEA03301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/execdeptlist"/>
  90. <submission id="TXAEA03301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/execdeptlist"/>
  91. </model>
  92. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  93. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  94. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  95. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  96. <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
  97. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  98. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  99. <script type="javascript" src="../../../ast/examcureweb/js/HELP0001.js"/>
  100. </xhtml:head>
  101. <xhtml:body guideline="1,1195;2,746;2,784;">
  102. <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  103. <group id="group2" style="left:1px; top:0px; width:1194px; height:35px; vertical-align:top; ">
  104. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1193px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  105. <line id="line1" style="x1:1109px; y1:6px; x2:1109px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  106. <input id="input1" ref="/root/send/todd" class="input_default" inputtype="date" style="left:220px; top:11px; width:90px; height:19px; "/>
  107. <caption id="caption8" class="search_name" style="left:362px; top:11px; width:97px; height:17px; text-align:left; background-image:../../../com/commonweb/images/search_bullet1.gif; ">등록번호 :</caption>
  108. <button id="btn_sea" class="btn1_letter2" style="left:1125px; top:7px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
  109. <caption>조회</caption>
  110. <script type="javascript" ev:event="DOMActivate">
  111. <![CDATA[
  112. var _pid = model.getValue("root/send/pid");
  113. var _frdt = model.getValue("/root/send/fromdd");
  114. var _todt = model.getValue("/root/send/todd");
  115. if ( _pid == "" ) {
  116. messageBox("필수입력사항인 등록번호를 입력해 주십시오.", "I999");
  117. model.setFocus("ipt_pid");
  118. }
  119. else if ( _frdt == "" && _todt != "" ) {
  120. messageBox("검색하실 날짜 범위의 시작일자를 입력해 주십시오." , "I999");
  121. model.setFocus("ipt_fromdd");
  122. }
  123. else if ( _frdt != "" && _todt == "") {
  124. messageBox("검색하실 날짜 범위의 마지막 일자를 입력해 주십시오." , "I999");
  125. model.setFocus("ipt_todd");
  126. }
  127. else if ( getDateInterval(_frdt, _todt) < 0 ) {
  128. messageBox("입력하신 날짜 범위로는 검색할 수 없습니다. 입력하신 날짜를 확인해 주십시오." , "I999");
  129. model.setFocus("ipt_fromdd");
  130. }
  131. else {
  132. submit("TRAEA03301");
  133. //submit("TRAEA00302");
  134. /* if ( grd_execdeptlist.rows == 1 ) {
  135. messageBox("입력하신 등록번호/일자에 해당하는 환자의 시행 처방이 DB에 존재하지 않습니다.", "I999");
  136. }
  137. else {
  138. //var _dt = "";
  139. //for (var i = 1; i < parseInt(grd_rsrvprescond.rows); i++) {
  140. // _dt = model.getValue("/root/main/rsrvprescond/rsrvlist[" + i + "]/rsrvdt");
  141. // _dt = _dt.toDate("YYYYMMDDhhmm").getDateFormat("YYYY-MM-DD hh:mm");
  142. // model.setValue("/root/main/rsrvprescond/rsrvlist[" + i + "]/rsrvdt", _dt);
  143. }
  144. */
  145. model.refresh();
  146. }
  147. ]]>
  148. </script>
  149. </button>
  150. <input id="ipt_fromdd" ref="/root/send/fromdd" class="input_default" inputtype="date" style="left:100px; top:11px; width:90px; height:19px; "/>
  151. <input id="ipt_pid" ref="/root/send/pid" class="input_search" maxlength="10" style="left:453px; top:10px; width:100px; height:19px; ">
  152. <script type="javascript" ev:event="onkeyup">
  153. <![CDATA[
  154. var _str = ipt_pid.currentText;
  155. /*
  156. if ( _str.isNumber() == false ) {
  157. messageBox("등록번호는 숫자만 입력이 가능합니다.", "I999");
  158. ipt_pid.value = "";
  159. }
  160. */
  161. inputEnterKey("btn_sea", "DOMActivate");
  162. ]]>
  163. </script>
  164. </input>
  165. <caption id="caption11" class="search_name" style="left:10px; top:11px; width:95px; height:17px; text-align:left; background-image:../../../com/commonweb/images/search_bullet1.gif; ">처방일자 :</caption>
  166. <button id="button61" class="icon_search" style="left:560px; top:12px; width:16px; height:16px; ">
  167. <caption/>
  168. <script type="javascript" ev:event="DOMActivate">
  169. <![CDATA[
  170. /* @group : 개인별 예약현황조회
  171. * @ver : 2007.7.25
  172. * @by : 조원영
  173. * @-----------------------------------
  174. * @type : function
  175. * @access : public
  176. * @desc : 등록번호를 통한 환자 이름 조회
  177. */
  178. modal("SPPMC02500", "", "200", "200", "SPPMC02500", "/root/send/pid", "");
  179. model.setValue( "/root/send/pid", model.getValue("/root/main/patinfo/patinfolist/pid") ); // 등록번호 설정
  180. model.setValue( "/root/hidden/source/pathngnm", model.getValue("/root/main/patinfo/patinfolist/hngnm") ); // 환자 이름
  181. model.refresh();
  182. ]]>
  183. </script>
  184. </button>
  185. <output id="opt_pathngnm" ref="/root/hidden/source/pathngnm" class="output_fix" style="left:582px; top:10px; width:100px; height:19px; "/>
  186. <caption id="caption14" style="left:200px; top:13px; width:20px; height:15px; ">~</caption>
  187. </group>
  188. <caption id="caption10" class="tit_2" style="left:10px; top:45px; width:134px; height:14px; background-image:../../../com/commonweb/images/tit_bullet2.gif; ">실시처방현황</caption>
  189. <line id="line3" class="line_1" style="x1:1px; y1:63px; x2:1195px; y2:63px; "/>
  190. <datagrid id="grd_execdeptlist" nodeset="/root/main/execdeptlist" caption="처방코드^영문처방명^처방명^처방의^처방과^기시행부서명^변경시행부서코드^변경시행부서^처방일자^처방번호^처방이력번호^병원코드^등록번호^외래/입원구분^구분" colsep="^" colwidth="122, 207, 215, 130, 153, 131, 50, 135, 89, 78, 111, 54, 100, 100, 80" ellipsis="true" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:66px; width:1194px; height:666px; ">
  191. <col ref="prcpcd" format="yyyy-mm-dd"/>
  192. <col ref="prcpegnm"/>
  193. <col ref="prcpnm"/>
  194. <col ref="restrid" style="text-align:center; "/>
  195. <col ref="restdeptcd" style="text-align:center; "/>
  196. <col ref="afterexecdeptcd" style="text-align:center; "/>
  197. <col ref="beforexecdeptcd" visibility="hidden"/>
  198. <col ref="beforexecdeptnm" type="inputbutton" style="text-align:center; "/>
  199. <col ref="prcpdd" visibility="hidden"/>
  200. <col ref="prcpno" visibility="hidden"/>
  201. <col ref="prcphistno" visibility="hidden"/>
  202. <col ref="instcd" visibility="hidden"/>
  203. <col ref="pid" visibility="hidden"/>
  204. <col ref="mmoh" visibility="hidden"/>
  205. <col ref="mmohnm" style="text-align:center; "/>
  206. <script type="javascript" ev:event="onbuttonclick">
  207. <![CDATA[
  208. if (grd_execdeptlist.col == grd_execdeptlist.colRef("beforexecdeptnm") ) {// 변경시행부서 클릭
  209. var recv_list = "beforexecdeptcd,beforexecdeptnm";
  210. astOpenPopUpListByWndName(grd_execdeptlist,"",recv_list,"SMAEA03310","instcd,prcpcd","instcd,prcpcd");
  211. // grd_execdeptlist -> Grid명 , "" -> 공통코드(없으므로 ""), recv_list => 부모 Grid가 받을 node명,
  212. // SMAEA03310 => 호출할 화면명, instcd,prcpcd=> hplp에 값을 넣어줄 node명, instcd,prcpcd => Grid에서 hlep에 던져줄 인자값
  213. }
  214. ]]>
  215. </script>
  216. </datagrid>
  217. </group>
  218. <group id="group1" style="left:0px; top:0px; width:1194px; height:13px; ">
  219. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:142px; height:14px; background-image:../../../com/commonweb/images/tit_bullet1.gif; ">시행 부서 변경</caption>
  220. </group>
  221. <group id="grp_btn" style="left:0px; top:747px; width:1195px; height:37px; ">
  222. <button id="btn_save" class="btn4_letter2" style="left:1133px; top:4px; width:56px; height:22px; ">
  223. <caption>저장</caption>
  224. <script type="javascript" ev:event="DOMActivate">
  225. <![CDATA[
  226. var updtdata = getGridUpdateData(grd_execdeptlist);
  227. if (updtdata == "")
  228. {
  229. messageBox("변경된 데이터가","I004");
  230. return;
  231. }
  232. model.setValue("/root/send/execdeptlist",grd_execdeptlist.getUpdateData());
  233. if(messageBox("","Q002") != 6 ) {
  234. return false;
  235. }
  236. submit("TXAEA03301");
  237. submit("TRAEA03301");
  238. model.refresh();
  239. ]]>
  240. </script>
  241. </button>
  242. </group>
  243. </xhtml:body>
  244. </xhtml:html>