Upload New File

parent 5e3c3bae
/* */ package com.masters.actions;
/* */
/* */ import com.business.ejbClient.CommonMasterBussinessSessionBeanRemote;
/* */ import com.connect.CommonFunction;
import com.connect.ConnectionDAOforEJB;
/* */ import com.connect.LookUpInstanceFactory;
import com.connect.PrepStmtObject;
/* */ import com.login.dao.UserSessionCheck;
/* */ import com.login.roleManager.UserObject;
/* */ import com.masters.vo.DealerMasterVo;
import java.rmi.RemoteException;
import java.sql.SQLException;
/* */ import java.util.ArrayList;
/* */ import java.util.Iterator;
/* */ import javax.servlet.ServletContext;
/* */ import javax.servlet.http.HttpServletRequest;
/* */ import javax.servlet.http.HttpServletResponse;
/* */ import javax.servlet.http.HttpSession;
/* */ import org.apache.commons.beanutils.BeanUtils;
/* */ import org.apache.log4j.Logger;
import org.apache.struts.action.ActionErrors;
/* */ import org.apache.struts.action.ActionForm;
/* */ import org.apache.struts.action.ActionForward;
/* */ import org.apache.struts.action.ActionMapping;
/* */ import org.apache.struts.actions.DispatchAction;
/* */ import org.apache.struts.validator.DynaValidatorForm;
/* */ public class DealerMasterMakerSearchAction
/* */ extends DispatchAction
/* */ {
/* 34 */ private static final Logger logger = Logger.getLogger(com.masters.actions.DealerMasterMakerSearchAction.class.getName());
/* */
/* */ public ActionForward openAddDealer(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception {
/* 37 */ ServletContext context = getServlet().getServletContext();
/* 38 */ logger.info(" in openAddDealer()");
/* 39 */ HttpSession session = request.getSession();
/* 40 */ boolean flag = false;
/* 41 */ UserObject userobj = (UserObject)session.getAttribute("userobject");
/* 42 */ Object sessionId = session.getAttribute("sessionID");
/* */
/* 44 */ String strFlag = "";
/* 45 */ if (sessionId != null)
/* */ {
/* 47 */ strFlag = UserSessionCheck.checkSameUserSession(userobj, sessionId.toString(), "", request);
/* */ }
/* */
/* 50 */ logger.info("strFlag .............. " + strFlag);
/* 51 */ if (!strFlag.equalsIgnoreCase("")) {
/* */
/* 53 */ if (strFlag.equalsIgnoreCase("sameUserSession")) {
/* */
/* 55 */ context.removeAttribute("msg");
/* 56 */ context.removeAttribute("msg1");
/* */ }
/* 58 */ else if (strFlag.equalsIgnoreCase("BODCheck")) {
/* */
/* 60 */ context.setAttribute("msg", "B");
/* */ }
/* 62 */ return mapping.findForward("logout");
/* */ }
/* */
/* 65 */ request.setAttribute("save", "save");
/* 66 */ return mapping.findForward("openAdd");
/* */ }
/* */
/* */
/* */ public ActionForward saveDealerDetails(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception {
/* 71 */ ServletContext context = getServlet().getServletContext();
/* 72 */ HttpSession session = request.getSession(false);
/* 73 */ UserObject userobj = new UserObject();
/* 74 */ userobj = (UserObject)session.getAttribute("userobject");
/* 75 */ String userId = "";
/* 76 */ String bDate = "";
/* */
/* 78 */ String procval = "";
/* */
/* 80 */ if (userobj != null) {
/* */
/* 82 */ userId = userobj.getUserId();
/* 83 */ bDate = userobj.getBusinessdate();
/* */ }
/* 85 */ boolean flag = false;
/* */
/* 87 */ Object sessionId = session.getAttribute("sessionID");
/* */
/* 89 */ String strFlag = "";
/* 90 */ if (sessionId != null)
/* */ {
/* 92 */ strFlag = UserSessionCheck.checkSameUserSession(userobj, sessionId.toString(), "", request);
/* */ }
/* */
/* 95 */ logger.info("strFlag .............. " + strFlag);
/* 96 */ if (!strFlag.equalsIgnoreCase("")) {
/* */
/* 98 */ if (strFlag.equalsIgnoreCase("sameUserSession")) {
/* */
/* 100 */ context.removeAttribute("msg");
/* 101 */ context.removeAttribute("msg1");
/* */ }
/* 103 */ else if (strFlag.equalsIgnoreCase("BODCheck")) {
/* */
/* 105 */ context.setAttribute("msg", "B");
/* */ }
/* 107 */ return mapping.findForward("logout");
/* */ }
/* 109 */ DynaValidatorForm DealerMasterAddDyanavalidatiorForm = (DynaValidatorForm)form;
/* 110 */ DealerMasterVo vo = new DealerMasterVo();
/* 111 */ BeanUtils.copyProperties(vo, DealerMasterAddDyanavalidatiorForm);
/* */
/* 113 */ CommonMasterBussinessSessionBeanRemote bp = (CommonMasterBussinessSessionBeanRemote)LookUpInstanceFactory.getLookUpInstance("COMMONBUSSINESSMASTERREMOTE", request);
/* */
/* 115 */ vo.setMakerId(userId);
/* 116 */ vo.setMakerDate(bDate);
/* 117 */ vo.setEmpanelStatus(request.getParameter("empanelledStatus"));
/* 118 */ logger.info("In saveDealerDetails empanelled---status-----" + vo.getEmpanelStatus());
/* */
/* 120 */ String sms = "";
/* */
/* 122 */ String user = CommonFunction.checkNull(request.getParameter("userDesc"));
/* 123 */ logger.info("user : " + user);
/* */
/* 125 */ String branch = CommonFunction.checkNull(request.getParameter("branchDesc"));
/* 126 */ logger.info("branch : " + branch);
/* */ // PAN validation logic addded bvy Amol s -strt
String panNumber = CommonFunction.checkNull(request.getParameter("pan")).trim();
logger.info("PAN NO:: " + panNumber);
if (!panNumber.isEmpty())
{
logger.info("Inside the if when pan is not empty Test--> " );
String panStatus = checkPANStatus(panNumber);
if ("A".equalsIgnoreCase(panStatus)) {
logger.info("Pan status is A in this block::");
sms = "A"; // Setting SMS status to 'A'
request.setAttribute("sms", sms);
logger.info("Setting SMS attribute to: " + sms);
return mapping.findForward("openAdd");
}
}
/* */ // PAN validation logic addded bvy Amol s -end
/* 135 */ procval = bp.insertDealerMaster(vo, user, branch);
/* */
/* 137 */ if (!procval.equalsIgnoreCase("NONE")) {
/* */
/* 139 */ sms = "S";
/* 140 */ request.setAttribute("sms", sms);
/* 141 */ request.setAttribute("editValUpdate", "editValUpdate");
/* 142 */ request.setAttribute("editVal", "editVal");
/* 143 */ ArrayList<DealerMasterVo> list = new ArrayList<DealerMasterVo>();
/* 144 */ vo.setDealerId(procval);
/* 145 */ list.add(vo);
/* 146 */ request.setAttribute("list", list);
/* 147 */ request.setAttribute("dealerId", procval);
/* 148 */ String val = CommonFunction.checkNull(request.getParameter("empanelledStatus")).trim();
/* 149 */ if (CommonFunction.checkNull(val).trim().equalsIgnoreCase("on"))
/* 150 */ { request.setAttribute("checked", "Y"); }
/* */ else
/* 152 */ { request.setAttribute("checked", "N"); }
/* 153 */ } else if (procval.equalsIgnoreCase("dataExist")) {
/* 154 */ sms = "DE";
/* 155 */ request.setAttribute("sms", sms);
/* 156 */ request.setAttribute("save", "save");
/* 157 */ request.setAttribute("procval", procval);
/* */ }
//development is incopmlte pls procval value , how to set is not ?
else if (procval.equalsIgnoreCase("dataNotSaved")) {
logger.info("Inside the block to test::" );
sms = "A"; // Setting the sms value to "A"
request.setAttribute("save", "save");
request.setAttribute("procval", procval);
// Log the info for debugging purposes
logger.info("Setting SMS to: " + sms);
}
//Ask to gagan to add the else if block for SMS =A
else {
/* 159 */ sms = "E";
/* 160 */ request.setAttribute("sms", sms);
/* 161 */ request.setAttribute("save", "save");
/* 162 */ request.setAttribute("procval", procval);
/* */ }
/* */
/* 178 */ return mapping.getInputForward();
/* */ }
/* */
//method added by amol s , to check the recStatus on 22nov--strt
public String checkPANStatus(String panNumber) throws SQLException, RemoteException {
logger.info(" inside the checkPANStatus mehtod():: ");
// SQL query to get the REC_STATUS for the given PAN number
String query= "SELECT REC_STATUS FROM cr_dsa_dealer_m_temp WHERE PAN = '" + panNumber + "'";
//String query = "SELECT t.REC_STATUS, m.REC_STATUS FROM cr_dsa_dealer_m_temp t LEFT JOIN cr_dsa_dealer_m m ON t.PAN = m.PAN WHERE t.PAN = :panNumber OR m.PAN = :panNumber";
PrepStmtObject prepStmtObject = new PrepStmtObject();
prepStmtObject.setSql(query);
// Execute the query and get the REC_STATUS value
String recStatus = CommonFunction.checkNull(ConnectionDAOforEJB.singleReturnPrepStmt(prepStmtObject));
logger.info(" recStatus value :: "+ recStatus);
return recStatus;
}
// end
/* to check the values in both the table --strt
* public String checkPANStatus(String panNumber) throws SQLException, RemoteException {
logger.info("Inside the checkPANStatus method():: ");
// SQL query to get REC_STATUS for the given PAN from both tables
String query = "SELECT t.REC_STATUS, m.REC_STATUS " +
"FROM cr_dsa_dealer_m_temp t " +
"LEFT JOIN cr_dsa_dealer_m m ON t.PAN = m.PAN " +
"WHERE t.PAN = '" + panNumber + "' OR m.PAN = '" + panNumber + "'";
PrepStmtObject prepStmtObject = new PrepStmtObject();
prepStmtObject.setSql(query);
List<Object[]> result =CommonFunction.checkNull(ConnectionDAOforEJB.singleReturnPrepStmt(prepStmtObject));
String recStatus = " ";
if (result != null && !result.isEmpty())
{
Object[] row = result.get(0); // Fetch the first row of the result
String recStatusTemp = (String) row[0]; // REC_STATUS from cr_dsa_dealer_m_temp
String recStatusMain = (String) row[1]; // REC_STATUS from cr_dsa_dealer_m
logger.info("recStatusTemp: " + recStatusTemp + ", recStatusMain: " + recStatusMain);
if ("A".equalsIgnoreCase(recStatusTemp) || "A".equalsIgnoreCase(recStatusMain)) {
recStatus = "A";
}
else
{
return null;
}
}
logger.info("Final recStatus value :: " + recStatus);
return recStatus;
}
//end
/* */
/* */ public ActionForward openEditDealer(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception {
/* 186 */ DealerMasterVo dealerMasterVo = new DealerMasterVo();
/* 187 */ ServletContext context = getServlet().getServletContext();
/* 188 */ logger.info("In openEditDealer");
/* 189 */ HttpSession session = request.getSession();
/* 190 */ boolean flag = false;
/* 191 */ UserObject userobj = (UserObject)session.getAttribute("userobject");
/* 192 */ Object sessionId = session.getAttribute("sessionID");
/* */
/* 194 */ String strFlag = "";
/* 195 */ if (sessionId != null)
/* */ {
/* 197 */ strFlag = UserSessionCheck.checkSameUserSession(userobj, sessionId.toString(), "", request);
/* */ }
/* */
/* 200 */ logger.info("strFlag .............. " + strFlag);
/* 201 */ if (!strFlag.equalsIgnoreCase("")) {
/* */
/* 203 */ if (strFlag.equalsIgnoreCase("sameUserSession")) {
/* */
/* 205 */ context.removeAttribute("msg");
/* 206 */ context.removeAttribute("msg1");
/* */ }
/* 208 */ else if (strFlag.equalsIgnoreCase("BODCheck")) {
/* */
/* 210 */ context.setAttribute("msg", "B");
/* */ }
/* 212 */ return mapping.findForward("logout");
/* */ }
/* 214 */ String userSearchId = request.getParameter("dealerId");
/* 215 */ String sequenceNo = request.getParameter("sequenceNo");
/* 216 */ logger.info(" In Action dealerId " + userSearchId);
/* 217 */ dealerMasterVo.setDealerId(request.getParameter("dealerId"));
/* 218 */ String functionId = (String)session.getAttribute("functionId");
/* 219 */ int funid = Integer.parseInt(functionId);
/* 220 */ session.setAttribute("dealerId", userSearchId);
/* 221 */ session.setAttribute("sequenceNo", sequenceNo);
/* 222 */ logger.info("In openEditDealer---status---- by getpara-" + request.getParameter("dealerId"));
/* 223 */ logger.info("In openEditDealer---status---- by getpara by vo-" + dealerMasterVo.getDealerId());
/* */
/* 225 */ CommonMasterBussinessSessionBeanRemote bp = (CommonMasterBussinessSessionBeanRemote)LookUpInstanceFactory.getLookUpInstance("COMMONBUSSINESSMASTERREMOTE", request);
/* */
/* 227 */ ArrayList<DealerMasterVo> list = bp.openEditDealer(userSearchId, sequenceNo, functionId);
/* 228 */ logger.info("In openEditDealer dealerMasterVo list" + list.size());
/* 229 */ session.setAttribute("list", list);
/* 230 */ ArrayList<DealerMasterVo> user = bp.searchUserEdit(userSearchId);
/* 231 */ ArrayList<DealerMasterVo> branch = bp.searchBranchEdit(userSearchId);
/* 232 */ logger.info("In openEditDealer dealerMasterVo list" + list.size());
/* */
/* 234 */ String userDesc = "";
/* 235 */ String branchDesc = "";
/* 236 */ String branchSelection = "";
/* */
/* 238 */ Iterator<DealerMasterVo> it = user.iterator();
/* */
/* 240 */ while (it.hasNext()) {
/* */
/* 242 */ DealerMasterVo vo1 = it.next();
/* 243 */ logger.info("vo1.getUserId()---" + vo1.getUserId());
/* 244 */ userDesc = userDesc + vo1.getUserId() + "|";
/* */ }
/* */
/* 247 */ if (!userDesc.equalsIgnoreCase(""))
/* 248 */ userDesc = userDesc.substring(0, userDesc.length() - 1);
/* 249 */ logger.info("userDesc--2--" + userDesc);
/* 250 */ Iterator<DealerMasterVo> itt = branch.iterator();
/* */
/* 252 */ while (itt.hasNext()) {
/* */
/* 254 */ DealerMasterVo vo1 = itt.next();
/* 255 */ logger.info("vo1.getBranchId()---" + vo1.getBranchId());
/* 256 */ branchDesc = branchDesc + vo1.getBranchId() + "|";
/* */ }
/* */
/* 259 */ if (!branchDesc.equalsIgnoreCase(""))
/* 260 */ branchDesc = branchDesc.substring(0, branchDesc.length() - 1);
/* 261 */ logger.info("branchDesc--2--" + branchDesc);
/* */
/* 263 */ logger.info("userDesc String ............................... " + userDesc);
/* */
/* 265 */ logger.info("In openEditUser userMasterVo list" + list.size());
/* 266 */ if (list.size() > 0)
/* */ {
/* 268 */ dealerMasterVo = list.get(0);
/* */ }
/* */
/* 271 */ String val = dealerMasterVo.getEmpanelStatus();
/* */
/* */
/* */
/* */
/* */
/* 277 */ logger.info("In openEditDealer---status---- by getpara by vo-" + dealerMasterVo.getDealerStatus());
/* 278 */ session.setAttribute("status", dealerMasterVo.getDealerStatus());
/* 279 */ logger.info("In openEditDealer rec---status-----" + dealerMasterVo.getDealerStatus());
/* 280 */ request.setAttribute("editVal", "editVal");
/* 281 */ if (funid == 2000721) {
/* */
/* 283 */ session.setAttribute("AuthorList", "AuthorList");
/* 284 */ String status = CommonFunction.checkNull(request.getParameter("status"));
/* 285 */ session.setAttribute("checked", val);
/* 286 */ session.setAttribute("levelNameList", user);
/* 287 */ session.setAttribute("branchList", branch);
/* 288 */ session.setAttribute("userIds", userDesc);
/* 289 */ session.setAttribute("branchIds", branchDesc);
/* */
/* 291 */ if (status.equalsIgnoreCase("author"))
/* */ {
/* 293 */ return mapping.findForward("editDealer");
/* */ }
/* */
/* */
/* 297 */ return mapping.findForward("editDealerAuthor");
/* */ }
/* */
/* */
/* */
/* 302 */ request.setAttribute("checked", val);
/* 303 */ session.removeAttribute("AuthorList");
/* 304 */ request.setAttribute("levelNameList", user);
/* 305 */ request.setAttribute("userIds", userDesc);
/* 306 */ request.setAttribute("branchList", branch);
/* 307 */ request.setAttribute("branchIds", branchDesc);
/* */
/* 309 */ return mapping.findForward("editDealer");
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public ActionForward forwardDealerDetails(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception {
/* 439 */ ServletContext context = getServlet().getServletContext();
/* 440 */ logger.info("In forwardDealerDetails.......");
/* 441 */ HttpSession session = request.getSession();
/* 442 */ boolean flag = false;
/* 443 */ UserObject userobj = (UserObject)session.getAttribute("userobject");
/* 444 */ Object sessionId = session.getAttribute("sessionID");
/* */
/* */
/* 447 */ userobj = (UserObject)session.getAttribute("userobject");
/* 448 */ String userId = "";
/* 449 */ String bDate = "";
/* 450 */ if (userobj != null) {
/* */
/* 452 */ userId = userobj.getUserId();
/* 453 */ bDate = userobj.getBusinessdate();
/* */ }
/* */
/* 456 */ String strFlag = "";
/* 457 */ if (sessionId != null)
/* */ {
/* 459 */ strFlag = UserSessionCheck.checkSameUserSession(userobj, sessionId.toString(), "", request);
/* */ }
/* */
/* 462 */ logger.info("strFlag .............. " + strFlag);
/* 463 */ if (!strFlag.equalsIgnoreCase("")) {
/* */
/* 465 */ if (strFlag.equalsIgnoreCase("sameUserSession")) {
/* */
/* 467 */ context.removeAttribute("msg");
/* 468 */ context.removeAttribute("msg1");
/* */ }
/* 470 */ else if (strFlag.equalsIgnoreCase("BODCheck")) {
/* */
/* 472 */ context.setAttribute("msg", "B");
/* */ }
/* 474 */ return mapping.findForward("logout");
/* */ }
/* */
/* 477 */ DealerMasterVo vo = new DealerMasterVo();
/* 478 */ DynaValidatorForm DealerMasterAddDyanavalidatiorForm = (DynaValidatorForm)form;
/* 479 */ BeanUtils.copyProperties(vo, DealerMasterAddDyanavalidatiorForm);
/* */
/* 481 */ CommonMasterBussinessSessionBeanRemote bp = (CommonMasterBussinessSessionBeanRemote)LookUpInstanceFactory.getLookUpInstance("COMMONBUSSINESSMASTERREMOTE", request);
/* */
/* 483 */ logger.info("In forwardDealerDetails---status by form- dealerId----" + DealerMasterAddDyanavalidatiorForm.getString("dealerId"));
/* 484 */ vo.setDealerStatus(request.getParameter("dealerStatus"));
/* 485 */ logger.info("In forwardDealerDetails---status-----" + vo.getDealerStatus());
/* 486 */ vo.setDealerDes(request.getParameter("dealerDes"));
/* */
/* 488 */ vo.setMakerId(userId);
/* 489 */ vo.setMakerDate(bDate);
/* */
/* 491 */ String resultStatus = bp.forwardDealerData(vo);
/* 492 */ String sms = "";
/* 493 */ if (resultStatus.equalsIgnoreCase("S")) {
/* */
/* 495 */ sms = "F";
/* 496 */ request.setAttribute("sms", sms);
/* 497 */ request.setAttribute("status", vo.getDealerStatus());
/* */ }
/* */ else {
/* */
/* 501 */ sms = "E";
/* 502 */ request.setAttribute("sms", sms);
/* 503 */ request.setAttribute("status", vo.getDealerStatus());
/* */ }
/* */
/* 506 */ return mapping.getInputForward();
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */ public ActionForward openDealerAuthor(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception {
/* 514 */ HttpSession session = request.getSession();
/* 515 */ UserObject userobj = (UserObject)session.getAttribute("userobject");
/* 516 */ if (userobj == null) {
/* 517 */ logger.info(" in openDealerAuthor method of DealerMaster Action action the session is out----------------");
/* 518 */ return mapping.findForward("sessionOut");
/* */ }
/* 520 */ String sessionId = session.getAttribute("sessionID").toString();
/* 521 */ String strFlag = "";
/* 522 */ if (sessionId != null)
/* */ {
/* 524 */ strFlag = UserSessionCheck.checkSameUserSession(userobj, sessionId.toString(), "", request);
/* */ }
/* 526 */ ServletContext context = getServlet().getServletContext();
/* 527 */ logger.info("strFlag .............. " + strFlag);
/* 528 */ if (!strFlag.equalsIgnoreCase("")) {
/* */
/* 530 */ if (strFlag.equalsIgnoreCase("sameUserSession")) {
/* */
/* 532 */ context.removeAttribute("msg");
/* 533 */ context.removeAttribute("msg1");
/* */ }
/* 535 */ else if (strFlag.equalsIgnoreCase("BODCheck")) {
/* */
/* 537 */ context.setAttribute("msg", "B");
/* */ }
/* 539 */ return mapping.findForward("logout");
/* */ }
/* */
/* 542 */ form.reset(mapping, request);
/* 543 */ return mapping.findForward("authorScreen");
/* */ }
/* */
/* */
/* */
/* */ public ActionForward saveDealerMasterAuthor(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception {
/* 549 */ ServletContext context = getServlet().getServletContext();
/* 550 */ logger.info("In saveDealerMasterAuthor.......");
/* 551 */ HttpSession session = request.getSession();
/* 552 */ UserObject userobj = (UserObject)session.getAttribute("userobject");
/* 553 */ String userId = null;
/* 554 */ String bDate = null;
/* 555 */ if (userobj != null) {
/* */
/* 557 */ userId = userobj.getUserId();
/* 558 */ bDate = userobj.getBusinessdate();
/* */ } else {
/* 560 */ return mapping.findForward("sessionOut");
/* */ }
/* 562 */ Object sessionId = session.getAttribute("sessionID");
/* 563 */ String strFlag = null;
/* 564 */ if (sessionId != null)
/* */ {
/* 566 */ strFlag = UserSessionCheck.checkSameUserSession(userobj, sessionId.toString(), "", request);
/* */ }
/* */
/* 569 */ logger.info("strFlag .............. " + strFlag);
/* 570 */ if (!strFlag.equalsIgnoreCase("")) {
/* */
/* 572 */ if (strFlag.equalsIgnoreCase("sameUserSession")) {
/* */
/* 574 */ context.removeAttribute("msg");
/* 575 */ context.removeAttribute("msg1");
/* */ }
/* 577 */ else if (strFlag.equalsIgnoreCase("BODCheck")) {
/* */
/* 579 */ context.setAttribute("msg", "B");
/* */ }
/* 581 */ return mapping.findForward("logout");
/* */ }
/* */
/* 584 */ DealerMasterVo vo = new DealerMasterVo();
/* 585 */ DynaValidatorForm dynaForm = (DynaValidatorForm)form;
/* 586 */ BeanUtils.copyProperties(vo, dynaForm);
/* 587 */ vo.setUserId(userId);
/* 588 */ vo.setMakerDate(bDate);
/* 589 */ String SNo = (String)session.getAttribute("sequenceNo");
/* 590 */ vo.setSNo(SNo);
/* 591 */ CommonMasterBussinessSessionBeanRemote bp = (CommonMasterBussinessSessionBeanRemote)LookUpInstanceFactory.getLookUpInstance("COMMONBUSSINESSMASTERREMOTE", request);
/* 592 */ boolean status = bp.saveDealerMasterAuthor(vo);
/* */
/* 594 */ String sms = null;
/* */
/* 596 */ if (status) {
/* */
/* 598 */ sms = "S";
/* 599 */ request.setAttribute("message", sms);
/* */ } else {
/* */
/* 602 */ sms = "E";
/* 603 */ request.setAttribute("message", sms);
/* */ }
/* 605 */ request.setAttribute("editVal", "editVal");
/* 606 */ request.setAttribute("message", sms);
/* 607 */ request.setAttribute("decision", vo.getDecision());
/* */
/* 609 */ strFlag = null;
/* 610 */ vo = null;
/* 611 */ form.reset(mapping, request);
/* 612 */ return mapping.findForward("saveAuthor");
/* */ }
/* */
/* */
/* */
/* */
/* */ public ActionForward openAddGpsVendor(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception {
/* 619 */ ServletContext context = getServlet().getServletContext();
/* 620 */ logger.info(" in openAddGpsVendor()");
/* 621 */ HttpSession session = request.getSession();
/* 622 */ boolean flag = false;
/* 623 */ UserObject userobj = (UserObject)session.getAttribute("userobject");
/* 624 */ Object sessionId = session.getAttribute("sessionID");
/* */
/* 626 */ String strFlag = "";
/* 627 */ if (sessionId != null)
/* */ {
/* 629 */ strFlag = UserSessionCheck.checkSameUserSession(userobj, sessionId.toString(), "", request);
/* */ }
/* */
/* 632 */ logger.info("strFlag .............. " + strFlag);
/* 633 */ if (!strFlag.equalsIgnoreCase("")) {
/* */
/* 635 */ if (strFlag.equalsIgnoreCase("sameUserSession")) {
/* */
/* 637 */ context.removeAttribute("msg");
/* 638 */ context.removeAttribute("msg1");
/* */ }
/* 640 */ else if (strFlag.equalsIgnoreCase("BODCheck")) {
/* */
/* 642 */ context.setAttribute("msg", "B");
/* */ }
/* 644 */ return mapping.findForward("logout");
/* */ }
/* 646 */ String userId = "";
/* 647 */ String userName = "";
/* 648 */ String bDate = "";
/* 649 */ String branchId = "";
/* 650 */ if (userobj != null) {
/* */
/* 652 */ userId = userobj.getUserId();
/* 653 */ bDate = userobj.getBusinessdate();
/* 654 */ branchId = userobj.getBranchId();
/* 655 */ userName = userobj.getUserName();
/* */ }
/* 657 */ request.setAttribute("save", "save");
/* 658 */ request.setAttribute("lbxUserIds", userId);
/* 659 */ request.setAttribute("userIds", userName);
/* 660 */ session.removeAttribute("AuthorList");
/* 661 */ return mapping.findForward("openAddGpsVendor");
/* */ }
/* */
/* */
/* */ public ActionForward saveGpsVendorDetails(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception {
/* 666 */ ServletContext context = getServlet().getServletContext();
/* 667 */ HttpSession session = request.getSession(false);
/* 668 */ UserObject userobj = new UserObject();
/* 669 */ userobj = (UserObject)session.getAttribute("userobject");
/* 670 */ String userId = "";
/* 671 */ String userName = "";
/* 672 */ String bDate = "";
/* 673 */ String branchId = "";
/* */
/* 675 */ String procval = "";
/* */
/* 677 */ if (userobj != null) {
/* */
/* 679 */ userId = userobj.getUserId();
/* 680 */ bDate = userobj.getBusinessdate();
/* 681 */ branchId = userobj.getBranchId();
/* 682 */ userName = userobj.getUserName();
/* */ }
/* 684 */ boolean flag = false;
/* */
/* 686 */ Object sessionId = session.getAttribute("sessionID");
/* */
/* 688 */ String strFlag = "";
/* 689 */ if (sessionId != null)
/* */ {
/* 691 */ strFlag = UserSessionCheck.checkSameUserSession(userobj, sessionId.toString(), "", request);
/* */ }
/* */
/* 694 */ logger.info("strFlag .............. " + strFlag);
/* 695 */ if (!strFlag.equalsIgnoreCase("")) {
/* */
/* 697 */ if (strFlag.equalsIgnoreCase("sameUserSession")) {
/* */
/* 699 */ context.removeAttribute("msg");
/* 700 */ context.removeAttribute("msg1");
/* */ }
/* 702 */ else if (strFlag.equalsIgnoreCase("BODCheck")) {
/* */
/* 704 */ context.setAttribute("msg", "B");
/* */ }
/* 706 */ return mapping.findForward("logout");
/* */ }
/* 708 */ DynaValidatorForm DealerMasterAddDyanavalidatiorForm = (DynaValidatorForm)form;
/* 709 */ DealerMasterVo vo = new DealerMasterVo();
/* 710 */ BeanUtils.copyProperties(vo, DealerMasterAddDyanavalidatiorForm);
/* */
/* 712 */ CommonMasterBussinessSessionBeanRemote bp = (CommonMasterBussinessSessionBeanRemote)LookUpInstanceFactory.getLookUpInstance("COMMONBUSSINESSMASTERREMOTE", request);
/* */
/* 714 */ vo.setMakerId(userId);
/* 715 */ vo.setMakerDate(bDate);
/* 716 */ vo.setBranchId(branchId);
/* */
/* 718 */ String sms = "";
/* */
/* 720 */ procval = bp.insertGpsVendorMasterMaker(vo);
/* */
/* 722 */ if (!procval.equalsIgnoreCase("NONE")) {
/* */
/* 724 */ sms = "S";
/* */
/* 726 */ request.setAttribute("sms", sms);
/* 727 */ request.setAttribute("editValUpdate", "editValUpdate");
/* 728 */ request.setAttribute("editVal", "editVal");
/* 729 */ ArrayList<DealerMasterVo> list = new ArrayList<DealerMasterVo>();
/* */
/* 731 */ vo.setAccessId(procval);
/* 732 */ list.add(vo);
/* 733 */ request.setAttribute("list", list);
/* 734 */ request.setAttribute("dealerId", procval);
/* */ }
/* 736 */ else if (procval.equalsIgnoreCase("dataExist")) {
/* 737 */ sms = "DE";
/* 738 */ request.setAttribute("sms", sms);
/* 739 */ request.setAttribute("save", "save");
/* 740 */ request.setAttribute("procval", procval);
/* */ } else {
/* 742 */ sms = "E";
/* 743 */ request.setAttribute("sms", sms);
/* 744 */ request.setAttribute("save", "save");
/* 745 */ request.setAttribute("procval", procval);
/* */ }
/* 747 */ session.removeAttribute("AuthorList");
/* 748 */ return mapping.findForward("saveGpsVender");
/* */ }
/* */
/* */
/* */
/* */ public ActionForward openEditGpsVendor(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception {
/* 754 */ DealerMasterVo dealerMasterVo = new DealerMasterVo();
/* 755 */ ServletContext context = getServlet().getServletContext();
/* 756 */ logger.info("In openEditGpsVendor");
/* 757 */ HttpSession session = request.getSession();
/* 758 */ boolean flag = false;
/* 759 */ UserObject userobj = (UserObject)session.getAttribute("userobject");
/* 760 */ Object sessionId = session.getAttribute("sessionID");
/* */
/* 762 */ String strFlag = "";
/* 763 */ String userId = "";
/* 764 */ String bDate = "";
/* 765 */ String branchId = "";
/* */
/* */
/* */
/* 769 */ if (userobj != null) {
/* */
/* 771 */ userId = userobj.getUserId();
/* 772 */ bDate = userobj.getBusinessdate();
/* 773 */ branchId = userobj.getBranchId();
/* */ }
/* 775 */ if (sessionId != null)
/* */ {
/* 777 */ strFlag = UserSessionCheck.checkSameUserSession(userobj, sessionId.toString(), "", request);
/* */ }
/* */
/* 780 */ logger.info("strFlag .............. " + strFlag);
/* 781 */ if (!strFlag.equalsIgnoreCase("")) {
/* */
/* 783 */ if (strFlag.equalsIgnoreCase("sameUserSession")) {
/* */
/* 785 */ context.removeAttribute("msg");
/* 786 */ context.removeAttribute("msg1");
/* */ }
/* 788 */ else if (strFlag.equalsIgnoreCase("BODCheck")) {
/* */
/* 790 */ context.setAttribute("msg", "B");
/* */ }
/* 792 */ return mapping.findForward("logout");
/* */ }
/* 794 */ String venderAccessId = request.getParameter("venderAccessId");
/* */
/* 796 */ logger.info(" In Action venderAccessId " + venderAccessId);
/* 797 */ dealerMasterVo.setVenderAccessId(venderAccessId);
/* 798 */ dealerMasterVo.setMakerId(userId);
/* 799 */ dealerMasterVo.setMakerDate(bDate);
/* 800 */ dealerMasterVo.setBranchId(branchId);
/* */
/* 802 */ CommonMasterBussinessSessionBeanRemote bp = (CommonMasterBussinessSessionBeanRemote)LookUpInstanceFactory.getLookUpInstance("COMMONBUSSINESSMASTERREMOTE", request);
/* */
/* 804 */ ArrayList<DealerMasterVo> list = bp.searchGpsVendorMakerData(dealerMasterVo);
/* 805 */ logger.info("In openEditGpsVendor dealerMasterVo list" + list.size());
/* 806 */ request.setAttribute("list", list);
/* */
/* 808 */ logger.info("In openEditGpsVendor dealerMasterVo list" + list.size());
/* */
/* 810 */ if (list.size() > 0)
/* */ {
/* 812 */ dealerMasterVo = list.get(0);
/* */ }
/* */
/* 815 */ request.setAttribute("editVal", "editVal");
/* 816 */ session.removeAttribute("AuthorList");
/* 817 */ return mapping.findForward("editGpsVender");
/* */ }
/* */
/* */
/* */
/* */ public ActionForward editGpsVendorDetails(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception {
/* 823 */ ServletContext context = getServlet().getServletContext();
/* 824 */ HttpSession session = request.getSession(false);
/* 825 */ UserObject userobj = new UserObject();
/* 826 */ userobj = (UserObject)session.getAttribute("userobject");
/* 827 */ String userId = "";
/* 828 */ String bDate = "";
/* 829 */ String branchId = "";
/* */
/* 831 */ if (userobj != null) {
/* */
/* 833 */ userId = userobj.getUserId();
/* 834 */ bDate = userobj.getBusinessdate();
/* 835 */ branchId = userobj.getBranchId();
/* */ }
/* 837 */ boolean flag = false;
/* */
/* 839 */ Object sessionId = session.getAttribute("sessionID");
/* */
/* 841 */ String strFlag = "";
/* 842 */ if (sessionId != null)
/* */ {
/* 844 */ strFlag = UserSessionCheck.checkSameUserSession(userobj, sessionId.toString(), "", request);
/* */ }
/* */
/* 847 */ logger.info("strFlag .............. " + strFlag);
/* 848 */ if (!strFlag.equalsIgnoreCase("")) {
/* */
/* 850 */ if (strFlag.equalsIgnoreCase("sameUserSession")) {
/* */
/* 852 */ context.removeAttribute("msg");
/* 853 */ context.removeAttribute("msg1");
/* */ }
/* 855 */ else if (strFlag.equalsIgnoreCase("BODCheck")) {
/* */
/* 857 */ context.setAttribute("msg", "B");
/* */ }
/* 859 */ return mapping.findForward("logout");
/* */ }
/* 861 */ DynaValidatorForm DealerMasterAddDyanavalidatiorForm = (DynaValidatorForm)form;
/* 862 */ DealerMasterVo vo = new DealerMasterVo();
/* 863 */ BeanUtils.copyProperties(vo, DealerMasterAddDyanavalidatiorForm);
/* */
/* 865 */ CommonMasterBussinessSessionBeanRemote bp = (CommonMasterBussinessSessionBeanRemote)LookUpInstanceFactory.getLookUpInstance("COMMONBUSSINESSMASTERREMOTE", request);
/* */
/* */
/* */
/* 869 */ logger.info(" In Action AccessId " + vo.getAccessId());
/* */
/* 871 */ vo.setMakerId(userId);
/* 872 */ vo.setMakerDate(bDate);
/* 873 */ vo.setBranchId(branchId);
/* 874 */ String sms = "";
/* 875 */ boolean status = bp.updateGpsVendorMasterMaker(vo);
/* */
/* 877 */ if (status) {
/* */
/* 879 */ sms = "S";
/* 880 */ request.setAttribute("sms", sms);
/* 881 */ request.setAttribute("editValUpdate", "editValUpdate");
/* 882 */ request.setAttribute("editVal", "editVal");
/* 883 */ ArrayList<DealerMasterVo> list = new ArrayList<DealerMasterVo>();
/* */
/* 885 */ list.add(vo);
/* 886 */ request.setAttribute("list", list);
/* */ }
/* */ else {
/* */
/* 890 */ sms = "E";
/* 891 */ request.setAttribute("sms", sms);
/* 892 */ request.setAttribute("save", "save");
/* */ }
/* */
/* 895 */ session.removeAttribute("AuthorList");
/* 896 */ return mapping.findForward("saveGpsVender");
/* */ }
/* */
/* */
/* */
/* */ public ActionForward openEditGpsVendorAuthor(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception {
/* 902 */ DealerMasterVo dealerMasterVo = new DealerMasterVo();
/* 903 */ ServletContext context = getServlet().getServletContext();
/* 904 */ logger.info("In openEditGpsVendorAuthor");
/* 905 */ HttpSession session = request.getSession();
/* 906 */ boolean flag = false;
/* 907 */ UserObject userobj = (UserObject)session.getAttribute("userobject");
/* 908 */ Object sessionId = session.getAttribute("sessionID");
/* */
/* 910 */ String strFlag = "";
/* 911 */ String userId = "";
/* 912 */ String bDate = "";
/* 913 */ String branchId = "";
/* */
/* */
/* */
/* 917 */ if (userobj != null) {
/* */
/* 919 */ userId = userobj.getUserId();
/* 920 */ bDate = userobj.getBusinessdate();
/* 921 */ branchId = userobj.getBranchId();
/* */ }
/* 923 */ if (sessionId != null)
/* */ {
/* 925 */ strFlag = UserSessionCheck.checkSameUserSession(userobj, sessionId.toString(), "", request);
/* */ }
/* */
/* 928 */ logger.info("strFlag .............. " + strFlag);
/* 929 */ if (!strFlag.equalsIgnoreCase("")) {
/* */
/* 931 */ if (strFlag.equalsIgnoreCase("sameUserSession")) {
/* */
/* 933 */ context.removeAttribute("msg");
/* 934 */ context.removeAttribute("msg1");
/* */ }
/* 936 */ else if (strFlag.equalsIgnoreCase("BODCheck")) {
/* */
/* 938 */ context.setAttribute("msg", "B");
/* */ }
/* 940 */ return mapping.findForward("logout");
/* */ }
/* 942 */ String venderAccessId = request.getParameter("venderAccessId");
/* */
/* 944 */ logger.info(" In Action venderAccessId " + venderAccessId);
/* 945 */ dealerMasterVo.setVenderAccessId(venderAccessId);
/* 946 */ dealerMasterVo.setMakerId(userId);
/* 947 */ dealerMasterVo.setMakerDate(bDate);
/* 948 */ dealerMasterVo.setBranchId(branchId);
/* */
/* 950 */ CommonMasterBussinessSessionBeanRemote bp = (CommonMasterBussinessSessionBeanRemote)LookUpInstanceFactory.getLookUpInstance("COMMONBUSSINESSMASTERREMOTE", request);
/* */
/* 952 */ ArrayList<DealerMasterVo> list = bp.searchGpsVendorAuthorData(dealerMasterVo);
/* 953 */ logger.info("In openEditGpsVendorAuthor dealerMasterVo list" + list.size());
/* 954 */ session.setAttribute("list", list);
/* */
/* 956 */ logger.info("In openEditGpsVendorAuthor dealerMasterVo list" + list.size());
/* */
/* 958 */ if (list.size() > 0)
/* */ {
/* 960 */ dealerMasterVo = list.get(0);
/* */ }
/* 962 */ logger.info(" In Action Received =" + dealerMasterVo.getRecevedUserId());
/* */
/* 964 */ session.setAttribute("AuthorList", "AuthorList");
/* 965 */ return mapping.findForward("editGpsVenderAuthor");
/* */ }
/* */
/* */
/* */
/* */
/* */ public ActionForward openGpsVendorAuthor(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception {
/* 972 */ HttpSession session = request.getSession();
/* 973 */ UserObject userobj = (UserObject)session.getAttribute("userobject");
/* 974 */ if (userobj == null) {
/* 975 */ logger.info(" in openDealerAuthor method of DealerMaster Action action the session is out----------------");
/* 976 */ return mapping.findForward("sessionOut");
/* */ }
/* 978 */ String sessionId = session.getAttribute("sessionID").toString();
/* 979 */ String strFlag = "";
/* 980 */ if (sessionId != null)
/* */ {
/* 982 */ strFlag = UserSessionCheck.checkSameUserSession(userobj, sessionId.toString(), "", request);
/* */ }
/* 984 */ ServletContext context = getServlet().getServletContext();
/* 985 */ logger.info("strFlag .............. " + strFlag);
/* 986 */ if (!strFlag.equalsIgnoreCase("")) {
/* */
/* 988 */ if (strFlag.equalsIgnoreCase("sameUserSession")) {
/* */
/* 990 */ context.removeAttribute("msg");
/* 991 */ context.removeAttribute("msg1");
/* */ }
/* 993 */ else if (strFlag.equalsIgnoreCase("BODCheck")) {
/* */
/* 995 */ context.setAttribute("msg", "B");
/* */ }
/* 997 */ return mapping.findForward("logout");
/* */ }
/* 999 */ String userId = "";
/* */
/* 1001 */ String bDate = "";
/* */
/* 1003 */ if (userobj != null) {
/* */
/* 1005 */ userId = userobj.getUserId();
/* 1006 */ bDate = userobj.getBusinessdate();
/* */ }
/* */
/* */
/* 1010 */ request.setAttribute("logInUserId", userId);
/* 1011 */ form.reset(mapping, request);
/* 1012 */ return mapping.findForward("VendorAuthorScreen");
/* */ }
/* */
/* */
/* */ public ActionForward forwardGpsVendorDetails(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception {
/* 1017 */ ServletContext context = getServlet().getServletContext();
/* 1018 */ logger.info("In forwardGpsVendorDetails.......");
/* 1019 */ HttpSession session = request.getSession();
/* 1020 */ boolean flag = false;
/* 1021 */ UserObject userobj = (UserObject)session.getAttribute("userobject");
/* 1022 */ Object sessionId = session.getAttribute("sessionID");
/* */
/* */
/* 1025 */ userobj = (UserObject)session.getAttribute("userobject");
/* 1026 */ String userId = "";
/* 1027 */ String bDate = "";
/* 1028 */ if (userobj != null) {
/* */
/* 1030 */ userId = userobj.getUserId();
/* 1031 */ bDate = userobj.getBusinessdate();
/* */ }
/* */
/* 1034 */ String strFlag = "";
/* 1035 */ if (sessionId != null)
/* */ {
/* 1037 */ strFlag = UserSessionCheck.checkSameUserSession(userobj, sessionId.toString(), "", request);
/* */ }
/* */
/* 1040 */ logger.info("strFlag .............. " + strFlag);
/* 1041 */ if (!strFlag.equalsIgnoreCase("")) {
/* */
/* 1043 */ if (strFlag.equalsIgnoreCase("sameUserSession")) {
/* */
/* 1045 */ context.removeAttribute("msg");
/* 1046 */ context.removeAttribute("msg1");
/* */ }
/* 1048 */ else if (strFlag.equalsIgnoreCase("BODCheck")) {
/* */
/* 1050 */ context.setAttribute("msg", "B");
/* */ }
/* 1052 */ return mapping.findForward("logout");
/* */ }
/* */
/* 1055 */ DealerMasterVo vo = new DealerMasterVo();
/* 1056 */ DynaValidatorForm DealerMasterAddDyanavalidatiorForm = (DynaValidatorForm)form;
/* 1057 */ BeanUtils.copyProperties(vo, DealerMasterAddDyanavalidatiorForm);
/* */
/* 1059 */ CommonMasterBussinessSessionBeanRemote bp = (CommonMasterBussinessSessionBeanRemote)LookUpInstanceFactory.getLookUpInstance("COMMONBUSSINESSMASTERREMOTE", request);
/* */
/* 1061 */ logger.info("In forwardGpsVendorDetails---status by form- dealerId----" + DealerMasterAddDyanavalidatiorForm.getString("dealerId"));
/* */
/* 1063 */ vo.setMakerId(userId);
/* 1064 */ vo.setMakerDate(bDate);
/* 1065 */ String accessId = request.getParameter("accessId");
/* 1066 */ logger.info(" In forwardGpsVendorDetails AccessId1 " + vo.getAccessId());
/* 1067 */ logger.info(" In forwardGpsVendorDetails AccessId2 " + accessId);
/* */
/* */
/* 1070 */ boolean status = bp.forwardGpsVendorMasterMaker(vo);
/* */
/* */
/* 1073 */ String sms = "";
/* 1074 */ if (status) {
/* */
/* 1076 */ sms = "F";
/* 1077 */ request.setAttribute("forward", sms);
/* */
/* */ }
/* */ else {
/* */
/* 1082 */ sms = "E";
/* 1083 */ request.setAttribute("forward", sms);
/* */ }
/* */
/* */
/* 1087 */ return mapping.findForward("saveGpsVender");
/* */ }
/* */
/* */
/* */
/* */ public ActionForward saveGpsVendorMasterAuthor(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception {
/* 1093 */ ServletContext context = getServlet().getServletContext();
/* 1094 */ logger.info("In saveGpsVendorMasterAuthor.......");
/* 1095 */ HttpSession session = request.getSession();
/* 1096 */ UserObject userobj = (UserObject)session.getAttribute("userobject");
/* 1097 */ String userId = null;
/* 1098 */ String bDate = null;
/* 1099 */ if (userobj != null) {
/* */
/* 1101 */ userId = userobj.getUserId();
/* 1102 */ bDate = userobj.getBusinessdate();
/* */ } else {
/* 1104 */ return mapping.findForward("sessionOut");
/* */ }
/* 1106 */ Object sessionId = session.getAttribute("sessionID");
/* 1107 */ String strFlag = null;
/* 1108 */ if (sessionId != null)
/* */ {
/* 1110 */ strFlag = UserSessionCheck.checkSameUserSession(userobj, sessionId.toString(), "", request);
/* */ }
/* */
/* 1113 */ logger.info("strFlag .............. " + strFlag);
/* 1114 */ if (!strFlag.equalsIgnoreCase("")) {
/* */
/* 1116 */ if (strFlag.equalsIgnoreCase("sameUserSession")) {
/* */
/* 1118 */ context.removeAttribute("msg");
/* 1119 */ context.removeAttribute("msg1");
/* */ }
/* 1121 */ else if (strFlag.equalsIgnoreCase("BODCheck")) {
/* */
/* 1123 */ context.setAttribute("msg", "B");
/* */ }
/* 1125 */ return mapping.findForward("logout");
/* */ }
/* */
/* 1128 */ DealerMasterVo vo = new DealerMasterVo();
/* 1129 */ DynaValidatorForm dynaForm = (DynaValidatorForm)form;
/* 1130 */ BeanUtils.copyProperties(vo, dynaForm);
/* 1131 */ vo.setUserId(userId);
/* 1132 */ vo.setMakerDate(bDate);
/* */
/* 1134 */ String lbxDelearId = request.getParameter("lbxDelearId");
/* 1135 */ String accessId = request.getParameter("accessId");
/* */
/* 1137 */ vo.setLbxDelearId(lbxDelearId);
/* 1138 */ vo.setAccessId(accessId);
/* 1139 */ CommonMasterBussinessSessionBeanRemote bp = (CommonMasterBussinessSessionBeanRemote)LookUpInstanceFactory.getLookUpInstance("COMMONBUSSINESSMASTERREMOTE", request);
/* 1140 */ boolean status = bp.saveGpsVendorMasterAuthor(vo);
/* */
/* 1142 */ String sms = null;
/* */
/* 1144 */ if (status) {
/* */
/* 1146 */ sms = "S";
/* 1147 */ request.setAttribute("message", sms);
/* */ }
/* */ else {
/* */
/* 1151 */ sms = "E";
/* 1152 */ request.setAttribute("message", sms);
/* */ }
/* 1154 */ request.setAttribute("editVal", "editVal");
/* 1155 */ request.setAttribute("message", sms);
/* 1156 */ request.setAttribute("decision", vo.getDecision());
/* */
/* 1158 */ strFlag = null;
/* 1159 */ vo = null;
/* 1160 */ form.reset(mapping, request);
/* 1161 */ return mapping.findForward("saveAuthor");
/* */ }
/* */
/* */
/* */
/* */
/* */ public ActionForward receivedGpsVendor(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception {
/* 1168 */ ServletContext context = getServlet().getServletContext();
/* 1169 */ logger.info("In receivedGpsVendor.......");
/* 1170 */ HttpSession session = request.getSession();
/* 1171 */ boolean flag = false;
/* 1172 */ UserObject userobj = (UserObject)session.getAttribute("userobject");
/* 1173 */ Object sessionId = session.getAttribute("sessionID");
/* */
/* */
/* 1176 */ userobj = (UserObject)session.getAttribute("userobject");
/* 1177 */ String userId = "";
/* 1178 */ String bDate = "";
/* 1179 */ String userName = "";
/* 1180 */ if (userobj != null) {
/* */
/* 1182 */ userId = userobj.getUserId();
/* 1183 */ bDate = userobj.getBusinessdate();
/* 1184 */ userName = userobj.getUserName();
/* */ }
/* */
/* 1187 */ String strFlag = "";
/* 1188 */ if (sessionId != null)
/* */ {
/* 1190 */ strFlag = UserSessionCheck.checkSameUserSession(userobj, sessionId.toString(), "", request);
/* */ }
/* */
/* 1193 */ logger.info("strFlag .............. " + strFlag);
/* 1194 */ if (!strFlag.equalsIgnoreCase("")) {
/* */
/* 1196 */ if (strFlag.equalsIgnoreCase("sameUserSession")) {
/* */
/* 1198 */ context.removeAttribute("msg");
/* 1199 */ context.removeAttribute("msg1");
/* */ }
/* 1201 */ else if (strFlag.equalsIgnoreCase("BODCheck")) {
/* */
/* 1203 */ context.setAttribute("msg", "B");
/* */ }
/* 1205 */ return mapping.findForward("logout");
/* */ }
/* */
/* 1208 */ DealerMasterVo vo = new DealerMasterVo();
/* 1209 */ DynaValidatorForm DealerMasterAddDyanavalidatiorForm = (DynaValidatorForm)form;
/* 1210 */ BeanUtils.copyProperties(vo, DealerMasterAddDyanavalidatiorForm);
/* */
/* 1212 */ CommonMasterBussinessSessionBeanRemote bp = (CommonMasterBussinessSessionBeanRemote)LookUpInstanceFactory.getLookUpInstance("COMMONBUSSINESSMASTERREMOTE", request);
/* */
/* */
/* 1215 */ vo.setMakerId(userId);
/* 1216 */ vo.setMakerDate(bDate);
/* 1217 */ vo.setMakerName(userName);
/* 1218 */ String accessId = request.getParameter("accessId");
/* 1219 */ vo.setAccessId(accessId);
/* 1220 */ logger.info(" In receivedGpsVendor AccessId1 " + vo.getAccessId());
/* 1221 */ logger.info(" In receivedGpsVendor AccessId2 " + accessId);
/* */
/* 1223 */ boolean status = bp.receivedGpsVendor(vo);
/* */
/* 1225 */ String sms = "";
/* 1226 */ if (status) {
/* */
/* 1228 */ sms = "R";
/* 1229 */ request.setAttribute("message", sms);
/* */ }
/* */ else {
/* */
/* 1233 */ sms = "E";
/* 1234 */ request.setAttribute("message", sms);
/* */ }
/* */
/* 1237 */ return mapping.findForward("saveAuthor");
/* */ }
/* */
/* */
/* */
/* */ public ActionForward openAddGpsVendorAllocation(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception {
/* 1243 */ ServletContext context = getServlet().getServletContext();
/* 1244 */ logger.info(" in openAddGpsVendor()");
/* 1245 */ HttpSession session = request.getSession();
/* 1246 */ boolean flag = false;
/* 1247 */ UserObject userobj = (UserObject)session.getAttribute("userobject");
/* 1248 */ Object sessionId = session.getAttribute("sessionID");
/* */
/* 1250 */ String strFlag = "";
/* 1251 */ if (sessionId != null)
/* */ {
/* 1253 */ strFlag = UserSessionCheck.checkSameUserSession(userobj, sessionId.toString(), "", request);
/* */ }
/* */
/* 1256 */ logger.info("strFlag .............. " + strFlag);
/* 1257 */ if (!strFlag.equalsIgnoreCase("")) {
/* */
/* 1259 */ if (strFlag.equalsIgnoreCase("sameUserSession")) {
/* */
/* 1261 */ context.removeAttribute("msg");
/* 1262 */ context.removeAttribute("msg1");
/* */ }
/* 1264 */ else if (strFlag.equalsIgnoreCase("BODCheck")) {
/* */
/* 1266 */ context.setAttribute("msg", "B");
/* */ }
/* 1268 */ return mapping.findForward("logout");
/* */ }
/* 1270 */ String userId = "";
/* 1271 */ String userName = "";
/* 1272 */ String bDate = "";
/* 1273 */ String branchId = "";
/* 1274 */ if (userobj != null) {
/* */
/* 1276 */ userId = userobj.getUserId();
/* 1277 */ bDate = userobj.getBusinessdate();
/* 1278 */ branchId = userobj.getBranchId();
/* 1279 */ userName = userobj.getUserName();
/* */ }
/* 1281 */ request.setAttribute("save", "save");
/* 1282 */ request.setAttribute("lbxUserIds", userId);
/* 1283 */ request.setAttribute("userIds", userName);
/* 1284 */ session.removeAttribute("AuthorList");
/* 1285 */ return mapping.findForward("openAddGpsVendorAllocation");
/* */ }
/* */
/* */
/* */
/* */
/* */ public ActionForward saveGpsVendorAllocationDetails(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception {
/* 1292 */ ServletContext context = getServlet().getServletContext();
/* 1293 */ HttpSession session = request.getSession(false);
/* 1294 */ UserObject userobj = new UserObject();
/* 1295 */ userobj = (UserObject)session.getAttribute("userobject");
/* 1296 */ String userId = "";
/* 1297 */ String userName = "";
/* 1298 */ String bDate = "";
/* 1299 */ String branchId = "";
/* */
/* 1301 */ if (userobj != null) {
/* */
/* 1303 */ userId = userobj.getUserId();
/* 1304 */ bDate = userobj.getBusinessdate();
/* 1305 */ branchId = userobj.getBranchId();
/* 1306 */ userName = userobj.getUserName();
/* */ }
/* 1308 */ boolean flag = false;
/* */
/* 1310 */ Object sessionId = session.getAttribute("sessionID");
/* */
/* 1312 */ String strFlag = "";
/* 1313 */ if (sessionId != null)
/* */ {
/* 1315 */ strFlag = UserSessionCheck.checkSameUserSession(userobj, sessionId.toString(), "", request);
/* */ }
/* */
/* 1318 */ logger.info("strFlag .............. " + strFlag);
/* 1319 */ if (!strFlag.equalsIgnoreCase("")) {
/* */
/* 1321 */ if (strFlag.equalsIgnoreCase("sameUserSession")) {
/* */
/* 1323 */ context.removeAttribute("msg");
/* 1324 */ context.removeAttribute("msg1");
/* */ }
/* 1326 */ else if (strFlag.equalsIgnoreCase("BODCheck")) {
/* */
/* 1328 */ context.setAttribute("msg", "B");
/* */ }
/* 1330 */ return mapping.findForward("logout");
/* */ }
/* 1332 */ DynaValidatorForm DealerMasterAddDyanavalidatiorForm = (DynaValidatorForm)form;
/* 1333 */ DealerMasterVo vo = new DealerMasterVo();
/* 1334 */ BeanUtils.copyProperties(vo, DealerMasterAddDyanavalidatiorForm);
/* */
/* 1336 */ CommonMasterBussinessSessionBeanRemote bp = (CommonMasterBussinessSessionBeanRemote)LookUpInstanceFactory.getLookUpInstance("COMMONBUSSINESSMASTERREMOTE", request);
/* 1337 */ vo.setMakerId(userId);
/* 1338 */ vo.setMakerDate(bDate);
/* 1339 */ vo.setBranchId(branchId);
/* */
/* 1341 */ String sms = "";
/* 1342 */ String[] loanId = vo.getLbxLoanNoHID();
/* */
/* */
/* */
/* 1346 */ logger.info("In Action Length of loanList= " + loanId.length);
/* 1347 */ for (int i = 0; i < loanId.length; i++) {
/* 1348 */ logger.info("In Action loanList= " + loanId[i]);
/* */ }
/* */
/* */
/* 1352 */ boolean status = bp.insertGpsVendorAllocation(vo);
/* */
/* 1354 */ if (status) {
/* */
/* 1356 */ sms = "S";
/* 1357 */ request.setAttribute("sms", sms);
/* 1358 */ logger.info("In Action AccessID= " + vo.getLbxDelearId());
/* 1359 */ vo.setVenderAccessId(vo.getLbxDelearId());
/* 1360 */ ArrayList<DealerMasterVo> additionalDocuments = bp.getVendorAllocationData(vo);
/* 1361 */ logger.info("In openEditGpsVendorAllocation dealerMasterVo list" + additionalDocuments.size());
/* 1362 */ int remainingDevice = Integer.parseInt(vo.getGpsDeviceQty()) - additionalDocuments.size();
/* */
/* 1364 */ request.setAttribute("remainingDevice", remainingDevice + "");
/* 1365 */ request.setAttribute("psize", Integer.valueOf(additionalDocuments.size()));
/* */
/* 1367 */ if (additionalDocuments.size() > 0)
/* */ {
/* 1369 */ request.setAttribute("additionalDocuments", additionalDocuments);
/* */ }
/* */
/* 1372 */ request.setAttribute("editVal", "editVal");
/* 1373 */ session.removeAttribute("AuthorList");
/* */ }
/* */ else {
/* */
/* 1377 */ sms = "E";
/* 1378 */ request.setAttribute("sms", sms);
/* */ }
/* */
/* 1381 */ return mapping.findForward("saveGpsVenderAllocation");
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */ public ActionForward openEditGpsVendorAllocation(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception {
/* 1389 */ DealerMasterVo dealerMasterVo = new DealerMasterVo();
/* 1390 */ ServletContext context = getServlet().getServletContext();
/* 1391 */ logger.info("In openEditGpsVendorAllocation");
/* 1392 */ HttpSession session = request.getSession();
/* 1393 */ boolean flag = false;
/* 1394 */ UserObject userobj = (UserObject)session.getAttribute("userobject");
/* 1395 */ Object sessionId = session.getAttribute("sessionID");
/* */
/* 1397 */ String strFlag = "";
/* 1398 */ String userId = "";
/* 1399 */ String bDate = "";
/* 1400 */ String branchId = "";
/* */
/* 1402 */ if (userobj != null) {
/* */
/* 1404 */ userId = userobj.getUserId();
/* 1405 */ bDate = userobj.getBusinessdate();
/* 1406 */ branchId = userobj.getBranchId();
/* */ }
/* 1408 */ if (sessionId != null)
/* */ {
/* 1410 */ strFlag = UserSessionCheck.checkSameUserSession(userobj, sessionId.toString(), "", request);
/* */ }
/* */
/* 1413 */ logger.info("strFlag .............. " + strFlag);
/* 1414 */ if (!strFlag.equalsIgnoreCase("")) {
/* */
/* 1416 */ if (strFlag.equalsIgnoreCase("sameUserSession")) {
/* */
/* 1418 */ context.removeAttribute("msg");
/* 1419 */ context.removeAttribute("msg1");
/* */ }
/* 1421 */ else if (strFlag.equalsIgnoreCase("BODCheck")) {
/* */
/* 1423 */ context.setAttribute("msg", "B");
/* */ }
/* 1425 */ return mapping.findForward("logout");
/* */ }
/* 1427 */ String venderAccessId = request.getParameter("venderAccessId");
/* 1428 */ String remainingDeviceQty = request.getParameter("remainingDevice").toString();
/* */
/* 1430 */ logger.info(" In Action venderAccessId " + venderAccessId);
/* 1431 */ dealerMasterVo.setVenderAccessId(venderAccessId);
/* 1432 */ dealerMasterVo.setVenderAccessId(venderAccessId);
/* 1433 */ dealerMasterVo.setMakerId(userId);
/* 1434 */ dealerMasterVo.setMakerDate(bDate);
/* 1435 */ dealerMasterVo.setBranchId(branchId);
/* */
/* 1437 */ CommonMasterBussinessSessionBeanRemote bp = (CommonMasterBussinessSessionBeanRemote)LookUpInstanceFactory.getLookUpInstance("COMMONBUSSINESSMASTERREMOTE", request);
/* */
/* */
/* 1440 */ ArrayList<DealerMasterVo> additionalDocuments = bp.getVendorAllocationData(dealerMasterVo);
/* */
/* 1442 */ logger.info("In openEditGpsVendorAllocation dealerMasterVo list" + additionalDocuments.size());
/* */
/* 1444 */ int remainingDevice = Integer.parseInt(remainingDeviceQty) - additionalDocuments.size();
/* 1445 */ logger.info("Device = " + remainingDevice);
/* 1446 */ request.setAttribute("remainingDevice", remainingDevice + "");
/* 1447 */ request.setAttribute("psize", Integer.valueOf(additionalDocuments.size()));
/* 1448 */ if (additionalDocuments.size() > 0)
/* */ {
/* 1450 */ request.setAttribute("additionalDocuments", additionalDocuments);
/* */ }
/* */
/* 1453 */ request.setAttribute("editVal", "editVal");
/* 1454 */ session.removeAttribute("AuthorList");
/* 1455 */ return mapping.findForward("editGpsVenderAllocation");
/* */ }
/* */
/* */
/* */
/* */ public ActionForward AllocateGpsVendor(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception {
/* 1461 */ ServletContext context = getServlet().getServletContext();
/* 1462 */ logger.info("In AllocateGpsVendor.......");
/* 1463 */ HttpSession session = request.getSession();
/* 1464 */ UserObject userobj = (UserObject)session.getAttribute("userobject");
/* 1465 */ String userId = null;
/* 1466 */ String bDate = null;
/* 1467 */ if (userobj != null) {
/* */
/* 1469 */ userId = userobj.getUserId();
/* 1470 */ bDate = userobj.getBusinessdate();
/* */ } else {
/* 1472 */ return mapping.findForward("sessionOut");
/* */ }
/* 1474 */ Object sessionId = session.getAttribute("sessionID");
/* 1475 */ String strFlag = null;
/* 1476 */ if (sessionId != null)
/* */ {
/* 1478 */ strFlag = UserSessionCheck.checkSameUserSession(userobj, sessionId.toString(), "", request);
/* */ }
/* */
/* 1481 */ logger.info("strFlag .............. " + strFlag);
/* 1482 */ if (!strFlag.equalsIgnoreCase("")) {
/* */
/* 1484 */ if (strFlag.equalsIgnoreCase("sameUserSession")) {
/* */
/* 1486 */ context.removeAttribute("msg");
/* 1487 */ context.removeAttribute("msg1");
/* */ }
/* 1489 */ else if (strFlag.equalsIgnoreCase("BODCheck")) {
/* */
/* 1491 */ context.setAttribute("msg", "B");
/* */ }
/* 1493 */ return mapping.findForward("logout");
/* */ }
/* */
/* 1496 */ DealerMasterVo vo = new DealerMasterVo();
/* 1497 */ DynaValidatorForm dynaForm = (DynaValidatorForm)form;
/* 1498 */ BeanUtils.copyProperties(vo, dynaForm);
/* 1499 */ vo.setUserId(userId);
/* 1500 */ vo.setMakerDate(bDate);
/* */
/* 1502 */ String lbxDelearId = request.getParameter("lbxDelearId");
/* 1503 */ String accessId = request.getParameter("accessId");
/* */
/* 1505 */ logger.info("lbxDelearId " + lbxDelearId);
/* 1506 */ logger.info("accessId " + accessId);
/* 1507 */ vo.setLbxDelearId(lbxDelearId);
/* 1508 */ vo.setAccessId(accessId);
/* 1509 */ CommonMasterBussinessSessionBeanRemote bp = (CommonMasterBussinessSessionBeanRemote)LookUpInstanceFactory.getLookUpInstance("COMMONBUSSINESSMASTERREMOTE", request);
/* 1510 */ boolean status = bp.AllocateGpsVendor(vo);
/* */
/* 1512 */ String sms = null;
/* */
/* 1514 */ if (status) {
/* */
/* 1516 */ sms = "S";
/* 1517 */ request.setAttribute("forward", sms);
/* */ } else {
/* */
/* 1520 */ sms = "E";
/* 1521 */ request.setAttribute("forward", sms);
/* */ }
/* */
/* 1524 */ return mapping.findForward("saveGpsVenderAllocation");
/* */ }
/* */
/* */
/* */
/* */
/* */ public ActionForward openEditGpsVendorAllocationforUpdate(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception {
/* 1531 */ DealerMasterVo dealerMasterVo = new DealerMasterVo();
/* 1532 */ ServletContext context = getServlet().getServletContext();
/* 1533 */ logger.info("In openEditGpsVendorAllocationforUpdate");
/* 1534 */ HttpSession session = request.getSession();
/* 1535 */ boolean flag = false;
/* 1536 */ UserObject userobj = (UserObject)session.getAttribute("userobject");
/* 1537 */ Object sessionId = session.getAttribute("sessionID");
/* */
/* 1539 */ String strFlag = "";
/* 1540 */ String userId = "";
/* 1541 */ String bDate = "";
/* 1542 */ String branchId = "";
/* */
/* */
/* */
/* 1546 */ if (userobj != null) {
/* */
/* 1548 */ userId = userobj.getUserId();
/* 1549 */ bDate = userobj.getBusinessdate();
/* 1550 */ branchId = userobj.getBranchId();
/* */ }
/* 1552 */ if (sessionId != null)
/* */ {
/* 1554 */ strFlag = UserSessionCheck.checkSameUserSession(userobj, sessionId.toString(), "", request);
/* */ }
/* */
/* 1557 */ logger.info("strFlag .............. " + strFlag);
/* 1558 */ if (!strFlag.equalsIgnoreCase("")) {
/* */
/* 1560 */ if (strFlag.equalsIgnoreCase("sameUserSession")) {
/* */
/* 1562 */ context.removeAttribute("msg");
/* 1563 */ context.removeAttribute("msg1");
/* */ }
/* 1565 */ else if (strFlag.equalsIgnoreCase("BODCheck")) {
/* */
/* 1567 */ context.setAttribute("msg", "B");
/* */ }
/* 1569 */ return mapping.findForward("logout");
/* */ }
/* 1571 */ String venderAccessId = request.getParameter("venderAccessId");
/* 1572 */ String remainingDeviceQty = request.getParameter("remainingDevice").toString();
/* 1573 */ logger.info(" In Action venderAccessId " + venderAccessId);
/* 1574 */ dealerMasterVo.setVenderAccessId(venderAccessId);
/* 1575 */ dealerMasterVo.setMakerId(userId);
/* 1576 */ dealerMasterVo.setMakerDate(bDate);
/* 1577 */ dealerMasterVo.setBranchId(branchId);
/* */
/* 1579 */ CommonMasterBussinessSessionBeanRemote bp = (CommonMasterBussinessSessionBeanRemote)LookUpInstanceFactory.getLookUpInstance("COMMONBUSSINESSMASTERREMOTE", request);
/* */
/* */
/* 1582 */ ArrayList<DealerMasterVo> additionalDocuments = bp.getVendorAllocationData(dealerMasterVo);
/* 1583 */ logger.info("In openEditGpsVendorAllocationforUpdate dealerMasterVo list" + additionalDocuments.size());
/* 1584 */ int remainingDevice = Integer.parseInt(remainingDeviceQty) - additionalDocuments.size();
/* 1585 */ logger.info("Device = " + remainingDevice);
/* 1586 */ request.setAttribute("remainingDevice", remainingDevice + "");
/* 1587 */ request.setAttribute("psize", Integer.valueOf(additionalDocuments.size()));
/* 1588 */ if (additionalDocuments.size() > 0)
/* */ {
/* 1590 */ request.setAttribute("additionalDocuments", additionalDocuments);
/* */ }
/* */
/* 1593 */ request.setAttribute("editVal", "editVal");
/* 1594 */ session.removeAttribute("AuthorList");
/* 1595 */ return mapping.findForward("editGpsVenderAllocationforUpdate");
/* */ }
/* */
/* */
/* */
/* */ public ActionForward editGpsVendorAllocationDetails(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception {
/* 1601 */ ServletContext context = getServlet().getServletContext();
/* 1602 */ HttpSession session = request.getSession(false);
/* 1603 */ UserObject userobj = new UserObject();
/* 1604 */ userobj = (UserObject)session.getAttribute("userobject");
/* 1605 */ String userId = "";
/* 1606 */ String userName = "";
/* 1607 */ String bDate = "";
/* 1608 */ String branchId = "";
/* */
/* 1610 */ if (userobj != null) {
/* */
/* 1612 */ userId = userobj.getUserId();
/* 1613 */ bDate = userobj.getBusinessdate();
/* 1614 */ branchId = userobj.getBranchId();
/* 1615 */ userName = userobj.getUserName();
/* */ }
/* 1617 */ boolean flag = false;
/* */
/* 1619 */ Object sessionId = session.getAttribute("sessionID");
/* */
/* 1621 */ String strFlag = "";
/* 1622 */ if (sessionId != null)
/* */ {
/* 1624 */ strFlag = UserSessionCheck.checkSameUserSession(userobj, sessionId.toString(), "", request);
/* */ }
/* */
/* 1627 */ logger.info("strFlag .............. " + strFlag);
/* 1628 */ if (!strFlag.equalsIgnoreCase("")) {
/* */
/* 1630 */ if (strFlag.equalsIgnoreCase("sameUserSession")) {
/* */
/* 1632 */ context.removeAttribute("msg");
/* 1633 */ context.removeAttribute("msg1");
/* */ }
/* 1635 */ else if (strFlag.equalsIgnoreCase("BODCheck")) {
/* */
/* 1637 */ context.setAttribute("msg", "B");
/* */ }
/* 1639 */ return mapping.findForward("logout");
/* */ }
/* 1641 */ DynaValidatorForm DealerMasterAddDyanavalidatiorForm = (DynaValidatorForm)form;
/* 1642 */ DealerMasterVo vo = new DealerMasterVo();
/* 1643 */ BeanUtils.copyProperties(vo, DealerMasterAddDyanavalidatiorForm);
/* */
/* 1645 */ CommonMasterBussinessSessionBeanRemote bp = (CommonMasterBussinessSessionBeanRemote)LookUpInstanceFactory.getLookUpInstance("COMMONBUSSINESSMASTERREMOTE", request);
/* 1646 */ vo.setMakerId(userId);
/* 1647 */ vo.setMakerDate(bDate);
/* 1648 */ vo.setBranchId(branchId);
/* */
/* 1650 */ String sms = "";
/* 1651 */ String[] loanId = vo.getLbxLoanNoHID();
/* */
/* */
/* */
/* 1655 */ logger.info("In Action Length of loanList= " + loanId.length);
/* 1656 */ for (int i = 0; i < loanId.length; i++) {
/* 1657 */ logger.info("In Action loanList= " + loanId[i]);
/* */ }
/* */
/* */
/* 1661 */ boolean status = bp.insertGpsVendorAllocationForEdit(vo);
/* */
/* 1663 */ if (status) {
/* */
/* 1665 */ sms = "S";
/* 1666 */ request.setAttribute("sms", sms);
/* 1667 */ logger.info("In Action AccessID= " + vo.getLbxDelearId());
/* 1668 */ vo.setVenderAccessId(vo.getLbxDelearId());
/* 1669 */ ArrayList<DealerMasterVo> additionalDocuments = bp.getVendorAllocationData(vo);
/* 1670 */ logger.info("In editGpsVendorAllocationDetails dealerMasterVo list" + additionalDocuments.size());
/* 1671 */ int remainingDevice = Integer.parseInt(vo.getGpsDeviceQty()) - additionalDocuments.size();
/* 1672 */ request.setAttribute("remainingDevice", remainingDevice + "");
/* 1673 */ request.setAttribute("psize", Integer.valueOf(additionalDocuments.size()));
/* 1674 */ if (additionalDocuments.size() > 0)
/* */ {
/* 1676 */ request.setAttribute("additionalDocuments", additionalDocuments);
/* */ }
/* */
/* 1679 */ request.setAttribute("editVal", "editVal");
/* 1680 */ session.removeAttribute("AuthorList");
/* */ }
/* */ else {
/* */
/* 1684 */ sms = "E";
/* 1685 */ request.setAttribute("sms", sms);
/* */ }
/* */
/* 1688 */ return mapping.findForward("editGpsVenderAllocation");
/* */ }
/* */ }
/* Location: /home/gsb/Desktop/Shared Folder/ITI_Omnifin/JD-GUI_Convert/OmniFin.ear/ZIP FILES/LMS.zip!/LMS.war/WEB-INF/classes/com/masters/actions/DealerMasterMakerSearchAction.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 1.1.3
*/
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment