1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586 |
- /*
-
- 처방정보조회 (SMMND03100.xrw - JScript )
- - Version :
- 1) : Ver.1.00.01
- */
- /**
- * @group :
- * @ver : 2007.06.30
- * @by : 김진아
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 화면 초기화
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fDone(){
- //** 처방조회일자 초기화 **//
- var sCurrentDate = getCurrentDate();
- var currentDate = new Date();
- /*
- var year = sCurrentDate.substr(0,4);
- var month = sCurrentDate.substr(4,2);
- with(new Date(year, month, 1, 12)) { //MM = 1 .. 12
- setDate(0);
- var lstdate = getDate(); //해당월의 마지막 일
- }
- */
- // model.setValue("/root/main/condition/prcpfromdd", getDateCalc(sCurrentDate, 30));
- model.setValue("/root/main/condition/prcptodd" , sCurrentDate);
- //20150206 by kya 시작일자를 종료일자와 동일하도록 수정
- //model.setValue("/root/main/condition/prcpfromdd", ((currentDate.getAddDate(-1, "M"))).getDateFormat());
- model.setValue("/root/main/condition/prcpfromdd" , sCurrentDate);
-
- //** **//
- model.setValue("/root/main/condition/pid" , model.getValue("/root/temp/pid" ));
- model.setValue("/root/main/condition/prcpflag", model.getValue("/root/temp/prcpflag"));
- model.setValue("/root/main/condition/ioflag" , model.getValue("/root/temp/ioflag" ));
- model.setValue("/root/main/condition/indd" , model.getValue("/root/temp/indd" ));
-
- //** 그리드 초기화 **//
- model.removeNodeset("/root/main/prcplist"); // 처방정보 리스트 초기화
-
- //처치및투약일경우 투약번호컬럼 visible, 임상검사일경우 상태컬럼visible-20091015-kys추가
- var prcpflag = model.getValue("/root/main/condition/prcpflag");
- if(prcpflag == "cruedrug") { // 처치 및 투약
- grd_prcpinfo.colHidden(grd_prcpinfo.colRef("drugno")) = false; //투약번호
- grd_prcpinfo.colHidden(grd_prcpinfo.colRef("prcpstatnm")) = true; //상태
- }else if (prcpflag == "nbpsinsp") { // 임상검사`
- grd_prcpinfo.colHidden(grd_prcpinfo.colRef("drugno")) = true; //투약번호
- grd_prcpinfo.colHidden(grd_prcpinfo.colRef("prcpstatnm")) = false; //상태
- }
- model.refresh();
- }
- /**
- * @group :
- * @ver : 2007.06.30
- * @by : 김진아
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 처치 및 투약 / 임상검사 처방정보조회
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fSrchPrcp(){
- 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/ioflag" , model.getValue("/root/main/condition/ioflag" )); // 입원외래구분
- model.makeValue("/root/send/reqdata/prcpflag" , model.getValue("/root/main/condition/prcpflag" )); // 처방구분 ( cruedrug:처치 및 투약 / nbpsinsp:임상검사 )
- model.makeValue("/root/send/reqdata/prcpfromdd", model.getValue("/root/main/condition/prcpfromdd")); // 처방조회시작일자
- model.makeValue("/root/send/reqdata/prcptodd" , model.getValue("/root/main/condition/prcptodd" )); // 처방조회종료일자
- model.makeValue("/root/send/reqdata/indd" , model.getValue("/root/main/condition/indd" )); // 입원일자
- model.removeNodeset("/root/main/prcplist"); // 처방정보 리스트 초기화
- submit("TRMND03101");
- }
|