123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136 |
- /********************************************************************************
- * @group : APU 혈액불출현황
- * @ver : 2008.09.23
- * @by : dhkim
- * @desc : 성분헌혈실 혈액불출현황 조회
- *********************************************************************************/
- var curYYYYMMStr = getCurrentDate().substring(0, 6);
- /**
- * create : 2008.09.23
- * desc : 화면을 초기화한다.
- */
- function fInit(){
-
- //노드 초기화
- model.removenode('/root/cond');
- model.removenode('/root/main/workinfo');
- model.removenode('/root/hidden/deptinfo');
- model.removenode('/root/hidden/wardinfo');
- model.removenode('/root/hidden/drinfo');
-
- //노드 재생성
- model.makenode('/root/cond');
- model.makenode('/root/main/workinfo');
- model.makenode('/root/hidden/deptinfo');
- model.makenode('/root/hidden/wardinfo');
- model.makenode('/root/hidden/drinfo');
-
- var yyyymm = curYYYYMMStr; //default
- var ioflag = 'A'; //default
-
- fShowCondition('cap_ward', 'cmb_ward', 'cap_dept', 'cmb_dept', 'cap_dr', 'cmb_dr', ioflag);//조건 hidden/visible
-
- //진료과, 병동리스트조회
- fGetDeptInfo('O', yyyymm, '/root/send', '/root/hidden/outdeptinfo');//외래진료과
- fGetDeptInfo('I', yyyymm, '/root/send', '/root/hidden/indeptinfo'); //입원진료과
- fGetDeptInfo('W', yyyymm, '/root/send', '/root/hidden/wardinfo'); //병동
-
-
- //조회조건 default 세팅
- //model.makeValue('/root/cond/yyyymm', curYYYYMMStr);//조회년월 : 현재년월
-
- //20081230
- model.makeValue('/root/cond/fromdd', curYYYYMMStr);//조회시작년월 : 현재년월
- model.makeValue('/root/cond/todd', curYYYYMMStr);//조회종료년월 : 현재년월
-
- model.makeValue('/root/cond/ioflag', 'A');//외래입원구분 : 전체
- model.makeValue('/root/cond/deptcd', '');//진료과 : 전체
- model.makeValue('/root/cond/wardcd', '');//병동 : 전체
- model.makeValue('/root/cond/drid', '');//주치의 : 전체
-
- model.refresh();
- }
- /**
- * create : 2008.09.23
- * desc : 성분헌혈실 혈액불출현황조회
- */
- function fSearchApuEqmtList(){
-
- //조회조건
- //var stdym = model.getValue('/root/cond/yyyymm');
-
- //20081230
- var fromdd = model.getValue('/root/cond/fromdd');
- var todd = model.getValue('/root/cond/todd');
-
- var ioflag = model.getValue('/root/cond/ioflag');
- var deptcd = model.getValue('/root/cond/deptcd');
- var drid = model.getValue('/root/cond/drid');
- var wardcd = model.getValue('/root/cond/wardcd');
-
- //조회조건 널처리
- /*
- if(stdym == null || stdym == ''){
- stdym = curYYYYMMStr;
- }
- */
-
- //20081230
- if(fromdd == null || fromdd == ''){
- fromdd = curYYYYMMStr;
- }
- if(todd == null || todd == ''){
- todd = curYYYYMMStr;
- }
-
- if(ioflag == null || ioflag == ''){
- ioflag = 'A';
- }
- if(deptcd == null){
- deptcd = '';
- }
- if(drid == null){
- drid = '';
- }
- if(wardcd == null){
- wardcd == '';
- }
- if(ioflag == 'O'){
- if(wardcd != null || wardcd != ''){
- wardcd == '';
- }
- }
-
- //20081230
- //같은 년도의 데이터만 조회가능
- if(fromdd.substring(0, 4) != todd.substring(0, 4)){
- messageBox('조회 시작년도와 종료년도를 동일하게 적용해 주십시오', 'E009');
- return;
- }
-
- //request전 parameter send처리
- model.removenode('/root/send');
- //model.makeValue('/root/send/stdym', stdym + '%');
-
- //20081230
- model.makeValue('/root/send/fromdd', fromdd + '01');
- model.makeValue('/root/send/todd', todd + '31');
-
- model.makeValue('/root/send/ioflag', ioflag);
- model.makeValue('/root/send/deptcd', deptcd);
- model.makeValue('/root/send/drid', drid);
- model.makeValue('/root/send/wardcd', wardcd);
- model.makeValue('/root/send/eqapuflag', '2');//장비별/혈액불출별
-
- if(submit('TRSNA00103')){
- //화면display변경
- //var lastdd = getLastDay(todd.substring(0, 4), todd.substring(4, 6));
- //fShowDays(datagrid1, datagrid1.cols, lastdd, 3);
- //fShowTotal(datagrid1, datagrid1.cols, 3);
- }
-
- }
|