protected void btnSaveSPChannel_Click(object sender, DirectEventArgs e)
        {
            try
            {
                SPChannelWrapper obj = SPChannelWrapper.FindById(int.Parse(hidId.Text.Trim()));
                obj.Name        = this.txtName.Text.Trim();
                obj.Description = this.txtDescription.Text.Trim();
                obj.Code        = this.txtCode.Text.Trim();

                //obj.RecievedName = this.txtRecievedName.Text.Trim();
                //obj.IsAllowNullLinkID = this.chkIsAllowNullLinkID.Checked;
                obj.IsMonitorRequest    = this.chkIsMonitorRequest.Checked;
                obj.IsDisable           = this.chkIsDisable.Checked;
                obj.DataOkMessage       = this.txtDataOkMessage.Text.Trim();
                obj.DataFailedMessage   = this.txtDataFailedMessage.Text.Trim();
                obj.ReportOkMessage     = this.txtReportOkMessage.Text.Trim();
                obj.ReportFailedMessage = this.txtReportFailedMessage.Text.Trim();
                //obj.StatSendOnce = this.chkStatSendOnce.Checked;
                //obj.TypeRequest = this.chkTypeRequest.Checked;
                //obj.DataParamName = this.txtDataParamName.Text.Trim();
                //obj.DataParamValue = this.txtDataParamValue.Text.Trim();
                //obj.ReportParamName = this.txtReportParamName.Text.Trim();
                //obj.ReportParamValue = this.txtReportParamValue.Text.Trim();
                obj.HasFilters = this.chkHasFilters.Checked;
                //obj.StatusParamName = this.txtStatusParamName.Text.Trim();
                //obj.StatusParamValue = this.txtStatusParamValue.Text.Trim();
                obj.Price       = Convert.ToDecimal(this.txtPrice.Text.Trim());
                obj.DefaultRate = Convert.ToDecimal(this.txtDefaultRate.Text.Trim());
                //obj.HasStatReport = this.chkHasStatReport.Checked;
                obj.ChannelDetailInfo = this.txtChannelDetailInfo.Text.Trim();
                //obj.UpperID = Convert.ToInt32(this.ddlUpperID.SelectedValue.Trim());
                obj.IsLogRequest = this.chkIsLogRequest.Checked;


                SPChannelWrapper.UpdateRecord(obj, this.ParentPage.CurrentLoginUser.UserID, System.DateTime.Now, "用户{0}于{1}时间编辑通道。");

                winSPChannelEdit.Hide();
                ResourceManager.AjaxSuccess = true;
            }
            catch (Exception ex)
            {
                ResourceManager.AjaxSuccess      = false;
                ResourceManager.AjaxErrorMessage = "Error Message:" + ex.Message;
                return;
            }
        }