using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI.WebControls; using Extensiones; using System.Data; using static Extensiones.ModExtensiones; using Microsoft.Reporting.WebForms; using System.Web.UI; public partial class Inventarios_RepMovimientosSalida : ClsPaginas { protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { InicializaValores(); } } private void InicializaValores() { txtFechaI.Text = DateTime.Now.FirstDayOfMonth().ToShortDateString(); txtFechaF.Text = DateTime.Now.ToShortDateString(); } private void Consulta() { ClsInventarios ObjInv = new ClsInventarios(); if (ObjInv.GetRepMovimientosSalida(txtFechaI.Text.ToDate(), txtFechaF.Text.ToDate(), UsuarioActual.CveEmpresa)) { GvDatos.DataSource = ObjInv.DtResultados; } ObjInv.Dispose(); GvDatos.DataBind(); UpDatos.Update(); } protected void BtnConsultar_Click(object sender, EventArgs e) { Consulta(); } protected void GvDatos_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"; } } } public override void VerifyRenderingInServerForm(Control control) { //base.VerifyRenderingInServerForm(control); } protected void LnkExcel_Click(object sender, EventArgs e) { GvDatos.ExportToExcelG("Movimientos de Salida", "Movimientos de Salida", UsuarioActual); } }