private void ShowInfo(int _id) { BLL.StoreDomain bll = new BLL.StoreDomain(); Model.StoreDomain model = bll.GetModel(_id); txtName.Text = model.Name; txtRemark.Text = model.Remark; }
private bool DoAdd() { bool result = false; Model.StoreDomain model = new Model.StoreDomain(); BLL.StoreDomain bll = new BLL.StoreDomain(); model.Name = txtName.Text; model.Remark = txtRemark.Text; if (bll.Add(model)) { AddAdminLog(DTEnums.ActionEnum.Add.ToString(), "添加仓库区域:" + model.Name); //记录日志 result = true; } return result; }
private bool DoAdd() { bool result = false; Model.StoreDomain model = new Model.StoreDomain(); BLL.StoreDomain bll = new BLL.StoreDomain(); model.Name = txtName.Text; model.Remark = txtRemark.Text; if (bll.Add(model)) { AddAdminLog(DTEnums.ActionEnum.Add.ToString(), "添加仓库区域:" + model.Name); //记录日志 result = true; } return(result); }
private bool DoEdit(int _id) { bool result = false; BLL.StoreDomain bll = new BLL.StoreDomain(); Model.StoreDomain 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); }