/* --------------------------------------------------------------------- SMRSD07100_󹿼º¹°Ç°»ç¿ëÇöȲÁ¶È¸.xrw (SMRSD07100.xfm - JScript ) - Version : 1) : Ver.1.00.01 : Create By Chungpd. : 2010.12.08 ---------------------------------------------------------------------- */ var vProgramCls = "SMRSD07100"; // var vGoodReqPath = "/root/main/list/goodreq/goodreqlist"; var xAuth = !(checkAuth("X")); var pAuth = !(checkAuth("P")); var DataPath = "/root/main/RscmggbnEmpData"; var MainPath = "/root/main/RscmggbnLists/rscmggbnlist"; var ListsPath = "/root/main/RscmggbnEmpLists"; var ListPath = "/root/main/RscmggbnEmpLists/rscmggbnemplist"; var HidePath = "/root/WorkData/HideData"; var TreePath = "/root/main/RscmgubnLists/TreeList"; var WorkPath = "/root/init/WorkInit"; var CompPath = "/root/init/CompareInit"; var TreeSendPath = "/root/send/SearchTree"; var trv_setcode_index = -1; // -------------------------------------------------- // TreeÁ¤º¸ °¡Á®¿À±â // -------------------------------------------------- function fInit() { // È­¸é ControlÀ» ÃʱâÈ­ÇÑ´Ù fInitialize(); return; } // -------------------------------------------------------------- // È­¸é open½Ã¿Í ÃʱâÈ­ ¹öư Ŭ¸¯½Ã È­¸é ÃʱâÈ­ ±â´ÉÀ» ¼öÇàÇÑ´Ù. // -------------------------------------------------------------- function fInitialize() { // 󹿳»¿ª ±×¸®µå ÃʱâÈ­ misfGridInit(grd_prcppatcaselist); model.setValue(opt_instcd.attribute("ref") , getUserInfo("dutplceinstcd")); // ±â°üÄÚµå model.setValue(opt_instcdnm.attribute("ref") , getUserInfo("dutplceinstnm")); // ±â°üÄÚµå¸í if(!fCheckDeptAuth(getUserInfo("dutplcecd"), getUserInfo("dutplceinstcd"))) { // ºÎ¼­±ÇÇÑ È®ÀÎ ipt_prcpdeptcd.value = getUserInfo("dutplcecd"); ipt_prcpdeptnm.value = getUserInfo("dutplcenm"); ipt_prcpdeptcd.disabled = true; btn_prcpdeptcd.disabled = true; btn_deliveqtysave.visible = false; btn_excel.visible = false; btn_wardprint.visible = false; btn_deptstoc.visible = false; rdo_viewcls.disabled = true; } var curdate = getCurrentDate(); var cvtdate = curdate.toDate("YYYYMMDD"); model.setValue(ipt_acptdd.attribute("ref") , curdate); model.setValue(rdo_sumflag.attribute("ref") , "Y"); model.setValue(rdo_ioflag.attribute("ref") , ""); model.setValue(rdo_prntmthd.attribute("ref") , "G"); model.removeNodeset("/root/main/list/prcpgoodcase/prcpgoodcaselist"); model.removeNodeset("/root/main/list/prcppatcase/prcppatcaselist"); misfComboComCdListMulti("030R0034,R0450","rdo_erprcpflag,chk_wareflag"); // Á¢¼Ó±â°ü ½ºÅ¸ÀÏ º¯°æ fInitInstStyle(); rdo_erprcpflag.select(0); ipt_acptdd.dispatch("xforms-value-changed"); model.refresh(); } // Á¢¼Ó±â°ü ½ºÅ¸ÀÏ º¯°æ function fInitInstStyle() { if(getScreenID() == "SMRSD07100") { // °æºÏ´ëÇб³º´¿ø Àû¿ë if(getUserInfo("dutplceinstcd") == "031") { // º»¿ø¿¡¼­ Á¢±Ù½Ã 'ÀϹÝ+ÀÀ±Þ' Ç׸ñ Ãß°¡Ç¥½Ã addComboItem("rdo_erprcpflag", "Á¤±Ô+ÀÀ±Þ", "A", "above"); rdo_erprcpflag.refresh(); grd_prcpgoodcaselist.colWidth(grd_prcpgoodcaselist.colRef("safestocqty")) = 0; grd_prcpgoodcaselist.colWidth(grd_prcpgoodcaselist.colRef("delivecnfmqty")) = 0; grd_prcpgoodcaselist.colHidden(grd_prcpgoodcaselist.colRef("safestocqty")) = true; grd_prcpgoodcaselist.colHidden(grd_prcpgoodcaselist.colRef("delivecnfmqty")) = true; btn_deliveqtysave.visible = false; } // Ä¥°î°æºÏ´ëÇб³º´¿ø Àû¿ë if(getUserInfo("dutplceinstcd") == "032") { var gridCaption = grd_prcpgoodcaselist.caption; gridCaption = gridCaption.replace("^ÃѼö·®", "^ó¹æÁý°è¼ö·®"); grd_prcpgoodcaselist.caption = gridCaption; grd_prcpgoodcaselist.colWidth(grd_prcpgoodcaselist.colRef("deliveqty")) = 0; grd_prcpgoodcaselist.colHidden(grd_prcpgoodcaselist.colRef("deliveqty")) = true; var userid = getUserInfo("userid"); if(userid == "10012" || userid == "12008" || userid == "06157" || userid == "MIS") { //if(getUserInfo("dutplcenm") == "4020334000") { btn_enddelive.visible = true; btn_enddelivedept.visible = true; btn_canceldelivedept.visible = true; btn_save. visible = true; } else { btn_enddelive.visible = false; btn_enddelivedept.visible = false; btn_canceldelivedept.visible = false; btn_save. visible = false; grd_deptstoc.colWidth(grd_deptstoc.colRef("appyn")) = 0; grd_deptstoc.colHidden(grd_deptstoc.colRef("appyn")) = true; grd_deptstoc.colHidden(grd_deptstoc.colRef("deliveyn")) = true; // ºÒÃâ¿©ºÎ Ä÷³ ¼û±è } model.setValue(chk_prcpinptflag.attribute("ref"),"ignore"); chk_prcpinptflag.refresh(); rdo_erprcpflag.disabled = true; } } } function fDataSearchTree() { // if (fCheckRetrieveData(false) == false) return; misfGridInit(grd_prcppatcaselist); if(submit("TRRSD07103")) { trv_setcode.rebuild(); if(rdo_viewcls.value == "0" && instance1.selectNodes("/root/main/PrcpGoodTrees/TreeList[depth='2']").length == 1) { trv_setcode.value = instance1.selectSingleNode("/root/main/PrcpGoodTrees/TreeList[depth='2']/pcode").value; // Æ®·¯½ºÆ®Æû Æ®¸®ºä focusIndex °ª ¿À·ù·Î Àü¿ªº¯¼ö¿¡ À妽º ÀúÀå trv_setcode_index = 1; trv_setcode.dispatch("xforms-value-changed"); }else if(rdo_viewcls.value != "0" && instance1.selectNodes("/root/main/PrcpGoodTrees/TreeList[depth='1']").length == 1) { trv_setcode.value = instance1.selectSingleNode("/root/main/PrcpGoodTrees/TreeList[depth='1']/pcode").value; // Æ®·¯½ºÆ®Æû Æ®¸®ºä focusIndex °ª ¿À·ù·Î Àü¿ªº¯¼ö¿¡ À妽º ÀúÀå trv_setcode_index = 0; trv_setcode.dispatch("xforms-value-changed"); } trv_setcode.refresh(); } } // ó¹æÀü´Þ¹°Ç°³»¿ªÁ¶È¸ function fDataSearchDetail(pIdx) { var rPath = "/root/send/SearchTree"; var dPath = "/root/send/prcppatcaseinfo"; var tPath = "/root/main/PrcpGoodTrees/TreeList"; var vCaption = " ó¹æÀü´Þ¹°Ç°"; // if (fCheckRetrieveData(false) == false)return; // ÀÔ·ÂÇ׸ñ Check if(pIdx == -1) pIdx = trv_setcode_index; else trv_setcode_index = pIdx; var Idx = pIdx + 1; var sDepth = model.getValue(tPath +"["+Idx+"]/depth" ); var vCodeCd = model.getValue(tPath +"["+Idx+"]/codecd" ); var vCodeNm = model.getValue(tPath +"["+Idx+"]/codenm" ); var vBaseCd = model.getValue(tPath +"["+Idx+"]/basecode"); var Tree2 = trv_setcode.item(pIdx); var ioflag = model.getValue(rdo_ioflag.attribute("ref")); misfGridInit(grd_prcppatcaselist); misfGridInit(grd_prcpgoodcaselist); misfGridInit(grd_deptstoc); if (vCodeCd == "") return; model.setValue(dPath + "/instcd" , model.getValue(rPath + "/instcd" )); // 01 ±â°üÄÚµå model.setValue(dPath + "/acptdd" , model.getValue(rPath + "/acptdd" )); // 02 ó¹æÀÏÀÚ model.setValue(dPath + "/sumflag" , model.getValue(rPath + "/sumflag" )); // 04 Áý°è¿©ºÎ model.setValue(dPath + "/reqflag" , model.getValue(rPath + "/reqflag" )); // 05 û±¸±¸ºÐ model.setValue(dPath + "/reqdeptcd" , "" ); // 06 ó¹æºÎ¼­ model.setValue(dPath + "/reqprid" , model.getValue(rPath + "/reqprid" )); // 07 û±¸ÁÖ±â model.setValue(dPath + "/prcpdeptcd" , "" ); // 08 ½ÃÇàºÎ¼­ model.setValue(dPath + "/goodcd" , model.getValue(rPath + "/goodcd" )); // 09 ¹°Ç°ÄÚµå model.setValue(dPath + "/ioflag" , model.getValue(rPath + "/ioflag" )); // 10 ÀԿܱ¸ºÐ model.setValue(dPath + "/deptgr" , "" ); // 11 ºÎ¼­±×·ì model.setValue(dPath + "/pid" , model.getValue(rPath + "/pid" )); // 12 ȯÀÚ¹øÈ£ model.setValue(dPath + "/patnm" , model.getValue(rPath + "/patnm" )); // 13 ȯÀÚ¸í model.setValue(dPath + "/purcflag" , model.getValue(rPath + "/purcflag" )); // 14 ±¸¸Å±¸ºÐ model.setValue(dPath + "/prodcmpynm" , model.getValue(rPath + "/prodcmpynm" )); // 15 Á¦Á¶È¸»ç¸í model.setValue(dPath + "/suplplcecdnm", model.getValue(rPath + "/suplplcecdnm" )); // 16 ÁÖ°Å·¡Ã³¸í model.setValue(dPath + "/suppcustnm" , model.getValue(rPath + "/suppcustnm" )); // 17 º¸Á¶°Å·¡Ã³¸í model.setValue(dPath + "/prntmthd" , model.getValue(rPath + "/prntmthd" )); // 18 Ãâ·ÂÇü½Ä model.setValue(dPath + "/sumcnt" , model.getValue(rPath + "/sumcnt" )); // 19 Áý°èȽ¼ö model.setValue(dPath + "/scrnid" , model.getValue(rPath + "/scrnid" )); // 20 È­¸éID model.setValue(dPath + "/erprcpflag" , model.getValue(rPath + "/erprcpflag" )); // 21 ÀÀ±Þ¿©ºÎ model.setValue(dPath + "/prcpinptflag", model.getValue(rPath + "/prcpinptflag" )); // 22 ó¹æÀԷ±¸ºÐ // ¼±ºÒÃâ Á¶È¸Á¶°Ç Ãß°¡ ÀÌâ·Ï model.makeValue(dPath + "/querycls" , model.getValue("/root/send/SearchTree/querycls")); // 19 ¶óµð¿À¹Ú½º ¼±ºÒÃâÄÚµå // ¹°·ùâ°í Á¶È¸Á¶°Ç Ãß°¡ model.setValue(dPath + "/wareflag" , model.getValue(rPath + "/wareflag" )); // â°í±¸ºÐ(¹°·ùâ°í) if(getScreenID() == "SMRSD07100"){ // ó¹æÁý°è Ãâ·ÂÈ­¸éÀÏ °æ¿ì model.setValue(dPath + "/wareflagarr" , model.getValue(rPath + "/wareflagarr" )); // â°í±¸ºÐ¹è¿­ Á¶°Ç model.setValue(dPath + "/acntcd" , model.getValue(rPath + "/acntcd" )); // °èÁ¤°ú¸ñ model.setValue(dPath + "/acpttodd" , model.getValue(rPath + "/acpttodd" )); // Áý°èÁ¾·áÀÏÀÚ model.setValue(dPath + "/querycls" , model.getValue(rPath + "/querycls" )); // ºÎ¼­Á¶È¸¿©ºÎ } var vCls = parseInt(rdo_viewcls.value+sDepth); switch(vCls) { case 01 : vCaption = " :: Àüü" ; break; case 02 : model.setValue(dPath + "/prcpdeptcd" , vCodeCd ); vCaption = "½ÃÇàºÎ¼­ : "+vCodeCd + " - " + vCodeNm; break; case 11 : model.setValue(dPath + "/reqdeptcd" , vCodeCd); vCaption = "ó¹æºÎ¼­ : "+ vCodeCd + " - " + vCodeNm; break; case 12 : model.setValue(dPath + "/prcpdeptcd" , vCodeCd ); vCode = model.getValue(tPath +"["+(Tree2.parentindex + 1)+"]/codecd" ); vName = model.getValue(tPath +"["+(Tree2.parentindex + 1)+"]/codenm" ); model.setValue(dPath + "/reqdeptcd" , vCode ); vCaption = "ó¹æºÎ¼­ : "+vCode + " - " + vName + " >> ½ÃÇàºÎ¼­ : "+vCodeCd+ " - "+vCodeNm; break; case 21 : model.setValue(dPath + "/prcpdeptcd" , vCodeCd ); vCaption = "½ÃÇàºÎ¼­ : "+vCodeCd + " - " + vCodeNm; break; case 22 : model.setValue(dPath + "/reqdeptcd" , vCodeCd); vCode = model.getValue(tPath +"["+(Tree2.parentindex + 1)+"]/codecd" ); vName = model.getValue(tPath +"["+(Tree2.parentindex + 1)+"]/codenm" ); model.setValue(dPath + "/prcpdeptcd" , vCode ); vCaption = "½ÃÇàºÎ¼­ : "+vCode + " - " + vName + " >> ó¹æºÎ¼­ : "+vCodeCd+ " - "+vCodeNm ; break; case 31 : model.setValue(dPath + "/prcpdeptcd" , vCodeCd ); vCaption = "½ÃÇàºÎ¼­ : "+vCodeCd + " - " + vCodeNm; break; case 32 : model.setValue(dPath + "/goodcd" , vCodeCd); vCode = model.getValue(tPath +"["+(Tree2.parentindex + 1)+"]/codecd" ); vName = model.getValue(tPath +"["+(Tree2.parentindex + 1)+"]/codenm" ); model.setValue(dPath + "/prcpdeptcd" , vCode ); vCaption = "½ÃÇàºÎ¼­ : "+vCode + " - " + vName + " >> ¹°Ç°ÄÚµå : "+vCodeCd+ " - "+vCodeNm ; } cap_prcpgoodcasetitle.hint = ""; if (model.getValue(dPath + "/prntmthd") == "P"){ submit("TRRSD07101",false); //ȯÀÚº° Áý°è³»¿ª btn_prcpgoodcase.visible = false; btn_prcppatcase.visible = true; if(btn_prcppatcase.selected == true) { model.toggle("cse_prcppatcase"); btn_prcppatcase.selected = true; } }else{ submit("TRRSD07102",false); //¹°Ç°º° Áý°è³»¿ª btn_prcppatcase.visible = false; btn_prcpgoodcase.visible = true; if(btn_prcpgoodcase.selected == true) { model.toggle("cse_prcpgoodcase"); btn_prcpgoodcase.selected = true; } var tooltip = ""; tooltip = model.getValue("/root/main/list/prcpgoodcase/prcpsuminfo/sumcmt"); cap_prcpgoodcasetitle.hint = tooltip; } model.refresh(); fGrdiDataValid(); if(model.getValue("/root/main/list/prcpgoodcase/deptstoccaselist/prnyn") == "N") { btn_enddelive.disabled = false; } else { btn_enddelive.disabled = true; } var chkSave = instance1.selectNodes("/root/main/list/prcpgoodcase/deptstoccaselist[edityn='Y']/edityn"); if(chkSave != null && chkSave.length > 0) { btn_save.disabled = false; } else { btn_save.disabled = true; } var deptcd = grd_deptstoc.valueMatrix(1,grd_deptstoc.colRef("prcpdeptcd")); var others = instance1.selectNodes(grd_deptstoc.nodeset + "[prcpdeptcd != '" + deptcd + "']"); var sameDeptcd = false; var flag1 = true; var flag2 = true; if(deptcd != null && others.length == 0) sameDeptcd = true; if(sameDeptcd) { var deliveCnt1 = instance1.selectNodes("/root/main/list/prcpgoodcase/deptstoccaselist[deliveendflag='N']").length; var deliveCnt2 = instance1.selectNodes("/root/main/list/prcpgoodcase/deptstoccaselist[deliveendflag='Y' and execyn!='Y']").length; if(deliveCnt1 > 0) flag1 = false; if(deliveCnt2 > 0) flag2 = false; } btn_enddelivedept.disabled = flag1; btn_canceldelivedept.disabled = flag2; } // ó¹æÀü´Þ¹°Ç°³»¿ª function fDataPartToggle(pCls) { if (pCls =="0") { // Key Á¶È¸ // ¸ÞÀÎ Grup grp_main.attribute("left" ) = "350px"; // grp_main.attribute("top" ) = "8px" ; grp_main.attribute("width" ) = "835px"; // grp_main.attribute("height" ) = "747px"; btn_excel2.attribute("left" ) = "778px"; lin_main.attribute("x2" ) = "835px"; grd_prcppatcaselist.attribute("width") = "835px"; if (vProgramCls == "SMRSD02203") { btn_save.attribute("left" ) = "715px"; } } else { // // ¸ÞÀÎ Grup grp_main.attribute("left" ) = "0px" ; //grp_main.attribute("top" ) = "8px" ; grp_main.attribute("width" ) = "1192px"; //grp_main.attribute("height" ) = "747px" ; btn_excel2.attribute("left" ) = "1135px"; lin_main.attribute("x2" ) = "1192px"; grd_prcppatcaselist.attribute("width") = "1192px"; if (vProgramCls == "SMRSD02203") { btn_save.attribute("left" ) = "1072px"; } } grp_main.refresh(); } // Á¶È¸ °á°ú Count Setting function fAfterRetrieve() { // case 1 count model.setValue(opt_goodreqcnt.attribute("ref"),(grd_goodreq.rows-grd_goodreq.fixedRows)); // case 2 count // model.setValue(opt_searchgoodcnt.attribute("ref"),(grd_prcppatcaselist.rows-grd_prcppatcaselist.fixedRows)); model.refresh(); } // GridÀÇ µ¥ÀÌÅ͸¦ È®ÀÎÇÏ¿© ¿À·ù µ¥ÀÌÅͽà »ö»ó º¯°æ // ¹°Ç°MasterÀÇ All size && Áý°è ¿©ºÎ½Ã »ö»óº¯°æ function fGrdiDataValid() { grd_deptstoc.rebuildStyle(); var deptstocList = instance1.selectNodes(grd_deptstoc.nodeset); grd_deptstoc.colStyle(2, "data", "background-color") = "pink"; if(deptstocList != null && deptstocList.length > 0) { for(var i=0; i 0) { if(!equalFlag) { grd_prcpgoodcaselist.cellstyle("color", i, delivecnfmqtyCol, i, delivecnfmqtyCol) = "blue"; } grd_prcpgoodcaselist.tooltipText(i, delivecnfmqtyCol) = comment; } else { grd_prcpgoodcaselist.tooltipText(i, delivecnfmqtyCol) = ""; } // ºÎ¼­ ºÒÃ⸶°¨ÀÌ ÀÔ·Â µÇ°Å³ª ºÎ¼­Àç°í°¡ ÀÔ°í ó¸® µÈ °æ¿ì ¼öÁ¤ºÒ°¡ ó¸®(edityn) // ³»½Ã°æ°Ë»ç½ÇÀÇ »ç¿ëºÎ¼­°¡ ¹°·ùÆÄÆ® ÀÎ ÀϺΠ¹°Ç°Àº ºÒÃâÈ®Á¤¼ö·® ¼öÁ¤ºÒ°¡ ó¸®(cmt_view) if(deptAuth && (edityn == "N" || cmt_view == "N")) { grd_prcpgoodcaselist.isReadOnly(i, delivecnfmqtyCol, i, delivecnfmqtyCol) = false; } else { grd_prcpgoodcaselist.isReadOnly(i, delivecnfmqtyCol, i, delivecnfmqtyCol) = true; } // ¾ÈÀüÀç°í ¼ö·®ÀÌ ºñ¾î ÀÖ´Â °æ¿ì ºÓÀº ±Û¾¾·Î Ç¥½Ã if(equalFlag && safestocqty == "") { grd_prcpgoodcaselist.cellstyle("color", i, delivecnfmqtyCol, i, delivecnfmqtyCol) = "red"; } // ó¹æÁý°è¼ö·®ÀÌ ¾ÈÀüÀç°í ¼ö·®º¸´Ù ¸¹À» °æ¿ì ºÓÀº ±Û¾¾·Î Ç¥½Ã if(!isNaN(safestocqty) && parseInt(safestocqty) < parseInt(delivecnfmqty)) { grd_prcpgoodcaselist.cellstyle("color", i, delivecnfmqtyCol, i, delivecnfmqtyCol) = "red"; } } grd_prcpgoodcaselist.refresh(); if (grd_prcppatcaselist.rows - grd_prcppatcaselist.fixedRows <= 0 ) return; grd_prcppatcaselist.rebuildStyle(); for(var cnt = grd_prcppatcaselist.fixedRows; cnt< grd_prcppatcaselist.rows; cnt++) { // All SIze ¹°Ç°À̸鼭 Size ÁöÁ¤ÀÌ µÇÁö ¾Ê°í ³»·Á¿Â ó¹æ if (grd_prcppatcaselist.valueMatrix( cnt, grd_prcppatcaselist.colRef("allsizeyn" )) == "Y" && grd_prcppatcaselist.valueMatrix( cnt, grd_prcppatcaselist.colRef("allsizespecid")) == "-" ) { grd_prcppatcaselist.cellstyle("background-color", cnt, grd_prcppatcaselist.colRef("rgstdd"), cnt, grd_prcppatcaselist.colRef("totqty")) = "yellow"; grd_prcppatcaselist.cellstyle("color" , cnt, grd_prcppatcaselist.colRef("rgstdd"), cnt, grd_prcppatcaselist.colRef("totqty")) = "red"; // grd_prcppatcaselist.valueMatrix( cnt, grd_prcppatcaselist.colRef("goodspec") ) = "All Size ¹ÌÁöÁ¤"; } // ó¹æ Áý°è ¿©ºÎ if (grd_prcppatcaselist.valueMatrix( cnt, grd_prcppatcaselist.colRef("sumflag"))=="Y" ) { grd_prcppatcaselist.cellstyle("background-color", cnt, grd_prcppatcaselist.colRef("sumflagnm"), cnt, grd_prcppatcaselist.colRef("sumflagnm") ) = "green"; } else{ grd_prcppatcaselist.cellstyle("background-color", cnt, grd_prcppatcaselist.colRef("sumflagnm"), cnt, grd_prcppatcaselist.colRef("sumflagnm") ) = "pink"; } if (model.getValue(grd_prcppatcaselist.nodeset + "[" + cnt + "]/allsizeyn") == "Y" ) { grd_prcppatcaselist.cellstyle("background-color", cnt, 4) = "#FFFF00"; //if (model.getValue(grd_prcppatcaselist.nodeset + "[" + cnt + "]/allsizespecid") == "-" ) { // grd_prcppatcaselist.colAttribute ( 1, "disabled" ) = true; // grd_prcppatcaselist.coldisabled(grd_prcppatcaselist.colRef("beforqty")) = true; //} //} else { // grd_reqsetlist.cellstyle("background-color", j, 5) = "transparent"; } } grd_prcppatcaselist.refresh(); } /*********************************************************** * ¹°Ç° ó¹æ Áý°è¿¡¼­ »ç¿ëÇÑ Script ************************************************************/ // ºÎ¼­ÄÚµå Àоî¿À±â... function fDeptValidationCheck(pData1, pData2, pCodeName) { if (pData1.value.length == 0) { pData2.value = ""; } else { rszfValidationCheck("TRRPZ00201", "deptcodelist", "refcond,deptnm","deptnm," + pData1.value,"", pCodeName, pData1, "SPRPZ00200", "",""); } model.refresh(); } function fSaveDeptStocList() { var updtdata = ""; updtdata = getGridUpdateData(grd_deptstoc); if(updtdata == ""){ messageBox("ÀúÀåÇÒ µ¥ÀÌŸ°¡ ","E014"); return false; } model.makeValue("/root/send/save/deptstoclist", updtdata); if (submit("TXRSD07101")){ messageBox("ÀúÀåÀÌ","I002"); fDataSearchDetail(trv_setcode.focusIndex); //btn_search.dispatch("DOMActivate"); } else { messageBox("ÀúÀå","E009"); return; } } // Ãâ°í¸¶°¨ ÀúÀå function fSaveDeptStocEnd(deptcd) { var updtdata = ""; updtdata = getGridUpdateData(grd_deptstoc); if(updtdata != ""){ messageBox("º¯°æ»çÇ×ÀÌ ÀúÀå µÇÁö ¾Ê¾Ò½À´Ï´Ù.","E"); return; } if(grd_deptstoc.rows - grd_deptstoc.fixedRows > 0) { var instcd = grd_deptstoc.valueMatrix(1,grd_deptstoc.colRef("instcd")); var acptdd = grd_deptstoc.valueMatrix(1,grd_deptstoc.colRef("acptdd")); var sumcnt = grd_deptstoc.valueMatrix(1,grd_deptstoc.colRef("sumcnt")); model.removeNodeSet("/root/send/save/delivestocend") model.makeNode("/root/send/save/delivestocend"); model.makeValue("/root/send/save/delivestocend/instcd",instcd); model.makeValue("/root/send/save/delivestocend/acptdd",acptdd); model.makeValue("/root/send/save/delivestocend/sumcnt",sumcnt); model.makeValue("/root/send/save/delivestocend/deptcd",deptcd); if (submit("TXRSD07102")){ messageBox("ÀúÀåÀÌ","I002"); fDataSearchDetail(trv_setcode.focusIndex); //btn_search.dispatch("DOMActivate"); } else { messageBox("ÀúÀå","E009"); return; } } } // Ãâ°í¸¶°¨ Ãë¼Ò function fSaveDeptStocEndCancel(deptcd) { if(grd_deptstoc.rows - grd_deptstoc.fixedRows > 0) { var instcd = grd_deptstoc.valueMatrix(1,grd_deptstoc.colRef("instcd")); var acptdd = grd_deptstoc.valueMatrix(1,grd_deptstoc.colRef("acptdd")); var sumcnt = grd_deptstoc.valueMatrix(1,grd_deptstoc.colRef("sumcnt")); model.removeNodeSet("/root/send/save/delivestocend") model.makeNode("/root/send/save/delivestocend"); model.makeValue("/root/send/save/delivestocend/instcd",instcd); model.makeValue("/root/send/save/delivestocend/acptdd",acptdd); model.makeValue("/root/send/save/delivestocend/sumcnt",sumcnt); model.makeValue("/root/send/save/delivestocend/deptcd",deptcd); if (submit("TXRSD07103")){ messageBox("ÀúÀåÀÌ","I002"); fDataSearchDetail(trv_setcode.focusIndex); //btn_search.dispatch("DOMActivate"); } else { messageBox("ÀúÀå","E009"); return; } } } // (Ä¥°î) ºÒÃâÈ®Á¤¼ö·® ÀúÀå function fSaveDeliveCnfmQtyList() { var updtdata = ""; var tarGrid = grd_prcpgoodcaselist; for(var i=tarGrid.fixedRows; i