if(errors != "")
{
ModelAndView modelAndView = new ModelAndView("CompanyManagementTransactionCreation");
modelAndView.addObject("currentuser", currentuser);
InternalUserTransaction trans1 = new InternalUserTransaction();
modelAndView.addObject("trans", trans1);
modelAndView.addObject("errors", errors);
return modelAndView;
} else{
trans.setStatus("approved");
trans.setDeptId(5);//5:Schedule Meeting
String res = transactionBO.save(trans);
if(res.matches("fail")){
errors = errors + "Employee ID does'nt exist!";
ModelAndView modelAndView = new ModelAndView("CompanyManagementTransactionCreation");
modelAndView.addObject("currentuser", currentuser);
InternalUserTransaction trans1 = new InternalUserTransaction();
modelAndView.addObject("trans", trans1);
modelAndView.addObject("errors", errors);
return modelAndView;