-
This commit is contained in:
@@ -285,12 +285,12 @@ public partial class General_RepPaqueteriasGuias : ClsPaginas
|
||||
{
|
||||
if (UsuarioActual.CveRol == 1339)
|
||||
{
|
||||
DdlUsuarios.DataSource = get_GlobalDTUsuarios(CveEmpresa: UsuarioActual.CveEmpresa).FiltraParametros(String.Format("CveRol = {0}", UsuarioActual.CveRol));
|
||||
DdlUsuarios.DataSource = get_GlobalDTUsuarios(CveEmpresa: UsuarioActual.CveEmpresa).FiltraParametros(String.Format("CveRol = {0} AND Estatus = 1", UsuarioActual.CveRol), "Nombre");
|
||||
DdlUsuarios.DataBind();
|
||||
}
|
||||
else
|
||||
{
|
||||
DdlUsuarios.DataSource = get_GlobalDTUsuarios(CveEmpresa: UsuarioActual.CveEmpresa);
|
||||
DdlUsuarios.DataSource = get_GlobalDTUsuarios(CveEmpresa: UsuarioActual.CveEmpresa).FiltraParametros("Estatus = 1", "Nombre");
|
||||
DdlUsuarios.DataBind();
|
||||
DdlUsuarios.Items.Insert(0, new ListItem("Todos ", "-1"));
|
||||
}
|
||||
@@ -877,14 +877,20 @@ public partial class General_RepPaqueteriasGuias : ClsPaginas
|
||||
@params.Add(new ReportParameter("FechaInicio", FechaInicio));
|
||||
@params.Add(new ReportParameter("FechaFin", FechaFinal));
|
||||
|
||||
//@params.Add(new ReportParameter("FechaIngInicio", FechaIngInicio));
|
||||
//@params.Add(new ReportParameter("FechaIngFin", FechIngaFinal));
|
||||
@params.Add(new ReportParameter("FechaIngInicio", FechaIngInicio));
|
||||
@params.Add(new ReportParameter("FechaIngFin", FechIngaFinal));
|
||||
@params.Add(new ReportParameter("Orden", DdlFiltro.SelectedItem.Text));
|
||||
@params.Add(new ReportParameter("EntregasDirectas", (ChkLote.Checked?"Solo entregas directas":"Entregas directas y por paquetería")));
|
||||
|
||||
@params.Add(new ReportParameter("UsuarioImprimio", UsuarioActual.Nombre));
|
||||
@params.Add(new ReportParameter("FechaImpresion", DateTime.Now.ToShortDateString()));
|
||||
@params.Add(new ReportParameter("Filtros", String.Format(" <b>Sucursal: </b>{0}  <b>Estatus: </b>{1}  <b>Paquetería: </b>{2}<br/><b>Fecha Inicio: </b>{3}  <b>Fecha Fin: </b>{4}", Sucursal, Estatus, Paqueteria, FechaInicio, FechaFinal)));
|
||||
string Usuario = DdlUsuarios.SelectedValue == "-1" ? "No especificado" : DdlUsuarios.SelectedItem.Text;
|
||||
|
||||
string FechasIngF = TxtFechaFinalIngreso.Text.Length > 0 ? string.Format("   < b > F.I.Ingreso: </ b >{0}", TxtFechaFinalIngreso.Text) : "";
|
||||
string FechasIngI = TxtFechaInicialIngreso.Text.Length > 0 ? string.Format("   < b > F.I.Ingreso: </ b >{0}", TxtFechaInicialIngreso.Text) : "";
|
||||
@params.Add(new ReportParameter("Filtros", String.Format(" <b>Sucursal: </b>{0}  <b>Estatus: </b>{1}  <b>Paquetería: </b>{2}  <b>Tipo: </b>{3}<br/><b>Fecha Inicio: </b>{4}  <b>Fecha Fin: </b>{5}{6}{7}  <b>Usuario Entregó: </b>{8}  <b>Entregas: </b>{9}", Sucursal, Estatus, Paqueteria, DdlTipo.SelectedItem.Text, FechaInicio, FechaFinal, FechasIngI, FechasIngF, Usuario, (ChkLote.Checked ? "Solo entregas directas" : "Entregas directas y por paquetería"))));
|
||||
@params.Add(new ReportParameter("FiltroTipoPaqueteria", DdlTipo.SelectedItem.Text));
|
||||
|
||||
string Usuario = DdlUsuarios.SelectedValue == "-1" ? "" : DdlUsuarios.SelectedItem.Text;
|
||||
@params.Add(new ReportParameter("FiltroUsuario", Usuario));
|
||||
|
||||
if (Imagen.Exists)
|
||||
|
||||
Reference in New Issue
Block a user