public ActionResult Get_ReportData(string t) { string OrganizationCode = ""; if (Session["UserDetails"] != null && ((UserInfo)Session["UserDetails"]).UserType.ToString().Trim().ToUpper() == "R" && ((UserInfo)Session["UserDetails"]).OrganizationCode != null) { OrganizationCode = ((UserInfo)Session["UserDetails"]).OrganizationCode.Trim(); } if (t.Trim().ToUpper() == "E") { using (Expense_Svc.ExpenseServiceClient iGstSvc = new Expense_Svc.ExpenseServiceClient()) { ViewBag.ReportType = "E"; ViewBag.ReportData = iGstSvc.GetList_Expense("", "", "", OrganizationCode, "", "", "", ""); } } else if (t.Trim().ToUpper() == "S") { using (Bill_Svc.BillServiceClient iGstSvc = new Bill_Svc.BillServiceClient()) { ViewBag.ReportType = "S"; ViewBag.ReportData = iGstSvc.GetList_Bill("", "", "", OrganizationCode, "", "", "", ""); } } else { ViewBag.ReportType = null; ViewBag.ReportData = null; } return(View("~/Views/MasterPages/Reports.cshtml")); }
public ActionResult GetList_Bill() { string OrganizationCode = ""; if (Session["UserDetails"] != null && ((UserInfo)Session["UserDetails"]).UserType.ToString().Trim().ToUpper() == "R" && ((UserInfo)Session["UserDetails"]).OrganizationCode != null) { OrganizationCode = ((UserInfo)Session["UserDetails"]).OrganizationCode.Trim(); } using (Bill_Svc.BillServiceClient iGstSvc = new Bill_Svc.BillServiceClient()) { ViewBag.Organizations = CommonMethods.ListOrganizations(OrganizationCode); return(View("~/Views/MasterPages/BillList.cshtml", iGstSvc.GetList_Bill("", "", "", OrganizationCode, "", "", "", ""))); } }