/** * @group : * @ver : 2009.12.19 * @by : ¹Ú±¸¼ø * @--------------------------------------------------- * @type : function * @access : public * @desc : È­¸éÀ» ÃʱâÈ­ ÇÑ´Ù * @param : * @return : * @--------------------------------------------------- */ function fInitalize(){ grd_abbrLists.attribute("height") = 645; model.setValue("/root/init/abbrkind","01"); var MenuParam = getScreenMenuParameter(); if ( MenuParam == "S") { model.setValue("/root/init/abbrtype","02"); radio1.dispatch("xforms-value-changed"); radio1.refresh(); fSelectAbbrMasterLists(); radio1.disabled = true; } submit("TRMRF00802"); } function fInit1(){ grd_abbrLists.attribute("height") = 645; model.removeNodeset("/root/main/abbrinfo"); model.makeNode("/root/main/abbrinfo"); model.copyNode("/root/main/abbrinfo","/root/init/abbrinfo"); } function fSelectAbbrType(){ if(radio1.value =="01"){ group2.visible = "true"; model.setValue("/root/init/abbrkind","%"); cmb_abbrkind.disabled = "false"; cmb_abbrkind.refresh(); }else{ group2.visible = "false"; model.setValue("/root/init/abbrkind","%"); cmb_abbrkind.disabled = "true"; cmb_abbrkind.refresh(); } } function fSelectAbbrNM(param){ fInit1(); model.setValue("/root/send/abbrtype" ,model.getValue("/root/init/abbrtype")); model.setValue("/root/send/abbrkind" ,model.getValue("/root/init/abbrkind")); model.setValue("/root/send/perfectyn",model.getValue("/root/init/perfectyn")); model.setValue("/root/send/useyn" ,model.getValue("/root/init/useyn")); model.setValue("/root/send/keyword",param); model.setValue("/root/send/keytag","09"); submit("TRMRT00801"); fSetGridColor(); } function fSelectAbbrMasterLists(){ model.setValue("/root/send/abbrtype" ,model.getValue("/root/init/abbrtype")); model.setValue("/root/send/abbrkind" ,model.getValue("/root/init/abbrkind")); model.setValue("/root/send/perfectyn",model.getValue("/root/init/perfectyn")); model.setValue("/root/send/useyn" ,model.getValue("/root/init/useyn")); model.setValue("/root/send/keyword" ,model.getValue("/root/init/keyword")); if(ipt_keyword.value.length < 2 && model.getValue("/root/init/perfectyn") =="N" && model.getValue("/root/init/abbrtype")=="%"){ if(model.getValue("/root/init/abbrkind")=="%"||model.getValue("/root/init/abbrkind")=="01"||model.getValue("/root/init/abbrkind")=="02"){ messageBox("°Ë»ö¾î´Â 2ÀÚ ÀÌ»ó ÀÔ·ÂÇØ¾ß °¡´É ÇÕ´Ï´Ù. ","I007");//I007=È®ÀÎÇϽʽÿÀ. return; } } if(ipt_keyword.value.length < 2 && model.getValue("/root/init/perfectyn") =="N" &&model.getValue("/root/init/abbrtype")=="01"){ if(model.getValue("/root/init/abbrkind")=="%"||model.getValue("/root/init/abbrkind")=="01"||model.getValue("/root/init/abbrkind")=="02"){ messageBox("°Ë»ö¾î´Â 2ÀÚ ÀÌ»ó ÀÔ·ÂÇØ¾ß °¡´É ÇÕ´Ï´Ù. ","I007");//I007=È®ÀÎÇϽʽÿÀ. return; } } model.setValue("/root/send/keytag" ,model.getValue("/root/init/keytag")); submit("TRMRT00801"); fSetGridColor(); } function fSetGridColor(){ var vRowCount = grd_abbrLists.Rows; for(i=0 ; i < vRowCount; i++){ if ("02"==grd_abbrLists.valueMatrix(i, 1)){ grd_abbrLists.cellstyle("color", i,1,i,6) = "#ff0000"; grd_abbrLists.cellstyle("color", i,11) = "#0066FF"; }else{ grd_abbrLists.cellstyle("color", i,1,i,6) = "#000000"; grd_abbrLists.cellstyle("color", i,11) = "#000000"; } } grd_abbrLists.refresh(); } function fSaveExecl(){ var vRowCount = grd_abbrLists.Rows; if( vRowCount <= 1){ messageBox("ÀúÀå ÇÒ Á¤º¸°¡ ¾ø½À´Ï´Ù.","I003"); }else{ var saveFileName = getCurrentDate().substr(0, 8)+"_¾à¾î°Ë»ö"; var fileName = window.fileDialog("save", ",", false, saveFileName, "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls"); if (fileName != ""){ grd_abbrLists.saveExcel(fileName); } } }