public static List <SCE_CUOTAS_SABATINOS> EliminarCuotaLenguas(SCE_CUOTAS_SABATINOS objCuotas, ref string Verificador) { OracleCommand cmd = null; ExeProcedimiento exeProc = new ExeProcedimiento(); List <SCE_CUOTAS_SABATINOS> list = new List <SCE_CUOTAS_SABATINOS>(); try { OracleDataReader dr = null; string[] Parametros = { "P_ID" }; object[] Valores = { objCuotas.ID }; string[] ParametrosOut = { "P_BANDERA" }; cmd = exeProc.GenerarOracleCommand("DEL_CUOTA_LENGUAS", ref Verificador, ref dr, Parametros, Valores, ParametrosOut); } catch (Exception ex) { Verificador = ex.Message; } finally { exeProc.LimpiarOracleCommand(ref cmd); } return(list); //return registroAgregado; }
public static List <SCE_CUOTAS_SABATINOS> AgregarCuotasSabatinosLenguas(SCE_CUOTAS_SABATINOS objCuotas, ref string Verificador) { OracleCommand cmd = null; ExeProcedimiento exeProc = new ExeProcedimiento(); List <SCE_CUOTAS_SABATINOS> list = new List <SCE_CUOTAS_SABATINOS>(); try { OracleDataReader dr = null; string[] Parametros = { "P_DEPENDENCIA", "P_TIPO", "P_NIVEL", "P_STATUS", "P_IMPORTE_INGLES", "P_IMPORTE_ITALIANO", "P_IMPORTE_FRANCES", "P_IMPORTE_ALEMAN", "P_IMPORTE_CHINO", "P_IMPORTE_TZOTZIL", "P_IMPORTE_TZENTAL", "P_IMPORTE_ESPANIOL" }; object[] Valores = { objCuotas.ESCUELA, objCuotas.TIPO, objCuotas.NIVEL, objCuotas.STATUS, objCuotas.IMPORTE_INGLES, objCuotas.IMPORTE_ITALIANO, objCuotas.IMPORTE_FRANCES, objCuotas.IMPORTE_ALEMAN, objCuotas.IMPORTE_CHINO, objCuotas.IMPORTE_TZOTZIL, objCuotas.IMPORTE_TZENTAL, objCuotas.IMPORTE_ESPANIOL }; string[] ParametrosOut = { "P_BANDERA" }; cmd = exeProc.GenerarOracleCommand("INS_CUOTA_LENGUAS", ref Verificador, ref dr, Parametros, Valores, ParametrosOut); } catch (Exception ex) { Verificador = ex.Message; } finally { exeProc.LimpiarOracleCommand(ref cmd); } return(list); //return registroAgregado; }
public static List <SCE_CUOTAS_SABATINOS> ObtenerDatosCuotaLenguas(int IdCuota, ref string Verificador) { OracleCommand cmd = null; ExeProcedimiento exeProc = new ExeProcedimiento(); List <SCE_CUOTAS_SABATINOS> list = new List <SCE_CUOTAS_SABATINOS>(); SCE_CUOTAS_SABATINOS objCuotas = new SCE_CUOTAS_SABATINOS(); try { OracleDataReader dr = null; string[] Parametros = { "P_ID" }; object[] Valores = { IdCuota }; string[] ParametrosOut = { "P_NIVEL", "P_STATUS", "P_IMPORTE_INGLES", "P_IMPORTE_ITALIANO", "P_IMPORTE_FRANCES", "P_IMPORTE_ALEMAN", "P_IMPORTE_CHINO", "P_IMPORTE_TZOTZIL", "P_IMPORTE_TZENTAL", "P_IMPORTE_ESPANIOL", "P_BANDERA" }; cmd = exeProc.GenerarOracleCommand("OBT_CUOTAS_LENGUAS", ref Verificador, ref dr, Parametros, Valores, ParametrosOut); objCuotas.NIVEL = Convert.ToString(cmd.Parameters["P_NIVEL"].Value.ToString()); objCuotas.STATUS = Convert.ToString(cmd.Parameters["P_STATUS"].Value.ToString()); objCuotas.IMPORTE_INGLES = Convert.ToInt32(cmd.Parameters["P_IMPORTE_INGLES"].Value.ToString()); objCuotas.IMPORTE_ITALIANO = Convert.ToInt32(cmd.Parameters["P_IMPORTE_ITALIANO"].Value.ToString()); objCuotas.IMPORTE_FRANCES = Convert.ToInt32(cmd.Parameters["P_IMPORTE_FRANCES"].Value.ToString()); objCuotas.IMPORTE_ALEMAN = Convert.ToInt32(cmd.Parameters["P_IMPORTE_ALEMAN"].Value.ToString()); objCuotas.IMPORTE_CHINO = Convert.ToInt32(cmd.Parameters["P_IMPORTE_CHINO"].Value.ToString()); objCuotas.IMPORTE_TZOTZIL = Convert.ToInt32(cmd.Parameters["P_IMPORTE_TZOTZIL"].Value.ToString()); objCuotas.IMPORTE_TZENTAL = Convert.ToInt32(cmd.Parameters["P_IMPORTE_TZENTAL"].Value.ToString()); objCuotas.IMPORTE_ESPANIOL = Convert.ToInt32(cmd.Parameters["P_IMPORTE_ESPANIOL"].Value.ToString()); list.Add(objCuotas); } catch (Exception ex) { Verificador = ex.Message; } finally { exeProc.LimpiarOracleCommand(ref cmd); } return(list); //return registroAgregado; }