Exemple #1
0
 public int Elimina_C_GRUPO_PREGUNTA(SPE_OBTIENE_C_GRUPO_PREGUNTA_Result V_C_GRUPO_PREGUNTA, string usuario = null, string programa = null)
 {
     using (context = new SistemaSigeinEntities())
     {
         //Declaramos el objeto de valor de retorno
         ObjectParameter pout_clave_retorno = new ObjectParameter("POUT_CLAVE_RETORNO", typeof(int));
         context.SPE_ELIMINA_C_GRUPO_PREGUNTA(pout_clave_retorno, V_C_GRUPO_PREGUNTA.ID_GRUPO_PREGUNTA, V_C_GRUPO_PREGUNTA.CL_GRUPO_PREGUNTA, V_C_GRUPO_PREGUNTA.NB_GRUPO_PREGUNTA, V_C_GRUPO_PREGUNTA.ID_PREGUNTA, usuario, programa);
         //regresamos el valor de retorno de sql
         return(Convert.ToInt32(pout_clave_retorno.Value));
     }
 }
Exemple #2
0
 public int InsertaActualiza_C_GRUPO_PREGUNTA(string tipo_transaccion, SPE_OBTIENE_C_GRUPO_PREGUNTA_Result V_C_GRUPO_PREGUNTA, string usuario, string programa)
 {
     using (context = new SistemaSigeinEntities())
     {
         //Declaramos el objeto de valor de retorno
         ObjectParameter pout_clave_retorno = new ObjectParameter("POUT_CLAVE_RETORNO", typeof(int));
         context.SPE_INSERTA_ACTUALIZA_C_GRUPO_PREGUNTA(pout_clave_retorno, V_C_GRUPO_PREGUNTA.ID_GRUPO_PREGUNTA, V_C_GRUPO_PREGUNTA.CL_GRUPO_PREGUNTA, V_C_GRUPO_PREGUNTA.NB_GRUPO_PREGUNTA, V_C_GRUPO_PREGUNTA.ID_PREGUNTA, usuario, usuario, programa, programa, tipo_transaccion);
         //regresamos el valor de retorno de sql
         return(Convert.ToInt32(pout_clave_retorno.Value));;
     }
 }