Browse Source

添加电渠卡库存展示

lcl 2 years ago
parent
commit
b993f47b71
1 changed files with 4 additions and 0 deletions
  1. 4 0
      Areas/Admin/Controllers/HomeController.cs

+ 4 - 0
Areas/Admin/Controllers/HomeController.cs

@@ -91,6 +91,10 @@ namespace MySystem.Areas.Admin.Controllers
             otherItem.Add("Name", "大机券库存");
             otherItem.Add("Count", maindb.PosCoupons.Count(m => m.IsUse == 0 && m.IsLock == 0 && m.UserId == 0 && m.QueryCount == 2));
             statlist.Add(otherItem);
+            otherItem = new Dictionary<string, object>();
+            otherItem.Add("Name", "电渠卡库存");
+            otherItem.Add("Count", maindb.PosMachinesTwo.Count(m => m.BrandId == 14 && m.PosSn.StartsWith("CS") && m.BuyUserId == 0 && m.BindingState == 0 && m.ActivationState == 0));
+            statlist.Add(otherItem);
             ViewBag.statlist = statlist;
             List<BsModels.RightDic> datalist = db.RightDic.Where(m => m.MainDataList == 1).OrderBy(m => m.Id).ToList();
             ViewBag.datalist = datalist;