This commit is contained in:
JORGE LUIS CAUDILLO ESPARZA
2021-12-13 05:33:04 -07:00
parent a7a385ec4d
commit e0db97e3c7
19 changed files with 1189 additions and 292 deletions

View File

@@ -0,0 +1,70 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Extensiones;
public partial class Documentacion_TableroMaterialidadDetalle : ClsPaginas
{
#region "Propiedades"
public int CveCliente
{
get { return ViewState["CveCliente"] != null ? ViewState["CveCliente"].ToString().ToEntero() : 0; }
set { ViewState["CveCliente"] = value; }
}
public int anio
{
get { return ViewState["anio"] != null ? ViewState["anio"].ToString().ToEntero() : 0; }
set { ViewState["anio"] = value; }
}
public int mes
{
get { return ViewState["mes"] != null ? ViewState["mes"].ToString().ToEntero() : 0; }
set { ViewState["mes"] = value; }
}
#endregion
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
if (Request["CveCliente"] != null && Request["CveCliente"].ToString().ToEntero() > 0)
{
CveCliente = Request["CveCliente"].ToString().ToEntero();
DdlCliente.SelectedValue = CveCliente.ToString();
}
if (Request["anio"] != null && Request["anio"].ToString().ToEntero() > 0)
{
anio = Request["anio"].ToString().ToEntero();
Txtanio.Text = anio.ToString();
}
if (Request["mes"] != null && Request["mes"].ToString().ToEntero() > 0)
{
mes = Request["mes"].ToString().ToEntero();
ddlMes.SelectedValueExist(mes.ToString());
}
cargadatos();
}
}
public void cargadatos()
{
using (ClsEdocumentacion edoc = new ClsEdocumentacion())
{
if (edoc.TableroMaterialidadDetalleGET(UsuarioActual.CveEmpresa, (anio = Txtanio.Text.ToEntero()), (mes = ddlMes.SelectedValue.ToEntero()), CveCliente) && edoc.DSResultados.Tables.Count > 0)
{
GVData.DataSource = edoc.DSResultados.Tables[0];
GVData.DataBind();
}
}
}
protected void BtnConsultar_Click(object sender, EventArgs e)
{
cargadatos();
}
}