123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189 |
- /*
- - ▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩
- 진료현황판 ( SMMMO04900_진료현황판.xrw - JScript )
- - ▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩
- */
- /**
- * @desc : 화면 초기화
- * @
- * @param :
- * @return :
- * @author : 손은연
- * @---------------------------------------------------
- */
- function fInitialize_SMMMO04900(){
- model.setValue("/root/main/cond/orddd", getCurrentDate());
- mmbfGetDeptCodeComboList("/root/send/reqdata", "/root/init/orddept", "A");
- mmbfGetUserComboList("/root/send/reqdata", "/root/init/userlist", getUserInfo("dutplcecd"), "0330");
- addComboInstance("/root/init/userlist" , "userid^usernm" , "-^전체", "usercombo"); //의사콤보 전체항목 추가
-
- model.removeNodeset("/root/main/noticeinfo");
- model.removeNodeset("/root/patinfo/patinfolist");
- model.setValue("/root/main/cond/orddeptcd", getUserInfo("dutplcecd"));
- model.setValue("/root/main/cond/orddrid" , getUserInfo("userid"));
- fReqGetOrdStatBoardInfo(); //진료현황판 외래, 입원, 응급, 기타 환자현황수 조회
-
- fReqGetAftCertPatInfo(); //후인증대상 조회
-
- fGeqGetHealCareInfo(); //협력의뢰현황 조회(최근4개월) 20120405 이윤주
-
- model.refresh();
-
- if(fContainsHardCD("487", "Y")) { // 487 CVR 자동 팝업 여부
- if(parseInt(model.getValue("/root/main/disppatinfo/disppatcnt/cvrcnt"))> 0 ) {
- modal("SPMMO04901");
- }
- }
-
- if(parseInt(model.getValue("/root/main/disppatinfo/disppatcnt/tellprcpcnt"))> 0 ) { // 구두처방 자동 팝업
- modal("SPMMO00710");
- }
- }
- /**
- * @desc : 진료현황판 외래, 입원, 응급, 기타 환자현황수 조회
- * @
- * @param :
- * @return :
- * @author : 오지훈
- * @---------------------------------------------------
- */
- function fReqGetOrdStatBoardInfo(){
- model.removeNodeset("/root/send/reqdata");
- model.removeNodeset("/root/main/unprepinfo");
- model.makeValue("/root/send/reqdata/orddeptcd", model.getValue("/root/main/cond/orddeptcd"));
- model.makeValue("/root/send/reqdata/orddrid" , model.getValue("/root/main/cond/orddrid"));
- model.makeValue("/root/send/reqdata/stnddd" , model.getValue("/root/main/cond/orddd"));
- if(submit("TRMMO04906")){
- var recindxyn = model.getValue("/root/main/unprepinfo/unprepcnt/recindxyn");
- if(recindxyn == "Y"){
- cap_unpreptiltle.attribute("top") = "174px";
-
- cap_recindxpatcnt.attribute("visibility") = "visible";
- opt_recindxpatcnt.attribute("visibility") = "visible";
- img_recindxpatcnt.attribute("visibility") = "visible";
- btn_recindxpatcnt.attribute("visibility") = "visible";
- }else{
- cap_unpreptiltle.attribute("top") = "193px";
-
- cap_recindxpatcnt.attribute("visibility") = "hidden";
- opt_recindxpatcnt.attribute("visibility") = "hidden";
- img_recindxpatcnt.attribute("visibility") = "hidden";
- btn_recindxpatcnt.attribute("visibility") = "hidden";
- }
- }
- if(submit("TRMMO04905")){
- model.makeValue("/root/main/disppatinfo/disppatcnt/cosigncnt", model.getValue("/root/main/unprepinfo/unprepcnt/cosigncnt"));
- model.makeValue("/root/main/disppatinfo/disppatcnt/defetcnt", model.getValue("/root/main/unprepinfo/unprepcnt/defetcnt"));
- model.makeValue("/root/main/disppatinfo/disppatcnt/admpatcnt", model.getValue("/root/main/unprepinfo/unprepcnt/admpatcnt"));
- model.makeValue("/root/main/disppatinfo/disppatcnt/erunprepcnt", model.getValue("/root/main/unprepinfo/unprepcnt/ercnt"));
- model.makeValue("/root/main/disppatinfo/disppatcnt/recindxcnt", model.getValue("/root/main/unprepinfo/unprepcnt/recindxcnt"));
- model.makeValue("/root/main/disppatinfo/disppatcnt/recindxyn", model.getValue("/root/main/unprepinfo/unprepcnt/recindxyn"));
- model.removeNodeset("/root/main/unprepinfo");
- }
- }
- /**
- * @desc : 대상 및 긴급공지사항 조회
- * @
- * @param :
- * @return :
- * @author : 오지훈
- * @---------------------------------------------------
- */
- function fReqGetKeyTrgtList(){
- //공지사항등록그리드를 초기화
- model.removeNodeset("/root/main/noticeinfo");
- model.removeNodeset("/root/main/delivetrgt");
-
- //대상을 조회(전체, 진료과, 진료의사별)
- model.copyNode("/root/send/reqdata","/root/main/cond");
- if(submit("TRMMO04903")){
- model.copyNode("/root/send/reqdata","/root/main/delivetrgt/delivetrgt");
- model.copyNode("/root/send/savedata","/root/main/delivetrgt/delivedepttrgt");
- model.copyNode("/root/send/save2data","/root/main/delivetrgt/delivedrtrgt");
- //대상을 가지고 대상에 해당하는 공지사항을 조회
- if(submit("TRMMO04901")){
- //긴급 공지인 경우 글자색 변경
- var gridrows = grd_notice.rows - grd_notice.fixedRows;
-
- for(var i = 1; i <= gridrows ; i++){
- var deliveflag = model.getValue("/root/main/noticeinfo/noticelist[" + i + "]/deliveflag");
- if(deliveflag == '1'){
- grd_notice.rowstyle(i, "data", "color") = "#c0000ff";
- }
- }
- model.refresh();
- }
- }
- }
- /**
- * @desc : 후인증환자리스트 조회
- * @
- * @param :
- * @return :
- * @author : 오지훈
- * @---------------------------------------------------
- */
- function fReqGetAftCertPatList(){
- model.removeNodeset("/root/send/reqdata");
- model.makeValue("/root/send/reqdata/fromdd" , model.getValue("/root/main/cond/orddd"));
- model.makeValue("/root/send/reqdata/todd" , model.getValue("/root/main/cond/orddd"));
- model.makeValue("/root/send/reqdata/orddeptcd", model.getValue("/root/main/cond/orddeptcd"));
- model.makeValue("/root/send/reqdata/orddrid" , model.getValue("/root/main/cond/orddrid"));
- if(submit("TRMMO02702")){
- }
- }
- /*
- * @desc : 후인증 환자 정보 조회
- * @
- * @param :
- * @return :
- * @author : 오지훈
- * @---------------------------------------------------
- */
- function fReqGetAftCertPatInfo(){
- model.removeNodeset("/root/send/reqdata");
- //model.makeValue("/root/send/reqdata/fromdd" , model.getValue("/root/main/cond/orddd"));
- //model.makeValue("/root/send/reqdata/todd" , model.getValue("/root/main/cond/orddd"));
- model.makeValue("/root/send/reqdata/fromdd" , getNewDate().getAddDate(-60,"D").getDateFormat("YYYYMMDD"));
- model.makeValue("/root/send/reqdata/todd" , getCurrentDate());
- model.makeValue("/root/send/reqdata/orddeptcd", model.getValue("/root/main/cond/orddeptcd"));
- model.makeValue("/root/send/reqdata/orddrid" , model.getValue("/root/main/cond/orddrid"));
- model.makeValue("/root/send/reqdata/signyn" , "N");
- if(submit("TRMMO02702")){
- }
- }
- function fGeqGetHealCareInfo() {
- model.removeNodeset("/root/send/reqdata");
-
- var CurrentDate = getCurrentDate();
-
- var fromdd = CurrentDate.toDate().getAddDate(-4,"M").getDateFormat();
-
- model.makeValue("/root/send/reqdata/fromdd" , fromdd);
- model.makeValue("/root/send/reqdata/todd" , CurrentDate);
- model.makeValue("/root/send/reqdata/orddeptcd", model.getValue("/root/main/cond/orddeptcd"));
- model.makeValue("/root/send/reqdata/orddrid" , model.getValue("/root/main/cond/orddrid"));
- model.makeValue("/root/send/reqdata/replflag" , "P");
- model.makeValue("/root/send/reqdata/qreplflag" , "Y");
- model.makeValue("/root/send/reqdata/saveflag" , "N");
- model.makeValue("/root/send/reqdata/patflag" , "3");
-
- if ( getUserInfo("dutplceinstcd") == "031") {
- model.makeValue("/root/send/reqdata/hospgrade" , "CA");
- }
-
- if(submit("TRARC02601")){
- }
-
-
- }
|