Beispiel #1
0
 protected override void AssignFormControls()
 {
     Fac.Dto dto = base.FormDto.Dto as Fac.Dto;
     //this.cboFineType.SelectedItem = (this.FormDto as Fac.FormDto).FineTypeList.FindLast((p) => { return p.Id == dto.FineType.Id; });
     this.cboFineDefinition.SelectedItem = (this.FormDto as Fac.FormDto).FineDefinitionList.FindLast((p) => { return(p.Id == dto.Definition.Id); });
     this.cboStandard.SelectedItem       = (this.FormDto as Fac.FormDto).SchoolStandardList.FindLast((p) => { return(p.Id == dto.SchoolStandard.Id); });
     this.txtAmount.Text = Convert.ToString(dto.Amount);
 }
Beispiel #2
0
 protected override void AssignDto()
 {
     Fac.Dto dto = base.FormDto.Dto as Fac.Dto;
     //dto.FineType = this.cboFineType.SelectedItem as Fac.Type.Dto;
     dto.Definition     = this.cboFineDefinition.SelectedItem as Fac.Definition.Dto;
     dto.SchoolStandard = this.cboStandard.SelectedItem as Sch.Standard.Dto;
     dto.Amount         = Convert.ToDouble(this.txtAmount.Text);
 }
Beispiel #3
0
        public override void AssignData()
        {
            Dto dto = (base.FormDto as FormDto).Dto as Dto;

            Comp.Data data = base.ComponentData as Comp.Data;
            data.Amount = dto.Amount;
            //data.FineType = new Type.Server(null).Convert(dto.FineType) as Comp.Type.Data;
            data.Definition     = new Definition.Server(null).Convert(dto.Definition) as Comp.Definition.Data;
            data.SchoolStandard = new School.Facade.Standard.Server(null).Convert(dto.SchoolStandard) as School.Component.Standard.Data;
        }
Beispiel #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,
                Amount = dt.Amount,
                //FineType = new Type.Server(null).Convert(dt.FineType) as Comp.Type.Data,
                Definition = new Definition.Server(null).Convert(dt.Definition) as Comp.Definition.Data,
                SchoolStandard = new School.Facade.Standard.Server(null).Convert(dt.SchoolStandard) as School.Component.Standard.Data,
                IsActive = dt.IsActive,
            });
        }