public AircraftCertSmodDO(GvaViewSModeCode code) { int codeHexToDecimal = Convert.ToInt32(code.CodeHex, 16); this.TheirDate = code.TheirDate; this.TheirNumber = code.TheirNumber; this.CaaDate = code.CaaDate; this.CaaNumber = code.CaaNumber; this.SModeCodeLotId = code.LotId; this.CodeHex = code.CodeHex; this.CodeDecimal = codeHexToDecimal; this.CodeBinary = Convert.ToString(codeHexToDecimal, 2); }
public SModeCodeViewDO(GvaViewSModeCode code) { int codeHexToDecimal = Convert.ToInt32(code.CodeHex, 16); this.LotId = code.LotId; this.CodeHex = code.CodeHex; this.CodeDecimal = codeHexToDecimal; this.CodeBinary = Convert.ToString(codeHexToDecimal, 2); this.Type = code.Type; this.Description = code.Description; this.Identifier = code.Identifier; this.RegMark = code.RegMark; }