Esempio n. 1
0
        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"));
        }
Esempio n. 2
0
        public ActionResult GetList_Expense()
        {
            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 (Expense_Svc.ExpenseServiceClient iGstSvc = new Expense_Svc.ExpenseServiceClient())
            {
                return(View("~/Views/MasterPages/ExpenseList.cshtml", iGstSvc.GetList_Expense("", "", "", OrganizationCode, "", "", "", "")));
            }
        }