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

            Comp.Data data = base.ComponentData as Comp.Data;
            data.Id       = dto.Id;
            data.Standard = new Standard.Server(null).Convert(dto.Standard) as Sparkle.School.Component.Standard.Data;
            data.Section  = new Section.Server(null).Convert(dto.Section) as Sparkle.School.Component.Section.Data;
        }
Exemple #2
0
        public override void AssignDto()
        {
            Dto dto = (base.FormDto as FormDto).Dto as Dto;

            Comp.Data data = base.ComponentData as Comp.Data;
            base.ComponentData.Id = data.Id;
            dto.Standard          = new Standard.Server(null).Convert(data.Standard) as Standard.Dto;
            dto.Section           = new Section.Server(null).Convert(data.Section) as Section.Dto;
        }
Exemple #3
0
        public override BinAff.Core.Data Convert(BinAff.Facade.Library.Dto dto)
        {
            Dto dt = dto as Dto;

            return(new Comp.Data
            {
                Id = dt.Id,
                Standard = new Standard.Server(null).Convert(dt.Standard) as Sparkle.School.Component.Standard.Data,
                Section = new Section.Server(null).Convert(dt.Section) as Sparkle.School.Component.Section.Data
            });
        }
Exemple #4
0
 protected override void AssignFormControls()
 {
     Fac.Dto dto = base.FormDto.Dto as Fac.Dto;
     this.cboStandard.SelectedItem = (this.FormDto as Fac.FormDto).StandardList.FindLast((p) => { return(p.Id == dto.Standard.Id); });
     this.cboSection.SelectedItem  = (this.FormDto as Fac.FormDto).SectionList.FindLast((p) => { return(p.Id == dto.Section.Id); });
 }
Exemple #5
0
 protected override void AssignDto()
 {
     Fac.Dto dto = base.FormDto.Dto as Fac.Dto;
     dto.Standard = this.cboStandard.SelectedItem as Facade.Standard.Dto;
     dto.Section  = this.cboSection.SelectedItem as Facade.Section.Dto;
 }