예제 #1
0
        private bool NewCompanyType(string itemID)
        {
            CompanyType item = new CompanyType();

            _newCompanyTypeAutoId = _newCompanyTypeAutoId - 1;
            item.AutoID           = _newCompanyTypeAutoId;
            item.CompanyTypeID    = itemID;
            item.IsValid          = 1;
            item.NotValidMessage  = "New Record Key Field/s Are Required.";
            CompanyTypeList.Add(item);
            _serviceAgent.AddToCompanyTypeRepository(item);
            SelectedCompanyType = CompanyTypeList.LastOrDefault();

            AllowEdit = true;
            Dirty     = false;
            return(true);
        }