private bool DoEdit(int _id)
        {
            bool result = true;

            BLL.online_service_group   bll   = new BLL.online_service_group();
            Model.online_service_group model = bll.GetModel(_id);

            model.title        = txtTitle.Text.Trim();
            model.default_view = int.Parse(rblDefaultView.SelectedValue);
            model.sort_id      = int.Parse(txtSortId.Text.Trim());
            model.is_lock      = int.Parse(rblIsLock.SelectedValue);

            if (!bll.Update(model))
            {
                result = false;
            }

            return(result);
        }
Exemple #2
0
        private bool DoEdit(int _id)
        {
            bool result = false;

            BLL.online_service_group   bll   = new BLL.online_service_group();
            Model.online_service_group model = bll.GetModel(_id);

            model.title        = txtTitle.Text.Trim();
            model.default_view = int.Parse(rblDefaultView.SelectedValue);
            model.sort_id      = int.Parse(txtSortId.Text.Trim());
            model.is_lock      = int.Parse(rblIsLock.SelectedValue);

            if (bll.Update(model))
            {
                AddAdminLog(DTEnums.ActionEnum.Edit.ToString(), "修改在线客服分组:" + model.title); //记录日志
                result = true;
            }

            return(result);
        }
        private bool DoEdit(int _id)
        {
            bool result = true;
            BLL.online_service_group bll = new BLL.online_service_group();
            Model.online_service_group model = bll.GetModel(_id);

            model.title = txtTitle.Text.Trim();
            model.default_view = int.Parse(rblDefaultView.SelectedValue);
            model.sort_id = int.Parse(txtSortId.Text.Trim());
            model.is_lock = int.Parse(rblIsLock.SelectedValue);

            if (!bll.Update(model))
            {
                result = false;
            }

            return result;
        }
Exemple #4
0
        private bool DoEdit(int _id)
        {
            bool result = false;
            BLL.online_service_group bll = new BLL.online_service_group();
            Model.online_service_group model = bll.GetModel(_id);

            model.title = txtTitle.Text.Trim();
            model.default_view = int.Parse(rblDefaultView.SelectedValue);
            model.sort_id = int.Parse(txtSortId.Text.Trim());
            model.is_lock = int.Parse(rblIsLock.SelectedValue);

            if (bll.Update(model))
            {
                AddAdminLog(DTEnums.ActionEnum.Edit.ToString(), "修改在线客服分组:" + model.title); //记录日志
                result = true;
            }

            return result;
        }