Example #1
0
        public static List <User_Info> Get_LisUserDoanhNghiep(bool p_isAdd_None = true)
        {
            try
            {
                Get_DBMemoryBL   _Get_DBMemoryBL = new Get_DBMemoryBL();
                List <User_Info> _lst_re         = new List <User_Info>();
                List <User_Info> _lst            = _Get_DBMemoryBL.DBMem_GetDataRealTime_Object <List <User_Info> >("c_lst_UserDoanhNghiep");
                if (p_isAdd_None)
                {
                    User_Info _User_Info = new User_Info();
                    _User_Info.User_Id   = -1;
                    _User_Info.User_Name = "-- Chọn Doanh Nghiệp -- ";
                    _lst_re.Add(_User_Info);
                }

                foreach (User_Info item in _lst)
                {
                    _lst_re.Add(item);
                }
                return(_lst_re);
            }
            catch (Exception ex)
            {
                NaviCommon.Common.log.Error(ex.ToString());
                return(new List <User_Info>());
            }
        }
Example #2
0
 public static List <Product_Info> Get_ListProduct_Service()
 {
     try
     {
         Get_DBMemoryBL      _Get_DBMemoryBL = new Get_DBMemoryBL();
         List <Product_Info> _lst            = _Get_DBMemoryBL.DBMem_GetDataRealTime_Object <List <Product_Info> >("c_lst_Product");
         return(_lst);
     }
     catch (Exception ex)
     {
         NaviCommon.Common.log.Error(ex.ToString());
         return(new List <Product_Info>());
     }
 }
Example #3
0
 public static List <WareHouse_Info> Get_All_ListWareHouse_Service()
 {
     try
     {
         Get_DBMemoryBL        _Get_DBMemoryBL = new Get_DBMemoryBL();
         List <WareHouse_Info> _lst            = _Get_DBMemoryBL.DBMem_GetDataRealTime_Object <List <WareHouse_Info> >("c_lst_WareHouse");
         foreach (WareHouse_Info item in _lst)
         {
             NaviCommon.Common.log.Error(item.WareHouse_Name);
         }
         return(_lst);
     }
     catch (Exception ex)
     {
         NaviCommon.Common.log.Error(ex.ToString());
         return(new List <WareHouse_Info>());
     }
 }