/* - ¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì Áø·á - »ç¸Áµî·Ï ( SMMRD01000_Áø·á»ç¸Áµî·Ï.xrw - JScript ) - Version : 1) : Ver.1.00.01 - ¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì */ var instcd = ""; var pid = ""; var userid = ""; var deptcd = ""; var ordtype =""; /** * @desc : ÆûÃʱâÈ­ * @ * @param : * @return : * @--------------------------------------------------- */ function fFormInit(){ // ±â°üÄÚµå, »ç¿ëÀÚID, °úÄÚµå instcd = getUserInfo("posinstcd"); userid = getUserInfo("userid"); //deptcd = getUserInfo("posdeptcd"); deptcd = getUserInfo("dutplcecd"); // ¼±ÅÃȯÀÚÁ¤º¸ var node = getGlobalVariable("paminfo"); model.removeNodeset("/root/main/paminfo/list"); setCSVToNode("/root/main/paminfo", node); // ȯÀÚµî·Ï¹øÈ£ pid = model.getValue("/root/main/paminfo/list/pid"); if (pid == "") { messageBox("¼±ÅÃµÈ È¯ÀÚÁ¤º¸°¡","I004"); window.close(); return; } ordtype = model.getValue("/root/main/paminfo/list/ioflag"); model.setValue("/root/send/reqdata/instcd" , instcd); model.setValue("/root/send/reqdata/pid" , pid); // ºÎ¼­ÄÚµå ÄÞº¸Á¶È¸ zbcfGetDeptCodeList(instcd, "orduseyn", "D", "/root/init/deptlist", "depthngnm"); model.refresh(); // ȯÀÚÀÇ »ç¸Á¿©ºÎ Á¶È¸ submit("TRMRD01001"); //°áÇÙÀ¸·Î ÀÎÇÑ Áø´ÜÀÌ ÀÖ´ÂÁö¿Í Á¦ÀÏ ÃÖ±ÙÀÇ Áø´Ü¸íÀ» °Ë»öÇÑ´Ù. submit("TRMRD01099"); var tubechkyn=model.getValue("/root/main/tubeinfo/dethpattube/chkyn"); //°áÇÙÀ¸·Î Áø´ÜÀÌ ÀÖ´ÂÁö ¿©ºÎ üũ var diagcd=model.getValue("/root/main/tubeinfo/tubepatdiag/diagcd"); //Á¦ÀÏ ÃÖ±Ù Áø´ÜÄÚµå var termengnm=model.getValue("/root/main/tubeinfo/tubepatdiag/termengnm"); //Á¦ÀÏ ÃÖ±Ù Áø´Ü¸í(¿µ¹®) model.makeValue("/root/main/orddethpat/ioflag", "I"); model.makeValue("/root/main/orddethpat/pid", pid); if(model.getValue("/root/main/dethpat/dethyn")=="Y"){ fOrdDethPat();//»ç¸Á³»¿ª Á¶È¸ }else{ //2012/09/10 Start if(tubechkyn=="Y"){ var push_btn=messageBox("°áÇÙÀ¸·Î ÀÎÇÑ »ç¸ÁÀԴϱî? °áÇÙ »ç¸ÁÀ¸·Î µî·Ï", "S001", ""); //¿¹:6 ¾Æ´Ï¿À:7 Ãë¼Ò:2 if(push_btn=="6"){ model.makeValue("/root/main/orddethpat/ioflag", "T"); btn_tube.dispatch("onclick"); if(diagcd!="" && termengnm!=""){ model.setValue("/root/main/tdeth/indirecdethcd", diagcd); model.setValue("/root/main/tdeth/indirecdeth", termengnm); } } } btn_dethcncl.disabled = true; //2012/09/10 End } model.refresh(); } /** * @desc : Áø·á - »ç¸Á³»¿ª Á¶È¸ * @ * @param : * @return : * @--------------------------------------------------- */ function fOrdDethPat(){ // Áø·á - »ç¸Á³»¿ª Á¶È¸ submit("TRMRD01002"); var dethyn = model.getValue("/root/main/orddethpat/dethyn"); // »ç¸Á¿©ºÎ var dethdd = model.getValue("/root/main/orddethpat/dethdd"); // »ç¸ÁÀÏÀÚ var dethtm = model.getValue("/root/main/orddethpat/dethtm"); // »ç¸Á½Ã°£ var ioflag = model.getValue("/root/main/orddethpat/ioflag"); // ¿ø³»(I), ¿ø¿Ü(O), °áÇÙ(T) var inerflag = model.getValue("/root/main/orddethpat/inerflag"); // ÀÔ¿ø(I), ÀÀ±Þ½Ç(E) if (inerflag == "") { inerflag = "I" } var indirecdethcd = model.getValue("/root/main/orddethpat/indirecdethcd"); // Á÷Á¢»çÀÎ var indirecdeth = model.getValue("/root/main/orddethpat/indirecdeth"); // Á÷Á¢»çÀÎ var inbasedethcd = model.getValue("/root/main/orddethpat/inbasedethcd"); // Áß°£¼±Çà»çÀÎ var inbasedeth = model.getValue("/root/main/orddethpat/inbasedeth"); // Áß°£¼±Çà»çÀÎ var inmeddethcd = model.getValue("/root/main/orddethpat/inmeddethcd"); // ¼±Çà»çÀÎ var inmeddeth = model.getValue("/root/main/orddethpat/inmeddeth"); // ¼±Çà»çÀÎ var outestmdethcd = model.getValue("/root/main/orddethpat/outestmdethcd"); // ÃßÁ¤»çÀÎ var outestmdeth = model.getValue("/root/main/orddethpat/outestmdeth"); // ÃßÁ¤»çÀÎ var outdethplce = model.getValue("/root/main/orddethpat/outdethplce"); // »ç¸ÁÀå¼Ò var dethdeptcd = model.getValue("/root/main/orddethpat/dethdeptcd"); // µî·ÏºÎ¼­ var cnclid = model.getValue("/root/main/orddethpat/cnclid"); // Ãë¼ÒÀÚID var cncldt = model.getValue("/root/main/orddethpat/cncldt"); // Ãë¼ÒÀϽà var dethresn = model.getValue("/root/main/orddethpat/dethresn"); // °áÇÙ»ç¸Á½Ã Á÷Á¢»çÀÎ if (ioflag == "O") { //¿ø¿Ü »ç¸Á btn_outdeth.dispatch("onclick"); model.toggle("case_outdeth"); // »ç¸ÁÀÏÀÚ, »ç¸Á½Ã°£ model.setValue("/root/main/odeth/dethdd", dethdd); model.setValue("/root/main/odeth/dethtm", dethtm); // ÃßÁ¤»çÀÎ model.setValue("/root/main/odeth/outestmdethcd", outestmdethcd); model.setValue("/root/main/odeth/outestmdeth", outestmdeth); // »ç¸ÁÀå¼Ò model.setValue("/root/main/odeth/outdethplce", outdethplce); // µî·ÏºÎ¼­ model.setValue("/root/main/odeth/dethdeptcd", dethdeptcd); } else if (ioflag == "I") { //¿ø³» »ç¸Á btn_indeth.dispatch("onclick"); model.toggle("case_indeth"); // »ç¸ÁÀÏÀÚ, »ç¸Á½Ã°£ model.setValue("/root/main/ideth/dethdd", dethdd); model.setValue("/root/main/ideth/dethtm", dethtm); // ±¸ºÐ - ÀÔ¿ø(I), ÀÀ±Þ½Ç(E) model.setValue("/root/main/ideth/inerflag", inerflag); // Á÷Á¢»çÀÎ model.setValue("/root/main/ideth/indirecdethcd", indirecdethcd); model.setValue("/root/main/ideth/indirecdeth", indirecdeth); // Áß°£¼±Çà»çÀÎ model.setValue("/root/main/ideth/inbasedethcd", inbasedethcd); model.setValue("/root/main/ideth/inbasedeth", inbasedeth); // ¼±Çà»çÀÎ model.setValue("/root/main/ideth/inmeddethcd", inmeddethcd); model.setValue("/root/main/ideth/inmeddeth", inmeddeth); } else if(ioflag == "T"){ //°áÇÙ »ç¸Á btn_tube.dispatch("onclick"); model.toggle("case_tubedeth"); // »ç¸ÁÀÏÀÚ, »ç¸Á½Ã°£ model.setValue("/root/main/tdeth/dethdd", dethdd); model.setValue("/root/main/tdeth/dethtm", dethtm); // ±¸ºÐ - ÀÔ¿ø(I), ÀÀ±Þ½Ç(E) model.setValue("/root/main/tdeth/inerflag", inerflag); // Áúº´ÄÚµå model.setValue("/root/main/tdeth/indirecdethcd", indirecdethcd); model.setValue("/root/main/tdeth/indirecdeth", indirecdeth); //Á÷Á¢»çÀÎ model.setValue("/root/main/tdeth/dethresn", dethresn); } /* 2012/09/10 Start else { btn_indeth.dispatch("onclick"); model.toggle("case_indeth"); // ±¸ºÐ - ÀÔ¿ø(I), ÀÀ±Þ½Ç(E) model.setValue("/root/main/ideth/inerflag", "I"); // »ç¸ÁÀÏÀÚ, »ç¸Á½Ã°£ model.setValue("/root/main/ideth/dethdd", getCurrentDate()); model.setValue("/root/main/ideth/dethtm", getCurrentTime()); // »ç¸ÁÀÏÀÚ, »ç¸Á½Ã°£ model.setValue("/root/main/odeth/dethdd", getCurrentDate()); model.setValue("/root/main/odeth/dethtm", getCurrentTime()); // µî·ÏºÎ¼­ model.setValue("/root/main/odeth/dethdeptcd", deptcd); // ¹öưó¸® btn_dethregt.disabled = false; btn_dethcncl.disabled = true; } */ // »ç¸ÁÃë¼ÒÀÎ °æ¿ì - Ãë¼ÒÁ¤º¸ if (cnclid != "") { var cnclinfo = "»ç¸ÁÃë¼Ò : (" + cncldt.toDate("YYYYMMDDhhmm").getDateFormat("YYYY/MM/DD hh:mm") + ")"; model.makeValue("/root/main/dethpat/cnclinfo", cnclinfo); model.refresh(); //ioflag = ""; } model.refresh(); } /** * @desc : »ç¸Áµî·Ï * @ * @param : * @return : * @--------------------------------------------------- */ function fSaveDethPat(){ var ioflag = model.getValue("/root/main/orddethpat/ioflag"); // ¿ø³»(I), ¿ø¿Ü(O), °áÇÙ(T) if (ioflag == "O") {//¿ø¿Ü »ç¸Á var dethdd = model.getValue("/root/main/odeth/dethdd"); // »ç¸ÁÀÏÀÚ var dethtm = model.getValue("/root/main/odeth/dethtm"); // »ç¸Á½Ã°£ var outestmdethcd = model.getValue("/root/main/odeth/outestmdethcd"); // ÃßÁ¤»çÀÎ var outdethplce = model.getValue("/root/main/odeth/outdethplce"); // »ç¸ÁÀå¼Ò model.setValue("/root/main/orddethpat/dethdd", dethdd); // »ç¸ÁÀÏÀÚ model.setValue("/root/main/orddethpat/dethtm", dethtm); // »ç¸Á½Ã°£ model.setValue("/root/main/orddethpat/inerflag", ""); // ÀÔ¿ø(I), ÀÀ±Þ½Ç(E) model.setValue("/root/main/orddethpat/indirecdethcd", ""); // Á÷Á¢»çÀÎ model.setValue("/root/main/orddethpat/inbasedethcd", ""); // Áß°£¼±Çà»çÀÎ model.setValue("/root/main/orddethpat/inmeddethcd", ""); // ¼±Çà»çÀÎ model.setValue("/root/main/orddethpat/outestmdethcd", outestmdethcd); // ÃßÁ¤»çÀÎ model.setValue("/root/main/orddethpat/outdethplce", outdethplce); // »ç¸ÁÀå¼Ò model.setValue("/root/main/orddethpat/dethdeptcd", deptcd); // µî·ÏºÎ¼­ model.setValue("/root/main/orddethpat/cnclid", ""); // Ãë¼ÒÀÚID model.setValue("/root/main/orddethpat/cncldt", ""); // Ãë¼ÒÀϽà } else if (ioflag == "I") {//¿ø³»»ç¸Á var dethdd = model.getValue("/root/main/ideth/dethdd"); // »ç¸ÁÀÏÀÚ var dethtm = model.getValue("/root/main/ideth/dethtm"); // »ç¸Á½Ã°£ var inerflag = model.getValue("/root/main/ideth/inerflag"); // ÀÔ¿ø(I), ÀÀ±Þ½Ç(E) var indirecdethcd = model.getValue("/root/main/ideth/indirecdethcd"); // Á÷Á¢»çÀÎ var inbasedethcd = model.getValue("/root/main/ideth/inbasedethcd"); // Áß°£¼±Çà»çÀÎ var inmeddethcd = model.getValue("/root/main/ideth/inmeddethcd"); // ¼±Çà»çÀÎ model.setValue("/root/main/orddethpat/dethdd", dethdd); // »ç¸ÁÀÏÀÚ model.setValue("/root/main/orddethpat/dethtm", dethtm); // »ç¸Á½Ã°£ model.setValue("/root/main/orddethpat/inerflag", inerflag); // ÀÔ¿ø(I), ÀÀ±Þ½Ç(E) model.setValue("/root/main/orddethpat/indirecdethcd", indirecdethcd); // Á÷Á¢»çÀÎ model.setValue("/root/main/orddethpat/inbasedethcd", inbasedethcd); // Áß°£¼±Çà»çÀÎ model.setValue("/root/main/orddethpat/inmeddethcd", inmeddethcd); // ¼±Çà»çÀÎ model.setValue("/root/main/orddethpat/outestmdethcd", ""); // ÃßÁ¤»çÀÎ model.setValue("/root/main/orddethpat/outdethplce", ""); // »ç¸ÁÀå¼Ò model.setValue("/root/main/orddethpat/dethdeptcd", deptcd); // µî·ÏºÎ¼­ model.setValue("/root/main/orddethpat/cnclid", ""); // Ãë¼ÒÀÚID model.setValue("/root/main/orddethpat/cncldt", ""); // Ãë¼ÒÀϽà // 2008.01.16. ÀÔ¿øÈ¯ÀÚÀÎ °æ¿ì ¿ø¹«Å° ¼ÂÇÏ¿© ÀÔ¿ø³»¿ª¿¡ »ç¸ÁÀϽà ¾÷µ¥ÀÌÆ® Çϱâ... var indd = model.getValue("/root/main/paminfo/list/indd"); var cretno = model.getValue("/root/main/paminfo/list/cretno"); var seqno = model.getValue("/root/main/paminfo/list/seqno"); model.makeValue("/root/main/orddethpat/indd" , indd); // ¿ø¹«Å° model.makeValue("/root/main/orddethpat/cretno" , cretno); // ¿ø¹«Å° model.makeValue("/root/main/orddethpat/seqno" , seqno); // ¿ø¹«Å° }else if (ioflag == "T") { // °áÇÙ»ç¸Á var dethdd = model.getValue("/root/main/tdeth/dethdd"); // »ç¸ÁÀÏÀÚ var dethtm = model.getValue("/root/main/tdeth/dethtm"); // »ç¸Á½Ã°£ var inerflag = model.getValue("/root/main/tdeth/inerflag"); // ÀÔ¿ø(I), ÀÀ±Þ½Ç(E) var indirecdethcd = model.getValue("/root/main/tdeth/indirecdethcd"); // Á÷Á¢»çÀÎ var dethresn = model.getValue("/root/main/tdeth/dethresn"); // Á÷Á¢»çÀÎ model.setValue("/root/main/orddethpat/dethdd", dethdd); // »ç¸ÁÀÏÀÚ model.setValue("/root/main/orddethpat/dethtm", dethtm); // »ç¸Á½Ã°£ model.setValue("/root/main/orddethpat/inerflag", inerflag); // ÀÔ¿ø(I), ÀÀ±Þ½Ç(E) model.setValue("/root/main/orddethpat/indirecdethcd", indirecdethcd); // Á÷Á¢»çÀÎ model.setValue("/root/main/orddethpat/outestmdethcd", ""); // ÃßÁ¤»çÀÎ model.setValue("/root/main/orddethpat/outdethplce", ""); // »ç¸ÁÀå¼Ò model.setValue("/root/main/orddethpat/dethdeptcd", deptcd); // µî·ÏºÎ¼­ model.setValue("/root/main/orddethpat/cnclid", ""); // Ãë¼ÒÀÚID model.setValue("/root/main/orddethpat/cncldt", ""); // Ãë¼ÒÀϽà model.makeValue("/root/main/orddethpat/dethresn", dethresn); // Ãë¼ÒÀϽà model.makeValue("/root/main/orddethpat/ordtype", ordtype); // ¿ø¹«Å° ¼öÁøÇüÅ // 2008.01.16. ÀÔ¿øÈ¯ÀÚÀÎ °æ¿ì ¿ø¹«Å° ¼ÂÇÏ¿© ÀÔ¿ø³»¿ª¿¡ »ç¸ÁÀϽà ¾÷µ¥ÀÌÆ® Çϱâ... var indd =""; if(model.getValue("/root/main/paminfo/list/ioflag")=="O" || model.getValue("/root/main/paminfo/list/ioflag")=="S"){ indd = model.getValue("/root/main/paminfo/list/orddd"); }else if(model.getValue("/root/main/paminfo/list/ioflag")=="E" || model.getValue("/root/main/paminfo/list/ioflag")=="I"){ indd = model.getValue("/root/main/paminfo/list/indd"); } //var indd = model.getValue("/root/main/paminfo/list/indd"); var cretno = model.getValue("/root/main/paminfo/list/cretno"); var seqno = model.getValue("/root/main/paminfo/list/seqno"); model.makeValue("/root/main/orddethpat/indd" , indd); // ¿ø¹«Å° model.makeValue("/root/main/orddethpat/cretno" , cretno); // ¿ø¹«Å° model.makeValue("/root/main/orddethpat/seqno" , seqno); // ¿ø¹«Å° } model.makeValue("/root/main/orddethpat/dethyn", "Y"); // »ç¸Á¿©ºÎ model.refresh(); // ȯÀÚ»ç¸ÁÁ¤º¸ copy... model.copyNode("/root/send/orddepthpat","/root/main/orddethpat"); model.refresh(); if(!fSaveCheck()){ if(submit("TXMRD01001")){ btn_dethcncl.disabled = false; } }else{ return; } // Áø·á - »ç¸Á³»¿ª Á¶È¸ fOrdDethPat(); } /** * @desc : »ç¸ÁÃë¼Ò * @ * @param : * @return : * @--------------------------------------------------- */ function fCancleDethPat(){ // 2008.01.16. ÀÔ¿øÈ¯ÀÚÀÎ °æ¿ì ¿ø¹«Å° ¼ÂÇÏ¿© ÀÔ¿ø³»¿ª¿¡ »ç¸ÁÀϽà ¾÷µ¥ÀÌÆ® Çϱâ... var indd =""; if(model.getValue("/root/main/paminfo/list/ioflag")=="O" || model.getValue("/root/main/paminfo/list/ioflag")=="S"){ indd = model.getValue("/root/main/paminfo/list/orddd"); }else if(model.getValue("/root/main/paminfo/list/ioflag")=="E" || model.getValue("/root/main/paminfo/list/ioflag")=="I"){ indd = model.getValue("/root/main/paminfo/list/indd"); } // var indd = model.getValue("/root/main/paminfo/list/indd"); var cretno = model.getValue("/root/main/paminfo/list/cretno"); var seqno = model.getValue("/root/main/paminfo/list/seqno"); model.makeValue("/root/main/orddethpat/indd" , indd); // ¿ø¹«Å° model.makeValue("/root/main/orddethpat/cretno" , cretno); // ¿ø¹«Å° model.makeValue("/root/main/orddethpat/seqno" , seqno); // ¿ø¹«Å° model.setValue("/root/main/orddethpat/cnclid", userid); // Ãë¼ÒÀÚID model.setValue("/root/main/orddethpat/cncldt", getCurrentDate() + getCurrentTime()); // Ãë¼ÒÀϽà model.makeValue("/root/main/orddethpat/dethyn", "N"); // »ç¸Á¿©ºÎ model.makeValue("/root/main/orddethpat/dethdd", "99991231"); // »ç¸ÁÀÏÀÚ model.makeValue("/root/main/orddethpat/dethtm", "595959"); // »ç¸Á½Ã°£ model.refresh(); // ȯÀÚ»ç¸ÁÁ¤º¸ copy... model.copyNode("/root/send/orddepthpat","/root/main/orddethpat"); model.refresh(); submit("TXMRD01001"); // Áø·á - »ç¸Á³»¿ª Á¶È¸ fOrdDethPat(); } /** * @desc : Áø´Ü ÆË¾÷ * @ * @param : * @return : * @--------------------------------------------------- */ function fClickPopUp(flag){ var instance = document.models(0).instances(0); // selectdiaglist var nodelistTemp = instance.selectNodes("/root/temp/selectdiaglist"); for (var i=1 ; i <= nodelistTemp.length ; i++) { model.destroy("/root/temp/selectdiaglist["+ i +"]"); } model.refresh(); modal("../../../emr/prcpmngtweb/xrw/SPMMO03200_Áø´ÜÆË¾÷.xrw", 1, 0, 0, "", "", ""); var sTmpdiagcd = ""; var sTmpdiagengnm = ""; var nodelistTemp = instance.selectNodes("/root/temp/selectdiaglist"); if(nodelistTemp.length >= 1){ sTmpdiagcd = model.getValue("/root/temp/selectdiaglist[1]/diagcd"); sTmpdiagengnm = model.getValue("/root/temp/selectdiaglist[1]/diagengnm"); if (flag == "1") { model.setValue("/root/main/ideth/indirecdethcd", sTmpdiagcd); model.setValue("/root/main/ideth/indirecdeth", sTmpdiagengnm); } else if (flag == "2") { model.setValue("/root/main/ideth/inbasedethcd", sTmpdiagcd); model.setValue("/root/main/ideth/inbasedeth", sTmpdiagengnm); } else if (flag == "3") { model.setValue("/root/main/ideth/inmeddethcd", sTmpdiagcd); model.setValue("/root/main/ideth/inmeddeth", sTmpdiagengnm); } else if (flag == "4") { model.setValue("/root/main/odeth/outestmdethcd", sTmpdiagcd); model.setValue("/root/main/odeth/outestmdeth", sTmpdiagengnm); } else if (flag == "5") { model.setValue("/root/main/tdeth/indirecdethcd", sTmpdiagcd); model.setValue("/root/main/tdeth/indirecdeth", sTmpdiagengnm); } model.refresh(); } } /** * * */ function fSaveCheck(){ var ioflag = model.getValue("/root/main/orddethpat/ioflag"); if(ioflag=="O"){ var dethdd = model.getValue("/root/main/odeth/dethdd"); // »ç¸ÁÀÏÀÚ var dethtm = model.getValue("/root/main/odeth/dethtm"); // »ç¸Á½Ã°£ if(dethdd=="" || dethtm==""){ messageBox ( "»ç¸Á ÃßÁ¤ ÀϽø¦ ", "C001" ); return true; } var currentdt = getCurrentDate() + getCurrentTime(); if(currentdt < (dethdd + dethtm)) { messageBox ( "¹Ì·¡ ÀϽ÷Π»ç¸ÁÀ» µî·ÏÇϽǼö", "I004" ); return true; } return false; }else if(ioflag=="I"){ var dethdd = model.getValue("/root/main/ideth/dethdd"); // »ç¸ÁÀÏÀÚ var dethtm = model.getValue("/root/main/ideth/dethtm"); // »ç¸Á½Ã°£ if(dethdd=="" || dethtm==""){ messageBox ( "»ç¸ÁÀϽø¦ ", "C001" ); return true; } var currentdt = getCurrentDate() + getCurrentTime(); if(currentdt < (dethdd + dethtm)) { messageBox ( "¹Ì·¡ ÀϽ÷Π»ç¸ÁÀ» µî·ÏÇϽǼö", "I004" ); return true; } return false; }else if(ioflag=="T"){ var dethdd = model.getValue("/root/main/tdeth/dethdd"); // »ç¸ÁÀÏÀÚ var dethtm = model.getValue("/root/main/tdeth/dethtm"); // »ç¸Á½Ã°£ var indirecdethcd = model.getValue("/root/main/tdeth/indirecdethcd"); //Áúº´ÄÚµå var dethresn = model.getValue("/root/main/tdeth/dethresn"); //Á÷Á¢»çÀÎ var currentdt = getCurrentDate() + getCurrentTime(); if(dethdd=="" || dethtm==""){ messageBox ( "»ç¸ÁÀϽø¦ ", "C001" ); return true; } if(indirecdethcd==""){ messageBox ( "Áúº´Äڵ带 ", "C001" ); return true; } if(dethresn==""){ messageBox ( "Á÷Á¢»çÀÎÀ» ", "C001" ); return true; } if(currentdt < (dethdd + dethtm)) { messageBox ( "¹Ì·¡ ÀϽ÷Π»ç¸ÁÀ» µî·ÏÇÏ½Ç ¼ö", "I004" ); return true; } return false; } }