/// <summary> /// 通過頁面編輯播設定列表 /// </summary> /// <returns></returns> public HttpResponseBase EditAppNotifyPoolInfo() { string json = string.Empty; try { _iappnotifypoolMgr = new AppNotifyPoolMgr(mySqlConnectionString); //獲得頁面SaveReport方法提交的參數 AppNotifyPoolQuery anpq = new AppNotifyPoolQuery(); anpq.alert = Request.Params["txtafalert"].ToString(); anpq.isAddOrEidt = Request.Params["isAddOrEidt"].ToString(); anpq.notified = Convert.ToInt32(Request.Params["now_state"].ToString()); anpq.title = Request.Params["txttitle"].ToString(); anpq.to = Request.Params["txtto"].ToString(); anpq.url = Request.Params["txturl"].ToString(); string starttime = Request.Params["datevalid_start"].ToString(); string endtime = Request.Params["datevalid_end"].ToString(); if (!string.IsNullOrEmpty(starttime)) { anpq.valid_start = Convert.ToInt32(CommonFunction.GetPHPTime(starttime)); } if (!string.IsNullOrEmpty(endtime)) { anpq.valid_end = Convert.ToInt32(CommonFunction.GetPHPTime(endtime)); } //調用編輯事件 json = _iappnotifypoolMgr.EditAppNotifyPoolInfo(anpq); } 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); }