123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111 |
- <?xml version="1.0" encoding="utf-8"?>
- <Script type ="xscript4.0"><![CDATA[/*
- 처방정보조회 (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 = utlf_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(); //해당월의 마지막 일
- }
- */
- // ds_main_condition.setColumn( 0, "prcpfromdd", getDateCalc(sCurrentDate, 30));
- ds_main_condition.setColumn( 0, "prcptodd" , sCurrentDate);
- //20150206 by kya 시작일자를 종료일자와 동일하도록 수정
- //ds_main_condition.setColumn( 0, "prcpfromdd", ((currentDate.getAddDate(-1, "M"))).getDateFormat());
- ds_main_condition.setColumn( 0, "prcpfromdd" , sCurrentDate);
- //** **//
- ds_main_condition.setColumn( 0, "pid" , ds_temp.getColumn(0, "pid"));
- ds_main_condition.setColumn( 0, "prcpflag", ds_temp.getColumn(0, "prcpflag"));
- ds_main_condition.setColumn( 0, "ioflag" , ds_temp.getColumn(0, "ioflag"));
- ds_main_condition.setColumn( 0, "indd" , ds_temp.getColumn(0, "indd"));
- //** 그리드 초기화 **//
- ds_main_prcplist.clearData(); // 처방정보 리스트 초기화
- //처치및투약일경우 투약번호컬럼 visible, 임상검사일경우 상태컬럼visible-20091015-kys추가
- var prcpflag = ds_main_condition.getColumn(0, "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(){
- ds_send.clearData();
- dsf_makeValue( ds, "send", "string", "" );
- dsf_makeValue( ds_send_reqdata, "pid", "string", ds_main_condition.getColumn(0, "pid")); // 등록번호
- dsf_makeValue( ds_send_reqdata, "ioflag", "string", ds_main_condition.getColumn(0, "ioflag")); // 입원외래구분
- dsf_makeValue( ds_send_reqdata, "prcpflag", "string", ds_main_condition.getColumn(0, "prcpflag")); // 처방구분 ( cruedrug:처치 및 투약 / nbpsinsp:임상검사 )
- dsf_makeValue( ds_send_reqdata, "prcpfromdd", "string", ds_main_condition.getColumn(0, "prcpfromdd")); // 처방조회시작일자
- dsf_makeValue( ds_send_reqdata, "prcptodd", "string", ds_main_condition.getColumn(0, "prcptodd")); // 처방조회종료일자
- dsf_makeValue( ds_send_reqdata, "indd", "string", ds_main_condition.getColumn(0, "indd")); // 입원일자
- ds_main_prcplist.clearData(); // 처방정보 리스트 초기화
- // submit("TRMND03101");
- var oParam = {};
- oParam.id = "TRMND03101";
- oParam.service = "dialapp.DialRec";
- oParam.method = "reqGetPrcpInfo";
- oParam.inds = "req=ds_";
- oParam.outds = "ds_=prcpinfo";
- oParam.async = false;
- oParam.callback = "cf_TRMND03101";
- tranf_submit(oParam);
- /*
- function cf_TRMND03101(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
- }
- function cf_TRMND03101(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- arErrorCode.pop("TRMND03101") > -1
- arErrorCode.pop("TRMND03101") < 0
- */
- }
- ]]></Script>
|