Example #1
0
        public ActionResult AddSupplierPayment()
        {
            var concernId = Convert.ToInt32(Session["ConcernId"]);
            var userId    = Convert.ToInt32(Session["UserId"]);

            if (concernId > 0 && userId > 0)
            {
                var suppliers = _inventorySetting.Suppliers(concernId);
                VendorsViewModels viewModels = new VendorsViewModels()
                {
                    Suppliers = suppliers
                };
                return(View(viewModels));
            }
            return(RedirectToAction("Login", "GlobalData", new { Area = "Global" }));
        }
Example #2
0
        public ActionResult PurchaseInvoiceReport()
        {
            var concernId = Convert.ToInt32(Session["ConcernId"]);
            var userId    = Convert.ToInt32(Session["UserId"]);

            if (concernId > 0 && userId > 0)
            {
                var buyers = _inventorySetting.Buyers(concernId);
                VendorsViewModels viewModels = new VendorsViewModels()
                {
                    Buyers = buyers
                };
                return(View(viewModels));
            }
            return(RedirectToAction("Login", "GlobalData", new { Area = "Global" }));
        }
Example #3
0
        public ActionResult AddExpense()
        {
            var concernId = Convert.ToInt32(Session["ConcernId"]);
            var userId    = Convert.ToInt32(Session["UserId"]);

            if (concernId > 0 && userId > 0)
            {
                var expenseNames             = _inventorySetting.ExpenseNames(concernId);
                VendorsViewModels viewModels = new VendorsViewModels()
                {
                    ExpenseNames = expenseNames
                };
                return(View(viewModels));
            }
            return(RedirectToAction("Login", "GlobalData", new { Area = "Global" }));
        }
Example #4
0
        public ActionResult AddProduct()
        {
            var concernId = Convert.ToInt32(Session["ConcernId"]);
            var userId    = Convert.ToInt32(Session["UserId"]);

            if (concernId > 0 && userId > 0)
            {
                var unit     = _inventorySetting.Units(concernId);
                var category = _inventorySetting.Categories(concernId);
                VendorsViewModels viewModels = new VendorsViewModels()
                {
                    Units      = unit,
                    Categories = category
                };
                return(View(viewModels));
            }
            return(RedirectToAction("Login", "GlobalData", new { Area = "Global" }));
        }
Example #5
0
        public ActionResult AddSalesInvoice()
        {
            var concernId = Convert.ToInt32(Session["ConcernId"]);
            var userId    = Convert.ToInt32(Session["UserId"]);

            if (concernId > 0 && userId > 0)
            {
                var products  = _inventorySetting.Products(concernId);
                var buyers    = _inventorySetting.Buyers(concernId);
                var suppliers = _inventorySetting.Suppliers(concernId);
                VendorsViewModels viewModels = new VendorsViewModels()
                {
                    Products  = products,
                    Buyers    = buyers,
                    Suppliers = suppliers
                };
                return(View(viewModels));
            }
            return(RedirectToAction("Login", "GlobalData", new { Area = "Global" }));
        }