123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130 |
- /*
-
- 복막투석 유지환자 등록(SMMND02900.xrw - JScript )
- - Version :
- 1) : Ver.1.00.01
- */
- /**
- * @group :
- * @ver : 2007.05.16
- * @by : 김진아
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 등록번호로 환자를 검색한다.(예약생성시)
- * @param :
- * @return : 환자명, 환자주민등록번호, 입원외래구분
- * @---------------------------------------------------
- */
- function fSrchPat()
- {
- model.removenode("/root/send");
- model.makeNode("/root/send");
- model.makeValue("/root/send/reqdata/pid",model.getValue("/root/main/cretlist/cretinfo/pid"));
- model.makeValue("/root/send/reqdata/dialflag", "P");
- model.removeNodeset("/root/main/cretlist/getcreinfo");
- submit("TRMND02901"); //환자기본정보 및 입원내역테이블을 조회한다.
-
- if(model.getValue("/root/main/cretlist/getcreinfo/hngnm") == ""){
- messageBox("환자정보를 찾을 수", "I004", "");
- fInit(); // 초기화
- return;
- }else {
- if(model.getValue("/root/main/cretlist/getcreinfo/matndialflag") == "H"){
- messageBox("혈액투석 유지환자로 등록되어 있는 환자", "E008", "");
- fInit(); // 초기화
- return;
- }
- /*
- if(model.getValue("/root/main/cretlist/getcreinfo/prcpfalg") != "Y") { // 지시처방이 없는 경우
- messageBox("지시처방이 존재 하지 않습니다.", "E", "복막투석 유지환자 등록을 할 수 없습니다.");
- fInit(); // 초기화
- return;
-
- }
- */
- }
- }
- /**
- * @group :
- * @ver : 2007.05.16
- * @by : 김진아
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 복막투석 환자 유지환자에 저장
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fSaveMatn()
- {
- if(model.getValue("/root/main/cretlist/getcreinfo/matndialflag") == "H"){
- messageBox("혈액투석 유지환자로 등록되어 있는 환자", "E008", "");
- fInit();
- } else {
- if(model.getValue("/root/main/cretlist/cretinfo/pid") == "") {
- messageBox("등록번호는", "I003", "");
- return;
- }
-
- if(model.getValue("/root/main/cretlist/getcreinfo/hngnm")=="") {
- messageBox("환자기본 정보 조회 수행을 하지", "E007", "(등록번호 입력 후 엔터키를 누르십시오.)");
- return;
- }
-
- if(model.getValue("/root/main/cretlist/getcreinfo/matnflag") != "1"){ //유지구분(1:유지)
- model.removenode("/root/send");
- model.makeNode("/root/send");
- model.makeValue("/root/send/savedata/pid",model.getValue("/root/main/cretlist/cretinfo/pid"));
- model.makeValue("/root/send/savedata/status", "i"); //상태값 지정(insert)
- model.makeValue("/root/send/savedata/dialflag", "P");
- model.makeValue("/root/send/savedata/rsrvcnts", "");
-
- if(submit("TXMND02901") == true){ //복막투석 유지환자 등록
- messageBox("유지환자관리 등록이 ", "I001", "간호정보조사지를 작성하십시오.");
- model.close();
- }
- }else if(model.getValue("/root/main/cretlist/getcreinfo/matnflag") == "1"){
- messageBox("이미 유지환자에 등록 되어있는 환자", "E008", "");
- fInit();
- }
- }
- }
- /**
- * @group :
- * @ver : 2007.06.30
- * @by : 김진아
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 컨트롤 초기화
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fInit(){
- if(getNodesetCount("/root/main/cretlist/cretinfo")>0){
- fClearChildNode("/root/main/cretlist/cretinfo");
- }
- if(getNodesetCount("/root/main/cretlist/getcreinfo")>0){
- fClearChildNode("/root/main/cretlist/getcreinfo");
- }
- model.refresh();
- }
- function fUseridPopup(pPath, pNodeID, pNodeNM, pNodeRrgsNo1, pNodeRrgsNo2, pDOC) {
- model.removeNodeset("/root/properties/parameters/SendData/SendDatavalue");
-
- modal("SMMNE03700", 1, event.screenX-100, event.screenY-100, "SMMNE03700", "/root/main/cretlist/cretinfo/pid", "/root/init/searchitem");
- var pParam = model.getValue("/root/properties/parameters/SendData/SendDatavalue");
- var pParamValue = pParam.split("|");
-
- model.setValue("/root/main/cretlist/cretinfo/pid", pParamValue[0]);
- ipt_pid.refresh();
- }
|