public DataTable CEDICSEM_TRAE_CONTRATOS() { String sql = ""; DataTable datos; sql += "exec [SXXX_CEDICSEM_TRAE_CONTRATOS] @Documento"; try { SqlParameter[] parameter = { new SqlParameter("@Documento", TxtDocumento) }; datos = SqlHelper_2.ExecuteDataTable(sql, parameter); return(datos); } catch (Exception error) { // Extract some information from this exception, and then // throw it to the parent method. if (error.Source != null) { Console.WriteLine("IOException source: {0}", error.Source); } return(null); throw; } }
public DataTable TRAE_DATOS_LISTA_RECORD(string record_id) { String sql = ""; DataTable datos = new DataTable(); sql += "SELECT ANIOMES,CONTRATO,SECUENCIACONTRATO,TITULAR,TIPODOCUMENTOIDENTIDAD,NRODOCUMENTOIDENTIDAD,NROCUOTA,APORTE,APORTESINIGV,CODIGOPLAN,NOMBREDELPLAN,CODIGOASESOR,NOMBREASESOR,CARGOACUENTA,BANCO,TIPOCARGOACUENTA,ESTADOCARGOACUENTA,EMPRESA,FORMADEPAGO,TIPODESCUENTO,TELEFONO1,TELEFONO2,CELULAR,EMAIL,TIENEPREEXISTENCIAS,ESTADOCUOTA,ESTADOSECUENCIA,NRORENOVACION,ASIGNADOA,CATEGORIA,TRAMO,EFECTIVIDAD,ACCION,CALENDARIO,MOTIVO,OBSERVACIONES,INICIOVIGENCIA,FECHAEMISION,FECHAVENCIMIENTO,FECHAVENCIMIENTOTARJETA,ULTIMAMODIFICACIONSECUENCIA FROM COBRANZA_PLAN_FAMILIAR where record_id='" + record_id + "'"; try { SqlParameter[] parameter = { // new SqlParameter("RutCliente",Rut) }; datos = SqlHelper_2.ExecuteDataTable(sql, parameter); return(datos); } catch (Exception error) { // Extract some information from this exception, and then // throw it to the parent method. if (error.Source != null) { Console.WriteLine("IOException source: {0}", error.Source); } return(null); throw; } }