SPMNR015.js 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. /*
  2. ICNP 용어 조회 팝업(SPMNR01500.xfm - JScript )
  3. - Version :
  4. 1) : Ver.1.00.01
  5. */
  6. var xRefPath = "/root/hidden/refinfo";
  7. var xICNPListPath = "/root/main/icnplist/icnpinfo";
  8. var xSendInfoPath = "/root/hidden/icnplist/icnp";
  9. /**
  10. * @group :
  11. * @ver : 2007.03.16
  12. * @by : 이은영
  13. * @---------------------------------------------------
  14. * @type : function
  15. * @access : public
  16. * @desc : 화면 초기화
  17. * @param :
  18. * @return :
  19. * @---------------------------------------------------
  20. */
  21. function fInit(){
  22. model.removenodeset(xICNPListPath);
  23. fSearch();
  24. }
  25. /**
  26. * @group :
  27. * @ver : 2007.03.16
  28. * @by : 이은영
  29. * @---------------------------------------------------
  30. * @type : function
  31. * @access : public
  32. * @desc : 조회
  33. * @param :
  34. * @return :
  35. * @---------------------------------------------------
  36. */
  37. function fSearch(){
  38. var sTerm = model.getValue(xRefPath+"/terminfo");
  39. model.removenode("/root/send");
  40. model.makeValue("/root/send/attrcnts",model.getValue(xRefPath+"/terminfo"));
  41. submit("TRMNR01501");
  42. }
  43. /**
  44. * @group :
  45. * @ver : 2007.03.16
  46. * @by : 이은영
  47. * @---------------------------------------------------
  48. * @type : function
  49. * @access : public
  50. * @desc : 팝업 호출
  51. * @param :
  52. * @return :
  53. * @---------------------------------------------------
  54. */
  55. function fPopUpCall(){
  56. // var xpos = event.screenX-800;
  57. // var ypos = event.screenY-400;
  58. var iRow = grd_icnpinfo.row;
  59. if(iRow < 1){
  60. messageBox("ICNP 매핑할 용어가","I004");
  61. return;
  62. }
  63. model.makeValue("/root/hidden/refinfo/flag","p");
  64. modal("SMMNR01200",1, 100, 100,"SMMNR01200",xRefPath,xRefPath);
  65. var sTermInfo = getParameter("terminfo");
  66. var sValue = sTermInfo.split("▦");
  67. if(sTermInfo == "") return;
  68. model.setValue(xICNPListPath+"["+iRow+"]/semantictype", sValue[0]);
  69. model.setValue(xICNPListPath+"["+iRow+"]/itemcd", sValue[1]);
  70. model.setValue(xICNPListPath+"["+iRow+"]/icnphngterm", sValue[2]);
  71. model.setValue(xICNPListPath+"["+iRow+"]/icnpengterm", sValue[3]);
  72. grd_icnpinfo.rebuild();
  73. }
  74. /**
  75. * @group :
  76. * @ver : 2007.03.16
  77. * @by : 이은영
  78. * @---------------------------------------------------
  79. * @type : function
  80. * @access : public
  81. * @desc : 항목 보내기
  82. * @param :
  83. * @return :
  84. * @---------------------------------------------------
  85. */
  86. function fSendItem(){
  87. var sRowCnt = grd_icnpinfo.rows - grd_icnpinfo.fixedrows;
  88. var iRow = 0;
  89. for(var i=1; i<= sRowCnt; i++){
  90. if(model.getValue(xICNPListPath+"["+i+"]/check") == "true"){
  91. iRow++;
  92. model.makeValue(xSendInfoPath+"["+iRow+"]","");
  93. model.makeValue(xSendInfoPath+"["+iRow+"]/flag",model.getValue(xICNPListPath+"["+i+"]/flag"));
  94. model.makeValue(xSendInfoPath+"["+iRow+"]/termnm",model.getValue(xICNPListPath+"["+i+"]/termnm"));
  95. model.makeValue(xSendInfoPath+"["+iRow+"]/termcd",model.getValue(xICNPListPath+"["+i+"]/itemcd"));
  96. }
  97. }
  98. var receiveref = model.getValue(xRefPath+"/receiveref");
  99. if(checkOpener()){
  100. model.copyNode(opener.root.hidden.recinfo.icnpinfo,root.hidden.icnplist);
  101. } else{
  102. alert("상위화면이 변경되어 데이터를 전달할 수 없습니다.");
  103. }
  104. model.close();
  105. }