123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- /* ---------------------------------------------------------------------
- *
- * 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";
- }
- }
- }
- }
- }
-
|