public ActionResult GeneralRequisitionDetails(long id)
 {
     try
     {
         ICollection <ApprovalDetails> approval = _iCommonManager.GetAllApprovalDetailsByRequistionId(id);
         var model = new ViewGeneralRequisitionModel
         {
             GeneralRequistionDetails = _iProductManager.GetGeneralRequisitionDetailsById(id),
             GeneralRequisitionModel  = _iProductManager.GetGeneralRequisitionById(id),
             ApprovalDetails          = approval
         };
         ViewBag.DistributionPointId = new SelectList(_iBranchManager.GetAllBranches(), "BranchId", "BranchName", "--Select--");
         return(View(model));
     }
     catch (Exception e)
     {
         Log.WriteErrorLog(e);
         return(PartialView("_ErrorPartial", e));
     }
 }
Exemplo n.º 2
0
 public ActionResult Delivery(long id)
 {
     try
     {
         var stock = _iInventoryManager.GetStockProductInFactory();
         Session["Factory_Stock"] = stock;
         ICollection <ApprovalDetails> approval = _iCommonManager.GetAllApprovalDetailsByRequistionId(id);
         var model = new ViewGeneralRequisitionModel
         {
             GeneralRequistionDetails = _iProductManager.GetGeneralRequisitionDetailsById(id),
             GeneralRequisitionModel  = _iProductManager.GetGeneralRequisitionById(id),
             ApprovalDetails          = approval
         };
         return(View(model));
     }
     catch (Exception exception)
     {
         Log.WriteErrorLog(exception);
         return(PartialView("_ErrorPartial", exception));
     }
 }
 public ActionResult Delivery(long id)
 {
     try
     {
         int branchId  = Convert.ToInt32(Session["BranchId"]);
         int companyId = Convert.ToInt32(Session["CompanyId"]);
         var stock     = _iInventoryManager.GetStockProductInBranchByBranchAndCompanyId(branchId, companyId);
         Session["Branch_stock"] = stock;
         ICollection <ApprovalDetails> approval = _iCommonManager.GetAllApprovalDetailsByRequistionId(id);
         var model = new ViewGeneralRequisitionModel
         {
             GeneralRequistionDetails = _iProductManager.GetGeneralRequisitionDetailsById(id),
             GeneralRequisitionModel  = _iProductManager.GetGeneralRequisitionById(id),
             ApprovalDetails          = approval
         };
         return(View(model));
     }
     catch (Exception exception)
     {
         Log.WriteErrorLog(exception);
         return(PartialView("_ErrorPartial", exception));
     }
 }