private List <PNLTransactionItem> GetPNLTransactionalData() { PNLSelection selection = (PNLSelection)Session["PNLReportSelection"]; ELT.BL.ReportingBL ReportBL = new ReportingBL(); if (Session["PNLReportData"] == null) { var user = GetCurrentELTUser(); string ELT_account_number = user.elt_account_number; if (ELT_account_number == null) { Response.Redirect("~/Account/Login", true); } if (Session["PNLReportData"] == null) { Session["PNLReportData"] = ReportBL.GetPNLTransactionItem(int.Parse(ELT_account_number), selection); } } var model = (List <PNLTransactionItem>)Session["PNLReportData"]; if (selection.ImportExport != "All") { model = (from c in model where c.ImportExport == selection.ImportExport select c).ToList(); } if (selection.AirOcean != "All") { model = (from c in model where c.AirOcean == selection.AirOcean select c).ToList(); } return(model); }
public ActionResult RefreshPNL() { ELT.BL.ReportingBL ReportBL = new ReportingBL(); var user = GetCurrentELTUser(); int elt_account_number = int.Parse(user.elt_account_number); ReportBL.RefreshPNL(elt_account_number); return(new EmptyResult()); }
private List <OceanTransactionItem> GetOceanExportTransactionalData() { ReportSelection selection = (ReportSelection)Session["OceanExportReportSelection"]; ELT.BL.ReportingBL ReportBL = new ReportingBL(); if (Session["OceanExportMasterReportData"] == null) { var user = GetCurrentELTUser(); string ELT_account_number = user.elt_account_number; if (ELT_account_number == null) { Response.Redirect("~/Account/Login", true); } Session["OceanExportMasterReportData"] = ReportBL.GetOceanExportTransItems(ELT_account_number, selection); } var model = (List <OceanTransactionItem>)Session["OceanExportMasterReportData"]; return(model); }