Example #1
0
        private void Listar_Reporte()
        {
            brReportes br = new brReportes();
            string     BeginDate, EndDate, Mant = "";

            BeginDate = txtFechaIni.Text;
            EndDate   = txtFechaFin.Text;

            foreach (GridViewRow row in gvTipoMantenimiento.Rows)
            {
                CheckBox check = row.FindControl("chkSel") as CheckBox;

                beTipoMant P        = new beTipoMant();
                string     strError = string.Empty;

                if (check.Checked)
                {
                    Mant = Mant + row.Cells[0].Text + ",";
                }
            }
            int lmant = Mant.Length;

            if (lmant > 0)
            {
                Mant = Mant.Substring(0, lmant - 1);
            }

            List <beReportes> lbeReportes = br.ListarReporte_Estadistico_xTrabajoEntidad(BeginDate, EndDate, txtProveedor.Text.ToString(), Mant);

            gvReporte.DataSource = lbeReportes;
            gvReporte.DataBind();
        }
Example #2
0
        protected void btnExportar_Click(object sender, ImageClickEventArgs e)
        {
            brReportes br = new brReportes();
            string     BeginDate, EndDate, Mant = "";

            BeginDate = txtFechaIni.Text;
            EndDate   = txtFechaFin.Text;

            foreach (GridViewRow row in gvTipoMantenimiento.Rows)
            {
                CheckBox check = row.FindControl("chkSel") as CheckBox;

                beTipoMant P        = new beTipoMant();
                string     strError = string.Empty;

                if (check.Checked)
                {
                    Mant = Mant + row.Cells[0].Text + ",";
                }
            }
            int lmant = Mant.Length;

            if (lmant > 0)
            {
                Mant = Mant.Substring(0, lmant - 1);
            }

            Exportar(BeginDate, EndDate, txtProveedor.Text.ToString(), Mant);
        }
Example #3
0
        protected void btnExportar_Click(object sender, ImageClickEventArgs e)
        {
            brReportes br = new brReportes();
            string     BeginDate, EndDate;

            BeginDate = txtFechaIni.Text;
            EndDate   = txtFechaFin.Text;

            Exportar(BeginDate, EndDate, txtTecnico.Text.ToString());
        }
Example #4
0
        private void Listar_Reporte()
        {
            brReportes br = new brReportes();
            string     BeginDate, EndDate;

            BeginDate = txtFechaIni.Text;
            EndDate   = txtFechaFin.Text;

            List <beReportes> lbeReportes = br.ListarReporte_xOficinaEntidad(BeginDate, EndDate, txtCsid.Text.ToString());

            gvReporte.DataSource = lbeReportes;
            gvReporte.DataBind();
        }
Example #5
0
        private void Listar_Reporte()
        {
            brReportes br = new brReportes();
            string     BeginDate, EndDate;

            BeginDate = txtFechaIni.Text;
            EndDate   = txtFechaFin.Text;

            List <beReportes> lbeReportes = br.ListarReporte_Estadistico_RutaTrab(BeginDate, EndDate, txtProveedor.Text.ToString(), txtTecnico.Text.ToString(), ddlRuta.SelectedValue.ToString());

            gvReporte.DataSource = lbeReportes;
            gvReporte.DataBind();
        }
        private void Listar_Reporte()
        {
            brReportes br = new brReportes();
            string     BeginDate, EndDate;

            BeginDate = txtFechaIni.Text;
            EndDate   = txtFechaFin.Text;

            List <beReportes> lbeReportes = br.ListarReporte_HorasTrabxTecnico(BeginDate, EndDate, txtProveedor.Text.ToString(), txtTecnico.Text.ToString());

            gvReporte.DataSource = lbeReportes;
            gvReporte.DataBind();
        }
Example #7
0
        private void Listar_Reporte()
        {
            brReportes br = new brReportes();
            string     BeginDate, EndDate;

            BeginDate = txtFechaIni.Text;
            EndDate   = txtFechaFin.Text;

            List <beReportes> lbeReportes = br.ListarReporte_Estadistico_SalidasNoReportadas(BeginDate, EndDate, txtTecnico.Text.ToString());

            gvReporte.DataSource = lbeReportes;
            gvReporte.DataBind();
        }
        private void Listar_Reporte()
        {
            brReportes br = new brReportes();
            string     BeginDate, EndDate, Mant = "", Check = "";

            BeginDate = txtFechaIni.Text;
            EndDate   = txtFechaFin.Text;

            if (chkComent.Checked == true)
            {
                Check = "1";
            }

            foreach (GridViewRow row in gvTipoMantenimiento.Rows)
            {
                CheckBox check = row.FindControl("chkSel") as CheckBox;

                beTipoMant P        = new beTipoMant();
                string     strError = string.Empty;

                if (check.Checked)
                {
                    Mant = Mant + row.Cells[0].Text + ",";
                }
            }
            int lmant = Mant.Length;

            if (lmant > 0)
            {
                Mant = Mant.Substring(0, lmant - 1);
            }

            List <beReportes> lbeReportes = br.ListarReporte_FichaPxT(BeginDate, EndDate, txtProveedor.Text.ToString(), txtTecnico.Text.ToString(), Mant, txtCsid.Text.ToString(), Check, ddlEstado.SelectedValue.ToString());

            gvReporte.DataSource = lbeReportes;
            gvReporte.DataBind();
        }