/*********************************************************************************************************************************************** * create date : 2008.02.12 * author : dhkim * file name : SMMNA01020.js * desc : ³âµµº° 亰ºÎÀÛ¿ë ¸í´Ü ***********************************************************************************************************************************************/ var xDnorPath = '/root/main/dnorinfo'; var xCondPath = '/root/cond'; var xReqPath = '/root/send/reqdata'; var currentDate = getCurrentDate(); /* * ÃʱâÈ­ */ function fInit(){ model.removeNodeset(xDnorPath); model.setValue(xCondPath + '/fromdd', currentDate); var getlastDate = currentDate.substring(0, 6) + getLastDay(currentDate.substring(0, 4), currentDate.substring(4, 6)); model.setValue(xCondPath + '/todd', getlastDate); model.removenode('/root/init/L0095list'); model.makenode('/root/init/L0095list'); // zbcfGetCodeList(new Array("M0376"), new Array("/root/init/M0376list")); //Ç÷¾×Çü zbcfGetCodeList(new Array("L0095"), new Array("/root/init/L0095list")); //Á÷¾÷ÄÚµå //grd_dnorlist.extendLastCol = true; grd_dnorlist.frozencols = grd_dnorlist.colref("dnorregstno"); fSearch(); } /* * ³âµµº° 亰ºÎÀÛ¿ë ¸í´Ü¸¦ Á¶È¸ÇÑ´Ù. */ function fSearch(){ var fromdd = model.getValue(xCondPath+'/fromdd'); var todd = model.getValue(xCondPath+'/todd'); // var pidflag = model.getValue(xCondPath+'/pidflag'); // var pid = model.getValue(xCondPath+'/pid'); // var btype = model.getValue(xCondPath+'/btype'); // var kindflag = model.getValue(xCondPath+'/kindflag'); if(fromdd == '') fromdd = currentDate; if(todd == '') todd = currentDate; model.removeNodeset(xDnorPath + "/dnorlist"); model.removeNodeset(xReqPath); model.makeValue(xReqPath + '/fromdd', fromdd); model.makeValue(xReqPath + '/todd', todd); // model.makeValue(xReqPath + '/pidflag', pidflag); // model.makeValue(xReqPath + '/pid', pid); // model.makeValue(xReqPath + '/btype', btype); // model.makeValue(xReqPath + '/kindflag', kindflag); if(!submit('TRMNA01021')){ messageBox('Á¶È¸¸¦', 'E009'); } } /* * ¿¢¼¿Ãâ·Â */ function fExcel(){ var pGrd = grd_dnorlist; if (pGrd.rows > pGrd.fixedrows ) { var fileName = window.fileDialog("save", ",", false, "³âµµº°Ã¤Ç÷ºÎÀÛ¿ë¸í´Ü_"+getCurrentDate(), "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls"); if (fileName != "") { pGrd.saveExcel(fileName, "SheetName", true, true, "", "", false); messageBox("¿¢¼¿ÀúÀåÀÌ ", "I002", ""); //I002 : ¿Ï·áµÇ¾ú½À´Ï´Ù. } } else { messageBox("ÀÚ·á°¡ Á¸ÀçÇÏÁö ¾Ê½À´Ï´Ù.", "E999", ""); } } /* * ÆË¾÷ */ function fSearchPatInfo() { var flag = model.getValue("/root/cond/pidflag"); var vPid = ""; if (flag =="") return; switch (flag) { case "1": // °ø¿©ÀÚÆË¾÷ //¸¸µé¾î¾ßÇÔ break; case "2": // ȯÀÚÆË¾÷ vPid = model.getValue("/root/cond/pid"); //ÆË¾÷Á¶°Ç¼³Á¤ model.removenode("/root/temp/pid"); model.makeValue("/root/temp/pid", vPid); //ÆË¾÷È£Ãâ modal("SPPMC02500", "1","150", "150", "SPPMC02500", "/root/temp", "/root/cond"); //¸®Åϰª if (model.getValue("/root/main/popupendflag") == "ok") { var ipid = model.getValue("/root/main/patinfo/patinfolist/pid"); var ihngnm = model.getValue("/root/main/patinfo/patinfolist/hngnm"); var irrgstno= model.getValue("/root/main/patinfo/patinfolist/rrgstno1") + "-" + model.getValue("/root/main/patinfo/patinfolist/rrgstno2") ; model.setValue("/root/cond/pid", ipid ); model.setValue("/root/cond/pidnm", ihngnm ); model.setValue("/root/cond/rrgstno", irrgstno ); model.refresh(); } break; } }