/* (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