Beispiel #1
0
        public Venta()
        {
            InitializeComponent();

            productoServicio    = new ProductoServicio();
            producto_vent       = new Producto_Venta_Servicio();
            ventaServicio       = new VentaServicio();
            producto            = new ProductoDto();
            detalleCajaServicio = new DetalleCajaServicio();
            cajaServicio        = new CajaServicio();
            clienteServicio     = new ClienteServicio();
            talleServicio       = new TalleServicio();

            CargarTalle();

            ListaVenta  = new List <VentaDto2>();
            ListaCtaCte = new List <Producto_Venta_Dto>();
            ventaDto    = new VentaDto();

            ConsumidorFinall();

            CargarGrilla(ListaVenta);

            btnSeleccionProducto.Select();

            CargarImageEnGeneral();
        }
 public _10011_PAgoCtaCte(IOperacionServicio operacionServicio, IDetalleCajaServicio cajaServicio, ICuentaCorrienteServicio cuentaCorrienteServicio)
 {
     _operacionServicio       = operacionServicio;
     _cajaServicio            = cajaServicio;
     _cuentaCorrienteServicio = cuentaCorrienteServicio;
     RealizoOperacion         = false;
 }
        public AgregarProductos(long pedidoId, bool semaforo)
        {
            InitializeComponent();

            productoServicio         = new ProductoServicio();
            producto_vent            = new Producto_Venta_Servicio();
            ventaServicio            = new VentaServicio();
            detalleCajaServicio      = new DetalleCajaServicio();
            cajaServicio             = new CajaServicio();
            clienteServicio          = new ClienteServicio();
            talleServicio            = new TalleServicio();
            pedidoServicio           = new PedidoServicio();
            producto_Dato_Servicio   = new Producto_Dato_Servicio();
            producto_Pedido_Servicio = new Producto_Pedido_Servicio();
            ctaCteServicio           = new CtaCteServicio();

            producto   = new ProductoDto();
            ListaVenta = new List <VentaDto2>();
            ventaDto   = new VentaDto();

            _Semaforo = semaforo;

            _PedidoId  = pedidoId;
            _Pedido    = pedidoServicio.BuscarIDPedidos(pedidoId);
            _clienteId = _Pedido.ClienteId;
            Bandera    = false;

            CargarTalle();
            CargarDatos();
            CargarGrilla(ListaVenta);

            CargarImageEnGeneral();
        }
 public FormularioComprobanteMesa(IComprobanteSalonServicio comprobanteSalonServicio,
                                  IProductoServicio productoServicio,
                                  IArticuloServicio articuloServicio,
                                  IMozoServicio mozoServicio,
                                  IMovimientoServicio movimientoServicio,
                                  IDetalleCajaServicio detalleCajaServicio,
                                  IMesaServicio mesaServicio,
                                  IClienteServicio clienteServicio,
                                  IFormaPagoServicio formaPagoServicio,
                                  IBancoServicio bancoServicio,
                                  ITarjetaServicio tarjetaServicio,
                                  IPlanTarjetaServicio planTarjetaServicio)
 {
     _comprobanteSalonServicio = comprobanteSalonServicio;
     _productoServicio         = productoServicio;
     _articuloServicio         = articuloServicio;
     _mozoServicio             = mozoServicio;
     _movimientoServicio       = movimientoServicio;
     _detalleCajaServicio      = detalleCajaServicio;
     _mesaServicio             = mesaServicio;
     _clienteServicio          = clienteServicio;
     _formaPagoServicio        = formaPagoServicio;
     _bancoServicio            = bancoServicio;
     _tarjetaServicio          = tarjetaServicio;
     _planTarjetaServicio      = planTarjetaServicio;
 }
