123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152 |
- /*
- (SMMNW13700.xrm - JScript )
- - Version : Ver.1.00.01
- - Desc : 2010.05.18
- */
- var erdeptcd;
- /**
- * @group :
- * @ver : 2010.05.18
- * @by : byday
- * @type : function
- * @access : public
- * @desc : 화면 최초 로딩시 처리 함수
- * @param :
- * @return :
- */
- function fInit(){
- //날짜 세팅
- var currentDate = getCurrentDate();
- model.setValue("/root/main/cond/careinrmdd", currentDate);
- fSetDt();
- ipt_tm1.value = "0700";
- ipt_tm2.value = "0659";
-
- submit("TRMNW04705");
- // cmb_wardcd.select(0);
- addComboItem("cmb_roomcd", "전체", "");
-
- cmb_wardcd.value = getUserInfo("dutplcecd");
-
- fGetNursHardCdInfo("'002'", getCurrentDate());
- // model.getValue("/root/code/codeinfo/codelist/cdgrupid");
- erdeptcd = model.getValue("/root/code/codeinfo/codelist/cdid");
- }
- /**
- * @group :
- * @ver : 2010.05.18
- * @by : byday
- * @type : function
- * @access : public
- * @desc : 조회일자 수정시 처리
- * @param :
- * @return :
- */
- function fSetDt() {
- ipt_dd1.value = ipt_careinrmdd.value.toDate().getAddDate(-1).getDateFormat("YYYYMMDD");
- ipt_dd2.value = ipt_careinrmdd.value;
- }
- /**
- * @group :
- * @ver : 2010.05.18
- * @by : byday
- * @type : function
- * @access : public
- * @desc : 검색 버튼
- * @param :
- * @return :
- */
- function fSearch(){
- if ( erdeptcd == model.getValue("/root/main/cond/wardcd") )
- model.setValue("/root/main/cond/ordtype", "E");
- else
- model.setValue("/root/main/cond/ordtype", "I");
- if ( submit("TRMNW13701") ) {
- for ( var nCnt = grd_list.fixedRows; nCnt <= grd_list.rows; nCnt++ ) {
- if ( grd_list.valueMatrix(nCnt, grd_list.colRef("pinkyn")) == "Y" ){
- grd_list.rowStyle(nCnt, "data", "background-color") = "#FFB6C1";
- } else {
- grd_list.rowStyle(nCnt, "data", "background-color") = "#ffffff";
- }
- }
- }
- }
- /**
- * @group :
- * @ver : 2010.05.18
- * @by : byday
- * @type : function
- * @access : public
- * @desc : 병동코드에 해당되는 병실정보 조회
- * @param :
- * @return :
- */
- function fSearchRoomcd(){
- //병실정보 clear
- model.removenode('/root/init/roomcdgrup');
- //선택한 병동에 해당되는 병실 조회
- submit("TRMNR01003");
- addComboItem("cmb_roomcd", "전체", "");
- }
- /**
- * @group :
- * @ver : 2010.05.19
- * @by : byday
- * @type : function
- * @access : public
- * @desc : 간호정보조사기록 팝업
- * @param :
- * @return :
- */
- function fCarePopup() {
- var pinkyn = model.getValue("/root/main/list/list["+grd_list.row+"]/pinkyn");
- var indschacptstat = model.getValue("/root/main/list/list["+grd_list.row+"]/indschacptstat");
- if ( isNull(pinkyn) || isNull(model.getValue("/root/main/list/list["+grd_list.row+"]/pagecd"))) {
- } else if ( indschacptstat != "A" ) {
- messageBox("재원환자가 아니므로 기록확인을 위해서는 통합기록조회를 이용하시기 바랍니다.", "E");
- } else {
- //--------------------------상단올리기 flag --------------------------
- // 01 O:외래, I:입원구분, T:수술예약 , E:응급
- // 02 등록번호
- // 03 수술시작일자
- // 04 cretno(없는 경우 ""로 처리)
- // 05 기관코드
- // 06 집도과부서
- // 07 집도의ID
- // 08 환자구분
- // 09 F -처리구분 무조건 F로 설정
- // 10 수술예약번호
- // 11 수술이력번호
- // 12 조회일자 2007-09-13 오지훈 추가...
- //--------------------------------------------------------------------
-
- var ordtype = model.getValue("/root/main/cond/ordtype");//"I";
-
- var ioflag = model.getValue("/root/main/cond/ordtype") ;
- if ( ioflag == "D" ) ioflag == "I";
-
- ordtype = ioflag;
- // 상단 세팅을 위한 파라미터
- setParameter("condparam", ordtype + "▦"
- + model.getValue("/root/main/list/list["+grd_list.row+"]/pid") + "▦"
- + model.getValue("/root/main/list/list["+grd_list.row+"]/indd") + "▦"
- + model.getValue("/root/main/list/list["+grd_list.row+"]/cretno") + "▦"
- + model.getValue("/root/main/list/list["+grd_list.row+"]/instcd") + "▦"
- + model.getValue("/root/main/list/list["+grd_list.row+"]/recdd")
-
- );
- modal("SPMMO08900", 1, "", "", "", "SPMMO08900", "", "left:0; right:0; width:0; height:0; sysmenu:hidden; caption:hidden; min:hidden, max:hidden;");
- //상단 세팅 화면 사이즈 작게 띄움 (id,monNo,xPos,yPos,wid,ref,resultref,userProp,prevPos)
- modal(model.getValue("/root/main/list/list["+grd_list.row+"]/pagecd"));
- }
- }
|