SMMNG02102_린넨그룹관리.xrw 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195
  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. <lngdinfo>
  11. <lngdlist/>
  12. </lngdinfo>
  13. </main>
  14. <send>
  15. <instcdnm/>
  16. <grupnm/>
  17. </send>
  18. <init>
  19. <csrdeptinfo/>
  20. <lngdcode>
  21. <grupcd/>
  22. </lngdcode>
  23. </init>
  24. </root>
  25. </instance>
  26. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  27. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  28. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  29. <script type="javascript" src="../../../emr/carecomweb/js/CareCom.js"/>
  30. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  31. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  32. <script type="javascript" ev:event="xforms-ready">
  33. <![CDATA[
  34. fInitialize();
  35. ]]>
  36. </script>
  37. <submission id="TRMNG02103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/lngdinfo"/>
  38. <submission id="TXMNG02103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/temp"/>
  39. <submission id="TRMNG02104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init"/>
  40. </model>
  41. <script type="javascript">
  42. <![CDATA[
  43. // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
  44. function fInitialize()
  45. {
  46. model.setValue(opt_instcdnm.attribute("ref"), getUserInfo("dutplceinstnm")); //기관코드
  47. fSearch();
  48. }
  49. function fSearch() {
  50. submit("TRMNG02103");
  51. }
  52. function fSettingGoodList(pnode) {
  53. submit("TRMNG02104");
  54. var grupcd = model.getValue("/root/init/lngdcode/grupcd");
  55. var grupnm = grd_lngdlist.valueMatrix( grd_lngdlist.row, grd_lngdlist.colRef("grupnm"));
  56. var codynode = instance1.selectNodes(pnode + "/*");
  57. var addRow = grd_lngdlist.rows - grd_lngdlist.fixedRows;
  58. for (var j = 1; j <= codynode.length; j++) {
  59. if(addRow > grd_lngdlist.rows - grd_lngdlist.fixedRows)
  60. {
  61. misfGridIUD(grd_lngdlist,"A");
  62. addRow = grd_lngdlist.rows - grd_lngdlist.fixedRows;
  63. }
  64. model.setValue(grd_lngdlist.nodeset + "[" + addRow + "]/grupcd" , grupcd );
  65. model.setValue(grd_lngdlist.nodeset + "[" + addRow + "]/grupnm" , grupnm );
  66. model.setValue(grd_lngdlist.nodeset + "[" + addRow + "]/goodcd" , model.getValue(pnode +"/" + "grd_lngdlist" + "[" + j + "]/goodcd"));
  67. model.setValue(grd_lngdlist.nodeset + "[" + addRow + "]/goodcdseq" , model.getValue(pnode +"/" + "grd_lngdlist" + "[" + j + "]/goodcdseq"));
  68. model.setValue(grd_lngdlist.nodeset + "[" + addRow + "]/lngoodnm" , model.getValue(pnode +"/" + "grd_lngdlist" + "[" + j + "]/lngoodnm"));
  69. model.setValue(grd_lngdlist.nodeset + "[" + addRow + "]/goodspec" , model.getValue(pnode +"/" + "grd_lngdlist" + "[" + j + "]/goodspec"));
  70. model.setValue(grd_lngdlist.nodeset + "[" + addRow + "]/goodmodel" , model.getValue(pnode +"/" + "grd_lngdlist" + "[" + j + "]/goodmodel"));
  71. addRow = addRow + 1;
  72. }
  73. model.recalculate();
  74. model.refresh();
  75. }
  76. ]]>
  77. </script>
  78. </xhtml:head>
  79. <xhtml:body pagewidth="800" pageheight="500" guideline="1,801;2,546;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  80. <group id="grp_tle" style="left:0px; top:0px; width:775px; height:13px; ">
  81. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:186px; height:14px; ">린넨그룹관리</caption>
  82. </group>
  83. <group id="grp_biz" scroll="auto" style="left:0px; top:60px; width:775px; height:420px; ">
  84. <caption id="caption12" class="tit_2" style="left:5px; top:9px; width:121px; height:14px; ">린넨그룹관리</caption>
  85. <button id="btn_sav" class="btn5_letter2" style="left:731px; top:3px; width:42px; height:19px; ">
  86. <caption>저장</caption>
  87. <script type="javascript" ev:event="DOMActivate">
  88. <![CDATA[
  89. model.makeValue("/root/send/savedata/lngdlist", getGridUpdateData(grd_lngdlist) );
  90. submit("TXMNG02103");
  91. fSearch();
  92. ]]>
  93. </script>
  94. </button>
  95. <datagrid id="grd_lngdlist" nodeset="/root/main/lngdinfo/lngdlist" caption="그룹코드^그룹명^물품코드^상세코드^린넨품명^규격^상세규격^수량^비고" colsep="^" colwidth="100, 120, 100, 65, 110, 80, 80, 80, 80, 150" mergecellsfixedrows="never" rowheader="update" rowsep="|" style="left:0px; top:30px; width:775px; height:385px; ">
  96. <col disabled="true" ref="grupcd" visibility="hidden"/>
  97. <col ref="grupnm" type="inputbutton"/>
  98. <col ref="goodcd"/>
  99. <col ref="goodcdseq"/>
  100. <col ref="lngoodnm"/>
  101. <col ref="goodspec"/>
  102. <col ref="goodmodel"/>
  103. <col ref="goodcnt" type="input"/>
  104. <col ref="remark" type="input"/>
  105. <script type="javascript" ev:event="onbuttonclick">
  106. <![CDATA[
  107. model.removeNodeset(gvParamPath +"/SPMNG02801_/SPMNG02801_value");
  108. model.property("flag") = "req";
  109. if (grd_lngdlist.col == grd_lngdlist.colRef("grupnm")) {//그룹명 버튼을 눌렀을 때
  110. model.removeNodeset("/root/copynode");
  111. model.makeNode("/root/copynode");
  112. model.refresh();
  113. rszfOpenPopUpListByWndName(grd_lngdlist,"","goodcd,goodcdseq,goodnm,goodspec,goodmodel","SPMNG02801","","", "Y");
  114. var CSV = model.getValue(gvParamPath +"/SPMNG02801_/SPMNG02801_value");
  115. setCSVToNode("/root/copynode", CSV, "grd_lngdlist");
  116. fSettingGoodList("/root/copynode");
  117. }
  118. ]]>
  119. </script>
  120. <script type="javascript" ev:event="xforms-value-changed">
  121. <![CDATA[
  122. var grupnm = grd_lngdlist.valueMatrix(grd_lngdlist.row, grd_lngdlist.colRef("grupnm"));
  123. if ( grd_lngdlist.col == grd_lngdlist.colRef("grupnm")) {
  124. for ( i=grd_lngdlist.fixedRows; i<grd_lngdlist.rows; i++ ) {
  125. if (grd_lngdlist.valueMatrix(i, grd_lngdlist.colRef("grupnm")) == "" || grd_lngdlist.valueMatrix(i, grd_lngdlist.colRef("grupnm")) == null) {
  126. grd_lngdlist.valueMatrix(i, grd_lngdlist.colRef("grupnm")) = grupnm;
  127. }
  128. }
  129. }
  130. ]]>
  131. </script>
  132. </datagrid>
  133. <line id="line5" class="line_1" style="x1:1px; y1:26px; x2:775px; y2:25px; "/>
  134. <button id="button1" class="btn2_letter2" style="left:640px; top:3px; width:42px; height:19px; ">
  135. <caption>추가</caption>
  136. <script type="javascript" ev:event="DOMActivate">
  137. <![CDATA[
  138. grd_lngdlist.addRow();
  139. ]]>
  140. </script>
  141. </button>
  142. <button id="button2" class="btn2_letter2" style="left:685px; top:3px; width:42px; height:19px; ">
  143. <caption>삭제</caption>
  144. <script type="javascript" ev:event="DOMActivate">
  145. <![CDATA[
  146. if(grd_lnsflist.row > -1 && grd_lnsflist.row >= grd_lnsflist.fixedrows){
  147. var firstRow = grd_lngdlist.selectedRow(0);
  148. var lastRow = grd_lngdlist.selectedRow(grd_lngdlist.selectedRows-1);
  149. for(var i = firstRow; i <= lastRow; i++) {
  150. grd_lngdlist.rowStatus(i) = "4";
  151. }
  152. }
  153. ]]>
  154. </script>
  155. </button>
  156. </group>
  157. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:20px; width:775px; height:35px; background-color:#fffbf2; border-color:#ffd799; ">.,m</shape>
  158. <button id="btn_search" class="btn1_letter2" navindex="2" style="left:714px; top:27px; width:56px; height:22px; ">
  159. <caption>조회</caption>
  160. <script type="javascript" ev:event="DOMActivate">
  161. <![CDATA[
  162. fSearch();
  163. ]]>
  164. </script>
  165. </button>
  166. <line id="line2" class="line_4" style="x1:705px; y1:25px; x2:705px; y2:50px; "/>
  167. <caption id="cap_instcd" class="search_name" style="left:10px; top:30px; width:86px; height:17px; ">기관코드 :</caption>
  168. <output id="opt_instcdnm" ref="/root/send/instcdnm" class="output_fix" style="left:100px; top:30px; width:160px; height:19px; text-align:center; "/>
  169. <input id="ipt_search" ref="/root/send/grupnm" class="input_search" style="left:375px; top:30px; width:155px; height:19px; "/>
  170. <caption id="caption1" class="search_name" style="left:295px; top:30px; width:86px; height:17px; ">그룹명 :</caption>
  171. </xhtml:body>
  172. </xhtml:html>