SMRSC05500_안전제고제한마스터(약국).xrw 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204
  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. <cond>
  11. <instcd/>
  12. <instnm/>
  13. <workflag/>
  14. </cond>
  15. <safestocinfo>
  16. <safestoclist/>
  17. </safestocinfo>
  18. </main>
  19. <send>
  20. <reqdata/>
  21. <savedata/>
  22. </send>
  23. <init>
  24. <main/>
  25. </init>
  26. <temp/>
  27. </root>
  28. </instance>
  29. <script type="javascript" ev:event="xforms-ready">
  30. <![CDATA[
  31. //화면 Control을 초기화한다
  32. fInitialize();
  33. ]]>
  34. </script>
  35. <submission id="TRRSD00192" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/main"/>
  36. <submission id="TRRSC05501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/cond" resultref="/root/main/safestocinfo"/>
  37. <submission id="TXRSC05501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/init/main"/>
  38. </model>
  39. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  40. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  41. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  42. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  43. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  44. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  45. <script type="javascript">
  46. <![CDATA[
  47. // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
  48. function fInitialize() {
  49. misfGridInit(grd_safestoc);
  50. model.setValue(opt_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
  51. model.setValue(opt_instcdnm.attribute("ref") , getUserInfo("dutplceinstnm"));
  52. model.setValue("/root/main/cond/workflag", "03");
  53. model.refresh();
  54. }
  55. ]]>
  56. </script>
  57. </xhtml:head>
  58. <xhtml:body pagewidth="700" pageheight="740" guideline="1,701;2,740;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  59. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:20px; width:670px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  60. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:243px; height:14px; ">안전재고 제한 마스터</caption>
  61. <button id="btn_delete" class="btn2_letter3" style="left:615px; top:60px; width:53px; height:19px; ">
  62. <caption>행삭제</caption>
  63. <script type="javascript" ev:event="DOMActivate">
  64. <![CDATA[
  65. ]]>
  66. </script>
  67. </button>
  68. <line id="line13" class="line_4" style="x1:580px; y1:25px; x2:580px; y2:50px; "/>
  69. <caption id="caption3" class="tit_2" style="left:5px; top:65px; width:144px; height:14px; ">안전재고 제한 마스터</caption>
  70. <button id="btn_excel" class="btn5_letter3" style="left:395px; top:60px; width:53px; height:19px; ">
  71. <caption>Excel</caption>
  72. <script type="javascript" ev:event="DOMActivate">
  73. <![CDATA[
  74. misfSaveExcel(grd_safestoc , "실사량관리");
  75. ]]>
  76. </script>
  77. </button>
  78. <line id="line1" class="line_1" style="x1:0px; y1:80px; x2:670px; y2:80px; "/>
  79. <caption id="cap_instcd" class="search_name" style="left:15px; top:29px; width:86px; height:17px; ">기관코드 :</caption>
  80. <button id="btn_search" class="btn1_letter2" style="left:595px; top:27px; width:56px; height:22px; ">
  81. <caption>조회</caption>
  82. <script type="javascript" ev:event="DOMActivate">
  83. <![CDATA[
  84. if (submit("TRRSC05501") == true) {
  85. }
  86. ]]>
  87. </script>
  88. </button>
  89. <datagrid id="grd_safestoc" nodeset="/root/main/safestocinfo/safestoclist" caption="사용^물품코드^품명^시작일자^종료일자^기관코드^구분" colsep="^" colwidth="34, 115, 300, 90, 91, 0, 0" dataheight="25" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:0px; top:85px; width:670px; height:634px; ">
  90. <col checkvalue="Y,N" ref="useyn" type="checkbox"/>
  91. <col ref="goodcd" type="input" _key="true" style="left:161px; top:25px; width:115px; height:25px; text-align:center; "/>
  92. <col ref="goodnm" type="input" style="text-align:center; "/>
  93. <col ref="fromdd" type="inputdate" format="yyyy-mm-dd"/>
  94. <col ref="todd" type="inputdate" format="yyyy-mm-dd"/>
  95. <col ref="instcd" visibility="hidden"/>
  96. <col ref="workflag" visibility="hidden"/>
  97. <script type="javascript" ev:event="xforms-value-changed">
  98. <![CDATA[
  99. if (isDataCell() == true) {
  100. model.makeValue("/root/send/reqdata/instcd", model.getValue("/root/main/cond/instcd"));
  101. if (grd_safestoc.colRef("goodcd")) {
  102. model.makeValue("/root/send/reqdata/goodcd" , grd_safestoc.valueMatrix(grd_safestoc.row, grd_safestoc.col));
  103. model.makeValue("/root/send/reqdata/goodnm" , "");
  104. } else if (grd_safestoc.colRef("goodnm")){
  105. model.makeValue("/root/send/reqdata/goodnm" , grd_safestoc.valueMatrix(grd_safestoc.row, grd_safestoc.col));
  106. model.makeValue("/root/send/reqdata/goodcd" , "");
  107. }
  108. if (grd_safestoc.colRef("goodcd") || grd_safestoc.colRef("goodnm")) {
  109. if (submit("TRRSD00192") == true) {
  110. var nodecnts = getNodesetCount("/root/init/main/goodlist");
  111. if (nodecnts >= 2) {
  112. group1.visible = true;
  113. } else if (nodecnts == 1) {
  114. var goodcd = model.getValue("/root/init/main/goodlist/goodcd");
  115. var goodnm = model.getValue("/root/init/main/goodlist/goodnm");
  116. var row2 = grd_safestoc.row;
  117. model.setValue("/root/main/safestocinfo/safestoclist[" + row2 + "]/goodcd" , goodcd)
  118. model.setValue("/root/main/safestocinfo/safestoclist[" + row2 + "]/goodnm" , goodnm)
  119. model.setValue("/root/main/safestocinfo/safestoclist[" + row2 + "]/instcd" , model.getValue("/root/main/cond/instcd"));
  120. model.setValue("/root/main/safestocinfo/safestoclist[" + row2 + "]/workflag" , "03");
  121. model.setValue("/root/main/safestocinfo/safestoclist[" + row2 + "]/useyn" , "Y")
  122. group1.visible = false;
  123. model.refresh();
  124. } else {
  125. messageBox("검색된 코드가 없습니다.", "I");
  126. model.setValue("/root/main/safestocinfo/safestoclist[" + row2 + "]/goodcd" , "");
  127. model.setValue("/root/main/safestocinfo/safestoclist[" + row2 + "]/goodnm" , "");
  128. }
  129. }
  130. }
  131. }
  132. ]]>
  133. </script>
  134. </datagrid>
  135. <button id="btn_insert" class="btn2_letter3" style="left:560px; top:60px; width:53px; height:19px; ">
  136. <caption>행추가</caption>
  137. <script type="javascript" ev:event="DOMActivate">
  138. <![CDATA[
  139. grd_safestoc.addRow();
  140. var row = grd_safestoc.row
  141. model.setValue("/root/main/safestocinfo/safestoclist[" + row + "]/fromdd" , getCurrentDate());
  142. model.setValue("/root/main/safestocinfo/safestoclist[" + row + "]/todd" , "99991231");
  143. ]]>
  144. </script>
  145. </button>
  146. <group id="group1" visibility="hidden" style="left:70px; top:170px; width:410px; height:170px; ">
  147. <datagrid id="grd_pharmcylist" nodeset="/root/init/main/goodlist" visibility="visible" caption="물품코드^품명" colsep="^" colwidth="102, 270" dataheight="25" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:0px; top:20px; width:410px; height:150px; ">
  148. <col imemode="alpha" ref="goodcd" type="output" _chartype="upper" _key="true" style="left:161px; top:25px; width:115px; height:25px; text-align:left; "/>
  149. <col ref="goodnm" type="output" style="text-align:left; "/>
  150. <script type="javascript" ev:event="ondblclick">
  151. <![CDATA[
  152. if (isDataCell() == true) {
  153. var row = grd_pharmcylist.row;
  154. var goodcd = model.getValue("/root/init/main/goodlist[" + row + "]/goodcd");
  155. var goodnm = model.getValue("/root/init/main/goodlist[" + row + "]/goodnm");
  156. var row2 = grd_safestoc.row;
  157. model.setValue("/root/main/safestocinfo/safestoclist[" + row2 + "]/goodcd" , goodcd)
  158. model.setValue("/root/main/safestocinfo/safestoclist[" + row2 + "]/goodnm" , goodnm)
  159. model.setValue("/root/main/safestocinfo/safestoclist[" + row2 + "]/instcd" , model.getValue("/root/main/cond/instcd"));
  160. model.setValue("/root/main/safestocinfo/safestoclist[" + row2 + "]/workflag" , "03");
  161. model.setValue("/root/main/safestocinfo/safestoclist[" + row2 + "]/useyn" , "Y")
  162. group1.visible = false;
  163. model.refresh();
  164. }
  165. ]]>
  166. </script>
  167. </datagrid>
  168. <button id="button1" class="btn2_letter3" style="left:340px; top:0px; width:53px; height:19px; ">
  169. <caption>숨기기</caption>
  170. <script type="javascript" ev:event="DOMActivate">
  171. <![CDATA[
  172. model.setValue("/root/main/safestocinfo/safestoclist[" + grd_safestoc.row + "]/goodcd" , "");
  173. model.setValue("/root/main/safestocinfo/safestoclist[" + grd_safestoc.row + "]/goodnm" , "");
  174. group1.visible = false;
  175. model.refresh();
  176. ]]>
  177. </script>
  178. </button>
  179. </group>
  180. <button id="button2" class="btn2_letter2" style="left:505px; top:60px; width:53px; height:19px; ">
  181. <caption>저장</caption>
  182. <script type="javascript" ev:event="DOMActivate">
  183. <![CDATA[
  184. model.makeValue("/root/send/savedata/safestoc", grd_safestoc.getUpdateData())
  185. submit("TXRSC05501");
  186. ]]>
  187. </script>
  188. </button>
  189. <output id="opt_instcdnm" ref="/root/main/cond/instnm" class="output_fix" style="left:105px; top:30px; width:150px; height:19px; "/>
  190. <output id="opt_instcd" ref="/root/main/cond/instcd" class="output_fix" visibility="hidden" style="left:260px; top:30px; width:20px; height:19px; "/>
  191. </xhtml:body>
  192. </xhtml:html>