/** * @desc : ÆûÃʱâÈ­ * @ * @param : * @return : * @authur : ÀÌÀº¿µ 2008.03.18 * @--------------------------------------------------- */ function fFormInit() { /* ¸¶½ºÅÍ Á¤º¸ °¡Á®¿À±â.. //°øÅëÄÚµå °¡Á®¿À±â... //M0392:íƮ¹Ì´ëÃâ»çÀ¯ÄÚµå //M0412:°úº¸°ü»çÀ¯ÄÚµå //M0424:Â÷Æ®»óÅÂ(ºÐ½Ç)ÄÚµå zbcfGetCodeList(new Array("M0392","M0412","M0424"), new Array("/root/init/M0392","/root/init/M0412","/root/init/M0424")); // ´ëÃâ¿ëµµ, ´ëÃâ°ú, Â÷Æ®°ú, Â÷Æ®´ã´çÀÚ, º¸°üÀå¼Ò model.makeValue("/root/send/reqdata/ioflag" , "O"); model.makeValue("/root/send/reqdata/useyn" , ""); model.makeValue("/root/send/reqdata/allwardyn", ""); model.refresh(); submit("TRMRC00100"); //*/ model.setValue("/root/send/reqdata/rendcd" , "ALL"); model.setValue("/root/send/reqdata/appdept" , "ALL"); model.setValue("/root/send/reqdata/appdd" , getCurrentDate()); model.setValue("/root/send/reqdata/chrtman" , "ALL"); model.setValue("/root/send/reqdata/keepplce", "ALL"); model.setValue("/root/send/reqdata/renddd" , getCurrentDate()); model.setValue("/root/send/reqdata/resettm" , getCurrentTime()); model.setValue("/root/send/reqdata/acptid" , getUserId()); // 2008.07.30. Â÷Æ®ÀÚµ¿´ëÃâ , Â÷Æ®±âŸ´ëÃâ : display ±¸ºÐ model.setValue("/root/send/reqdata/autolendflag", "A"); model.refresh(); fDisplayAutoLend(); } /** * @desc : Â÷Æ®ÀÚµ¿´ëÃâ , Â÷Æ®±âŸ´ëÃâ : display * @ * @param : * @return : * @authur : ÀÌÀº¿µ 2008.07.30 * @--------------------------------------------------- */ function fDisplayAutoLend() { var flag = model.getValue("/root/send/reqdata/autolendflag"); if (flag == "A") { model.toggle("lendinfo_etc"); lendinfo_etc.disabled = true; grup_chrtlist.disabled = true; } else if (flag == "I") { //2010.12.27, ÁÖÈñ°æ, ÀÔ¿ø´ëÃâ Ãß°¡ model.toggle("lendinfo_inpt"); grup_chrtlist.disabled = false; cbo_lenddeptcd.dispatch("xforms-value-changed"); } else { model.toggle("lendinfo_etc"); lendinfo_etc.disabled = false; grup_chrtlist.disabled = false; cmb_l_appdeptcd.dispatch("xforms-value-changed"); } ipt_l_lendmanid.disabled = true; ipt_l_appmanid.disabled = true; ipt_l_appmannm.disabled = true; ipt_chrtpnm.disabled = true; } /** * @desc : íƮ ´ëÃâ ¿ìŬ¸¯½Ã - > íƮ´ëÃâ * @ * @param : * @return : * @authur : ÀÌÀº¿µ 2008.03.18 * @--------------------------------------------------- */ function fsetrendchart() { fUpdateRendDelFlagYN("N"); } /** * @desc : íƮ ´ëÃâ ¿ìŬ¸¯½Ã - > ´ëÃâ ½Åû Ãë¼Ò * @ * @param : * @return : * @authur : ÀÌÀº¿µ 2008.03.18 * @--------------------------------------------------- */ function fsetrendcncl() { fUpdateRendDelFlagYN("Y"); } /** * @desc : íƮ ´ëÃâ ¿ìŬ¸¯½Ã - > íƮ ´ëÃâ ¶Ç´Â ´ëÃâ ½Åû Ãë¼Ò(update) * @ * @param : flag ('N'=> íƮ´ëÃâ, 'Y'=>½ÅûÃë¼Ò) * @return : * @authur : ÀÌÀº¿µ 2008.03.18 * @--------------------------------------------------- */ function fUpdateRendDelFlagYN(flag) { var ref = "/root/main/chrtlend/applist"; var grdObj = grd_applist; var savedata = "m¢Ëchrtseqno¢Ëmedirecno¢Ëpid¢Ërendcd¢Ëappmanid¢Ëappdeptcd¢Ëdelyn¢Ërenddd¢Ëresettm¢Ëacptid¢Ëioflag¢Ì"; var dataString = ""; var dataCount = 0; var renddd = getCurrentDate(); model.setValue("/root/send/reqdata/renddd" , getCurrentDate()); var resettm = model.getValue("/root/send/reqdata/resettm"); var acptid = model.getValue("/root/send/reqdata/acptid"); for ( var i = 0; i < grdObj.selectedRows; i++) { var chrtlendyn = model.getValue(ref + "[" + grdObj.selectedrow(i) + "]/chrtlendyn"); if (chrtlendyn != "Y") { var chrtseqno = model.getValue(ref + "[" + grdObj.selectedrow(i) + "]/chrtseqno"); var medirecno = model.getValue(ref + "[" + grdObj.selectedrow(i) + "]/medirecno"); var pid = model.getValue(ref + "[" + grdObj.selectedrow(i) + "]/pid"); var rendcd = model.getValue(ref + "[" + grdObj.selectedrow(i) + "]/rendcd"); var appmanid = model.getValue(ref + "[" + grdObj.selectedrow(i) + "]/appmanid"); var appdeptcd = model.getValue(ref + "[" + grdObj.selectedrow(i) + "]/appdeptcd"); //2010.12.28, ÁÖÈñ°æ, ÀÔ¿ø´ëÃ⠽ÿ¡´Â ioflag¸¦ I·Î ¼³Á¤ if ( model.getValue("/root/send/reqdata/autolendflag") == "I" ) { var ioflag = "I"; } dataString = dataString + "u¢Ë" + chrtseqno + "¢Ë" + medirecno + "¢Ë" + pid + "¢Ë" + rendcd + "¢Ë" + appmanid + "¢Ë" + appdeptcd + "¢Ë" + flag + "¢Ë"; dataString = dataString + renddd + "¢Ë" + resettm + "¢Ë" + acptid + "¢Ë"+ioflag+"¢Ì"; dataCount = dataCount + 1; } } if (dataString.length > 0) { model.makeValue("/root/send/savedata", savedata + dataString); if (flag == "N") { submit("TXMRC00120"); alert("ÃÑ " + dataCount + " °Ç íƮ´ëÃ⠵Ǿú½À´Ï´Ù."); // 2008.01.02. ´ëÃâÇöȲ Á¶È¸ ÃѰǼö.. model.setValue ("/root/init/count", grd_rendlist.rows - 1); cap_rendlist.refresh(); } else { submit("TXMRC00105"); alert("ÃÑ " + dataCount + " °Ç ´ëÃâ½ÅûÀÌ Ãë¼ÒµÇ¾ú½À´Ï´Ù."); } // Á¢¼öÇöȲ ´Ù½Ã Á¶È¸Çϱâ.. fGetLendList(); } } /** * @desc : íƮ ´ëÃâ ¿ìŬ¸¯½Ã - > ¹Ì´ëÃâ »çÀ¯ ÀÔ·Â * @ * @param : * @return : * @authur : ÀÌÀº¿µ 2008.03.18 * @--------------------------------------------------- */ function fsetrendresn(){ if(grd_applist.row < 1){ return; } // 2007.12.27. ¹Ì´ëÃâ»çÀ¯ ÀÔ·ÂÇϱâ... fShowWndIptBox("0"); } /** * @desc : íƮ ´ëÃâ ¿ìŬ¸¯½Ã - > ¹Ì´ëÃâ »çÀ¯ ¾÷µ¥ÀÌÆ® (update) * @ * @param : * @return : * @authur : ÀÌÀº¿µ 2008.03.18 * @--------------------------------------------------- */ function fUpdateUnrendresn(){ // 2007.12.27. ¹Ì´ëÃâ»çÀ¯ ÀÔ·ÂÇϱâ... var unrendcd = model.getValue("/root/hidden/applist/unrendcd"); var unrendresn = model.getValue("/root/hidden/applist/unrendresn"); var savedata ="chrtseqno¢Ëunrendcd¢Ëunrendresn¢Ì"; var dataString = ""; var dataCount = 0; for ( var i = 0; i < grd_applist.selectedRows; i++) { var chrtseqno = model.getValue("/root/main/chrtlend/applist[" + grd_applist.selectedrow(i) + "]/chrtseqno"); if (chrtseqno != "") { dataString = dataString + chrtseqno + "¢Ë" + unrendcd + "¢Ë" + unrendresn + "¢Ì"; dataCount = dataCount + 1; } } grup_unrendresn.visible = false; if (dataString.length > 0) { model.makeValue("/root/send/savedata", savedata + dataString); model.refresh(); submit("TXMRC00102"); alert("ÃÑ " + dataCount + " °Ç ¹Ì´ëÃâ(»çÀ¯ÀÔ·Â) µÇ¾ú½À´Ï´Ù."); // ´Ù½Ã Á¶È¸Çϱâ.. fGetLendList(); } } /** * @desc : íƮ ´ëÃâ Á¶È¸ * @ * @param : * @return : * @authur : ÀÌÀº¿µ 2008.03.18 * @--------------------------------------------------- */ function fGetLendList() { submit("TRMRC00110"); //var pid = model.getValue("/root/send/reqdata/pid"); //if (pid.length > 0) { // model.setValue("/root/send/reqdata/pid", pid); // model.refresh(); // btn_chrtlist.dispatch("DOMActivate"); //} } /** * @desc : íƮ ´ëÃâ Á¶È¸ - ¹ÙÅ©µµ ÀÔ·ÂÈÄ ´ëÃâÇöȲ¸¸ ´Ù½ÃÁ¶È¸ÇÑ´Ù. (·Î±×ÀÎ »ç¿ëÀÚº°) * @ * @param : * @return : * @authur : ÀÌÀº¿µ 2008.03.18 * @--------------------------------------------------- */ function fGetUserLendList() { submit("TRMRC00113"); //2008.01.02. ´ëÃâÇöȲ Á¶È¸ ÃѰǼö.. //model.setValue ("/root/init/count", grd_rendlist.rows - 1); //cap_rendlist.refresh(); } /** * @desc : Á¾ÀÌíƮ ¼±Åà ÈÄ -> ´ëÃâµî·Ï * @ * @param : * @return : * @authur : ÀÌÀº¿µ 2008.03.18 * @--------------------------------------------------- */ function fSetLendChart() { // ´ëÃâµî·Ï var rendcd = model.getValue("/root/main/lendinfo/rendcd"); var appdeptcd = model.getValue("/root/main/lendinfo/appdeptcd"); var lendmanid = model.getValue("/root/main/lendinfo/lendmanid"); var appmanid = model.getValue("/root/main/lendinfo/appmanid"); var cntctelno = model.getValue("/root/main/lendinfo/cntctelno"); var msgcnts = model.getValue("/root/main/lendinfo/msgcnts"); var chrtpid = model.getValue("/root/main/lendinfo/chrtpid"); var autolendflag = model.getValue("/root/send/reqdata/autolendflag"); if (rendcd == ""){ window.alert("´ëÃâ¿ëµµ¸¦ ¼±ÅÃÇØ ÁÖ¼¼¿ä", "Â÷Æ®´ëÃâ ¹× ¹Ý³³", 0 | 64); model.setFocus("cmb_l_rendcd"); return; } if (appdeptcd == ""){ window.alert("´ëÃâ°ú¸¦ ¼±ÅÃÇØ ÁÖ¼¼¿ä", "Â÷Æ®´ëÃâ ¹× ¹Ý³³", 0 | 64); model.setFocus("cmb_l_appdeptcd"); return; } if (lendmanid == "" || lendmanid.isNumber()== false){ window.alert("´ëÃâÀÚ¸¦ ¼±ÅÃÇØ ÁÖ¼¼¿ä", "Â÷Æ®´ëÃâ ¹× ¹Ý³³", 0 | 64); model.setFocus("ipt_l_lendmanid"); return; } if ( appmanid == "" || appmanid.isNumber()== false ){ window.alert("½ÅûÀÚ¸¦ ¼±ÅÃÇØ ÁÖ¼¼¿ä", "Â÷Æ®´ëÃâ ¹× ¹Ý³³", 0 | 64); model.setFocus("ipt_l_appmanid"); return; } // 2008.09.01. Â÷Æ®½Åû½Ã [ 021:¿¬±¸¿ë, 022:Àӻ󿬱¸¿ë ] // Àü´Þ¸Þ¼¼Áö : ¹Ýµå½Ã Àü´Þ¸Þ¼¼Áö (¿¬±¸ Á¦¸ñ ¹× ±âŸ»çÇ×) À» ÀÔ·ÂÇØ ÁֽʽÿÀ.. if (rendcd == "021" || rendcd == "022"){ msgcnts = msgcnts.getTrimLeft(); msgcnts = msgcnts.getTrimRight(); if (msgcnts.length == ""){ window.alert("¹Ýµå½Ã Àü´Þ¸Þ¼¼Áö (¿¬±¸ Á¦¸ñ ¹× ±âŸ»çÇ×) À» ÀÔ·ÂÇØ ÁֽʽÿÀ..", "Â÷Æ®´ëÃâ½Åû", 0 | 64); model.setFocus("ipt_l_msgcnts"); return; } } // 2009.03.18. ´ëÃâ°ú°¡ ¼¾ÅÍÀÎ °æ¿ì Áø·á°ú ¼±Åà üŷÇϱâ... var orddeptkind = model.getValue("/root/main/lendinfo/orddeptkind"); var orddeptcd = model.getValue("/root/main/lendinfo/orddeptcd"); if (orddeptkind == "C" && orddeptcd == "-"){ window.alert("´ëÃâ°ú°¡ ¼¾ÅÍÀÎ °æ¿ì Áø·á°ú¸¦ ¼±ÅÃÇØÁÖ¼¼¿ä.", "Â÷Æ®´ëÃâ½Åû", 0 | 64); model.setFocus("cmb_l_orddeptcd"); return; } // 2009.03.18. ´ëÃâ°ú°¡ ¼¾ÅÍÀÎ °æ¿ì Áø·á°ú , ¼¾ÅͰú ÀúÀå var centcd = "-"; if (orddeptkind == "C") { centcd = model.getValue("/root/main/lendinfo/appdeptcd"); } model.setValue("/root/send/reqdata/status", "i"); // 2007.12.14. ´ëÃâÀÏÀÚ´Â ´çÀÏ·Î ÇÑ´Ù... var renddd = getCurrentDate(); model.makeValue("/root/send/reqdata/renddd", renddd); var resettm = model.getValue("/root/send/reqdata/resettm"); var acptid = model.getValue("/root/send/reqdata/acptid"); var icnt = 0; var tmpSaveData = "status¢Ërendcd¢Ëappdeptcd¢Ëlendmanid¢Ëappmanid¢Ëcntctelno¢Ëmsgcnts¢Ërenddd¢Ëbcno¢Ë"; tmpSaveData = tmpSaveData + "pid¢Ëchrtpid¢Ëioflag¢Ëchrtflag¢Ëmedirecno¢Ëresettm¢Ëacptid¢Ëorddeptcd¢Ëcentcd¢Ì"; for ( var i = 1; i < grd_chrtlist.rows; i++) { var ioflag = model.getValue("/root/main/chrtlist["+ i +"]/ioflag"); //2010.12.28, ÁÖÈñ°æ, ÀÔ¿ø´ëÃ⠽ÿ¡´Â ioflag¸¦ I·Î ¼³Á¤ if ( autolendflag == "I" ) { ioflag = "I"; } var chkflag = model.getValue("/root/main/chrtlist["+ i +"]/chkflag"); var chrtflag = "P"; var medirecno = model.getValue("/root/main/chrtlist["+ i +"]/medirecno"); var pid = model.getValue("/root/main/chrtlist["+ i +"]/pid"); if(chkflag == "Y"){ tmpSaveData = tmpSaveData + "i¢Ë" + rendcd + "¢Ë" + appdeptcd + "¢Ë" + lendmanid + "¢Ë" + appmanid + "¢Ë" + cntctelno + "¢Ë" + msgcnts + "¢Ë"; tmpSaveData = tmpSaveData + renddd + "¢Ë" + "" + "¢Ë" + pid + "¢Ë" + chrtpid + "¢Ë" + ioflag + "¢Ë" + chrtflag + "¢Ë" + medirecno + "¢Ë"; tmpSaveData = tmpSaveData + resettm + "¢Ë" + acptid + "¢Ë" + orddeptcd + "¢Ë" + centcd + "¢Ì"; icnt++; } } if(icnt < 1){ window.alert("´ëÃâÇÒ Â÷Æ®¸¦ ¼±ÅÃÇØ ÁÖ¼¼¿ä", "Â÷Æ®´ëÃâ ¹× ¹Ý³³", 0 | 64); return; } model.makeValue("/root/send/savedata", tmpSaveData); submit("TXMRC00100"); // 2008.01.02. ´ëÃâÇöȲ Á¶È¸ ÃѰǼö.. //model.setValue ("/root/init/count", grd_rendlist.rows - 1); //cap_rendlist.refresh(); // ´Ù½ÃÁ¶È¸.. Á¾ÀÌíƮ ¸®½ºÆ® btn_chrtlist.dispatch("DOMActivate"); } /** * @desc : ¹ÙÄÚµåÀÔ·Â ÈÄ ¿£Åͽà -> ´ëÃâµî·Ï * @ * @ * @param : * @return : * @authur : ÀÌÀº¿µ 2008.03.18 * @--------------------------------------------------- */ function fSetLendChartBcno() { var bcno = model.getValue("/root/send/reqdata/bcno"); if (bcno == "" || bcno == "0"){ window.alert("¹ÙÄڵ带 ÀÔ·ÂÇØ ÁÖ¼¼¿ä", "Â÷Æ®´ëÃâ ¹× ¹Ý³³", 0 | 64); model.setFocus("ipt_lendbcno"); return; } // 2009.04.13. ÀÇÁ¤ºÎ ¼º¸ðÀÎ °æ¿ì.. // ¹ÙÄÚµå ¸®µù½Ã lpad ·Î ÇØ¼­ '0' À» ü¿ò.. // ¸®ÆÃ°ª°ú DB°ªÀÌ ´Ù¸¦¼ö ÀÖÀ½.. // ¹ÙÄÚµå¹øÈ£¸¦ ¿Ü·¡°£È£¿¡¼­ »ý¼ºÇϸé '0' ÀÌ ¾ø°í, // ÀÇ·áÁ¤º¸ÆÀ¿¡¼­ »ý¼ºÇϸé '0' ÀÌ ÀÖÀ½.. if (getUserInfo("dutplceinstcd") == "013") { if (bcno.length < 12) { bcno = bcno.getLeftPad(12, "0"); } } var autoflag = model.getValue("/root/send/reqdata/autolendflag"); if (autoflag == "A"){ // ÀÚµ¿´ëÃâÀÎ °æ¿ì // µ¥ÀÌŸ ¼ÂÇϱâ.. ¿Ü·¡/ÀÔ¿ø±¸ºÐ, ó¸®ÀÚID, ´ëÃâÀÏ, Á¶È¸½Ã°£, ¹ÙÄÚµå var resettm = model.getValue("/root/send/reqdata/resettm"); model.makeValue("/root/send/req/ioflag" , "O"); model.makeValue("/root/send/req/acptid" , getUserId()); model.makeValue("/root/send/req/renddd" , getCurrentDate()); model.makeValue("/root/send/req/resettm" , resettm); model.makeValue("/root/send/req/bcno" , bcno.toUpperCase()); setErrorOff(); var result = submit("TXMRC03001", "", "/root/send/req", "/root/main/chrtlend/rendlist"); if (result == false) { var message = model.getValue("/root/properties/error/msg"); if (message == "Â÷Æ®´ëÃâ ½Åû°ÇÀÌ 2°Ç ÀÌ»ó ÀÖ½À´Ï´Ù......!") { // ³ëµå Ŭ¸®¾î.. model.destroy("/root/hidden/chrtapplist"); model.refresh(); // ½Åû³»¿ªÁ¶È¸Çϱâ.. submit("TRMRC00180"); // µÎ°³ÀÌ»óÀÇ ½Åû³»¿ªÀÌ ÀÖÀ¸¸é ÆË¾÷À¸·Î ¼±ÅÃÇÏ°Ô ÇÑ´Ù. grup_applist.visible = "true"; return; } else { alert(message); } } } else if (autoflag == "E"){ // ±âŸ´ëÃâÀÎ °æ¿ì //fSetLendChartBcnoEtc(); //** 2008.11.19. ÀÌÀº¿µ.. ±âŸ´ëÃâ ¼Óµµ Çâ»óÀ» À§ÇØ.. // ´ëÃâµî·Ï var rendcd = model.getValue("/root/main/lendinfo/rendcd"); var appdeptcd = model.getValue("/root/main/lendinfo/appdeptcd"); var lendmanid = model.getValue("/root/main/lendinfo/lendmanid"); var appmanid = model.getValue("/root/main/lendinfo/appmanid"); var cntctelno = model.getValue("/root/main/lendinfo/cntctelno"); var msgcnts = model.getValue("/root/main/lendinfo/msgcnts"); if (rendcd == ""){ window.alert("´ëÃâ¿ëµµ¸¦ ¼±ÅÃÇØ ÁÖ¼¼¿ä", "Â÷Æ®´ëÃâ ¹× ¹Ý³³", 0 | 64); model.setFocus("cmb_l_rendcd"); return; } if (appdeptcd == ""){ window.alert("´ëÃâ°ú¸¦ ¼±ÅÃÇØ ÁÖ¼¼¿ä", "Â÷Æ®´ëÃâ ¹× ¹Ý³³", 0 | 64); model.setFocus("cmb_l_appdeptcd"); return; } if (lendmanid == "" || lendmanid.isNumber()== false){ window.alert("´ëÃâÀÚ¸¦ ¼±ÅÃÇØ ÁÖ¼¼¿ä", "Â÷Æ®´ëÃâ ¹× ¹Ý³³", 0 | 64); model.setFocus("ipt_l_lendmanid"); return; } if (appmanid == "" || appmanid.isNumber()== false){ window.alert("½ÅûÀÚ¸¦ ¼±ÅÃÇØ ÁÖ¼¼¿ä", "Â÷Æ®´ëÃâ ¹× ¹Ý³³", 0 | 64); model.setFocus("ipt_l_appmanid"); return; } // 2008.09.01. Â÷Æ®½Åû½Ã [ 021:¿¬±¸¿ë, 022:Àӻ󿬱¸¿ë ] // Àü´Þ¸Þ¼¼Áö : ¹Ýµå½Ã Àü´Þ¸Þ¼¼Áö (¿¬±¸ Á¦¸ñ ¹× ±âŸ»çÇ×) À» ÀÔ·ÂÇØ ÁֽʽÿÀ.. if (rendcd == "021" || rendcd == "022"){ msgcnts = msgcnts.getTrimLeft(); msgcnts = msgcnts.getTrimRight(); if (msgcnts.length == ""){ window.alert("¹Ýµå½Ã Àü´Þ¸Þ¼¼Áö (¿¬±¸ Á¦¸ñ ¹× ±âŸ»çÇ×) À» ÀÔ·ÂÇØ ÁֽʽÿÀ..", "Â÷Æ®´ëÃâ½Åû", 0 | 64); model.setFocus("ipt_l_msgcnts"); return; } } // 2009.03.18. ´ëÃâ°ú°¡ ¼¾ÅÍÀÎ °æ¿ì Áø·á°ú ¼±Åà üŷÇϱâ... var orddeptkind = model.getValue("/root/main/lendinfo/orddeptkind"); var orddeptcd = model.getValue("/root/main/lendinfo/orddeptcd"); if (orddeptkind == "C" && orddeptcd == "-"){ window.alert("´ëÃâ°ú°¡ ¼¾ÅÍÀÎ °æ¿ì Áø·á°ú¸¦ ¼±ÅÃÇØÁÖ¼¼¿ä.", "Â÷Æ®´ëÃâ½Åû", 0 | 64); model.setFocus("cmb_l_orddeptcd"); return; } // ³ëµå Ŭ¸®¾î.. model.destroy("/root/hidden/chrtapplist"); model.refresh(); // µ¥ÀÌŸ ¼ÂÇϱâ.. ¿Ü·¡/ÀÔ¿ø±¸ºÐ, ó¸®ÀÚID, ´ëÃâÀÏ, Á¶È¸½Ã°£, ¹ÙÄÚµå var resettm = model.getValue("/root/send/reqdata/resettm"); model.makeValue("/root/send/req/ioflag" , "O"); //2010.12.28, ÁÖÈñ°æ, ÀÔ¿ø´ëÃ⠽ÿ¡´Â ioflag¸¦ I·Î ¼³Á¤ if ( model.getValue("/root/send/reqdata/autolendflag") == "I" ) { ioflag = "I"; } model.makeValue("/root/send/req/acptid" , getUserId()); model.makeValue("/root/send/req/renddd" , getCurrentDate()); model.makeValue("/root/send/req/resettm" , resettm); model.makeValue("/root/send/req/bcno" , bcno.toUpperCase()); // Ãß°¡ µ¥ÀÌŸ.. ´ëÃâ¿ëµµ, ´ëÃâ½Åû°ú, ´ëÃâÀÚID, ½ÅûÀÚID, ¿¬¶ôó, Àü´Þ¸Þ¼¼Áö model.makeValue("/root/send/req/rendcd" , rendcd); model.makeValue("/root/send/req/appdeptcd" , appdeptcd); model.makeValue("/root/send/req/lendmanid" , lendmanid); model.makeValue("/root/send/req/appmanid" , appmanid); model.makeValue("/root/send/req/cntctelno" , cntctelno); model.makeValue("/root/send/req/msgcnts" , msgcnts); // 2009.03.18. ´ëÃâ°ú°¡ ¼¾ÅÍÀÎ °æ¿ì Áø·á°ú , ¼¾ÅͰú ÀúÀå var orddeptkind = model.getValue("/root/main/lendinfo/orddeptkind"); var centcd = "-"; if (orddeptkind == "C") { centcd = model.getValue("/root/main/lendinfo/appdeptcd"); } var orddeptcd = model.getValue("/root/main/lendinfo/orddeptcd"); model.makeValue("/root/send/req/centcd" , centcd); model.makeValue("/root/send/req/orddeptcd" , orddeptcd); setErrorOff(); var result = submit("TXMRC03003", "", "/root/send/req", "/root/main/chrtlend/rendlist"); if (result == false) { var message = model.getValue("/root/properties/error/msg"); alert(message); } //*/ } // 2008.01.25. ¹ÙÄÚµå ¹øÈ£ Ŭ¸®¾î... model.makeValue("/root/send/reqdata/bcno", ""); ipt_lendbcno.refresh(); model.setFocus("ipt_lendbcno"); // 2008.01.02. ´ëÃâÇöȲ Á¶È¸ ÃѰǼö.. //model.setValue ("/root/init/count", grd_rendlist.rows - 1); //cap_rendlist.refresh(); } /** * @desc : ¹ÙÄÚµåÀÔ·Â ÈÄ ¿£Åͽà -> ´ëÃâµî·Ï * @ * @ * @param : * @return : * @authur : ÀÌÀº¿µ 2008.03.18 * @--------------------------------------------------- */ function fSetLendChartBcnoEtc() { // ³ëµå Ŭ¸®¾î.. model.destroy("/root/hidden/chrtapplist"); model.refresh(); // 2009.04.13. ÀÇÁ¤ºÎ ¼º¸ðÀÎ °æ¿ì.. // ¹ÙÄÚµå ¸®µù½Ã lpad ·Î ÇØ¼­ '0' À» ü¿ò.. // ¸®ÆÃ°ª°ú DB°ªÀÌ ´Ù¸¦¼ö ÀÖÀ½.. // ¹ÙÄÚµå¹øÈ£¸¦ ¿Ü·¡°£È£¿¡¼­ »ý¼ºÇϸé '0' ÀÌ ¾ø°í, // ÀÇ·áÁ¤º¸ÆÀ¿¡¼­ »ý¼ºÇϸé '0' ÀÌ ÀÖÀ½.. var bcno = model.getValue("/root/send/reqdata/bcno"); if (getUserInfo("dutplceinstcd") == "013") { if (bcno.length < 12) { bcno = bcno.getLeftPad(12, "0"); } } model.makeValue("/root/hidden/chkchrt/bcno", bcno.toUpperCase()); model.makeValue("/root/hidden/chkchrt/medirecno", ""); model.makeValue("/root/hidden/chkchrt/ioflag", "O"); model.refresh(); model.copyNode("/root/send/req", "/root/hidden/chkchrt"); submit("TRMRC00180"); // 2008.01.18. ¹ÙÄÚµå ¸®´õ±â ´ëÃâ 󸮽à // 1. ´ëÃâíƮÀΰ¡? // 2. ´ëÃâ½Åû°ÇÀÌ Àִ°¡? // 3. ´ëÃâ½Åû°ÇÀÌ ¸î°ÇÀΰ¡? var lendyn = model.getValue("/root/hidden/chrtapplist[1]/lendyn"); var chrtseqno = model.getValue("/root/hidden/chrtapplist[1]/chrtseqno"); if (lendyn == "Y") { alert("ÀÌ¹Ì ´ëÃâµÈ íƮÀÔ´Ï´Ù."); return; } // 2007.12.14. ´ëÃâÀÏÀÚ´Â ´çÀÏ·Î ÇÑ´Ù... var renddd = getCurrentDate(); model.makeValue("/root/send/reqdata/renddd", renddd); var resettm = model.getValue("/root/send/reqdata/resettm"); var acptid = model.getValue("/root/send/reqdata/acptid"); var cnt = getNodesetCnt(model, "/root/hidden/chrtapplist"); if (cnt > 0) { if (lendyn == "N" && cnt == 1 && chrtseqno == "") { // ´ëÃâµî·Ï var rendcd = model.getValue("/root/main/lendinfo/rendcd"); var appdeptcd = model.getValue("/root/main/lendinfo/appdeptcd"); var lendmanid = model.getValue("/root/main/lendinfo/lendmanid"); var appmanid = model.getValue("/root/main/lendinfo/appmanid"); var cntctelno = model.getValue("/root/main/lendinfo/cntctelno"); var msgcnts = model.getValue("/root/main/lendinfo/msgcnts"); if (rendcd == ""){ window.alert("´ëÃâ¿ëµµ¸¦ ¼±ÅÃÇØ ÁÖ¼¼¿ä", "Â÷Æ®´ëÃâ ¹× ¹Ý³³", 0 | 64); model.setFocus("cmb_l_rendcd"); return; } if (appdeptcd == ""){ window.alert("´ëÃâ°ú¸¦ ¼±ÅÃÇØ ÁÖ¼¼¿ä", "Â÷Æ®´ëÃâ ¹× ¹Ý³³", 0 | 64); model.setFocus("cmb_l_appdeptcd"); return; } if (lendmanid == "" || lendmanid.isNumber()== false){ window.alert("´ëÃâÀÚ¸¦ ¼±ÅÃÇØ ÁÖ¼¼¿ä", "Â÷Æ®´ëÃâ ¹× ¹Ý³³", 0 | 64); model.setFocus("ipt_l_lendmanid"); return; } if (appmanid == "" || appmanid.isNumber()== false){ window.alert("½ÅûÀÚ¸¦ ¼±ÅÃÇØ ÁÖ¼¼¿ä", "Â÷Æ®´ëÃâ ¹× ¹Ý³³", 0 | 64); model.setFocus("ipt_l_appmanid"); return; } // 2008.09.01. Â÷Æ®½Åû½Ã [ 021:¿¬±¸¿ë, 022:Àӻ󿬱¸¿ë ] // Àü´Þ¸Þ¼¼Áö : ¹Ýµå½Ã Àü´Þ¸Þ¼¼Áö (¿¬±¸ Á¦¸ñ ¹× ±âŸ»çÇ×) À» ÀÔ·ÂÇØ ÁֽʽÿÀ.. if (rendcd == "021" || rendcd == "022"){ msgcnts = msgcnts.getTrimLeft(); msgcnts = msgcnts.getTrimRight(); if (msgcnts.length == ""){ window.alert("¹Ýµå½Ã Àü´Þ¸Þ¼¼Áö (¿¬±¸ Á¦¸ñ ¹× ±âŸ»çÇ×) À» ÀÔ·ÂÇØ ÁֽʽÿÀ..", "Â÷Æ®´ëÃâ½Åû", 0 | 64); model.setFocus("ipt_l_msgcnts"); return; } } var pid = model.getValue("/root/hidden/chrtapplist[1]/pid"); var medirecno = model.getValue("/root/hidden/chrtapplist[1]/medirecno"); var bcno = model.getValue("/root/hidden/chrtapplist[1]/bcno"); var tmpSaveData = "status¢Ërendcd¢Ërendschedd¢Ëappdeptcd¢Ëlendmanid¢Ëappmanid¢Ë"; tmpSaveData = tmpSaveData + "cntctelno¢Ëmsgcnts¢Ërenddd¢Ë"; tmpSaveData = tmpSaveData + "bcno¢Ëpid¢Ëioflag¢Ëchrtflag¢Ëmedirecno¢Ërenddd¢Ëresettm¢Ëacptid¢Ì"; tmpSaveData = tmpSaveData + "i¢Ë" + rendcd + "¢Ë" + renddd + "¢Ë" + appdeptcd + "¢Ë" + lendmanid + "¢Ë" + appmanid + "¢Ë"; tmpSaveData = tmpSaveData + cntctelno + "¢Ë" + msgcnts + "¢Ë" + renddd + "¢Ë"; tmpSaveData = tmpSaveData + "" + "¢Ë" + pid + "¢ËO¢ËP¢Ë" + medirecno + "¢Ë" + renddd + "¢Ë" + resettm + "¢Ë" + acptid + "¢Ì"; model.makeValue("/root/send/savedata", tmpSaveData); submit("TXMRC00100"); // 2008.01.02. ´ëÃâÇöȲ Á¶È¸ ÃѰǼö.. //model.setValue ("/root/init/count", grd_rendlist.rows - 1); //cap_rendlist.refresh(); } else { // ´ëÃâ½ÅûÀÌ ÀÖÀ½ window.alert("´ëÃâ ½Åû°ÇÀÌ ÀÖ½À´Ï´Ù. È®ÀÎÇϼ¼¿ä.", "Â÷Æ®´ëÃâ ¹× ¹Ý³³", 0 | 64); } } } /** * @desc : µî·ÏµÈ ȯÀÚ¹øÈ£ÀÎÁö üŷÇÑ´Ù.. * @ * @param : iptObj - ȯÀÚ¹øÈ£ ÀÔ·Â ÄÁÆ®·Ñ (pid) * @return : * @authur : ÀÌÀº¿µ 2008.09.17 * @--------------------------------------------------- */ function fGetPidNo(iptObj, ref) { var chkyn = model.getValue(ref); if (chkyn == "Y") { if (iptObj.currentText.length > 0) { var pid = iptObj.currentText; pid = getCretCheckNo(pid, getUserInfo("dutplceinstcd")); model.makeValue(iptObj.attribute("ref"), pid); iptObj.refresh(); } } } /** * @desc : µî·ÏµÈ ȯÀÚ¹øÈ£ÀÎÁö üŷÇÑ´Ù.. * @ * @param : iptObj - ȯÀÚ¹øÈ£ ÀÔ·Â ÄÁÆ®·Ñ (pid) * @return : pnm - ȯÀÚ¸í * @authur : ÀÌÀº¿µ 2008.03.18 * @--------------------------------------------------- */ function fCheckPid(iptObj, refPnm) { model.makeValue("/root/send/req/srchcond", "1"); model.makeValue("/root/send/req/pid", iptObj.currentText); //ȯÀÚµî·Ï¹øÈ£ üũ if(iptObj.currentText.length > 0 ){ model.resetInstanceNode("/root/main/result/patinfo"); model.makeNode("/root/main/result/patinfo"); if(submit("TRPMC02500", "", "/root/send/req", "/root/main/result/patinfo")){ //fSearch´Â ÀÎÀû»çÇ× È­¸éÀ» ÀÓÆ÷Æ® ÇØ°£ È­¸é¿¡¼­ ±¸ÇöÇØ ÁÖ¾î¾ß ÇÏ´Â ÇÔ¼öÀÌ´Ù. if( getNodesetCount("/root/main/result/patinfo/patinfolist") > 0 ){ model.copyNode("/root/main/patinfo", "/root/main/result/patinfo"); //* 2009.04.07. ÀÌÁß¹øÈ£ ¸Þ¼¼Áö ( 14257937 ¹Ú¿ë¼® -> 13275912 ½Å¿Á¼ø ) var sBindPid = model.getValue("/root/main/result/patinfo/patinfolist/bindpid"); if( sBindPid != '-' && sBindPid != '' && sBindPid != ' ' ){ //ÇÕ¹øµÈ µî·Ï¹øÈ£ ¸Þ¼¼Áö ó¸® var sPid = model.getValue("/root/main/result/patinfo/patinfolist/pid"); var sHngnm = model.getValue("/root/main/result/patinfo/patinfolist/hngnm"); var retValue = messageBox(sPid + " (" + sHngnm + ") ȯÀÚÀÇ µî·Ï¹øÈ£°¡ [ " + sBindPid + " ] ·Î ÇÕ¹ø µÇ¾ú½À´Ï´Ù. ÇÕ¹øµÈ µî·Ï¹øÈ£·Î ÀçÁ¶È¸ ÇϽðڽÀ´Ï±î?", "Q999", ""); if( retValue == '6' ){ model.makeValue(iptObj.attribute("ref"), sBindPid); iptObj.refresh(); fCheckPid(iptObj, refPnm); return ""; } } //*/ var pid = model.getValue("/root/main/result/patinfo/patinfolist/pid"); var pnm = model.getValue("/root/main/result/patinfo/patinfolist/hngnm"); if (refPnm != null) { model.makeValue(refPnm, pnm); } return pnm; }else{ model.resetInstanceNode("/root/main/patinfo/patinfolist"); messageBox("¾ø´Â ȯÀÚ ¹øÈ£ ÀÔ´Ï´Ù.", "E999", ""); model.refresh(); return ""; } } }else{ messageBox("ȯÀÚµî·Ï¹øÈ£¸¦ Á¤È®È÷", "C001"); return ""; } } /** * @desc : ȯÀÚµî·Ï¹øÈ£ Á¶È¸ ÆË¾÷ * @ * @param : refPid - ȯÀÚ¹øÈ£ Âü°í node path * refPnm - ȯÀÚ¸í Âü°í node path * @return : * @authur : ÀÌÀº¿µ 2008.03.18 * @--------------------------------------------------- */ function fGetPid(refPid, refPnm) { //Á¶È¸°Ç¼ö°¡ 1°ÇÀÏ °æ¿ì ÆË¾÷âÀ» ¹Ù·Î ´Ý´Â´Ù. model.makeValue("/root/hidden/tmp/pidpopupinfo/checkfnexam", "1"); model.makeValue("/root/hidden/tmp/pidpopupinfo/autoflag", "N"); if( model.getValue("/root/hidden/tmp/pidpopupinfo/srchcond") == '' ){ model.makeValue("/root/hidden/tmp/pidpopupinfo/srchcond", '2'); } modal("SPPMC02500", "1","150", "150", "SPPMC02500", "/root/hidden/tmp/pidpopupinfo", "/root/send"); model.resetInstanceNode("/root/source"); //ȯÀÚ¹øÈ£ copy var popupendflag = model.getValue("/root/main/popupendflag"); if (popupendflag == "ok") { model.makeValue(refPid, model.getValue("/root/main/patinfo/patinfolist/pid")); if (refPnm == null) { refPnm = "" } if (refPnm != "") { model.makeValue(refPnm, model.getValue("/root/main/patinfo/patinfolist/hngnm")); } model.refresh(); } } /** * @desc : µî·ÏµÈ »ç¿ëÀÚ ¹øÈ£ÀÎÁö üŷÇÑ´Ù.. * @ * @param : iptObj - »ç¿ëÀÚ ID ÀÔ·Â ÄÁÆ®·Ñ (userid) * @return : posdeptcd - »ç¿ëÀÚ ºÎ¼­ÄÚµå * @authur : ÀÌÀº¿µ 2008.03.18 * @--------------------------------------------------- */ function fCheckUserid(iptObj) { setInputNodeCurText(); // »ç¿ëÀÚ ¹øÈ£ üũ if(iptObj.currentText.length > 0 ){ // »ç¿ëÀÚ Á¶È¸ model.removenode("/root/hidden/tmp/tempuserinfo/list"); model.reset("/root/hidden/tmp/tempuserinfo"); model.setValue("/root/hidden/tmp/userpopupinfo/param", "_OneS"); model.setValue("/root/hidden/tmp/userpopupinfo/flag", "userid"); model.setValue("/root/hidden/tmp/userpopupinfo/searchitem", iptObj.currentText); modal("SPZSU10103", "", "200", "200", "SPZSU10103","/root/hidden/tmp/userpopupinfo","/root/main/temp"); var iParam = getParameter("SPZSU10103_"); setCSVToNode("/root/hidden/tmp/tempuserinfo", iParam); clearParameter("SPZSU10103_"); //fSearch´Â ÀÎÀû»çÇ× È­¸éÀ» ÀÓÆ÷Æ® ÇØ°£ È­¸é¿¡¼­ ±¸ÇöÇØ ÁÖ¾î¾ß ÇÏ´Â ÇÔ¼öÀÌ´Ù. if( getNodesetCount("/root/hidden/tmp/tempuserinfo/list") > 0 ){ var userid = model.getValue("/root/hidden/tmp/tempuserinfo/list/userid"); var posdeptcd = model.getValue("/root/hidden/tmp/tempuserinfo/list/posdeptcd"); iptObj.value = userid; model.refresh(); return posdeptcd; //fSearch(); }else{ model.resetInstanceNode("/root/hidden/tmp/tempuserinfo/list"); messageBox("¾ø´Â »ç¿ëÀÚ ¹øÈ£ ÀÔ´Ï´Ù.", "E999", ""); model.refresh(); } }else{ messageBox("»ç¿ëÀÚ ¹øÈ£¸¦ Á¤È®È÷", "C001"); iptObj.value = ""; model.refresh(); } return ""; } /** * @desc : ¸¶¿ì½º ¿À¸¥ÂÊ ¹öư ÆË¾÷â * @ * @param : job - 0:íƮ´ëÃâ, 1:íƮ¹Ý³³, 2:Á¢¼öÀÚ¸í´Ü * @return : * @authur : ÀÌÀº¿µ 2008.03.18 * @--------------------------------------------------- */ function fMouseRghtBtnPopup(gridObj, job) { if (event.button == 3) { if (gridObj.isCell(event.target) && gridObj.mouseRow >= gridObj.fixedrows) { if (job == "0") { model.removeNodeset("/root/send/savedata"); window.setPopupMenu(true, "/root/hidden/applist_menu/menu", "label", "func", false); } else { window.setPopupMenu(false); } } else { window.setPopupMenu(false); } } else { window.setPopupMenu(false); } } /** * @desc : ÆË¾÷Æû º¸¿©ÁÖ±â.. * @ * @param : job - 0:íƮ´ëÃâ(¹Ì´ëÃâ»çÀ¯) , 1:íƮ¹Ý³³(°úº¸°ü»çÀ¯), * @ 2:Á¢¼öÀÚ¸í´Ü(¹Ì´ëÃâ»çÀ¯), 3:íƮ¹Ý³³(´ëÃ⿬Àå) , 4:íƮ¹Ý³³(Â÷Æ®ºÐ½Ç) * @return : * @authur : ÀÌÀº¿µ 2008.03.18 * @--------------------------------------------------- */ function fShowWndIptBox(job) { grup_unrendresn.visible = "false"; if (job == "0") { model.setValue("/root/hidden/applist/unrendcd", "00"); model.setValue("/root/hidden/applist/unrendresn", ""); model.refresh(); if (event.clientY < 100) { grup_unrendresn.attribute("top") = event.clientY-90; } else { grup_unrendresn.attribute("top") = 100; } grup_unrendresn.visible = "true"; } } /** * @desc : ´ëÃâ½Åû³»¿ªÀÌ ¿©·¯ °³ÀÎ °æ¿ì ´õºíŬ¸¯À¸·Î ¼±Åýà ´ëÃâó¸®ÇÑ´Ù. * @ * @param : * @return : * @authur : ÀÌÀº¿µ 2008.03.18 * @--------------------------------------------------- */ function fChoiceChrtSeqNo() { var ref = "/root/hidden/chrtapplist"; var grdObj = grd_chrtapplist; if (grdObj.row < 1){ grup_applist.visible = "false"; return; } var savedata = "m¢Ëchrtseqno¢Ëmedirecno¢Ëpid¢Ërendcd¢Ëdelyn¢Ërenddd¢Ëresettm¢Ëacptid¢Ëioflag¢Ì"; var dataString = ""; var renddd = model.getValue("/root/send/reqdata/renddd"); var resettm = model.getValue("/root/send/reqdata/resettm"); var acptid = model.getValue("/root/send/reqdata/acptid"); var chrtseqno = model.getValue(ref + "[" + grdObj.row + "]/chrtseqno"); var medirecno = model.getValue(ref + "[" + grdObj.row + "]/medirecno"); var pid = model.getValue(ref + "[" + grdObj.row + "]/pid"); var rendcd = model.getValue(ref + "[" + grdObj.row + "]/rendcd"); var ioflag = ""; //2010.12.28, ÁÖÈñ°æ, ÀÔ¿ø´ëÃ⠽ÿ¡´Â ioflag¸¦ I·Î ¼³Á¤ if ( model.getValue("/root/send/reqdata/autolendflag") == "I" ) { ioflag = "I"; } dataString = "u¢Ë" + chrtseqno + "¢Ë" + medirecno + "¢Ë" + pid + "¢Ë" + rendcd + "¢ËN¢Ë" + renddd + "¢Ë" + resettm + "¢Ë" + acptid + "¢ËO¢Ì"; if (dataString.length > 0) { model.makeValue("/root/send/savedata", savedata + dataString); submit("TXMRC00120"); // 2008.01.25. ¹ÙÄÚµå ¹øÈ£ Ŭ¸®¾î... model.makeValue("/root/send/reqdata/bcno", ""); ipt_lendbcno.refresh(); // 2008.01.02. ´ëÃâÇöȲ Á¶È¸ ÃѰǼö.. //model.setValue ("/root/init/count", grd_rendlist.rows - 1); //cap_rendlist.refresh(); } grup_applist.visible = "false"; } /** * @desc : ´ëÃâ¿ëµµ ÄÚµå ÀԷ½à ´ëÃâ¿ëµµ ÄÞº¸ ¼±Åõǵµ·Ï ÇÔ * @ * @param : * @return : * @authur : ÀÌÀº¿µ 2008.05.30 * @--------------------------------------------------- */ function fSelectedComboLendCd(iptObj, comboRef) { var lendcd = iptObj.currentText; lendcd = lendcd.getLeftPad(3, "0"); var ref = iptObj.attribute("ref"); model.setValue(ref, lendcd); model.setValue(comboRef, lendcd); model.refresh(); } /** * @desc : ´ëÃâ°ú ¾à¾î ÀԷ½à ´ëÃâ°ú ÄÞº¸ ¼±Åõǵµ·Ï ÇÔ * @ * @param : * @return : * @authur : ÀÌÀº¿µ 2008.05.30 * @--------------------------------------------------- */ function fSelectedComboLendDeptCd(iptObj, comboObj) { var lenddeptabbr = iptObj.currentText; lenddeptabbr = lenddeptabbr.toUpperCase( ); var ref = iptObj.attribute("ref"); model.setValue(ref, lenddeptabbr); var deptcd = model.getValue("/root/init/lendmastinfo/lenddeptlist[lenddeptabbr ='" + lenddeptabbr + "']/lenddeptcd"); var comboRef = comboObj.attribute("ref"); model.setValue(comboRef, deptcd); model.refresh(); if (deptcd != ""){ // ´ëÃâ°ú¿¡ µû¸¥ ´ëÃâÀÚ(ÀÇ»ç) Á¶È¸Çϱâ comboObj.dispatch("xforms-value-changed"); } } /** * @desc : ȯÀÚ ¿Ü·¡ Â÷Æ® ¸®½ºÆ® Á¶È¸ * @ * @param : * @return : * @authur : ÀÌÀº¿µ 2008.08.07 * @--------------------------------------------------- */ function fGetChrtList() { fCheckPid(ipt_chrtpid, "/root/main/lendinfo/pnm"); model.makeValue("/root/send/req/ioflag", model.getValue("/root/main/lendinfo/ioflag")); model.makeValue("/root/send/req/pid" , model.getValue("/root/main/lendinfo/pid")); submit("TRMRC00144","","/root/send/req","/root/main/chrtlist"); } /** * @desc : »ç¿ëÀÚÄÞº¸ Á¶È¸ * @ * @param : ref - reference path * rsltref - result reference path * deptcd - ºÎ¼­ÄÚµå * jobkindcd - Á÷Á¾ÄÚµå * jobposcd - Á÷Ã¥ÄÚµå * specordyn - ¼±ÅÃÁø·á¿©ºÎ * @return : * @author : * @--------------------------------------------------- */ function fGetUserComboList(ref, rsltref, deptcd, jobkindcd, specordyn) { model.removeNode(ref); model.makeValue(ref + "/deptcd" , deptcd); //ºÎ¼­ÄÚµå model.makeValue(ref + "/jobkindcd", jobkindcd); //Á÷Á¾ÄÚµå(ÀÇ»ç:0330) model.makeValue(ref + "/specordyn", specordyn); //¼±ÅÃÁø·á¿©ºÎ model.removeNode(rsltref); model.makeValue(rsltref + "/userlist/usercombo[1]/usernm", '-'); model.makeValue(rsltref + "/userlist/usercombo[1]/userid", ''); model.refresh(); submit("TRMMB04102", "false", ref, rsltref + "/userlist"); } /** * @desc : ´ëÃâÀÚ Á¶È¸ * @ * @param : refUserid - ´ëÃâÀÚ ID, refUserDeptcd - ¼Ò¼ÓºÎ¼­ÄÚµå ( posdeptcd ) * @return : * @authur : ÀÌÀº¿µ 2008.03.18 * @--------------------------------------------------- */ function fGetUserid(refUserid, refUsernm, refUserDeptcd, cmbObj) { model.removenode("/root/hidden/tmp/tempuserinfo/list"); model.reset("/root/hidden/tmp/tempuserinfo"); var user = model.getValue(refUserid); var flag = "userid"; if(isNaN(user)){ flag = "usernm"; } model.setValue("/root/hidden/tmp/userpopupinfo/param", "_OneS"); model.setValue("/root/hidden/tmp/userpopupinfo/flag", flag); model.setValue("/root/hidden/tmp/userpopupinfo/searchitem", user); modal("SPZSU10103", "", "200", "200", "SPZSU10103","/root/hidden/tmp/userpopupinfo","/root/main/temp"); var iParam = getParameter("SPZSU10103_"); setCSVToNode("/root/hidden/tmp/tempuserinfo", iParam); clearParameter("SPZSU10103_"); model.refresh(); //fSearch´Â ÀÎÀû»çÇ× È­¸éÀ» ÀÓÆ÷Æ® ÇØ°£ È­¸é¿¡¼­ ±¸ÇöÇØ ÁÖ¾î¾ß ÇÏ´Â ÇÔ¼öÀÌ´Ù. if( getNodesetCount("/root/hidden/tmp/tempuserinfo/list") > 0 ){ var userid = model.getValue("/root/hidden/tmp/tempuserinfo/list/userid"); var usernm = model.getValue("/root/hidden/tmp/tempuserinfo/list/usernm"); var posdeptcd = model.getValue("/root/hidden/tmp/tempuserinfo/list/posdeptcd"); if (!isNull(refUsernm)){ if (isNaN(refUsernm)){ model.makeValue(refUsernm, usernm); } } if (!isNull(refUserDeptcd)){ if (isNaN(refUserDeptcd)){ model.makeValue(refUserDeptcd, posdeptcd); } } if (cmbObj != null){ fAddUser(userid, usernm, cmbObj); } model.makeValue(refUserid, userid); model.refresh(); } } /** * @desc : ´ëÃâÀÚID, ´ëÃâÀÚ¸í ÄÞº¸¿¡ Ãß°¡Çϱâ * @ * @param : refUserid - ´ëÃâÀÚ ID, refUsernm - ´ëÃâÀÚ¸í * @return : * @authur : ÀÌÀº¿µ 2008.09.01 * @--------------------------------------------------- */ function fAddUser(Userid, Usernm, cmbObj) { var ref = cmbObj.choices.itemset.attribute("nodeset"); var cnt = getNodesetCnt(model, ref) + 1 ; var userid = model.getValue(ref + "[userid ='" + Userid + "']/userid"); if (userid == ""){ model.makeValue(ref + "["+ cnt +"]/userid", Userid); model.makeValue(ref + "["+ cnt +"]/usernm", Usernm); var dataRef = cmbObj.attribute("ref"); model.setValue(dataRef, Userid); cmbObj.refresh(); } } /** * @desc : excel ÀúÀå Çϱâ * @ * @param : * @return : * @authur : ÀÌÀº¿µ 2008.07.14 * @--------------------------------------------------- */ function fExcel(gridObj, title){ if (title == null) { title = "" } var fileName = window.fileDialog("save", ",", false, title + "_" + getCurrentDate(), "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*"); if (fileName != "") { gridObj.saveExcel(fileName, "SheetName", true, true, "", "", true); } } /** * @desc : ¼±ÅÃµÈ È¯ÀÚµî·Ï¹øÈ£·Î ÇöÀ§Ä¡Á¶È¸ ÅÜÀ̵¿.. * @ * @param : gridObj - ±×¸®µå ÄÁÆ®·Ñ, ref - node path * @return : * @authur : ÀÌÀº¿µ 2008.03.18 * @--------------------------------------------------- */ function fMoveTabChartByPid(gridObj, ref){ if (isDataCell() == false){ return; } if (gridObj.row < 1){ return; } var pid = model.getValue(ref + "[" + gridObj.row + "]/pid"); var pnm = model.getValue(ref + "[" + gridObj.row + "]/pnm"); window.parent.model.makeValue("/root/send/reqdata/pid" , pid); window.parent.model.makeValue("/root/send/reqdata/pnm" , pnm); window.parent.model.makeValue("/root/send/reqdata/rrgstno", ""); window.parent.model.refresh(); window.parent.btn_ChrtInfo.dispatch("onclick"); window.parent.javascript.fChartHistory(); } /** * @desc : ´ÜÃàŰ ¼±Åýà Ŀ¼­À̵¿ * @ * @param : * @return : * @authur : ÀÌÀº¿µ 2009.01.28 * @--------------------------------------------------- */ function fMoveCursor(){ // 2009.02.17. ´ÜÃàŰ Ä¿¼­ À̵¿½Ã ÀÚµ¿´ëÃâ ¼±ÅÃÈÄ ¹ÙÄڵ忡 Ä¿¼­°¡ À§Ä¡Çϵµ·Ï ¼öÁ¤ÇÔ. model.setValue("/root/send/reqdata/autolendflag", "A"); rdo_autolendflag.refresh(); fDisplayAutoLend(); model.setFocus("ipt_lendbcno"); ipt_lendbcno.refresh(); } /** * @desc : ´ÜÃàŰ ¼±Åýà Ŀ¼­À̵¿ * @ * @param : * @return : * @authur : ÀÌÀº¿µ 2009.01.28 * @--------------------------------------------------- */ function fKeyDown(){ // F7 : 118, F8 : 119 , F9 : 120, F10 : 121 var keyCode = event.keyCode; if (keyCode == "118") { window.parent.javascript.fAccessKey1(); } else if (keyCode == "119") { window.parent.javascript.fAccessKey2(); } else if (keyCode == "120") { window.parent.javascript.fAccessKey3(); } else if (keyCode == "121") { window.parent.javascript.fAccessKey4(); } }