Beispiel #1
0
 /// <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);
     }
 }
Beispiel #2
0
        public static int LockCount()
        {
            DrugInfoBusinessHandler handler = businessHandlerFactory.DrugInfoBusinessHandler;

            return(handler.GetLockDrugInfoCount());
        }
Beispiel #3
0
        /// <summary>
        /// 缺货药品数
        /// </summary>
        /// <returns></returns>
        public static int GetDrugInfoForOutofStockNumber()
        {
            DrugInfoBusinessHandler hander = businessHandlerFactory.DrugInfoBusinessHandler;

            return(hander.GetDrugInfoForOutofStock().Count());
        }