123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116 |
- /*
-
- ICNP 용어 조회 팝업(SPMNR01500.xfm - JScript )
- - Version :
- 1) : Ver.1.00.01
- */
-
- var xRefPath = "/root/hidden/refinfo";
- var xICNPListPath = "/root/main/icnplist/icnpinfo";
- var xSendInfoPath = "/root/hidden/icnplist/icnp";
- /**
- * @group :
- * @ver : 2007.03.16
- * @by : 이은영
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 화면 초기화
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fInit(){
- model.removenodeset(xICNPListPath);
- fSearch();
- }
- /**
- * @group :
- * @ver : 2007.03.16
- * @by : 이은영
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 조회
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fSearch(){
- var sTerm = model.getValue(xRefPath+"/terminfo");
-
- model.removenode("/root/send");
- model.makeValue("/root/send/attrcnts",model.getValue(xRefPath+"/terminfo"));
- submit("TRMNR01501");
- }
- /**
- * @group :
- * @ver : 2007.03.16
- * @by : 이은영
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 팝업 호출
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fPopUpCall(){
- // var xpos = event.screenX-800;
- // var ypos = event.screenY-400;
- var iRow = grd_icnpinfo.row;
-
- if(iRow < 1){
- messageBox("ICNP 매핑할 용어가","I004");
- return;
- }
- model.makeValue("/root/hidden/refinfo/flag","p");
- modal("SMMNR01200",1, 100, 100,"SMMNR01200",xRefPath,xRefPath);
- var sTermInfo = getParameter("terminfo");
- var sValue = sTermInfo.split("▦");
- if(sTermInfo == "") return;
-
- model.setValue(xICNPListPath+"["+iRow+"]/semantictype", sValue[0]);
- model.setValue(xICNPListPath+"["+iRow+"]/itemcd", sValue[1]);
- model.setValue(xICNPListPath+"["+iRow+"]/icnphngterm", sValue[2]);
- model.setValue(xICNPListPath+"["+iRow+"]/icnpengterm", sValue[3]);
- grd_icnpinfo.rebuild();
- }
- /**
- * @group :
- * @ver : 2007.03.16
- * @by : 이은영
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 항목 보내기
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fSendItem(){
- var sRowCnt = grd_icnpinfo.rows - grd_icnpinfo.fixedrows;
- var iRow = 0;
- for(var i=1; i<= sRowCnt; i++){
- if(model.getValue(xICNPListPath+"["+i+"]/check") == "true"){
- iRow++;
- model.makeValue(xSendInfoPath+"["+iRow+"]","");
- model.makeValue(xSendInfoPath+"["+iRow+"]/flag",model.getValue(xICNPListPath+"["+i+"]/flag"));
- model.makeValue(xSendInfoPath+"["+iRow+"]/termnm",model.getValue(xICNPListPath+"["+i+"]/termnm"));
- model.makeValue(xSendInfoPath+"["+iRow+"]/termcd",model.getValue(xICNPListPath+"["+i+"]/itemcd"));
- }
- }
- var receiveref = model.getValue(xRefPath+"/receiveref");
- if(checkOpener()){
- model.copyNode(opener.root.hidden.recinfo.icnpinfo,root.hidden.icnplist);
- } else{
- alert("상위화면이 변경되어 데이터를 전달할 수 없습니다.");
- }
- model.close();
- }
|