SMRSS00100_부서별 기준량 관리(CSR).xrw 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516
  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. <deptlist/>
  11. <goodbaseqtylist/>
  12. </main>
  13. <send>
  14. <deptlist>
  15. <goodflag/>
  16. <deptcd/>
  17. <instcd/>
  18. <goodcd/>
  19. </deptlist>
  20. <retvcond>
  21. <instcd/>
  22. <goodflag/>
  23. <csrreqdeptcd/>
  24. <goodcd/>
  25. <goodnm/>
  26. </retvcond>
  27. <goodbaseqtylist/>
  28. <goodcd/>
  29. </send>
  30. <init>
  31. </init>
  32. <hidden/>
  33. <temp/>
  34. <copynode/>
  35. </root>
  36. </instance>
  37. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  38. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  39. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  40. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  41. <script type="javascript" ev:event="xforms-ready">
  42. <![CDATA[
  43. fInitialize();
  44. ]]>
  45. </script>
  46. <submission id="TRRSS00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/retvcond" resultref="/root/main/deptlist"/>
  47. <submission id="TRRSS00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/deptlist" resultref="/root/main/goodbaseqtylist"/>
  48. <submission id="TXRSS00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp"/>
  49. <submission id="TRRSD00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/goodbaseqtylist"/>
  50. </model>
  51. <script type="javascript">
  52. <![CDATA[
  53. // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
  54. function fInitialize()
  55. {
  56. model.removeNodeset("/root/main/deptlist");
  57. model.removeNodeset("/root/main/goodbaseqtylist");
  58. model.resetInstanceNode("/root/send");
  59. misfComboComCdListMulti("Z0007,R0269", "cmb_instcd,cmb_csrreqdeptcd");
  60. misfGridInit(grd_deptlist);
  61. misfGridInit(grd_goodbaseqtylist);
  62. cmb_csrreqdeptcd.select(0);
  63. model.setValue(cmb_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
  64. model.setValue(ipt_goodflag.attribute("ref"), "T");
  65. misfMsterDetailSet(grd_deptlist,null,"TRRSS00101","Y");
  66. misfMsterDetailSet(grd_goodbaseqtylist,grd_deptlist,"TRRSS00102","Y");
  67. //화면 권한 설정
  68. btn_save.disabled = !(checkAuth("X"));
  69. btn_prt.disabled= !(checkAuth("P"));
  70. model.refresh();
  71. }
  72. function fSerachData()
  73. {
  74. // 처음 프로세스 시작시 부서를 조회함..
  75. // 부서 그리드 클릭시 필요없는 조회 때문에 주석처리 됨.
  76. // misfMsterDetailRetrieve();
  77. var cur_row = grd_deptlist.row;
  78. model.setValue("/root/send/deptlist/instcd", model.getValue("/root/main/deptlist["+cur_row+"]/instcd") );
  79. model.setValue("/root/send/deptlist/deptcd", model.getValue("/root/main/deptlist["+cur_row+"]/deptcd") );
  80. model.setValue("/root/send/deptlist/goodflag", model.getValue("/root/send/retvcond/goodflag") );
  81. model.setValue("/root/send/deptlist/goodcd", model.getValue("/root/send/retvcond/goodcd") );
  82. submit("TRRSS00102");
  83. misfSetReadOnlyCol(grd_goodbaseqtylist, "goodcd,goodnm,lrgnm,exchqty,purcunit", true);
  84. if(grd_goodbaseqtylist.rows > grd_goodbaseqtylist.fixedRows)
  85. {
  86. btn_delete.disabled = false;
  87. }else{
  88. btn_delete.disabled = true;
  89. }
  90. grd_goodbaseqtylist.editCell();
  91. // 부서 그리드 선택 영역 표시
  92. grd_deptlist.select(grd_deptlist.row, 1) = true;
  93. }
  94. function fGridDataSet()
  95. {
  96. //부서코드 설정
  97. grd_goodbaseqtylist.valueMatrix(grd_goodbaseqtylist.row, grd_goodbaseqtylist.colRef("reqdeptcd"))
  98. = grd_deptlist.valueMatrix(grd_deptlist.row, grd_deptlist.colRef("deptcd"));
  99. // 기관코드 설정
  100. grd_goodbaseqtylist.valueMatrix(grd_goodbaseqtylist.row, grd_goodbaseqtylist.colRef("instcd"))
  101. = grd_deptlist.valueMatrix(grd_deptlist.row, grd_deptlist.colRef("instcd"));
  102. model.refresh();
  103. }
  104. function fSave()
  105. {
  106. var updtdata = getGridUpdateData(grd_goodbaseqtylist);
  107. if (updtdata == "" ) {
  108. messageBox("변경된 데이터가","I004");
  109. return;
  110. }
  111. // if(!checkKeyColumn("grd_goodbaseqtylist")) return;
  112. //
  113. // var sDDavguseqty = grd_goodbaseqtylist.valueMatrix(grd_goodbaseqtylist.row, grd_goodbaseqtylist.colRef("ddavguseqty"));
  114. //
  115. // if(sDDavguseqty == 0 || sDDavguseqty ==null)
  116. // {
  117. // messageBox("대여량은", "I003");
  118. // return;
  119. // }
  120. //
  121. //
  122. // var sBasevol = grd_goodbaseqtylist.valueMatrix(grd_goodbaseqtylist.row, grd_goodbaseqtylist.colRef("basevol"));
  123. //
  124. // if(sBasevol == 0 || sBasevol ==null)
  125. // {
  126. // messageBox("비품기준량은", "I003");
  127. // return;
  128. // }
  129. misfSave("TXRSS00101");
  130. btn_search.dispatch("DOMActivate");
  131. model.refresh();
  132. }
  133. function fSettingGoodList(pnode, nodename)
  134. {
  135. var codynode = instance1.selectNodes(pnode + "/*");
  136. var addRow = grd_goodbaseqtylist.rows - grd_goodbaseqtylist.fixedRows;
  137. for (var j = 1; j <= codynode.length ; j++)
  138. {
  139. if(addRow > grd_goodbaseqtylist.rows - grd_goodbaseqtylist.fixedRows)
  140. {
  141. misfGridIUD(grd_goodbaseqtylist,"A");
  142. addRow = grd_goodbaseqtylist.rows - grd_goodbaseqtylist.fixedRows;
  143. }
  144. model.setValue(grd_goodbaseqtylist.nodeset + "[" + addRow + "]/reqdeptcd", grd_deptlist.valueMatrix(grd_deptlist.row, grd_deptlist.colRef("deptcd")) );
  145. model.setValue(grd_goodbaseqtylist.nodeset + "[" + addRow + "]/goodcd" , model.getValue(pnode +"/" + nodename + "[" + j + "]/goodcd"));
  146. model.setValue(grd_goodbaseqtylist.nodeset + "[" + addRow + "]/goodnm" , model.getValue(pnode +"/" + nodename + "[" + j + "]/goodnm"));
  147. model.setValue(grd_goodbaseqtylist.nodeset + "[" + addRow + "]/goodspec" , model.getValue(pnode +"/" + nodename + "[" + j + "]/goodspec"));
  148. model.setValue(grd_goodbaseqtylist.nodeset + "[" + addRow + "]/goodmodel" , model.getValue(pnode +"/" + nodename + "[" + j + "]/goodmodel"));
  149. model.setValue(grd_goodbaseqtylist.nodeset + "[" + addRow + "]/prodcmpynm" , model.getValue(pnode +"/" + nodename + "[" + j + "]/prodcmpynm"));
  150. model.setValue(grd_goodbaseqtylist.nodeset + "[" + addRow + "]/stocqty" , model.getValue(pnode +"/" + nodename + "[" + j + "]/stocqty"));
  151. model.setValue(grd_goodbaseqtylist.nodeset + "[" + addRow + "]/lrgcd" , model.getValue(pnode +"/" + nodename + "[" + j + "]/lrgcd"));
  152. model.setValue(grd_goodbaseqtylist.nodeset + "[" + addRow + "]/lrgnm" , model.getValue(pnode +"/" + nodename + "[" + j + "]/lrgnm"));
  153. model.setValue(grd_goodbaseqtylist.nodeset + "[" + addRow + "]/exchqty" , model.getValue(pnode +"/" + nodename + "[" + j + "]/exchqty"));
  154. model.setValue(grd_goodbaseqtylist.nodeset + "[" + addRow + "]/purcunit" , model.getValue(pnode +"/" + nodename + "[" + j + "]/purcunit"));
  155. model.setValue(grd_goodbaseqtylist.nodeset + "[" + addRow + "]/ddavguseqty" , model.getValue(pnode +"/" + nodename + "[" + j + "]/ddavguseqty"));
  156. model.setValue(grd_goodbaseqtylist.nodeset + "[" + addRow + "]/basevol" , model.getValue(pnode +"/" + nodename + "[" + j + "]/safestocqty"));
  157. addRow = addRow + 1;
  158. }
  159. model.recalculate();
  160. model.refresh();
  161. }
  162. // 물품코드 확인시 노드 설정.
  163. function fGridDrugSetValidation()
  164. {
  165. model.setValue(grd_goodbaseqtylist.nodeset + "[" + grd_goodbaseqtylist.row + "]/goodcd" , model.getValue("/root/init/main/goodlist/goodcd"));
  166. model.setValue(grd_goodbaseqtylist.nodeset + "[" + grd_goodbaseqtylist.row + "]/goodnm" , model.getValue("/root/init/main/goodlist/goodnm"));
  167. model.setValue(grd_goodbaseqtylist.nodeset + "[" + grd_goodbaseqtylist.row + "]/goodspec" , model.getValue("/root/init/main/goodlist/goodspec"));
  168. model.setValue(grd_goodbaseqtylist.nodeset + "[" + grd_goodbaseqtylist.row + "]/goodmodel" , model.getValue("/root/init/main/goodlist/goodmodel"));
  169. model.setValue(grd_goodbaseqtylist.nodeset + "[" + grd_goodbaseqtylist.row + "]/prodcmpynm" , model.getValue("/root/init/main/goodlist/prodcmpynm"));
  170. model.setValue(grd_goodbaseqtylist.nodeset + "[" + grd_goodbaseqtylist.row + "]/stocqty" , model.getValue("/root/init/main/goodlist/stocqty"));
  171. model.setValue(grd_goodbaseqtylist.nodeset + "[" + grd_goodbaseqtylist.row + "]/lrgcd" , model.getValue("/root/init/main/goodlist/lrgcd"));
  172. model.setValue(grd_goodbaseqtylist.nodeset + "[" + grd_goodbaseqtylist.row + "]/lrgnm" , model.getValue("/root/init/main/goodlist/lrgnm"));
  173. model.setValue(grd_goodbaseqtylist.nodeset + "[" + grd_goodbaseqtylist.row + "]/exchqty" , model.getValue("/root/init/main/goodlist/exchqty"));
  174. model.setValue(grd_goodbaseqtylist.nodeset + "[" + grd_goodbaseqtylist.row + "]/purcunit" , model.getValue("/root/init/main/goodlist/purcunit"));
  175. model.setValue(grd_goodbaseqtylist.nodeset + "[" + grd_goodbaseqtylist.row + "]/ddavguseqty" , model.getValue("/root/init/main/goodlist/ddavguseqty"));
  176. model.setValue(grd_goodbaseqtylist.nodeset + "[" + grd_goodbaseqtylist.row + "]/basevol" , model.getValue("/root/init/main/goodlist/safestocqty"));
  177. }
  178. ]]>
  179. </script>
  180. </xhtml:head>
  181. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  182. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  183. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:186px; height:14px; ">부서별 비품현황 관리</caption>
  184. </group>
  185. <group id="grp_biz" scroll="auto" style="left:0px; top:38; width:1195px; height:744px; ">
  186. <group id="grp_sea" style="left:0px; top:10px; width:1195px; height:35px; vertical-align:top; ">
  187. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  188. <caption id="caption2" class="search_name" style="left:15px; top:9; width:89px; height:17px; ">기관코드 :</caption>
  189. <button id="btn_search" class="btn1_letter2" style="left:1125px; top:7; width:56px; height:22px; ">
  190. <caption>조회</caption>
  191. <script type="javascript" ev:event="DOMActivate">
  192. <![CDATA[
  193. //misfMsterDetailRetrieve();
  194. if(!isRequiredControls("cmb_instcd"))return;
  195. submit("TRRSS00101");
  196. if(grd_deptlist.rows != grd_deptlist.fixedRows)
  197. {
  198. grd_deptlist.row = grd_deptlist.fixedRows;
  199. grd_deptlist.dispatch("onclick");
  200. grd_deptlist.select(grd_deptlist.fixedRows, grd_deptlist.fixedCols) = true;
  201. }
  202. //fSerachData();
  203. ]]>
  204. </script>
  205. </button>
  206. <select1 id="cmb_instcd" ref="/root/send/retvcond/instcd" class="combo_s_essential" appearance="minimal" style="left:105px; top:8px; width:165px; height:19px; ">
  207. <choices>
  208. <itemset>
  209. <label/>
  210. <value/>
  211. </itemset>
  212. </choices>
  213. </select1>
  214. <input id="ipt_goodflag" ref="/root/send/retvcond/goodflag" visibility="hidden" style="left:605px; top:8px; width:40px; height:19px; "/>
  215. <line id="line3" class="line_4" style="x1:1110px; y1:4px; x2:1110px; y2:30; border-color:#ffe4bb; border-left-style:solid; "/>
  216. <caption id="cap_csrreqdeptcd" class="search_name" style="left:316px; top:9px; width:119px; height:17px; ">CSR 청구부서 :</caption>
  217. <select1 id="cmb_csrreqdeptcd" ref="/root/send/retvcond/csrreqdeptcd" appearance="minimal" style="left:439px; top:8px; width:158px; height:19px; ">
  218. <choices>
  219. <itemset>
  220. <label/>
  221. <value/>
  222. </itemset>
  223. </choices>
  224. </select1>
  225. <input id="ipt_goodnm" ref="/root/send/retvcond/goodnm" class="input_search" appearance="input" style="left:898px; top:8px; width:170px; height:19px; ">
  226. <script type="javascript" ev:event="xforms-value-changed">
  227. <![CDATA[
  228. if(ipt_goodnm.value != "")
  229. {
  230. rszfValidationCheck("TRRSD00191", "goodlist", "refcond,instcd,goodflag,goodcd,goodnm",
  231. "goodnm" + "," + model.getValue(cmb_instcd.attribute("ref")) + "," + ipt_goodflag.value + ",," + ipt_goodnm.value,
  232. "", "goodcd,goodnm",
  233. ipt_goodcd,"SPRSD00210","instcd,goodflag","cmb_instcd,ipt_goodflag");
  234. }else{
  235. ipt_goodcd.value = "";
  236. }
  237. model.refresh();
  238. ]]>
  239. </script>
  240. </input>
  241. <button id="btn_searchgoodcd" class="icon_search" style="left:877px; top:9px; width:16px; height:16px; ">
  242. <caption/>
  243. <script type="javascript" ev:event="DOMActivate">
  244. <![CDATA[
  245. rszfOpenPopUpListByWndName(ipt_goodcd,"","goodcd,goodnm","SPRSD00210","instcd,goodflag","cmb_instcd,ipt_goodflag");
  246. model.refresh();
  247. ]]>
  248. </script>
  249. </button>
  250. <input id="ipt_goodcd" ref="/root/send/retvcond/goodcd" class="input_fix" style="left:778px; top:8px; width:95px; height:19px; ">
  251. <script type="javascript" ev:event="xforms-value-changed">
  252. <![CDATA[
  253. if(ipt_goodcd.value != "")
  254. {
  255. rszfValidationCheck("TRRSD00191", "goodlist", "refcond,instcd,goodflag,goodcd",
  256. "goodcd" + "," + model.getValue(cmb_instcd.attribute("ref")) + "," + ipt_goodflag.value + "," + ipt_goodcd.value, "",
  257. "goodcd,goodnm",
  258. ipt_goodcd,"SPRSD00210","instcd,goodflag","cmb_instcd,ipt_goodflag");
  259. }else{
  260. ipt_goodnm.value = "";
  261. }
  262. model.refresh();
  263. ]]>
  264. </script>
  265. </input>
  266. <caption id="cap_goodcd" class="search_name" style="left:685px; top:9px; width:91px; height:17px; ">물품코드 :</caption>
  267. </group>
  268. <caption id="caption1" class="tit_2" style="left:5px; top:54px; width:157px; height:13px; ">부서</caption>
  269. <line id="line1" class="line_1" style="x1:205px; y1:71px; x2:1195px; y2:70px; "/>
  270. <caption id="caption4" class="tit_2" style="left:209px; top:54px; width:190px; height:13px; ">물품별 기준량</caption>
  271. <line id="line2" class="line_1" style="x1:0px; y1:70px; x2:200px; y2:71px; "/>
  272. <button id="btn_grdadd" class="btn2_letter3" style="left:1086px; top:76px; width:53px; height:19px; ">
  273. <caption>행추가</caption>
  274. <script type="javascript" ev:event="DOMActivate">
  275. <![CDATA[
  276. var rdlist_cur_row = grd_deptlist.row - grd_deptlist.fixedRows + 1;
  277. var rdlist_select_dept = model.getValue(grd_deptlist.attribute("nodeset")+"["+rdlist_cur_row+"]/deptcd");
  278. if(rdlist_select_dept == "") {
  279. messageBox("좌측 목록에서 부서를 ","C002");
  280. } else {
  281. misfGridIUD(grd_goodbaseqtylist, "A");
  282. var instcd, goodflag, reqdeptcd;
  283. instcd = grd_deptlist.valueMatrix(rdlist_cur_row, grd_deptlist.colRef("instcd"));
  284. goodflag = grd_deptlist.valueMatrix(rdlist_cur_row, grd_deptlist.colRef("goodflag"));
  285. reqdeptcd = grd_deptlist.valueMatrix(rdlist_cur_row, grd_deptlist.colRef("deptcd"));
  286. var gbqlist_cur_row = grd_goodbaseqtylist.row - grd_goodbaseqtylist.fixedRows + 1;
  287. //행추가를 누를시 기간코드,청구구분,청구부서 값을 자동으로 Detail 그리드에 저장한다.
  288. model.setValue(grd_goodbaseqtylist.attribute("nodeset")+"["+gbqlist_cur_row+"]/instcd",instcd);
  289. model.setValue(grd_goodbaseqtylist.attribute("nodeset")+"["+gbqlist_cur_row+"]/goodflag",goodflag);
  290. model.setValue(grd_goodbaseqtylist.attribute("nodeset")+"["+gbqlist_cur_row+"]/reqdeptcd",reqdeptcd);
  291. grd_goodbaseqtylist.editCell();
  292. model.refresh();
  293. }
  294. ]]>
  295. </script>
  296. </button>
  297. <button id="btn_grddel" class="btn2_letter3" style="left:1141px; top:76px; width:53px; height:19px; ">
  298. <caption>행삭제</caption>
  299. <script type="javascript" ev:event="DOMActivate">
  300. <![CDATA[
  301. misfGridIUD(grd_goodbaseqtylist,"D");
  302. model.refresh();
  303. ]]>
  304. </script>
  305. </button>
  306. <datagrid id="grd_deptlist" nodeset="/root/main/deptlist" caption="부서명^부서코드^기관코드^물품구분" colsep="^" colwidth="154, 139, 97, 100" dataheight="25" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" tooltip="true" style="left:0px; top:74px; width:200px; height:660px; ">
  307. <col disabled="true" ref="deptnm"/>
  308. <col ref="deptcd" visibility="hidden"/>
  309. <col ref="instcd" visibility="hidden"/>
  310. <col ref="goodflag" visibility="hidden"/>
  311. <script type="javascript" ev:event="onclick">
  312. <![CDATA[
  313. fSerachData();
  314. ]]>
  315. </script>
  316. <script type="javascript" ev:event="onaftersort">
  317. <![CDATA[
  318. grd_deptlist.gridToInstance();
  319. ]]>
  320. </script>
  321. </datagrid>
  322. <datagrid id="grd_goodbaseqtylist" nodeset="/root/main/goodbaseqtylist" class="text_center" caption="물품코드^물품명^대분류^규격^환산수량^대여량^비품기준량^포장단위^비고^최초등록자ID^최초등록일시^최종등록자ID^최종등록일시^최종등록일시" colsep="^" colwidth="111, 231, 120, 113, 85, 85, 70, 75, 100, 100, 110, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" tooltip="true" style="left:205px; top:74px; width:990px; height:660px; ">
  323. <col class="input_essential" ref="goodcd" type="inputbutton" _key="true"/>
  324. <col ref="goodnm" _key="true"/>
  325. <col ref="lrgnm" _key="true"/>
  326. <col disabled="true" ref="goodspec"/>
  327. <col ref="exchqty" visibility="hidden" style="text-align:right; "/>
  328. <col class="input_essential" ref="ddavguseqty" type="input" format="#,###" style="text-align:right; "/>
  329. <col class="input_essential" ref="basevol" type="input" format="#,###" style="text-align:right; "/>
  330. <col ref="purcunit" _key="true"/>
  331. <col ref="cmt" type="input"/>
  332. <col ref="fstrgstrid" visibility="hidden"/>
  333. <col ref="fstrgstdt" visibility="hidden"/>
  334. <col ref="lastupdtrid" visibility="hidden"/>
  335. <col ref="lastupdtdt" visibility="hidden"/>
  336. <col ref="instcd" visibility="hidden"/>
  337. <col ref="goodflag" visibility="hidden"/>
  338. <col ref="reqdeptcd" visibility="hidden"/>
  339. <col ref="lrgcd" visibility="hidden"/>
  340. <col ref="reqmthdnm" type="input" visibility="hidden"/>
  341. <col disabled="true" ref="goodmodel" visibility="hidden"/>
  342. <col disabled="true" ref="stocqty" visibility="hidden"/>
  343. <col disabled="true" ref="prodcmpynm" visibility="hidden"/>
  344. <script type="javascript" ev:event="onbuttonclick">
  345. <![CDATA[
  346. if (grd_goodbaseqtylist.col == grd_goodbaseqtylist.colRef("goodcd")) {//물품코드 버튼을 눌렀을 때
  347. model.removenode("/root/copynode");
  348. model.removenode(gvParamPath +"/SMRSD00400_/SMRSD00400_value");
  349. model.makeNode("/root/copynode");
  350. rszfOpenPopUpListByWndName(grd_goodbaseqtylist,"","goodcd,goodnm","SPRSD00190","instcd,goodflag","cmb_instcd,ipt_goodflag", "Y");
  351. var cur_row = grd_goodbaseqtylist.row;
  352. // var status = grd_goodbaseqtylist.valueMatrix(cur_row, grd_goodbaseqtylist.colRef("m"));
  353. var CSV = model.getValue(gvParamPath +"/SMRSD00400_/SMRSD00400_value");
  354. setCSVToNode("/root/copynode", CSV, "goodbaseqtylist");
  355. fSettingGoodList("/root/copynode", "goodbaseqtylist");
  356. }
  357. ]]>
  358. </script>
  359. <script type="javascript" ev:event="xforms-value-changed">
  360. <![CDATA[
  361. if(grd_goodbaseqtylist.col == grd_goodbaseqtylist.colRef("goodcd") && grd_goodbaseqtylist.valueMatrix(grd_goodbaseqtylist.row, grd_goodbaseqtylist.colRef("goodcd")).length> 0)
  362. {
  363. model.removenode("/root/copynode");
  364. model.removenode(gvParamPath +"/SMRSD00400_/SMRSD00400_value");
  365. model.makeNode("/root/copynode");
  366. rszfValidationCheck("TRRSD00191", "goodlist", "refcond,instcd,goodflag,goodcd",
  367. "goodcd," + cmb_instcd.value + "," + ipt_goodflag.value + ","+ grd_goodbaseqtylist.valueMatrix(grd_goodbaseqtylist.row,grd_goodbaseqtylist.colRef("goodcd")),
  368. "", "goodcd,goodnm",
  369. grd_goodbaseqtylist, "SPRSD00190", "instcd,goodflag","cmb_instcd,ipt_goodflag");
  370. fGridDrugSetValidation();
  371. // var cur_row = grd_goodbaseqtylist.row;
  372. // var status = grd_goodbaseqtylist.valueMatrix(cur_row, grd_goodbaseqtylist.colRef("m"));
  373. // gvParamPath : /root/properties/parameters = js에 선언되어있는 변수
  374. var CSV = model.getValue(gvParamPath +"/SMRSD00400_/SMRSD00400_value");
  375. setCSVToNode("/root/copynode", CSV, "goodbaseqtylist");
  376. if(model.getValue("/root/init/main/goodlist/goodcd") == "")
  377. {
  378. fSettingGoodList("/root/copynode", "goodbaseqtylist");
  379. }
  380. }
  381. ]]>
  382. </script>
  383. </datagrid>
  384. <button id="btn_delete" class="btn2_letter3" style="left:1141px; top:48px; width:53px; height:19px; ">
  385. <caption>행삭제</caption>
  386. <script type="javascript" ev:event="DOMActivate">
  387. <![CDATA[
  388. misfGridIUD(grd_goodbaseqtylist, "D");
  389. if(grd_goodbaseqtylist.rows == grd_goodbaseqtylist.fixedRows)
  390. {
  391. btn_delete.disabled = true;
  392. }
  393. ]]>
  394. </script>
  395. </button>
  396. <button id="btn_insert" class="btn2_letter3" style="left:1086px; top:48px; width:53px; height:19px; ">
  397. <caption>행추가</caption>
  398. <script type="javascript" ev:event="DOMActivate">
  399. <![CDATA[
  400. misfGridIUD(grd_goodbaseqtylist, "A");
  401. // 행추가시 기본값 설정.
  402. fGridDataSet();
  403. if(grd_goodbaseqtylist.rows > grd_goodbaseqtylist.fixedRows)
  404. {
  405. btn_delete.disabled = false;
  406. }
  407. ]]>
  408. </script>
  409. </button>
  410. </group>
  411. <group id="group1" style="left:0px; top:12; width:1195px; height:27px; ">
  412. <line id="line17" class="line_6" style="x1:0px; y1:25px; x2:1195px; y2:25px; "/>
  413. <button id="btn_prt" class="btn6_letter2" visibility="hidden" style="left:0px; top:3px; width:56px; height:22px; ">
  414. <caption>출력</caption>
  415. </button>
  416. <button id="btn_scrnmove" class="btn3_letter4" visibility="hidden" style="left:57px; top:3px; width:80px; height:22px; ">
  417. <caption>화면이동</caption>
  418. </button>
  419. <button id="btn_save" class="btn4_letter2" style="left:1070px; top:3px; width:56px; height:22px; ">
  420. <caption>저장</caption>
  421. <script type="javascript" ev:event="DOMActivate">
  422. <![CDATA[
  423. fSave();
  424. ]]>
  425. </script>
  426. </button>
  427. <button id="btn_clear" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
  428. <caption>초기화</caption>
  429. <script type="javascript" ev:event="DOMActivate">
  430. <![CDATA[
  431. var updtdata = getGridUpdateData(grd_goodbaseqtylist);
  432. if (updtdata != "") {
  433. var ret = messageBox("그리드에 작업 중인 내용이 있습니다. 초기화 작업을","Q003");
  434. if (ret != 6) { // not OK
  435. return;
  436. }
  437. }
  438. fInitialize();
  439. ]]>
  440. </script>
  441. </button>
  442. </group>
  443. </xhtml:body>
  444. </xhtml:html>