Example #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.FirstName          = dto.FirstName;
            data.MiddleName         = dto.MiddleName;
            data.LastName           = dto.LastName;
            data.Occupation         = new Occupation.Server(null).Convert(dto.Occupation) as OcuComp.Data;
            data.ContactInformation = new ContactInformation.Server(null).Convert(dto.ContactInformation) as ContComp.Data;
            data.Mobile             = new Mobile.Server(null).Convert(dto.Mobile) as MobileComp.Data;
        }
Example #2
0
        public override BinAff.Core.Data Convert(BinAff.Facade.Library.Dto dto)
        {
            Dto dt = dto as Dto;

            return(new Comp.Data
            {
                Id = dt.Id,
                FirstName = dt.FirstName,
                MiddleName = dt.MiddleName,
                LastName = dt.LastName,
                Occupation = new Occupation.Server(null).Convert(dt.Occupation) as OcuComp.Data,
                ContactInformation = new ContactInformation.Server(null).Convert(dt.ContactInformation) as ContComp.Data,
                Mobile = new Mobile.Server(null).Convert(dt.Mobile) as MobileComp.Data,
            });
        }
Example #3
0
 protected override void AssignFormControls()
 {
     Fac.Dto dto = base.FormDto.Dto as Fac.Dto;
     //this.txtFirstName.Text = dto.Name;
 }
Example #4
0
 protected override void AssignDto()
 {
     Fac.Dto dto = base.FormDto.Dto as Fac.Dto;
     //dto.Name = this.txtFirstName.Text;
 }