/* --------------------------------------------------------------------- * * SMRFE00200_Àڻ꺯µ¿»çÇ× °ü¸® * * - Version : * 1) : Ver.1.00.00 * : Create By * : 2010.03.08 * //ÀÌÇö¹Î 20100308 ---------------------------------------------------------------------- */ /* -------------------------------------------------- */ //mngtdeptcd function fSetMainCustLastInstallplce() { //alert("fSetMainCustLastInstallplce"); model.setValue(opt_popcond.attribute("ref"),"installplce"); model.setValue(opt_poptitle.attribute("ref"), "¼³Ä¡Àå¼Ò¸¦ ¼±ÅÃÇØ ÁÖ¼¼¿ä"); //rszfOpenPopUpListByWndName(opt_popinputcd,"","popinputcd,popinputnm","SMRSC03701" ,"title,cond,instcd","opt_poptitle,opt_popcond,cmb_instcd"); rszfOpenPopUpListByWndName(opt_popinputcd,"","popinputcd,popinputnm","SMRFE00201" ,"title,cond,instcd","opt_poptitle,opt_popcond,cmb_instcd"); model.refresh(); fSetAllApply_a(grd_fixasetlist,"installplcecd,installplcenm", model.getValue(opt_popinputcd.attribute("ref"))); } function fSetMainCustLastMngtdept() { //SPRPZ00200_ºÎ¼­ÄÚµåHELP.xrw //TRRPZ00201 //alert("fSetMainCustLastInstallplce"); model.setValue(opt_popcond.attribute("ref"),"mngtdept"); model.setValue(opt_poptitle.attribute("ref"), "»ç¿ëºÎ¼­¸¦ ¼±ÅÃÇØ ÁÖ¼¼¿ä"); rszfOpenPopUpListByWndName(opt_popinputcd,"","popinputcd,popinputnm","SMRFE00201" ,"title,cond,instcd","opt_poptitle,opt_popcond,cmb_instcd"); model.refresh(); fSetAllApply_a(grd_fixasetlist,"mngtdeptcd,mngtdeptnm", model.getValue(opt_popinputcd.attribute("ref"))); } function fSetAllApply_a(f_grid, f_id , f_value) { if(f_id == null || f_id.length == 0 || f_value == null || f_value.length == 0 )return; var f_selid = f_id.split(","); var f_selvalue = f_value.split(","); //alert("eee"); //alert(f_grid.selectedRows); for(currow = 0 ; currow < f_grid.selectedRows; currow++) { //alert("ccc"); for (var k = 0; k < f_selid.length; k++) { //alert("bbb"); if(f_grid.colRef(f_selid[k]) != -1) { //alert("aaa"); if(model.getValue(f_grid.nodeset + "[" + (f_grid.selectedRow(currow)- f_grid.fixedRows + 1) + "]/" + f_selid[k]) != f_selvalue[k]) { //alert(f_selvalue[k]); //model.setValue(f_grid.nodeset + "[" + (f_grid.selectedRow(currow)- f_grid.fixedRows + 1) + "]/" + f_selid[k] ,f_selvalue[k]); f_grid.valueMatrix( (f_grid.selectedRow(currow)- f_grid.fixedRows + 1), f_grid.colRef( f_selid[k] ) ) = f_selvalue[k]; if(f_grid.rowStatus(f_grid.selectedRow(currow)) == "0")f_grid.rowStatus(f_grid.selectedRow(currow)) = "2"; } } } } }