123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540 |
- /*
-
- 상담기록(SMMND01900.xrw - JScript )
- - Version :
- 1) : Ver.1.00.01
- */
- //**전역변수**//
-
- /**
- * @group :
- * @ver : 2007.07.11
- * @by : 김진아
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 화면 초기화
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fDone(){
- //**그리드 초기화**//
- model.removeNodeset("/root/main/hdmatnpatlist");
- model.removeNodeset("/root/main/pdmatnpatlist");
- model.removeNodeset("/root/main/cnstcntshistlist");
- model.removeNodeset("/root/main/hmdlspipeinfolist"); // 혈액투석 도관관리
- model.removeNodeset("/root/main/avfinfolist"); // 동정맥루 관리
- model.removeNodeset("/root/main/oprtinfolist"); // 시술과 중재
- //**공통코드 가져오기**//
- zbcfGetCodeList( new Array ( "M0133" // 도관관리 부위
- , "M0134" // 도관관리 종류1
- , "M0135" // 도관관리 종류2
- , "M0136" // 혈액투석도관 제거이유
- , "M0137" // 동정맥루 관리 종류
- , "M0138" // 동정맥루 관리 부위
- , "M0139" // 동정맥루 사용혈관
- , "M0140" // 시술종류
- , "M0141" // 시술원인
- , "M0142" // Cath종류
- , "M0133" // 부위
- , "M0144" // 복막투석도관 제거이유
- , "M0145" // 감염종류
- , "M0146" // 원인균
- , "M0147" // 예후
- )
- , new Array ( "/root/init/M0133list" // 도관관리 부위
- , "/root/init/M0134list" // 도관관리 종류1
- , "/root/init/M0135list" // 도관관리 종류2
- , "/root/init/M0136list" // 혈액투석도관 제거이유
- , "/root/init/M0137list" // 도관관리 종류1
- , "/root/init/M0138list" // 도관관리 종류2
- , "/root/init/M0139list" // 혈액투석도관 제거이유
- , "/root/init/M0140list" // 시술종류
- , "/root/init/M0141list" // 시술원인
- , "/root/init/M0142list" // Cath종류
- , "/root/init/M0133list" // 부위
- , "/root/init/M0144list" // 복막투석도관 제거이유
- , "/root/init/M0145list" // 감염종류
- , "/root/init/M0146list" // 원인균
- , "/root/init/M0147list" // 예후
- )
- );
-
- //** 유지환자리스트 설정 **//
- // fSrchHDMatnPatList(); // 혈액투석 유지환자 리스트 조회
- // grd_hdmatnpatinfo.visible = true;
- // grd_pdmatnpatinfo.visible = false;
- grd_hdmatnpatinfo.allstyle("all", "background-color") = "white";
- grd_pdmatnpatinfo.allstyle("all", "background-color") = "white";
-
- //** 상단환자 화면설정 **//
- var node = getGlobalVariable("paminfo");
- setCSVToNode("/root/temp/paminfo", node);
-
- if(getNodesetCount("/root/temp/paminfo/list") > 0) {
- var sSelPid = model.getValue("/root/temp/paminfo/list/pid"); // 등록번호
- model.setValue("/root/main/condition/pid", sSelPid);
- }
- fSrchHDMatnPatList(); // 혈액투석 유지환자 리스트 조회
-
- // fSrchPDMatnPatList(); // 복막투석 유지환자 리스트 조회
- //
- // var sSelPid = grd_pdmatnpatinfo.textmatrix(1, 1); // 등록번호
- // var sMaintePatRgstDD = grd_pdmatnpatinfo.textmatrix(1, 4); // 유지환자 등록일자
- //
- // fInit(); // 초기화
- // fGetPatInfo(sSelPid, sMaintePatRgstDD); // 환자정보 설정
- //
- // if(grd_hdmatnpatinfo.rows > 1) {
- // model.setValue("/root/main/condition/dialflag", "H");
- // grd_hdmatnpatinfo.visible = true;
- // grd_pdmatnpatinfo.visible = false;
- // grd_hdmatnpatinfo.allstyle("all", "background-color") = "white";
- //
- // grd_hdmatnpatinfo.allstyle("all", "background-color") = "white"; // 선택 행 셀 색상 지정
- // grd_hdmatnpatinfo.cellstyle("background-color", 1, 1, 1, 4) = "#ffd9ff";
- // model.toggle("case1");
- // btn_hdreccase.selected = true;
- //
- // fPatBaseHDPipeInfo(); // 혈액투석 환자 기본정보 및 최종 도관기록 정보 조회
- // } else if(grd_pdmatnpatinfo.rows > 1){
- // model.setValue("/root/main/condition/dialflag", "P");
- // grd_hdmatnpatinfo.visible = false;
- // grd_pdmatnpatinfo.visible = true;
- // grd_pdmatnpatinfo.allstyle("all", "background-color") = "white";
- //
- // grd_pdmatnpatinfo.allstyle("all", "background-color") = "white"; // 선택 행 셀 색상 지정
- // grd_pdmatnpatinfo.cellstyle("background-color", 1, 1, 1, 4) = "#ffd9ff";
- // model.toggle("case2");
- // btn_pdreccase.selected = true;
- //
- // fPatBasePDPipeInfo(); // 복막투석 환자 기본정보 및 최종 도관기록 정보 조회
- // }
- //
- // btn_crt.disabled = false; // 신규등록버튼 활성화
- // txt_hdcnstcnts.disabled = true; // 상담내용 텍스트박스 비활성화
- // txt_pdcnstcnts.disabled = true;
- // btn_savehdcnstcnts.disabled = true; // 저장버튼 비활성화
- // btn_savepdcnstcnts.disabled = true;
- // btn_pop.disabled = false;
- //
- // grd_rechistinfo.allstyle("all", "background-color") = "white";
- //
- // fSrchCnstcntsHist (); // 상담기록 리스트 조회
- }
-
- /**
- * @group :
- * @ver : 2007.06.12
- * @by : 김진아
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 혈액투석 유지환자 리스트 조회
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fSrchHDMatnPatList(){
- fInit(); // 초기화
- model.removenode ("/root/send");
- model.makeNode ("/root/send");
- model.makeValue ("/root/send/reqdata/pid ", model.getValue("/root/main/condition/pid"));
- model.makeValue ("/root/send/reqdata/dialflag", model.getValue("/root/main/condition/dialflag")); // 투석구분 (H:혈액)
- model.removeNodeset("/root/main/hdmatnpatlist");
- submit("TRMND01301");
- if(model.getValue("/root/main/condition/pid") != "") {
- grd_hdmatnpatinfo.cellstyle("background-color", 1, 1, 1, 3) = "#ffd9ff"; // 혈액투석 유지환자리스트 셀 색상 지정
- fGetPatInfo(model.getValue("/root/main/hdmatnpatlist/hdmatnpatinfo[1]/pid"), model.getValue("/root/main/hdmatnpatlist/hdmatnpatinfo[1]/maintepatrgstdd")); // 복막투석 유지환자 정보 설정 // 환자별 도관기록 리스트 조회
- }
- }
- /**
- * @group :
- * @ver : 2007.06.13
- * @by : 김진아
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 복막투석 유지환자 리스트 조회
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fSrchPDMatnPatList(){
- fInit(); // 초기화
- model.removenode("/root/send");
- model.makeNode ("/root/send");
- model.makeValue ("/root/send/reqdata/pid", model.getValue("/root/main/condition/pid"));
- model.makeValue ("/root/send/reqdata/dialflag", "P"); // 투석구분 (P:복막)
- model.removeNodeset("/root/main/pdmatnpatlist");
- // model.removeNodeset("/root/main/pdmatnpatlist");
- submit("TRMND01401");
- if(model.getValue("/root/main/condition/pid") != "") {
- grd_pdmatnpatinfo.cellstyle("background-color", 1, 1, 1, 3) = "#ffd9ff"; // 복막투석 유지환자리스트 셀 색상 지정
- fGetPatInfo(model.getValue("/root/main/pdmatnpatlist/pdmatnpatinfo[1]/pid"), model.getValue("/root/main/pdmatnpatlist/pdmatnpatinfo[1]/maintepatrgstdd")); // 복막투석 유지환자 정보 설정 // 환자별 도관기록 리스트 조회
- }
- }
- /**
- * @group :
- * @ver : 2007.06.12
- * @by : 김진아
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 혈액투석 유지환자 정보 설정
- * (혈액투석 유지환자 리스트 더블 클릭 시)
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fGetPatInfo(sSelPid, sMaintePatRgstDD) {
- //기록자 정보 설정
- model.makeValue("/root/main/reclist/recinfo/recid", getUserId()); // 현재 로그인한 사용자 ID
- model.makeValue("/root/main/reclist/recinfo/recnm", getUserName()); // 현재 로그인한 사용자명
-
- // 기록일시 설정
- model.makeValue("/root/main/reclist/recinfo/recdd", getCurrentDate()); // 기록일자
- model.makeValue("/root/main/reclist/recinfo/rectm", getCurrentTime().substr(0,4)); // 기록시간
-
- // 환자 정보 설정
- model.makeValue("/root/main/reclist/recinfo/pid" , sSelPid); // 등록번호
- model.makeValue("/root/main/reclist/recinfo/maintepatrgstdd", sMaintePatRgstDD); // 유지환자등록일자
- model.makeValue("/root/main/reclist/recinfo/dialflag" , model.getValue("/root/main/condition/dialflag")); // 투석구분
- model.makeValue("/root/main/reclist/recinfo/cnstrecflag" , model.getValue("/root/main/condition/dialflag")); // 상담기록구분
-
- model.refresh();
- }
- /**
- * @group :
- * @ver : 2007.07.19
- * @by : 김진아
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 유지환자리스트 조회시 초기화
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fInit(){
- grd_hdmatnpatinfo.allstyle("all", "background-color") = "white"; // 혈액투석유지환자 리스트 색상 초기화
- grd_pdmatnpatinfo.allstyle("all", "background-color") = "white"; // 복막투석유지환자 리스트 색상 초기화
-
- // 기록정보 초기화
- fClearChildNode("/root/main/reclist/recinfo");
- fClearChildNode("/root/main/getbaselist/getbaseinfo");
- //model.removeNodeset("/root/main/getbaselist"); // 환자기본정보
- model.removeNodeset("/root/main/hmdlspipeinfolist"); // 혈액투석 도관관리
- model.removeNodeset("/root/main/avfinfolist"); // 동정맥루 관리
- model.removeNodeset("/root/main/oprtinfolist"); // 시술과 중재
- model.removeNodeset("/root/main/peritcoduitlist"); // 복막투석 도관관리
- model.removeNodeset("/root/main/t_setlist"); // T-Set
- model.removeNodeset("/root/main/infclist"); // 감염관리
- model.removeNodeset("/root/main/cnstcntshistlist"); // 상담기록 리스트
- model.refresh();
- }
- /**
- * @group :
- * @ver : 2007.07.21
- * @by : 김진아
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 상담내용 저장 (저장버튼 클릭 시)
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fCnstInfo(recdd, rectm) {
- //** 신규등록일 경우 동일기록일자 도관기록 존재 확인 **//
- if(model.getValue("/root/main/reclist/recinfo/status") == "i") {
- model.removenode("/root/send");
- model.makeNode ("/root/send");
- model.makeValue ("/root/send/reqdata/pid" , model.getValue("/root/main/reclist/recinfo/pid") );
- model.makeValue ("/root/send/reqdata/recdd", model.getValue("/root/main/reclist/recinfo/recdd"));
- model.makeValue ("/root/send/reqdata/rectm", model.getValue("/root/main/reclist/recinfo/rectm"));
- model.removeNodeset("/root/main/chklist");
- submit("TRMND01904");
-
- // 동일기록일자에 도관기록 존재 할 경우
- if(model.getValue("/root/main/chklist/chkinfo/pid") != "") {
- messageBox("동일일자에 상담기록이 존재합니다.", "E");
- // 기록일시 설정
- model.makeValue("/root/main/reclist/recinfo/recdd", getCurrentDate()); // 기록일자
- model.makeValue("/root/main/reclist/recinfo/rectm", getCurrentTime().substr(0,4)); // 기록시간
- model.refresh();
- return;
- }
- }
-
- //** 상담내용 저장실행 **//
- model.removenode("/root/send");
- model.makeNode ("/root/send/savedata");
- copyNodeType ("/root/send/savedata", "/root/main/reclist/recinfo");
-
- submit("TXMND01901");
- }
- /**
- * @group :
- * @ver : 2007.07.23
- * @by : 김진아
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 상담기록 리스트 조회 (유지환자 리스트 더블 클릭 시)
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fSrchCnstcntsHist() {
- model.removenode("/root/send");
- model.makeNode ("/root/send");
- model.makeValue ("/root/send/reqdata/pid" , model.getValue("/root/main/reclist/recinfo/pid")); // 등록번호
- model.makeValue ("/root/send/reqdata/cnstrecflag", model.getValue("/root/main/reclist/recinfo/cnstrecflag")); // 상담기록구분
-
- model.removeNodeset("/root/main/cnstcntshistlist");
-
- submit("TRMND01901");
- }
- /**
- * @group :
- * @ver : 2007.07.23
- * @by : 김진아
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 혈액투석 환자 기본정보 및 최종 도관기록 정보 조회
- (유지환자 리스트 더블 클릭 시)
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fPatBaseHDPipeInfo() {
- model.removenode("/root/send");
- model.makeNode ("/root/send");
- model.makeValue ("/root/send/reqdata/pid" , model.getValue("/root/main/reclist/recinfo/pid")); // 등록번호
- model.makeValue ("/root/send/reqdata/maintepatrgstdd", model.getValue("/root/main/reclist/recinfo/maintepatrgstdd")); // 유지등록일자
- model.removeNodeset("/root/main/hmdlspipeinfolist"); // 혈액투석 도관관리
- model.removeNodeset("/root/main/avfinfolist"); // 동정맥루 관리
- model.removeNodeset("/root/main/oprtinfolist"); // 시술과 중재
- model.removeNodeset("/root/main/getbaselist"); // 환자기본정보
- submit("TRMND01902");
- }
- /**
- * @group :
- * @ver : 2007.07.31
- * @by : 김진아
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 복막투석 환자 기본정보 및 최종 도관기록 정보 조회
- (유지환자 리스트 더블 클릭 시)
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fPatBasePDPipeInfo() {
- model.removenode("/root/send");
- model.makeNode ("/root/send");
- model.makeValue ("/root/send/reqdata/pid" , model.getValue("/root/main/reclist/recinfo/pid")); // 등록번호
- model.makeValue ("/root/send/reqdata/maintepatrgstdd", model.getValue("/root/main/reclist/recinfo/maintepatrgstdd")); // 유지환자등록일자
- model.removeNodeset("/root/main/peritcoduitlist"); // 복막투석 도관관리
- model.removeNodeset("/root/main/t_setlist"); // T-Set 관리
- model.removeNodeset("/root/main/infclist/infcinfo"); // 감염관리
- model.removeNodeset("/root/main/getbaselist"); // 환자기본정보
- submit("TRMND01905");
- }
- /**
- * @group :
- * @ver : 2007.07.30
- * @by : 김진아
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 상담내용 조회 (상담기록리스트 더블 클릭 시)
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fSrchCnstcntsInfo(iRow) {
- model.removenode("/root/send");
- model.makeNode ("/root/send");
- model.makeValue ("/root/send/reqdata/pid" , model.getValue("/root/main/reclist/recinfo/pid")); // 등록번호
- model.makeValue ("/root/send/reqdata/cnstrecflag", model.getValue("/root/main/reclist/recinfo/cnstrecflag")); // 상담기록구분
- model.makeValue ("/root/send/reqdata/recdd" , model.getValue("/root/main/cnstcntshistlist/cnstcntshistinfo["+iRow+"]/recdd")); // 기록일자
- model.makeValue ("/root/send/reqdata/rectm" , model.getValue("/root/main/cnstcntshistlist/cnstcntshistinfo["+iRow+"]/rectm")); // 기록시간
- model.removenode("/root/temp/getcnstcntsinfo");
- submit("TRMND01903");
- model.setValue("/root/main/reclist/recinfo/status" , "u"); // 상태값 설정 (update)
- model.setValue("/root/main/reclist/recinfo/cnstcnts", model.getValue("/root/temp/getcnstcntsinfo/getcnstcnts/cnstcnts"));
- model.setValue("/root/main/reclist/recinfo/recdd" , model.getValue("/root/temp/getcnstcntsinfo/getcnstcnts/recdd"));
- model.setValue("/root/main/reclist/recinfo/rectm" , model.getValue("/root/temp/getcnstcntsinfo/getcnstcnts/rectm"));
- model.setValue("/root/main/reclist/recinfo/recid" , model.getValue("/root/temp/getcnstcntsinfo/getcnstcnts/recid"));
- model.setValue("/root/main/reclist/recinfo/recnm" , model.getValue("/root/temp/getcnstcntsinfo/getcnstcnts/recnm"));
- grd_rechistinfo.allstyle("all", "background-color") = "white";
- grd_rechistinfo.cellstyle("background-color", iRow, 1, iRow, 4) = "#ffd9ff";
-
-
- if( model.getValue("/root/main/reclist/recinfo/cnstrecflag") == "H") {
- txt_hdcnstcnts.disabled = false; // 상담내용 텍스트박스 활성화
- btn_savehdcnstcnts.disabled = false; // 저장버튼 활성화
- ipt_recdd.disabled = true; // 기록일시 비활성화
- ipt_rectm.disabled = true;
- btn_clock.disabled = true;
- } else if (model.getValue("/root/main/reclist/recinfo/cnstrecflag") == "P") {
- txt_pdcnstcnts.disabled = false; // 상담내용 텍스트박스 활성화
- btn_savepdcnstcnts.disabled = false; // 저장버튼 활성화
- ipt_recdd2.disabled = true; // 기록일시 비활성화
- ipt_rectm2.disabled = true;
- btn_clock2.disabled = true;
- }
-
- model.refresh();
- }
- /**
- * @group :
- * @ver : 2007.07.30
- * @by : 김진아
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 신규등록버튼 클릭 시
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fSetNewRecInfo(){
- fSrchCnstcntsHist(); // 상담기록 리스트 조회
- if(model.getValue("/root/main/reclist/recinfo/pid") == "") {
- messageBox("혈액투석 유지환자를 선택한 후", "I", "신규등록을 할 수 있습니다.");
- return;
- }
-
- if( model.getValue("/root/main/reclist/recinfo/cnstrecflag") == "H") {
- txt_hdcnstcnts.disabled = false; // 상담내용 텍스트박스 활성화
- btn_savehdcnstcnts.disabled = false; // 저장버튼 활성화
- ipt_recdd.disabled = false; // 기록일시 활성화
- ipt_rectm.disabled = false;
- btn_clock.disabled = false;
- } else if (model.getValue("/root/main/reclist/recinfo/cnstrecflag") == "P") {
- txt_pdcnstcnts.disabled = false; // 상담내용 텍스트박스 활성화
- btn_savepdcnstcnts.disabled = false; // 저장버튼 활성화
- ipt_recdd2.disabled = false; // 기록일시 활성화
- ipt_rectm2.disabled = false;
- btn_clock2.disabled = false;
- }
-
- model.setValue("/root/main/reclist/recinfo/status", "i"); // 상태값 설정 (insert)
-
- // 기록일시 설정
- model.makeValue("/root/main/reclist/recinfo/recdd", getCurrentDate()); // 기록일자
- model.makeValue("/root/main/reclist/recinfo/rectm", getCurrentTime().substr(0,4)); // 기록시간
- model.refresh();
-
- // 환자별 도관기록 리스트 행 추가
- grd_rechistinfo.addItem(); // 행 추가
- var iRow = grd_rechistinfo.rows - 1;
-
- // model.setValue("/root/main/cnstcntshistlist/cnstcntshistinfo[" + iRow +"]/recdd", model.getValue("/root/main/reclist/recinfo/recdd"));
- // model.setValue("/root/main/cnstcntshistlist/cnstcntshistinfo[" + iRow +"]/rectm", model.getValue("/root/main/reclist/recinfo/rectm"));
- // model.setValue("/root/main/cnstcntshistlist/cnstcntshistinfo[" + iRow +"]/recnm", model.getValue("/root/main/reclist/recinfo/recnm"));
- grd_rechistinfo.textmatrix(iRow, 1) = model.getValue("/root/main/reclist/recinfo/recdd");
- grd_rechistinfo.textmatrix(iRow, 2) = model.getValue("/root/main/reclist/recinfo/rectm");
- grd_rechistinfo.textmatrix(iRow, 3) = model.getValue("/root/main/reclist/recinfo/recnm");
- // 초기화
- for(var i=1; i<=grd_rechistinfo.rows; i++) {
- grd_rechistinfo.cellstyle("background-color", i, 1, i, 3) = "white"; // 환자별 상담기록 리스트 셀 색상 초기화 (white)
- }
-
- model.setValue("/root/main/reclist/recinfo/cnstcnts", "");
- model.refresh();
- }
- /**
- * @group :
- * @ver : 2007.08.07
- * @by : 김진아
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 화면상단 정보설정
- * @param : 그리드 ID (pGrd), 투석구분(pFlag)
- * @return :
- * @---------------------------------------------------
- */
- function fsetHngBaseInfo(pGrd, pPath){
- //**상단정보 초기화**//
- delPatientInfos(); //화면상단정보 삭제
- setGlobalVariable("paminfo", ""); //원무정보 reset
- if(getNodesetCount("/root/main/paminfo") > 0) {
- model.removeNodeset("/root/main/paminfo/list");
- }
-
- var iRow = pGrd.row;
-
- // 상단 환자정보 parameter
- // var sIoflag = model.getValue(pPath + "[" + iRow + "]/histstat" ); //원무 입원외래구분(histstat)
- var sPid = model.getValue(pPath + "[" + iRow + "]/pid " ); //등록번호
-
- model.removenode ("/root/send/reqdata");
- model.makeNode ("/root/send/reqdata");
- model.makeValue ("/root/send/reqdata/pid" , sPid );
- model.makeValue ("/root/send/reqdata/histstat", sIoflag);
- model.removeNodeset("/root/temp/gettoplist");
-
- submit("TRMND00103");
-
- var sCretno = model.getValue("/root/temp/gettoplist/gettopinfo/cretno" ); //생성번호
- var sSeqno = model.getValue("/root/temp/gettoplist/gettopinfo/seqno" ); //일련번호
- var sInstcd = model.getValue("/root/temp/gettoplist/gettopinfo/instcd" ); //기관코드
- var sIndd = model.getValue("/root/temp/gettoplist/gettopinfo/indd" ); //입원일자
- var sOrddd = model.getValue("/root/temp/gettoplist/gettopinfo/orddd" ); //진료일자
- var sAcptseqno = model.getValue("/root/temp/gettoplist/gettopinfo/acptseqno" ); //등록일련번호
- var sOrgorddd = model.getValue("/root/temp/gettoplist/gettopinfo/orgorddd" ); //원진료일자
- var sIoflag = model.getValue("/root/temp/gettoplist/gettopinfo/ioflag" ); //입원외래구분
- var sParam;
-
- if(sIoflag == "O") { //외래환자일 경우(histstat : "O")
- sParam = (sIoflag + "▦" + sPid + "▦" + sOrddd + "▦" + sCretno + "▦" + sInstcd + "▦" + sAcptseqno + "▦" + sOrgorddd );
- } else { //입원/응급환자일 경우(histstat : "I", "E")
- sParam = (sIoflag + "▦" + sPid + "▦" + sIndd + "▦" + sCretno + "▦" + sInstcd + "▦" );
- }
- setParameter("condparam", sParam);
- modal("SPMMO08900", 1, "", "", "", "", "", "left:0; right:0; width:0; height:0; sysmenu:hidden; caption:hidden; min:hidden, max:hidden;");
-
-
- var node = getGlobalVariable("paminfo");
- setCSVToNode("/root/main/paminfo", node);
- }
|