Пример #1
0
        private bool DoAdd()
        {
            bool result = false;

            Model.CustomerType model = new Model.CustomerType();
            BLL.CustomerType   bll   = new BLL.CustomerType();

            model.Name = txtName.Text.Trim();

            if (bll.Add(model) > 0)
            {
                AddAdminLog(DTEnums.ActionEnum.Add.ToString(), "添加客户类别:" + model.Name); //记录日志
                result = true;
            }
            return(result);
        }
Пример #2
0
        private bool DoAdd()
        {
            bool result = false;
            Model.CustomerType model = new Model.CustomerType();
            BLL.CustomerType bll = new BLL.CustomerType();

            model.Name = txtName.Text.Trim();

            if (bll.Add(model) > 0)
            {
                AddAdminLog(DTEnums.ActionEnum.Add.ToString(), "添加客户类别:" + model.Name); //记录日志
                result = true;
            }
            return result;
        }