Beispiel #5
0
        public PedidoInfo(long pedidoId, AccesoDatos.EstadoPedido estado)
        {
            InitializeComponent();

            producto_Pedido_Servicio = new Producto_Pedido_Servicio();
            pedidoServicio           = new PedidoServicio();
            productoServicio         = new ProductoServicio();
            cajaServicio             = new CajaServicio();
            detalleCajaServicio      = new DetalleCajaServicio();
            ctaCteServicio           = new CtaCteServicio();
            ventaServicio            = new VentaServicio();
            producto_Dato_Servicio   = new Producto_Dato_Servicio();

            list = new List <VentaDto2>();

            var _Pedido = pedidoServicio.Buscar(pedidoId);

            Estado = estado;

            PedidoId = pedidoId;

            Datos(pedidoId);

            Esquema(pedidoId);

            lblVendido.Visible = false;

            if (_Pedido.Proceso == AccesoDatos.Proceso.InicioPedido)
            {
                btnTerminar.Visible = false;
            }
            else
            {
                if (_Pedido.Proceso == AccesoDatos.Proceso.EsperandoRetiro)
                {
                    btnTerminar.Visible         = true;
                    btnAgregarProductos.Visible = true;
                }
                else
                {
                    btnTerminar.Visible = false;
                    lblVendido.Visible  = true;
                    btnVolverPedidoNoRetirado.Visible     = true;
                    btnAgregarProductos.Visible           = false;
                    btnEliminarPedidoSeleccionado.Visible = false;
                }
            }

            if (_Pedido.EstaEliminado)
            {
                lblEliminado.Visible = true;
                btnGuardar.Visible   = false;
                btnEliminar.Visible  = false;
            }

            SiNoHayProductos();

            CargarImageEnGeneral();
        }
        public FormularioDetalleCaja()
        {
            InitializeComponent();

            _detalleCajaServicio = new DetalleCajaServicio();

            Filtrar(true);
        }
Beispiel #7
0
        public FormularioAgregarCtaCte()
        {
            InitializeComponent();

            _clienteServicio     = new ClienteServicio();
            _detalleCajaServicio = new DetalleCajaServicio();
            cliente = new ClienteDTO();
            Bandera = false;
        }
 public FormaPagoDelivery(ICuentaCorrienteServicio cuentaCorrienteServicio,
                          IFormaPago formaPagoServicio, IDetalleCajaServicio detalleCajaServicio, IDeliveryServicio deliveryServicio) : this()
 {
     _formaPagoServicio       = formaPagoServicio;
     _detalleCajaServicio     = detalleCajaServicio;
     _deliveryServicio        = deliveryServicio;
     _cuentaCorrienteServicio = cuentaCorrienteServicio;
     _pago1 = 0;
     _pago2 = 0;
 }
 public _00044_AbrirCaja()
 {
     InitializeComponent();
     btnAbrirCaja.Image         = Constantes.ImagenesSistema.Caja;
     btnSalir.Image             = Constantes.ImagenesSistema.Salir;
     menuAccesoRapido.BackColor = Constantes.Color.ColorMenu;
     _cajaServicio        = new CajaServicio();
     _detalleCajaServicio = new DetalleCajaServicio();
     Inicializar();
 }
 public FormaPagoCompra(ICuentaCorrienteServicio cuentaCorrienteServicio,
                        IFormaPago formaPagoServicio, IDetalleCajaServicio detalleCajaServicio, IComprobanteCompraServicio comprobanteCompraServicio) : this()
 {
     _formaPagoServicio         = formaPagoServicio;
     _detalleCajaServicio       = detalleCajaServicio;
     _comprobanteCompraServicio = comprobanteCompraServicio;
     _cuentaCorrienteServicio   = cuentaCorrienteServicio;
     _pago1 = 0;
     _pago2 = 0;
 }
Beispiel #11
0
 public FormaPagoKiosco(ICuentaCorrienteServicio cuentaCorrienteServicio,
                        IFormaPago formaPagoServicio, IDetalleCajaServicio detalleCajaServicio, IKioscoServicio kioscoServicio) : this()
 {
     _formaPagoServicio       = formaPagoServicio;
     _detalleCajaServicio     = detalleCajaServicio;
     _kioscoServicio          = kioscoServicio;
     _cuentaCorrienteServicio = cuentaCorrienteServicio;
     _pago1 = 0;
     _pago2 = 0;
 }
