Example #1
0
        private void BuscarRecibo()
        {
            try
            {
                this.Height = 192;
                ReciboLogica rec = new ReciboLogica();
                rec.Usuario = _lsUser;
                if (!ReciboLogica.ConsultaPendientesRec(rec))
                {
                    return;
                }

                DataTable datos = ReciboLogica.ListarPendientesRec(rec);
                for (int x = 0; x < datos.Rows.Count; x++)
                {
                    string sRecibo = datos.Rows[x][0].ToString();
                    int    iCons   = Convert.ToInt32(datos.Rows[x][1].ToString());
                    if (ImprimeEtiqueta(sRecibo, iCons))
                    {
                        rec.Recibo = sRecibo;
                        rec.Consec = iCons;
                        ReciboLogica.ReciboPrint(rec);
                    }
                }
            }
            catch (Exception ex)
            {
                ex.ToString();
                throw;
            }
        }