private void ShowInfo(int _id) { BLL.StoreMode bll = new BLL.StoreMode(); Model.StoreMode model = bll.GetModel(_id); txtName.Text = model.Name; txtRemark.Text = model.Remark; }
private bool DoEdit(int _id) { bool result = false; BLL.StoreMode bll = new BLL.StoreMode(); Model.StoreMode model = bll.GetModel(_id); model.Name = txtName.Text; model.Remark = txtRemark.Text; if (bll.Update(model)) { AddAdminLog(DTEnums.ActionEnum.Edit.ToString(), "修改存储方式:" + model.Name); //记录日志 result = true; } return(result); }
private bool DoEdit(int _id) { bool result = false; BLL.StoreMode bll = new BLL.StoreMode(); Model.StoreMode model = bll.GetModel(_id); model.Name = txtName.Text; model.Remark = txtRemark.Text; if (bll.Update(model)) { AddAdminLog(DTEnums.ActionEnum.Edit.ToString(), "修改存储方式:" + model.Name); //记录日志 result = true; } return result; }