SMRFE00200.js 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. /* ---------------------------------------------------------------------
  2. *
  3. * SMRFE00200_자산변동사항 관리
  4. *
  5. * - Version :
  6. * 1) : Ver.1.00.00
  7. * : Create By
  8. * : 2010.03.08
  9. * //이현민 20100308
  10. ---------------------------------------------------------------------- */
  11. /* -------------------------------------------------- */
  12. //mngtdeptcd
  13. function fSetMainCustLastInstallplce()
  14. {
  15. //alert("fSetMainCustLastInstallplce");
  16. model.setValue(opt_popcond.attribute("ref"),"installplce");
  17. model.setValue(opt_poptitle.attribute("ref"), "설치장소를 선택해 주세요");
  18. //rszfOpenPopUpListByWndName(opt_popinputcd,"","popinputcd,popinputnm","SMRSC03701" ,"title,cond,instcd","opt_poptitle,opt_popcond,cmb_instcd");
  19. rszfOpenPopUpListByWndName(opt_popinputcd,"","popinputcd,popinputnm","SMRFE00201" ,"title,cond,instcd","opt_poptitle,opt_popcond,cmb_instcd");
  20. model.refresh();
  21. fSetAllApply_a(grd_fixasetlist,"installplcecd,installplcenm", model.getValue(opt_popinputcd.attribute("ref")));
  22. }
  23. function fSetMainCustLastMngtdept()
  24. {
  25. //SPRPZ00200_부서코드HELP.xrw
  26. //TRRPZ00201
  27. //alert("fSetMainCustLastInstallplce");
  28. model.setValue(opt_popcond.attribute("ref"),"mngtdept");
  29. model.setValue(opt_poptitle.attribute("ref"), "사용부서를 선택해 주세요");
  30. rszfOpenPopUpListByWndName(opt_popinputcd,"","popinputcd,popinputnm","SMRFE00201" ,"title,cond,instcd","opt_poptitle,opt_popcond,cmb_instcd");
  31. model.refresh();
  32. fSetAllApply_a(grd_fixasetlist,"mngtdeptcd,mngtdeptnm", model.getValue(opt_popinputcd.attribute("ref")));
  33. }
  34. function fSetAllApply_a(f_grid, f_id , f_value)
  35. {
  36. if(f_id == null || f_id.length == 0 || f_value == null || f_value.length == 0 )return;
  37. var f_selid = f_id.split(",");
  38. var f_selvalue = f_value.split(",");
  39. //alert("eee");
  40. //alert(f_grid.selectedRows);
  41. for(currow = 0 ; currow < f_grid.selectedRows; currow++)
  42. {
  43. //alert("ccc");
  44. for (var k = 0; k < f_selid.length; k++) {
  45. //alert("bbb");
  46. if(f_grid.colRef(f_selid[k]) != -1)
  47. {
  48. //alert("aaa");
  49. if(model.getValue(f_grid.nodeset + "[" + (f_grid.selectedRow(currow)- f_grid.fixedRows + 1) + "]/" + f_selid[k]) != f_selvalue[k])
  50. {
  51. //alert(f_selvalue[k]);
  52. //model.setValue(f_grid.nodeset + "[" + (f_grid.selectedRow(currow)- f_grid.fixedRows + 1) + "]/" + f_selid[k] ,f_selvalue[k]);
  53. f_grid.valueMatrix( (f_grid.selectedRow(currow)- f_grid.fixedRows + 1), f_grid.colRef( f_selid[k] ) ) = f_selvalue[k];
  54. if(f_grid.rowStatus(f_grid.selectedRow(currow)) == "0")f_grid.rowStatus(f_grid.selectedRow(currow)) = "2";
  55. }
  56. }
  57. }
  58. }
  59. }