/* --------------------------------------------------------------------- * * SMRFE00200_Àڻ꺯µ¿»çÇ× °ü¸® * * - Version : * 1) : Ver.1.00.00 * : Create By * : 2010.03.08 * //ÀÌÇö¹Î 20100308 ---------------------------------------------------------------------- */ var selectedTab = "MultiEdit"; function fInitialize() { model.resetInstanceNode("/root/send"); misfGridInit(grd_fixasetlist); misfGridInit(grd_chgnhistlist); misfGridInit(grd_histlist); //ÀÌÇö¹ÎÃß°¡-20100224 model.refresh(); rszfGoodFlagListByPgmGubn(cmb_goodflag_search,"2","N"); addComboItem( "cmb_goodflag_search", "- Àü ü -", "", "above" ); misfComboComCdListMulti("C0048,R0044,R0044,R0044,R0047,R0035,R0044,R0044,R0044", "cmb_instcd,grd_fixasetexcellist.histupdtflag,grd_chgnhistlist.updtflag,cmb_cron_updtflag,grd_chgnhistlist.curncyunit,grd_fixasetlist.prodplce,chk_dsplflag_search,grd_histlist.updtflag,grd_fixasetlist.dsplflag"); addComboItem( "chk_dsplflag_search", "Àüü", "A", "below" ); chk_dsplflag_search.value = "A"; // ´ëºÐ·ù ÄÚµå ÄÞº¸ ¼³Á¤. rszfLMSComboList("FIX_ALL", "", "", "cmb_lrgcd_search", "", "L", "Y", "Y"); rszfLMSComboList("FIX_ALL", "ALL", "", "cmb_mdlcd_search", "", "M", "Y", "Y"); cmb_goodflag_search.dispatch("xforms-value-changed"); //¹°Ç°±¸ºÐ¿¡ µû¸¥ ±×¸®µå Ãâ·Â Æû ¼³Á¤. fGridGoodflagCheck(); //¹°Ç°±¸ºÐ ¼³Á¤ (ºñǰ) model.setValue(cmb_instcd.attribute("ref"), getUserInfo("dutplceinstcd")); // ±â°ü ¼³Á¤ misfMsterDetailSet(grd_chgnhistlist, null, "TRRFE00201", "Y"); misfMsterDetailSet(grd_fixasetlist, null, "TRRFC00202", "N"); grd_chgnhistlist.selectionmode = "list"; grd_fixasetlist.selectionMode = "list"; btn_multi.dispatch("DOMActivate"); model.refresh(); } function fGridGoodflagCheck() { if(cmb_goodflag_search.value == 'EQ') { grd_fixasetlist.colHidden(grd_fixasetlist.colRef("goodflaghngnm")) = true; grd_fixasetlist.colHidden(grd_fixasetlist.colRef("goodflagengnm")) = false; grd_fixasetlist.colHidden(grd_fixasetlist.colRef("forgncurncyamt")) = false; grd_fixasetlist.colHidden(grd_fixasetlist.colRef("curncyunit")) = false; } else { grd_fixasetlist.colHidden(grd_fixasetlist.colRef("goodflaghngnm")) = false; grd_fixasetlist.colHidden(grd_fixasetlist.colRef("goodflagengnm")) = true; grd_fixasetlist.colHidden(grd_fixasetlist.colRef("forgncurncyamt")) = true; grd_fixasetlist.colHidden(grd_fixasetlist.colRef("curncyunit")) = true; } grd_fixasetlist.refresh(); } function fsearch() { if(!isRequiredControls("cmb_instcd")) return; model.makeValue("/root/send/fixasetlist/queryflag", " "); //misfGridInit(grd_chgnhistlist); //misfGridInit(grd_fixasetlist); misfGridInit(grd_histlist); if(submit("TRRFC00202",false)) { var gridNode = instance1.selectNodes(grd_fixasetlist.nodeset); var resultNode = instance1.selectNodes("/root/temp/searchresult/fixaset/fixasetlist"); if(model.getValue(chk_addsearch.attribute("ref")) == "Y" && gridNode != null && gridNode.length > 0) { if(resultNode != null && resultNode.length > 0) { for(var i=0; i 0) { model.makeNode(grd_fixasetlist.nodeset); copyNodesetType(grd_fixasetlist.nodeset, "/root/temp/searchresult/fixaset/fixasetlist","replace"); } } grd_fixasetlist.refresh(); if(grd_fixasetlist.rows != grd_fixasetlist.fixedRows) { grd_fixasetlist.row = grd_fixasetlist.fixedRows; grd_fixasetlist.dispatch("onrowchanged"); grd_fixasetlist.select(grd_fixasetlist.row, grd_fixasetlist.colRef("goodflaghngnm")) = true; } } } function fsearch_excel() { if(!isRequiredControls("cmb_instcd")) return; if(!isRequiredControls("cmb_goodflag_search")) return; model.makeValue("/root/send/fixasetlist/queryflag", "H"); misfGridInit(grd_chgnhistlist); submit("TRRFC00209"); model.refresh(); } function fSave() { var updtdata = getGridUpdateData(grd_chgnhistlist); if (updtdata == "") { messageBox("º¯°æµÈ µ¥ÀÌÅͰ¡","I004"); return; } if(!checkKeyColumn("grd_chgnhistlist")) return; misfSave("TXRFE00201"); //btn_search.dispatch("DOMActivate"); if (model.getValue(gvErrorMsgPath + "/type") != "error" ) btn_search.dispatch("DOMActivate"); } // ºÎ¸ð À©µµ¿ì¿¡¼­ ³Ñ°Ü ¹ÞÀº °ªÀ» ÄÁÆ®·Ñ¿¡ ¼¼ÆÃ function fGetdata() { var sCheck = ""; var sInstcd = model.getValue("/root/temp/instcd"); var sFixasetcd = model.getValue("/root/temp/fixasetcd"); var sInstallplcecd = model.getValue("/root/temp/installplcecd"); var sInstallplcenm = model.getValue("/root/temp/installplcenm"); var sGoodspec = model.getValue("/root/temp/goodspec"); var sMngtno = model.getValue("/root/temp/mngtno"); var sCntrdeptcd = model.getValue("/root/temp/cntrdeptcd"); var sCntrdeptnm = model.getValue("/root/temp/cntrdeptnm"); var sPossndd = model.getValue("/root/temp/possndd"); var sPossnamt = model.getValue("/root/temp/possnamt"); if(sInstcd != "") cmb_instcd.value = model.getValue("/root/temp/instcd"); if(sFixasetcd != "") { ipt_fixasetcd.value = model.getValue("/root/temp/fixasetcd"); model.setValue(cmb_goodflag_search.attribute("ref"), model.getValue("/root/temp/fixasetcd").substr(0,1) ); ipt_fixasetcd.dispatch("xforms-value-changed"); } // if(sInstallplcecd != "") // ipt_installplcecd.value = model.getValue("/root/temp/installplcecd"); // // if(sInstallplcenm != "") // opt_installplcenm.value = model.getValue("/root/temp/installplcenm"); // // if(sGoodspec != "") // ipt_goodspec.value = model.getValue("/root/temp/goodspec"); // // if(sMngtno != "") // ipt_mngtno.value = model.getValue("/root/temp/mngtno"); // // if(sCntrdeptcd != "") // ipt_cntrdeptcd.value = model.getValue("/root/temp/cntrdeptcd"); // // if(sCntrdeptnm != "") // opt_cntrdeptcd.value = model.getValue("/root/temp/cntrdeptnm"); // // if(sPossndd != "") // ipt_possndd.value = model.getValue("/root/temp/possndd"); // // if(sPossnamt != "") // ipt_possnamt.value = model.getValue("/root/temp/possnamt"); // // if(sMngtno == "") if(sFixasetcd != "") btn_search.dispatch("DOMActivate"); } function fViewListSetting() { grp_setlist.visible = true; } function fSetSelectList() { var updtdd = model.getValue("/root/temp/cron/updtdd"); var updtflag = model.getValue("/root/temp/cron/updtflag"); var mngtdeptcd = model.getValue("/root/temp/cron/mngtdeptcd"); var mngtdeptnm = model.getValue("/root/temp/cron/mngtdeptnm"); var installplcecd = model.getValue("/root/temp/cron/installplcecd"); var installplcenm = model.getValue("/root/temp/cron/installplcenm"); for(var idx = 0; idx