示例#1
0
        private void tarjeta_Click(object sender, EventArgs e)
        {
            // Marcar el ticket como pagado
            API.Comandodb("UPDATE Tickets SET Pagado = 'Tarjeta' WHERE id = " + idlabel.Text);

            pictureBox13.Visible = false;
            tarjeta.Visible      = false;
            label1.Visible       = true;
            Application.DoEvents();

            imprimirTicket(idlabel.Text);

            //Cerrar las ventanas y abrir un nuevo ticket
            if (API.LeerLineaEspecificaArchivo(_conf, 8) == "nuevo")
            {
                // Abrir Nuevo Ticket
                Venta.CerrarVentanaVenta();
                this.Close();
                SeleccionEmpleado.Inicio();
            }
            else
            {
                VentanaPrincipal v = new VentanaPrincipal();
                Venta.CerrarVentanaVenta();
                v.Show();
                this.Close();
            }
        }
示例#2
0
        internal static void Inicio()
        {
            int lineastot = API.TotalLineasDB("Usuarios");

            if (lineastot == 1)
            {
                Venta v = new Venta();
                v.asignarEmpleado(API.ComandodbConSalida("SELECT Nombre FROM Usuarios"));
                v.Show();
            }
            else
            {
                SeleccionEmpleado s = new SeleccionEmpleado();
                s.Show();
            }
        }
示例#3
0
 private void nuevoticketbtn_Click(object sender, EventArgs e)
 {
     Hide();
     SeleccionEmpleado.Inicio();
 }
示例#4
0
 private void iniciarimagen_Click(object sender, EventArgs e)
 {
     Hide();
     SeleccionEmpleado.Inicio();
 }