Beispiel #1
0
 public ActionResult GetQuotationDetails(int id)
 {
     EasyFreight.Models.QuotationView quoteView = QuotationHelper.GetOneQuote(id);
     ViewData["CurrecyList"] = ListCommonHelper.GetCurrencyList();
     ViewBag.QuoteContainers = QuotationHelper.GetQuotationContainers(id);
     return(PartialView("~/Views/Quotation/_MoreDetails.cshtml", quoteView));
 }
Beispiel #2
0
 public ActionResult GetShippingDeclaration(int id)
 {
     EasyFreight.Models.QuotationView quoteView = QuotationHelper.GetOneQuote(id);
     ViewData["CurrecyList"] = ListCommonHelper.GetCurrencyList();
     ViewBag.QuoteContainers = QuotationHelper.GetQuotationContainers(id);
     ViewData["StaticText"]  = CommonHelper.GetStaticTextById(1);
     Session["quoteId"]      = id;
     if (quoteView.IsCareOf)
     {
         CompanySetupVm company = CompanySetupHelper.GetCompanySetup();
         ViewBag.ShipperAddress = company.CompanyAddressEn;
         ViewBag.ShipperTel     = (!string.IsNullOrEmpty(company.PhoneNumber1) ? " Tel. " + company.PhoneNumber1 : "") +
                                  (!string.IsNullOrEmpty(company.FaxNumber) ? "  Fax. " + company.FaxNumber : "");
     }
     else
     {
         ViewBag.ShipperAddress = quoteView.ShipperAddressEn;
         ViewBag.ShipperTel     = (!string.IsNullOrEmpty(quoteView.ShipperPhoneNumber) ? " Tel. " + quoteView.ShipperPhoneNumber : "") +
                                  (!string.IsNullOrEmpty(quoteView.ShipperFaxNumber) ? " Fax. " + quoteView.ShipperPhoneNumber : "");
     }
     return(PartialView("~/Views/Quotation/_ShippingDecl.cshtml", quoteView));
 }