private void ShowInfo(int _id) { BLL.HandlingMode bll = new BLL.HandlingMode(); Model.HandlingMode model = bll.GetModel(_id); txtName.Text = model.Name; txtRemark.Text = model.Remark; }
private bool DoEdit(int _id) { bool result = false; BLL.HandlingMode bll = new BLL.HandlingMode(); Model.HandlingMode 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.HandlingMode bll = new BLL.HandlingMode(); Model.HandlingMode 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 void ShowInfo(int _id) { BLL.HandlingMode bll = new BLL.HandlingMode(); Model.HandlingMode model = bll.GetModel(_id); txtName.Text = model.Name; txtRemark.Text = model.Remark; }