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

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

            model.group_id = int.Parse(ddlGroupId.SelectedValue);
            model.title    = txtTitle.Text.Trim();
            model.img_url  = txtImgUrl.Text.Trim();
            model.link_url = txtLinkUrl.Text.Trim();
            model.sort_id  = int.Parse(txtSortId.Text.Trim());
            model.is_lock  = int.Parse(rblIsLock.SelectedValue);

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

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

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

            model.group_id = int.Parse(ddlGroupId.SelectedValue);
            model.title    = txtTitle.Text.Trim();
            model.img_url  = txtImgUrl.Text.Trim();
            model.link_url = txtLinkUrl.Text.Trim();
            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);
        }
Ejemplo n.º 3
0
        private bool DoEdit(int _id)
        {
            bool result = false;
            BLL.online_service bll = new BLL.online_service();
            Model.online_service model = bll.GetModel(_id);

            model.group_id = int.Parse(ddlGroupId.SelectedValue);
            model.title = txtTitle.Text.Trim();
            model.img_url = txtImgUrl.Text.Trim();
            model.link_url = txtLinkUrl.Text.Trim();
            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;
        }
Ejemplo n.º 4
0
        private bool DoEdit(int _id)
        {
            bool result = true;
            BLL.online_service bll = new BLL.online_service();
            Model.online_service model = bll.GetModel(_id);

            model.group_id = int.Parse(ddlGroupId.SelectedValue);
            model.title = txtTitle.Text.Trim();
            model.img_url = txtImgUrl.Text.Trim();
            model.link_url = txtLinkUrl.Text.Trim();
            model.sort_id = int.Parse(txtSortId.Text.Trim());
            model.is_lock = int.Parse(rblIsLock.SelectedValue);

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

            return result;
        }