Exemple #1
0
 protected override void AssignFormControls()
 {
     Fac.Dto dto = base.FormDto.Dto as Fac.Dto;
     this.txtName.Text    = dto.Name;
     this.txtCode.Text    = dto.Code;
     this.txtIsdCode.Text = dto.IsdCode.ToString();
 }
Exemple #2
0
 protected override void AssignDto()
 {
     Fac.Dto dto = base.FormDto.Dto as Fac.Dto;
     dto.Name    = this.txtName.Text;
     dto.Code    = this.txtCode.Text;
     dto.IsdCode = Convert.ToInt16(this.txtIsdCode.Text);
 }
Exemple #3
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 #4
0
        public override BinAff.Core.Data Convert(BinAff.Facade.Library.Dto dto)
        {
            if (dto == null)
            {
                return(null);
            }
            Dto dt = dto as Dto;

            return(new Comp.Data
            {
                Id = dt.Id,
                Name = dt.Name,
                Code = dt.Code,
                IsdCode = dt.IsdCode,
            });
        }