SMRSC03700.js 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567
  1. /* ---------------------------------------------------------------------
  2. SMRSC03700_<input type="text" 자재Spec일괄변경>.xrw (SMRSC03700.xfm - JScript )
  3. - Version :
  4. 1) : Ver.1.00.01
  5. : Create By HR Choi
  6. : 2015.05.02
  7. ---------------------------------------------------------------------- */
  8. var xAuth = !(checkAuth("X"));
  9. var rAuth = !(checkAuth("R"));
  10. var vGoodNew = "U"; //U:UPDATE, N:NEW
  11. // --------------------------------------------------
  12. // 사용자권한 Check
  13. // --------------------------------------------------
  14. function fInitForm() {
  15. fInitialize();
  16. }
  17. // --------------------------------------------------
  18. // 사용자권한 Check
  19. // --------------------------------------------------
  20. function fCheckAuth() {
  21. // btn_search.disabled = rAuth ;
  22. btn_save.disabled = xAuth ;
  23. }
  24. // --------------------------------------------------
  25. // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
  26. // --------------------------------------------------
  27. function fInitialize() {
  28. model.resetInstanceNode("/root/send");
  29. misfGridInit(grd_costlist);
  30. misfGridInit(grd_goodhistory);
  31. misfGridInit(grd_rscdgchglist);
  32. rszfGoodFlagListByPgmGubn(cmb_goodflag,"1","N");
  33. rszfUserInstList(cmb_instcd,getUserInfo("userid"));
  34. misfGridComboComCdList("R0111",grd_copygood, "purcflag");
  35. misfGridComboComCdList("R0093",grd_copygood, "reqprid");
  36. misfGridComboComCdList("R0092",grd_copygood, "reqmthd");
  37. //기관코드 읽어오는 부분 넣기
  38. var instcd = getUserInfo("dutplceinstcd");
  39. var instnm = getUserInfo("dutplceinstnm");
  40. if(instcd.length > 0)model.setValue(cmb_instcd.attribute("ref"), instcd);
  41. else
  42. {
  43. if(cmb_instcd.length> 0) cmb_instcd.selectedindex= 0;
  44. }
  45. //물품구분일 경우 첫번째 index 자동 설정
  46. if(cmb_goodflag.length> 0) cmb_goodflag.selectedindex= 0;
  47. // 기관 코도, 물품 구분별 단위 셋팅을 한다.
  48. fUnitSet();
  49. misfMsterDetailSet(grd_costlist ,null , "TRRSC00601" ,"Y");
  50. misfMsterDetailSet(grd_rscdgchglist,null , "TXRSC03702" ,"Y");
  51. misfMsterDetailSet(grd_goodhistory ,grd_costlist, "TRRSC00602" ,"N");
  52. fSetGoodFlagAuth();
  53. grd_costlist.explorerbar = "sortshow";
  54. grd_goodhistory.explorerbar = "sortshow";
  55. grd_costlist.selectionmode = "list";
  56. model.setFocus("ipt_lrgcd_search");
  57. rbo_useyn.select(0);
  58. cap_cnt.value = "0";
  59. rszfLMSComboList(model.getValue(cmb_goodflag.attribute("ref")), "", "", "cmb_lrgcd_search", "", "L", "Y", "Y");
  60. model.refresh();
  61. }
  62. //
  63. function fUnitSet() {
  64. rszfComboUnitList (cmb_prcpunit,model.getValue(cmb_instcd.attribute("ref")),model.getValue(cmb_goodflag.attribute("ref")));
  65. misfComboCopyItemSet(cmb_prcpunit, "", grd_costlist, "purcunit"); //포장단위
  66. misfComboCopyItemSet(cmb_prcpunit, "", grd_costlist, "deliveunit"); //수불단위
  67. }
  68. // --------------------------------------------------
  69. // Excel File를 Load한다.
  70. // --------------------------------------------------
  71. function fLoadExcel_2(pCls,pGroup,pGrid)
  72. {
  73. pGroup.visible = true;
  74. var fileName = window.fileDialog("open", ",", false, "", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  75. misfGridInit(pGrid);
  76. pGrid.loadExcel(fileName, 1);
  77. pGrid.refresh();
  78. }
  79. function fSaveDataSetting(pSubmit_Id) {
  80. if (swt_select.selectedIndex == 0) {
  81. fgrid = grd_costlist;
  82. var insfromdd = model.getValue(ipt_insfromdd.attribute("ref"));
  83. if(insfromdd.length == 0)
  84. {
  85. messageBox("적용시작일자를 " ,"C002");
  86. model.setFocus("insfromdd");
  87. return false;
  88. }
  89. model.removenode("/root/send/save");
  90. model.makeNode("/root/send/save/goodlist");
  91. model.makeNode("/root/send/save/gooddetlist");
  92. model.makeNode("/root/send/save/setautoins/setyn");
  93. model.makeNode("/root/send/save/setautoins/insfromdd")
  94. model.makeNode("/root/send/save/chngyn");
  95. model.setValue("/root/send/save/chngyn","Y");
  96. model.setValue("/root/send/save/setautoins/setyn","Y");
  97. model.setValue("/root/send/save/setautoins/insfromdd",insfromdd);
  98. model.refresh();
  99. if(swt_select.selectedIndex == 0)model.setValue("/root/send/save/goodlist" , fgrid.getUpdateData());
  100. model.setValue("/root/send/save/gooddetlist" , fgrid.getUpdateData());
  101. submit(pSubmit_Id);
  102. if (model.getValue(gvErrorMsgPath + "/type") != "error")btn_search.dispatch("DOMActivate");
  103. }
  104. else if (swt_select.selectedIndex == 1) {
  105. misfSave("TXRSC03702");
  106. }
  107. }
  108. function fLoadExcel()
  109. {
  110. if(model.getValue(cmb_instcd.attribute("ref")).length== 0 )
  111. {
  112. messageBox("기관코드를 " ,"C002");
  113. model.setFocus("cmb_instcd");
  114. return false;
  115. }
  116. if ( grd_rscdgchglist.rows - grd_rscdgchglist.fixedRows > 0) {
  117. misfGridInit(grd_rscdgchglist);
  118. cap_cnt.visible = "";
  119. }
  120. var fileName = window.fileDialog("open", ",", false, "", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  121. grd_rscdgchglist.loadExcel(fileName, 1);
  122. fGridInsertChanged();
  123. grd_rscdgchglist.row = grd_rscdgchglist.fixedRows;
  124. misfGridIUD(grd_rscdgchglist, "D");
  125. cap_cnt.value = grd_rscdgchglist.rows- grd_rscdgchglist.fixedRows;
  126. model.refresh();
  127. }
  128. function fGridInsertChanged()
  129. {
  130. var vFromDD = "";
  131. for(var fRow = grd_rscdgchglist.fixedRows; fRow < grd_rscdgchglist.rows; fRow++)
  132. {
  133. grd_rscdgchglist.addStatus(fRow, "insert");
  134. vFromDD = model.getValue(grd_rscdgchglist.nodeset + "[" + fRow + "]/fromdd");
  135. vFromDD = vFromDD.replace(/-/gi,'');
  136. model.setValue(grd_rscdgchglist.nodeset + "[" + fRow + "]/fromdd", vFromDD);
  137. grd_rscdgchglist.valueMatrix(fRow, grd_rscdgchglist.colRef("instcd")) = cmb_instcd.value;
  138. }
  139. }
  140. function fSetGoodSpec()
  141. {
  142. model.setValue(opt_poptitle.attribute("ref"), "물품 규격을 입력해 주세요");
  143. rszfOpenPopUpListByWndName(opt_popinputcd,"","popinputcd","SMRSC03701" ,"title","opt_poptitle");
  144. model.refresh();
  145. fSetAllApply(grd_costlist,"goodspec", model.getValue(opt_popinputcd.attribute("ref")));
  146. }
  147. function fSetGoodModel()
  148. {
  149. model.setValue(opt_poptitle.attribute("ref"), "물품 모델을 입력해 주세요");
  150. rszfOpenPopUpListByWndName(opt_popinputcd,"","popinputcd","SMRSC03701" ,"title","opt_poptitle");
  151. model.refresh();
  152. fSetAllApply(grd_costlist,"goodmodel", model.getValue(opt_popinputcd.attribute("ref")));
  153. }
  154. function fSetGoodnm()
  155. {
  156. model.setValue(opt_poptitle.attribute("ref"), "물품명 입력해 주세요");
  157. rszfOpenPopUpListByWndName(opt_popinputcd,"","popinputcd","SMRSC03701" ,"title","opt_poptitle");
  158. model.refresh();
  159. fSetAllApply(grd_costlist,"goodnm", model.getValue(opt_popinputcd.attribute("ref")));
  160. }
  161. function fSetGoodUnitCost()
  162. {
  163. model.setValue(opt_poptitle.attribute("ref"), "제품 단가를 입력해 주세요");
  164. model.setValue(opt_popformat.attribute("ref"), "#,###");
  165. rszfOpenPopUpListByWndName(opt_popinputcd,"","popinputcd","SMRSC03701" ,"title,format","opt_poptitle,opt_popformat");
  166. model.refresh();
  167. fSetAllApply(grd_costlist,"goodunitcost", model.getValue(opt_popinputcd.attribute("ref")));
  168. }
  169. function fSetExchQty()
  170. {
  171. model.setValue(opt_poptitle.attribute("ref"), "환산수량을 입력해 주세요");
  172. model.setValue(opt_popformat.attribute("ref"), "#,###");
  173. rszfOpenPopUpListByWndName(opt_popinputcd,"","popinputcd","SMRSC03701" ,"title,format","opt_poptitle,opt_popformat");
  174. model.refresh();
  175. fSetAllApply(grd_costlist,"exchqty", model.getValue(opt_popinputcd.attribute("ref")));
  176. }
  177. function fSetMainCustLastSuplplce()
  178. {
  179. model.setValue(opt_popcond.attribute("ref"),"custom");
  180. model.setValue(opt_poptitle.attribute("ref"), "주거래처를 선택해 주세요");
  181. rszfOpenPopUpListByWndName(opt_popinputcd,"","popinputcd,popinputnm","SMRSC03701" ,"title,cond,instcd","opt_poptitle,opt_popcond,cmb_instcd");
  182. model.refresh();
  183. fSetAllApply(grd_costlist,"maincustlastsuplplce,maincustlastsuplplcenm", model.getValue(opt_popinputcd.attribute("ref")));
  184. }
  185. function fSetSuppCustCd()
  186. {
  187. model.setValue(opt_popcond.attribute("ref"),"custom");
  188. model.setValue(opt_poptitle.attribute("ref"), "보조 거래처를 선택해 주세요");
  189. rszfOpenPopUpListByWndName(opt_popinputcd,"","popinputcd,popinputnm","SMRSC03701" ,"title,cond,instcd","opt_poptitle,opt_popcond,cmb_instcd");
  190. model.refresh();
  191. fSetAllApply(grd_costlist,"suppcustcd,suppcustnm", model.getValue(opt_popinputcd.attribute("ref")));
  192. }
  193. function fSetGoodProdCmpy()
  194. {
  195. model.setValue(opt_popcond.attribute("ref"),"prodcmpy");
  196. model.setValue(opt_poptitle.attribute("ref"), "제조회사를 선택해 주세요");
  197. rszfOpenPopUpListByWndName(opt_popinputcd,"","popinputcd,popinputnm","SMRSC03701" ,"title,cond,instcd","opt_poptitle,opt_popcond,cmb_instcd");
  198. model.refresh();
  199. fSetAllApply(grd_costlist,"prodcmpycd,prodcmpynm", model.getValue(opt_popinputcd.attribute("ref")));
  200. }
  201. function fSetPurcUnit()
  202. {
  203. model.setValue(opt_popcond.attribute("ref"),"purcunit");
  204. model.setValue(opt_poptitle.attribute("ref"), "포장단위를 선택해 주세요");
  205. rszfOpenPopUpListByWndName(opt_popinputcd,"","popinputcd","SMRSC03701" ,"title,cond","opt_poptitle,opt_popcond");
  206. model.refresh();
  207. fSetAllApply(grd_costlist,"purcunit", model.getValue(opt_popinputcd.attribute("ref")));
  208. }
  209. function fSetDeliveUnit()
  210. {
  211. model.setValue(opt_popcond.attribute("ref"),"deliveunit");
  212. model.setValue(opt_poptitle.attribute("ref"), "수불단위를 선택해 주세요");
  213. rszfOpenPopUpListByWndName(opt_popinputcd,"","popinputcd","SMRSC03701" ,"title,cond","opt_poptitle,opt_popcond");
  214. fSetAllApply(grd_costlist,"deliveunit", model.getValue(opt_popinputcd.attribute("ref")));
  215. model.refresh();
  216. }
  217. function fSetAllApply(f_grid, f_id , f_value)
  218. {
  219. if(f_id == null || f_id.length == 0 || f_value == null || f_value.length == 0 )return;
  220. var f_selid = f_id.split(",");
  221. var f_selvalue = f_value.split(",");
  222. for(currow = 0 ; currow < f_grid.selectedRows; currow++)
  223. {
  224. for (var k = 0; k < f_selid.length; k++) {
  225. if(f_grid.colRef(f_selid[k]) != -1)
  226. {
  227. if(model.getValue(f_grid.nodeset + "[" + (f_grid.selectedRow(currow)- f_grid.fixedRows + 1) + "]/" + f_selid[k]) != f_selvalue[k])
  228. {
  229. // model.setValue(f_grid.nodeset + "[" + (f_grid.selectedRow(currow)- f_grid.fixedRows + 1) + "]/" + f_selid[k] ,f_selvalue[k]);
  230. grd_costlist.valueMatrix( (f_grid.selectedRow(currow)- f_grid.fixedRows + 1), grd_costlist.colRef( f_selid[k] ) ) = f_selvalue[k];
  231. if(f_grid.rowStatus(f_grid.selectedRow(currow)) == "0")f_grid.rowStatus(f_grid.selectedRow(currow)) = "2";
  232. }
  233. }
  234. }
  235. }
  236. }
  237. // 조회버튼 click시 원래사이즈로 초기화
  238. function fZoomInOut(pCall)
  239. {
  240. var selrow = 0;
  241. var selzoomin = "N";
  242. // 조회버튼 click시 원래사이즈로 초기화
  243. if (pCall == "search")
  244. {
  245. for(currow = 0 ; currow < grd_costlist.Rows; currow++)
  246. {
  247. selrow = grd_costlist.selectedRow(currow);
  248. if(grd_costlist.rowHeight(selrow) == 50)
  249. {
  250. grd_costlist.rowHeight(selrow) = 23;
  251. grd_costlist.cellstyle("font-size",selrow, 1 , selrow, grd_costlist.cols -1) = "10pt";
  252. }
  253. }
  254. }
  255. else
  256. {
  257. for(currow = 0 ; currow < grd_costlist.selectedRows; currow++)
  258. {
  259. selrow = grd_costlist.selectedRow(currow);
  260. if(grd_costlist.rowHeight(selrow) == 23)
  261. {
  262. grd_costlist.rowHeight(selrow) = 50;
  263. grd_costlist.cellstyle("font-size",selrow, 1,selrow,grd_costlist.cols -1) = "15pt";
  264. selzoomin = "Y";
  265. }
  266. else
  267. {
  268. grd_costlist.rowHeight(selrow) = 23;
  269. grd_costlist.cellstyle("font-size",selrow, 1 , selrow, grd_costlist.cols -1) = "10pt";
  270. }
  271. }
  272. }
  273. if(selzoomin == "Y")grd_costlist.ellipsis ="false";
  274. else grd_costlist.ellipsis ="true";
  275. }
  276. // Zoom In Zoom Out
  277. function fWindowPosition(inout)
  278. {
  279. var sVisible = true;
  280. if (inout =="O") {
  281. swt_select.attribute("style") = "left:0px; top:180px; width:1195px; height:419px; border-style:solid; ";
  282. btn_cost.attribute("style") = "left:0px; top:159px; width:149px; height:22px; ";
  283. btn_excel.attribute("style") = "left:149px; top:159px; width:160px; height:22px; ";
  284. grd_costlist.attribute("style") = "left:0px; top:29px; width:1193px; height:379px;";
  285. }
  286. else {
  287. sVisible = false;
  288. swt_select.attribute("style") = "left:0px; top:31px; width:1195px; height:558px; border-style:solid; ";
  289. btn_cost.attribute("style") = "left:0px; top:10px; width:149px; height:22px; ";
  290. btn_excel.attribute("style") = "left:149px; top:10px; width:160px; height:22px; ";
  291. grd_costlist.attribute("style") = "left:0px; top:29px; width:1193px; height:518px; ";
  292. }
  293. roundrect2.visible = sVisible;
  294. cap_instcd.visible = sVisible;
  295. cmb_instcd.visible = sVisible;
  296. cap_goodflag.visible = sVisible;
  297. cmb_goodflag.visible = sVisible;
  298. cap_maincustlastsuplplce.visible= sVisible;
  299. ipt_maincustlastsuplplce.visible= sVisible;
  300. btn_maincustlastsuplplce.visible= sVisible;
  301. cap_lrgcd.visible = sVisible;
  302. ipt_lrgcd_search.visible = sVisible;
  303. btn_lrgcd.visible = sVisible;
  304. cap_goodcd.visible = sVisible;
  305. ipt_goodcd.visible = sVisible;
  306. cap_suppcustcd.visible = sVisible;
  307. ipt_suppcustcd.visible = sVisible;
  308. btn_suppcustcd.visible = sVisible;
  309. line_title.visible = sVisible;
  310. model.refresh();
  311. }
  312. function fSetDataCopy(pnode,nodename)
  313. {
  314. misfGridInit(grd_goodhistory);
  315. if (swt_select.selectedIndex == 0)
  316. {
  317. misfGridInit(grd_costlist);
  318. fgrid = grd_costlist;
  319. }
  320. else return;
  321. var codynode = instance1.selectNodes(pnode + "/*");
  322. var tmpdata = "";
  323. for (var j = 1; j <= codynode.length ; j++) {
  324. misfGridIUD(fgrid,"A");
  325. addRow = fgrid.rows - fgrid.fixedRows;
  326. for(var curcol = 1; curcol < fgrid.cols ; curcol++)
  327. {
  328. tmpdata = model.getValue(pnode +"/" + nodename + "[" + j + "]/" + fgrid.colAttribute(curcol, "ref"));
  329. if(tmpdata.length> 0)model.setValue(fgrid.nodeset + "[" + addRow + "]/" + fgrid.colAttribute(curcol, "ref") , tmpdata);
  330. }
  331. addRow = addRow + 1;
  332. }
  333. fgrid.clearStatus();
  334. model.refresh();
  335. }
  336. function fCheckRetrieveData()
  337. {
  338. if(model.getValue(cmb_instcd.attribute("ref")).length== 0 )
  339. {
  340. messageBox("기관코드를 " ,"C002");
  341. model.setFocus("cmb_instcd");
  342. return false;
  343. }
  344. if(model.getValue(cmb_goodflag.attribute("ref")).length== 0 )
  345. {
  346. messageBox("물품구분을 " ,"C002");
  347. model.setFocus("cmb_goodflag");
  348. return false;
  349. }
  350. /*
  351. if(model.getValue(ipt_lrgcd_search.attribute("ref")).length== 0 )
  352. {
  353. messageBox("대분류코드를 " ,"C002");
  354. model.setFocus("ipt_lrgcd_search");
  355. return false;
  356. }
  357. if(model.getValue(ipt_goodcd.attribute("ref")).length < 3 && model.getValue(ipt_goodnm.attribute("ref")).length < 3)
  358. {
  359. messageBox("물품코드 또는 물품명에 최소 2자리를" ,"C001");
  360. model.setFocus("ipt_goodcd_search");
  361. return false;
  362. }
  363. */
  364. model.setValue("/root/send/goodlist/offset","0");
  365. model.setValue("/root/send/goodlist/pagesize", 20);
  366. return true;
  367. }
  368. function zoomInAndOut(string) {
  369. if (string == "in") {
  370. currZoom = myContainer.style.zoom;
  371. currZoom = currZoom.substring(0, currZoom.length - 1);
  372. currZoom = parseInt(currZoom, 10);
  373. newZoom = currZoom + 1;
  374. if (newZoom> 10000) return;
  375. myContainer.style.zoom = newZoom + "%";
  376. }
  377. else if (string == "out") {
  378. currZoom = myContainer.style.zoom;
  379. currZoom = currZoom.substring(0, currZoom.length - 1);
  380. currZoom = parseInt(currZoom, 10);
  381. newZoom = currZoom - 1;
  382. if (newZoom <1) return;
  383. myContainer.style.zoom = newZoom + "%";
  384. }
  385. }
  386. function fSubmitOnScroll() {
  387. if (swt_select.selectedIndex == 0)fgrid = grd_costlist;
  388. else return;
  389. if(fgrid.vscroll.attribute("max") == fgrid.vscroll.attribute("pos")) {
  390. model.setValue("/root/send/goodlist/offset", fgrid.rows-fgrid.fixedRows);
  391. submit("TRRSC00601");
  392. }
  393. }
  394. // 물품구분별 권한체크.
  395. function fSetGoodFlagAuth()
  396. {
  397. btn_save.disabled=true;
  398. rszfGetPurcGoodFlagAuthInfo(cmb_instcd.value , cmb_goodflag.value, getUserInfo("userid"), "%");
  399. if(rszfGetGoodFlagAuthInfoByCond("goodflagauth") =="Y")
  400. {
  401. btn_save.disabled=false;
  402. }
  403. }
  404. //----------------------------
  405. // Save Excel Data
  406. //----------------------------
  407. function fSaveGoodExcel()
  408. {
  409. var tPath = "/root/send/save/excelgoodlists";
  410. var sPath = "/root/init/CopyData/CopyGoodLists";
  411. if (instance1.selectNodes(sPath+"/*").length < 1) return;
  412. var vData = "";
  413. var vHeader = "status" + "▦" // 입력(i), 수정(u), 삭제(d) 구분
  414. + "instcd" + "▦" // 기관코드
  415. + "goodcd" + "▦" // 물품코드
  416. + "fromdd" + "▦" // 사용시작일
  417. + "purcflag" + "▦" // 구매구분(구매, 수탁, 위탁)
  418. + "reqmthd" + "▦" // 처방집계,정량보충,일반청구
  419. + "reqprid" + "▦" // 청구주기
  420. + "prodcmpycd" + "▦" // 제조회사코드
  421. + "maincustlastsuplplce" + "▦" // 최종공급처
  422. + "suppcustcd" + "▦" // 보조거래처코드
  423. + "goodunitcost" + "▦" // 제품단가
  424. + "cmt" + "▩"; // 비고
  425. //
  426. for (var cRow = grd_copygood.fixedRows ; cRow < grd_copygood.rows ; cRow++)
  427. {
  428. vData += "i" + "▦" // 입력(i), 수정(u), 삭제(d) 구분
  429. + model.getValue(cmb_instcd.attribute("ref") ) + "▦" // 기관코드
  430. + model.getValue(grd_copygood.nodeset+"["+cRow+"]/goodcd" ) + "▦" // 물품코드
  431. + model.getValue(grd_copygood.nodeset+"["+cRow+"]/fromdd" ) + "▦" // 사용시작일
  432. + model.getValue(grd_copygood.nodeset+"["+cRow+"]/purcflag" ) + "▦" // 구매구분(구매, 수탁, 위탁)
  433. + model.getValue(grd_copygood.nodeset+"["+cRow+"]/reqmthd" ) + "▦" // 처방집계,정량보충,일반청구
  434. + model.getValue(grd_copygood.nodeset+"["+cRow+"]/reqprid" ) + "▦" // 청구주기
  435. + model.getValue(grd_copygood.nodeset+"["+cRow+"]/prodcmpycd" ) + "▦" // 제조회사코드
  436. + model.getValue(grd_copygood.nodeset+"["+cRow+"]/maincustlastsuplplce" ) + "▦" // 최종공급처
  437. + model.getValue(grd_copygood.nodeset+"["+cRow+"]/suppcustcd" ) + "▦" // 보조거래처코드
  438. + model.getValue(grd_copygood.nodeset+"["+cRow+"]/goodunitcost" ) + "▦" // 제품단가
  439. + model.getValue(grd_copygood.nodeset+"["+cRow+"]/cmt")+ "Excel 일괄변경" + "▩"; // 비고
  440. }
  441. //
  442. model.removenode(tPath);
  443. model.makeNode(tPath+"/goodexcel");
  444. model.setValue(tPath+"/goodexcel" ,vHeader+vData);
  445. submit("TXRSC03703");
  446. if (model.getValue(gvErrorMsgPath + "/type") != "error") {
  447. misfGridInit(grd_copygood);
  448. grp_copygood.visible = false;
  449. alert("자료처리완료!!! 확인요.");
  450. } else {
  451. alert("저장 실패!!! 확인요.");
  452. }
  453. }
  454. /* ------------------------------------------------- */
  455. /* ------End Of List ------------------------------- */
  456. /* -------------------------------------------------- */