SIAQ.DataAccess.Object.DAMedioComunicacion.selectcatMedioComunicacion C# (CSharp) Method

selectcatMedioComunicacion() public method

Metodo para obtener las catMedioComunicacion del sistema
DAcatMedioComunicacion.selecthcatMedioComunicacion 27/ene/2014 Generador
public selectcatMedioComunicacion ( ENTMedioComunicacion oENTMedioComunicacion ) : ENTResponse
oENTMedioComunicacion SIAQ.Entity.Object.ENTMedioComunicacion
return SIAQ.Entity.Object.ENTResponse
        public ENTResponse selectcatMedioComunicacion(ENTMedioComunicacion oENTMedioComunicacion)
        {
            ENTResponse oENTResponse = new ENTResponse();
            DataSet ds = new DataSet();
            // Transacción
            try
            {
                ds = dbs.ExecuteDataSet("uspcatMedioComunicacion_Sel", oENTMedioComunicacion.MedioComunicacionId, oENTMedioComunicacion.Nombre);
                oENTResponse.dsResponse = ds;
            }
            catch (SqlException sqlEx)
            {
                oENTResponse.ExceptionRaised(sqlEx.Message);
            }
            catch (Exception ex)
            {
                oENTResponse.ExceptionRaised(ex.Message);
            }
            finally
            {
            }
            // Resultado
            return oENTResponse;
        }

Usage Example

コード例 #1
0
ファイル: BPMedioComunicacion.cs プロジェクト: GCSoft/CEDHNL
 ///<remarks>
 ///   <name>BPcatMedioComunicacion.selectcatMedioComunicacion</name>
 ///   <create>27/ene/2014</create>
 ///   <author>Generador</author>
 ///</remarks>
 ///<summary>Metodo para obtener las catMedioComunicacion del sistema</summary>
 public ENTResponse selectcatMedioComunicacion(ENTMedioComunicacion entMedioComunicacion)
 {
     ENTResponse oENTResponse = new ENTResponse();
     try
     {
         // Consulta a base de datos
         DAMedioComunicacion datacatMedioComunicacion = new DAMedioComunicacion();
         oENTResponse = datacatMedioComunicacion.selectcatMedioComunicacion(entMedioComunicacion);
         // Validación de error en consulta
         if (oENTResponse.GeneratesException) { return oENTResponse; }
         // Validación de mensajes de la BD
         oENTResponse.sMessage = oENTResponse.dsResponse.Tables[0].Rows[0]["sResponse"].ToString();
         if (oENTResponse.sMessage != "") { return oENTResponse; }
     }
     catch (Exception ex)
     {
         oENTResponse.ExceptionRaised(ex.Message);
     }
     // Resultado
     return oENTResponse;
 }