123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119 |
- /**
- * @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);
- }
- }
- }
|