Beispiel #12
0
        public Comprobante(List <VentaDto2> detalleCajaDtos, FechaDto fecha)
        {
            InitializeComponent();

            detalleCajaServicio = new DetalleCajaServicio();
            fechaDto            = new List <FechaDto>();

            ListaDetalle = detalleCajaDtos;

            fechaDto.Add(fecha);
        }
 public FormaPagoMesa(ICuentaCorrienteServicio cuentaCorrienteServicio,
                      IFormaPago formaPagoServicio, IDetalleCajaServicio detalleCajaServicio, IComprobanteMesaServicio comprobanteMesaServicio, IOperacionServicio operacionServicio) : this()
 {
     _formaPagoServicio       = formaPagoServicio;
     _operacionServicio       = operacionServicio;
     _detalleCajaServicio     = detalleCajaServicio;
     _comprobanteMesaServicio = comprobanteMesaServicio;
     _cuentaCorrienteServicio = cuentaCorrienteServicio;
     _pago1 = 0;
     _pago2 = 0;
 }
Beispiel #14
0
        public Pedido(List <VentaDto2> Lista, decimal total, string nombre, long clienteId, string descripcion)
        {
            InitializeComponent();

            pedidoServicio           = new PedidoServicio();
            producto_Pedido_Servicio = new Producto_Pedido_Servicio();
            productoServicio         = new ProductoServicio();
            cajaServicio             = new CajaServicio();
            detallCajaServicio       = new DetalleCajaServicio();
            ctaCteServicio           = new CtaCteServicio();
            talleServicio            = new TalleServicio();
            clienteServicio          = new ClienteServicio();
            ventaServicio            = new VentaServicio();
            producto_Dato_Servicio   = new Producto_Dato_Servicio();

            _Cliente = new ClienteDto();

            _Cliente = clienteServicio.ObtenerPorId(clienteId);

            cmbHorario.SelectedIndex = 0;

            txtDescripcion.Text = descripcion;

            if (nombre != null)
            {
                txtApellido.Text = _Cliente.Apellido;
                txtNombre.Text   = _Cliente.Nombre;
            }

            _total      = total;
            ListaVentas = Lista;

            nudAdelanto.Maximum = _total;

            ClienteId = clienteId;

            if (clienteId != 0)
            {
                if (clienteId != 1)
                {
                    txtApellido.Enabled = false;
                    txtNombre.Enabled   = false;
                }
                else
                {
                    txtApellido.Text = string.Empty;
                    txtNombre.Text   = string.Empty;

                    ckbCtaCte.Enabled = false;
                }
            }

            CargarImageEnGeneral();
        }
Beispiel #15
0
        public CerrarCaja()
        {
            InitializeComponent();

            _cajaServicio        = new CajaServicio();
            _detalleCajaServicio = new DetalleCajaServicio();

            CargarDatos();

            var cajaAbierta = _detalleCajaServicio.BuscarCajaAbierta();

            dgvGrilla.DataSource = _detalleCajaServicio.BuscarDetalles(cajaAbierta);
            FormatearGrilla(dgvGrilla);
        }
        public _0031_FacturacionMesa()
            : this(new ProductoServicio(), new ComprobanteSalonServicio(), new ClienteServicio(),
                   new UsuarioServicio())
        {
            InitializeComponent();

            _movimientoServicio  = new MovimientoServicio();
            _cajaServicio        = new CajaServicio();
            _mesaServicio        = new MesaServicio();
            _detalleCajaServicio = new DetalleCajaServicio();
            Inicializador(_mesaId);
            pnlCuentaCorriente.Enabled    = false;
            cmbTipoComprobante.DataSource = Enum.GetValues(typeof(TipoComprobante));
            txtUsuario.Text = NombreUsuarioLogueado;
        }
        public InsertarArreglo()
        {
            InitializeComponent();

            cajaServicio       = new CajaServicio();
            detallCajaServicio = new DetalleCajaServicio();
            ctaCteServicio     = new CtaCteServicio();
            clienteServicio    = new ClienteServicio();
            ventaServicio      = new VentaServicio();
            arregloServicio    = new ArregloServicio();

            _ClienteId = 1;

            ControlDeCliente();

            cmbHorario.SelectedIndex = 0;
        }
