123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136 |
- /**
- * @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();
-
- }
|