Example #1
0
 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;
 }
Example #2
0
        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;
        }
Example #3
0
        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);
        }
Example #4
0
        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);
        }