123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244 |
- /*
- 감염 리스트조회(SMMND04800.xrw - JScript )
- - Version :
- 1) : Ver.1.00.01
- */
- /**
- * @group :
- * @ver : 2011.05.06
- * @by : 권영애
- * @---------------------------------------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 화면 초기화
- * @param :
- * @return :
- * @---------------------------------------------------------------------------------
- */
-
- /**
- * creat : 20101012
- * author : 최원돈
- * desc : 초기화
- */
- function fInitialize(){
-
- //조회조건 default 세팅
- model.removenode('/root/main/cond');
- model.makeValue('/root/main/cond/srchfromdd' , getCurrentDate().toDate().getAddDate(-1, "M").getDateFormat()); //처방시작일
- model.makeValue('/root/main/cond/srchtodd' , getCurrentDate()); //처방종료일
-
- //그리드 노드 초기화
- model.removenode('/root/main/infclist');
- model.makenode('/root/main/infclist');
-
- //**공통코드 가져오기**//
- zbcfGetCodeList( new Array ( "M0145" // 감염종류
- , "M0146" // 원인균
- , "M0147" // 예후
- )
- , new Array ( "/root/init/M0145list" // 감염종류
- , "/root/init/M0146list" // 원인균
- , "/root/init/M0147list" // 예후
- )
- );
-
- model.refresh();
- }
-
- /**
- * @group :
- * @ver : 2008.06.24
- * @by : 김진아
- * @---------------------------------------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 구분별 조회조건 설정
- * @param : optflag : 구분종류
- * @return :
- * @---------------------------------------------------------------------------------
- */
- function setSrchOpt(optflag){
- //** 환자 별 구분에 따른 조회조건 설정 **//
- if(optflag == "patsrchflag"){
- if(model.getValue("/root/main/cond/patsrchflag") == "2"){ // 환자 별
- rdo_dialsrchflag.visible = false; // 투석종류별 숨기기
- rdo_termsrchflag.visible = false; // 기간별 숨기기
- ipt_srchfromdd.visible = false; // 조회시작일자
- ipt_srchtodd.visible = false; // 조회종료일자
- cpt_term.visible = false; // "~"
- cpt_pid.visible = true; // 등록번호 캡션
- ipt_pid.visible = true; // 등록번호 input
- btn_patpopup.visible = true; // 돋보기 버튼
- opt_hngnm.visible = true; // 환자명 output
- cpt_bar.visible = true; // "-"
- opt_rrgstno1.visible = true; // 주민번호앞자리 output
- opt_rrgstno2.visible = true; // 주민번호뒷자리 output
- model.setValue("/root/main/cond/dialsrchflag", ""); // 투석종류별 초기화
- model.setValue("/root/main/cond/termsrchflag", ""); // 기간별 초기화
-
- }else if(model.getValue("/root/main/cond/patsrchflag") == "1"){ // 전체
- rdo_dialsrchflag.visible = true; // 투석종류별 숨기기
- rdo_termsrchflag.visible = true; // 기간별 숨기기
- ipt_srchfromdd.visible = true; // 조회시작일자
- ipt_srchtodd.visible = true; // 조회종료일자
- cpt_term.visible = true; // "~"
- cpt_pid.visible = false; // 등록번호 캡션
- ipt_pid.visible = false; // 등록번호 input
- btn_patpopup.visible = false; // 돋보기 버튼
- opt_hngnm.visible = false; // 환자명 output
- cpt_bar.visible = false; // "-"
- opt_rrgstno1.visible = false; // 주민번호앞자리 output
- opt_rrgstno2.visible = false; // 주민번호뒷자리 output
- model.setValue("/root/main/cond/dialsrchflag" , "A"); // 투석종류별(전체)
- model.setValue("/root/main/cond/termsrchflag" , "1"); // 기간별 (최근4회)
- model.setValue("/root/main/cond/pid" , "" ); // 등록번호
- model.setValue("/root/main/patbaseinfo/hngnm" , "" ); // 환자명
- model.setValue("/root/main/patbaseinfo/rrgstno1", "" ); // 주민번호1
- model.setValue("/root/main/patbaseinfo/rrgstno2", "" ); // 주민번호2
- rdo_dialsrchflag.refresh();
- rdo_termsrchflag.refresh();
- ipt_pid.refresh();
- opt_hngnm.refresh();
- opt_rrgstno1.refresh();
- opt_rrgstno2.refresh();
- }
- }
-
- //** 기간별 구분에 따른 조회조건 설정 **//
- if(optflag=="termsrchflag"){
- if(model.getValue("/root/main/cond/termsrchflag") == "3"){ // 조회기간 설정
- ipt_srchfromdd.disabled = false; // 조회시작일자
- ipt_srchtodd.disabled = false; // 조회종료일자
- model.setValue("/root/main/cond/srchfromdd", getCurrentDate());// 조회시작일자
- model.setValue("/root/main/cond/srchtodd" , getCurrentDate());// 조회종료일자
- }else{ // 최근 4회, 최종회
- ipt_srchfromdd.disabled = true; // 조회시작일자
- ipt_srchtodd.disabled = true; // 조회종료일자
- model.setValue("/root/main/cond/srchfromdd", ""); // 조회시작일자
- model.setValue("/root/main/cond/srchtodd" , ""); // 조회종료일자
- }
- ipt_srchfromdd.refresh();
- ipt_srchtodd.refresh();
- }
- }
- /**
- * @group :
- * @ver : 2011.05.09
- * @by : 권영애
- * @---------------------------------------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 감염 조회
- * @param :
- * @return :
- * @---------------------------------------------------------------------------------
- */
- function fSrchInfcList(){
- model.removenode("/root/send");
- model.makeNode ("/root/send");
- model.makeValue ("/root/send/reqdata/srchfromdd" , model.getValue("/root/main/cond/srchfromdd" )); // 조회시작일자
- model.makeValue ("/root/send/reqdata/srchtodd" , model.getValue("/root/main/cond/srchtodd" )); // 조회종료일자
- model.removeNodeset("/root/main/infclist");
- //submit 호출
- if(!submit('TRMND04801')){
- messageBox('조회를 실패하였습니다.', 'E999');
- return;
- }
- model.refresh();
- }
- /**
- * @group :
- * @ver : 2008.06.24
- * @by : 김진아
- * @---------------------------------------------------------------------------------
- * @type : function
- * @access : public
- * @desc : KT/V List 엑셀저장
- * @param :
- * @return :
- * @---------------------------------------------------------------------------------
- */
- function fSaveExcel() {
- var fileName = window.fileDialog("save", ",", false, "excel", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
- if (fileName != ""){
- grd_ktvrsltinfo.saveExcel(fileName, "SheetName", true, true, "", "", false);
- }
- }
- /**
- * @group
- * @ver : 2008.06.24
- * @by : 김진아
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 출력기능
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fExecPrint(){
- model.removenode("/root/rexreptinfo");
-
- //** 조회조건 설정 **//
- var srchfromdd = ipt_srchfromdd.label // 발생시작일자
- , srchtodd = ipt_srchtodd.label // 발생종료일자
-
- model.makeValue ("/root/rexreptinfo/infclist/srchfromdd", srchfromdd);
- model.makeValue ("/root/rexreptinfo/infclist/srchtodd", srchtodd);
- for(var i = 1; i < grd_ktvrsltinfo.rows ; i++ ){
- model.makeNode("/root/rexreptinfo/infclist/item["+ i +"]");
- model.copyNode("/root/rexreptinfo/infclist/item["+ i +"]","/root/main/infclist/infcinfo["+ i +"]");
- model.makeValue("/root/rexreptinfo/infclist/item["+ i +"]/infckindnm", grd_ktvrsltinfo.labelMatrix(i, grd_ktvrsltinfo.colRef("infckindflag")));
- model.makeValue("/root/rexreptinfo/infclist/item["+ i +"]/casbacnm", grd_ktvrsltinfo.labelMatrix(i, grd_ktvrsltinfo.colRef("casbacflag")));
- model.makeValue("/root/rexreptinfo/infclist/item["+ i +"]/afternm", grd_ktvrsltinfo.labelMatrix(i, grd_ktvrsltinfo.colRef("afterflag")));
- }
- exeReportPreview("RPMND04801", "XMLSTR");
- }
|