Exemple #1
0
        protected override void AssignFormControls()
        {
            Fac.Dto dto = base.FormDto.Dto as Fac.Dto;

            this.cboFeeDefinition.SelectedItem = (this.FormDto as Fac.FormDto).FeeDefinationList.FindLast((p) => { return(p.Id == dto.FeeDefinition.Id); });
            this.cboCaste.SelectedItem         = (this.FormDto as Fac.FormDto).CasteList.FindLast((p) => { return(p.Id == dto.Caste.Id); });
            this.txtAmount.Text = Convert.ToString(dto.Amount);
        }
Exemple #2
0
 protected override void AssignDto()
 {
     Fac.Dto dto = base.FormDto.Dto as Fac.Dto;
     dto.FeeDefinition = this.cboFeeDefinition.SelectedItem as FinFac.Definition.Dto;
     dto.Caste         = this.cboCaste.SelectedItem as ConFac.Caste.Dto;
     dto.Amount        = Convert.ToDouble(this.txtAmount.Text);
     dto.IsPercentage  = rdlYes.Checked == true ? true : false;
 }
Exemple #3
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;
        }
Exemple #4
0
        public override BinAff.Core.Data Convert(BinAff.Facade.Library.Dto dto)
        {
            Dto dt = dto as Dto;

            return(new Comp.Data
            {
                Id = dt.Id,
                FeeDefinition = new Fee.Definition.Server(null).Convert(dt.FeeDefinition) as Sparkle.Billing.Component.Fee.Definition.Data,
                Caste = new Configuration.Facade.Caste.Server(null).Convert(dt.Caste) as Crystal.Configuration.Component.Caste.Data,
                Amount = dt.Amount,
                IsPercentage = dt.IsPercentage,
                IsActive = dt.IsActive,
            });
        }