/*********************************************************************************************************************************************** * create date : 2007.12.26 * author : dhkim * file name : SMLBD01600.js * desc : Ç÷¾×ºÒÃâ ¸®½ºÆ®¸¦ Á¶È¸ÇÑ´Ù. ***********************************************************************************************************************************************/ var xApuPath = '/root/main/apuinfo'; var xCondPath = '/root/cond'; var xUserInfoPath = '/root/main/userpopupinfo'; //ºÒÃâ,È®ÀÎÀÚÆË¾÷°á°ú xPath var currentDate = getCurrentDate(); /* * Àüüº´µ¿Á¤º¸¸¦ °¡Á®¿Â´Ù. */ function fGetWard(){ submit('TRLBD01602'); } /* * ÃʱâÈ­ */ function fInit(){ model.removeNodeset(xApuPath); //model.removeNodeset(xCondPath); //model.makeValue(xCondPath + '/fromdd', currentDate); //model.makeValue(xCondPath + '/todd', currentDate); //model.makeNode(xCondPath + '/wardcd'); //model.makeNode(xCondPath + '/iogbn'); model.setValue(xCondPath + '/fromdd', currentDate); model.setValue(xCondPath + '/todd', currentDate); fGetWard();//º´µ¿ÄÚµåload addComboItem("cmb_wardcd", "Àüü", "ALL", "above");//ÄÞº¸¿¡ ÀüüÃß°¡ cmb_wardcd.select(0); //ù¹øÂ°°ª ¼¼ÆÃ rdo_iogbn.select(0); rdo_outflag.select(2); model.refresh(); fSearch(); } /* * Ç÷¾×ºÒÃâ ¸®½ºÆ®¸¦ Á¶È¸ÇÑ´Ù. */ function fSearch(){ var iogbn = model.getValue(xCondPath+'/iogbn'); var wardcd = model.getValue(xCondPath+'/wardcd'); var fromdd = model.getValue(xCondPath+'/fromdd'); var todd = model.getValue(xCondPath+'/todd'); var outflag = model.getValue(xCondPath+'/outflag'); if(iogbn == 'I' && wardcd == ''){ model.setValue(xCondPath+'/wardcd', 'ALL'); } if(fromdd == '') fromdd = currentDate; if(todd == '') todd = currentDate; model.removeNodeset(xApuPath + "/apulist"); model.removeNodeset(xCondPath); model.makeValue(xCondPath + '/wardcd', wardcd); model.makeValue(xCondPath + '/fromdd', fromdd); model.makeValue(xCondPath + '/todd', todd); model.makeValue(xCondPath + '/iogbn', iogbn); model.makeValue(xCondPath + '/outflag', outflag); if(!submit('TRLBD01601')){ messageBox('Á¶È¸¸¦', 'E009'); } //------------(20080124) // ºÒÃâµÈ°ÍÀº ¼±ÅÃÇÏÁö ¸øÇÏ°Ô ÇÑ´Ù. var pGrd = grd_apulist; var outflag = ""; var confdd = ""; if (pGrd.rows <= 1 ) return; pGrd.isReadOnly(1,1,pGrd.rows-1,pGrd.cols-1)= true; var sApuoutdd = getCurrentDate(); var sApuouttm = getCurrentTime().substring(0,4); var sApuoutid = getUserId(); var sApuoutnm = getUserName(); for (var row=1;row