Esempio n. 1
0
        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;
        }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
        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;
        }
Esempio n. 4
0
        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;
        }