Beispiel #1
0
 //-------------
 //Get_DiasxMes
 //------------
 public DataTable Get_DiasxMes(BE_ReqGetDias Request)
 {
     //Recuperando registros
     DataTable dt = new DataTable();
     DA_Sistema Obj = new DA_Sistema();
     return Obj.Get_DiasxMes(Request);
 }
Beispiel #2
0
        //---------------------------------------------------
        //Obtener Lista de dias por mes (form tipo de cambio)
        //---------------------------------------------------
        public DataTable Get_DiasxMes(BE_ReqGetDias Request)
        {
            DataTable dt = new DataTable();
            try
            {
                clsConection Obj = new clsConection();
                string Cadena = Obj.GetConexionString("Naylamp");

                using (SqlConnection cn = new SqlConnection(Cadena))
                {
                    cn.Open();

                    using (SqlCommand cm = new SqlCommand())
                    {
                        cm.CommandText = "usp_Get_ListaFechaporMes";
                        cm.CommandType = CommandType.StoredProcedure;
                        cm.Parameters.AddWithValue("sMes", Request.sMes);
                        cm.Connection = cn;

                        using (SqlDataReader dr = cm.ExecuteReader())
                            dt.Load(dr);

                    }
                }

            }
            catch (Exception)
            {
                throw;
            }
            return dt;
        }