public ReporteRetirosForm(PuntoVentaLandingPage puntoVentaLandingPage)
 {
     InitializeComponent();
     this.fechaInicioDatePicker.MaxDate = System.DateTime.Now;
     this.fechaFinDatePicker.MaxDate = System.DateTime.Now;
     this.puntoVentaLandingPage = puntoVentaLandingPage;
 }
Example #2
0
        private void button2_Click(object sender, EventArgs e)
        {
            String username = usrNameTextBox.Text;
            String pwd = pwdTextBox.Text;

            this.entPersona = entUsuariosFrontController.validarUsuario(username, pwd);


            if (this.entPersona != null) {

                mainForm = new PuntoVentaLandingPage(this.entPersona);
                Console.WriteLine("User is valid");
                
                //Se registra la persona loggeada
                DominioAppConstantes.PERSONA_LOGEADA = this.entPersona;

                this.Hide();
                mainForm.Show();
                

            }else
            {
                Console.WriteLine("Invalid User =(");
                MessageBox.Show("Usuario o contraseña inválido", "Usuario o contraseña inválido");
            }

           

        }
        public NuevaVentaForm(EntComanda entComanda, PuntoVentaLandingPage puntoVentaLandingPage, String nombreComanda)
        {
            InitializeComponent();

            dgvVenta.DefaultCellStyle.Font = new Font("Arial", 12.00F, FontStyle.Regular);
            dgvVenta.RowTemplate.Height = 50;

            cargarProductos();
            cargarCombos();
            cargarBebidas();

            if(entComanda != null )
            {
                cargarComandaPrevia(entComanda.getListaProductos());
            }
            else
            {
                entComanda = new EntComanda();
                
            }

            this.puntoVentaLandingPage = puntoVentaLandingPage;
            this.entComanda = entComanda;
            this.nombreComanda = nombreComanda;
            nombreComandaLabel.Text = this.nombreComanda;
            this.entComanda.setNombreComanda(this.nombreComanda);
        }
        public ReporteVentasPorRangoDeFechas(PuntoVentaLandingPage puntoVentaLadingPage)
        {
            InitializeComponent();
            this.puntoVentaLadingPage = puntoVentaLadingPage;
            this.fechaInicialPicker1.MaxDate = System.DateTime.Now;
            this.fechaFinalPicker.MaxDate = System.DateTime.Now;
            //Método que carga los productos para seleccionar en el reporte de ventas
            cargarProductosVenta();

        }
        public CobrarComanda(EntComanda entComanda, NuevaVentaForm nuevaVentaForm, PuntoVentaLandingPage puntoVentaLandingPage)
        {
            InitializeComponent();

            this.nuevaVentaForm = nuevaVentaForm;
            this.puntoVentaLandingPage = puntoVentaLandingPage;
            //Se establece la comanda a ser pagada
            this.entComanda = entComanda;
            totalComandaLabel.Text = "$ " + this.entComanda.getCostoTotalProductos();
            tipoPagoListBox.Items.Add("Efectivo");
            this.tipoPagoListBox.SelectedIndex = 0;
            nombreComandaLabel.Text = this.entComanda.getNombreComanda();
            inicializaTipoOrden();
        }
 public ArqueoCajaForm(PuntoVentaLandingPage puntoVenaLandingPage )
 {
     InitializeComponent();
     this.puntoVenaLandingPage = puntoVenaLandingPage;
 }