Пример #1
0
        private void ShowInfo(int _id)
        {
            BLL.Motorcade   bll   = new BLL.Motorcade();
            Model.Motorcade model = bll.GetModel(_id);

            txtName.Text           = model.Name;
            txtCode.Text           = model.Code;
            chkIsOutOfTeam.Checked = model.IsOutOfTeam;
            txtLinkMan.Text        = model.LinkMan;
            txtLinkTel.Text        = model.LinkTel;
            txtLinkAddress.Text    = model.LinkAddress;
            txtRemarks.Text        = model.Remarks;
        }
Пример #2
0
        private bool DoEdit(int _id)
        {
            bool result = false;

            BLL.Motorcade   bll   = new BLL.Motorcade();
            Model.Motorcade model = bll.GetModel(_id);

            model.Name        = txtName.Text.Trim();
            model.Code        = txtCode.Text.Trim();
            model.IsOutOfTeam = chkIsOutOfTeam.Checked;
            model.LinkMan     = txtLinkMan.Text.Trim();
            model.LinkTel     = txtLinkTel.Text.Trim();
            model.LinkAddress = txtLinkAddress.Text.Trim();
            model.Remarks     = txtRemarks.Text.Trim();

            if (bll.Update(model))
            {
                AddAdminLog(DTEnums.ActionEnum.Edit.ToString(), "修改车队:" + model.Name); //记录日志
                result = true;
            }

            return(result);
        }
Пример #3
0
        private bool DoEdit(int _id)
        {
            bool result = false;
            BLL.Motorcade bll = new BLL.Motorcade();
            Model.Motorcade model = bll.GetModel(_id);

            model.Name = txtName.Text.Trim();
            model.Code = txtCode.Text.Trim();
            model.IsOutOfTeam = chkIsOutOfTeam.Checked;
            model.LinkMan = txtLinkMan.Text.Trim();
            model.LinkTel = txtLinkTel.Text.Trim();
            model.LinkAddress = txtLinkAddress.Text.Trim();
            model.Remarks = txtRemarks.Text.Trim();

            if (bll.Update(model))
            {
                AddAdminLog(DTEnums.ActionEnum.Edit.ToString(), "修改车队:" + model.Name); //记录日志
                result = true;
            }

            return result;
        }
Пример #4
0
        private void ShowInfo(int _id)
        {
            BLL.Motorcade bll = new BLL.Motorcade();
            Model.Motorcade model = bll.GetModel(_id);

            txtName.Text = model.Name;
            txtCode.Text = model.Code;
            chkIsOutOfTeam.Checked = model.IsOutOfTeam;
            txtLinkMan.Text = model.LinkMan;
            txtLinkTel.Text = model.LinkTel;
            txtLinkAddress.Text = model.LinkAddress;
            txtRemarks.Text = model.Remarks;
        }