public EncabezadoGrupoVarDependiente(int idEncabezadoGrupo, EstructuraArchivo datosArchivo, string descripcion, EstadoParametrizacion estado)
 {
     this.idEncabezadoGrupo = idEncabezadoGrupo;
     this.datosArchivo = datosArchivo;
     this.descripcion = descripcion;
     this.estado = estado;
 }
 public DetalleGrupoDependiente(int idGrupo, string descripcion, EstadoParametrizacion estado, VariableDependiente varDependiente, 
     EncabezadoGrupoVarDependiente encabezadoGrupo)
 {
     this.idGrupo = idGrupo;
     this.descripcion = descripcion;
     this.estado = estado;
     this.varDependiente = varDependiente;
     this.encabezadoGrupo = encabezadoGrupo;
 }
 public void tableToEncabezadoGrupoVarDependiente(System.Data.DataRow myDataRow, EstructuraArchivo datosArchivo, EstadoParametrizacion estado)
 {
     if (myDataRow != null)
     {
         try
         {
             this.idEncabezadoGrupo = Convert.ToInt32(myDataRow["id_enc_grupo"]);
             this.descripcion = myDataRow["descripcion"].ToString();
             this.estado = estado;
             this.datosArchivo = datosArchivo;
         }
         catch (Exception ex)
         {
             throw ex;
         }
     }
 }
Ejemplo n.º 4
0
 public void tableToEstructuraArchivo(System.Data.DataRow myDataRow, ParametrizacionArchivo codArchivo, TipoDato tipoDato, 
     EstadoParametrizacion estadoParametrizacion, FormatoFecha formatoFecha)
 {
     if (myDataRow != null)
     {
         try
         {
             this.numeroColumna = int.Parse(myDataRow["NUMERO_COLUMNA"].ToString());
             this.nombreColumna = (string)myDataRow["NOMBRE_COLUMNA"];
             this.descripcion = (string)myDataRow["DESCRIPCION"];
             this.longitud = int.Parse(myDataRow["LONGITUD"].ToString());
             this.longitudMaxima = int.Parse(myDataRow["LONGITUD_MAX"].ToString());
             this.valorRequerido = (bool)myDataRow["VALOR_REQUERIDO"];
             this.validar = (bool)myDataRow["VALIDAR"];
             this.rangoIni = Single.Parse(myDataRow["RANGO_INI"].ToString(), System.Globalization.CultureInfo.CreateSpecificCulture("en-US"));
             this.rangoFin = Single.Parse(myDataRow["RANGO_FIN"].ToString(), System.Globalization.CultureInfo.CreateSpecificCulture("en-US"));
             this.parametrizacionArchivo = codArchivo;
             this.tipoDato = tipoDato;
             this.estadoParametrizacion = estadoParametrizacion;
             this.formatoFecha = formatoFecha;
         }
         catch (InvalidCastException ex)
         {
             throw ex;
         }
     }
 }
 public void tableToDetalleGrupoDependiente(System.Data.DataRow row, EstadoParametrizacion estado, VariableDependiente varDependiente,
     EncabezadoGrupoVarDependiente encabezadoGrupo)
 {
     if (row != null)
     {
         try
         {
             this.idGrupo = Convert.ToInt32(row["id_grupo"]);
             this.descripcion = row["descripcion"].ToString();
             this.estado = estado;
             this.varDependiente = varDependiente;
             this.encabezadoGrupo = encabezadoGrupo;
         }
         catch (Exception ex)
         {
             throw ex;
         }
     }
 }