Beispiel #18
0
        public Historia(long id)
        {
            InitializeComponent();

            _detalleCajaServicio = new DetalleCajaServicio();
            cajaServicio         = new CajaServicio();

            _CajaId = id;

            dgvGrilla.DataSource = _detalleCajaServicio.Lista(id);

            FormatearGrilla(dgvGrilla);

            Calculos();

            CargarImageEnGeneral();
        }
Beispiel #19
0
        public DatosArreglo(long arregloId)
        {
            InitializeComponent();

            cajaServicio        = new CajaServicio();
            detalleCajaServicio = new DetalleCajaServicio();
            clienteServicio     = new ClienteServicio();
            ventaServicio       = new VentaServicio();
            arregloServicio     = new ArregloServicio();

            _ArregloId = arregloId;

            Datos();

            VerificarSiEstaPagado();
            VerificarSiEstaTerminado();

            CargarImageEnGeneral();
        }
Beispiel #20
0
        public FormularioIngresoArticulos()
        {
            InitializeComponent();

            _proveedorServicio    = new ProveedorServicio();
            _condicionIvaServicio = new CondicionIvaServicio();
            _articuloServicio     = new ArticuloServicio();
            _movimientoServicio   = new MovimientoServicio();
            _comprobanteServicio  = new ComprobanteServicio();
            _clienteServicio      = new ClienteServicio();
            _detalleCajaServicio  = new DetalleCajaServicio();
            detalles = new Dictionary <string, DetalleComprobanteDTO>();


            AgregarControlesObligatorios(txtContacto, "Contacto");
            AgregarControlesObligatorios(txtEmail, "Email");
            AgregarControlesObligatorios(txtRazonSocial, "RazonSocial");
            AgregarControlesObligatorios(txtTelefono, "Telefono");
            AgregarControlesObligatorios(txtCondicionIva, "CondicionIva");
        }
        public CtaCteClientePedido(long clienteId, decimal total, List <Producto_Venta_Dto> listProductoVenta, List <VentaDto2> listVentaDto2)
        {
            InitializeComponent();

            productoServicio         = new ProductoServicio();
            producto_vent            = new Producto_Venta_Servicio();
            producto_Pedido_Servicio = new Producto_Pedido_Servicio();
            clienteServicio          = new ClienteServicio();
            ctaCteServicio           = new CtaCteServicio();
            cajaServicio             = new CajaServicio();
            detallCajaServicio       = new DetalleCajaServicio();
            ventaServicio            = new VentaServicio();
            pedidoServicio           = new PedidoServicio();
            talleServicio            = new TalleServicio();

            ventaDto = new VentaDto();

            ListaVentasDto2 = listVentaDto2;
            ListaVenta      = listProductoVenta;

            var cliente = clienteServicio.ObtenerPorId(clienteId);

            cmbHorario.SelectedIndex = 0;

            txtApellido.Text = cliente.Apellido;
            txtNombre.Text   = cliente.Nombre;

            if (txtApellido.Text == "Consumidor Final")
            {
                txtApellido.Text = string.Empty;

                txtApellido.Enabled = true;
                txtNombre.Enabled   = true;
            }

            nudAdelanto.Maximum = total;

            _Total = total;

            _Cliente = cliente;
        }
