/** * @group : * @ver : 2007.11.06 * @by : dhkim * @--------------------------------------------------- * @type : function * @access : public * @desc : È£½ºÇǽº ȯÀÚ°¡Á·À» Á¶È¸ÇÑ´Ù. * @param : * @param : * @return : xml instance * @--------------------------------------------------- */ var xHospiceInfoPath = '/root/main/hospiceinfo'; function fSearch(){ 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"); indd = opener.javascript.getParameter("indd"); cretno = opener.javascript.getParameter("cretno"); }else{ pid = model.getValue(xHospiceInfoPath + "/pid"); hngnm = model.getValue(xHospiceInfoPath + "/hngnm"); sexage = model.getValue(xHospiceInfoPath + "/sexage"); rrgstno = model.getValue(xHospiceInfoPath + "/rrgstno"); indd = model.getValue(xHospiceInfoPath + "/indd"); cretno = model.getValue(xHospiceInfoPath + "/cretno"); } 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.makeNode(xHospiceInfoPath + "/indd"); model.makeNode(xHospiceInfoPath + "/cretno"); model.setValue(xHospiceInfoPath + "/pid", pid); model.setValue(xHospiceInfoPath + "/hngnm", hngnm); model.setValue(xHospiceInfoPath + "/sexage", sexage); model.setValue(xHospiceInfoPath + "/rrgstno", rrgstno); model.setValue(xHospiceInfoPath + "/indd", indd); model.setValue(xHospiceInfoPath + "/cretno", cretno); model.refresh(); } /** * @group : * @ver : 2007.11.06 * @by : dhkim * @--------------------------------------------------- * @type : function * @access : public * @desc : È£½ºÇǽº ȯÀÚ °¡Á·À» ÀúÀåÇÑ´Ù. * @param : * @param : * @return : xml instance * @--------------------------------------------------- */ function fSave(){ var sData = "pid" // 01 µî·Ï¹øÈ£ + "¢Ì" ; sData += model.getValue(xHospiceInfoPath + "/pid" ) // 01 µî·Ï¹øÈ£ //°¡Á·»çÇ× var xPafaPath = "/root/main/hospicefamy/famylist"; var sPafaData = "pid" //01µî·Ï¹øÈ£ + "¢Ëcretseqno" //02»ý¼ºÀϷùøÈ£ + "¢Ëinstcd" //03º´¿ø±â°üÄÚµå + "¢Ëfamyrel" //04°¡Á·°ü°è + "¢Ëzipcd1" //05¿ìÆí¹øÈ£1 + "¢Ëzipcd2" //06¿ìÆí¹øÈ£2 + "¢Ëzipcdseq" //07¿ìÆí¹øÈ£ ¼ø¼­(ÀϷùøÈ£) + "¢Ëdetladdr" //08»ó¼¼ÁÖ¼Ò(ÇÏÀ§ÁÖ¼Ò) + "¢Ëfamynm" //09°¡Á·À̸§ + "¢Ëmarytypeflag" //10°áÈ¥Çüű¸ºÐ + "¢Ëcntctel" //11ÀüÈ­¹øÈ£ + "¢Ëmaincarednor" //12ÁÖ°£È£Á¦°øÀÚ + "¢Ëcmt" //13ºñ°í + "¢Ëseparationfamyyn" //14»çº°°¡Á·¿©ºÎ + "¢Ëtodt" //15Á¾·áÀϽà + "¢Ëaddress" //16ÁÖ¼Ò + "¢Ì" ; for (i=1;i < grd_famylist.rows; i++ ) { sPafaData += model.getValue(xPafaPath + "["+ i + "]/pid" )//01µî·Ï¹øÈ£ + "¢Ë" + model.getValue(xPafaPath + "["+ i + "]/cretseqno" )//02»ý¼ºÀϷùøÈ£ + "¢Ë" + model.getValue(xPafaPath + "["+ i + "]/instcd" )//03º´¿ø±â°üÄÚµå + "¢Ë" + model.getValue(xPafaPath + "["+ i + "]/famyrel" )//04°¡Á·°ü°è + "¢Ë" + model.getValue(xPafaPath + "["+ i + "]/zipcd1" )//05¿ìÆí¹øÈ£1 + "¢Ë" + model.getValue(xPafaPath + "["+ i + "]/zipcd2" )//06¿ìÆí¹øÈ£2 + "¢Ë" + model.getValue(xPafaPath + "["+ i + "]/zipcdseq" )//07¿ìÆí¹øÈ£ ¼ø¼­(ÀϷùøÈ£) + "¢Ë" + model.getValue(xPafaPath + "["+ i + "]/detladdr" )//08»ó¼¼ÁÖ¼Ò(ÇÏÀ§ÁÖ¼Ò) + "¢Ë" + model.getValue(xPafaPath + "["+ i + "]/famynm" )//09°¡Á·À̸§ + "¢Ë" + model.getValue(xPafaPath + "["+ i + "]/marytypeflag" )//10°áÈ¥Çüű¸ºÐ + "¢Ë" + model.getValue(xPafaPath + "["+ i + "]/cntctel" )//11ÀüÈ­¹øÈ£ + "¢Ë" + model.getValue(xPafaPath + "["+ i + "]/maincarednor" )//12ÁÖ°£È£Á¦°øÀÚ + "¢Ë" + model.getValue(xPafaPath + "["+ i + "]/cmt" )//13ºñ°í + "¢Ë" + model.getValue(xPafaPath + "["+ i + "]/separationfamyyn" )//14»çº°°¡Á·¿©ºÎ + "¢Ë" + model.getValue(xPafaPath + "["+ i + "]/todt" )//15Á¾·áÀϽà + "¢Ë" + model.getValue(xPafaPath + "["+ i + "]/address" )//16»óÀ§ÁÖ¼Ò + "¢Ì" ; } model.removenode("/root/send"); model.makeNode("/root/send"); model.makeValue("/root/send/sData" ,sData ); model.makeValue("/root/send/sPafaData" ,sPafaData ); submit("TRMNH03502"); fSearch(); }