Esempio n. 1
0
 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);
 }
Esempio n. 2
0
 protected override ObjectWithId Add(DataTransferObject dto)
 {
     CalcOperation operation = new CalcOperation();
     operation.SaveChanges(dto);
     base.ObjectWithId = operation;
     return operation;
 }
Esempio n. 3
0
 protected override ObjectWithId Add(DataTransferObject dto)
 {
     DebtActionStatus status = new DebtActionStatus {
         Name = this.tbName.get_Text(),
         Created = System.DateTime.Now
     };
     status.SaveChanges(dto);
     return status;
 }
Esempio n. 4
0
 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);
 }
Esempio n. 5
0
 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);
 }
Esempio n. 6
0
 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;
 }
Esempio n. 7
0
 public static Budget AddBudget(DataTransferObject budgetDTO)
 {
     Budget budget = new Budget();
     budget.SaveChanges(budgetDTO);
     if (Budgets.FindById(budget.Id) == null)
     {
         Budgets.Add(budget);
     }
     return budget;
 }
Esempio n. 8
0
 protected override void Change(DataTransferObject dto)
 {
     ((ServiceOld) base.ObjectWithId).SaveChanges(dto);
 }
Esempio n. 9
0
 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;
 }
Esempio n. 10
0
 public override void SaveProperties(DataTransferObject ddto)
 {
     CalcOperationGroupDTO pdto = (CalcOperationGroupDTO) ddto;
     base.Name = pdto.Name;
     this.IsInverted = pdto.IsInverted;
 }
Esempio n. 11
0
 protected override ObjectWithId Add(DataTransferObject dto)
 {
     ServiceTypeOld serviceTypeOld = Register.AddServiceType((ServiceTypeDTO) dto);
     this.UpdateParent(serviceTypeOld);
     return serviceTypeOld;
 }
Esempio n. 12
0
 protected override ObjectWithId Add(DataTransferObject dto)
 {
     return Register.AddCanonicalService((CanonicalServiceDTO) dto);
 }
Esempio n. 13
0
 protected override ObjectWithId Add(DataTransferObject dto)
 {
     return Register.AddBudget((BudgetDTO) dto);
 }
Esempio n. 14
0
 public static ObjectWithId AddOrganization(DataTransferObject dto)
 {
     Organization organization = new Organization();
     organization.SaveChanges(dto);
     if (Organizations.FindById(organization.Id) == null)
     {
         Organizations.Add(organization);
     }
     return organization;
 }
Esempio n. 15
0
 protected override void Change(DataTransferObject dto)
 {
     ((CalcOperationGroup) base.ObjectWithId).SaveChanges(dto);
 }
Esempio n. 16
0
 protected override ObjectWithId Add(DataTransferObject dto)
 {
     CalcOperationGroup group = new CalcOperationGroup();
     group.SaveChanges(dto);
     return group;
 }
Esempio n. 17
0
 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;
 }
Esempio n. 18
0
 protected override void Change(DataTransferObject dto)
 {
     ServiceTypeOld objectWithId = (ServiceTypeOld) base.ObjectWithId;
     this.UpdateParent(objectWithId);
     objectWithId.SaveChanges(dto);
 }
Esempio n. 19
0
 public static ObjectWithId AddServer(DataTransferObject dto)
 {
     Server server = new Server();
     server.SaveChanges(dto);
     return server;
 }
Esempio n. 20
0
 public override void SaveProperties(DataTransferObject ddto)
 {
     BudgetDTO tdto = (BudgetDTO) ddto;
     this.OrgId = tdto.Organization.Id;
     this.BudgetFasetId = tdto.BudgetFaset.Id;
 }
Esempio n. 21
0
 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;
 }
Esempio n. 22
0
 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;
 }
Esempio n. 23
0
 protected override void Change(DataTransferObject dto)
 {
     ((Budget) base.ObjectWithId).SaveChanges(dto);
 }
Esempio n. 24
0
 protected override ObjectWithId Add(DataTransferObject dto)
 {
     return Register.AddOrganization(dto);
 }
Esempio n. 25
0
 protected override ObjectWithId Add(DataTransferObject dto)
 {
     return this.ServiceOld.AddNorm((ServiceNormDTO) dto);
 }
Esempio n. 26
0
 protected override void Change(DataTransferObject dto)
 {
     ((Organization) base.ObjectWithId).SaveChanges(dto);
 }
Esempio n. 27
0
 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;
 }
Esempio n. 28
0
 protected override ObjectWithId Add(DataTransferObject dto)
 {
     return this._mService.AddTariff((ServiceTariffDTO) dto);
 }
Esempio n. 29
0
 protected override ObjectWithId Add(DataTransferObject dto)
 {
     Organization organization = (Organization) this.orgsBindingSource.get_Current();
     return organization.AddService(dto);
 }
Esempio n. 30
0
 public ServiceOld AddService(DataTransferObject dto)
 {
     ServiceOld s = new ServiceOld();
     s.SaveChanges(dto);
     Register.AddService(s);
     return s;
 }