Ejemplo n.º 1
0
        private void btAbrirTurno_Click(object sender, EventArgs e)
        {
            try{
                corte         = new clCorte();
                corte.IdCorte = int.Parse(clConsultasCorte.SiguienteCorte());
                corte.Fecha   = DateTime.Today;
                corte.Cajero  = usuario.Nombre;
                corte.Turno   = cbTurnos.SelectedItem.ToString();
                corte.Total   = 0;
                fondo         = float.Parse(tbFondo.Text);

                clConsultasCorte.NuevoCorte(corte);
                btAbrirTurno.Enabled  = false;
                btCerrarTurno.Enabled = true;

                pnl_caja.Visible = true;
                pnl_caja.Enabled = true;

                corteActual   = corte;
                lbCajero.Text = lbCajero.Text + " " + corte.Cajero;
                lbTurno.Text  = lbTurno.Text + " " + corte.Turno;
                ventaNumero   = int.Parse(clConsultasVentas.SiguienteVenta());
                lbTicket.Text = lbTicket.Text + " " + ventaNumero;
                tbCodigoArt.Focus();

                lbFecha.Text = lbFecha.Text + DateTime.Now.Day + "-" + DateTime.Now.Month + "-" + DateTime.Now.Year;
                lbHora.Text  = lbHora.Text + DateTime.Now.Hour + ":" + DateTime.Now.Minute;
            }
            catch {
                MessageBox.Show("Error al Generar Corte!!!");
            }
        }
Ejemplo n.º 2
0
 public FINCORTE(clCorte corte, float fondo)
 {
     InitializeComponent();
     corte         = clConsultasCorte.ObtenerCorte(corte.IdCorte);
     lbFondo.Text  = lbFondo.Text + " $ " + fondo;
     lbVentas.Text = lbVentas.Text + " $ " + corte.Total;
     lbTotal.Text  = lbTotal.Text + " $ " + (fondo + corte.Total);
 }
Ejemplo n.º 3
0
        public CAJA(clCorte corte)
        {
            InitializeComponent();

            corteActual   = corte;
            lbCajero.Text = lbCajero.Text + " " + corte.Cajero;
            lbTurno.Text  = lbTurno.Text + " " + corte.Turno;
            ventaNumero   = int.Parse(clConsultasVentas.SiguienteVenta());
            lbTicket.Text = lbTicket.Text + " " + ventaNumero;
            tbCodigoArt.Focus();

            lbFecha.Text = lbFecha.Text + DateTime.Now.Day + "-" + DateTime.Now.Month + "-" + DateTime.Now.Year;
            lbHora.Text  = lbHora.Text + DateTime.Now.Hour + ":" + DateTime.Now.Minute;
        }
Ejemplo n.º 4
0
 private void btAbrirTurno_Click(object sender, EventArgs e)
 {
     try
     {
         corte         = new clCorte();
         corte.IdCorte = int.Parse(clConsultasCorte.SiguienteCorte());
         corte.Fecha   = DateTime.Today;
         corte.Cajero  = usuario.Nombre;
         corte.Turno   = cbTurnos.SelectedItem.ToString();
         corte.Total   = 0;
         fondo         = float.Parse(tbFondo.Text);
         //MessageBox.Show(corte.IdCorte+"  "+corte.Fecha+"  "+corte.Cajero+"  "+corte.Turno+"  "+corte.Total);
         clConsultasCorte.NuevoCorte(corte);
         btAbrirTurno.Enabled  = false;
         btCerrarTurno.Enabled = true;
         btEntrarCaja.Enabled  = true;
     }
     catch
     {
         MessageBox.Show("Error al Generar Corte!!!");
     }
 }