lcl 2 лет назад
Родитель
Сommit
b993f47b71
1 измененных файлов с 4 добавлено и 0 удалено
  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;