var currentdate = getCurrentDate();//ÇöÀçÀÏÀÚ var sdate = ((currentdate.toDate()).getAddDate(-1, "M")).getDateFormat(); //º¸¸§Àü /** * @group : * @ver : 2007.11.20 * @by : dhkim * @--------------------------------------------------- * @type : function * @access : public * @desc : ±â·ÏÁö À̷¸®½ºÆ®¸¦ º¸¿©ÁÖ±â Àü µ¥ÀÌÅ͸¦ ÃʱâÈ­ÇÑ´Ù. * @param : * @param : * @return : * @--------------------------------------------------- */ function fInit(){ //ÃʱâÈ­ var pid = ''; var cretdt = ''; var fromdd = sdate; var todd = currentdate; //ÆË¾÷¿¡¼­ °¡Á®¿Â°ª if(checkOpener()){ pid = opener.javascript.getParameter('pid'); fromdd = opener.javascript.getParameter('fromdd'); todd = opener.javascript.getParameter('todd'); } model.removenode('/root/cond'); model.makeNode('/root/cond/fromdd'); model.makeNode('/root/cond/todd'); model.makeNode('/root/cond/pid'); model.setValue('/root/cond/fromdd', sdate); model.setValue('/root/cond/todd', currentdate); model.setValue('/root/cond/pid', pid); if(!submit('TRMNH03601')){//ȯÀÚ³»¿ªÀ» Á¶È¸ÇÑ´Ù. messageBox('Á¶È¸µÈ °á°ú°¡', 'I004'); }else{ //±×¸®µåÀÇ Æ÷Ä¿½º¸¦ ù¹øÂ°·Î ³õ´Â´Ù. grd_patient.row = 1; grd_patient.col = 1; var idx = grd_patient.row; //ÇöÀç Æ÷Ä¿½ºÀÇ Å°¸¦ °¡Á®¿Â´Ù. pid = model.getValue('/root/main/patientinfo/patientlist['+ idx +']/pid'); cretdt = model.getValue('/root/main/patientinfo/patientlist['+ idx +']/cretdt'); //pid, cretdt¿¡ ÇØ´çÇÏ´Â ±â·ÏÁö ÀÌ·ÂÀ» Á¶È¸ÇÑ´Ù. fRecdListSearch(pid, cretdt); } model.refresh(); } /** * @group : * @ver : 2007.11.20 * @by : dhkim * @--------------------------------------------------- * @type : function * @access : public * @desc : È£½ºÇǽº ȯÀÚ³»¿ªÀ» Á¶È¸ÇÑ´Ù. * @param : * @param : * @return : xml instance * @--------------------------------------------------- */ var xHospiceInfoPath = '/root/main/hospiceinfo'; function fHospicePatientListSearch(){ var pid, hngnm, sexage, rrgstno; if(checkOpener()) { pid = opener.javascript.getParameter("pid"); hngnm = opener.javascript.getParameter("hngnm"); sexage = opener.javascript.getParameter("sexage"); rrgstno = opener.javascript.getParameter("rrgstno"); alert(rrgstno); }else{ pid = model.getValue(xHospiceInfoPath + "/pid"); hngnm = model.getValue(xHospiceInfoPath + "/hngnm"); sexage = model.getValue(xHospiceInfoPath + "/sexage"); rrgstno = model.getValue(xHospiceInfoPath + "/rrgstno"); } model.setValue(xHospiceInfoPath + "/pid",pid); model.removenodeset("/root/main/hospicefamy"); model.removenode("/root/send"); model.makeValue("/root/send/pid",model.getValue(xHospiceInfoPath + "/pid")); submit("TRMNH03501"); model.makeNode(xHospiceInfoPath + "/pid"); model.makeNode(xHospiceInfoPath + "/hngnm"); model.makeNode(xHospiceInfoPath + "/sexage"); model.makeNode(xHospiceInfoPath + "/rrgstno"); model.setValue(xHospiceInfoPath + "/pid", pid); model.setValue(xHospiceInfoPath + "/hngnm", hngnm); model.setValue(xHospiceInfoPath + "/sexage", sexage); model.setValue(xHospiceInfoPath + "/rrgstno", rrgstno); model.refresh(); } /** * @group : * @ver : 2007.11.20 * @by : dhkim * @--------------------------------------------------- * @type : function * @access : public * @desc : È£½ºÇǽº ±â·ÏÁö ÀÌ·ÂÀ» Á¶È¸ÇÑ´Ù. * @param : * @param : * @return : xml instance * @--------------------------------------------------- */ function fRecdListSearch(pid, cretdt){ if(pid != '' && cretdt != ''){ model.removenode('/root/main/cond'); model.makeNode('/root/main/cond/pid'); model.makeNode('/root/main/cond/cretdt'); model.setValue('/root/main/cond/pid', pid); model.setValue('/root/main/cond/cretdt', cretdt); submit('TRMNH03602'); } }