123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173 |
- /*
-
- 전문간호 기준자료관리(SMMNS00700.xrw - JScript )
- - Version :
- 1) : Ver.1.00.01
- */
- var suppdeptcd = '';//메뉴그룹에 등록된 사용부서코드
- /**
- * @group :
- * @ver : 2007.05.28
- * @by : 정경화
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 기준자료관리 조회
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function select_spclstand(){
- model.removeNodeSet("/root/main/spclstand/spcllist");
- model.removeNode('/root/send');
- model.makeValue('/root/send/spclcareflag', model.getValue('/root/cond/spclcareflag'));
- submit("TRMNS00701");
-
- }
-
- //초기정보조회(전문분야, 공통코드)
- /***********************************************************************************************************************************************************
- * @author : dhkim
- * @desc : 전문분야 코드및 명칭을 조회한다.
- ***********************************************************************************************************************************************************/
- function fSpclCareSearch(suppdeptcd){
-
- //20090205 dhkim
- //전문간호/BMT전문간호 로 나눠지게 되면서 사용부서에 해당하는 분야로 각각 등록됨.
- model.removenode('/root/send');
- model.makeValue('/root/send/suppdeptcd', suppdeptcd);
-
- model.removenode('root/hidden/spclcarefildflaginfo');
- model.makenode('root/hidden/spclcarefildflaginfo');
-
- if(!submit('TRMNS00107')){
- messageBox('전문분야기준자료 조회를 실패하였습니다.', 'E999');
- return false;
- }
- cmb_spcl.select(0); //전문분야의 콤보 제일 첫번째로 선택된 상태
- }
- /**
- * @group :
- * @ver : 2007.05.28
- * @by : 정경화
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 전문간호 기준자료관리 수정시 상태값 변경
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fstandstat(){
-
- iRow = grd_standlist.row;
-
- if ((grd_standlist.textmatrix(iRow,2) != "") || // 의뢰구분
- (grd_standlist.textmatrix(iRow,5) != "") || // 현장검사
- (grd_standlist.textmatrix(iRow,6) != "")){ // 시행체크방법
- grd_standlist.textMatrix(iRow, 1) = "수정"; //상태값 지정(update)
- }
- }
- /**
- * @group :
- * @ver : 2007.05.28
- * @by : 정경화
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : grid 줄추가/줄삭제
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fgriditem(flag){
- iRow = grd_standlist.row;
-
- if (flag == "I") { // 행추가
- grd_standlist.addItem();
- //alert(grd_standlist.row);
- grd_standlist.textMatrix(grd_standlist.row, 1) = "입력"; //상태값 지정(update)
- }
- else if (flag == "D") { // 행삭제
- if (grd_standlist.textmatrix(iRow,1) == "입력") {
- grd_standlist.deleteItem(iRow);
- }
- else {
- grd_standlist.textMatrix(iRow, 1) = "삭제"; //상태값 지정(update)
- }
- }
- }
- /**
- * @group :
- * @ver : 2007.05.28
- * @by : 정경화
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 전문간호 기준자료 관리(수정/삭제)
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function Savestand(){
- model.removenode("/root/send/standsave");
- model.makeValue("/root/send/standsave",grd_standlist.getupdatedataAll("i"));
-
- submit("TXMNS00701");
- model.refresh();
- }
-
- /**
- * @group :
- * @ver : 2007.05.29
- * @by : 정경화
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 기준자료관리 처방검색
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function select_spclprcp(){
- //model.removeNodeSet("/root/main/prcpinfo/prcplist");
- model.removeNode('/root/send');
- model.makeValue('/root/send/spclcareflag', model.getValue('/root/cond/spclcareflag'));
- model.makeValue('/root/send/prcpcode', model.getValue('/root/cond2/prcpcode'));
- model.makeValue('/root/send/prcpflag', model.getValue('/root/cond2/prcpflag'));
- submit("TRMNS00702");
-
- }
-
- /**
- * @group :
- * @ver : 2007.05.28
- * @by : 정경화
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 전문간호 기준자료 관리(입력)
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function Insstand(){
- model.removenode("/root/send/standins");
- model.makeValue("/root/send/standins",grd_prcplist.getupdatedataAll("i"));
-
- submit("TXMNS00702");
- model.refresh();
- }
|