/// <summary> /// 失效的数量(某种药) /// </summary> /// <returns></returns> public static int NotValid() { try { DrugInfoBusinessHandler handler = businessHandlerFactory.DrugInfoBusinessHandler; return(handler.Count(p => !p.Valid && p.Enabled)); } catch (Exception ex) { LoggerHelper.Instance.Error(ex); return(-1); } }
public static int LockCount() { DrugInfoBusinessHandler handler = businessHandlerFactory.DrugInfoBusinessHandler; return(handler.GetLockDrugInfoCount()); }
/// <summary> /// 缺货药品数 /// </summary> /// <returns></returns> public static int GetDrugInfoForOutofStockNumber() { DrugInfoBusinessHandler hander = businessHandlerFactory.DrugInfoBusinessHandler; return(hander.GetDrugInfoForOutofStock().Count()); }