entregas
This commit is contained in:
@@ -16,18 +16,50 @@ public partial class Inventarios_RepMovimientosSalida : ClsPaginas
|
||||
if (!IsPostBack)
|
||||
{
|
||||
InicializaValores();
|
||||
}
|
||||
}
|
||||
|
||||
private void InicializaValores()
|
||||
{
|
||||
txtFechaI.Text = DateTime.Now.FirstDayOfMonth().ToShortDateString();
|
||||
txtFechaF.Text = DateTime.Now.ToShortDateString();
|
||||
DdlSubProyecto.DataSource = get_GlobalDTSubProyectosUsuarios(UsuarioActual.CveUsuario, -1, UsuarioActual.CveEmpresa);
|
||||
DdlSubProyecto.DataBind();
|
||||
|
||||
//Cargo Clasificaciones
|
||||
DdlClasificacion.DataSource = get_GlobalDTClasificaciones(UsuarioActual.CveEmpresa);
|
||||
DdlClasificacion.DataBind();
|
||||
|
||||
DdlClientes.setEsWebService(true);
|
||||
|
||||
}
|
||||
|
||||
private void Consulta()
|
||||
txtFechaI.Text = DateTime.Now.FirstDayOfMonth().ToShortDateString();
|
||||
{
|
||||
int tCveCliente = -1;
|
||||
}
|
||||
int tCveGrupo = -1;
|
||||
if (DdlClientes.SelectedValue.ToEntero() > 0) tCveCliente = DdlClientes.SelectedValue.ToEntero();
|
||||
if (DdlGrupo.SelectedValue.ToEntero() > 0) tCveGrupo = DdlGrupo.SelectedValue.ToEntero();
|
||||
|
||||
ClsInventarios ObjInv = new ClsInventarios();
|
||||
if (ObjInv.GetRepMovimientosSalida(txtFechaI.Text.ToDate(), txtFechaF.Text.ToDate(), DdlSubProyecto.SelectedValue.ToEntero(), tCveCliente, DdlClasificacion.SelectedValue.ToEntero(), DdlGrupo.SelectedValue.ToEntero(), UsuarioActual.CveEmpresa))
|
||||
{
|
||||
if (tCveGrupo == 1)
|
||||
GvDatos.DataSource = ObjInv.DtResultados;
|
||||
else
|
||||
GvGrupo.DataSource = ObjInv.DtResultados;
|
||||
}
|
||||
ObjInv.Dispose();
|
||||
GvDatos.DataBind();
|
||||
GvGrupo.DataBind();
|
||||
UpDatos.Update();
|
||||
|
||||
if (DdlGrupo.SelectedValue == "1")
|
||||
{
|
||||
TbDetalle.Visible = true;
|
||||
GvDatos.Visible = true;
|
||||
GvGrupo.Visible = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
TbDetalle.Visible = false;
|
||||
@@ -48,6 +80,25 @@ public partial class Inventarios_RepMovimientosSalida : ClsPaginas
|
||||
{
|
||||
if (e.Row.RowIndex == 0)
|
||||
{
|
||||
e.Row.Cells[0].Text = "Total";
|
||||
e.Row.CssClass = "Totales";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
protected void GvGrupo_RowDataBound(object sender, GridViewRowEventArgs e)
|
||||
{
|
||||
if (e.Row.RowType == DataControlRowType.DataRow)
|
||||
{
|
||||
if (e.Row.RowIndex == 0)
|
||||
{
|
||||
e.Row.Cells[0].Text = "Total";
|
||||
e.Row.CssClass = "Totales";
|
||||
}
|
||||
else
|
||||
{
|
||||
if (e.Row.DBCampo("Grupo2") == "" && e.Row.DBCampo("Grupo1") != "")
|
||||
{
|
||||
e.Row.CssClass = "SubTotales";
|
||||
}
|
||||
@@ -55,6 +106,14 @@ public partial class Inventarios_RepMovimientosSalida : ClsPaginas
|
||||
}
|
||||
}
|
||||
|
||||
public override void VerifyRenderingInServerForm(Control control)
|
||||
public override void VerifyRenderingInServerForm(Control control)
|
||||
{
|
||||
//base.VerifyRenderingInServerForm(control);
|
||||
}
|
||||
|
||||
protected void LnkExcel_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (DdlGrupo.SelectedValue == "1")
|
||||
{
|
||||
GvDatos.ExportToExcelG("Movimientos de Salida", "Movimientos de Salida", UsuarioActual);
|
||||
}
|
||||
Reference in New Issue
Block a user