Ejemplo n.º 1
0
        private bool DoEdit(int _id)
        {
            bool result = false;

            RTBcms.Web.Plugin.OnlineService.BLL.online_service   online_service = new RTBcms.Web.Plugin.OnlineService.BLL.online_service();
            RTBcms.Web.Plugin.OnlineService.Model.online_service model          = online_service.GetModel(_id);
            model.site_path        = this.ddlSitePath.SelectedValue;
            model.service_template = this.txtService_template.Text.Trim();
            model.service_title    = this.txtService_title.Text.Trim();
            model.sort_id          = Utils.StrToInt(this.txtSortId.Text.Trim(), 99);
            if (this.cbIsLock.Checked)
            {
                model.is_lock = 1;
            }
            else
            {
                model.is_lock = 0;
            }
            if (online_service.Update(model))
            {
                CacheHelper.Remove("dt_cache_http_domain");
                base.AddAdminLog(4.ToString(), "修改在线客服:" + model.service_template);
                result = true;
            }
            return(result);
        }
Ejemplo n.º 2
0
 private void ShowInfo(int _id)
 {
     RTBcms.Web.Plugin.OnlineService.BLL.online_service   online_service = new RTBcms.Web.Plugin.OnlineService.BLL.online_service();
     RTBcms.Web.Plugin.OnlineService.Model.online_service model          = online_service.GetModel(_id);
     this.ddlSitePath.SelectedValue = model.site_path;
     this.txtService_template.Text  = model.service_template;
     this.txtService_title.Text     = model.service_title;
     this.txtSortId.Text            = model.sort_id.ToString();
     if (model.is_lock == 1)
     {
         this.cbIsLock.Checked = true;
     }
     else
     {
         this.cbIsLock.Checked = false;
     }
 }