Esempio n. 1
0
        public override void AssignData()
        {
            Dto dto = (base.FormDto as FormDto).Dto as Dto;

            Comp.Data data = base.ComponentData as Comp.Data;
            data.FeeDefinition = new Fee.Definition.Server(null).Convert(dto.FeeDefinition) as Sparkle.Billing.Component.Fee.Definition.Data;
            data.Caste         = new Configuration.Facade.Caste.Server(null).Convert(dto.Caste) as Crystal.Configuration.Component.Caste.Data;
            data.Amount        = dto.Amount;
            data.IsPercentage  = dto.IsPercentage;
        }
Esempio n. 2
0
 public override BinAff.Facade.Library.Dto Convert(BinAff.Core.Data data)
 {
     Comp.Data dt = data as Comp.Data;
     return(new Dto
     {
         Id = dt.Id,
         FeeDefinition = new Fee.Definition.Server(null).Convert(dt.FeeDefinition) as Fee.Definition.Dto,
         Caste = new Configuration.Facade.Caste.Server(null).Convert(dt.Caste) as Configuration.Facade.Caste.Dto,
         Amount = dt.Amount,
         IsPercentage = dt.IsPercentage,
         IsActive = dt.IsActive,
     });
 }
Esempio n. 3
0
File: Dao.cs Progetto: BinAff/School
 public Dao(Data data)
     : base(data)
 {
 }
Esempio n. 4
0
 public Validator(Data data)
     : base(data)
 {
 }