123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197 |
- /*
-
- APU 스케쥴 조회
-
- - Version :
- 1) : Ver.1.00.01
- */
- // --------------------------------------------------
- // 화면 read
- // --------------------------------------------------
- function finit() {
- //그리드 초기화
- fInitGrid();
- //오늘 날짜로 초기화 하는 부분.(진료일자를 default로 오늘 날짜로 선택함)
- var tempdate = getCurrentDate();
- model.setValue("/root/main/cond/ischefrdd", tempdate);
- model.setValue("/root/main/cond/ischetodd", tempdate);
- model.refresh();
- //공통코드
- zbcfGetCodeList(new Array( "L0089", "L0089", "L0096" ), new Array("/root/init/L00891list1", "/root/init/L00891list2", "/root/init/L00961list3"), true);
- //병동콤보
- submit("TRMNA00811");
- //진료과콤보
- var instcd = getUserInfo("dutplceinstcd");
- var standard_yn = "orduseyn";
- var ord_deptflag = ''; //D:외래진료실만,'W':병동,X:기타
- var rslt_ref = "/root/main/cond/orddeptlist";
- zbcfGetDeptCodeList(instcd, standard_yn, ord_deptflag, rslt_ref,'asc');
-
- datagrid1.frozenCols = datagrid1.colRef("scheprcpflagnm");
-
- }
- function fInitGrid() {
- model.removeNodeset("/root/main/scheinfo/schelist"); //초기화시 그리드 1번째 row 삭제
- model.refresh();
- }
- /* --------------------------------------------------*/
- /* type : function */
- /* access : public */
- /* desc : 환자정보 가져오기 */
- /* param : 검색구분 */
- /* return : */
- /* --------------------------------------------------*/
- function fSearchPatInfo(qryflag) {
- modal("../../../pam/patinfomngtweb/xrw/SPPMC02500", qryflag,"150", "150", "SPPMC02500", "/root/source", "/root/send");
- var popupendflag = model.getValue("/root/main/popupendflag");
- if (popupendflag == "ok"){
- model.setValue("/root/main/cond/ipid",model.getValue("/root/main/patinfo/patinfolist/pid"));
- model.setValue("/root/main/cond/ihngnm",model.getValue("/root/main/patinfo/patinfolist/hngnm"));
- // model.setValue("/root/main/cond/igndrage",model.getValue("/root/main/patinfo/patinfolist/pid"));
- model.setValue("/root/main/cond/irrgstno", model.getValue("/root/main/patinfo/patinfolist/rrgstno1") + "-" +
- model.getValue("/root/main/patinfo/patinfolist/rrgstno2") );
-
- model.refresh();
-
- // var pid = model.getValue("/root/main/patinfo/patinfolist/pid");
- // if (pid != null && pid != "" && pid != " " && pid != "-"){
- // fpidref();
- // }
- }
- }
-
- //-------------------------------------------------
- //처방구분변동에 따른 처방종류
- //-------------------------------------------------
- function fPrcpKindComboMake(flag) {
- //초기화
- var xPathSendReqdata = "/root/send/reqdata";
- model.removeNodeset(xPathSendReqdata);
- model.makeNode(xPathSendReqdata);
-
- var Instcd = "";
- var cdgrupid = "";
-
- if (flag == "1") {
- Instcd = getUserInfo("dutplceinstcd");
- cdgrupid = model.getValue("/root/main/cond/iprcpflag");
- } else {
- Instcd = getUserInfo("dutplceinstcd");
- cdgrupid = model.getValue("/root/main/scheinfo/schelist/scheprcpflag");
- }
-
- switch (cdgrupid) {
- case "1": cdgrupid = "L0091"; break;
- case "2": cdgrupid = "L0090"; break;
- case "3": cdgrupid = "L0092"; break;
- default : cdgrupid = "L0091"; break;
- }
-
- model.makeValue(xPathSendReqdata + "/instcd", Instcd); //병원코드
- model.makeValue(xPathSendReqdata + "/cdgrupid", cdgrupid); //그룹코드
-
- //조회
- if (flag == "1")
- submit("TRMNA00804");
- else
- submit("TRMNA00805");
-
- model.refresh();
- }
- // --------------------------------------------------
- // 확정 스케쥴 조회
- // --------------------------------------------------
- function fScheQuery() {
-
- //초기화
- var xPathSendReqdata = "/root/send/reqdata";
- model.removeNodeset(xPathSendReqdata);
- model.makeNode(xPathSendReqdata);
- var instcd = getUserInfo("dutplceinstcd");
- var ioflag = model.getValue("/root/main/cond/ijob");
- var wardcd = model.getValue("/root/main/cond/iwardcd");
- var prcpflag = model.getValue("/root/main/cond/iprcpflag");
- var prcpkindcd = model.getValue("/root/main/cond/iprcpkindcd");
- var orddeptcd = model.getValue("/root/main/cond/orddeptcd");
- var scheddfr = model.getValue("/root/main/cond/ischefrdd");
- var scheddto = model.getValue("/root/main/cond/ischetodd");
- var pid = model.getValue("/root/main/cond/ipid");
-
- //20090117 dhkim
- var plcecd = model.getValue("/root/main/cond/plcecd");
-
- //값설정
- model.makeValue(xPathSendReqdata + "/instcd", instcd); //병원코드
- model.makeValue(xPathSendReqdata + "/ioflag", ioflag); //입원외래
- model.makeValue(xPathSendReqdata + "/wardcd", wardcd); //병동
- model.makeValue(xPathSendReqdata + "/prcpflag", prcpflag); //처방구분
- model.makeValue(xPathSendReqdata + "/prcpkindcd", prcpkindcd); //처방종류
- model.makeValue(xPathSendReqdata + "/orddeptcd", orddeptcd); //진료과
- model.makeValue(xPathSendReqdata + "/scheddfr", scheddfr); //확정스케쥴일자
- model.makeValue(xPathSendReqdata + "/scheddto", scheddto); //확정스케쥴일자
- model.makeValue(xPathSendReqdata + "/pid", pid); //환자id
-
- //20090117 dhkim
- //장소조회추가
- model.makeValue(xPathSendReqdata + "/plcecd", plcecd); //성분헌혈장소
-
- //조회
- submit("TRMNA02101");
- model.refresh();
- }
- //---------------------------------------
- // 등록번호로 환자의 상세정보 추출
- //---------------------------------------
- function fPatInfo() {
- //초기화
- var xPathSendReqdata = "/root/send/reqdata";
- model.removeNodeset(xPathSendReqdata);
- model.makeNode(xPathSendReqdata);
- var Instcd = getUserInfo("dutplceinstcd");
- var pid = model.getValue("/root/main/scheinfo/schelist/pid");
-
- model.makeValue(xPathSendReqdata + "/instcd", Instcd); //병원코드
- model.makeValue(xPathSendReqdata + "/pid", pid); //환자id
-
- //조회
- //submit("TRMNA00806");
- var xPathFr = "/root/main/patinfo/patinfolist";
- var xPathTo = "/root/main/scheinfo/schelist";
- model.setValue(xPathTo + "/tnsrpid", model.getValue(xPathFr + "/pid"));
- model.setValue(xPathTo + "/hngnm", model.getValue(xPathFr + "/hngnm"));
-
- model.setValue(xPathTo + "/age", model.getValue(xPathFr + "/sex") + "/" + model.getValue(xPathFr + "/age"));
- model.setValue(xPathTo + "/ptbsrrgstno", model.getValue(xPathFr + "/rrgstno1") + "/" + model.getValue(xPathFr + "/rrgstno2"));
- // model.setValue(xPathTo + "/patnm",model.getValue(xPathFr + "/hngnm"));
- // model.setValue(xPathTo + "/patnm",model.getValue(xPathFr + "/hngnm"));
- // model.setValue(xPathTo + "/patnm",model.getValue(xPathFr + "/hngnm"));
- // model.setValue(xPathTo + "/patnm",model.getValue(xPathFr + "/hngnm"));
- // model.setValue(xPathTo + "/patnm",model.getValue(xPathFr + "/hngnm"));
- // model.setValue(xPathTo + "/patnm",model.getValue(xPathFr + "/hngnm"));
-
- model.refresh();
- }
-
|