SMMNP04900.js 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403
  1. /* ---------------------------------------------------------------------
  2. 물품청구관리(SMMNP04900.xfm - JScript )
  3. - Version :
  4. 1) : Ver.1.00.01
  5. : Create By kim bo sung
  6. : 2007.09.19
  7. 2) : Ver.1.01.01
  8. : Kim Jin Myoung
  9. : 2009.06.03
  10. ---------------------------------------------------------------------- */
  11. var xPathData = "/root/main/rsdhdemdinfo/rsdhdemdlist" ; //
  12. var xSendReqData = "/root/send/reqdata"; //보내는값
  13. var xSendSaveData = "/root/send/savedata"; //받은 리스트 갯수값
  14. var xCondData = "/root/main/cond"; //조건항목들
  15. var xErrMsg = "/root/properties/error/msg";
  16. var xTempData = "/root/temp";
  17. // --------------------------------------------------
  18. // 화면 초기화
  19. // --------------------------------------------------
  20. function fInit() {
  21. grd_purclist.fixedcellcheckbox(0,11) = true; //그리드 헤더에 체크버튼 추가
  22. grd_trustlist.fixedcellcheckbox(0,11) = true; //그리드 헤더에 체크버튼 추가
  23. grd_depositlist.fixedcellcheckbox(0,11) = true; //그리드 헤더에 체크버튼 추가
  24. grd_newlist.fixedcellcheckbox(0,11) = true; //그리드 헤더에 체크버튼 추가
  25. var curtDate = getCurrentDate();
  26. curtDate = curtDate.substr(0, 8);
  27. model.removenode("/root/send");
  28. model.makeValue("/root/send/reqdata/cdgrupid", "093");//퇴실장소
  29. model.makeValue("/root/send/reqdata/supcdid", "");//서브구분
  30. model.makeValue("/root/send/reqdata/cdid", model.getValue("/root/main/cond/deptflag"));//서브구분
  31. submit("TRMNP04903");
  32. model.setValue("/root/main/cond/reqdeptcd", model.getValue("/root/init/hardcodeinfo/cdnm"));
  33. model.removeNodeset("/root/main/rsdhdemdinfo/rsdhdemdlist");
  34. model.setValue("/root/main/cond/purcflag", "1");
  35. model.toggle("case1");
  36. btn_cncl.visible = true;
  37. btn_cnfm.visible = false;
  38. btn_save.visible = true;
  39. grd_purclist.explorerbar = "sort";
  40. grd_trustlist.explorerbar = "sort";
  41. grd_depositlist.explorerbar = "sort";
  42. grd_newlist.explorerbar = "sort";
  43. model.setValue("/root/main/cond/reqfromdd", curtDate);
  44. model.setValue("/root/main/cond/reqtodd", curtDate);
  45. model.removeNodeset(xPathData);
  46. model.refresh();
  47. }
  48. // --------------------------------------------------
  49. // 그리드 조회
  50. // --------------------------------------------------
  51. function fSearch() {
  52. if( model.getValue("/root/main/cond/purcflag") == "N" ) {//신규일 경우
  53. if( model.getValue("/root/main/cond/goodcd") == "" ) {
  54. messageBox("신규일때는 물품코드를 입력하셔야 됩니다.!", "E000");
  55. return;
  56. }
  57. }
  58. model.removenode("/root/send");
  59. model.makeNode("/root/send/reqdata");
  60. model.makeNode("/root/send/savedata");
  61. model.copyNode(xSendReqData, xCondData);
  62. submit("TRMNP04901");
  63. }
  64. // --------------------------------------------------
  65. // 팝업호출
  66. // --------------------------------------------------
  67. function fPopup() {
  68. var refflag = model.getValue("/root/temp/refflag");
  69. if( refflag == "1" ) { /*물품명으로 검색*/
  70. setParameter("refnm", model.getValue("/root/main/cond/goodnm"));
  71. setParameter("refflag", "1");
  72. }else if( refflag == "2" ) { /*물품코드으로 검색*/
  73. setParameter("refnm", model.getValue("/root/main/cond/goodcd"));
  74. setParameter("refflag", "2");
  75. }
  76. setParameter("goodflag", model.getValue("/root/main/cond/goodflag"));
  77. setParameter("tabflag", "CCR");
  78. setParameter("menuparam", "S");
  79. setParameter("openflag", "STOC");
  80. setParameter("cartgubn", model.getValue("/root/main/cond/deptflag"));
  81. modal("SMMNP04460" ,"", "100", "100", "SMMNP04460", "", "");
  82. var getData = model.getValue("/root/properties/parameters/SendData/SendDatavalue");
  83. if( getData == "") {
  84. return;
  85. }else {
  86. var getDataTemp1 = getData.split("▩");
  87. var getDataTemp2 = getDataTemp1[0].split("|");
  88. model.setValue("/root/main/cond/goodcd", getDataTemp2[0]);
  89. model.setValue("/root/main/cond/goodnm", getDataTemp2[1]);
  90. model.setValue("/root/main/cond/allsizespecid", getDataTemp2[2]);
  91. //model.setValue("/root/main/cond/goodflag", getDataTemp2[3]);
  92. model.refresh();
  93. if( model.getValue("/root/temp/chkcncl") == "C" ) {//팝업에서 취소를 선택하거나 창을 강제로 닫았을 경우
  94. return;
  95. }else {
  96. model.removenode("/root/send");
  97. model.makeNode("/root/send/reqdata");
  98. model.makeNode("/root/send/savedata");
  99. model.copyNode("/root/send/reqdata", "/root/main/cond");
  100. submit("TRMNP04901"); //청구내역조회
  101. }
  102. }
  103. }
  104. // --------------------------------------------------
  105. // 엑셀저장
  106. // --------------------------------------------------
  107. function fSaveExcel(pGrid) {
  108. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  109. if (fileName != "")
  110. {
  111. pGrid.saveExcel(fileName, "SheetName", false, false, "", "", true);
  112. }
  113. }
  114. // --------------------------------------------------
  115. // 재고반영여부 체크
  116. // --------------------------------------------------
  117. function fCheck() {
  118. var iNode = "/root/main/rsdhdemdinfo/rsdhdemdlist";
  119. var iRow = -1;
  120. iRow = grd_rsdhdemdlist.row;
  121. var chkflag = model.getValue( iNode + "[" + iRow + "]/" + "chkflag");
  122. if( chkflag == "true" ) {
  123. var endflag = model.getValue( iNode + "[" + iRow + "]/" + "opprocflag");
  124. var deliveqty = model.getValue( iNode + "[" + iRow + "]/" + "deliveqty");
  125. if( endflag == "Y" ) {
  126. messageBox("재고에 이미 반영 ", "I001");
  127. model.setValue(iNode + "[" + iRow + "]/" + "chkflag", "false");
  128. model.refresh();
  129. return;
  130. }else if( (deliveqty == "")||(deliveqty == 0) ) {
  131. messageBox("입고수량이 ", "I004");
  132. model.setValue(iNode + "[" + iRow + "]/" + "chkflag", "false");
  133. model.refresh();
  134. return;
  135. }
  136. }
  137. }
  138. // --------------------------------------------------
  139. // 확정
  140. // --------------------------------------------------
  141. function fSaveCnfm() {
  142. var iRows = -1;
  143. var chkflag, reqdd, delivedd, goodcd, allsizespecid, goodflag, reqmthd, reqno, reqseqno, reqflag, winqty, bfwinqty, statcd;
  144. var deliveqty, reqdeptcd, deliveseqno, deliveno, opprocflag, deptflag, opinflag, reqqty, opinflag, reqdd, cmt, stat, prcpexchqty;
  145. var cnt = 0, cnt2 = 0;
  146. if( model.getValue("/root/main/cond/purcflag") == "1" ) {//구매
  147. iRows = grd_purclist.rows;
  148. }else if( model.getValue("/root/main/cond/purcflag") == "2" ) {//수탁
  149. iRows = grd_trustlist.rows;
  150. }else if( model.getValue("/root/main/cond/purcflag") == "3" ) {//가납
  151. iRows = grd_depositlist.rows;
  152. }else if( model.getValue("/root/main/cond/purcflag") == "N" ) {//신규
  153. iRows = grd_newlist.rows;
  154. }
  155. var rsdhdemdlist = "m▦rownum▦goodcd▦allsizespecid▦delivedd▦deliveno▦deliveseqno▦winqty▦reqdeptcd▦goodflag▦reqmthd"
  156. + "▦cartgubn▦reqno▦reqseqno▦reqflag▦statcd▦opinflag▦reqdd▦cmt▦prcpexchqty";
  157. for( var i = 1; i <= iRows; i++ ) {
  158. chkflag = model.getValue("/root/main/rsdhdemdinfo/rsdhdemdlist["+i+"]/chkflag");
  159. delivedd = model.getValue("/root/main/rsdhdemdinfo/rsdhdemdlist["+i+"]/delivedd");
  160. deliveno = model.getValue("/root/main/rsdhdemdinfo/rsdhdemdlist["+i+"]/deliveno");
  161. goodcd = model.getValue("/root/main/rsdhdemdinfo/rsdhdemdlist["+i+"]/goodcd");
  162. allsizespecid = model.getValue("/root/main/rsdhdemdinfo/rsdhdemdlist["+i+"]/allsizespecid");
  163. deliveseqno = model.getValue("/root/main/rsdhdemdinfo/rsdhdemdlist["+i+"]/deliveseqno");
  164. deliveqty = model.getValue("/root/main/rsdhdemdinfo/rsdhdemdlist["+i+"]/deliveqty");
  165. reqdeptcd = model.getValue("/root/main/rsdhdemdinfo/rsdhdemdlist["+i+"]/reqdeptcd");
  166. goodflag = model.getValue("/root/main/rsdhdemdinfo/rsdhdemdlist["+i+"]/goodflag");
  167. reqmthd = model.getValue("/root/main/rsdhdemdinfo/rsdhdemdlist["+i+"]/reqmthd");
  168. reqno = model.getValue("/root/main/rsdhdemdinfo/rsdhdemdlist["+i+"]/reqno");
  169. reqseqno = model.getValue("/root/main/rsdhdemdinfo/rsdhdemdlist["+i+"]/reqseqno");
  170. reqflag = model.getValue("/root/main/rsdhdemdinfo/rsdhdemdlist["+i+"]/reqflag");
  171. winqty = model.getValue("/root/main/rsdhdemdinfo/rsdhdemdlist["+i+"]/winqty");
  172. bfwinqty = model.getValue("/root/main/rsdhdemdinfo/rsdhdemdlist["+i+"]/bfwinqty");
  173. opinflag = model.getValue("/root/main/rsdhdemdinfo/rsdhdemdlist["+i+"]/opinflag");
  174. reqqty = model.getValue("/root/main/rsdhdemdinfo/rsdhdemdlist["+i+"]/reqqty");
  175. opinflag = model.getValue("/root/main/rsdhdemdinfo/rsdhdemdlist["+i+"]/opinflag");
  176. reqdd = model.getValue("/root/main/rsdhdemdinfo/rsdhdemdlist["+i+"]/reqdd");
  177. cmt = model.getValue("/root/main/rsdhdemdinfo/rsdhdemdlist["+i+"]/cmt");
  178. prcpexchqty = model.getValue("/root/main/rsdhdemdinfo/rsdhdemdlist["+i+"]/prcpexchqty");
  179. deptflag = model.getValue("/root/main/cond/deptflag");
  180. if( chkflag == "true" ) {
  181. if( parseInt(winqty) > 0 ) {
  182. stat = "U";
  183. if( opinflag == "Y" ) {
  184. if( cmt == "" ) {
  185. messageBox("반영된 물품은 확정할 수 없습니다.!", "E000");
  186. return;
  187. }else {//비고만 업데이트
  188. stat = "S";
  189. }
  190. }
  191. if( parseInt(winqty) == parseInt(reqqty) ) {
  192. statcd = "Y";
  193. }else {
  194. //KNUH_20101111_김병국_start
  195. messageBox("청구수량과 입고수량은 같아야합니다.", "E");
  196. return;
  197. statcd = "S";
  198. //KNUH_20101111_END
  199. }
  200. cnt += 1;
  201. rsdhdemdlist = rsdhdemdlist + "▩" + stat + "▦" + cnt + "▦" + goodcd + "▦" + allsizespecid + "▦" + delivedd
  202. + "▦" + deliveno + "▦" + deliveseqno + "▦" + (parseInt(winqty)-parseInt(bfwinqty)) + "▦" + reqdeptcd + "▦" + goodflag
  203. + "▦" + reqmthd + "▦" + deptflag + "▦" + reqno + "▦" + reqseqno + "▦" + reqflag
  204. + "▦" + statcd + "▦" + opinflag + "▦" + reqdd + "▦" + cmt + "▦" + prcpexchqty;
  205. }
  206. }
  207. }
  208. if( cnt > 0 ) {
  209. model.removenode("/root/send");
  210. model.makeNode("/root/send/reqdata");
  211. model.makeNode("/root/send/savedata");
  212. model.copyNode("/root/send/reqdata", "/root/main/cond");
  213. model.setValue("/root/send/savedata", rsdhdemdlist);
  214. submit("TXMNP04901");
  215. }else {
  216. messageBox("선택한것이 없거나 입고량이 0이거나 이미 반영된 것", "E008");
  217. }
  218. }
  219. /* --------------------------------------------------*/
  220. /* type : function */
  221. /* access : public */
  222. /* desc : 신규저장 */
  223. /* param : */
  224. /* return : */
  225. /* --------------------------------------------------*/
  226. function fSave() {
  227. var iRows = -1;
  228. var chkflag, reqdd, delivedd, goodcd, allsizespecid, goodflag, reqmthd, reqno, reqseqno, reqflag, winqty, bfwinqty, statcd;
  229. var deliveqty, reqdeptcd, deliveseqno, deliveno, opprocflag, deptflag, opinflag, reqqty, opinflag, reqdd, cmt, stat;
  230. var cnt = 0, cnt2 = 0;
  231. if( model.getValue("/root/main/cond/purcflag") == "1" ) {//구매
  232. iRows = grd_purclist.rows;
  233. }else if( model.getValue("/root/main/cond/purcflag") == "2" ) {//수탁
  234. iRows = grd_trustlist.rows;
  235. }else if( model.getValue("/root/main/cond/purcflag") == "3" ) {//가납
  236. iRows = grd_depositlist.rows;
  237. }else if( model.getValue("/root/main/cond/purcflag") == "N" ) {//신규
  238. iRows = grd_newlist.rows;
  239. }
  240. var rsdhdemdlist = "m▦rownum▦goodcd▦allsizespecid▦delivedd▦deliveno▦deliveseqno▦winqty▦reqdeptcd▦goodflag▦reqmthd"
  241. + "▦cartgubn▦reqno▦reqseqno▦reqflag▦statcd▦opinflag▦reqdd▦cmt";
  242. for( var i = 1; i <= iRows; i++ ) {
  243. chkflag = model.getValue("/root/main/rsdhdemdinfo/rsdhdemdlist["+i+"]/chkflag");
  244. delivedd = model.getValue("/root/main/rsdhdemdinfo/rsdhdemdlist["+i+"]/delivedd");
  245. deliveno = model.getValue("/root/main/rsdhdemdinfo/rsdhdemdlist["+i+"]/deliveno");
  246. goodcd = model.getValue("/root/main/rsdhdemdinfo/rsdhdemdlist["+i+"]/goodcd");
  247. allsizespecid = model.getValue("/root/main/rsdhdemdinfo/rsdhdemdlist["+i+"]/allsizespecid");
  248. deliveseqno = model.getValue("/root/main/rsdhdemdinfo/rsdhdemdlist["+i+"]/deliveseqno");
  249. deliveqty = model.getValue("/root/main/rsdhdemdinfo/rsdhdemdlist["+i+"]/deliveqty");
  250. reqdeptcd = model.getValue("/root/main/rsdhdemdinfo/rsdhdemdlist["+i+"]/reqdeptcd");
  251. goodflag = model.getValue("/root/main/rsdhdemdinfo/rsdhdemdlist["+i+"]/goodflag");
  252. reqmthd = model.getValue("/root/main/rsdhdemdinfo/rsdhdemdlist["+i+"]/reqmthd");
  253. reqno = model.getValue("/root/main/rsdhdemdinfo/rsdhdemdlist["+i+"]/reqno");
  254. reqseqno = model.getValue("/root/main/rsdhdemdinfo/rsdhdemdlist["+i+"]/reqseqno");
  255. reqflag = model.getValue("/root/main/rsdhdemdinfo/rsdhdemdlist["+i+"]/reqflag");
  256. winqty = model.getValue("/root/main/rsdhdemdinfo/rsdhdemdlist["+i+"]/winqty");
  257. bfwinqty = model.getValue("/root/main/rsdhdemdinfo/rsdhdemdlist["+i+"]/bfwinqty");
  258. opinflag = model.getValue("/root/main/rsdhdemdinfo/rsdhdemdlist["+i+"]/opinflag");
  259. reqqty = model.getValue("/root/main/rsdhdemdinfo/rsdhdemdlist["+i+"]/reqqty");
  260. opinflag = model.getValue("/root/main/rsdhdemdinfo/rsdhdemdlist["+i+"]/opinflag");
  261. reqdd = model.getValue("/root/main/rsdhdemdinfo/rsdhdemdlist["+i+"]/reqdd");
  262. cmt = model.getValue("/root/main/rsdhdemdinfo/rsdhdemdlist["+i+"]/cmt");
  263. deptflag = model.getValue("/root/main/cond/deptflag");
  264. if( chkflag == "true" ) {
  265. if( parseInt(winqty) > 0 ) {
  266. cnt += 1;
  267. rsdhdemdlist = rsdhdemdlist + "▩" + "I" + "▦" + cnt + "▦" + goodcd + "▦" + allsizespecid + "▦" + delivedd
  268. + "▦" + deliveno + "▦" + deliveseqno + "▦" + (parseInt(winqty)-parseInt(bfwinqty)) + "▦" + reqdeptcd + "▦" + goodflag
  269. + "▦" + reqmthd + "▦" + deptflag + "▦" + reqno + "▦" + reqseqno + "▦" + reqflag
  270. + "▦" + statcd + "▦" + opinflag + "▦" + reqdd + "▦" + cmt;
  271. }else {
  272. messageBox("입고수량이 0보다 커야합니다.", "E000");
  273. return;
  274. }
  275. }
  276. }
  277. if( cnt > 0 ) {
  278. model.removenode("/root/send");
  279. model.makeNode("/root/send/reqdata");
  280. model.makeNode("/root/send/savedata");
  281. model.copyNode("/root/send/reqdata", "/root/main/cond");
  282. model.setValue("/root/send/savedata", rsdhdemdlist);
  283. submit("TXMNP04902");
  284. }else {
  285. messageBox("선택한것이 없거나 입고량이 0이거나 이미 반영된 것", "E008");
  286. }
  287. }
  288. // --------------------------------------------------
  289. // 취소
  290. // --------------------------------------------------
  291. function fSaveCncl() {
  292. var iRows = -1;
  293. var chkflag, reqdd, delivedd, goodcd, allsizespecid, goodflag, reqmthd, reqno, reqseqno, reqflag, winqty, bfwinqty, statcd;
  294. var deliveqty, reqdeptcd, deliveseqno, deliveno, opprocflag, deptflag, opinflag, reqdd, cmt, prcpexchqty;
  295. var cnt = 0;
  296. if( model.getValue("/root/main/cond/purcflag") == "1" ) {//구매
  297. iRows = grd_purclist.rows;
  298. }else if( model.getValue("/root/main/cond/purcflag") == "2" ) {//수탁
  299. iRows = grd_trustlist.rows;
  300. }else if( model.getValue("/root/main/cond/purcflag") == "3" ) {//가납
  301. iRows = grd_depositlist.rows;
  302. }else if( model.getValue("/root/main/cond/purcflag") == "N" ) {//신규
  303. iRows = grd_newlist.rows;
  304. }
  305. var rsdhdemdlist = "m▦rownum▦goodcd▦allsizespecid▦delivedd▦deliveno▦deliveseqno▦winqty▦reqdeptcd▦goodflag"
  306. + "▦reqmthd▦cartgubn▦reqno▦reqseqno▦reqflag▦statcd▦opinflag▦reqdd▦cmt▦prcpexchqty";
  307. for( var i = 1; i <= iRows; i++ ) {
  308. chkflag = model.getValue("/root/main/rsdhdemdinfo/rsdhdemdlist["+i+"]/chkflag");
  309. delivedd = model.getValue("/root/main/rsdhdemdinfo/rsdhdemdlist["+i+"]/delivedd");
  310. deliveno = model.getValue("/root/main/rsdhdemdinfo/rsdhdemdlist["+i+"]/deliveno");
  311. goodcd = model.getValue("/root/main/rsdhdemdinfo/rsdhdemdlist["+i+"]/goodcd");
  312. allsizespecid = model.getValue("/root/main/rsdhdemdinfo/rsdhdemdlist["+i+"]/allsizespecid");
  313. deliveseqno = model.getValue("/root/main/rsdhdemdinfo/rsdhdemdlist["+i+"]/deliveseqno");
  314. deliveqty = model.getValue("/root/main/rsdhdemdinfo/rsdhdemdlist["+i+"]/deliveqty");
  315. reqdeptcd = model.getValue("/root/main/rsdhdemdinfo/rsdhdemdlist["+i+"]/reqdeptcd");
  316. goodflag = model.getValue("/root/main/rsdhdemdinfo/rsdhdemdlist["+i+"]/goodflag");
  317. reqmthd = model.getValue("/root/main/rsdhdemdinfo/rsdhdemdlist["+i+"]/reqmthd");
  318. reqno = model.getValue("/root/main/rsdhdemdinfo/rsdhdemdlist["+i+"]/reqno");
  319. reqseqno = model.getValue("/root/main/rsdhdemdinfo/rsdhdemdlist["+i+"]/reqseqno");
  320. reqflag = model.getValue("/root/main/rsdhdemdinfo/rsdhdemdlist["+i+"]/reqflag");
  321. winqty = model.getValue("/root/main/rsdhdemdinfo/rsdhdemdlist["+i+"]/winqty");
  322. bfwinqty = model.getValue("/root/main/rsdhdemdinfo/rsdhdemdlist["+i+"]/bfwinqty");
  323. reqqty = model.getValue("/root/main/rsdhdemdinfo/rsdhdemdlist["+i+"]/reqqty");
  324. reqdd = model.getValue("/root/main/rsdhdemdinfo/rsdhdemdlist["+i+"]/reqdd");
  325. opinflag = model.getValue("/root/main/rsdhdemdinfo/rsdhdemdlist["+i+"]/opinflag");
  326. cmt = model.getValue("/root/main/rsdhdemdinfo/rsdhdemdlist["+i+"]/cmt");
  327. prcpexchqty = model.getValue("/root/main/rsdhdemdinfo/rsdhdemdlist["+i+"]/prcpexchqty");
  328. deptflag = model.getValue("/root/main/cond/deptflag");
  329. if( chkflag == "true" ) {
  330. if( opinflag != "Y" ) { //재고반영이 된것만
  331. messageBox("미반영 물품은 취소 할 수 없습니다.!", "E000");
  332. return;
  333. }
  334. if( parseInt(winqty) == 0 ) {//취소수량이 0일경우 이전 입고량으로 대체하여 취소함.
  335. winqty = bfwinqty;
  336. }
  337. statcd = "N";
  338. cnt += 1;
  339. rsdhdemdlist = rsdhdemdlist + "▩" + "C" + "▦" + cnt + "▦" + goodcd + "▦" + allsizespecid + "▦" + delivedd + "▦" + deliveno
  340. + "▦" + deliveseqno + "▦" + parseInt(winqty) + "▦" + reqdeptcd + "▦" + goodflag + "▦" + reqmthd + "▦" + deptflag
  341. + "▦" + reqno + "▦" + reqseqno + "▦" + reqflag + "▦" + statcd + "▦" + opinflag + "▦" + reqdd
  342. + "▦" + cmt + "▦" + prcpexchqty;
  343. }
  344. }
  345. if( cnt > 0 ) {
  346. model.removenode("/root/send");
  347. model.makeNode("/root/send/reqdata");
  348. model.makeNode("/root/send/savedata");
  349. model.copyNode("/root/send/reqdata", "/root/main/cond");
  350. model.setValue("/root/send/savedata", rsdhdemdlist);
  351. submit("TXMNP04901");
  352. }else {
  353. messageBox("선택한 것이 없거나 반영된 것이", "I004");
  354. }
  355. }