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); }
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); }
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; }
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; }