SMRSC01400_매일처방부서등록.xrw 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215
  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. <rscmdodtlist/>
  11. </main>
  12. <send>
  13. <instcd/>
  14. <goodflag/>
  15. </send>
  16. <init/>
  17. <hidden/>
  18. <temp/>
  19. </root>
  20. </instance>
  21. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  22. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  23. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  24. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  25. <script type="javascript" ev:event="xforms-ready">
  26. <![CDATA[
  27. fInitialize();
  28. misfMsterDetailRetrieve();
  29. ]]>
  30. </script>
  31. <submission id="TRRSC01401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/rscmdodtlist"/>
  32. <submission id="TXRSC01401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp"/>
  33. </model>
  34. <script type="javascript">
  35. <![CDATA[
  36. // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
  37. function fInitialize() {
  38. model.removeNodeset("/root/main/rscmdodtlist");
  39. model.resetInstanceNode("/root/send");
  40. misfMsterDetailSet(grd_rscmdodtlist,null,"TRRSC01401","Y"); //마스터 설정
  41. misfGridInit(grd_rscmdodtlist);
  42. misfComboComCdList("Z0007", cmb_instcd); //기관코드
  43. model.setValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
  44. //<!-- [2010.08.26]AS-IS 코드 TO_BE 코드 전환을 위한 물품구분 변경 (goodflag= P) => (goodflag= PH) -->
  45. opt_goodflag.value= "PH";
  46. //화면 권한 설정
  47. btn_save.disabled = !(checkAuth("X"));
  48. btn_prt.disabled= !(checkAuth("P"));
  49. model.refresh();
  50. }
  51. function fsearch()
  52. {
  53. var updtdata = getGridUpdateData(grd_rscmdodtlist);
  54. if ( updtdata != "") {
  55. var ret = messageBox("그리드에 작업 중인 내용이 있습니다. 조회 작업을","Q003");
  56. if (ret != 6) { // not OK
  57. return;
  58. }
  59. }
  60. misfMsterDetailRetrieve();
  61. }
  62. ]]>
  63. </script>
  64. </xhtml:head>
  65. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  66. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  67. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:186px; height:14px; ">수액 매일처방 부서등록</caption>
  68. </group>
  69. <group id="grp_biz" scroll="auto" style="left:0px; top:38px; width:1195px; height:744px; ">
  70. <group id="grp_sea" style="left:0px; top:10px; width:620px; height:40px; vertical-align:top; ">
  71. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:3px; width:610px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  72. <caption id="cap_instcd" class="search_name" style="left:15px; top:9px; width:86px; height:17px; ">기관코드 :</caption>
  73. <line id="line13" class="line_4" style="x1:540px; y1:5px; x2:540px; y2:39px; border-color:#ffe4bb; border-left-style:solid; "/>
  74. <button id="btn_search" class="btn1_letter2" style="left:550px; top:8px; width:56px; height:22px; ">
  75. <caption>조회</caption>
  76. <script type="javascript" ev:event="DOMActivate">
  77. <![CDATA[
  78. // var updtdata = getGridUpdateData(grd_rscmdodtlist);
  79. //
  80. // if ( updtdata != "") {
  81. // var ret = messageBox("그리드에 작업 중인 내용이 있습니다. 조회 작업을","Q003");
  82. // if (ret != 6) { // not OK
  83. // return;
  84. // }
  85. // }
  86. // //기관코드 값 체크
  87. // var null_check = cmb_instcd.value;
  88. // if( null_check=="") {
  89. // messageBox("기관코드를","C002");
  90. // return;
  91. // }
  92. //
  93. // misfMsterDetailRetrieve(
  94. fsearch();
  95. ]]>
  96. </script>
  97. </button>
  98. <select1 id="cmb_instcd" ref="/root/send/instcd" class="combo_s_essential" appearance="minimal" style="left:102px; top:8px; width:188px; height:19px; text-align:center; ">
  99. <choices>
  100. <itemset>
  101. <label/>
  102. <value/>
  103. </itemset>
  104. </choices>
  105. </select1>
  106. <script type="javascript" ev:event="xforms-value-changed">
  107. <![CDATA[
  108. misfMsterDetailRetrieve();
  109. ]]>
  110. </script>
  111. <output id="opt_goodflag" ref="/root/send/goodflag" visibility="hidden" style="left:305px; top:10px; width:100px; height:19px; "/>
  112. </group>
  113. <line id="line2" class="line_1" style="x1:0px; y1:79px; x2:620px; y2:79px; "/>
  114. <caption id="caption8" class="tit_2" style="left:5px; top:64px; width:165px; height:14px; ">수액 매일처방 부서 List</caption>
  115. <button id="btn_grdadd" class="btn2_letter3" style="left:510px; top:59px; width:53px; height:19px; ">
  116. <caption>행추가</caption>
  117. <script type="javascript" ev:event="DOMActivate">
  118. <![CDATA[
  119. if(!isRequiredControls("cmb_instcd")) return;
  120. misfGridIUD(grd_rscmdodtlist, "A");
  121. var cur_row = grd_rscmdodtlist.row;
  122. //행추가를 누를시 기간코드 값을 자동으로 저장한다.
  123. model.setValue(grd_rscmdodtlist.attribute("nodeset")+"["+cur_row+"]/instcd",cmb_instcd.value);
  124. model.setValue(grd_rscmdodtlist.attribute("nodeset")+"["+cur_row+"]/goodflag",opt_goodflag.value);
  125. ]]>
  126. </script>
  127. </button>
  128. <button id="btn_grddel" class="btn2_letter3" style="left:566px; top:59px; width:53px; height:19px; ">
  129. <caption>행삭제</caption>
  130. <script type="javascript" ev:event="DOMActivate">
  131. <![CDATA[
  132. misfGridIUD(grd_rscmdodtlist, "D");
  133. ]]>
  134. </script>
  135. </button>
  136. <datagrid id="grd_rscmdodtlist" nodeset="/root/main/rscmdodtlist" caption="부서코드^부서명^기관코드^물품구분" colsep="^" colwidth="267, 311, 100, 100" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:85px; width:620px; height:640px; ">
  137. <col ref="deptcd" type="inputbutton" _key="true" style="text-align:center; "/>
  138. <col ref="deptnm" style="text-align:center; "/>
  139. <col ref="instcd" visibility="hidden" _key="true"/>
  140. <col ref="goodflag" visibility="hidden" _key="true"/>
  141. <script type="javascript" ev:event="onbuttonclick">
  142. <![CDATA[
  143. if(grd_rscmdodtlist.rowStatus(grd_rscmdodtlist.row) != 0)
  144. {
  145. if (grd_rscmdodtlist.col == grd_rscmdodtlist.colRef("deptcd"))
  146. {
  147. misfOpenPopUpList("02", grd_rscmdodtlist, "", "deptcd,deptnm");
  148. }
  149. }
  150. ]]>
  151. </script>
  152. <script type="javascript" ev:event="xforms-value-changed">
  153. <![CDATA[
  154. if (grd_rscmdodtlist.col == grd_rscmdodtlist.colRef("deptcd")) {
  155. misfValidationCheck("02", "", "deptcd,deptnm" );
  156. }
  157. ]]>
  158. </script>
  159. </datagrid>
  160. </group>
  161. <group id="group2" style="left:0px; top:12px; width:1195px; height:27px; ">
  162. <line id="line16" class="line_2" style="x1:0px; y1:25px; x2:1195px; y2:25px; "/>
  163. <button id="btn_clear" class="btn4_letter3" style="left:548px; top:3px; width:68px; height:22px; ">
  164. <caption>초기화</caption>
  165. <script type="javascript" ev:event="DOMActivate">
  166. <![CDATA[
  167. fInitialize();
  168. ]]>
  169. </script>
  170. </button>
  171. <button id="btn_save" class="btn4_letter2" style="left:490px; top:3px; width:56px; height:22px; ">
  172. <caption>저장</caption>
  173. <script type="javascript" ev:event="DOMActivate">
  174. <![CDATA[
  175. var updtdata = getGridUpdateData(grd_rscmdodtlist);
  176. if (updtdata == "")
  177. {
  178. messageBox("변경된 데이터가","I004");
  179. return;
  180. }
  181. if(!checkKeyColumn("grd_rscmdodtlist")) return;
  182. rtn = messageBox("", "Q002");
  183. if(rtn != "6" ) return false;
  184. misfSave("TXRSC01401");
  185. fsearch();
  186. ]]>
  187. </script>
  188. </button>
  189. <button id="btn_prt" class="btn6_letter2" visibility="hidden" style="left:0px; top:3; width:56px; height:22px; ">
  190. <caption>출력</caption>
  191. </button>
  192. </group>
  193. </xhtml:body>
  194. </xhtml:html>