123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440 |
- /*
- 혈액투석간호기록(SMMND00700.xrw - JScript )
- - Version :
- 1) : Ver.1.00.01
- */
- //**전역변수**//
- var selRsrvdd = "";
- var selPid = "";
- var sXml = "";
- var selInstcd = "";
- var selHdcretno = ""; //추가-kys-20091222
- var selShiftflag = ""; //추가-kys-20100208
- var chkflag = "N"; //20110404_KNUH_Start
- var XmlInstNm = "aterlprelist/aterlprespec" + " " // AP
- + "veinprecntslist/veinprecntsspec" + " " // VP
- + "cruedrugspeclist" + " " // 처치 및 투약 내역
- + "nbpsinspspeclist" + " " // 임상검사 내역
- + "dialrecspeclist" + " " // 투석기록 내역
- + "dialvitalsigninspspeclist" ; // Vital Sign 내역
- /**
- * @group :
- * @ver : 2007.05.31
- * @by : 김진아
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 화면 초기화
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fDone(){
- //**그리드 초기화**//
- model.removeNodeset("/root/main/rsrvpatlist" ); // 예약환자 리스트
- //model.removeNodeset("/root/main/spcffactlist"); // 특이사항 리스트
- model.removeNodeset("/root/main/reclist/recinfo/cruedrugspeclist/cruedrugspec"); // 처치 및 투약 리스트
- model.removeNodeset("/root/main/reclist/recinfo/nbpsinspspeclist/nbpsinspspec"); // 임상검사 리스트
- model.removeNodeset("/root/main/reclist/recinfo/dialrecspeclist/dialrecspec" ); // 투석기록 리스트
- model.removeNodeset("/root/main/reclist/recinfo/dialvitalsigninspspeclist/dialvitalsigninspspec"); // Vital Sign 리스트
- //**공통코드 가져오기**//
- zbcfGetCodeList( new Array ( "M0083" // 혈관종류
- , "M0127" // 혈액투석기종류
- , "M0128" // 혈액투석기
- , "M0129" // 투석장소
- , "M0345" // 혈액투석액
- , "M0260" // 간호진술문구분코드
- )
- , new Array ( "/root/init/M0083list" // 혈관종류
- , "/root/init/M0127list" // 혈액투석기종류
- , "/root/init/M0128list" // 혈액투석기
- , "/root/init/M0129list" // 투석장소
- , "/root/init/M0345list" // 혈액투석액
- , "/root/init/M0260list" // 간호진술문구분코드
- )
- );
- //** 상단환자 화면설정 **//
- var node = getGlobalVariable("paminfo");
- setCSVToNode("/root/temp/paminfo", node);
- if(getNodesetCount("/root/temp/paminfo/list") > 0) {
- model.setValue("/root/main/condition/pid", model.getValue("/root/temp/paminfo/list/pid")); // 등록번호
- } else {
- model.setValue("/root/main/condition/rsrvdd", getCurrentDate()); // 예약일자(default) 설정
- }
- fSrchRsrvPatList(); // 예약환자 리스트 조회
- if(getNodesetCount("/root/temp/paminfo/list") > 0) {
- fInitInfo(); // 화면 초기화
- //fGetSelPatInfo("2"); // 환자정보설정
- //fSetHngBaseInfo(); // 환자의 상단정보 설정
- //fPastDialRecInfo(); // 이전 혈액투석간호기록 조회
- //fSrchSpcfFactList(); // 특이사항 리스트 조회
- //fDialRecSpecList(); // 투석기록 리스트 조회
- }
- model.refresh();
- }
- /**
- * @group :
- * @ver : 2007.06.19
- * @by : 김진아
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 화면상단 정보설정
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fSetHngBaseInfo(){
- var iRow = grd_rsrvpatinfo.row -1;
- // 상단 환자정보 parameter
- var sIoflag = model.getValue("/root/main/rsrvpatlist/rsrvpatinfo["+iRow+"]/ioflag");
- var sPid = model.getValue("/root/main/rsrvpatlist/rsrvpatinfo["+iRow+"]/pid");
- var sRsrvdd = model.getValue("/root/main/rsrvpatlist/rsrvpatinfo["+iRow+"]/rsrvdd");
- var sCretno = model.getValue("/root/main/rsrvpatlist/rsrvpatinfo["+iRow+"]/cretno");
- model.removenode ("/root/send");
- model.makeNode ("/root/send");
- model.makeValue ("/root/send/reqdata/pid" , sPid );
- model.makeValue ("/root/send/reqdata/ioflag", sIoflag);
- model.makeValue ("/root/send/reqdata/rsrvdd", sRsrvdd);
- model.makeValue ("/root/send/reqdata/cretno", sCretno);
- model.removeNodeset("/root/temp/gettoplist");
- submit("TRMND00707");
- var sCretno2 = model.getValue("/root/temp/gettoplist/gettopinfo/cretno" ); //생성번호
- var sSeqno = model.getValue("/root/temp/gettoplist/gettopinfo/seqno" ); //일련번호
- var sInstcd = model.getValue("/root/temp/gettoplist/gettopinfo/instcd" ); //기관코드
- var sIndd = model.getValue("/root/temp/gettoplist/gettopinfo/indd" ); //입원일자
- var sOrddd = model.getValue("/root/temp/gettoplist/gettopinfo/orddd" ); //진료일자
- var sAcptseqno = model.getValue("/root/temp/gettoplist/gettopinfo/acptseqno"); //등록일련번호
- var sOrgorddd = model.getValue("/root/temp/gettoplist/gettopinfo/orgorddd" ); //원진료일자
- var sParam;
-
-
- //2014707 by kya 추가 : DSC환자일경우, 입원환자로 인식하도록 함
- if ( sIoflag == "D"){
- sIoflag = "I" ;
- }
-
- if(sIoflag == "O") { //외래환자일 경우(histstat : "O")
- sParam = (sIoflag + "▦" + sPid + "▦" + sOrddd + "▦" + sCretno2 + "▦" + sInstcd + "▦" + sAcptseqno + "▦" + sOrgorddd );
- } else { //입원/응급환자일 경우(histstat : "I", "E")
- //2008-10-27 실재 조회 일자는 예약일자 기준으로 조회해야 상단이 올라가므로 변경하였음.
- //sParam = (sIoflag + "▦" + sPid + "▦" + sIndd + "▦" + sCretno + "▦" + sInstcd + "▦" + sIndd + "▦");
-
- sParam = (sIoflag + "▦" + sPid + "▦" + sIndd + "▦" + sCretno2 + "▦" + sInstcd + "▦" + sRsrvdd + "▦");
- }
- // alert("sParam = " + sParam );
- setParameter("condparam", sParam);
- modal("SPMMO08900", 1, "", "", "", "", "", "left:0; right:0; width:0; height:0; sysmenu:hidden; caption:hidden; min:hidden, max:hidden;");
- model.removeNode("/root/temp/paminfo");
- model.makeNode("/root/temp/paminfo");
- var node = getGlobalVariable("paminfo");
- setCSVToNode("/root/temp/paminfo", node);
- selPid = model.getValue("/root/temp/paminfo/list/pid"); // 선택환자 등록번호
- }
- /**
- * @group :
- * @ver : 2007.06.19
- * @by : 김진아
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 투석기록 팝업
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fPopDialRec(){
- var ioflag = model.getValue("/root/main/reclist/recinfo/recinfolists/ioflag");
- var sPid = model.getValue("/root/main/patinfo/pid");
- var sRsrvdd = model.getValue("/root/main/patinfo/rsrvdd");
- var sDialfalg = model.getValue("/root/main/patinfo/dialflag");
- var sInstcd = model.getValue("/root/main/patinfo/instcd");
- //상단정보와 정합성체크루틴 추가 20141205 kya
- //start
- model.removeNode("/root/temp/paminfo");
- model.makeNode("/root/temp/paminfo");
- var node = getGlobalVariable("paminfo");
- setCSVToNode("/root/temp/paminfo", node);
-
- var tPid = model.getValue("/root/temp/paminfo/list/pid"); // 등록번호
- //alert(" sPid = " + sPid + "," + "tPid =" + tPid );
- if ( sPid != tPid ) {
- messageBox("투석기록 대상자와 상단정보가 다릅니다. 대상자를 다시 선택해 주십시오.", "E");
- return;
- }
- //end
- parammsg = "recflag▦dutplaccd▦reclnkkey▩L▦014▦014,"+sPid+","+sRsrvdd+","+sDialfalg+","+sInstcd+"▩";
- setParameter("SMMNR03400_ParamBase", parammsg); // 파라미터 설정
- modal("SMMNR03400",1,"5","5"); // 간호일지I 화면 팝업
- fDialRecSpecList(); // 투석기록 리스트 조회
- }
- /**
- * @group :
- * @ver : 2007.06.03
- * @by : 김진아
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 투석기록 리스트 조회
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fDialRecSpecList(){
- // 투석기록 버튼 활성화
- btn_dialrec.disabled = false;
- var sPid = model.getValue("/root/main/patinfo/pid");
- var sRsrvdd = model.getValue("/root/main/patinfo/rsrvdd");
- var sDialfalg = model.getValue("/root/main/patinfo/dialflag");
- var sInstcd = model.getValue("/root/main/patinfo/instcd");
- model.removeNode("/root/temp/paminfo");
- model.makeNode("/root/temp/paminfo");
- var node = getGlobalVariable("paminfo");
- setCSVToNode("/root/temp/paminfo", node);
- model.removenode("/root/send");
- model.makeNode("/root/send");
- model.makeValue("/root/send/reqdata/pid" , model.getValue("/root/temp/paminfo/list/pid" )); // 등록번호 - 필수
- model.makeValue("/root/send/reqdata/indd" , model.getValue("/root/temp/paminfo/list/indd" )); // 입원일자 (입원환자의 경우)
- model.makeValue("/root/send/reqdata/orddd" , model.getValue("/root/temp/paminfo/list/orddd" )); // 진료일자 (외래환자의 경우)
- model.makeValue("/root/send/reqdata/cretno" , model.getValue("/root/temp/paminfo/list/cretno")); // 생성번호 - 필수
- model.makeValue("/root/send/reqdata/ioflag" , model.getValue("/root/temp/paminfo/list/ioflag")); // I/O 구분 (I : 입원일자, O : 진료일자 필수 입력) - 필수
- model.makeValue("/root/send/reqdata/dnarflag" , "%" ); // dnar구분 (전체 : %) - 필수
- model.makeValue("/root/send/reqdata/sortseq" , "D" ); // 정렬순서 (오름차순 : A, 내림차순 : D) - 필수
- model.makeValue("/root/send/reqdata/recflag" , "L" ); // 기록구분 - 필수 (L: 인공신장실)
- model.makeValue("/root/send/reqdata/reclnkkey", "014,"+sPid+","+sRsrvdd+","+sDialfalg+","+sInstcd ); // 기록연계키 - 필수
- model.makeValue("/root/send/reqdata/instcd" , model.getValue("/root/temp/paminfo/list/instcd")); // 기관코드 - 필수
- model.makeValue("/root/send/reqdata/prestdt" , getCurrentDate()+getCurrentTime() ); // 현재일시(14자리) - 필수
- model.removeNodeset("/root/main/reclist/recinfo/dialrecspeclist/dialrecspec/dialrec");
- //** 투석기록 리스트 조회 **//
- submit("TRMND00703", false);
- //20100202-kys-소경화샘 요청-오름차순으로 변경후 젤 하위 행에 위치 옮겨지게 수정
- //grd_dialrecspec.refresh(); //그리드에 데이터가 매칭되기 전에 아래의 속성을 타는 경향이 있어 refresh함.
- //var sTotRows = grd_dialrecspec.rows - grd_dialrecspec.fixedRows;
- //grd_dialrecspec.bottomrow = sTotRows;
- }
- /**
- * @group :
- * @ver : 2007.05.31
- * @by : 김진아
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 예약환자 리스트 조회
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fSrchRsrvPatList(){
- //** 초기화 **//
- var xPath = "/root/main/reclist/recinfo/recinfolists/";
- fInitInfo(); // 화면 초기화
- // 예약환자 리스트 셀 색상 초기화 (white)
- //for(var i=1; i<=grd_rsrvpatinfo.rows; i++) {
- // grd_rsrvpatinfo.cellstyle("background-color", i, 1, i, 5) = "white";
- //}
- 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/rsrvdd",model.getValue("/root/main/condition/rsrvdd"));
- //20090109 dhkim
- //내환자 추가
- model.makeValue("/root/send/reqdata/mypid",model.getValue("/root/main/condition/mypid"));
- model.removeNodeset("/root/main/rsrvpatlist");
- submit("TRMND00701", false);
- }
- /**
- * @group :
- * @ver : 2007.05.31
- * @by : 김진아
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 선택환자 등록번호, 예약일자 얻어옴
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fGetSelPatInfo(iRow){
-
- selPid = grd_rsrvpatinfo.textmatrix(iRow, grd_rsrvpatinfo.colRef("pid")); // 선택한 환자의 등록번호
- selRsrvdd = grd_rsrvpatinfo.textmatrix(iRow, grd_rsrvpatinfo.colRef("rsrvdd")); // 선택한 환자의 예약일자(전역변수)
- selInstcd = grd_rsrvpatinfo.textmatrix(iRow, grd_rsrvpatinfo.colRef("instcd")); // 사용자의 근무지기관코드
- var sIoflag = grd_rsrvpatinfo.textmatrix(iRow, grd_rsrvpatinfo.colRef("ioflag")); // 선택한 환자의 입원외래구분
- selHdcretno = grd_rsrvpatinfo.textmatrix(iRow, grd_rsrvpatinfo.colRef("hdcretno")); // 선택한 환자의 hdcretno-kys-20091222
- selShiftflag = grd_rsrvpatinfo.textmatrix(iRow, grd_rsrvpatinfo.colRef("shiftflagnm")); // 선택한 환자의 shiftflag-kys-20100208
- // 예약환자 리스트 셀 색상 초기화 (white)
- for(var i=1; i<=grd_rsrvpatinfo.rows; i++) {
- grd_rsrvpatinfo.cellstyle("background-color", i, 1, i, 7) = "white"; //회차,shift구분추가로인한 인덱스변경 5->7-kys-20091222
- }
- // 선택 행 셀 색상 지정
- grd_rsrvpatinfo.cellstyle("background-color", iRow, 1, iRow, 7) = "#ffd9ff"; //회차,shift구분추가로인한 인덱스변경 5->7-kys-20091222
- // 선택한 환자의 등록번호 및 예약일자, 입원외래구분 지정
- model.removenode("root/temp/pid");
- model.makeValue("root/temp/pid", selPid);
- model.removenode("/root/main/reclist/recinfo/recinfolists/pid");
- model.makeValue("/root/main/reclist/recinfo/recinfolists/pid", selPid);
- model.removenode("/root/main/reclist/recinfo/recinfolists/rsrvdd");
- model.makeValue("/root/main/reclist/recinfo/recinfolists/rsrvdd", selRsrvdd);
- model.removenode("/root/main/reclist/recinfo/recinfolists/ioflag");
- model.makeValue("/root/main/reclist/recinfo/recinfolists/ioflag", sIoflag);
- model.removenode("/root/main/reclist/recinfo/recinfolists/hdcretno"); //추가-kys-20091222
- model.makeValue("/root/main/reclist/recinfo/recinfolists/hdcretno", selHdcretno);
- model.removenode("/root/temp/tmpselinfo/tmpshiftflag"); //기록삭제시 알림에 나타내기위해 추가-kys-20100208
- model.makeValue("/root/temp/tmpselinfo/tmpshiftflag", selShiftflag);
- model.removenode("/root/temp/tmpselinfo/tmptstvdd"); //기록삭제시 알림에 나타내기위해 추가-kys-20100208
- model.makeValue("/root/temp/tmpselinfo/tmptstvdd", selRsrvdd);
- model.makeValue("/root/main/reclist/recinfo/recinfolists/dialflag", "H"); //투석구분
- //2008-08-08 추가
- model.setValue("/root/main/patinfo/pid", selPid);
- model.setValue("/root/main/patinfo/rsrvdd", selRsrvdd);
- model.setValue("/root/main/patinfo/instcd", selInstcd);
- model.setValue("/root/main/patinfo/dialflag","H");
- // 특이사항 리스트 버튼 활성화
- btn_addrowspcffact.disabled = false;
- btn_delrowspcffact.disabled = false;
- btn_savespcffact.disabled = false;
-
- // 혈관내압측정비 리스트 버튼 활성화 2011.10.05 by kya
- btn_addrowbvip.disabled = false;
- btn_delrowbvip.disabled = false;
- btn_savebvip.disabled = false;
-
- model.refresh()
-
- }
- /**
- * @group :
- * @ver : 2007.06.01
- * @by : 김진아
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 특이사항 리스트 조회
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fSrchSpcfFactList_original(){
- model.removenode("/root/send");
- model.makeNode ("/root/send");
- model.makeValue("/root/send/reqdata/pid", selPid);
- model.removeNodeset("/root/main/spcffactlist");
- submit("TRMND00702", false);
- }
- function fSrchSpcfFactList(vGrdObj){
- model.removenode("/root/send");
- model.makeNode ("/root/send");
- model.makeValue("/root/send/reqdata/pid", selPid);
- if ( vGrdObj == grd_spcffactinfo ){
- //model.removeNodeset("/root/main/spcffactlist");
- model.makeValue("/root/send/reqdata/itemflag", "02");
- submit("TRMND00702", false);
- //alert("3");
- } else {
- //model.removeNodeset("/root/main/bviplist");
- model.makeValue("/root/send/reqdata/itemflag", "09");
- //alert("4");
- submit("TRMND00711", false);
- //alert("5");
- }
- }
- /**
- * @group :
- * @ver : 2007.06.05
- * @by : 김진아
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 이전 혈액투석간호기록 정보 조회
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fPastDialRecInfo(srchflag){
- var xPath = "/root/main/reclist/recinfo/recinfolists/"; // 투석기록정보 경로
- var xTmpPath = "/root/temp/recinfolists/"; // 투석기록정보 임시저장 경로
- // model.makeValue("/root/main/reclist/recinfo/recinfolists/pid", selPid);
- var currentDD = getCurrentDateTime();
- model.removenode("/root/send");
- model.makeNode ("/root/send");
- model.makeValue("/root/send/reqdata/pid" , selPid);
- model.makeValue("/root/send/reqdata/dialflag", "H");
- model.makeValue("/root/send/reqdata/rsrvdd" , model.getValue(xPath + "rsrvdd"));
- model.makeValue("/root/send/reqdata/hdcretno" , model.getValue(xPath + "hdcretno")); //추가-kys-20091222
- //alert("srchflag = " + srchflag);
-
- //** 신규등록시 **//
- if(srchflag == "New"){
- model.makeValue("/root/main/reclist/recinfo/recinfolists/hdcretno" , selHdcretno ); // 선택한환자의 hdcretno-kys-20091222
- model.makeValue("/root/main/reclist/recinfo/recinfolists/instcd" , getUserInfo("dutplceinstcd")); // 현재 로그인한 사용자의 기관코드
- model.makeValue("/root/main/reclist/recinfo/recinfolists/pid" , selPid ); // 등록번호
- model.makeValue("/root/main/reclist/recinfo/recinfolists/dialflag" , "H" ); // 투석구분(H:HD,P:PD)
- model.makeNode("/root/main/reclist/recinfo/recinfolists/signno"); // 인증번호
- model.makeValue("/root/send/reqdata/srchflag", "New");
- submit("TRMND00704", false);
- // model.copyNode("/root/main/reclist", "/root/temp/reclist");
- var sTmpNode = "dryweig hprnfst hprnmatn bfrcd durationflag angiokindcd angiokindnm dialliqd dialmach dialmachno dialmachnm dialplaccd hdkindflag idbdwtval dialmemcd"; //20100322-kys-ideal wt추가
- sTmpNode = sTmpNode.split(" ");
- //20110404_KNUH_Start 장비인터페이스부분 추가.
- //alert("chkflag = " + chkflag);
- if(chkflag == "Y") {
- //칠곡병원 장비 인터페이스 부분, 본원도 인터페이스 시작
- model.makeValue("/root/send/reqdata/rsrvdd", grd_rsrvpatinfo.valueMatrix(grd_rsrvpatinfo.row, grd_rsrvpatinfo.colRef("rsrvdd")));
- submit("TRMND00709"); //투석장비 인터페이스 부분
- submit("TRMND00710"); //Vital Sign 인터페이스 부분
- model.makeValue(ipt_dialfromdt.attribute("ref") , model.getValue("/root/temp/dialinfo/dialinfolist/dialfromdd") );
- model.makeValue(ipt_dialfromtm.attribute("ref") , model.getValue("/root/temp/dialinfo/dialinfolist/dialfromtm") );
- model.makeValue(ipt_recdt.attribute("ref") , getCurrentDate());
- model.makeValue(ipt_rectm.attribute("ref") , getCurrentTime().substr(0,4) );
- model.makeValue(ipt_recid.attribute("ref") , getUserInfo("userid") );
- model.makeValue(opt_recnm.attribute("ref") , getUserInfo("usernm") );
- model.makeValue(ipt_dialtodt.attribute("ref") , model.getValue("/root/temp/dialinfo/dialinfolist/dialtodd") );
- model.makeValue(ipt_dialtotm.attribute("ref") , model.getValue("/root/temp/dialinfo/dialinfolist/dialtotm") );
- model.makeValue(ipt_dryweig.attribute("ref") , model.getValue("/root/temp/dialinfo/dialinfolist/dryweig") );
- model.makeValue(ipt_idbdwtval.attribute("ref") , model.getValue("/root/temp/dialinfo/dialinfolist/idbdwtval") );
- model.makeValue(ipt_ufval.attribute("ref") , model.getValue("/root/temp/dialinfo/dialinfolist/ufval") );
- model.makeValue(ipt_prebodyweig.attribute("ref") , model.getValue("/root/temp/dialinfo/dialinfolist/prebodyweig") );
- model.makeValue(ipt_postbodyweig.attribute("ref") , model.getValue("/root/temp/dialinfo/dialinfolist/postbodyweig") );
- model.makeValue(ipt_trgtweig.attribute("ref") , model.getValue("/root/temp/dialinfo/dialinfolist/trgtweig") );
- model.makeValue(ipt_hprnfst.attribute("ref") , model.getValue("/root/temp/dialinfo/dialinfolist/hprnfst") );
- model.makeValue(ipt_hprnmatn.attribute("ref") , model.getValue("/root/temp/dialinfo/dialinfolist/hprnmatn") );
-
- model.makeValue(ipt_durationflag.attribute("ref") , model.getValue("/root/temp/dialinfo/dialinfolist/durationflag") );
- model.makeValue(ipt_aterlpretm1.attribute("ref") , model.getValue("/root/temp/dialinfo/dialinfolist/aterlpretm1") );
- model.makeValue(ipt_aterlpretm2.attribute("ref") , model.getValue("/root/temp/dialinfo/dialinfolist/aterlpretm2") );
- model.makeValue(ipt_aterlpretm3.attribute("ref") , model.getValue("/root/temp/dialinfo/dialinfolist/aterlpretm3") );
- model.makeValue(ipt_aterlpre1.attribute("ref") , model.getValue("/root/temp/dialinfo/dialinfolist/aterlpre1") );
- model.makeValue(ipt_aterlpre2.attribute("ref") , model.getValue("/root/temp/dialinfo/dialinfolist/aterlpre2") );
- model.makeValue(ipt_aterlpre3.attribute("ref") , model.getValue("/root/temp/dialinfo/dialinfolist/aterlpre3") );
- model.makeValue(ipt_veinprecntstm1.attribute("ref") , model.getValue("/root/temp/dialinfo/dialinfolist/veinprecntstm1") );
- model.makeValue(ipt_veinprecntstm2.attribute("ref") , model.getValue("/root/temp/dialinfo/dialinfolist/veinprecntstm2") );
- model.makeValue(ipt_veinprecntstm3.attribute("ref") , model.getValue("/root/temp/dialinfo/dialinfolist/veinprecntstm3") );
- model.makeValue(ipt_veinprecnts1.attribute("ref") , model.getValue("/root/temp/dialinfo/dialinfolist/veinprecnts1") );
- model.makeValue(ipt_veinprecnts2.attribute("ref") , model.getValue("/root/temp/dialinfo/dialinfolist/veinprecnts2") );
- model.makeValue(ipt_veinprecnts3.attribute("ref") , model.getValue("/root/temp/dialinfo/dialinfolist/veinprecnts3") );
- model.makeNode(chk_porbleyn.attribute("ref"));
- //model.makeNode(cmb_angiokindcd.attribute("ref"));
- model.makeNode(ipt_angiokindnm.attribute("ref"));
- model.makeValue(cmb_dialmach.attribute("ref") , model.getValue("/root/temp/dialinfo/dialinfolist/dialmach") );
- model.makeValue(cmb_dialmachnm.attribute("ref") , model.getValue("/root/temp/dialinfo/dialinfolist/dialmachnm") );
-
- //20150206 by 권영애
- //model.makeValue(cmb_hdkindflag.attribute("ref") , model.getValue("/root/temp/dialinfo/dialinfolist/hdkindflag") );
- model.makeValue(cmb_hdkindflag.attribute("ref") , "01" ); //default로 투석구분
- //혈관종류
- model.makeValue(cmb_angiokindcd.attribute("ref") , model.getValue("/root/temp/dialinfo/dialinfolist/angiokindcd") );
- //20150205 by 권영애
- //투석막
- model.makeValue(cmb_dialmemcd.attribute("ref") , model.getValue("/root/temp/dialinfo/dialinfolist/dialmemcd") );
- //투석기계번호
- model.makeValue(ipt_dialmachno.attribute("ref") , model.getValue("/root/temp/dialinfo/dialinfolist/dialmachno") );
-
- //** 시작간호사, 종료간호사 현재 로그인한 간호사로 Defalt 설정 **//
- model.makeValue(ipt_startnurseid.attribute("ref"), getUserId() );
- model.makeValue(opt_startnursenm.attribute("ref"), getUserName());
- model.makeValue(ipt_endnurseid.attribute("ref") , getUserId() );
- model.makeValue(opt_tonurgnm.attribute("ref") , getUserName());
-
- model.makeValue(opt_rsrvdd.attribute("ref") , selRsrvdd);
-
-
-
- model.makeValue(ipt_bfrcd.attribute("ref") , "230" );
- model.makeValue(cmb_dialplaccd.attribute("ref"), "01");
- model.makeValue(cmb_dialliqd.attribute("ref"), "06");
- cmb_dialliqd.refresh();
- cmb_hdkindflag.refresh();
- cmb_dialplaccd.refresh();
- cmb_dialmemcd.refresh();
- cmb_angiokindcd.refresh();
-
- ipt_dialfromdt.refresh();
- ipt_dialfromtm.refresh();
- ipt_recdt.refresh();
- ipt_rectm.refresh();
- ipt_recid.refresh();
- opt_recnm.refresh();
- ipt_dialtodt.refresh();
- ipt_dialtotm.refresh();
- ipt_dryweig.refresh();
- ipt_idbdwtval.refresh();
- ipt_ufval.refresh();
- ipt_prebodyweig.refresh();
- ipt_postbodyweig.refresh();
- ipt_trgtweig.refresh();
- ipt_hprnfst.refresh();
- ipt_hprnmatn.refresh();
- ipt_bfrcd.refresh();
- ipt_durationflag.refresh();
- ipt_aterlpretm1.refresh();
- ipt_aterlpretm2.refresh();
- ipt_aterlpretm3.refresh();
- ipt_aterlpre1.refresh();
- ipt_aterlpre2.refresh();
- ipt_aterlpre3.refresh();
- ipt_veinprecntstm1.refresh();
- ipt_veinprecntstm2.refresh();
- ipt_veinprecntstm3.refresh();
- ipt_veinprecnts1.refresh();
- ipt_veinprecnts2.refresh();
- ipt_veinprecnts3.refresh();
-
- ipt_dialmachno.refresh();
- cmb_dialmach.refresh();
- cmb_dialmachnm.refresh();
- cmb_hdkindflag.refresh();
-
- ipt_startnurseid.refresh();
- opt_startnursenm.refresh();
- ipt_endnurseid.refresh();
- opt_tonurgnm.refresh();
- opt_rsrvdd.refresh();
- //alert(instance1.selectNodesXml("/root/main/reclist/recinfo/dialvitalsigninspspeclist/dialvitalsigninspspec"));
- model.makeNode("/root/main/reclist/recinfo/dialvitalsigninspspeclist/dialvitalsigninspspec");
- model.copyNode("/root/main/reclist/recinfo/dialvitalsigninspspeclist/dialvitalsigninspspec", "/root/temp/vitalinfo");
- grd_dialvitalsigninspspec.refresh();
- for(var i = grd_dialvitalsigninspspec.fixedRows; i < grd_dialvitalsigninspspec.rows; i++) {
- grd_dialvitalsigninspspec.rowStatus(i) = "1";
- }
- //20110404_KNUH_End
- } else {
- //인터페이스 안하는 경우
- for(var i=0; i<sTmpNode.length; i++) {
- model.makeValue(xPath + sTmpNode[i], model.getValue(xTmpPath + sTmpNode[i]));
- }
- if(model.getValue("/root/main/reclist/recinfo/recinfolists/dialplaccd") == ""){
- model.makeValue("/root/main/reclist/recinfo/recinfolists/dialplaccd", "01"); // 투석장소 ("01":인공신장실)
- }
- if(model.getValue("/root/main/reclist/recinfo/recinfolists/hdkindflag") == ""){
- model.makeValue("/root/main/reclist/recinfo/recinfolists/hdkindflag", "01"); // 투석구분 ("01":일반HD)
- }
- //** 그리드 초기화 **//
- model.removeNodeset("/root/main/reclist/recinfo/cruedrugspeclist/cruedrugspec"); // 처치 및 투약 초기화
- model.removeNodeset("/root/main/reclist/recinfo/nbpsinspspeclist/nbpsinspspec"); // 임상검사 초기화
- model.removeNodeset("/root/main/reclist/recinfo/dialvitalsigninspspeclist/dialvitalsigninspspec"); // Vital Sign 초기화
- // fClearChildNode("/root/main/reclist/recinfo/dialrecspeclist/dialrecspec" ); // 투석기록 초기화
- // model.removeNodeset("/root/main/reclist/recinfo/dialrecspeclist/dialrecspec" ); // 투석기록 초기화
- model.makeValue("/root/main/reclist/recinfo/recinfolists/rsrvdd" , selRsrvdd ); // 선택한 환자의 예약일자
- model.makeValue("/root/main/reclist/recinfo/recinfolists/recid" , getUserId() ); // 현재 로그인한 사용자 ID
- model.makeValue("/root/main/reclist/recinfo/recinfolists/recnm" , getUserName() ); // 현재 로그인한 사용자명
- model.makeValue("/root/main/reclist/recinfo/recinfolists/recdd" , currentDD.substr(0,8) ); // 기록일자
- model.makeValue("/root/main/reclist/recinfo/recinfolists/rectm" , currentDD.substr(9,4) ); // 기록시간
- model.makeValue("/root/main/reclist/recinfo/recinfolists/dialfromdd", currentDD.substr(0,8) ); // 투석시작일자
- model.makeValue("/root/main/reclist/recinfo/recinfolists/dialfromtm", currentDD.substr(9,4) ); // 투석시작시간
- model.makeValue("/root/main/reclist/recinfo/recinfolists/dialtodd" , currentDD.substr(0,8) ); // 투석종료일자
- model.makeValue("/root/main/reclist/recinfo/recinfolists/dialtotm" , currentDD.substr(9,4) ); // 투석종료시간
- model.makeValue("/root/main/reclist/recinfo/recinfolists/hdcretno" , selHdcretno ); // 선택한환자의 hdcretno-kys-20091222
- model.makeValue("/root/main/reclist/recinfo/recinfolists/instcd" , getUserInfo("dutplceinstcd")); // 현재 로그인한 사용자의 기관코드
- model.makeNode("/root/main/reclist/recinfo/recinfolists/signno"); // 인증번호
- model.makeValue("/root/main/reclist/recinfo/recinfolists/pid" , selPid ); // 등록번호
- model.makeValue("/root/main/reclist/recinfo/recinfolists/dialflag" , "H" ); // 투석구분(H:HD,P:PD)
- //기록자 정보 설정
- model.makeValue("/root/main/reclist/recinfo/recinfolists/recid" , getUserId() ); // 현재 로그인한 사용자 ID
- model.makeValue("/root/main/reclist/recinfo/recinfolists/recnm" , getUserName() ); // 현재 로그인한 사용자명
- model.makeValue("/root/main/reclist/recinfo/recinfolists/instcd", getUserInfo("dutplceinstcd")); // 현재 로그인한 사용자의 기관코드
- //** 시작간호사, 종료간호사 현재 로그인한 간호사로 Defalt 설정 **//
- model.makeValue("/root/main/reclist/recinfo/recinfolists/fromnurgid", getUserId() );
- model.makeValue("/root/main/reclist/recinfo/recinfolists/fromnurgnm", getUserName());
- model.makeValue("/root/main/reclist/recinfo/recinfolists/tonurgid" , getUserId() );
- model.makeValue("/root/main/reclist/recinfo/recinfolists/tonurgnm" , getUserName());
- //----------(20101225) 경북대
- //model.makeValue("/root/main/reclist/recinfo/recinfolists/etcremark", "" );
- //model.makeValue("/root/main/reclist/recinfo/recinfolists/etcremark", "" ;
- //----------(20101225) 경북대
- model.refresh();
- }
- } else {
- //** 기록조회시 **//
-
-
- model.removeNodeset("/root/main/reclist/recinfo");
- submit("TRMND00708", false);
- // 처치 및 투약, 임상검사 조회결과 없으면 그리드 초기화
- if(getNodesetCount("/root/main/reclist/recinfo/cruedrugspeclist/cruedrugspec")=="1" && model.getValue("/root/main/reclist/recinfo/cruedrugspeclist/cruedrugspec/cruedrug[1]/prcpcd")==""){
- model.removeNodeset("/root/main/reclist/recinfo/cruedrugspeclist/cruedrugspec"); // 처치 및 투약정보
- }
- if(getNodesetCount("/root/main/reclist/recinfo/nbpsinspspeclist/nbpsinspspec")=="1" && model.getValue("/root/main/reclist/recinfo/nbpsinspspeclist/nbpsinspspec/nbpsinsp[1]/prcpcd")==""){
- model.removeNodeset("/root/main/reclist/recinfo/nbpsinspspeclist/nbpsinspspec"); // 임상검사
- }
-
- if(model.getValue("/root/main/reclist/recinfo/recinfolists/duplchkyn") == "Y") { // 혈액투석간호기록 중복여부("Y":중복 / "N":중복안됨)
- grp_recinfo.disabled = false; // 혈액투석간호기록 그룹 활성화
- btn_new.disabled = true; // 신규등록버튼 비활성화
- //btn_dialrec.disabled = true;
- model.makeValue("/root/main/reclist/recinfo/recinfolists/status", "u"); // 상태값 설정 (update)
- } else if(model.getValue("/root/main/reclist/recinfo/recinfolists/duplchkyn") == "N") {
- grp_recinfo.disabled = true; // 혈액투석간호기록 그룹 비활성화
- btn_new.disabled = false; // 신규등록버튼 활성화
- //btn_dialrec.disabled = false;
- }
- var sSignNo = model.getValue("/root/main/reclist/recinfo/recinfolists/signno");
- if( sSignNo!= "" && sSignNo!=0){ // 인증저장 된 기록일 경우
- btn_tempsave.disabled = true;
- }
- // alert("2");
- model.refresh();
- }
-
- }
- /**
- * @group :
- * @ver : 2007.06.08
- * @by : 김진아
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 화면초기화
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fInitInfo(){
- //** 초기화 **//
- var xPath = "/root/main/reclist/recinfo/recinfolists/"; // 투석기록정보 경로
- var sNode = "pid rsrvdd dialflag ioflag dialfromdd dialfromtm dialtodd dialtotm dryweig idbdwtval ufval prebodyweig postbodyweig trgtweig hprnfst hprnmatn bfrcd durationflag angiokindcd angiokindnm dialmachno dialliqd dialmach dialmachnm dialplaccd nigtflag fromnurgid fromnurgnm tonurgid tonurgnm hdkindflag duplchkyn status";
- sNode = sNode.split(" ");
- for(var i=0; i<sNode.length; i++) {
- model.makeValue(xPath + sNode[i], ""); // 투석기록정보
- }
- fClearChildNode("/root/main/reclist/recinfo/aterlprelist/aterlprespec" );
- fClearChildNode("/root/main/reclist/recinfo/veinprecntslist/veinprecntsspec");
- model.removeNodeset("/root/main/reclist/recinfo/dialvitalsigninspspeclist");
- model.removeNodeset("/root/main/reclist/recinfo/cruedrugspeclist" ); // 처치 및 투약정보
- model.removeNodeset("/root/main/reclist/recinfo/nbpsinspspeclist" ); // 임상검사
- model.removeNodeset("/root/main/reclist/recinfo/dialvitalsigninspspeclist"); // Vital Sign
- //model.removeNodeset("/root/main/spcffactlist" ); // 특이사항
- //model.removeNodeset("/root/main/bviplist" ); // 혈관내압측정비
- model.removeNodeset("/root/main/reclist/recinfo/dialrecspeclist" ); // 투석기록
- // 예약환자 리스트 셀 색상 초기화 (white)
- // 2008-08-08 삭제
- // for(var i=1; i<=grd_rsrvpatinfo.rows; i++) {
- // grd_rsrvpatinfo.cellstyle("background-color", i, 1, i, 5) = "white";
- // }
- grp_recinfo.disabled = true;
- btn_new.disabled = true;
- btn_dialrec.disabled = true;
- //model.refresh();
- }
- /**
- * @group :
- * @ver : 2007.10.30
- * @by : 김진아
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 투석기록초기화
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fRecInitInfo(){
- var xPath = "/root/main/reclist/recinfo/recinfolists/"; // 투석기록정보 경로
- var sNode = "dialfromdd dialfromtm dialtodd dialtotm dryweig idbdwtval ufval prebodyweig postbodyweig trgtweig hprnfst hprnmatn bfrcd durationflag angiokindcd angiokindnm dialmachno dialliqd dialmach dialmachnm dialplaccd nigtflag fromnurgid fromnurgnm tonurgid tonurgnm hdkindflag duplchkyn status";
- sNode = sNode.split(" ");
- for(var i=0; i<sNode.length; i++) {
- model.makeValue(xPath + sNode[i], ""); // 투석기록정보
- }
- fClearChildNode("/root/main/reclist/recinfo/aterlprelist/aterlprespec" );
- fClearChildNode("/root/main/reclist/recinfo/veinprecntslist/veinprecntsspec");
- grp_recinfo.refresh();
- }
- /**
- * @group :
- * @ver : 2007.05.31
- * @vGrdObj : 그리드명
- * @by : 김진아
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 특이사항 리스트 행추가 화면 설정
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fAddRowSpcfFact(vGrdObj){
- if (vGrdObj == null) return;
- vGrdObj.addItem(); // 그리드 행추가
- // alert(vGrdObj.rows);
- //kya 2011.10.04
- var list ="";
- var xPath ="";
- var itemflag ="";
-
- if(vGrdObj == grd_spcffactinfo ){
- xPath = "/root/main/spcffactlist/spcffactinfo";
- itemflag = "02"; //특이사항
- } else {
- xPath = "/root/main/bviplist/bvipinfo";
- itemflag = "09"; //혈관내압측정비
- }
- var sSelPid = selPid; //선택환자 등록번호
- var sRecId = model.getValue("/root/main/reclist/recinfo/recinfolists/recid"); // 기록자 아이디
- var iRow = vGrdObj.rows-1;
-
- model.makeValue( xPath +"[" + iRow + "]/pid" , sSelPid);
- model.makeValue( xPath +"[" + iRow + "]/recid", sRecId );
- if(iRow == 1){
- model.makeValue(xPath +list +"[" + iRow + "]/seqno", 1);
- } else{
- model.makeValue(xPath +"[" + iRow + "]/seqno", Number(model.getValue( xPath +"[" + (iRow-1) + "]/seqno"))+1);
- }
- model.makeValue(xPath +"[" + iRow + "]/recdd" , getCurrentDate() ); // 기록일자 지정(현재일자)
- model.makeValue(xPath +"[" + iRow + "]/rectm" , getCurrentTime().substr(0,4)); // 기록시간 지정(현재시간)
- model.makeValue(xPath +"[" + iRow + "]/status", "i" ); // 상태값 지정 (i)
- model.makeValue(xPath +"[" + iRow + "]/itemflag", itemflag ); // 상태값 지정 (i)
- }
- /**
- * @group :
- * @ver : 2007.05.31
- * @by : 김진아
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 특아사항 리스트 저장
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fSaveSpcfFactList_original(){
- model.makeValue("/root/send/savedata",grd_spcffactinfo.getupdatedataAll("i"));
- submit("TXMND00701", false);
- // 특이사항 리스트 상태값 초기화
- for(var i=1; i<=grd_spcffactinfo.rows; i++) {
- grd_spcffactinfo.textmatrix(i, 1) = "";
- //model.makeValue("/root/main/spcffactlist/spcffactinfo[" + i + "]/status", "");
- }
- }
- /**
- * @group :
- * @ver : 2011.10.05
- * @by : 권영애
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 특아사항 리스트 저장
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fSaveSpcfFactList(vGrdObj){
- model.makeValue("/root/send/savedata",vGrdObj.getupdatedataAll("i"));
- submit("TXMND00701", false);
- // 특이사항 리스트 상태값 초기화
- for(var i=1; i<=vGrdObj.rows; i++) {
- vGrdObj.textmatrix(i, 1) = "";
- //model.makeValue("/root/main/spcffactlist/spcffactinfo[" + i + "]/status", "");
- }
- }
- /**
- * @group :
- * @ver : 2007.05.31
- * @by : 김진아
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 특아사항 리스트 행삭제 화면 설정
- * @param :
- * @return :
- * @---------------------------------------------------
- **/
- function fDelRowSpcfFact_original(){
- var iRow = grd_spcffactinfo.row;
- var sStatus = grd_spcffactinfo.textmatrix(iRow, 1);
- //** 선택 행이 조회된 행(DB에 존재) 일때 (상태값 :s) **//
- if( sStatus != "i") {
- grd_spcffactinfo.textmatrix(iRow, 1) = "d"; // 상태값 지정 (d)
- if(messageBox("", "Q001", "") == 6) { // 메세지박스 ("삭제 하시겠습니까?") (return : yes=6, no=7)
- fSaveSpcfFactList(); //삭제저장
- fSrchSpcfFactList(); // 특이사항 리스트 조회
- } else {
- grd_spcffactinfo.textmatrix(iRow, 1) =sStatus; // 이전 상태값으로 복구
- return;
- }
- }
- //** 선택 행이 화면상에만 존재하는 행 일때 (상태값 :i) **//
- else if( sStatus == "i") {
- grd_spcffactinfo.deleteItem(iRow); // 그리드 행 삭제
- }
- }
- /**
- * @group :
- * @ver : 2011.10.05
- * @by : 권영애
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 특아사항 리스트 행삭제 화면 설정
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fDelRowSpcfFact(vGrdObj){
- if (vGrdObj == null) return;
- var iRow = vGrdObj.row;
- var sStatus = vGrdObj.textmatrix(iRow, 1);
- //** 선택 행이 조회된 행(DB에 존재) 일때 (상태값 :s) **//
- if( sStatus != "i") {
- vGrdObj.textmatrix(iRow, 1) = "d"; // 상태값 지정 (d)
- if(messageBox("", "Q001", "") == 6) { // 메세지박스 ("삭제 하시겠습니까?") (return : yes=6, no=7)
- fSaveSpcfFactList(vGrdObj); //삭제저장
- fSrchSpcfFactList(vGrdObj); // 특이사항 리스트 조회
- } else {
- vGrdObj.textmatrix(iRow, 1) =sStatus; // 이전 상태값으로 복구
- return;
- }
- }
- //** 선택 행이 화면상에만 존재하는 행 일때 (상태값 :i) **//
- else if( sStatus == "i") {
- vGrdObj.deleteItem(iRow); // 그리드 행 삭제
- }
- }
- /**
- * @group :
- * @ver : 2007.06.01
- * @by : 김진아
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 특이사항 리스트 수정시 상태값 설정
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fSetSpcfFactList_org(){
- var iRow = grd_spcffactinfo.row;
- if(grd_spcffactinfo.textmatrix(iRow, 1) == "s") { // 선택 행이 조회된 행(DB에 존재) 일때 (상태값 :s)
- grd_spcffactinfo.textmatrix(iRow, 1) = "u"; // 상태값 지정 (update)
- }
- }
- function fSetSpcfFactList(vGrdObj){
- var iRow = vGrdObj.row;
- if(vGrdObj.textmatrix(iRow, 1) == "s") { // 선택 행이 조회된 행(DB에 존재) 일때 (상태값 :s)
- vGrdObj.textmatrix(iRow, 1) = "u"; // 상태값 지정 (update)
- }
- }
- /**
- * @group :
- * @ver : 2007.06.04
- * @by : 김진아
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 혈액투석 간호기록 저장
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fSaveHDRecInfo(pFlag){
- if(model.getValue("/root/main/reclist/recinfo/recinfolists/dialplaccd") == ""){
- messageBox("투석장소는 필수입력 항목입니다.", "E"); model.setFocus("cmb_dialplaccd"); return;
- }
- if(model.getValue("/root/main/reclist/recinfo/recinfolists/hdkindflag") == ""){
- messageBox("투석구분은 필수입력 항목입니다.", "E"); model.setFocus("cmb_hdkindflag"); return;
- }
- if(model.getValue("/root/main/reclist/recinfo/recinfolists/ufval").length > 5){
- messageBox("U.F값이 범위를 벗어났습니다.", "E", "확인 후 다시 입력하십시오.");
- model.makeValue("/root/main/reclist/recinfo/recinfolists/ufval", "");
- model.setFocus("ipt_ufval"); ipt_ufval.refresh(); return;
- }
- //Vital Sign 점검 2016. 10.27 by kya
- fCheckVitalSign();
- var retMsg = messageBox("저장하시겠습니까?", "S"); //yes=6, no=7
- if(retMsg == "6"){
- XmlDataCheck(XmlInstNm);
- var xPath = "/root/main/reclist/recinfo/recinfolists/";
- model.makeValue(xPath+"recdt" , model.getValue(xPath+"recdd") + model.getValue(xPath+"rectm") ); // 기록일시
- model.makeValue(xPath+"dialfromdt", model.getValue(xPath+"dialfromdd") + model.getValue(xPath+"dialfromtm")); // 투석시작일시
- model.makeValue(xPath+"dialtodt" , model.getValue(xPath+"dialtodd") + model.getValue(xPath+"dialtotm") ); // 투석종료일시
- model.makeValue(xPath+"dialfromdt", model.getValue(xPath+"dialfromdd") + model.getValue(xPath+"dialfromtm"));
- model.removenode("/root/send");
- model.makeNode ("/root/send/savedata");
-
- copyNodeType("/root/send/savedata", "/root/main/reclist/recinfo/recinfolists");
-
- model.makeValue("/root/send/savedata/certflag", pFlag); // 인증여부( T : 임시저장, C : 인증저장)
-
-
- // 인증저장일 경우
- if(pFlag == "C"){
- // 인증 로직 호출
- if(Sign.signprocess() == true){
-
- model.removeNodeset("/root/send/savedata/signinfo");
- var sIOFlag = model.getValue("/root/temp/paminfo/list/ioflag" ); // I/O 구분
- model.makeValue("/root/send/signdata/pid", model.getValue("/root/temp/paminfo/list/pid")); // 등록번호
- if(sIOFlag == "I" || sIOFlag == "E"){ // 진료일자
- model.makeValue("/root/send/signdata/orddd", model.getValue("/root/temp/paminfo/list/indd"));
- }else if(sIOFlag == "O"){
- model.makeValue("/root/send/signdata/orddd", model.getValue("/root/temp/paminfo/list/orddd"));
- }
- model.makeValue("/root/send/signdata/signno" , model.getValue("/root/main/reclist/recinfo/recinfolists/signno")); // 서명번호
- model.makeValue("/root/send/signdata/cretno" , model.getValue("/root/temp/paminfo/list/cretno")); // 생성번호
- model.makeValue("/root/send/signdata/recdd" , model.getValue("/root/main/reclist/recinfo/recinfolists/recdd")); // 실제 기록이 이루어진 기록일자(통합기록에서 보여짐)
- model.makeValue("/root/send/signdata/rectm" , model.getValue("/root/main/reclist/recinfo/recinfolists/rectm")); // 실제 기록이 이루어진 기록시간(통합기록에서 보여짐)
- model.makeValue("/root/send/signdata/recsaveflag" , "Y"); // 전자서명 인적정보 변경여부(기록일시 변경되는 경우 : Y, 그외 : N)
- model.makeValue("/root/send/signdata/signflag" , "02"); // 서명자료구분(01 : 진료, 02 : 간호)
- model.makeValue("/root/send/signdata/signgenrflag", sIOFlag); // 서명발생구분 (코드정의서 M0010 참조)
- model.makeValue("/root/send/signdata/formcd" , "0000002496"); // 각 기록지별 서식코드
- model.makeValue("/root/send/signdata/orddeptcd" , model.getValue("/root/temp/paminfo/list/orddeptcd")); // 진료부서코드
- model.makeValue("/root/send/signdata/orddrid" , model.getValue("/root/temp/paminfo/list/medispclid")); // 진료의사ID
- model.makeValue("/root/send/signdata/signbfcnts" , Sign.signedInfos[1]); // 인증할 데이터 정보(미기록 노드 제거된 정보)
- model.makeValue("/root/send/signdata/signaftcnts" , Sign.signedInfos[2]); // 공인인증 처리후 데이터
- }else{
- return false;
- }
- }
- model.removeNodeset("/root/send/savedata/aterlprelist");
- sXml = instance1.selectNodesXml("/root/main/reclist/recinfo/aterlprelist/aterlprespec"); //AP
- model.makeValue("/root/send/savedata/aterlprelist", sXml);
- model.removeNodeset("/root/send/savedata/veinprecntslist");
- sXml = instance1.selectNodesXml("/root/main/reclist/recinfo/veinprecntslist/veinprecntsspec"); //VP
- model.makeValue("/root/send/savedata/veinprecntslist", sXml);
- model.removeNodeset("/root/send/savedata/cruedrugspeclist");
- sXml = instance1.selectNodesXml("/root/main/reclist/recinfo/cruedrugspeclist/cruedrugspec"); //처치 및 투약 리스트
- model.makeValue("/root/send/savedata/cruedrugspeclist", sXml);
- model.removeNodeset("/root/send/savedata/nbpsinspspeclist");
- sXml = instance1.selectNodesXml("/root/main/reclist/recinfo/nbpsinspspeclist/nbpsinspspec"); //임상검사 리스트
- model.makeValue("/root/send/savedata/nbpsinspspeclist", sXml);
- model.removeNodeset("/root/send/savedata/dialvitalsigninspspeclist");
- sXml = instance1.selectNodesXml("/root/main/reclist/recinfo/dialvitalsigninspspeclist/dialvitalsigninspspec"); //Vital Sign 리스트
- model.makeValue("/root/send/savedata/dialvitalsigninspspeclist", sXml);
- model.removeNodeset("/root/send/savedata/dialrecspeclist");
- sXml = instance1.selectNodesXml("/root/main/reclist/recinfo/dialrecspeclist/dialrecspec"); //투석기록 리스트
- model.makeValue("/root/send/savedata/dialrecspeclist", sXml);
- if(submit("TXMND00702", false)){
- alert("조회되었습니다.");
- fPastDialRecInfo(); // 이전 혈액투석간호기록 조회
- }
- }
- }
- /* ------------------------------------------------- */
- /* desc : 인증데이터 만들기 */
- /* param : pModel - Model */
- /* tNode - Target Node */
- /* sNode - Source Node */
- /* return : */
- /* -------------------------------------------------- */
- function fMake_SignData(){
- Sign.addnode("/root/main/reclist/recinfo");
- var xRecinfoPath = Sign.XPATH_SIGNINFO+"/recinfo/recinfolists";
- // 투석장소
- var sDialPlacCd = model.getValue(xRecinfoPath+"/dialplaccd");
- if(sDialPlacCd != ""){
- model.makeValue(xRecinfoPath+"/dialplaccd",model.getValue("/root/init/M0129list/M0129[cdid='"+sDialPlacCd+"']/cdnm"));
- }
- // 투석액
- var sDialliqd = model.getValue(xRecinfoPath+"/dialliqd");
- if(sDialliqd != ""){
- model.makeValue(xRecinfoPath+"/dialliqd", model.getValue("/root/init/M0345list/M0345[cdid='"+sDialliqd+"']/cdnm"));
- }
- // 투석막 2011.10.07 bye kya
- var sDialmemcd = model.getValue(xRecinfoPath+"/dialmemcd");
- if(sDialmemcd != ""){
- model.makeValue(xRecinfoPath+"/dialmemcd", model.getValue("/root/init/T46list/T46[cdid='"+sDialmemcd+"']/cdnm"));
- }
-
- // 혈과종류
- var sAngioKindCd = model.getValue(xRecinfoPath+"/angiokindcd");
- if(sAngioKindCd != ""){
- model.makeValue(xRecinfoPath+"/angiokindcd", model.getValue("/root/init/M0083list/M0083[cdid='"+sAngioKindCd+"']/cdnm"));
- }
- // 투석기
- var sDialMach = model.getValue(xRecinfoPath+"/dialmach");
- if(sDialMach != ""){
- //20150414 투석기 콤보박스 변경
- //model.makeValue(xRecinfoPath+"/dialmach", model.getValue("/root/init/M0128list/M0128[cdid='"+sDialMach+"']/cdnm"));
- model.makeValue(xRecinfoPath+"/dialmach", model.getValue("/root/init/T23list/T23[cdid='"+sDialMach+"']/cdnm"));
- }
- var sDialMachNm = model.getValue(xRecinfoPath+"/dialmachnm");
- if(sDialMachNm != ""){
- //20150414 투석명 콤보박스 변경
- //model.makeValue(xRecinfoPath+"/dialmachnm", model.getValue("/root/init/M0127list/M0127[cdid='"+sDialMachNm+"']/cdnm"));
- model.makeValue(xRecinfoPath+"/dialmachnm", model.getValue("/root/init/T24list/T24[cdid='"+sDialMachNm+"']/cdnm"));
- }
- // 투석구분
- var sHdKindFlag = model.getValue(xRecinfoPath+"/hdkindflag");
- if(sHdKindFlag != ""){
- model.makeValue(xRecinfoPath+"/hdkindflag", model.getValue("/root/init/T25list/T25[cdid='"+sHdKindFlag+"']/cdnm"));
- }
- }
- /* ------------------------------------------------- */
- /* desc : Instance NodeCopy 하기(SMMNP007.js 참조) */
- /* param : pModel - Model */
- /* tNode - Target Node */
- /* sNode - Source Node */
- /* return : */
- /* -------------------------------------------------- */
- function XmlDataCheck(XmlInstNm) {
- XmlInstNm = XmlInstNm.split(" ");
- var tNode = "";
- var sNode = "";
- for (var i=0; i < XmlInstNm.length; i++){
- tNode = "/root/main/reclist/recinfo/" + XmlInstNm[i];
- if (instance1.selectSingleNode(tNode).childNodes.length < 1) {
- sNode = "/root/main/xmlformatlist/" + XmlInstNm[i];
- InstanceNodeCopy(model, tNode, sNode);
- }
- }
- }
- /* ------------------------------------------------- */
- /* desc : Instance NodeCopy 하기 (SMMNP007.js 참조) */
- /* param : pModel - Model */
- /* tNode - Target Node */
- /* sNode - Source Node */
- /* return : */
- /* -------------------------------------------------- */
- function InstanceNodeCopy(pModel, tNode, sNode) {
- pModel.copyNode(tNode, sNode );
- }
- /**
- * @group :
- * @ver : 2007.06.07
- * @by : 김진아
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 사용자팝업
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fSrchNurs(userid){
- model.makeValue("/root/main/reclist/recinfo/recinfolists/userpopupinfo/param" , "_OneS"); // 한 사용자 선택 팝업을 띄울시 "팝업에 전달할 노드"/param 의 값 설정
- model.makeValue("/root/main/reclist/recinfo/recinfolists/userpopupinfo/flag" , "userid"); // 한 사용자 선택 팝업을 띄울시 "팝업에 전달할 노드"/flag 의 값 설정
- model.makeValue("/root/main/reclist/recinfo/recinfolists/userpopupinfo/searchitem" , userid); // 한 사용자 선택 팝업을 띄울시 "팝업에 전달할 노드"/searchitem 의 값 설정
- modal("../../userdeptinfoweb/xrw/SPZSU10103_사용자부서선택조회", 1, "200", "200", "SPZSU10103","/root/main/reclist/recinfo/recinfolists/userpopupinfo","/root/main/temp");
- var iParam = getParameter("SPZSU10103_");
- model.makeNode("/root/main/reclist/recinfo/recinfolists/onerowselect");
- setCSVToNode("/root/main/reclist/recinfo/recinfolists/onerowselect", iParam);
- clearParameter("SPZSU10103_");
- model.refresh();
- }
- /**
- * @group :
- * @ver : 2007.06.14
- * @by : 김진아
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 처치 및 투약 / 임상검사 처방정보조회
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fSrchPrcp(prcpflag){
- model.removenode("/root/send");
- model.makeNode("/root/send");
- model.makeValue("/root/send/reqdata/pid" , model.getValue("/root/main/reclist/recinfo/recinfolists/pid") ); // 등록번호
- model.makeValue("/root/send/reqdata/rsrvdd" , model.getValue("/root/main/reclist/recinfo/recinfolists/rsrvdd")); // 예약일자
- model.makeValue("/root/send/reqdata/ioflag" , model.getValue("/root/main/reclist/recinfo/recinfolists/ioflag")); // 입원외래구분
- model.makeValue("/root/send/reqdata/prcpflag", prcpflag ); // 처방구분 ( cruedrug:처치 및 투약 / nbpsinsp:임상검사 )
- if(prcpflag == "cruedrug") { // 처치 및 투약
- model.removeNodeset("/root/main/reclist/recinfo/cruedrugspeclist");
- submit("TRMND00705");
- } else if(prcpflag == "nbpsinsp") { // 임상검사
- model.removeNodeset("/root/main/reclist/recinfo/nbpsinspspeclist");
- submit("TRMND00706");
- }
- }
- /**
- * @group :
- * @ver : 2007.07.25 // 수정일자 : 2007.09.21
- * @by : 최경용 // 수정자 : 김진아
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 참여자 정보 팝업 조회
- * @param : originalNode
- * @param : copyNode
- * @return : "true"/"false"
- * @---------------------------------------------------
- */
- function fClickUserBtn(setflag, userflag){
- var jobkindcd = "11";
- /* 20090330 서울성모병원 인공신장실부서코드변경으로 수정함(인공신장실Unit - > 인공신장실) */
- //var deptcd = "2010702070"; // 인공신장실Unit 부서코드:"2010702070"
- /*************************************************************/
- //var deptcd = "2010702000"; // 인공신장실 부서코드:"2010702000"
- //하드코드수정-20090416
- var deptcd = model.getValue("/root/code/codeinfo/codelist/cdid");
- //alert("deptcd = " + deptcd);
- var titlenm = "인공신장실 간호사 리스트";
- setParameter("SPMNN02100_deptcd" , deptcd);
- setParameter("SPMNN02100_jobkindcd", jobkindcd);
- setParameter("SPMNN02100_titlenm" , titlenm);
- setParameter("SPMNN02100_userflag" , userflag);
- modal("SPMNN02100", 1);
- var userid = getParameter("SPMNN02100_userid");
- var usernm = getParameter("SPMNN02100_usernm");
- if(userid != ""){
- if(setflag == "start"){ // 시작간호사
- model.makeValue("/root/main/reclist/recinfo/recinfolists/fromnurgid", userid);
- model.makeValue("/root/main/reclist/recinfo/recinfolists/fromnurgnm", usernm);
- } else if(setflag == "to"){ // 종료간호사
- model.makeValue("/root/main/reclist/recinfo/recinfolists/tonurgid", userid);
- model.makeValue("/root/main/reclist/recinfo/recinfolists/tonurgnm", usernm);
- } else if(setflag == "user"){ // 기록자
- model.makeValue("/root/main/reclist/recinfo/recinfolists/recid", userid);
- model.makeValue("/root/main/reclist/recinfo/recinfolists/recnm", usernm);
- }
- }
- else{
- if(setflag == "start"){ // 시작간호사
- model.makeValue("/root/main/reclist/recinfo/recinfolists/fromnurgid", "");
- model.makeValue("/root/main/reclist/recinfo/recinfolists/fromnurgnm", "");
- model.setFocus("ipt_startnurseid");
- } else if(setflag == "to"){ // 종료간호사
- model.makeValue("/root/main/reclist/recinfo/recinfolists/tonurgid", "");
- model.makeValue("/root/main/reclist/recinfo/recinfolists/tonurgnm", "");
- model.setFocus("ipt_endnurseid");
- } else if(setflag == "user"){ // 기록자
- model.makeValue("/root/main/reclist/recinfo/recinfolists/recid", "");
- model.makeValue("/root/main/reclist/recinfo/recinfolists/recnm", "");
- model.setFocus("ipt_recid");
- }
- }
- setParameter("SPMNN02100_userid", "");
- setParameter("SPMNN02100_usernm", "");
- model.refresh();
- }
- /**
- * creat : 20090108
- * author : dhkim
- * desc : 내환자세팅된 간호사 load
- */
- function fLoadMyPatSetting(){
- model.removenode('/root/send');
- model.makeValue('/root/send/wardcd', getUserInfo('dutplcecd'));
- model.refresh();
- //submit 호출
- if(!submit('TRMND03402')){
- messageBox('조회를 실패하였습니다.', 'E999');
- return;
- }
- }
- /**
- * @group :
- * @ver : 2010.01.25
- * @by : 김양수
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 혈액투석 간호기록 삭제
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fDelHDRecInfo(pFlag){
- //20100125 기록자만이 삭제를 할 수 있다.
- var xPath = "/root/main/reclist/recinfo/recinfolists/";
- var recid = model.getValue(xPath + "recid");
- var recnm = model.getValue(xPath + "recnm");
- var rsrvdd = model.getValue("/root/temp/tmpselinfo/tmptstvdd"); //20100208-kys
- var shiftflag = model.getValue("/root/temp/tmpselinfo/tmpshiftflag"); //20100208-kys
- if(recid != getUserId()){
- messageBox('기록을 입력한 등록자( ' + recnm + ' )만 해당 기록내역을 삭제하실 수 있습니다.' , 'E');
- return ;
- }else{
- var msg = messageBox(rsrvdd.substr(4,2) + "월 " + rsrvdd.substr(6,2) + "일 " + shiftflag + " shift 기록정보를 삭제하시겠습니까?", "S");
- if(msg == 6){
- //20100208-kys-Type2기록이 존재할 경우 알림 팝업 추가
- if(getNodesetCount("/root/main/reclist/recinfo/dialrecspeclist/dialrecspec/dialrec") > 0) {
- messageBox(rsrvdd.substr(4,2) + "월 " + rsrvdd.substr(6,2) + "일 " + shiftflag + " shift 투석기록이 존재합니다. 해당 기록은 간호일지 Type2에서 삭제하시기 바랍니다." , "I");
- }
- XmlDataCheck(XmlInstNm);
- model.makeValue(xPath+"recdt" , model.getValue(xPath+"recdd") + model.getValue(xPath+"rectm") ); // 기록일시
- model.makeValue(xPath+"dialfromdt", model.getValue(xPath+"dialfromdd") + model.getValue(xPath+"dialfromtm")); // 투석시작일시
- model.makeValue(xPath+"dialtodt" , model.getValue(xPath+"dialtodd") + model.getValue(xPath+"dialtotm") ); // 투석종료일시
- model.makeValue(xPath+"dialfromdt", model.getValue(xPath+"dialfromdd") + model.getValue(xPath+"dialfromtm"));
- model.makeValue(xPath+"status", "d"); // 상태값 설정 (update)
- model.removenode("/root/send");
- model.makeNode ("/root/send/savedata");
- copyNodeType("/root/send/savedata", "/root/main/reclist/recinfo/recinfolists");
- model.makeValue("/root/send/savedata/certflag", pFlag); // 인증여부( T : 임시저장, C : 인증저장)
- // 인증 로직 호출
- if(Sign.signprocess() == true){
- model.removeNodeset("/root/send/savedata/signinfo");
- var sIOFlag = model.getValue("/root/temp/paminfo/list/ioflag" ); // I/O 구분
- model.makeValue("/root/send/signdata/pid", model.getValue("/root/temp/paminfo/list/pid")); // 등록번호
- if(sIOFlag == "I" || sIOFlag == "E"){ // 진료일자
- model.makeValue("/root/send/signdata/orddd", model.getValue("/root/temp/paminfo/list/indd"));
- }else if(sIOFlag == "O"){
- model.makeValue("/root/send/signdata/orddd", model.getValue("/root/temp/paminfo/list/orddd"));
- }
- model.makeValue("/root/send/signdata/signno" , model.getValue("/root/main/reclist/recinfo/recinfolists/signno")); // 서명번호
- model.makeValue("/root/send/signdata/cretno" , model.getValue("/root/temp/paminfo/list/cretno")); // 생성번호
- model.makeValue("/root/send/signdata/recdd" , model.getValue("/root/main/reclist/recinfo/recinfolists/recdd")); // 실제 기록이 이루어진 기록일자(통합기록에서 보여짐)
- model.makeValue("/root/send/signdata/rectm" , model.getValue("/root/main/reclist/recinfo/recinfolists/rectm")); // 실제 기록이 이루어진 기록시간(통합기록에서 보여짐)
- model.makeValue("/root/send/signdata/recsaveflag" , "Y"); // 전자서명 인적정보 변경여부(기록일시 변경되는 경우 : Y, 그외 : N)
- model.makeValue("/root/send/signdata/signflag" , "02"); // 서명자료구분(01 : 진료, 02 : 간호)
- model.makeValue("/root/send/signdata/signgenrflag", sIOFlag); // 서명발생구분 (코드정의서 M0010 참조)
- model.makeValue("/root/send/signdata/formcd" , "0000002496"); // 각 기록지별 서식코드
- model.makeValue("/root/send/signdata/orddeptcd" , model.getValue("/root/temp/paminfo/list/orddeptcd")); // 진료부서코드
- model.makeValue("/root/send/signdata/orddrid" , model.getValue("/root/temp/paminfo/list/medispclid")); // 진료의사ID
- model.makeValue("/root/send/signdata/signbfcnts" , Sign.signedInfos[1]); // 인증할 데이터 정보(미기록 노드 제거된 정보)
- model.makeValue("/root/send/signdata/signaftcnts" , Sign.signedInfos[2]); // 공인인증 처리후 데이터
- }else{
- return false;
- }
- if(submit("TXMND00702", false)){
- fPastDialRecInfo(); // 이전 혈액투석간호기록 조회
- }
- }else{
- return;
- }
- }
- }
- //----------(20101225) 경북대
- // 기본값표시
- function fnDefaultCol() {
- // duration(hr) : 4
- model.setValue("/root/main/reclist/recinfo/recinfolists/durationflag","4");
- // 항응고요법초기/유지
- model.setValue("/root/main/reclist/recinfo/recinfolists/hprnfst",1000);
- model.setValue("/root/main/reclist/recinfo/recinfolists/hprnmatn",750);
- // bfr
- model.setValue("/root/main/reclist/recinfo/recinfolists/bfrcd","230");
- // 투석장소
- model.setValue("/root/main/reclist/recinfo/recinfolists/dialplaccd","01");
- //투석구분 : 일반hd
- model.setValue("/root/main/reclist/recinfo/recinfolists/hdkindflag","01");
- // 투석액 : BCG액
- model.setValue("/root/main/reclist/recinfo/recinfolists/dialliqd","06");
- //투석막 2011.09.14 by kya
- //FX60M
- model.setValue("/root/main/reclist/recinfo/recinfolists/dialmemcd","04");
-
- model.refresh();
- }
- // 필수항목표시
- function fnessential() {
- ipt_recdt.attribute("background-color") = fEssentialBackColor; //기록일시
- ipt_rectm.attribute("background-color") = fEssentialBackColor; //
- ipt_dialfromdt.attribute("background-color") = fEssentialBackColor; //투석시작
- ipt_dialfromtm.attribute("background-color") = fEssentialBackColor; //
- ipt_dialtodt.attribute("background-color") = fEssentialBackColor; //투석종료
- ipt_dialtotm.attribute("background-color") = fEssentialBackColor; //
- ipt_durationflag.attribute("background-color") = fEssentialBackColor; //DURATION
- cmb_hdkindflag.attribute("background-color") = fEssentialBackColor; //투석구분
- ipt_hprnfst.attribute("background-color") = fEssentialBackColor; //항응고용법
- ipt_hprnmatn.attribute("background-color") = fEssentialBackColor; //DURATION
- cmb_hdkindflag.attribute("background-color") = fEssentialBackColor; //투석구분
- cmb_dialliqd.attribute("background-color") = fEssentialBackColor; //투석액
- ipt_bfrcd.attribute("background-color") = fEssentialBackColor; //BFR
- cmb_dialplaccd.attribute("background-color") = fEssentialBackColor; //투석장소
- cmb_dialmemcd.attribute("background-color") = fEssentialBackColor; //투석막 2011.09.14
- }
- //----------(20101225) 경북대
- /**
- * @group :
- * @ver : 20161118
- * @by : 권영애
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : Vital Sign 체크
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fCheckVitalSign(){
- var xPath = "/root/main/reclist/recinfo/dialvitalsigninspspeclist/dialvitalsigninspspec/dialvitalsigninsp";
- var highbp = "";
- var lowbp = "";
- var pulse = "";
-
- for(var i=1; i<=grd_dialvitalsigninspspec.rows; i++) {
- highbp = parseInt(model.getValue(xPath + "[" + i + "]" + "/highbp"));
- lowbp = parseInt(model.getValue(xPath + "[" + i + "]" + "/lowbp"));
- pulse = parseInt(model.getValue(xPath + "[" + i + "]" + "/pulse"));
- // alert("ssss = " + grd_dialvitalsigninspspec.rows + " " +highbp + " " + lowbp + " " + pulse );
- //수축기 최고 200, 최저 80
- if ( highbp > 200 ) {
- messageBox("혈압수축기 " + highbp + " 값이 기준 범위(200-80)를", "E003");
- return;
- }
- if (highbp < 80 ) {
- messageBox("혈압수축기 " + highbp + " 값이 기준 범위(200-80)를", "E003");
- return;
- }
- //이완기 최고 120, 최저 40
- if (lowbp > 120 ) {
- messageBox("혈압이완기 " + lowbp + " 값이 기준 범위(120-40)를", "E003");
- return;
- }
- if (lowbp < 40 ) {
- messageBox("혈압이완기 " + lowbp + " 값이 기준 범위(120-40)를", "E003");
- return;
- }
- //맥박 최고 120, 최저 40
- if ( pulse > 120 ) {
- messageBox("맥박 " + pulse + " 값이 기준 범위(120-40)를", "E003");
- return;
- }
- if ( pulse < 40 ) {
- messageBox("맥박 " + pulse + " 값이 기준 범위(120-40)를", "E003");
- return;
- }
- }
- }
|