123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152 |
- /*
-
- 복막투석 History 관리(SMMND02200.xrw - JScript )
- - Version :
- 1) : Ver.1.00.01
- */
- //** 전역변수 **//
-
- /**
- * @group :
- * @ver : 2007.06.15
- * @by : 김진아
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 화면 초기화
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fDone(){
- //**상단정보 초기화**//
- delPatientInfos(); //화면상단정보 삭제
- setGlobalVariable("paminfo", ""); //원무정보 reset
-
- //**그리드 초기화**//
- model.removeNodeset("/root/main/pdmatnpatlist"); // 복막투석 유지환자 리스트
- model.removeNodeset("/root/main/pdhistlist"); // 복막투석 History 리스트
-
- // 조회일자 설정
- model.makeValue("/root/main/condition/srchtodd", getCurrentDate()); // 현재일자
- model.makeValue("/root/main/condition/srchfromdd", getDateCalc(getCurrentDate(), 365)); // 365일 이전 일자
- model.refresh();
-
- //**공통코드 가져오기**//
- zbcfGetCodeList( new Array ( "M0130" // APD종류
- , "M0131" // 복막투석액 회사명
- , "M0132" // 복막투석액
- )
- , new Array ( "/root/init/M0130list" // APD종류
- , "/root/init/M0131list" // 복막투석액 회사명
- , "/root/init/M0132list" // 복막투석액
- )
- );
- }
- /**
- * @group :
- * @ver : 2007.06.15
- * @by : 김진아
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 복막투석 유지환자 리스트 조회
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fSrchPDMatnPatList(){
- model.removenode("/root/send");
- model.makeNode("/root/send");
- model.makeValue("/root/send/reqdata/pid", model.getValue("/root/main/condition/pid"));
- model.makeValue("/root/send/reqdata/dialflag", "P"); // 투석구분 (P:복막)
- model.removeNodeset("/root/main/pdmatnpatlist/pdmatnpatinfo"); // 복막투석 유지환자 리스트 초기화
- model.removeNodeset("/root/main/pdhistlist/pdhistinfo"); // 복막투석 History 리스트 초기화
- model.setValue("/root/main/condition/selpid" ,"");
-
- submit("TRMND02201");
- }
- /**
- * @group :
- * @ver : 2007.06.15
- * @by : 김진아
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 선택한 환자정보 설정 (복막투석 유지환자 리스트 더블클릭 시)
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fGetPatInfo(){
- var iRow = grd_pdmatnpatinfo.row;
- var sSelPid = grd_pdmatnpatinfo.textmatrix(iRow, 1); // 등록번호
- model.setValue("/root/main/condition/selpid", sSelPid);
-
- // 조회조건 초기화
- model.setValue("/root/main/condition/srchflag", 1); // 조회구분 Default설정 (1:전체)
- model.makeValue("/root/main/condition/srchtodd", getCurrentDate()); // 조회일자 (현재일자)
- model.makeValue("/root/main/condition/srchfromdd", getDateCalc(getCurrentDate(), 365)); // 조회일자 (365일 이전 일자)
- // 유지환자 리스트 셀 색상 초기화 (white)
- for(var i=1; i<=grd_pdmatnpatinfo.rows; i++) {
- grd_pdmatnpatinfo.cellstyle("background-color", i, 1, i, 4) = "white";
- }
-
- // 선택 행 셀 색상 지정 #ffd9ff
- grd_pdmatnpatinfo.cellstyle("background-color", iRow, 1, iRow, 4) = "red";
- model.refresh();
- }
- /**
- * @group :
- * @ver : 2007.06.15
- * @by : 김진아
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 복막투석 Histoty 리스트 조회
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fSrchPDHistList(){
- // 조회기간 체크
- if(model.getValue("/root/main/condition/srchfromdd") > model.getValue("/root/main/condition/srchtodd")) {
- messageBox("예약일자 기간이 올바르지 않습니다.", "E");
- var sCurrentDate = getCurrentDate(); // 현재일자
- model.setValue("/root/main/condition/srchfromdd", getDateCalc(sCurrentDate, 365));
- model.setValue("/root/main/condition/srchtodd" , sCurrentDate);
- model.refresh();
- }
-
- model.removenode("/root/send");
- model.makeNode("/root/send");
- model.makeValue("/root/send/reqdata/pid", model.getValue("/root/main/condition/selpid"));
- model.makeValue("/root/send/reqdata/srchfromdd", model.getValue("/root/main/condition/srchfromdd"));
- model.makeValue("/root/send/reqdata/srchtodd", model.getValue("/root/main/condition/srchtodd"));
- model.makeValue("/root/send/reqdata/srchflag", model.getValue("/root/main/condition/srchflag"));
- model.removeNodeset("/root/main/pdhistlist/pdhistinfo");
-
- // 유지환자 리스트 셀 색상 초기화 (white)
- for(var i=1; i<=grd_pdmatnpatinfo.rows; i++) {
- grd_pdmatnpatinfo.cellstyle("background-color", i, 1, i, 4) = "white";
- }
-
- submit("TRMND02202");
- }
- function fUseridPopup(pPath, pNodeID, pNodeNM, pNodeRrgsNo1, pNodeRrgsNo2, pDOC) {
- model.removeNodeset("/root/properties/parameters/SendData/SendDatavalue");
- modal("SMMNE03700", 1, event.screenX-100, event.screenY-100, "SMMNE03700", pPath+pNodeID, "/root/init/searchitem");
- var pParam = model.getValue("/root/properties/parameters/SendData/SendDatavalue");
- var pParamValue = pParam.split("|");
-
- model.setValue(pPath+pNodeID, pParamValue[0]);
- ipt_pid.refresh();
- }
|