Beispiel #1
0
 public void MostrarTicketRetiro(DataTable dt)
 {
     foreach (DataRow dr in dt.Rows)
     {
         Retiro frm = new Retiro(dr[0].ToString(), dr[1].ToString(), dr[2].ToString(), dr[3].ToString());
         frm.ShowDialog();
         ClearList();
     }
 }
Beispiel #2
0
        public void SubMensaje(int op, Mensaje msj)
        {
            switch (op)
            {
            case 0:
                if (msj.Correcto)
                {
                    this.Prioridad     = msj.Prioridad;
                    this.FirmaEmpleado = msj._Mensaje;
                }
                else
                {
                    loguin.ErrorConectar();
                }
                break;

            case 1:
                this.mensaje     = msj;
                dt_Clientes      = msj.dt_Clientes;
                dt_Productos     = msj.dt_Productos;
                this.IdRetiro    = msj.IdRetiro;
                this.N_Ticket    = msj.N_Ticket;
                this.CajaInicial = msj.Monto;
                this.CajaActual  = msj.Monto;
                loguin.setCaja(msj.Monto.ToString());
                break;

            case 2:
                this.mensaje     = msj;
                this.dt_Clientes = msj.dt_Clientes;
                break;

            case 4:
                this.mensaje     = msj;
                this.N_Ticket    = msj.N_Ticket;
                this.ticket.Text = N_Ticket.ToString();
                break;

            case 5:
                this.mensaje = msj;
                Retiro retiro = new Retiro(msj.Monto.ToString(), msj._Mensaje, msj.Empleado, msj.Hora);
                retiro.ShowDialog();
                break;

            case 6:
                this.mensaje = msj;
                Venta venta = new Venta(msj.N_Ticket, msj.dt_Venta, msj.Porcentaje, this, msj.Correcto, Ventas_F);
                venta.ShowDialog();
                break;

            case 7:
                this.mensaje  = msj;
                this.IdRetiro = msj.IdRetiro;
                break;

            case 8:
                this.mensaje = msj;
                cd.CargarTabla(msj.dt_Aux);
                break;

            case 9:
                this.mensaje = msj;
                Venta venta_ = new Venta(msj.dt_Venta, msj.Porcentaje, msj.N_Ticket);
                venta_.ShowDialog();
                break;
            }
        }