123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825 |
- /*
- (SMMNW01800_이송요원 호출.xrw - JScript )
- - Version :
- 1) : Ver.1.00.01
- */
- /**
- * @group :
- * @ver : 2007.09.03
- * @by : 김 진 명
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 이송요원 호출 초기화
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fInit(){
- var instcd = getUserInfo("dutplceinstcd");
- var dutplcecd = getUserInfo("dutplcecd");
- var standard_yn = "orduseyn";
- var ord_deptflag = "W";
- var rslt_ref = "/root/hidden/orddeptlist";
- var sort_field = "depthngnm";
- var sort_method = "asc";
- zbcfGetDeptCodeList(instcd, standard_yn, ord_deptflag, rslt_ref, sort_field, sort_method);
- mmbfGetDeptCodeComboList("/root/temp/reqdata", "/root/init/issdept", "I");
- grd_trancalllist.fixedcellcheckbox(0,0)=true;
- var MenuParam = getScreenMenuParameter();
- if( (MenuParam == "")||(MenuParam == null)||(MenuParam == "CA")||(MenuParam == "OP") ) {
- MenuParam = "1";//일반병동
- }else if( MenuParam == "RD" ) {
- MenuParam = "2";//영상의학과
- }
-
- model.setValue("/root/main/cond/calldeptflag", MenuParam);
- model.setValue("/root/main/cond/dept", dutplcecd); //로그인한 병동
- fGetRoom();
- model.removeNodeset("/root/main/trancalllist");
- model.makeValue("/root/send/reqdata/status", "2"); //콤보박스용으로 조회
- model.makeValue("/root/send/reqdata/calldeptflag", MenuParam);
- //submit("TRMNB01802", false);
-
- submit("TRMNB01811"); //부서콤보박스 조회
- // addComboItem("cmb_dept", "- 전체 -", "", "above" );
- // addComboItem("cmb_roomcd", "- 전체 -", "", "above" );
-
- //fGetNursHardCdInfo("'114','115','116'", getCurrentDate());
- zbcfGetCodeList( new Array("M0556","M0557", "M0558"), new Array("/root/init/M0556list","/root/init/M0557list", "/root/init/M0558list") );
-
- addComboItem("cmb_trflag", "- 전체 -", "", "above" );
- addComboItem("cmb_trtargetetc", "- 전체 -", "", "above" );
- addComboItem("cmb_issdept", "- 전체 -", "", "above" );
-
- var curtDate = getCurrentDate();
- var curtYYMM = curtDate.substr(0, 8);
- model.setValue("/root/main/cond/refdd", curtYYMM);
- // if ( checkOpener()){
- // var pid = opener.javascript.getParameter("pid");
- // if( pid != "" ) {
- // model.setValue("/root/main/cond/pid", pid);
- // }
- // }
-
- grd_trancalllist.explorerbar = "sort";
- fSearchTranCall();
- model.refresh();
- //model.copyNode("/root/send/reqdata", "/root/main/cond");
- //submit("TRMNB01801"); //현재 날짜로 자동 조회
- }
- /**
- * @group :
- * @ver : 2007.09.03
- * @by : 김 진 명
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 이송요원 호출 - 이송요원 호출 리스트 조회
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fSearchTranCall(){
- model.removeNodeset("/root/send");
- model.makeNode("/root/send/reqdata");
- model.copyNode("/root/send/reqdata", "/root/main/cond");
- submit("TRMNB01801");
- model.refresh();
- }
- /**
- * @group :
- * @ver : 2007.09.03
- * @by : 김 진 명
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 이송요원 호출 - 콤보박스 제거
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function removeComboItem( comboID ) {
- var comboObj = document.all.item(comboID);
- var comboItemNodeSet = comboObj.choices.itemset.attribute("nodeset");
- model.removenode(comboItemNodeSet + "[1]");
- model.refresh();
- }
- /**
- * @group :
- * @ver : 2007.09.03
- * @by : 김 진 명
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 이송요원 호출 - 전송
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fAddTranCall(){
- setParameter("status", "I");
- modal("SMMNB01810" ,"", "300", "150", "SMMNB01810", "", "");
- if( model.getValue("/root/temp/refstatus") == "C" ) {
- return;
- }else {
- fSearchTranCall();
- }
- }
- /**
- * @group :
- * @ver : 2007.09.03
- * @by : 김 진 명
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 이송요원 호출 - 재전송
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fReInsTranCall(){
- var iRows = -1;
- var chkflag = "", prcsstat = "", pid = "", wardtel = "", updtflag = "", startposnm, arvposnm;
- var cnt = 0, cnt2 = 0;
- var iPath = "/root/main/trancalllist";
- //var trancalllist = "m▦rownum▦pid▦trno▦updtflag▦chkflag▦wardtel▦startposnm▦arvposnm▦pdabpno";
- var trancalllist = "m▦rownum▦pid▦trno▦updtflag▦chkflag▦wardtel▦startposnm▦arvposnm";
- iRows = grd_trancalllist.rows;
- for( var i = 1; i < iRows; i++ ) {
- chkflag = model.getValue( iPath+"["+i+"]/chkflag");
- prcsstat = model.getValue( iPath+"["+i+"]/prcsstat");
- pid = model.getValue( iPath+"["+i+"]/pid");
- trno = model.getValue( iPath+"["+i+"]/trno");
- wardtel = model.getValue( iPath+"["+i+"]/wardtel");
- startposnm = model.getValue(iPath+"["+i+"]/startposnm");
- arvposnm = model.getValue(iPath+"["+i+"]/arvposnm");
- updtflag = "RC";
- //pdabpno = model.getValue( iPath+"["+i+"]/pdabpno");
- if( chkflag == "true" ) {
- if( (prcsstat == "2")||(prcsstat == "3")||(prcsstat == "4")||(prcsstat == "5") ) {
- cnt2 += 1;
- }else {
- trancalllist = trancalllist + "▩" + "u" + "▦" + i + "▦" + pid + "▦" + trno
- + "▦" + updtflag + "▦" + chkflag + "▦" + wardtel
- + "▦" + startposnm + "▦" + arvposnm ;
- // + "▦" + startposnm + "▦" + arvposnm + "▦" + pdabpno ;
- }
- cnt += 1;
- }
- }
-
- if( cnt2 > 0 ) {
- //messageBox("호출, 응답, 완료, 취소 상태는 재호출을", "E001");
- messageBox("재전송은 진행상태값이 전송과 보류인 경우에만", "I006");
- }else if( cnt > 0 ) { //체크박스 체크유무
- model.removenode("/root/send");
- model.makeValue("/root/send/savedata", trancalllist);
- model.copyNode("/root/send/reqdata", "/root/main/cond");
- submit("TXMNB01801");
- }else {
- messageBox("선택한것이", "I004");
- }
- fSearchTranCall();
- }
- /**
- * @group :
- * @ver : 2007.09.03
- * @by : 김 진 명
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 이송요원 호출 - 접수
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fAcptTranCall(){
- var iRows = -1;
- var chkflag = "", prcsstat = "", pid = "", wardtel = "", updtflag = "", startposnm, arvposnm;
- var cnt = 0, cnt2 = 0;
- var iPath = "/root/main/trancalllist";
- //var trancalllist = "m▦rownum▦pid▦trno▦updtflag▦chkflag▦wardtel▦startposnm▦arvposnm▦pdabpno";
- var trancalllist = "m▦rownum▦pid▦trno▦updtflag▦chkflag▦wardtel▦startposnm▦arvposnm";
- iRows = grd_trancalllist.rows;
- for( var i = 1; i < iRows; i++ ) {
- chkflag = model.getValue( iPath+"["+i+"]/chkflag");
- prcsstat = model.getValue( iPath+"["+i+"]/prcsstat");
- pid = model.getValue( iPath+"["+i+"]/pid");
- trno = model.getValue( iPath+"["+i+"]/trno");
- wardtel = model.getValue( iPath+"["+i+"]/wardtel");
- startposnm = model.getValue(iPath+"["+i+"]/startposnm");
- arvposnm = model.getValue(iPath+"["+i+"]/arvposnm");
- updtflag = "AC";
- //pdabpno = model.getValue( iPath+"["+i+"]/pdabpno");
- if( chkflag == "true" ) {
- if( (prcsstat == "2")||(prcsstat == "4")||(prcsstat == "5")||(prcsstat == "6") ) {
- cnt2 += 1;
- }else {
- trancalllist = trancalllist + "▩" + "u" + "▦" + i + "▦" + pid + "▦" + trno
- + "▦" + updtflag + "▦" + chkflag + "▦" + wardtel
- + "▦" + startposnm + "▦" + arvposnm ;
- // + "▦" + startposnm + "▦" + arvposnm + "▦" + pdabpno ;
- }
- cnt += 1;
- }
- }
-
- if( cnt2 > 0 ) {
- messageBox("접수는 진행상태값이 전송과 재전송인 경우에만", "I006");
- }else if( cnt > 0 ) { //체크박스 체크유무
- model.removenode("/root/send");
- model.makeValue("/root/send/savedata", trancalllist);
- model.copyNode("/root/send/reqdata", "/root/main/cond");
- submit("TXMNB01801");
- }else {
- messageBox("선택한것이", "I004");
- }
- fSearchTranCall();
- }
- /**
- * @group :
- * @ver : 2007.09.03
- * @by : 김 진 명
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 이송요원 호출 - 보류
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fReteCall(){
- var iRows = -1, cnt = 0, cnt2 = 0;
- var chkflag = "", prcsstat = "", pid, trno, updtflag;
- var iPath = "/root/main/trancalllist";
- var trancalllist = "m▦rownum▦pid▦trno▦updtflag▦chkflag";
- iRows = grd_trancalllist.rows;
- for( var i = 1; i < iRows; i++ ) {
- chkflag = model.getValue(iPath+"["+i+"]/chkflag");
- prcsstat = model.getValue(iPath+"["+i+"]/prcsstat");
- pid = model.getValue(iPath+"["+i+"]/pid");
- trno = model.getValue(iPath+"["+i+"]/trno");
- updtflag = "R";
- if( chkflag == "true" ) {
- if( (prcsstat == "2")||(prcsstat == "3")||(prcsstat == "4")||(prcsstat == "5")||(prcsstat == "6") ) {
- cnt2 += 1;
- }else {
- cnt += 1;
- trancalllist = trancalllist + "▩" + "u" + "▦" + cnt + "▦" + pid
- + "▦" + trno + "▦" + updtflag + "▦" + chkflag;
- }
- }
- }
- if(cnt2 >0) {
- //messageBox("완료, 취소, 보류 상태는 보류를", "E001");
- messageBox("보류는 진행상태값이 전송인 경우에만", "I006");
- }else if(cnt > 0 ) {
- model.removenode("/root/send");
- model.makeValue("/root/send/savedata", trancalllist);
- model.copyNode("/root/send/reqdata", "/root/main/cond");
- submit("TXMNB01801");
- }else {
- messageBox("선택한것이", "I004");
- }
- fSearchTranCall();
- }
- /**
- * @group :
- * @ver : 2007.09.03
- * @by : 김 진 명
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 이송요원 호출 - 취소
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fTranCallCncl() {
- var iRows = -1;
- var chkflag = "", trno = "", prcsstat = "", pid = "", updtflag = "";//, msgkey = "";
- var cnt = 0, cnt2 = 0;
- var iPath = "/root/main/trancalllist";
- var trancalllist = "m▦rownum▦pid▦updtflag▦chkflag▦trno";
- //var trancalllist = "m▦rownum▦pid▦updtflag▦chkflag▦trno▦msgkey";
- iRows = grd_trancalllist.rows;
- for( var i = 1; i < iRows; i++ ) {
- chkflag = model.getValue(iPath+"["+i+"]/chkflag");
- prcsstat = model.getValue(iPath+"["+i+"]/prcsstat");
- pid = model.getValue(iPath+"["+i+"]/pid");
- trno = model.getValue(iPath+"["+i+"]/trno");
- updtflag = "C";
- //msgkey = model.getValue(iPath+"["+i+"]/msgkey");
- if( chkflag == "true" ) {
- if( (prcsstat == "2")||(prcsstat == "4")||(prcsstat == "5") ) {
- cnt2 += 1;
- }else {
- trancalllist = trancalllist + "▩" + "u" + "▦" + i + "▦" + pid + "▦"+ updtflag + "▦" + chkflag + "▦" + trno ;
- //trancalllist = trancalllist + "▩" + "u" + "▦" + i + "▦" + pid + "▦"+ updtflag + "▦" + chkflag + "▦" + trno + "▦" + msgkey;
- }
- cnt += 1;
- }
- }
- if( cnt2 > 0 ) {
- //messageBox("완료, 취소 상태는 취소를", "E001");
- messageBox("취소는 진행상태값이 전송,보류,재전송인 경우에만", "I006");
- }else if( cnt > 0 ) {
- model.removenode("/root/send");
- model.makeValue("/root/send/savedata", trancalllist);
- model.copyNode("/root/send/reqdata", "/root/main/cond");
- submit("TXMNB01801");
- }else {
- messageBox("선택한것이", "I004");
- return;
- }
- fSearchTranCall();
- }
- /**
- * @group :
- * @ver : 2007.09.03
- * @by : 김 진 명
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 이송요원 호출 - 이송요원 추가/수정 호출
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fDblClick(){
- var iRow = -1;
- iRow = grd_trancalllist.row;
- if(iRow < 1)
- {
- return;
- }else
- {
- var iPath = "/root/main/trancalllist";
- var prcsstat = model.getValue (iPath + "["+iRow+"]/prcsstat");
- if( ( prcsstat == "4" )||( prcsstat == "5" ) ) {
- messageBox("취소 또는 완료 상태", "E008");
- }else {
- setParameter("status", "U");
- setParameter("pid", model.getValue( iPath + "[" + iRow + "]/pid") );
- setParameter("patnm", model.getValue( iPath + "[" + iRow + "]/patnm") );
- setParameter("trtargetetc", model.getValue( iPath + "[" + iRow + "]/trtargetetc"));
- setParameter("trtarget", model.getValue( iPath + "[" + iRow + "]/trtarget") );
- setParameter("trflag", model.getValue( iPath + "[" + iRow + "]/trflag"));
- if(model.getValue( iPath + "[" + iRow + "]/trflag") == "1") {
- setParameter("trtargetetc", model.getValue( iPath + "[" + iRow + "]/trtargetetc"));
- }else if (model.getValue( iPath + "[" + iRow + "]/trflag") == "2") {
- setParameter("prcpno", model.getValue( iPath + "[" + iRow + "]/trtargetetc"));
- }
- setParameter("prepfact", model.getValue( iPath + "[" + iRow + "]/prepfact"));
-
- setParameter("wardcd", model.getValue( iPath + "[" + iRow + "]/wardcd") );
- setParameter("wardtel", model.getValue( iPath + "[" + iRow + "]/wardtel") );
- setParameter("roomcd", model.getValue( iPath + "[" + iRow + "]/roomcd") );
-
- setParameter("startposcd", model.getValue( iPath + "[" + iRow + "]/startposcd") );
- setParameter("startposnm", model.getValue( iPath + "[" + iRow + "]/startposnm") );
- setParameter("startrgstflag", model.getValue( iPath + "[" + iRow + "]/startrgstflag") );
- setParameter("arvposcd", model.getValue( iPath + "[" + iRow + "]/arvposcd") );
- setParameter("arvposnm", model.getValue( iPath + "[" + iRow + "]/arvposnm") );
- setParameter("arvrgstflag", model.getValue( iPath + "[" + iRow + "]/arvrgstflag") );
- setParameter("movewayno", model.getValue( iPath + "[" + iRow + "]/movewayno") );
- setParameter("remark", model.getValue( iPath + "[" + iRow + "]/remark") );
- setParameter("remarkno", model.getValue( iPath + "[" + iRow + "]/remarkno") );
- setParameter("trno", model.getValue( iPath + "[" + iRow + "]/trno") );
- //setParameter("rsrvdt", model.getValue( iPath + "[" + iRow + "]/rsrvdt").substr(4, 4));
- setParameter("rsrvdt", model.getValue( iPath + "[" + iRow + "]/rsrvdt"));
- setParameter("posstm", model.getValue( iPath + "[" + iRow + "]/posstm") );
- setParameter("prcsstat", model.getValue( iPath + "[" + iRow + "]/prcsstat") );
- setParameter("updtflag", model.getValue( iPath + "[" + iRow + "]/updtflag") );
- //setParameter("pdabpno", model.getValue( iPath + "[" + iRow + "]/pdabpno") );
- //setParameter("msgkey", model.getValue( iPath + "[" + iRow + "]/msgkey") );
- /*
- var iRow = grd_trancalllist.row;
- var pid = ""
- var prcpnm = "";
- var trtargetetc = "";
- var rsrvdt = "";
- var prcpexecdeptcd = "";
- var prcpno= "";
-
- pid =model.getValue("/root/main/trancalllist["+iRow+"]/pid");
- prcpnm =model.getValue("/root/main/trancalllist["+iRow+"]/trtarget");
- trtargetetc =model.getValue("/root/main/trancalllist["+iRow+"]/trtargetetc");
- rsrvdt =model.getValue("/root/main/trancalllist["+iRow+"]/rsrvdt");
- prcpexecdeptcd =model.getValue("/root/main/trancalllist["+iRow+"]/prcpexecdeptcd");
- prcpno =model.getValue("/root/main/trancalllist["+iRow+"]/trtargetetc");
- alert(pid);
- alert(prcpnm);
- alert(trtargetetc);
- alert(rsrvdt);
- alert(prcpexecdeptcd);
- alert(prcpno);
- pid ="1";
- prcpnm ="2";
- trtargetetc ="3";
- rsrvdt ="4";
- prcpexecdeptcd ="5";
- prcpno ="6";
-
- fInsTranCallInfo(pid, prcpnm, trtargetetc, rsrvdt, prcpexecdeptcd, prcpno);
- */
-
- modal("SMMNB01810" ,"", "300", "150", "SMMNB01810", "", "");
-
- if( model.getValue("/root/temp/refstatus") == "C" ) {
- return;
- }else {
- model.removenode("/root/send");
- model.copyNode("/root/send/reqdata", "/root/main/cond");
- submit("TRMNB01801");
- }
- }
- }
- }
- /**
- * @group :
- * @ver : 2007.09.03
- * @by : 김 진 명
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 이송요원 호출 - 반복
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fReptCall(){
- var iRows = -1, cnt = 0, cnt2 = 0;
- var chkflag = "", prcsstat = "", pid = "", trno = "", trtarget = "", trtargetetc = "", startposcd = "", arvposcd = "";
- var movewayno = "", remarkno = "", freetext = "", updtflag = "", trflag = "", wardtel = "" , prepfact = "" ,rsrvdt ="" ,prcpno="";//, pdabpno = "";
- var rsrvyn = "0";
- // var trancalllist = "m▦rownum▦pid▦trno▦updtflag▦chkflag▦trtarget▦trtargetetc▦startposcd▦arvposcd▦movewayno▦remarkno▦freetext▦rsrvyn▦trflag▦wardtel▦prepfact▦rsrvdt▦prcpno▦pdabpno";
- var trancalllist = "m▦rownum▦pid▦trno▦updtflag▦chkflag▦trtarget▦trtargetetc▦startposcd▦arvposcd▦movewayno▦remarkno▦freetext▦rsrvyn▦trflag▦wardtel▦prepfact▦rsrvdt▦prcpno";
- var iPath = "/root/main/trancalllist";
- iRows = grd_trancalllist.rows;
- for( var i = 1; i < iRows; i++ ) {
- chkflag = model.getValue( iPath + "["+i+"]/chkflag" );
- prcsstat = model.getValue( iPath + "["+i+"]/prcsstat" );
- pid = model.getValue( iPath + "["+i+"]/pid" );
- trno = model.getValue( iPath + "["+i+"]/trno" );
- trtarget = model.getValue( iPath + "["+i+"]/trtarget" );
- if(model.getValue( iPath + "[" + i + "]/trflag") == "1") {
- trtargetetc = model.getValue( iPath + "["+i+"]/trtargetetc" );
- }else if (model.getValue( iPath + "[" + i + "]/trflag") == "2") {
- prcpno = model.getValue( iPath + "["+i+"]/trtargetetc" );
- }else{
- trtargetetc ="";
- }
- startposcd = model.getValue( iPath + "["+i+"]/startposcd" );
- arvposcd = model.getValue( iPath + "["+i+"]/arvposcd" );
- movewayno = model.getValue( iPath + "["+i+"]/movewayno" );
- remarkno = model.getValue( iPath + "["+i+"]/remarkno" );
- freetext = model.getValue( iPath + "["+i+"]/remark" );
- trflag = model.getValue( iPath + "["+i+"]/trflag");
-
- if(model.getValue( iPath + "["+i+"]/rsrvdt") !='') {
- rsrvdt = getCurrentDate().substr(0,8)+model.getValue( iPath + "["+i+"]/rsrvdt");
- }else{
- rsrvdt ="";
- }
-
- wardtel = model.getValue( iPath + "["+i+"]/wardtel");
- prepfact = model.getValue( iPath + "["+i+"]/prepfact");
- updtflag = "R";
- //pdabpno = model.getValue( iPath + "["+i+"]/pdabpno" );
- if( chkflag == "true" ) {
- if( (prcsstat == "1")||(prcsstat == "2")||(prcsstat == "3")||(prcsstat == "5")||(prcsstat == "6") ) {
- cnt2 += 1;
- }else {
- trancalllist = trancalllist + "▩" + "u" + "▦" + i + "▦" + pid + "▦" + trno
- + "▦" + updtflag + "▦" + chkflag + "▦" + trtarget + "▦" + trtargetetc
- + "▦" + startposcd + "▦" + arvposcd + "▦" + movewayno + "▦" + remarkno
- + "▦" + freetext + "▦" + rsrvyn + "▦" + trflag + "▦" + wardtel
- + "▦" + prepfact + "▦" + rsrvdt + "▦" + prcpno ;
- // + "▦" + prepfact + "▦" + rsrvdt + "▦" + prcpno + "▦" + pdabpno ;
- }
- cnt += 1;
- }
- }
- if( cnt2 > 0 ) {
- messageBox("반복은 진행상태값이 완료인 경우에만", "I006");
- }else if( cnt > 0 ) {
- model.removenode("/root/send");
- model.makeValue("/root/send/savedata", trancalllist);
- model.copyNode("/root/send/reqdata", "/root/main/cond");
- submit("TXMNB01802");
- }else {
- messageBox("선택한것이", "I004");
- return;
- }
- fSearchTranCall();
- }
- /**
- * @group :
- * @ver : 2007.09.03
- * @by : 김 진 명
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 이송요원 호출 - Return
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fRtnCall() {
- var iRows = -1, cnt = 0, cnt2 = 0;
- var chkflag, prcsstat, pid, trno, trtarget, trtargetetc, startposcd, arvposcd, patnm, arvposnm, startposnm, rsrvdt;
- var movewayno, remarkno, freetext, updtflag, indd, cretno, arvposnm, rtnValue, roomcd, movewaynm, userid, trflag, wardtel, prepfact, prcpno;//, pdabpno;
- var rsrvyn = "0"; //호출
- var iPath = "/root/main/trancalllist";
- var trancalllist = "m▦rownum▦pid▦trno▦updtflag▦chkflag▦trtarget▦trtargetetc▦startposcd▦arvposcd▦movewayno▦remarkno▦freetext▦rsrvyn▦roomcd▦movewaynm▦patnm▦startposnm▦arvposnm▦trflag▦wardtel▦prepfact▦rsrvdt▦prcpno";
- // var trancalllist = "m▦rownum▦pid▦trno▦updtflag▦chkflag▦trtarget▦trtargetetc▦startposcd▦arvposcd▦movewayno▦remarkno▦freetext▦rsrvyn▦roomcd▦movewaynm▦patnm▦startposnm▦arvposnm▦trflag▦wardtel▦prepfact▦rsrvdt▦prcpno▦pdabpno";
- iRows = grd_trancalllist.rows;
- for( var i = 1; i < iRows; i++ ) {
- chkflag = model.getValue( iPath + "["+i+"]/chkflag");
- prcsstat = model.getValue( iPath + "["+i+"]/prcsstat");
- pid = model.getValue( iPath + "["+i+"]/pid");
- trno = model.getValue( iPath + "["+i+"]/trno");
- trtarget = model.getValue( iPath + "["+i+"]/trtarget");
- if(model.getValue( iPath + "[" + i + "]/trflag") == "1") {
- trtargetetc = model.getValue( iPath + "["+i+"]/trtargetetc" );
- }else if (model.getValue( iPath + "[" + i + "]/trflag") == "2") {
- prcpno = model.getValue( iPath + "["+i+"]/trtargetetc" );
- }else{
- trtargetetc ="";
- }
-
-
- startposcd = model.getValue( iPath + "["+i+"]/startposcd");
- arvposcd = model.getValue( iPath + "["+i+"]/arvposcd");
- movewayno = model.getValue( iPath + "["+i+"]/movewayno");
- remarkno = model.getValue( iPath + "["+i+"]/remarkno");
- freetext = model.getValue( iPath + "["+i+"]/remark");
-
-
- if(model.getValue( iPath + "["+i+"]/rsrvdt") !='') {
- rsrvdt = getCurrentDate().substr(0,8)+model.getValue( iPath + "["+i+"]/rsrvdt");
- }else{
- rsrvdt ="";
- }
-
- trflag = model.getValue( iPath + "["+i+"]/trflag");
-
- indd = model.getValue( iPath + "["+i+"]/indd");
- cretno = model.getValue( iPath + "["+i+"]/cretno");
- arvposnm = model.getValue( iPath + "["+i+"]/arvposnm2");
- roomcd = model.getValue( iPath + "["+i+"]/roomcd");
- movewaynm = model.getValue( iPath + "["+i+"]/movewaynm");
- patnm = model.getValue( iPath + "["+i+"]/patnm");
- arvposnm = model.getValue( iPath + "["+i+"]/arvposnm");
- startposnm = model.getValue( iPath + "["+i+"]/startposnm");
- userid = model.getValue( iPath + "["+i+"]/userid");
- trflag = model.getValue( iPath + "["+i+"]/trflag");
- wardtel = model.getValue( iPath + "["+i+"]/wardtel");
- prepfact = model.getValue( iPath + "["+i+"]/prepfact");
- updtflag = "RTN";
- //pdabpno = model.getValue( iPath + "["+i+"]/pdabpno");
- if( chkflag == "true" ) {
- if((prcsstat == "1")||(prcsstat == "2")|| (prcsstat == "3")||(prcsstat == "5")||(prcsstat == "6")) {//전송,접수,재전송,취소,보류
- cnt2 += 1;
- }else {
- /*
- if( prcsstat != "4" ) {//완료일 경우 간호기록을 했으므로 다시 하지 않는다.
- rtnValue = fDifBizSaveStmtInfo(pid, indd, cretno, arvposnm+"(으)로 이송함", "J", "I", "R", userid);//J : 간호일지 이송요원 정보 저장, 외래입원구분(I : 입원, O : 외래), DNAR 정보(D : 데이터, N : 진단, A : 행동, R : 결과)
- if( !rtnValue ) {
- messageBox("간호 일지 기록에 ", "E009");
- return;
- }
-
- }
- */
- trancalllist = trancalllist + "▩" + "u" + "▦" + i + "▦" + pid + "▦" + trno
- + "▦" + updtflag + "▦" + chkflag + "▦" + trtarget + "▦" + trtargetetc
- + "▦" + startposcd + "▦" + arvposcd + "▦" + movewayno + "▦" + remarkno
- + "▦" + freetext + "▦" + rsrvyn + "▦" + roomcd
- + "▦" + movewaynm + "▦" + patnm + "▦" + arvposnm + "▦" + startposnm
- + "▦" + trflag + "▦" + wardtel + "▦" + prepfact + "▦" + rsrvdt
- + "▦" + prcpno ;
- // + "▦" + prcpno + "▦" + pdabpno;
- }
- cnt += 1;
- }
- }
-
- if( cnt2 > 0 ) {
- //messageBox("호출, 응답, 완료를 제외한 상태는", "E001");
- messageBox("RETURN은 진행상태값이 완료인 경우에만", "I006");
- }else if( cnt > 0 ) {
- model.removenode("/root/send");
- model.makeValue("/root/send/savedata", trancalllist);
- model.copyNode("/root/send/reqdata", "/root/main/cond");
- submit("TXMNB01801");
- submit("TXMNB01802");
- }else {
- messageBox("선택한것이", "I004");
- }
- fSearchTranCall();
- }
- /**
- * @group :
- * @ver : 2007.09.03
- * @by : 김 진 명
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 이송요원 호출 - 완료
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fTranEnd(){
- var iRows = -1, cnt = 0, cnt2 = 0;
- var chkflag = "", prcsstat = "", pid, trno, updtflag, indd, cretno, arvposnm, rtnValue;
- var iPath = "/root/main/trancalllist";
- var trancalllist = "m▦rownum▦pid▦trno▦updtflag▦chkflag";
- iRows = grd_trancalllist.rows;
- for( var i = 1; i < iRows; i++ ) {
- chkflag = model.getValue(iPath + "[" + i + "]/chkflag");
- prcsstat = model.getValue(iPath + "[" + i + "]/prcsstat");
- pid = model.getValue(iPath + "[" + i + "]/pid");
- trno = model.getValue(iPath + "[" + i + "]/trno");
- indd = model.getValue(iPath + "[" + i + "]/indd");
- cretno = model.getValue(iPath + "[" + i + "]/cretno");
- arvposnm = model.getValue(iPath + "[" + i + "]/arvposnm2");
- userid = model.getValue( iPath + "["+i+"]/userid");
- updtflag = "END";
- if( chkflag == "true" ) {
- if( (prcsstat == "2")||(prcsstat == "3")||(prcsstat == "4")||(prcsstat == "5")||(prcsstat == "6") ) {
- cnt2 += 1;
- }else {
- rtnValue = fDifBizSaveStmtInfo(pid, indd, cretno, arvposnm+"(으)로 이송함", "J", "I", "R", userid);//J : 간호일지 이송요원 정보 저장, 외래입원구분(I : 입원, O : 외래), DNAR 정보(D : 데이터, N : 진단, A : 행동, R : 결과)
- if( !rtnValue ) {
- messageBox("간호 일지 기록에 ", "E009");
- return;
- }
- trancalllist = trancalllist + "▩" + "u" + "▦" + i + "▦" + pid
- + "▦" + trno + "▦" + updtflag + "▦" + chkflag;
- }
- cnt += 1;
- }
- }
- if( cnt2 > 0 ) {
- messageBox("완료는 진행상태값이 접수인 경우에만", "I006");
- }else if( cnt > 0 ) {
- model.removenode("/root/send");
- model.makeValue("/root/send/savedata", trancalllist);
- model.copyNode("/root/send/reqdata", "/root/main/cond");
- submit("TXMNB01801");
- }else {
- messageBox("선택한것이", "I004");
- }
- fSearchTranCall();
- }
- /**
- * @group :
- * @ver : 2007.11.07
- * @by : 김 진 명
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 이송요원 호출 - 출력
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fPrntTranCallList(){
- // 출력할 데이터가 없는 경우
- if(getNodesetCount("/root/main/trancalllist")==0){
- messageBox("출력할 데이터가", "I004"); return;
- }else{
- var instcd = getUserInfo("dutplceinstcd");
- var refdd = model.getValue("/root/main/cond/refdd");
- if( refdd == "" ) {
- refdd = "%%";
- }
- var pid = model.getValue("/root/main/cond/pid");
- if( pid == "" ) {
- pid = "%%";
- }
- var wardcd = model.getValue("/root/main/cond/wardcd");
- if( wardcd == "" ) {
- wardcd = "%%";
- }
- var prcsstat = model.getValue("/root/main/cond/prcsstat");
- if( prcsstat == "" ) {
- prcsstat = "%%";
- }
- var trtargetetc = model.getValue("/root/main/cond/trtargetetc");
- if( trtargetetc == "" ) {
- trtargetetc = "%%";
- }
- var patnm = model.getValue("/root/main/cond/patnm");
- if( patnm == "" ) {
- patnm = "%%";
- }
- /*
- var pdabpno = model.getValue("/root/main/cond/pdabpno");
- if( pdabpno == "" ) {
- pdabpno = "%%";
- }
- */
- model.makeValue("/root/send/report/instcd", instcd );
- model.makeValue("/root/send/report/calldd", refdd );
- model.makeValue("/root/send/report/pid", pid );
- model.makeValue("/root/send/report/wardcd", wardcd );
- model.makeValue("/root/send/report/prcsstat", prcsstat);
- model.makeValue("/root/send/report/trtargetetc", trtargetetc );
- model.makeValue("/root/send/report/patnm", patnm );
- //model.makeValue("/root/send/report/pdabpno", pdabpno );
- for(var i=1;i<grd_trancalllist.rows;i++) {
- model.makeNode("/root/hidden/trancalllist/trancalllist["+i+"]");
- model.copyNode("/root/hidden/trancalllist/trancalllist["+i+"]", "/root/main/trancalllist["+i+"]");
- }
- exeReportPreview("RPMNB01801", "XMLSTR", "/root/hidden/trancalllist", "", "", "", "", "", "", "");
- }
- }
- /**
- * @group :
- * @ver : 2009.08.10
- * @by : 최영
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 이송요원 병실 검색
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fGetRoom(){
- model.removeNodeset("/root/send");
- model.makeValue("/root/send/wardcd",model.getValue("/root/main/cond/dept"));
- submit("TRMNB01803"); //병실 조회
- addComboItem("cmb_roomcd", "- 전체 -", "", "above" );
- }
|