private void ShowInfo(int _id) { BLL.Store bll = new BLL.Store(); Model.Store model = bll.GetModel(_id); ddlStoreDomain.SelectedValue = model.StoreDomainId.ToString(); txtName.Text = model.Name; txtManager.Text = model.Manager; txtAddress.Text = model.Address; txtRemark.Text = model.Remark; }
private bool DoEdit(int _id) { bool result = false; BLL.Store bll = new BLL.Store(); Model.Store model = bll.GetModel(_id); model.StoreDomainId = int.Parse(ddlStoreDomain.SelectedValue); model.Name = txtName.Text; model.Manager = txtManager.Text; model.Address = txtAddress.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.Store bll = new BLL.Store(); Model.Store model = bll.GetModel(_id); model.StoreDomainId = int.Parse(ddlStoreDomain.SelectedValue); model.Name = txtName.Text; model.Manager = txtManager.Text; model.Address = txtAddress.Text; model.Remark = txtRemark.Text; if (bll.Update(model)) { AddAdminLog(DTEnums.ActionEnum.Edit.ToString(), "修改仓库信息:" + model.Name); //记录日志 result = true; } return result; }