Example #1
0
        public OrderSharedPushMessageConfig GetOrderSharedPushMessageConfig()
        {
            try
            {
                OrderSharedPushMessageConfig model = DalShareOrderConfig.GetOrderSharedPushMessageConfig();

                if (model != null)
                {
                    if (!string.IsNullOrWhiteSpace(model.AndroidCommunicationValue))
                    {
                        model.AndriodModel = JsonConvert.DeserializeObject <AndriodModel>(model.AndroidCommunicationValue);
                    }
                    if (!string.IsNullOrWhiteSpace(model.IOSCommunicationValue))
                    {
                        model.IOSModel = JsonConvert.DeserializeObject <IOSModel>(model.IOSCommunicationValue);
                    }
                }

                return(model);
            }
            catch (Exception ex)
            {
                Logger.Log(Level.Error, ex, "GetOrderSharedPushMessageConfig");
                throw ex;
            }
        }
Example #2
0
 public OrderSharedPushMessageConfig GetOrderSharedPushMessageConfig(int id)
 {
     try
     {
         return(DalShareOrderConfig.GetOrderSharedPushMessageConfig(id));
     }
     catch (Exception ex)
     {
         Logger.Log(Level.Error, ex, "GetOrderSharedPushMessageConfig");
         throw ex;
     }
 }
Example #3
0
 //------推送消息配置
 public List <OrderSharedPushMessageConfig> GetOrderSharedPushMessageConfig(OrderSharedPushMessageConfig model, int pageSize, int pageIndex, out int recordCount)
 {
     try
     {
         return(DalShareOrderConfig.GetOrderSharedPushMessageConfig(model, pageSize, pageIndex, out recordCount));
     }
     catch (Exception ex)
     {
         Logger.Log(Level.Error, ex, "GetOrderSharedPushMessageConfig");
         throw ex;
     }
 }
Example #4
0
 public bool DeleteShareOrderConfig(int id)
 {
     try
     {
         return(DalShareOrderConfig.DeleteShareOrderConfig(id));
     }
     catch (Exception ex)
     {
         Logger.Log(Level.Error, ex, "DeleteShareOrderConfig");
         throw ex;
     }
 }
Example #5
0
 public bool InsertShareOrderConfig(ShareOrderConfig model, ref int newId)
 {
     try
     {
         return(DalShareOrderConfig.InsertShareOrderConfig(model, ref newId));
     }
     catch (Exception ex)
     {
         Logger.Log(Level.Error, ex, "InsertShareOrderConfig");
         throw ex;
     }
 }
Example #6
0
 public bool UpdateShareOrderConfig(ShareOrderConfig model)
 {
     try
     {
         return(DalShareOrderConfig.UpdateShareOrderConfig(model));
     }
     catch (Exception ex)
     {
         Logger.Log(Level.Error, ex, "UpdateShareOrderConfig");
         throw ex;
     }
 }
Example #7
0
 public ShareOrderConfig GetShareOrderConfigById(int id)
 {
     try
     {
         return(DalShareOrderConfig.GetShareOrderConfigById(id));
     }
     catch (Exception ex)
     {
         Logger.Log(Level.Error, ex, "GetShareOrderConfig");
         throw ex;
     }
 }