/* Åð¿øÁøÇà ÇöȲ°ü¸®(SMMNW12700.xrw - JScript ) - Version : 1) : Ver.1.00.01 */ var dschPatlistPath = "/root/main/dschprcsprescondinfo/dschprcsprescondlist"; // Åð¿øÁøÇàȯÀÚ¸®½ºÆ® °æ·Î(id=grd_dschpatlist) /** * @group : * @ver : 2008.07.02 * @by : ±èÁø¾Æ * @--------------------------------------------------- * @type : function * @access : public * @desc : È­¸é Ãʱ⼳Á¤ * @param : * @return : * @--------------------------------------------------- */ function fInitSetup(){ //** ±×¸®µå ÃʱâÈ­ **// model.removeNodeset("/root/main/dschprcsprescondinfo"); btn_outrmcncl.disabled = true; // Åð½ÇÃë¼Ò¹öư ºñȰ¼ºÈ­ btn_outrmupdt.disabled = true; // ÀúÀåĿư ºñȰ¼ºÈ­ //** °øÅëÄÚµå °¡Á®¿À±â **// zbcfGetCodeList( new Array ("M0481") // Åð½ÇÁö¿¬»çÀ¯ , new Array ("/root/main/codelist/M0481list")); //** Á¶È¸Á¶°Ç ÃʱâÈ­ **// model.makeValue("/root/main/cond/wardcd" , getUserInfo("dutplcecd")); // º´µ¿ (·Î±×ÀÎ °£È£»çÀÇ ¼Ò¼Óº´µ¿ÄÚµå) model.makeValue("/root/main/cond/fromdd" , getCurrentDate() ); // Á¶È¸ÀÏÀÚ(ÇöÀçÀÏÀÚ) model.makeValue("/root/main/cond/todd" , getCurrentDate() ); // Á¶È¸ÀÏÀÚ(ÇöÀçÀÏÀÚ) model.makeValue("/root/main/cond/srchopt", "1"); // ±¸ºÐ(1:Åð½ÇÀü,2:Åð½ÇÈÄ,3:Àüü) grd_dschpatlist.fixedcellcheckbox(0, grd_dschpatlist.colRef("check")) = true; // ±×¸®µåÀÇ Àüü¼±Åà üũ¹Ú½º »ý¼º fSettingRN(); // º´µ¿,³»È¯ÀÚ ¸®½ºÆ® Á¶È¸ } /** * @group : * @ver : 2008.07.02 * @by : ±èÁø¾Æ * @--------------------------------------------------- * @type : function * @access : public * @desc : º´µ¿,³»È¯ÀÚ ¸®½ºÆ® Á¶È¸ * @param : * @return : * @--------------------------------------------------- */ function fSettingRN(){ model.removenode("/root/send"); model.makeValue ("/root/send/reqdata/wardcd" , model.getValue("/root/main/cond/wardcd")); model.makeValue ("/root/send/reqdata/wardlistopt" , "A"); // º´µ¿¸®½ºÆ®Á¶È¸¿É¼Ç(A:[Àüü]Æ÷ÇÔ) submit("TRMNW00101"); if(cmb_wardcd.label == ""){ model.makeValue("/root/main/cond/wardcd", "All"); cmb_wardcd.refresh(); } model.setValue("/root/main/cond/settingrnid", ""); for(i = 1; i <= getNodesetCount("/root/init/settingrn"); i++ ) { if(model.getValue("/root/main/cond/userid") == model.getValue("/root/init/settingrn["+ i +"]/settingrnid")) { model.setValue("/root/main/cond/settingrnid", model.getValue("/root/main/cond/userid")); } } } /** * @group : * @ver : 2008.07.02 * @by : ±èÁø¾Æ * @--------------------------------------------------------------------------------- * @type : function * @access : public * @desc : ȯÀÚÁ¤º¸ Á¶È¸ ÆË¾÷ * @param : * @return : * @--------------------------------------------------------------------------------- */ function fSearchPatinfoPop() { model.makeValue("/root/temp/send/pid" , model.getValue("/root/main/cond/pid")); model.makeValue("/root/temp/send/srchcond", "1"); modal("SPPMC02500", 1, 150, 150, "SPPMC02500", "/root/temp/send", "/root/send"); if(model.getValue("/root/main/popupendflag")=="ok"){ model.setValue("/root/main/cond/pid", model.getValue("/root/main/patinfo/patinfolist/pid")); }else{ model.setValue("/root/main/cond/pid", ""); } ipt_pid.refresh(); } /** * @group : * @ver : 2008.07.09 * @by : ±èÁø¾Æ * @--------------------------------------------------------------------------------- * @type : function * @access : public * @desc : Åð¿ø¿¹°íȯÀÚ¿©ºÎ È®ÀÎ * @param : * @return : Y/N * @--------------------------------------------------------------------------------- */ function fGetDschPatYN() { var dschYN=""; model.removenode("/root/send"); model.makeValue ("/root/send/reqdata/pid" , model.getValue("/root/main/cond/pid")); model.makeValue ("/root/send/reqdata/fromdd", model.getValue("/root/main/cond/fromdd")); model.makeValue ("/root/send/reqdata/todd", model.getValue("/root/main/cond/todd")); model.removeNodeset("/root/main/chklist"); submit("TRMNW12702"); if(getNodesetCount("/root/main/chklist/chkinfo")>0){ dschYN = model.getValue("/root/main/chklist/chkinfo/dschpatyn"); // Åð¿ø¿¹°í¿©ºÎ model.makeValue ("/root/main/cond/wardcd", model.getValue("/root/main/chklist/chkinfo/wardcd")); // ÇØ´çȯÀÚÀÇ º´µ¿¼ÂÆÃ }else{ dschYN = 'N'; } return dschYN; } /** * @group : * @ver : 2008.07.07 * @by : ±èÁø¾Æ * @--------------------------------------------------------------------------------- * @type : function * @access : public * @desc : Åð¿øÁøÇàȯÀÚ¸®½ºÆ® Á¶È¸ * @param : * @return : * @--------------------------------------------------------------------------------- */ function fSrchDschPrcsPatList() { // ÇʼöÁ¶È¸Á¶°Ç üũ if(model.getValue("/root/main/cond/wardcd")=="" && model.getValue("/root/main/cond/pid")==""){ messageBox("º´µ¿Àº", "I003", "º´µ¿¼±Åà ÈÄ ´Ù½Ã ½ÃµµÇϽʽÿÀ."); model.setFocus("cmb_wardcd"); return; } if(model.getValue("/root/main/cond/fromdd")=="" || model.getValue("/root/main/cond/todd")==""){ messageBox("Á¶È¸ÀÏÀÚ´Â", "I003", "Á¶È¸ÀÏÀÚ ÀÔ·Â ÈÄ ´Ù½Ã ½ÃµµÇϽʽÿÀ."); model.setFocus("ipt_fromdd"); return; } if(model.getValue("/root/main/cond/fromdd") == model.getValue("/root/main/cond/todd")) { //Á¶È¸±â°£ÀÌ °°À»¶§¸¸ Åð½Ç,Åð½ÇÃë¼Ò,ÀúÀåÀÌ È°¼ºÈ­µÈ´Ù. btn_outrm.disabled = false; btn_outrmcncl.disabled = false; btn_outrmupdt.disabled = false; } else { btn_outrm.disabled = true; btn_outrmcncl.disabled = true; btn_outrmupdt.disabled = true; } model.removenode("/root/send"); model.makeNode ("/root/send"); model.makeValue ("/root/send/reqdata/wardcd" , model.getValue("/root/main/cond/wardcd") ); // º´µ¿ model.makeValue ("/root/send/reqdata/fromdd" , model.getValue("/root/main/cond/fromdd") ); // Á¶È¸ÀÏÀÚ(Åð¿ø¿¹Á¤ÀÏ) model.makeValue ("/root/send/reqdata/todd" , model.getValue("/root/main/cond/todd") ); // Á¶È¸ÀÏÀÚ(Åð¿ø¿¹Á¤ÀÏ) model.makeValue ("/root/send/reqdata/settingrnid" , model.getValue("/root/main/cond/settingrnid")); // ³»È¯ÀÚ model.makeValue ("/root/send/reqdata/pid" , model.getValue("/root/main/cond/pid") ); // µî·Ï¹øÈ£ model.makeValue ("/root/send/reqdata/srchopt" , model.getValue("/root/main/cond/srchopt") ); // ±¸ºÐ(1:Åð½ÇÀü,2:Åð½ÇÈÄ,3:Àüü) model.removeNodeset("/root/main/dschprcsprescondinfo"); submit("TRMNW12701"); grd_dschpatlist.fixedcellischeck(0, grd_dschpatlist.colRef("check")) = false; // Àüü¼±Åà üũ¹Ú½º ÃʱâÈ­ //** Åð¿ø¿¹°íµî·ÏÀÏÀÚ°¡ ´çÀÏ ÀÌÀüÀÎ °æ¿ì ¼¿»ö»óº¯°æ **// grd_dschpatlist.allstyle( "all", "background-color" ) = "white"; var dschdclrdd ; for(var i=1; i='" + dschdclrdd + "']"; } // µî·Ï¹øÈ£·Î Á¶È¸ ½Ã if(model.getValue("/root/main/cond/pid")!=""){ model.setValue("/root/main/cond/srchopt","3"); // Àüü btn_outrm.disabled = true; // Åð½Ç¹öư ºñȰ¼ºÈ­ btn_outrmcncl.disabled = true; // Åð½ÇÃë¼Ò¹öư ºñȰ¼ºÈ­ btn_outrmupdt.disabled = true; // ÀúÀåĿư ºñȰ¼ºÈ­ model.setValue("/root/main/cond/wardcd", model.getValue("/root/main/dschprcsprescondinfo/dschprcsprescondlist[1]/wardcd")); } model.refresh(); } /** * @group : * @ver : 2008.07.08 * @by : ±èÁø¾Æ * @--------------------------------------------------------------------------------- * @type : function * @access : public * @desc : üũ¹Ú½º¼±ÅÃ, Åð½ÇÁ¤º¸ÀԷ¿¡ µû¸¥ ±×¸®µå ¼³Á¤ * @param : * @return : * @--------------------------------------------------------------------------------- */ function fSetGrdStat() { var iRow = grd_dschpatlist.row-1; var iCol = grd_dschpatlist.col; // üũ¹Ú½º ¼±Åà ½Ã if(iRow > 0 && iCol == 0){ if(grd_dschpatlist.valueMatrix(iRow+1, grd_dschpatlist.colRef("check")) == "true"){ // üũ¹Ú½º ¼±Åà ½Ã model.makeValue(dschPatlistPath + "[" + iRow + "]/rmouttm" , getCurrentTime().substr(0,4)); if(getCurrentTime().substr(0,4) < "1100"){ model.makeValue(dschPatlistPath + "[" + iRow + "]/rmoutdelyresn", "01"); // Åð½ÇÁö¿¬»çÀ¯("01":Åð½Ç) } model.makeValue(dschPatlistPath + "[" + iRow + "]/status" , "u"); }else if(grd_dschpatlist.valueMatrix(iRow+1, grd_dschpatlist.colRef("check")) == "false"){ // üũ¹Ú½º ¼±Åà Ãë¼Ò ½Ã model.makeValue(dschPatlistPath + "[" + iRow + "]/rmouttm" , ""); model.makeValue(dschPatlistPath + "[" + iRow + "]/rmoutdelyresn", ""); // Åð½ÇÁö¿¬»çÀ¯ model.makeValue(dschPatlistPath + "[" + iRow + "]/status" , ""); } } // Åð½Ç½Ã°£ ÀÔ·Â ½Ã if(iRow > 0 && iCol == grd_dschpatlist.colRef("rmouttm")) { var rmouttm = model.getValue(dschPatlistPath + "[" + iRow + "]/rmouttm"); // Åð½Ç½Ã°£ var rmoutdelyresn = model.getValue(dschPatlistPath + "[" + iRow + "]/rmoutdelyresn"); // Åð½ÇÁö¿¬»çÀ¯ if(rmouttm != ""){ model.makeValue(dschPatlistPath + "[" + iRow + "]/check" , "true"); model.makeValue(dschPatlistPath + "[" + iRow + "]/status", "u"); if(rmouttm < "1059" && rmouttm > "0000"){ model.makeValue(dschPatlistPath + "[" + iRow + "]/rmoutdelyresn", "01"); // Åð½ÇÁö¿¬»çÀ¯("01":Åð½Ç) } if( rmoutdelyresn == "01"){ messageBox("Åð½Ç½Ã°£ÀÌ 00:00~10:59ÀÏ ¶§¿¡¸¸ Åð½ÇÁö¿¬»çÀ¯¸¦\nÅð½Ç·Î","C002"); model.setValue("/root/main/dschprcsprescondinfo/dschprcsprescondlist["+ iRow +"]/rmoutdelyresn",""); model.setValue("/root/main/dschprcsprescondinfo/dschprcsprescondlist["+ iRow +"]/rmouttm",""); grd_dschpatlist.refresh(); return; } }else{ model.makeValue(dschPatlistPath + "[" + iRow + "]/check" , "false"); model.makeValue(dschPatlistPath + "[" + iRow + "]/status", ""); } } if( iRow > 0 && iCol == grd_dschpatlist.colRef("rmoutdelyresn") ) { if(model.getValue("/root/main/dschprcsprescondinfo/dschprcsprescondlist["+ (grd_dschpatlist.row-1) +"]/rmouttm") == "" ){ messageBox("Åð½Ç½Ã°£À» ¸ÕÀú","C001"); model.setValue("/root/main/dschprcsprescondinfo/dschprcsprescondlist["+ (grd_dschpatlist.row-1) +"]/rmoutdelyresn",""); grd_dschpatlist.refresh(); return; } var rmouttm = model.getValue("/root/main/dschprcsprescondinfo/dschprcsprescondlist["+ (grd_dschpatlist.row-1) +"]/rmouttm"); if(rmouttm > "1059" && model.getValue("/root/main/dschprcsprescondinfo/dschprcsprescondlist["+ (grd_dschpatlist.row-1) +"]/rmoutdelyresn") == "01"){ messageBox("Åð½Ç½Ã°£ÀÌ 00:00~10:59ÀÏ ¶§¿¡¸¸ Åð½ÇÁö¿¬»çÀ¯¸¦\nÅð½Ç·Î","C002"); model.setValue("/root/main/dschprcsprescondinfo/dschprcsprescondlist["+ (grd_dschpatlist.row-1) +"]/rmoutdelyresn",""); grd_dschpatlist.refresh(); return; } } grd_dschpatlist.refresh(); } /** * @group : * @ver : 2008.07.08 * @by : ±èÁø¾Æ * @--------------------------------------------------------------------------------- * @type : function * @access : public * @desc : Åð½ÇÁ¤º¸ÀúÀå * @param : setFlag("U":Åð½Ç,ÀúÀå,"D":Åð½ÇÃë¼Ò) * @return : * @--------------------------------------------------------------------------------- */ function fSaveOutRmInfo(setFlag) { var cnt=0; if(setFlag=="D"){ // Åð½ÇÃë¼Ò for(var i=0;i0 && grd_dschpatlist.mouseCol==19) { // Åð½ÇÁö¿¬»çÀ¯ Ä÷³¿¡¼­ ¸¶¿ì½º Ŭ¸¯ ½Ã¸¸ if (event.button == 3) { var i; //** ¿À¸¥ÂÊ ÆË¾÷¸Þ´º ¼³Á¤ **// var rmouttm; model.removeNodeset("root/main/poplist"); if(model.getValue(dschPatlistPath + "[" + (grd_dschpatlist.row-1) + "]/rmouttm") != ""){ // Åð½Ç½Ã°£ ÀԷµǾî ÀÖÀ» °æ¿ì rmouttm = model.getValue(dschPatlistPath + "[" + (grd_dschpatlist.row-1) + "]/rmouttm"); }else{ // Åð½Ç½Ã°£ ÀԷµǾî ÀÖÁö ¾ÊÀ» °æ¿ì rmouttm = getCurrentTime().substr(0,4); } if(rmouttm !=""){ // 11½ÃÀÌÀü : "Åð½Ç¸¸" if(rmouttm<"1100"){ i = 1; model.makeValue("/root/main/poplist/outrmdelyresnpopinfo/menu["+i+"]/name" ,model.getValue("/root/main/codelist/M0481list/M0481["+i+"]/cdnm")); // Åð½ÇÁö¿¬»çÀ¯ ¸ñ·Ï ¼³Á¤ model.makeValue("/root/main/poplist/outrmdelyresnpopinfo/menu["+i+"]/func" ,"fSetDelyResnCd"+model.getValue("/root/main/codelist/M0481list/M0481["+i+"]/cdid")); // È£ÃâÇÔ¼öÁöÁ¤ i++; } // 11½ÃÀÌÈÄ : "Åð½Ç¸¸»©°í" else{ for(i=1;i="1100"){ model.makeValue(dschPatlistPath + "[" + (grd_dschpatlist.selectedRow(i)-1) + "]/rmoutdelyresn","02"); model.makeValue(dschPatlistPath + "[" + (grd_dschpatlist.selectedRow(i)-1) + "]/rmoutdelyresnrmk",""); // Åð½ÇÁö¿¬»çÀ¯±âŸ } } grd_dschpatlist.refresh(); } function fSetDelyResnCd03(){ for (i = 0; i < grd_dschpatlist.selectedRows; i++) { fSetRmOutTm(grd_dschpatlist.selectedRow(i)-1); // Åð½Ç½Ã°£¼³Á¤ if(model.getValue(dschPatlistPath + "[" + (grd_dschpatlist.selectedRow(i)-1) + "]/rmouttm")>="1100"){ model.makeValue(dschPatlistPath + "[" + (grd_dschpatlist.selectedRow(i)-1) + "]/rmoutdelyresn","03"); model.makeValue(dschPatlistPath + "[" + (grd_dschpatlist.selectedRow(i)-1) + "]/rmoutdelyresnrmk",""); // Åð½ÇÁö¿¬»çÀ¯±âŸ } } grd_dschpatlist.refresh(); } function fSetDelyResnCd04(){ for (i = 0; i < grd_dschpatlist.selectedRows; i++) { fSetRmOutTm(grd_dschpatlist.selectedRow(i)-1); // Åð½Ç½Ã°£¼³Á¤ if(model.getValue(dschPatlistPath + "[" + (grd_dschpatlist.selectedRow(i)-1) + "]/rmouttm")>="1100"){ model.makeValue(dschPatlistPath + "[" + (grd_dschpatlist.selectedRow(i)-1) + "]/rmoutdelyresn","04"); model.makeValue(dschPatlistPath + "[" + (grd_dschpatlist.selectedRow(i)-1) + "]/rmoutdelyresnrmk",""); // Åð½ÇÁö¿¬»çÀ¯±âŸ } } grd_dschpatlist.refresh(); } function fSetDelyResnCd05(){ for (i = 0; i < grd_dschpatlist.selectedRows; i++) { fSetRmOutTm(grd_dschpatlist.selectedRow(i)-1); // Åð½Ç½Ã°£¼³Á¤ if(model.getValue(dschPatlistPath + "[" + (grd_dschpatlist.selectedRow(i)-1) + "]/rmouttm")>="1100"){ model.makeValue(dschPatlistPath + "[" + (grd_dschpatlist.selectedRow(i)-1) + "]/rmoutdelyresn","05"); model.makeValue(dschPatlistPath + "[" + (grd_dschpatlist.selectedRow(i)-1) + "]/rmoutdelyresnrmk",""); // Åð½ÇÁö¿¬»çÀ¯±âŸ } } grd_dschpatlist.refresh(); } function fSetDelyResnCd06(){ for (i = 0; i < grd_dschpatlist.selectedRows; i++) { fSetRmOutTm(grd_dschpatlist.selectedRow(i)-1); // Åð½Ç½Ã°£¼³Á¤ if(model.getValue(dschPatlistPath + "[" + (grd_dschpatlist.selectedRow(i)-1) + "]/rmouttm")>="1100"){ model.makeValue(dschPatlistPath + "[" + (grd_dschpatlist.selectedRow(i)-1) + "]/rmoutdelyresn","06"); model.makeValue(dschPatlistPath + "[" + (grd_dschpatlist.selectedRow(i)-1) + "]/rmoutdelyresnrmk",""); // Åð½ÇÁö¿¬»çÀ¯±âŸ } } grd_dschpatlist.refresh(); } function fSetDelyResnCd07(){ for (i = 0; i < grd_dschpatlist.selectedRows; i++) { fSetRmOutTm(grd_dschpatlist.selectedRow(i)-1); // Åð½Ç½Ã°£¼³Á¤ if(model.getValue(dschPatlistPath + "[" + (grd_dschpatlist.selectedRow(i)-1) + "]/rmouttm")>="1100"){ model.makeValue(dschPatlistPath + "[" + (grd_dschpatlist.selectedRow(i)-1) + "]/rmoutdelyresn","07"); model.makeValue(dschPatlistPath + "[" + (grd_dschpatlist.selectedRow(i)-1) + "]/rmoutdelyresnrmk",""); // Åð½ÇÁö¿¬»çÀ¯±âŸ } } grd_dschpatlist.refresh(); } function fSetDelyResnCd08(){ for (i = 0; i < grd_dschpatlist.selectedRows; i++) { fSetRmOutTm(grd_dschpatlist.selectedRow(i)-1); // Åð½Ç½Ã°£¼³Á¤ if(model.getValue(dschPatlistPath + "[" + (grd_dschpatlist.selectedRow(i)-1) + "]/rmouttm")>="1100"){ model.makeValue(dschPatlistPath + "[" + (grd_dschpatlist.selectedRow(i)-1) + "]/rmoutdelyresn","08"); model.makeValue(dschPatlistPath + "[" + (grd_dschpatlist.selectedRow(i)-1) + "]/rmoutdelyresnrmk",""); // Åð½ÇÁö¿¬»çÀ¯±âŸ } } grd_dschpatlist.refresh(); } function fSetDelyResnCd09(){ for (i = 0; i < grd_dschpatlist.selectedRows; i++) { fSetRmOutTm(grd_dschpatlist.selectedRow(i)-1); // Åð½Ç½Ã°£¼³Á¤ if(model.getValue(dschPatlistPath + "[" + (grd_dschpatlist.selectedRow(i)-1) + "]/rmouttm")>="1100"){ model.makeValue(dschPatlistPath + "[" + (grd_dschpatlist.selectedRow(i)-1) + "]/rmoutdelyresn","09"); model.makeValue(dschPatlistPath + "[" + (grd_dschpatlist.selectedRow(i)-1) + "]/rmoutdelyresnrmk",""); // Åð½ÇÁö¿¬»çÀ¯±âŸ } } grd_dschpatlist.refresh(); } function fSetDelyResnCd10(){ for (i = 0; i < grd_dschpatlist.selectedRows; i++) { fSetRmOutTm(grd_dschpatlist.selectedRow(i)-1); // Åð½Ç½Ã°£¼³Á¤ if(model.getValue(dschPatlistPath + "[" + (grd_dschpatlist.selectedRow(i)-1) + "]/rmouttm")>="1100"){ model.makeValue(dschPatlistPath + "[" + (grd_dschpatlist.selectedRow(i)-1) + "]/rmoutdelyresn","10"); model.makeValue(dschPatlistPath + "[" + (grd_dschpatlist.selectedRow(i)-1) + "]/rmoutdelyresnrmk",""); // Åð½ÇÁö¿¬»çÀ¯±âŸ } } grd_dschpatlist.refresh(); } function fSetDelyResnCd11(){ for (i = 0; i < grd_dschpatlist.selectedRows; i++) { fSetRmOutTm(grd_dschpatlist.selectedRow(i)-1); // Åð½Ç½Ã°£¼³Á¤ if(model.getValue(dschPatlistPath + "[" + (grd_dschpatlist.selectedRow(i)-1) + "]/rmouttm")>="1100"){ model.makeValue(dschPatlistPath + "[" + (grd_dschpatlist.selectedRow(i)-1) + "]/rmoutdelyresn","11"); model.makeValue(dschPatlistPath + "[" + (grd_dschpatlist.selectedRow(i)-1) + "]/rmoutdelyresnrmk",""); // Åð½ÇÁö¿¬»çÀ¯±âŸ } } grd_dschpatlist.refresh(); } function fSetDelyResnCd12(){ for (i = 0; i < grd_dschpatlist.selectedRows; i++) { fSetRmOutTm(grd_dschpatlist.selectedRow(i)-1); // Åð½Ç½Ã°£¼³Á¤ if(model.getValue(dschPatlistPath + "[" + (grd_dschpatlist.selectedRow(i)-1) + "]/rmouttm")>="1100"){ model.makeValue(dschPatlistPath + "[" + (grd_dschpatlist.selectedRow(i)-1) + "]/rmoutdelyresn","12"); model.makeValue(dschPatlistPath + "[" + (grd_dschpatlist.selectedRow(i)-1) + "]/rmoutdelyresnrmk",""); // Åð½ÇÁö¿¬»çÀ¯±âŸ } } grd_dschpatlist.refresh(); } function fSetDelyResnCd13(){ for (i = 0; i < grd_dschpatlist.selectedRows; i++) { fSetRmOutTm(grd_dschpatlist.selectedRow(i)-1); // Åð½Ç½Ã°£¼³Á¤ if(model.getValue(dschPatlistPath + "[" + (grd_dschpatlist.selectedRow(i)-1) + "]/rmouttm")>="1100"){ model.makeValue(dschPatlistPath + "[" + (grd_dschpatlist.selectedRow(i)-1) + "]/rmoutdelyresn","13"); model.makeValue(dschPatlistPath + "[" + (grd_dschpatlist.selectedRow(i)-1) + "]/rmoutdelyresnrmk",""); // Åð½ÇÁö¿¬»çÀ¯±âŸ } } grd_dschpatlist.refresh(); } function fSetDelyResnCd14(){ for (i = 0; i < grd_dschpatlist.selectedRows; i++) { fSetRmOutTm(grd_dschpatlist.selectedRow(i)-1); // Åð½Ç½Ã°£¼³Á¤ if(model.getValue(dschPatlistPath + "[" + (grd_dschpatlist.selectedRow(i)-1) + "]/rmouttm")>="1100"){ model.makeValue(dschPatlistPath + "[" + (grd_dschpatlist.selectedRow(i)-1) + "]/rmoutdelyresn","14"); model.makeValue(dschPatlistPath + "[" + (grd_dschpatlist.selectedRow(i)-1) + "]/rmoutdelyresnrmk",""); // Åð½ÇÁö¿¬»çÀ¯±âŸ } } grd_dschpatlist.refresh(); } function fSetDelyResnCd15(){ for (i = 0; i < grd_dschpatlist.selectedRows; i++) { fSetRmOutTm(grd_dschpatlist.selectedRow(i)-1); // Åð½Ç½Ã°£¼³Á¤ if(model.getValue(dschPatlistPath + "[" + (grd_dschpatlist.selectedRow(i)-1) + "]/rmouttm")>="1100"){ model.makeValue(dschPatlistPath + "[" + (grd_dschpatlist.selectedRow(i)-1) + "]/rmoutdelyresn","15"); model.makeValue(dschPatlistPath + "[" + (grd_dschpatlist.selectedRow(i)-1) + "]/rmoutdelyresnrmk",""); // Åð½ÇÁö¿¬»çÀ¯±âŸ } } grd_dschpatlist.refresh(); } function fSetDelyResnCd16(){ for (i = 0; i < grd_dschpatlist.selectedRows; i++) { fSetRmOutTm(grd_dschpatlist.selectedRow(i)-1); // Åð½Ç½Ã°£¼³Á¤ if(model.getValue(dschPatlistPath + "[" + (grd_dschpatlist.selectedRow(i)-1) + "]/rmouttm")>="1100"){ model.makeValue(dschPatlistPath + "[" + (grd_dschpatlist.selectedRow(i)-1) + "]/rmoutdelyresn","16"); model.makeValue(dschPatlistPath + "[" + (grd_dschpatlist.selectedRow(i)-1) + "]/rmoutdelyresnrmk",""); // Åð½ÇÁö¿¬»çÀ¯±âŸ } } grd_dschpatlist.refresh(); } function fSetDelyResnCd17(){ for (i = 0; i < grd_dschpatlist.selectedRows; i++) { fSetRmOutTm(grd_dschpatlist.selectedRow(i)-1); // Åð½Ç½Ã°£¼³Á¤ if(model.getValue(dschPatlistPath + "[" + (grd_dschpatlist.selectedRow(i)-1) + "]/rmouttm")>="1100"){ model.makeValue(dschPatlistPath + "[" + (grd_dschpatlist.selectedRow(i)-1) + "]/rmoutdelyresn","17"); model.makeValue(dschPatlistPath + "[" + (grd_dschpatlist.selectedRow(i)-1) + "]/rmoutdelyresnrmk",""); // Åð½ÇÁö¿¬»çÀ¯±âŸ } } grd_dschpatlist.refresh(); } function fSetDelyResnCd18(){ for (i = 0; i < grd_dschpatlist.selectedRows; i++) { fSetRmOutTm(grd_dschpatlist.selectedRow(i)-1); // Åð½Ç½Ã°£¼³Á¤ if(model.getValue(dschPatlistPath + "[" + (grd_dschpatlist.selectedRow(i)-1) + "]/rmouttm")>="1100"){ model.makeValue(dschPatlistPath + "[" + (grd_dschpatlist.selectedRow(i)-1) + "]/rmoutdelyresn","18"); model.makeValue(dschPatlistPath + "[" + (grd_dschpatlist.selectedRow(i)-1) + "]/rmoutdelyresnrmk",""); // Åð½ÇÁö¿¬»çÀ¯±âŸ } } grd_dschpatlist.refresh(); } function fSetDelyResnCd19(){ for (i = 0; i < grd_dschpatlist.selectedRows; i++) { fSetRmOutTm(grd_dschpatlist.selectedRow(i)-1); // Åð½Ç½Ã°£¼³Á¤ if(model.getValue(dschPatlistPath + "[" + (grd_dschpatlist.selectedRow(i)-1) + "]/rmouttm")>="1100"){ model.makeValue(dschPatlistPath + "[" + (grd_dschpatlist.selectedRow(i)-1) + "]/rmoutdelyresn","19"); model.makeValue(dschPatlistPath + "[" + (grd_dschpatlist.selectedRow(i)-1) + "]/rmoutdelyresnrmk",""); // Åð½ÇÁö¿¬»çÀ¯±âŸ } } grd_dschpatlist.refresh(); } function fSetDelyResnCd20(){ for (i = 0; i < grd_dschpatlist.selectedRows; i++) { fSetRmOutTm(grd_dschpatlist.selectedRow(i)-1); // Åð½Ç½Ã°£¼³Á¤ if(model.getValue(dschPatlistPath + "[" + (grd_dschpatlist.selectedRow(i)-1) + "]/rmouttm")>="1100"){ model.makeValue(dschPatlistPath + "[" + (grd_dschpatlist.selectedRow(i)-1) + "]/rmoutdelyresn","20"); } } grd_dschpatlist.refresh(); } function fSetDelyResnCd21(){ for (i = 0; i < grd_dschpatlist.selectedRows; i++) { fSetRmOutTm(grd_dschpatlist.selectedRow(i)-1); // Åð½Ç½Ã°£¼³Á¤ if(model.getValue(dschPatlistPath + "[" + (grd_dschpatlist.selectedRow(i)-1) + "]/rmouttm")>="1100"){ model.makeValue(dschPatlistPath + "[" + (grd_dschpatlist.selectedRow(i)-1) + "]/rmoutdelyresn","21"); model.makeValue(dschPatlistPath + "[" + (grd_dschpatlist.selectedRow(i)-1) + "]/rmoutdelyresnrmk",""); // Åð½ÇÁö¿¬»çÀ¯±âŸ } } grd_dschpatlist.refresh(); } function fSetDelyResnCd22(){ for (i = 0; i < grd_dschpatlist.selectedRows; i++) { fSetRmOutTm(grd_dschpatlist.selectedRow(i)-1); // Åð½Ç½Ã°£¼³Á¤ if(model.getValue(dschPatlistPath + "[" + (grd_dschpatlist.selectedRow(i)-1) + "]/rmouttm")>="1100"){ model.makeValue(dschPatlistPath + "[" + (grd_dschpatlist.selectedRow(i)-1) + "]/rmoutdelyresn","22"); model.makeValue(dschPatlistPath + "[" + (grd_dschpatlist.selectedRow(i)-1) + "]/rmoutdelyresnrmk",""); // Åð½ÇÁö¿¬»çÀ¯±âŸ } } grd_dschpatlist.refresh(); } function fSetDelyResnCd23(){ for (i = 0; i < grd_dschpatlist.selectedRows; i++) { fSetRmOutTm(grd_dschpatlist.selectedRow(i)-1); // Åð½Ç½Ã°£¼³Á¤ if(model.getValue(dschPatlistPath + "[" + (grd_dschpatlist.selectedRow(i)-1) + "]/rmouttm")>="1100"){ model.makeValue(dschPatlistPath + "[" + (grd_dschpatlist.selectedRow(i)-1) + "]/rmoutdelyresn","23"); model.makeValue(dschPatlistPath + "[" + (grd_dschpatlist.selectedRow(i)-1) + "]/rmoutdelyresnrmk",""); // Åð½ÇÁö¿¬»çÀ¯±âŸ } } grd_dschpatlist.refresh(); } function fSetDelyResnCd24(){ for (i = 0; i < grd_dschpatlist.selectedRows; i++) { fSetRmOutTm(grd_dschpatlist.selectedRow(i)-1); // Åð½Ç½Ã°£¼³Á¤ if(model.getValue(dschPatlistPath + "[" + (grd_dschpatlist.selectedRow(i)-1) + "]/rmouttm")>="1100"){ model.makeValue(dschPatlistPath + "[" + (grd_dschpatlist.selectedRow(i)-1) + "]/rmoutdelyresn","24"); model.makeValue(dschPatlistPath + "[" + (grd_dschpatlist.selectedRow(i)-1) + "]/rmoutdelyresnrmk",""); // Åð½ÇÁö¿¬»çÀ¯±âŸ } } grd_dschpatlist.refresh(); } function fSetDelyResnCd99(){ model.makeValue(dschPatlistPath + "[" + (grd_dschpatlist.row-1) + "]/rmoutdelyresn",""); model.makeValue(dschPatlistPath + "[" + (grd_dschpatlist.row-1) + "]/rmoutdelyresnrmk",""); // Åð½ÇÁö¿¬»çÀ¯±âŸ model.makeValue(dschPatlistPath + "[" + (grd_dschpatlist.row-1) + "]/rmouttm" , ""); // Åð½Ç½Ã°£ grd_dschpatlist.colDisabled(grd_dschpatlist.colRef("rmoutdelyresnrmk")) = true; grd_dschpatlist.refresh(); } /** * @group : * @ver : 2008.07.09 * @by : ±èÁø¾Æ * @--------------------------------------------------------------------------------- * @type : function * @access : public * @desc : ¸¶¿ì½º ¿À¸¥ÂÊ ¹öư ÆË¾÷¸Þ´º½Ã Åð½ÇÁö¿¬»çÀ¯ ÄÚµå ¼³Á¤ ½Ã Åð½Ç½Ã°£ ÁöÁ¤ * @param : * @return : * @--------------------------------------------------------------------------------- */ function fSetRmOutTm(iRow){ if(model.getValue(dschPatlistPath + "[" + iRow + "]/rmouttm") == ""){ // Åð½Ç½Ã°£ ÀԷµǾî ÀÖÁö ¾ÊÀ» °æ¿ì model.makeValue(dschPatlistPath + "[" + iRow + "]/rmouttm", getCurrentTime().substr(0,4)); // Åð½Ç½Ã°£ } model.makeValue(dschPatlistPath + "[" + iRow + "]/check" , "true"); model.makeValue(dschPatlistPath + "[" + iRow + "]/status", "u"); } /** * @group : * @ver : 2008.07.17 * @by : ±èÁø¾Æ * @--------------------------------------------------- * @type : function * @access : public * @desc : grd_dschpatlist ¿¢¼¿ÀúÀå * @param : * @return : * @--------------------------------------------------- */ function fSaveToExcel(){ var fileName = window.fileDialog("save", ",", false, "excel", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls"); if (fileName != ""){ grd_dschpatlist.saveExcel(fileName, "SheetName", true, true, "", "", false); } } /** * @group * @ver : 2008.07.17 * @by : ±èÁø¾Æ * @--------------------------------------------------- * @type : function * @access : public * @desc : Ãâ·Â±â´É * @param : * @return : * @--------------------------------------------------- */ function fExecPrint(){ var fromdd = model.getValue("/root/main/cond/fromdd"); // ½ÃÀÛÀÏÀÚ var todd = model.getValue("/root/main/cond/todd"); // Á¾·áÀÏÀÚ model.removenode("/root/send"); model.makeNode ("/root/send/printdata/dschprcsprescondinfo"); model.copynode ("/root/send/printdata/dschprcsprescondinfo", "/root/main/dschprcsprescondinfo"); // ¸®½ºÆ®copy for(var i=0;i