コード例 #1
0
 public DatosEstructuraArchivo(int idValPermitido, string valor, string descripcion, EstructuraArchivo estructuraArchivo, TipoValor tipoValor)
 {
     this.idValPermitido = idValPermitido;
     this.estructuraArchivo = estructuraArchivo;
     this.valor = valor;
     this.descripcion = descripcion;
     this.tipoValor = tipoValor;
 }
コード例 #2
0
 public void tableToDatosEstructuraArchivo(System.Data.DataRow myDataRow, EstructuraArchivo estructuraArchivo, TipoValor tipoValor)
 {
     if (myDataRow != null)
     {
         try
         {
             this.idValPermitido = int.Parse(myDataRow["ID_VAL_PERMITIDO"].ToString());
             this.valor = (string)myDataRow["VALOR"];
             this.descripcion = (string)myDataRow["DESCRIPCION"];
             this.estructuraArchivo = estructuraArchivo;
             this.tipoValor = tipoValor;
         }
         catch (InvalidCastException ex)
         {
             throw ex;
         }
     }
 }