/// <summary> /// 通過條件得到推播設定列表 /// </summary> /// <returns></returns> public HttpResponseBase GetAppNotifyPoolInfo() { string json = string.Empty; AppNotifyPoolQuery ap = new AppNotifyPoolQuery(); try { _iappnotifypoolMgr = new AppNotifyPoolMgr(mySqlConnectionString); ap.Start = Convert.ToInt32(Request.Params["start"] ?? "0"); ap.Limit = Convert.ToInt32(Request.Params["limit"] ?? "25"); string starttime = Request.Params["timestart"].ToString(); string startemdtime = Request.Params["timestartend"].ToString(); string endtime = Request.Params["timeendstart"].ToString(); string endendtime = Request.Params["timeendend"].ToString(); if (!string.IsNullOrEmpty(starttime)) { ap.valid_start = Convert.ToInt32(CommonFunction.GetPHPTime(starttime)); } if (!string.IsNullOrEmpty(endtime)) { ap.valid_end = Convert.ToInt32(CommonFunction.GetPHPTime(endtime)); } if (!string.IsNullOrEmpty(startemdtime)) { ap.startendtime = Convert.ToInt32(CommonFunction.GetPHPTime(startemdtime)); } if (!string.IsNullOrEmpty(endendtime)) { ap.endendtime = Convert.ToInt32(CommonFunction.GetPHPTime(endendtime)); } //調用查詢事件 json = _iappnotifypoolMgr.GetAppnotifypool(ap); } catch (Exception ex) { Log4NetCustom.LogMessage logMessage = new Log4NetCustom.LogMessage(); logMessage.Content = string.Format("TargetSite:{0},Source:{1},Message:{2}", ex.TargetSite.Name, ex.Source, ex.Message); logMessage.MethodName = System.Reflection.MethodBase.GetCurrentMethod().Name; log.Error(logMessage); json = ""; } return BackAjaxData(json); }