SMRST05300_실사량관리(영양팀).xrw 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496
  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. <rsthrstnlist/>
  11. </main>
  12. <send>
  13. <instcd/>
  14. <goodflag>SF</goodflag>
  15. <orginspym/>
  16. <stocdeptcd/>
  17. <stocdeptnm/>
  18. <goodcd/>
  19. <goodnm/>
  20. <lrgcd/>
  21. <instcdnm/>
  22. <orginspdd/>
  23. </send>
  24. <init>
  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="TRRST05301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/rsthrstnlist"/>
  36. <submission id="TXRST05301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/rsthrstnlist" resultref="/root/temp"/>
  37. <submission id="TRRST05302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/rsthrstnlist"/>
  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. {
  50. misfGridInit(grd_rsthrstnlist);
  51. // rszfComboStockArthDeptcdList(cmb_stocdeptcd,getUserInfo("dutplceinstcd"),"P" );
  52. // misfComboComCdListMulti("R0025","cmb_goodflag");
  53. // model.setValue(cmb_goodflag.attribute("ref"), "P");
  54. misfMsterDetailSet(grd_rsthrstnlist, null, "TRRST05301", "Y");
  55. model.setValue(opt_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
  56. model.setValue(opt_instcdnm.attribute("ref") , getUserInfo("dutplceinstnm"));
  57. model.setValue(opt_stocdeptcd.attribute("ref") , getUserInfo("dutplcecd"));
  58. model.setValue(opt_stocdeptnm.attribute("ref") , getUserInfo("dutplcenm"));
  59. var curdd = getCurrentDate();
  60. model.setValue(ipt_orginspym.attribute("ref") ,curdd.substr(0,6) );
  61. rszfGridComboLrgcdList(opt_goodflag.value, cmb_lrgcd, "lrgcd","N");
  62. addComboItem( "cmb_lrgcd", "전체", "", "above" );
  63. model.refresh();
  64. }
  65. function fCheckRetrieveData()
  66. {
  67. if(!isRequiredControls("opt_goodflag") )return false; // 물품구분
  68. if(!isRequiredControls("ipt_orginspym") )return false; // 작업년월
  69. if(!isRequiredControls("opt_stocdeptcd") )return false; // 부서코드
  70. // if(!isRequiredControls("cmb_lrgcd") )return false; // 대분류
  71. }
  72. // 팝업에서 리턴된 물품 데이터 노드설정.
  73. function fSettingGoodList(pnode, nodename){
  74. var codynode = instance1.selectNodes(pnode + "/*");
  75. var addRow = grd_rsthrstnlist.rows - grd_rsthrstnlist.fixedRows;
  76. // if(model.getValue(grd_rsthrstnlist.nodeset + "[" + addRow + "]/goodcd").length > 0)addRow = addRow + 1;
  77. for (var j = 1; j <= codynode.length ; j++) {
  78. if(addRow > grd_rsthrstnlist.rows - grd_rsthrstnlist.fixedRows)
  79. {
  80. btn_insert.dispatch("DOMActivate");
  81. addRow = grd_rsthrstnlist.rows - grd_rsthrstnlist.fixedRows;
  82. }
  83. model.setValue(grd_rsthrstnlist.nodeset + "[" + addRow + "]/goodcd" , model.getValue(pnode +"/" + nodename + "[" + j + "]/goodcd")); //물품코드
  84. model.setValue(grd_rsthrstnlist.nodeset + "[" + addRow + "]/goodnm" , model.getValue(pnode +"/" + nodename + "[" + j + "]/goodnm")); //물품명
  85. model.setValue(grd_rsthrstnlist.nodeset + "[" + addRow + "]/stocqty" , model.getValue(pnode +"/" + nodename + "[" + j + "]/stocqty")); // 재고량
  86. model.setValue(grd_rsthrstnlist.nodeset + "[" + addRow + "]/goodunitcost" , model.getValue(pnode +"/" + nodename + "[" + j + "]/goodunitcost")); // 단가
  87. model.setValue(grd_rsthrstnlist.nodeset + "[" + addRow + "]/goodflag" , opt_goodflag.value); // 물품구분.
  88. model.setValue(grd_rsthrstnlist.nodeset + "[" + addRow + "]/curemealstocqty" , model.getValue(pnode +"/" + nodename + "[" + j + "]/curemealstocqty")); // 재고량T
  89. model.setValue(grd_rsthrstnlist.nodeset + "[" + addRow + "]/empmealstocqty" , model.getValue(pnode +"/" + nodename + "[" + j + "]/empmealstocqty")); // 재고량S
  90. model.setValue(grd_rsthrstnlist.nodeset + "[" + addRow + "]/empnigtmealstocqty" , model.getValue(pnode +"/" + nodename + "[" + j + "]/empnigtmealstocqty")); // 재고량N
  91. model.setValue(grd_rsthrstnlist.nodeset + "[" + addRow + "]/lrgcd" , model.getValue(pnode +"/" + nodename + "[" + j + "]/lrgcd")); // 대분류코드
  92. addRow = addRow + 1;
  93. }
  94. model.refresh();
  95. }
  96. function finsert()
  97. {
  98. misfGridIUD(grd_rsthrstnlist, "A");
  99. grd_rsthrstnlist.valueMatrix(grd_rsthrstnlist.row, grd_rsthrstnlist.colRef("instcd")) = opt_instcd.value; //기관코드
  100. grd_rsthrstnlist.valueMatrix(grd_rsthrstnlist.row, grd_rsthrstnlist.colRef("stocdeptcd")) = opt_stocdeptcd.value; //부서코드
  101. grd_rsthrstnlist.valueMatrix(grd_rsthrstnlist.row, grd_rsthrstnlist.colRef("orginspym")) = ipt_orginspym.value; //작업년월
  102. grd_rsthrstnlist.valueMatrix(grd_rsthrstnlist.row, grd_rsthrstnlist.colRef("goodflag")) = opt_goodflag.value; //물품구분
  103. grd_rsthrstnlist.valueMatrix(grd_rsthrstnlist.row, grd_rsthrstnlist.colRef("orginspdd")) = getCurrentDate(); //실사일자
  104. grd_rsthrstnlist.isReadOnly(grd_rsthrstnlist.row, grd_rsthrstnlist.colRef("goodunitcost")) = true;
  105. }
  106. function fAfterRetr()
  107. {
  108. for(var liRow = grd_rsthrstnlist.fixedRows ; liRow < grd_rsthrstnlist.rows ; liRow++)
  109. {
  110. model.setValue(grd_rsthrstnlist.nodeset + "[" + (liRow - grd_rsthrstnlist.fixedRows + 1)+ "]/instcd",opt_instcd.value);
  111. model.setValue(grd_rsthrstnlist.nodeset + "[" + (liRow - grd_rsthrstnlist.fixedRows + 1)+ "]/stocdeptcd",opt_stocdeptcd.value);
  112. model.setValue(grd_rsthrstnlist.nodeset + "[" + (liRow - grd_rsthrstnlist.fixedRows + 1)+ "]/orginspym",ipt_orginspym.value );
  113. model.setValue(grd_rsthrstnlist.nodeset + "[" + (liRow - grd_rsthrstnlist.fixedRows + 1)+ "]/goodflag",opt_goodflag.value);
  114. model.setValue(grd_rsthrstnlist.nodeset + "[" + (liRow - grd_rsthrstnlist.fixedRows + 1)+ "]/orginspdd",getCurrentDate());
  115. if (grd_rsthrstnlist.rowStatus(liRow) == "0") grd_rsthrstnlist.rowStatus(liRow) = "1";
  116. }
  117. }
  118. ]]>
  119. </script>
  120. </xhtml:head>
  121. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  122. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  123. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:243px; height:14px; ">영양 실사량 관리</caption>
  124. </group>
  125. <group id="grp_biz" scroll="auto" style="left:0px; top:38; width:1195; height:744; ">
  126. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:10px; width:1195px; height:61px; background-color:#fffbf2; border-color:#ffd799; "/>
  127. <line id="line1" class="line_1" style="x1:0px; y1:95px; x2:1195px; y2:95px; "/>
  128. <datagrid id="grd_rsthrstnlist" nodeset="/root/main/rsthrstnlist" caption="물품코드^품명^단가^재고수량G^실사량G^재고수량T^실사량T^재고수량S^실사량S^재고수량N^실사량N^기관코드^물품구분^작업년월^부서코드^대분류코드^재고조정처리여부" colsep="^" colwidth="124, 334, 89, 70, 70, 70, 70, 70, 70, 70, 70, 100, 100, 100, 100, 100, 100, 100" dataheight="25" ellipsis="true" frozencols="4" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" tooltip="true" style="left:0px; top:100px; width:1195px; height:640px; ">
  129. <col imemode="alpha" ref="goodcd" type="inputbutton" _chartype="upper" _key="true" style="left:64px; top:23px; width:124px; height:23px; text-align:left; "/>
  130. <col ref="goodnm" type="input" style="text-align:left; "/>
  131. <col ref="goodunitcost" format="#,###" style="text-align:right; "/>
  132. <col ref="stocqty" format="#,###.#" style="text-align:right; "/>
  133. <col ref="orginspqty" type="input" format="#,###" style="text-align:right; "/>
  134. <col ref="curemealstocqty" format="#,###.#" style="text-align:right; "/>
  135. <col ref="curemealorginspqty" type="input" format="#,###" style="text-align:right; "/>
  136. <col ref="empmealstocqty" format="#,###.#" style="text-align:right; "/>
  137. <col ref="empmealorginspqty" type="input" format="#,###" style="text-align:right; "/>
  138. <col ref="empnigtmealstocqty" format="#,###.#" style="text-align:right; "/>
  139. <col ref="empnigtmealorginspqty" type="input" format="#,###" style="text-align:right; "/>
  140. <col ref="instcd" visibility="hidden" _key="true"/>
  141. <col ref="goodflag" visibility="hidden" _key="true"/>
  142. <col ref="orginspym" visibility="hidden" _key="true"/>
  143. <col ref="stocdeptcd" visibility="hidden" _key="true"/>
  144. <col ref="lrgcd" visibility="hidden"/>
  145. <col ref="stocadjttretyn" visibility="hidden"/>
  146. <col ref="orginspdd" visibility="hidden"/>
  147. <col ref="stocseqno" visibility="hidden"/>
  148. <script type="javascript" ev:event="onbuttonclick">
  149. <![CDATA[
  150. if(grd_rsthrstnlist.col == grd_rsthrstnlist.colRef("goodcd"))
  151. {
  152. model.removenode("/root/copynode");
  153. model.removenode(gvParamPath +"/SMRSD00400_/SMRSD00400_value");
  154. model.makeNode("/root/copynode");
  155. rszfOpenPopUpListByWndName(grd_rsthrstnlist,"","acsrscd,acsrsnm,acsrsspec,acsrsqty,acsrsunit,acsrsamt","SPRSD00190","instcd,goodflag","opt_instcd,opt_goodflag");
  156. var cur_row = grd_rsthrstnlist.row;
  157. var status = grd_rsthrstnlist.valueMatrix(cur_row, grd_rsthrstnlist.colRef("m"));
  158. var CSV = model.getValue(gvParamPath +"/SMRSD00400_/SMRSD00400_value");
  159. setCSVToNode("/root/copynode", CSV, "rsthrstnlist");
  160. model.refresh();
  161. fSettingGoodList("/root/copynode", "rsthrstnlist");
  162. }
  163. ]]>
  164. </script>
  165. <script type="javascript" ev:event="xforms-value-changed">
  166. <![CDATA[
  167. if(grd_rsthrstnlist.col == grd_rsthrstnlist.colRef("goodcd"))
  168. {
  169. if( grd_rsthrstnlist.valueMatrix(grd_rsthrstnlist.row, grd_rsthrstnlist.colRef("goodcd")) == "" )
  170. {
  171. grd_rsthrstnlist.valueMatrix(grd_rsthrstnlist.row, grd_rsthrstnlist.colRef("goodcd")) = "";
  172. grd_rsthrstnlist.valueMatrix(grd_rsthrstnlist.row, grd_rsthrstnlist.colRef("goodnm")) = "";
  173. return;
  174. }
  175. model.removenode("/root/copynode");
  176. model.removenode(gvParamPath +"/SMRSD00400_/SMRSD00400_value");
  177. model.makeNode("/root/copynode");
  178. rszfValidationCheck("TRRSD00191", "goodlist" ,
  179. "refcond,instcd,goodflag,goodcd,goodnm,indexgb,indexnm",
  180. "goodcd," + opt_instcd.value + ","+ grd_rsthrstnlist.valueMatrix(grd_rsthrstnlist.row, grd_rsthrstnlist.colRef("goodflag")) + "," + grd_rsthrstnlist.valueMatrix(grd_rsthrstnlist.row, grd_rsthrstnlist.colRef("goodcd")) + ",,," ,
  181. "","goodcd,goodnm",grd_rsthrstnlist,"SPRSD00190","instcd,goodflag","opt_instcd,opt_goodflag","Y");
  182. if(model.getValue("/root/init/main/goodlist/goodcd") != "")
  183. {
  184. grd_rsthrstnlist.valueMatrix(grd_rsthrstnlist.row, grd_rsthrstnlist.colRef("goodcd")) = model.getValue("/root/init/main/goodlist/goodcd");
  185. grd_rsthrstnlist.valueMatrix(grd_rsthrstnlist.row, grd_rsthrstnlist.colRef("goodnm")) = model.getValue("/root/init/main/goodlist/goodnm");
  186. grd_rsthrstnlist.valueMatrix(grd_rsthrstnlist.row, grd_rsthrstnlist.colRef("stocqty")) = model.getValue("/root/init/main/goodlist/stocqty");
  187. grd_rsthrstnlist.valueMatrix(grd_rsthrstnlist.row, grd_rsthrstnlist.colRef("goodunitcost")) = model.getValue("/root/init/main/goodlist/goodunitcost");
  188. grd_rsthrstnlist.valueMatrix(grd_rsthrstnlist.row, grd_rsthrstnlist.colRef("goodflag")) = model.getValue("/root/init/main/goodlist/goodflag");
  189. grd_rsthrstnlist.valueMatrix(grd_rsthrstnlist.row, grd_rsthrstnlist.colRef("curemealstocqty")) = model.getValue("/root/init/main/goodlist/curemealstocqty");
  190. grd_rsthrstnlist.valueMatrix(grd_rsthrstnlist.row, grd_rsthrstnlist.colRef("empmealstocqty")) = model.getValue("/root/init/main/goodlist/empmealstocqty");
  191. grd_rsthrstnlist.valueMatrix(grd_rsthrstnlist.row, grd_rsthrstnlist.colRef("empnigtmealstocqty")) = model.getValue("/root/init/main/goodlist/empnigtmealstocqty");
  192. }
  193. var cur_row = grd_rsthrstnlist.row;
  194. var status = grd_rsthrstnlist.valueMatrix(cur_row, grd_rsthrstnlist.colRef("m"));
  195. var CSV = model.getValue(gvParamPath +"/SMRSD00400_/SMRSD00400_value");
  196. setCSVToNode("/root/copynode", CSV, "rsthrstnlist");
  197. fSettingGoodList("/root/copynode", "rsthrstnlist");
  198. }
  199. else if(grd_rsthrstnlist.col == grd_rsthrstnlist.colRef("goodnm"))
  200. {
  201. if( grd_rsthrstnlist.valueMatrix(grd_rsthrstnlist.row, grd_rsthrstnlist.colRef("goodnm")) == "" )
  202. {
  203. grd_rsthrstnlist.valueMatrix(grd_rsthrstnlist.row, grd_rsthrstnlist.colRef("goodcd")) = "";
  204. grd_rsthrstnlist.valueMatrix(grd_rsthrstnlist.row, grd_rsthrstnlist.colRef("goodnm")) = "";
  205. return;
  206. }
  207. model.removenode("/root/copynode");
  208. model.removenode(gvParamPath +"/SMRSD00400_/SMRSD00400_value");
  209. model.makeNode("/root/copynode");
  210. rszfValidationCheck("TRRSD00191", "goodlist" ,
  211. "refcond,instcd,goodflag,goodcd,goodnm,indexgb,indexnm",
  212. "goodnm," + opt_instcd.value + ","+ grd_rsthrstnlist.valueMatrix(grd_rsthrstnlist.row, grd_rsthrstnlist.colRef("goodflag")) +",," + grd_rsthrstnlist.valueMatrix(grd_rsthrstnlist.row, grd_rsthrstnlist.colRef("goodnm")) + ",," ,
  213. "","goodcd,goodnm",grd_rsthrstnlist,"SPRSD00190","instcd,goodflag","opt_instcd,opt_goodflag","Y");
  214. if(model.getValue("/root/init/main/goodlist/goodcd") != ""){
  215. grd_rsthrstnlist.valueMatrix(grd_rsthrstnlist.row, grd_rsthrstnlist.colRef("goodcd")) = model.getValue("/root/init/main/goodlist/goodcd");
  216. grd_rsthrstnlist.valueMatrix(grd_rsthrstnlist.row, grd_rsthrstnlist.colRef("goodnm")) = model.getValue("/root/init/main/goodlist/goodnm");
  217. grd_rsthrstnlist.valueMatrix(grd_rsthrstnlist.row, grd_rsthrstnlist.colRef("stocqty")) = model.getValue("/root/init/main/goodlist/stocqty");
  218. grd_rsthrstnlist.valueMatrix(grd_rsthrstnlist.row, grd_rsthrstnlist.colRef("goodunitcost")) = model.getValue("/root/init/main/goodlist/goodunitcost");
  219. grd_rsthrstnlist.valueMatrix(grd_rsthrstnlist.row, grd_rsthrstnlist.colRef("goodflag")) = model.getValue("/root/init/main/goodlist/goodflag");
  220. grd_rsthrstnlist.valueMatrix(grd_rsthrstnlist.row, grd_rsthrstnlist.colRef("curemealstocqty")) = model.getValue("/root/init/main/goodlist/curemealstocqty");
  221. grd_rsthrstnlist.valueMatrix(grd_rsthrstnlist.row, grd_rsthrstnlist.colRef("empmealstocqty")) = model.getValue("/root/init/main/goodlist/empmealstocqty");
  222. grd_rsthrstnlist.valueMatrix(grd_rsthrstnlist.row, grd_rsthrstnlist.colRef("empnigtmealstocqty")) = model.getValue("/root/init/main/goodlist/empnigtmealstocqty");
  223. }
  224. var cur_row = grd_rsthrstnlist.row;
  225. var status = grd_rsthrstnlist.valueMatrix(cur_row, grd_rsthrstnlist.colRef("m"));
  226. var CSV = model.getValue(gvParamPath +"/SMRSD00400_/SMRSD00400_value");
  227. setCSVToNode("/root/copynode", CSV, "rsthrstnlist");
  228. fSettingGoodList("/root/copynode", "rsthrstnlist");
  229. }
  230. else if(grd_rsthrstnlist.col == grd_rsthrstnlist.colRef("orginspqty"))
  231. {
  232. if(event.keyCode == 13)
  233. {
  234. // ddd
  235. if( grd_rsthrstnlist.rows > grd_rsthrstnlist.row+1 )
  236. {
  237. grd_rsthrstnlist.row = grd_rsthrstnlist.row+1;
  238. grd_rsthrstnlist.col = grd_rsthrstnlist.colRef("orginspqty");
  239. }
  240. }
  241. }
  242. model.refresh();
  243. ]]>
  244. </script>
  245. </datagrid>
  246. <input id="ipt_orginspym" ref="/root/send/orginspym" class="input_s_essential" inputtype="date" format="yyyy-mm" style="left:386px; top:18px; width:105px; height:19px; text-align:center; "/>
  247. <caption id="caption3" class="tit_2" style="left:5px; top:80px; width:131px; height:14px; ">영양 실사등록 내역</caption>
  248. <button id="btn_goodcd" class="icon_search" style="left:719px; top:46px; width:16px; height:16px; ">
  249. <caption/>
  250. <script type="javascript" ev:event="DOMActivate">
  251. <![CDATA[
  252. if(!isRequiredControls("opt_goodflag") )return; // 물품구분
  253. rszfOpenPopUpListByWndName(ipt_goodcd,"","goodcd,goodnm,goodflag","SPRSD00210","instcd,goodflag", "opt_instcd,opt_goodflag");
  254. model.refresh();
  255. ]]>
  256. </script>
  257. </button>
  258. <input id="ipt_goodcd" ref="/root/send/goodcd" class="input_search" style="left:630px; top:45px; width:82px; height:19px; text-align:center; ">
  259. <script type="javascript" ev:event="xforms-value-changed">
  260. <![CDATA[
  261. if(!isRequiredControls("opt_goodflag") )return; // 물품구분
  262. if(ipt_goodcd.value != ""){
  263. rszfValidationCheck("TRRSD00191", "goodlist" , "refcond,instcd,goodflag,goodcd,goodnm,indexgb,indexnm,reqflag",
  264. "goodcd," + model.getValue(opt_instcd.attribute("ref")) + "," + model.getValue(opt_goodflag.attribute("ref"))
  265. + ","+ ipt_goodcd.value +",,," + model.getValue(opt_goodflag.attribute("ref")) ,
  266. "","goodcd,goodnm",ipt_goodcd,"SPRSD00210","instcd,goodflag","opt_instcd,opt_goodflag");
  267. }else{
  268. ipt_goodcd.value = "";
  269. ipt_goodnm.value = "";
  270. }
  271. model.refresh();
  272. ]]>
  273. </script>
  274. </input>
  275. <input id="ipt_goodnm" ref="/root/send/goodnm" class="input_search" style="left:739px; top:45px; width:203px; height:19px; text-align:center; ">
  276. <script type="javascript" ev:event="xforms-value-changed">
  277. <![CDATA[
  278. if(!isRequiredControls("opt_goodflag") )return; // 물품구분
  279. if(ipt_goodnm.value != ""){
  280. rszfValidationCheck("TRRSD00191", "goodlist" , "refcond,instcd,goodflag,goodcd,goodnm,indexgb,indexnm,reqflag",
  281. "goodnm," + model.getValue(opt_instcd.attribute("ref")) + "," + model.getValue(opt_goodflag.attribute("ref"))
  282. +",," + ipt_goodnm.value + ",," + model.getValue(opt_goodflag.attribute("ref")) ,
  283. "","goodcd,goodnm",ipt_goodcd,"SPRSD00210","instcd,goodflag","opt_instcd,opt_goodflag");
  284. }else{
  285. ipt_goodcd.value = "";
  286. ipt_goodnm.value = "";
  287. }
  288. model.refresh();
  289. ]]>
  290. </script>
  291. </input>
  292. <button id="btn_search" class="btn1_letter2" style="left:1125px; top:29px; width:56px; height:22px; ">
  293. <caption>조회</caption>
  294. <script type="javascript" ev:event="DOMActivate">
  295. <![CDATA[
  296. var data = getGridUpdateData(grd_rsthrstnlist);
  297. if(data != "")
  298. {
  299. if(messageBox("작업중인 Data 가 있습니다.","Q003") != 6 )return;
  300. }
  301. if(fCheckRetrieveData(false) == false)return;
  302. submit("TRRST05301");
  303. misfSetReadOnlyCol(grd_rsthrstnlist, "goodcd,goodnm,goodflag,goodunitcost,stocqty,curemealstocqty,empmealstocqty,empnigtmealstocqty,", true);
  304. model.refresh();
  305. ]]>
  306. </script>
  307. </button>
  308. <line id="line13" class="line_4" style="x1:1110px; y1:16px; x2:1110px; y2:61px; "/>
  309. <caption id="cap_lrgcd" class="search_name" style="left:15px; top:45px; width:88px; height:17px; ">대 분 류 :</caption>
  310. <caption id="cap_instcd" class="search_name" style="left:15; top:19; width:86px; height:17px; ">기관코드 :</caption>
  311. <caption id="cap_goodcd" class="search_name" style="left:542px; top:45px; width:86px; height:17px; ">물품코드 :</caption>
  312. <caption id="cap_orginspym" class="search_name" style="left:285px; top:19px; width:101px; height:17px; ">작업 년월 :</caption>
  313. <caption id="cap_stocdeptcd" class="search_name" style="left:542px; top:19px; width:99px; height:17px; ">부 서 :</caption>
  314. <button id="btn_delete" class="btn2_letter3" style="left:1140px; top:75px; width:53px; height:19px; ">
  315. <caption>행삭제</caption>
  316. <script type="javascript" ev:event="DOMActivate">
  317. <![CDATA[
  318. misfGridIUD(grd_rsthrstnlist, "D");
  319. ]]>
  320. </script>
  321. </button>
  322. <button id="btn_insert" class="btn2_letter3" style="left:1085px; top:75px; width:53px; height:19px; ">
  323. <caption>행추가</caption>
  324. <script type="javascript" ev:event="DOMActivate">
  325. <![CDATA[
  326. if(fCheckRetrieveData(false) == false)return;
  327. finsert();
  328. model.refresh();
  329. ]]>
  330. </script>
  331. </button>
  332. <select1 id="cmb_lrgcd" ref="/root/send/lrgcd" class="combo_s_essential" appearance="minimal" style="left:100px; top:45px; width:150px; height:19px; text-align:center; ">
  333. <choices>
  334. <itemset>
  335. <label/>
  336. <value/>
  337. </itemset>
  338. </choices>
  339. </select1>
  340. <button id="btn_load" class="btn2_letter10" style="left:952px; top:75px; width:130px; height:19px; ">
  341. <caption>기초데이타 가져오기</caption>
  342. <script type="javascript" ev:event="DOMActivate">
  343. <![CDATA[
  344. var data = getGridUpdateData(grd_rsthrstnlist);
  345. if(data != "")
  346. {
  347. if(messageBox("작업중인 Data 가 있습니다.","Q003") != 6 )return;
  348. }
  349. if(!isRequiredControls("opt_goodflag") )return; // 물품구분
  350. if(!isRequiredControls("ipt_orginspym") )return; // 작업년월
  351. if(!isRequiredControls("opt_stocdeptcd") )return; // 부서코드
  352. // if(!isRequiredControls("cmb_lrgcd") )return; // 대분류
  353. submit("TRRST05302");
  354. fAfterRetr();
  355. model.refresh();
  356. ]]>
  357. </script>
  358. </button>
  359. <output id="opt_instcdnm" ref="/root/send/instcdnm" class="output_fix" style="left:100px; top:18px; width:150px; height:19px; text-align:center; "/>
  360. <output id="opt_instcd" ref="/root/send/instcd" class="output_fix" visibility="hidden" style="left:1020px; top:45px; width:20px; height:19px; "/>
  361. <output id="opt_goodflag" ref="/root/send/goodflag" class="output_fix" visibility="hidden" style="left:1045px; top:45px; width:20px; height:19px; "/>
  362. <output id="opt_stocdeptcd" ref="/root/send/stocdeptcd" class="output_fix" style="left:630px; top:18px; width:90px; height:19px; text-align:center; "/>
  363. <output id="opt_stocdeptnm" ref="/root/send/stocdeptnm" class="output_fix" style="left:725px; top:18px; width:120px; height:19px; text-align:center; "/>
  364. </group>
  365. <group id="group1" style="left:0px; top:12; width:1195px; height:27px; ">
  366. <button id="btn_print" class="btn6_letter5" style="left:0px; top:3px; width:92px; height:22px; ">
  367. <caption>리스트출력</caption>
  368. <script type="javascript" ev:event="DOMActivate">
  369. <![CDATA[
  370. exeReportPreview("RPRST05301", "XMLSTR");
  371. ]]>
  372. </script>
  373. </button>
  374. <button id="btn_save" class="btn4_letter2" style="left:1070px; top:3px; width:56px; height:22px; ">
  375. <caption>저장</caption>
  376. <script type="javascript" ev:event="DOMActivate">
  377. <![CDATA[
  378. // if(messageBox("","Q002") != 6) return;
  379. if(checkKeyColumn("grd_rsthrstnlist")== false) return;
  380. for(var fRow = grd_rsthrstnlist.fixedRows; fRow < grd_rsthrstnlist.rows; fRow++)
  381. {
  382. if(grd_rsthrstnlist.valueMatrix(fRow, grd_rsthrstnlist.colRef("orginspqty")) == "" )
  383. {
  384. messageBox("실사량은","I003");
  385. return;
  386. }
  387. }
  388. var data = getGridUpdateData(grd_rsthrstnlist);
  389. if(data == "")
  390. {
  391. messageBox("저장할 내용이","I004");
  392. return;
  393. }
  394. misfSave("TXRST05301");
  395. btn_search.dispatch("DOMActivate");
  396. model.refresh();
  397. ]]>
  398. </script>
  399. </button>
  400. <button id="btn_init" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
  401. <caption>초기화</caption>
  402. <script type="javascript" ev:event="DOMActivate">
  403. <![CDATA[
  404. var data = getGridUpdateData(grd_rsthrstnlist);
  405. if(data != "")
  406. {
  407. if(messageBox("작업중인 Data 가 있습니다.","Q003") != 6 )return;
  408. }
  409. fInitialize();
  410. ]]>
  411. </script>
  412. </button>
  413. <line id="line17" class="line_6" style="x1:0px; y1:25px; x2:1195px; y2:25px; "/>
  414. </group>
  415. </xhtml:body>
  416. </xhtml:html>