Beispiel #22
0
        public CtaCte(long clienteId)
        {
            InitializeComponent();

            _clienteServicio    = new ClienteServicio();
            _ctaCteServicio     = new CtaCteServicio();
            detalleCajaServicio = new DetalleCajaServicio();
            cajaServicio        = new CajaServicio();
            pedidoServicio      = new PedidoServicio();

            _ClienteId  = clienteId;
            _clienteDto = _clienteServicio.ObtenerPorId(clienteId);

            lblNombre.Text    = $"{_clienteDto.Apellido} - {_clienteDto.Nombre}";
            lblDomicilio.Text = $"Direccion: {_clienteDto.Direccion}";

            DebeYTotal(_ctaCteServicio.Lista(_ClienteId));

            Grilla();
            Datos();

            CargarImageEnGeneral();
        }
        private long consumidorFinalId; // temporal, para no perder la referencia

        public FormularioKiosco()
        {
            InitializeComponent();

            _articuloServicio    = new ArticuloServicio();
            _productoServicio    = new ProductoServicio();
            _comprobanteServicio = new ComprobanteServicio();
            _detalleCajaServicio = new DetalleCajaServicio();
            _movimientoServicio  = new MovimientoServicio();
            _clienteServicio     = new ClienteServicio();
            _tarjetaServicio     = new TarjetaServicio();
            _planTarjetaServicio = new PlanTarjetaServicio();
            _empleadoServicio    = new EmpleadoServicio();
            _listaPrecioServicio = new ListaPrecioServicio();
            _formaPagoServicio   = new FormaPagoServicio();
            _bancoServicio       = new BancoServicio();

            detalles = new Dictionary <string, DetalleComprobanteDTO>();
            txtUsuarioEmpleado.Text = DatosSistema.NombreUsuario;
            SetConsumidorFinal();
            cargarCbTarjetaPlan();

            txtClaveTarjeta.KeyPress += Validacion.NoSimbolos;
            txtClaveTarjeta.KeyPress += Validacion.NoLetras;

            txtNumeroTarjeta.KeyPress += Validacion.NoSimbolos;
            txtNumeroTarjeta.KeyPress += Validacion.NoLetras;

            txtNumeroCheque.KeyPress += Validacion.NoSimbolos;
            txtNumeroCheque.KeyPress += Validacion.NoLetras;

            txtCodigoBarras.KeyPress += Validacion.NoSimbolos;
            txtCodigoBarras.KeyPress += Validacion.NoLetras;

            txtDniCliente.KeyPress += Validacion.NoSimbolos;
            txtDniCliente.KeyPress += Validacion.NoLetras;
        }
Beispiel #24
0
        public PedidoGuardado(long pedidoId, AccesoDatos.Proceso estado)
        {
            InitializeComponent();

            producto_Pedido_Servicio = new Producto_Pedido_Servicio();
            pedidoServicio           = new PedidoServicio();
            productoServicio         = new ProductoServicio();
            cajaServicio             = new CajaServicio();
            detalleCajaServicio      = new DetalleCajaServicio();
            ctaCteServicio           = new CtaCteServicio();
            ventaServicio            = new VentaServicio();

            list = new List <VentaDto2>();

            Estado = estado;

            var _Pedido = pedidoServicio.Buscar(pedidoId);

            PedidoId = pedidoId;

            Datos(pedidoId);

            Esquema(pedidoId);


            if (_Pedido.Proceso == AccesoDatos.Proceso.Retirado)
            {
                btnTerminar.Visible = false;
                ckbTarjeta.Visible  = false;
                ckbNormal.Visible   = false;
                lblVendido.Visible  = true;
                btnVolverPedidoNoRetirado.Visible     = true;
                btnAgregarProductos.Visible           = false;
                btnEliminarPedidoSeleccionado.Visible = false;
            }
            else
            {
                btnAgregarProductos.Visible = true;
            }

            if (_Pedido.EstaEliminado)
            {
                lblEliminado.Visible = true;
                btnGuardar.Visible   = false;
                btnEliminar.Visible  = false;

                txtNotas.Enabled = false;

                btnCobro.Visible   = false;
                btnRestar.Visible  = false;
                lblCobrar.Visible  = false;
                ckbNormal.Visible  = false;
                ckbTarjeta.Visible = false;
                nudCobro.Visible   = false;

                btnTerminar.Visible = false;

                btnAgregarProductos.Visible           = false;
                btnEliminarPedidoSeleccionado.Visible = false;
                btnVolverPedidoNoRetirado.Visible     = false;
            }

            if (dgvGrilla.RowCount == 0)
            {
                btnEliminarPedidoSeleccionado.Visible = false;
                btnAgregarProductos.Visible           = false;
                btnTerminar.Enabled = false;
            }

            CargarImageEnGeneral();
        }