/* ¾à¾î Á¶È¸(SMMNR01600.xfm - JScript ) - Version : 1) : Ver.1.00.01 */ var xAbbrListPath = "/root/main/abbr/abbrlist"; // ¾à¾îÁ¶È¸ abbrlist Type var xCondPath = "/root/main/cond"; /** * @group : * @ver : 2007.03.21 * @by : ½ÅÇõÃá * @--------------------------------------------------- * @type : function * @access : public * @desc : È­¸é ÃʱâÈ­ * @param : * @return : * @--------------------------------------------------- */ function fInit(){ model.makeValue("/root/hidden/uid/children/wid","SPMNR02700"); model.setValue(xCondPath+"/codeflog","%"); fSearch("abbrlisttype"); } /** * @group : * @ver : 2007.03.21 * @by : ½ÅÇõÃá * @--------------------------------------------------- * @type : function * @access : public * @desc : °£È£¾à¾î Á¶È¸ ( * @param : pFlag ( abbrlisttype : ¾à¾îÁ¶È¸ abbr Type Á¶È¸) * @return : * @--------------------------------------------------- */ function fSearch(pFlag){ if(pFlag == "abbrlisttype" || pFlag=="%"){ //¾Õ¿¡ pFlag´Â È­¸éóÀ½¿ÀÇ½à ¿À´Â °ªÀÌ°í µÚ¿¡ pFlag°ªÀº Àüü¼±ÅÃÈÄ °Ë»ö½Ã ¿À´Â °ªÀ» üũ model.removenodeset(xAbbrListPath); model.removenode("/root/send"); model.makeValue("/root/send/flag","smnttype"); ipt_termnm.value=""; ipt_termnm.refresh(); if(submit("TRMNR01601")){ var RowCnt = grd_care.rows - grd_care.fixedRows; if(RowCnt > 0){ grd_care.row = 1; } } }else if (pFlag=="1" || pFlag=="2"){ //¾Õ¿¡ pFlag´Â Çѱۼ±ÅÃÈÄ °Ë»ö½Ã ¿À´Â °ªÀÌ°í µÚ¿¡ pFlag°ªÀº ¿µ¹®¼±ÅÃÈÄ °Ë»ö½Ã ¿À´Â °ªÀ» üũ model.removenode("/root/send"); model.makeValue("/root/send/termnm",model.getValue(xCondPath+"/termnm")); model.makeValue("/root/send/codeflog",model.getValue(xCondPath+"/codeflog")); termnm = model.getValue(xCondPath+"/termnm"); codeflog = model.getValue(xCondPath+"/codeflog"); if(submit("TRMNR01604")){ var RowCnt = grd_care.rows - grd_care.fixedRows; if(RowCnt > 0){ grd_care.row = 1; } } } } /** * @group : * @ver : 2007.03.22 * @by : ½ÅÇõÃá * @--------------------------------------------------- * @type : function * @access : public * @desc : ±×¸®µå Ŭ¸¯½Ã.. * @param : * @return : * @--------------------------------------------------- */ function fClicedGrid(){ var idx = 0; var iRow = -1; var localcd = ""; if(idx == 0){ iRow = grd_care.row; if(iRow < 1) return; model.removenode("/root/send"); model.makeValue("/root/send/supcd",model.getValue(xAbbrListPath+"["+iRow+"]/supcd")); model.makeValue("/root/send/todd",model.getValue(xAbbrListPath+"["+iRow+"]/todd")); model.makeValue("/root/send/reprlocalcd",model.getValue(xAbbrListPath+"["+iRow+"]/reprlocalcd")); supcd = model.getValue(xAbbrListPath+"["+iRow+"]/supcd"); todd = model.getValue(xAbbrListPath+"["+iRow+"]/todd"); reprlocalcd = model.getValue(xAbbrListPath+"["+iRow+"]/reprlocalcd"); } if (supcd=="********"){ if(submit("TRMNR01603")){ model.setValue("/root/main/abbr/abbrlist",supcd); model.setValue("/root/main/abbr/abbrlist",todd); model.setValue("/root/main/abbr/abbrlist",reprlocalcd); opt_cnptid1.value=""; opt_cnptid1.refresh(); } }else{ if(submit("TRMNR01602")){ model.setValue("/root/main/abbr/abbrlist",supcd); model.setValue("/root/main/abbr/abbrlist",todd); model.setValue("/root/main/abbr/abbrlist",reprlocalcd); var re = "/root/main/abbrdetl/abbrdetllist"; } } }