/// <summary>
        /// 获取柜台UComboItem集合
        /// </summary>
        /// <returns></returns>
        public static List <UComboItem> GetAllCounterList()
        {
            UComboItem        item;
            List <UComboItem> listUComboItem = new List <UComboItem>();

            try
            {
                CT_CounterBLL     CounterBLL = new CT_CounterBLL();
                List <CT_Counter> l          = CounterBLL.GetListArray(string.Empty);
                if (l == null)
                {
                    return(null);
                }
                foreach (CT_Counter ct in l)
                {
                    item = new UComboItem(ct.name, ct.CouterID);
                    listUComboItem.Add(item);
                }
            }
            catch
            {
                return(null);
            }
            return(listUComboItem);
        }
Esempio n. 2
0
 /// <summary>
 /// 获取柜台列表
 /// </summary>
 /// <returns></returns>
 public List <Entity.CT_Counter> GetAllCounter()
 {
     try
     {
         LogHelper.WriteDebug("Debug-8225获取柜台列表方法名称:GetAllCounter()" + DateTime.Now);
         CT_CounterBLL CounterBLL = new CT_CounterBLL();
         return(CounterBLL.GetListArray(string.Empty));
     }
     catch (Exception ex)
     {
         string      errCode = "GL-8225";
         string      errMsg  = "获取柜台列表失败";
         VTException vte     = new VTException(errCode, errMsg, ex);
         LogHelper.WriteError(vte.ToString(), vte.InnerException);
         return(null);
     }
 }