示例#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.Name = dto.Name;
            data.Logo = dto.Logo;
            data.AccreditationNumber = dto.AccreditationNumber;
            data.Tan = dto.Tan;
            data.ContactInformation = new ContInfoFac.Server(null).Convert(dto.ContactInformation) as ContInfo.Data;
        }
示例#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,
                Name = dt.Name,
                Logo = dt.Logo,
                AccreditationNumber = dt.AccreditationNumber,
                Tan = dt.Tan,
                ContactInformation = new ContInfoFac.Server(null).Convert(dt.ContactInformation) as ContInfo.Data
            });
        }
示例#3
0
 protected override void AssignFormControls()
 {
     Fac.Dto dto = base.FormDto.Dto as Fac.Dto;
     //this.txtName.Text = dto.Name;
 }
示例#4
0
 protected override void AssignDto()
 {
     Fac.Dto dto = base.FormDto.Dto as Fac.Dto;
     //dto.Name = this.txtName.Text;
 }