Ejemplo n.º 1
0
 protected override void AssignFormControls()
 {
     Fac.Dto dto = base.FormDto.Dto as Fac.Dto;
     this.txtName.Text             = dto.Name;
     this.cboFeeGroup.SelectedItem = (this.FormDto as Fac.FormDto).FeeGroupList.FindLast((p) => { return(p.Id == dto.FeeGroup.Id); });;
     this.cboFineDe.SelectedItem   = (this.FormDto as Fac.FormDto).FineDefinationList.FindLast((p) => { return(p.Id == dto.FineDefination.Id); });;
 }
Ejemplo n.º 2
0
 protected override void AssignDto()
 {
     Fac.Dto dto = base.FormDto.Dto as Fac.Dto;
     dto.Name           = this.txtName.Text;
     dto.FeeGroup       = this.cboFeeGroup.SelectedItem as Bil.Fee.Group.Dto;
     dto.FineDefination = this.cboFineDe.SelectedItem as Bil.Fine.Definition.Dto;
 }
Ejemplo n.º 3
0
        public override void AssignData()
        {
            Dto dto = (base.FormDto as FormDto).Dto as Dto;

            Comp.Data data = base.ComponentData as Comp.Data;
            data.Name           = dto.Name;
            data.FeeGroup       = new Fee.Group.Server(null).Convert(dto.FeeGroup) as FeeGroupComp.Data;
            data.FineDefination = new Fine.Definition.Server(null).Convert(dto.FineDefination) as FineDefComp.Data;
        }
Ejemplo n.º 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,
                Name = dt.Name,
                FeeGroup = new Fee.Group.Server(null).Convert(dt.FeeGroup) as FeeGroupComp.Data,
                FineDefination = new Fine.Definition.Server(null).Convert(dt.FineDefination) as FineDefComp.Data,
                IsActive = dt.IsActive,
            });
        }