SMMQI00100.js 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. function fSelTree(){
  2. var index = trv_indxlist.selectedIndex + 1;
  3. var enddepthflag = model.getValue("/root/init/mastnavi/masttree["+index+"]/enddepthflag");
  4. var mastuseflag = model.getValue("/root/init/mastnavi/masttree["+index+"]/useflag");
  5. model.resetInstanceNode("/root/main");
  6. model.setValue("/root/main/cond/mastcd", trv_indxlist.value);
  7. model.setValue("/root/main/cond/masthngnm", trv_indxlist.label);
  8. model.setValue("/root/main/cond/mastuseflag", mastuseflag);
  9. if(enddepthflag == "Y"){
  10. model.setValue("/root/send/list/mastcd", trv_indxlist.value);
  11. submit("TRMQI00100");
  12. }
  13. model.refresh();
  14. }
  15. function fSave(){
  16. if(model.getValue("/root/main/cond/mappcd") != ""){
  17. if(!isRequiredControls("opt_mastcd", "opt_mastnm", "ipt_mappcd", "cmb_cdflag" , "cmb_useflag")){
  18. return;
  19. }
  20. copyNodeType("/root/send/cond", "/root/main/cond", "replace");
  21. submit("TXMQI00100");
  22. fSelTree();
  23. }
  24. else{
  25. copyNodeType("/root/send/cond", "/root/main/cond", "replace");
  26. submit("TXMQI00100");
  27. window.reload();
  28. }
  29. }
  30. function fSelList(){
  31. if(grd_list.row == "0"){
  32. return;
  33. }
  34. var seq = grd_list.valueMatrix(grd_list.row , 1);
  35. var mastcd = grd_list.valueMatrix(grd_list.row , 2);
  36. var mastnm = grd_list.valueMatrix(grd_list.row , 3);
  37. var mappcd = grd_list.valueMatrix(grd_list.row , 4);
  38. var mappengnm = grd_list.valueMatrix(grd_list.row , 5);
  39. var useflag = grd_list.valueMatrix(grd_list.row , 6);
  40. var cdflag = grd_list.valueMatrix(grd_list.row , 7);
  41. var lastupdtdt = grd_list.valueMatrix(grd_list.row , 9);
  42. model.setValue("/root/main/cond/seq" , seq );
  43. model.setValue("/root/main/cond/mastcd" , mastcd );
  44. model.setValue("/root/main/cond/masthngnm" , mastnm );
  45. model.setValue("/root/main/cond/mappcd" , mappcd );
  46. model.setValue("/root/main/cond/mappengnm" , mappengnm );
  47. model.setValue("/root/main/cond/useflag" , useflag );
  48. model.setValue("/root/main/cond/cdflag" , cdflag );
  49. model.setValue("/root/main/cond/lastupdtdt" , lastupdtdt );
  50. model.refresh();
  51. }
  52. function fSrchMapp(srchFlag, srchData){
  53. modal("../../../pam/calcscormngtweb/xrw/SMPIC00200_¼ö°¡Á¶È¸", "", "200", "200" ,"SMPIC00200_¼ö°¡Á¶È¸", "", "");
  54. mappcd = model.getValue("/root/temp/mech/calcscorcd");
  55. mappengnm = model.getValue("/root/temp/mech/engnm");
  56. model.setValue("/root/main/cond/mappcd" , mappcd );
  57. model.setValue("/root/main/cond/mappengnm" , mappengnm );
  58. model.refresh();
  59. }