protected override void Change(DataTransferObject dto) { DebtActionStatus objectWithId = (DebtActionStatus) base.ObjectWithId; objectWithId.Name = this.tbName.get_Text(); objectWithId.Created = System.DateTime.Now; objectWithId.SaveChanges(dto); }
protected override ObjectWithId Add(DataTransferObject dto) { CalcOperation operation = new CalcOperation(); operation.SaveChanges(dto); base.ObjectWithId = operation; return operation; }
protected override ObjectWithId Add(DataTransferObject dto) { DebtActionStatus status = new DebtActionStatus { Name = this.tbName.get_Text(), Created = System.DateTime.Now }; status.SaveChanges(dto); return status; }
protected override void Change(DataTransferObject dto) { ServiceNorm objectWithId = (ServiceNorm) base.ObjectWithId; if (!objectWithId.IsNew) { ObjectList<ServiceNormType> serviceNormTypes = this.bsServiceNormTypesByPropertiesView.get_DataSource() as ObjectList<ServiceNormType>; this.SaveNormTypes(serviceNormTypes); serviceNormTypes = this.bsServiceNormTypes.get_DataSource() as ObjectList<ServiceNormType>; this.SaveNormTypes(serviceNormTypes); } objectWithId.SaveChanges(dto); }
protected override void Change(DataTransferObject dto) { ServiceTariff objectWithId = (ServiceTariff) base.ObjectWithId; if (!objectWithId.IsNew) { ObjectList<ServiceTariffType> list = this.bsServiceTariffTypes.get_DataSource() as ObjectList<ServiceTariffType>; if (list != null) { foreach (ServiceTariffType type in list) { if ((type.Rate != 0M) || !type.IsNew) { type.SaveChanges(); } } } } objectWithId.SaveChanges(dto); }
public override void SaveProperties(DataTransferObject ddto) { ServiceTypeDTO edto = (ServiceTypeDTO) ddto; base.Code = edto.Code; base.ShortName = edto.ShortName; base.LongName = edto.LongName; this.Unit = edto.Unit; this.Parent = edto.Parent; this.IsGroup = edto.IsGroup; this.TypeId = edto.TypeId; this.UnloadDbfName = edto.UnloadDbfName; }
public static Budget AddBudget(DataTransferObject budgetDTO) { Budget budget = new Budget(); budget.SaveChanges(budgetDTO); if (Budgets.FindById(budget.Id) == null) { Budgets.Add(budget); } return budget; }
protected override void Change(DataTransferObject dto) { ((ServiceOld) base.ObjectWithId).SaveChanges(dto); }
public override void SaveProperties(DataTransferObject ddto) { OrganizationDTO ndto = (OrganizationDTO) ddto; this.Parent = ndto.Parent; this.ParentId = this.Parent.Id; base.Code = ndto.Code; base.ShortName = ndto.ShortName; base.LongName = ndto.LongName; this.Inn = System.Convert.ToInt64("0" + ndto.INN); this.Kpp = System.Convert.ToInt64("0" + ndto.KPP); this.Ogrn = System.Convert.ToInt64("0" + ndto.OGRN); this.IsServiceProvider = ndto.IsServiceProvider; this.IsHouseHolder = ndto.IsHouseHolder; this.IsCashlessTransferrer = ndto.IsCashlessTransferrer; this.IsBenefitTransferrer = ndto.IsBenefitTransferrer; this.IsFlatOwner = ndto.IsFlatOwner; this.IsPaymentAgent = ndto.IsPaymentAgent; this.IsResourceProvider = ndto.IsResourceProvider; this.IsContractEnded = ndto.IsContractEnded; base.FromDate = ndto.FromDate; base.ToDate = ndto.ToDate; this.Info = ndto.INFO; this.AddrInfo = ndto.AddrInfo; this.AddrName = ndto.AddrName; this.ModeWork = ndto.ModeWork; this.Telephone = ndto.Telephone; this.TelephoneEmergencyDispatchService = ndto.TelephoneEmergencyDispatchService; this.Fax = ndto.Fax; this.Manager = ndto.Manager; this.ManagerPosition = ndto.ManagerPosition; this.ChiefAccountant = ndto.ChiefAccountant; this.IsBankrupt = ndto.IsBankrupt; this.DistributionPaymentType = ndto.DistribudePaymentType; this.IsPaymentUseNotice = ndto.IsPaymentUseNotice; this.IsPaymentUseNegativeSumm = ndto.IsPaymentUseNegativeSumm; }
public override void SaveProperties(DataTransferObject ddto) { CalcOperationGroupDTO pdto = (CalcOperationGroupDTO) ddto; base.Name = pdto.Name; this.IsInverted = pdto.IsInverted; }
protected override ObjectWithId Add(DataTransferObject dto) { ServiceTypeOld serviceTypeOld = Register.AddServiceType((ServiceTypeDTO) dto); this.UpdateParent(serviceTypeOld); return serviceTypeOld; }
protected override ObjectWithId Add(DataTransferObject dto) { return Register.AddCanonicalService((CanonicalServiceDTO) dto); }
protected override ObjectWithId Add(DataTransferObject dto) { return Register.AddBudget((BudgetDTO) dto); }
public static ObjectWithId AddOrganization(DataTransferObject dto) { Organization organization = new Organization(); organization.SaveChanges(dto); if (Organizations.FindById(organization.Id) == null) { Organizations.Add(organization); } return organization; }
protected override void Change(DataTransferObject dto) { ((CalcOperationGroup) base.ObjectWithId).SaveChanges(dto); }
protected override ObjectWithId Add(DataTransferObject dto) { CalcOperationGroup group = new CalcOperationGroup(); group.SaveChanges(dto); return group; }
public override void SaveProperties(DataTransferObject ddto) { ServiceNormDTO mdto = (ServiceNormDTO) ddto; this.ServiceOld = mdto.ServiceOld; this.Rate = mdto.Rate; this.Unit = mdto.Unit; this.ByUnit = mdto.ByUnit; base.OrgDocument = mdto.OrgDocument; base.Dateb = mdto.Dateb; base.Datee = mdto.Datee; this.FromValue = mdto.FromValue; this.ToValue = mdto.ToValue; }
protected override void Change(DataTransferObject dto) { ServiceTypeOld objectWithId = (ServiceTypeOld) base.ObjectWithId; this.UpdateParent(objectWithId); objectWithId.SaveChanges(dto); }
public static ObjectWithId AddServer(DataTransferObject dto) { Server server = new Server(); server.SaveChanges(dto); return server; }
public override void SaveProperties(DataTransferObject ddto) { BudgetDTO tdto = (BudgetDTO) ddto; this.OrgId = tdto.Organization.Id; this.BudgetFasetId = tdto.BudgetFaset.Id; }
public override void SaveProperties(DataTransferObject ddto) { OrgDocumentDTO tdto = (OrgDocumentDTO) ddto; base.Type = tdto.Type; base.Number = tdto.Number; base.WhenGet = tdto.WhenGet; this.Organization = tdto.Organization; this.Comment = tdto.Comment; this.FromDate = tdto.FromDate; this.ToDate = tdto.ToDate; }
public override void SaveProperties(DataTransferObject ddto) { ServerDTO rdto = (ServerDTO) ddto; base.Name = rdto.Name; this.IpAddress = rdto.IpAddress; this.DbName = rdto.DbName; this.UserName = rdto.UserName; this.UserPwd = rdto.UserPwd; }
protected override void Change(DataTransferObject dto) { ((Budget) base.ObjectWithId).SaveChanges(dto); }
protected override ObjectWithId Add(DataTransferObject dto) { return Register.AddOrganization(dto); }
protected override ObjectWithId Add(DataTransferObject dto) { return this.ServiceOld.AddNorm((ServiceNormDTO) dto); }
protected override void Change(DataTransferObject dto) { ((Organization) base.ObjectWithId).SaveChanges(dto); }
public override void SaveProperties(DataTransferObject ddto) { ServiceDTO edto = (ServiceDTO) ddto; base.Code = edto.Code; base.ShortName = edto.ShortName; base.LongName = edto.LongName; this.ServiceType = edto.ServiceType; this.ServiceProvider = edto.ServiceProvider; this.CalcAlg = edto.CalcAlg; this.CanonicalService = edto.CanonicalService; this.AdrId = edto.AdrId; this.HouseHolderId = edto.HouseHolderId; this.ResourceProviderId = edto.ResourceProviderId; this.IsSeasonal = edto.IsSeasonal; this.SeasonalCount = edto.SeasonalCount; this.IsFixedPayment = edto.IsFixedPayment; this.FromDate = edto.FromDate; this.ToDate = edto.ToDate; this.MonthShift = edto.MonthShift; this.CanHaveNegativeCharge = edto.CanHaveNegativeCharge; this.CanRecalcInCloseAccount = edto.CanRecalcInCloceAccount; this.Comment = edto.Comment; this.IsNotRecalculationOldPeriod = edto.IsNotRecalculationOldPeriod; }
protected override ObjectWithId Add(DataTransferObject dto) { return this._mService.AddTariff((ServiceTariffDTO) dto); }
protected override ObjectWithId Add(DataTransferObject dto) { Organization organization = (Organization) this.orgsBindingSource.get_Current(); return organization.AddService(dto); }
public ServiceOld AddService(DataTransferObject dto) { ServiceOld s = new ServiceOld(); s.SaveChanges(dto); Register.AddService(s); return s; }