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