Beispiel #1
0
        public ActionResult StockAsOf()
        {
            _CategoryService = new CategoryService();

            List <AsofStock> obj;
            string           categoryID = Request.Form["cmbCategory"];

            if (categoryID != "")
            {
                Int16 ID = Convert.ToInt16(Request.Form["cmbCategory"]);
                ViewBag.Category = new SelectList(_CategoryService.GetList(), "ID", "Name", ID);
                obj = Stock.GetAsofStock(ID);
            }
            else
            {
                ViewBag.Category = new SelectList(_CategoryService.GetList(), "ID", "Name");
                obj = Stock.GetAsofStock(0);
            }

            return(View(obj));
        }
Beispiel #2
0
        public ActionResult DayEnd()
        {
            List <DayEndReport> obj;

            _CategoryService = new CategoryService();

            string categoryID = Request.Form["cmbCategory"];

            if (categoryID != "")
            {
                Int16 ID = Convert.ToInt16(Request.Form["cmbCategory"]);
                ViewBag.Category = new SelectList(_CategoryService.GetList(), "ID", "Name", ID);
                obj = Stock.GetDayEndReport(ID);
            }
            else
            {
                ViewBag.Category = new SelectList(_CategoryService.GetList(), "ID", "Name");
                obj = Stock.GetDayEndReport(0);
            }

            return(View("_DayEnd", obj));
        }