123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204 |
- /*
-
- (SMMNR04600_수혈현황조회.xrw - JScript )
- - Version :
- 1) : Ver.1.00.01
- */
- /**
- * @group :
- * @ver : 2007.06.18
- * @by : 정찬성
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 수혈현황조회
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fGetTnsPresCondRef(){
- if(rdo_wardpatientflag.value == "patient") {
- if (ipt_pid.value == ""){
- messageBox("등록번호를 ","C001");
- model.setfocus("ipt_pid");
- return;
- }
- } else if(rdo_wardpatientflag.value == "dept") {
- if (rdo_recdeptflag.value == "" || cmb_recdeptcd.value == ""){
- messageBox("기록부서 구분 및 부서명은 ","I003");
- model.setfocus("cmb_recdeptcd");
- return;
- }
- }
- model.removenode("/root/send");
- model.makeValue("/root/send/prcpddfrom", ipt_prcpddfrom.value);
- model.makeValue("/root/send/prcpddto", ipt_prcdddto.value);
- model.makeValue("/root/send/wardcd", cmb_wardcd.value);
- model.makeValue("/root/send/roomcd", cmb_roomcd.value);
- model.makeValue("/root/send/hngnm", cmb_pid.value);
- model.makeValue("/root/send/pid", ipt_pid.value);
- model.makeValue("/root/send/dateflag", cmb_dateflag.value);
- model.makeValue("/root/send/wardpatientflag", rdo_wardpatientflag.value);
- model.makeValue("/root/send/recdeptflag", rdo_recdeptflag.value);
- model.makeValue("/root/send/recdeptcd", cmb_recdeptcd.value);
-
- if(submit("TRMNR04601")){
- return;
- }
- }
-
- /**
- * @group :
- * @ver : 2007.06.18
- * @by : 정찬성
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 환자 상세정보 조회 combo
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fGetPatientInfo(pFlag){
- model.removenode("/root/send");
- if(pFlag == "entr"){
- cmb_wardcd.value = "";
- cmb_roomcd.value = "";
- cmb_pid.value = "";
- model.makeValue("/root/send/pid", ipt_pid.value);
- }else{
- model.makeValue("/root/send/wardcd", cmb_wardcd.value);
- model.makeValue("/root/send/roomcd", cmb_roomcd.value);
- if( model.makeValue("/root/send/pid", cmb_pid.value) != "" ){
- model.makeValue("/root/send/pid", cmb_pid.value);
- }
- }
- if(submit("TRMNR07605")){
- if(pFlag == "entr"){
- model.setValue("/root/main/cond/patientgrup/patientgruplist/patientnm", model.getValue("/root/main/cond/patientgrupInfo/patientgruplistInfo/patientnm"));
- model.setValue("/root/main/cond/patientgrup/patientgruplist/pid", model.getValue("/root/main/cond/patientgrupInfo/patientgruplistInfo/pid"));
- }
- }
- model.setfocus("btn_search");
- }
- /**
- * @group :
- * @ver : 2007.06.18
- * @by : 정찬성
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 환자 정보 조회 combo
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fGetPatientList(){
- model.removenode("/root/send");
- model.makeValue("/root/send/wardcd", cmb_wardcd.value);
- model.makeValue("/root/send/roomcd", cmb_roomcd.value);
- if(submit("TRMNR07604")){
- }
- model.setfocus("cmb_pid");
- }
- /**
- * @group :
- * @ver : 2007.06.18
- * @by : 정찬성
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 병실 조회 combo
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fGetRoomList(){
- model.removenode("/root/send");
-
- model.makeValue("/root/send/wardcd", cmb_wardcd.value);
- if(submit("TRMNR07603")){
- }
- model.setfocus("cmb_roomcd");
- }
- /**
- * @group :
- * @ver : 2007.06.18
- * @by : 정찬성
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 병동 조회
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fGetWardList(){
- model.removenode("/root/send");
-
- model.makeValue("/root/send/wardcd", model.getValue("/root/main/cond/wardcdgrup/wardcdgruplist/wardcd"));
- model.makeValue("/root/send/deptsearchyn", "Y");
- if(submit("TRMNR07602")){
- if(model.getValue("/root/main/cond/wardpatientflag") == "ward" ){
- model.setfocus("cmb_wardcd");
- }else{
- model.setfocus("ipt_pid");
- }
- }
- }
- /**
- * @group :
- * @ver : 2007.12.07
- * @by : 양천덕
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 수혈현황조회 init
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fInit(){
- fGetWardList();// 병동코드 리스트
-
- rdo_wardpatientflag.dispatch("xforms-value-changed");
- }
- /**
- * @group :
- * @ver : 2007.06.07
- * @by : 양천덕
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : Exel 저장
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fSaveExcel(){
- var fileName = window.fileDialog("save", ",", false, "수혈현황조회_"+getCurrentDate(), "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
-
- if (fileName != "") {
- grd_execdetlgruplist.saveExcel(fileName, "SheetName", true, true, "", "", false);
- }
- }
|