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

            Comp.Data data = base.ComponentData as Comp.Data;
            if (dto != null)
            {
                data.Id      = dto.Id;
                data.Name    = dto.Name;
                data.Code    = dto.Code;
                data.IsdCode = dto.IsdCode;
            }
        }
Exemple #2
0
 public override BinAff.Facade.Library.Dto Convert(BinAff.Core.Data data)
 {
     if (data == null)
     {
         return(null);
     }
     Comp.Data dt = data as Comp.Data;
     return(new Dto
     {
         Id = dt.Id,
         Name = dt.Name,
         Code = dt.Code,
         IsdCode = dt.IsdCode,
     });
 }