/* °¨¿° ¸®½ºÆ®Á¶È¸(SMMND04800.xrw - JScript ) - Version : 1) : Ver.1.00.01 */ /** * @group : * @ver : 2011.05.06 * @by : ±Ç¿µ¾Ö * @--------------------------------------------------------------------------------- * @type : function * @access : public * @desc : È­¸é ÃʱâÈ­ * @param : * @return : * @--------------------------------------------------------------------------------- */ /** * creat : 20101012 * author : ÃÖ¿øµ· * desc : ÃʱâÈ­ */ function fInitialize(){ //Á¶È¸Á¶°Ç default ¼¼ÆÃ model.removenode('/root/main/cond'); model.makeValue('/root/main/cond/srchfromdd' , getCurrentDate().toDate().getAddDate(-1, "M").getDateFormat()); //󹿽ÃÀÛÀÏ model.makeValue('/root/main/cond/srchtodd' , getCurrentDate()); //ó¹æÁ¾·áÀÏ //±×¸®µå ³ëµå ÃʱâÈ­ model.removenode('/root/main/infclist'); model.makenode('/root/main/infclist'); //**°øÅëÄÚµå °¡Á®¿À±â**// zbcfGetCodeList( new Array ( "M0145" // °¨¿°Á¾·ù , "M0146" // ¿øÀÎ±Õ , "M0147" // ¿¹ÈÄ ) , new Array ( "/root/init/M0145list" // °¨¿°Á¾·ù , "/root/init/M0146list" // ¿øÀÎ±Õ , "/root/init/M0147list" // ¿¹ÈÄ ) ); model.refresh(); } /** * @group : * @ver : 2008.06.24 * @by : ±èÁø¾Æ * @--------------------------------------------------------------------------------- * @type : function * @access : public * @desc : ±¸ºÐº° Á¶È¸Á¶°Ç ¼³Á¤ * @param : optflag : ±¸ºÐÁ¾·ù * @return : * @--------------------------------------------------------------------------------- */ function setSrchOpt(optflag){ //** ȯÀÚ º° ±¸ºÐ¿¡ µû¸¥ Á¶È¸Á¶°Ç ¼³Á¤ **// if(optflag == "patsrchflag"){ if(model.getValue("/root/main/cond/patsrchflag") == "2"){ // ȯÀÚ º° rdo_dialsrchflag.visible = false; // Åõ¼®Á¾·ùº° ¼û±â±â rdo_termsrchflag.visible = false; // ±â°£º° ¼û±â±â ipt_srchfromdd.visible = false; // Á¶È¸½ÃÀÛÀÏÀÚ ipt_srchtodd.visible = false; // Á¶È¸Á¾·áÀÏÀÚ cpt_term.visible = false; // "~" cpt_pid.visible = true; // µî·Ï¹øÈ£ ĸ¼Ç ipt_pid.visible = true; // µî·Ï¹øÈ£ input btn_patpopup.visible = true; // µ¸º¸±â ¹öư opt_hngnm.visible = true; // ȯÀÚ¸í output cpt_bar.visible = true; // "-" opt_rrgstno1.visible = true; // ÁֹιøÈ£¾ÕÀÚ¸® output opt_rrgstno2.visible = true; // ÁֹιøÈ£µÞÀÚ¸® output model.setValue("/root/main/cond/dialsrchflag", ""); // Åõ¼®Á¾·ùº° ÃʱâÈ­ model.setValue("/root/main/cond/termsrchflag", ""); // ±â°£º° ÃʱâÈ­ }else if(model.getValue("/root/main/cond/patsrchflag") == "1"){ // Àüü rdo_dialsrchflag.visible = true; // Åõ¼®Á¾·ùº° ¼û±â±â rdo_termsrchflag.visible = true; // ±â°£º° ¼û±â±â ipt_srchfromdd.visible = true; // Á¶È¸½ÃÀÛÀÏÀÚ ipt_srchtodd.visible = true; // Á¶È¸Á¾·áÀÏÀÚ cpt_term.visible = true; // "~" cpt_pid.visible = false; // µî·Ï¹øÈ£ ĸ¼Ç ipt_pid.visible = false; // µî·Ï¹øÈ£ input btn_patpopup.visible = false; // µ¸º¸±â ¹öư opt_hngnm.visible = false; // ȯÀÚ¸í output cpt_bar.visible = false; // "-" opt_rrgstno1.visible = false; // ÁֹιøÈ£¾ÕÀÚ¸® output opt_rrgstno2.visible = false; // ÁֹιøÈ£µÞÀÚ¸® output model.setValue("/root/main/cond/dialsrchflag" , "A"); // Åõ¼®Á¾·ùº°(Àüü) model.setValue("/root/main/cond/termsrchflag" , "1"); // ±â°£º° (ÃÖ±Ù4ȸ) model.setValue("/root/main/cond/pid" , "" ); // µî·Ï¹øÈ£ model.setValue("/root/main/patbaseinfo/hngnm" , "" ); // ȯÀÚ¸í model.setValue("/root/main/patbaseinfo/rrgstno1", "" ); // ÁֹιøÈ£1 model.setValue("/root/main/patbaseinfo/rrgstno2", "" ); // ÁֹιøÈ£2 rdo_dialsrchflag.refresh(); rdo_termsrchflag.refresh(); ipt_pid.refresh(); opt_hngnm.refresh(); opt_rrgstno1.refresh(); opt_rrgstno2.refresh(); } } //** ±â°£º° ±¸ºÐ¿¡ µû¸¥ Á¶È¸Á¶°Ç ¼³Á¤ **// if(optflag=="termsrchflag"){ if(model.getValue("/root/main/cond/termsrchflag") == "3"){ // Á¶È¸±â°£ ¼³Á¤ ipt_srchfromdd.disabled = false; // Á¶È¸½ÃÀÛÀÏÀÚ ipt_srchtodd.disabled = false; // Á¶È¸Á¾·áÀÏÀÚ model.setValue("/root/main/cond/srchfromdd", getCurrentDate());// Á¶È¸½ÃÀÛÀÏÀÚ model.setValue("/root/main/cond/srchtodd" , getCurrentDate());// Á¶È¸Á¾·áÀÏÀÚ }else{ // ÃÖ±Ù 4ȸ, ÃÖÁ¾È¸ ipt_srchfromdd.disabled = true; // Á¶È¸½ÃÀÛÀÏÀÚ ipt_srchtodd.disabled = true; // Á¶È¸Á¾·áÀÏÀÚ model.setValue("/root/main/cond/srchfromdd", ""); // Á¶È¸½ÃÀÛÀÏÀÚ model.setValue("/root/main/cond/srchtodd" , ""); // Á¶È¸Á¾·áÀÏÀÚ } ipt_srchfromdd.refresh(); ipt_srchtodd.refresh(); } } /** * @group : * @ver : 2011.05.09 * @by : ±Ç¿µ¾Ö * @--------------------------------------------------------------------------------- * @type : function * @access : public * @desc : °¨¿° Á¶È¸ * @param : * @return : * @--------------------------------------------------------------------------------- */ function fSrchInfcList(){ model.removenode("/root/send"); model.makeNode ("/root/send"); model.makeValue ("/root/send/reqdata/srchfromdd" , model.getValue("/root/main/cond/srchfromdd" )); // Á¶È¸½ÃÀÛÀÏÀÚ model.makeValue ("/root/send/reqdata/srchtodd" , model.getValue("/root/main/cond/srchtodd" )); // Á¶È¸Á¾·áÀÏÀÚ model.removeNodeset("/root/main/infclist"); //submit È£Ãâ if(!submit('TRMND04801')){ messageBox('Á¶È¸¸¦ ½ÇÆÐÇÏ¿´½À´Ï´Ù.', 'E999'); return; } model.refresh(); } /** * @group : * @ver : 2008.06.24 * @by : ±èÁø¾Æ * @--------------------------------------------------------------------------------- * @type : function * @access : public * @desc : KT/V List ¿¢¼¿ÀúÀå * @param : * @return : * @--------------------------------------------------------------------------------- */ function fSaveExcel() { var fileName = window.fileDialog("save", ",", false, "excel", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls"); if (fileName != ""){ grd_ktvrsltinfo.saveExcel(fileName, "SheetName", true, true, "", "", false); } } /** * @group * @ver : 2008.06.24 * @by : ±èÁø¾Æ * @--------------------------------------------------- * @type : function * @access : public * @desc : Ãâ·Â±â´É * @param : * @return : * @--------------------------------------------------- */ function fExecPrint(){ model.removenode("/root/rexreptinfo"); //** Á¶È¸Á¶°Ç ¼³Á¤ **// var srchfromdd = ipt_srchfromdd.label // ¹ß»ý½ÃÀÛÀÏÀÚ , srchtodd = ipt_srchtodd.label // ¹ß»ýÁ¾·áÀÏÀÚ model.makeValue ("/root/rexreptinfo/infclist/srchfromdd", srchfromdd); model.makeValue ("/root/rexreptinfo/infclist/srchtodd", srchtodd); for(var i = 1; i < grd_ktvrsltinfo.rows ; i++ ){ model.makeNode("/root/rexreptinfo/infclist/item["+ i +"]"); model.copyNode("/root/rexreptinfo/infclist/item["+ i +"]","/root/main/infclist/infcinfo["+ i +"]"); model.makeValue("/root/rexreptinfo/infclist/item["+ i +"]/infckindnm", grd_ktvrsltinfo.labelMatrix(i, grd_ktvrsltinfo.colRef("infckindflag"))); model.makeValue("/root/rexreptinfo/infclist/item["+ i +"]/casbacnm", grd_ktvrsltinfo.labelMatrix(i, grd_ktvrsltinfo.colRef("casbacflag"))); model.makeValue("/root/rexreptinfo/infclist/item["+ i +"]/afternm", grd_ktvrsltinfo.labelMatrix(i, grd_ktvrsltinfo.colRef("afterflag"))); } exeReportPreview("RPMND04801", "XMLSTR"); }