Beispiel #1
0
        public ActionResult Index()
        {
            var     sid  = SessionHelper.SessionId;
            var     name = Masterpage.CurrUser.name;
            dynamic data = new System.Dynamic.ExpandoObject();
            var     list = accountService.GetMenuByRole(Masterpage.CurrUser.role_sn);//

            data.list = list;

            var require  = purchaseService.RequireList("").Where(p => p.status == 0).ToList().Count;
            var order    = purchaseService.PurchaseList("").Where(p => p.status == 0).ToList().Count;
            var sin      = stockinService.StockInList("").Where(p => p.status == 0).ToList().Count;
            var sout     = stockoutService.StockOutList("").Where(p => p.status == 0).ToList().Count;
            var oret     = stockinService.ReturnModelList("").Where(p => p.status == 0).ToList().Count;
            var sret     = stockoutService.ReturnModelList("").Where(p => p.status == 0).ToList().Count;
            var o2n      = stockoutService.ChangeOtNList("").Where(p => p.status == 0).ToList().Count;
            var bomorder = bomService.BomOrderList("").Where(p => p.status == 0).ToList().Count;

            data.require  = require;
            data.order    = order;
            data.sin      = sin;
            data.sout     = sout;
            data.oret     = oret;
            data.sret     = sret;
            data.o2n      = o2n;
            data.bomorder = bomorder;

            return(View(data));
        }