public static DataTable Exportar_Excel_Gratificacion_Mes(ref BaseEntity Base, String SqlCommandString, Int32 idGratificacion) { DataTable ListDetails = new DataTable(); if (!String.IsNullOrEmpty(SqlCommandString)) { ListDetails = BaseDao.GetListDataTableIDGrati(ref Base, SqlCommandString, idGratificacion); } else { Base.Errors.Add(new BaseEntity.ListError(new Exception(), "SQL Command String esta vacio o es nullo")); } return(ListDetails); }