Пример #1
0
 public Login(IAccesoSistema accesoSistema, IUsuarioServicio usuarioServicio, ICajaServicio cajaServicio)
 {
     _accesoSistema   = accesoSistema;
     _usuarioServicio = usuarioServicio;
     _cajaServicio    = cajaServicio;
     CantidadFallos   = 0;
 }
Пример #2
0
        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();
        }
Пример #3
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();
        }
Пример #4
0
        public Principal(IClienteServicio clienteServicio,
                         IArticuloServicio articuloServicio,
                         IConfiguracionServicio configuracionServicio,
                         ICajaServicio cajaServicio)
        {
            InitializeComponent();

            _articuloServicio      = articuloServicio;
            _ConfiguracionServicio = configuracionServicio;

            _cajaServicio    = cajaServicio;
            _clienteServicio = clienteServicio;

            lblApellido.Text = Identidad.Apellido;
            lblNombre.Text   = Identidad.Nombre;

            imgFotoUsuarioLogin.Image = Imagen.ConvertirImagen(Identidad.Foto);

            Perfil();

            //
            leftBorderBtn      = new Panel();
            leftBorderBtn.Size = new Size(8, 76);
            panel_lateral.Controls.Add(leftBorderBtn);
            //
        }
Пример #5
0
 public FormularioCaja()
 {
     InitializeComponent();
     _cajaServicio = new CajaServicio();
     ActualizarMontoSistemalbl();
     panel1.BackgroundImage = Presentacion.Constantes.Imagenes.ImagenCaja;
 }
Пример #6
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 _00040_CierreCaja(long cajaId)
        {
            InitializeComponent();

            _cajaId       = cajaId;
            _cajaServicio = ObjectFactory.GetInstance <ICajaServicio>();
            CargarDatos(cajaId);
        }
        public FormularioAbrirCaja()
        {
            InitializeComponent();

            _cajaServicio = new CajaServicio();

            nombreUsuarioLbl.Text = DatosSistema.NombreUsuario;
        }
        public _00039_AperturaCaja(ICajaServicio cajaServicio, IConfiguracionServicio configuracionServicio)
        {
            InitializeComponent();
            _cajaServicio          = cajaServicio;
            _configuracionServicio = configuracionServicio;

            DoubleBuffered = true;
        }
Пример #10
0
        public FormularioArqueos()
        {
            InitializeComponent();

            _cajaServicio = new CajaServicio();

            dgvGrilla.DataSource = _cajaServicio.ObtenerTodas();

            resetear_grilla();
        }
 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();
 }
Пример #12
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();
        }
Пример #13
0
        public Caja()
        {
            InitializeComponent();

            _cajaServicio       = new CajaServicio();
            ckbApertura.Enabled = false;

            VerCaja();

            CargarImageEnGeneral();
        }
Пример #14
0
 public VentaController(IArticuloServicio articuloServicio, IListaPrecioServicio listaPrecioServicio,
                        IClienteServicio clienteServicio, IComprobanteServicio comprobanteServicio,
                        IDetalleComprobanteServicio detalleComprobanteServicio, ICajaServicio cajaServicio)
 {
     _articuloServicio           = articuloServicio;
     _listaPrecioServicio        = listaPrecioServicio;
     _clienteServicio            = clienteServicio;
     _comprobanteServicio        = comprobanteServicio;
     _detalleComprobanteServicio = detalleComprobanteServicio;
     _cajaServicio = cajaServicio;
 }
Пример #15
0
        public Principal(ICajaServicio cajaServicio)
        {
            InitializeComponent();
            this.DoubleBuffered = true;
            _cajaServicio       = cajaServicio;

            Verificacion();
            sidebar.Visible      = false;
            pBox.Cursor          = Cursors.Default;
            itemArticulo.Visible = false;
            itemCaja.Visible     = false;
        }
Пример #16
0
        public Unidad(PedidoDto pedidoDto)
        {
            InitializeComponent();

            pedido_Producto_Servicio = new Producto_Pedido_Servicio();
            producto       = new ProductoServicio();
            pedidoServicio = new PedidoServicio();
            cajaServicio   = new CajaServicio();

            Pedido = pedidoDto;

            VerDatos();
        }
Пример #17
0
        public CerrarCaja()
        {
            InitializeComponent();

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

            CargarDatos();

            var cajaAbierta = _detalleCajaServicio.BuscarCajaAbierta();

            dgvGrilla.DataSource = _detalleCajaServicio.BuscarDetalles(cajaAbierta);
            FormatearGrilla(dgvGrilla);
        }
        public _0044_AbrirCaja()
        {
            InitializeComponent();

            _cajaServicio = new CajaServicio();


            nudMontoApertura.Maximum = 9999999;
            nudMontoApertura.Minimum = 0;

            lblUsuario.Text    += NombreUsuarioLogueado;
            lblFecha.Text      += DateTime.Now.ToString();
            EstadoDeCajaAbierta = false;
        }
        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;
        }
Пример #20
0
        public Principal()
        {
            InitializeComponent();

            _cajaServicio        = new CajaServicio();
            clienteServicio      = new ClienteServicio();
            talleServicio        = new TalleServicio();
            tipoProductoServicio = new TipoProductoServicio();
            colegioServicio      = new ColegioServicio();
            negocioServicio      = new NegocioServicio();
            imageServicio        = new ImageServicio();

            DatosComercio();
            CargarImagenes();
            CargarImageEnGeneral();
        }
Пример #21
0
        public Historia(long id)
        {
            InitializeComponent();

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

            _CajaId = id;

            dgvGrilla.DataSource = _detalleCajaServicio.Lista(id);

            FormatearGrilla(dgvGrilla);

            Calculos();

            CargarImageEnGeneral();
        }
Пример #22
0
        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;
        }
        public _0045_CerrarCaja()
        {
            InitializeComponent();

            mesaServicio = new MesaServicio();
            cajaServicio = new CajaServicio();

            lblUsuario.Text     += NombreUsuarioLogueado;
            lblFechaCierre.Text += DateTime.Now.ToString();

            nudSistema.Maximum    = 99999999;
            nudSistema.Minimum    = -99999999;
            nudCierre.Maximum     = 99999999;
            nudCierre.Minimum     = -99999999;
            nudDiferencia.Maximum = 99999999;
            nudDiferencia.Minimum = -99999999;

            CargarDatos();
        }
Пример #24
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();
        }
Пример #25
0
        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;
        }
        public _00049_Kiosko()
        {
            InitializeComponent();

            _articuloServicio          = new ArticuloServicio();
            _usuarioServicio           = new UsuarioServicio();
            _clienteServicio           = new ClienteServicio();
            _empleadoServicio          = new EmpleadoServicio();
            _formaPagoServicio         = new FormaPagoServicio();
            _comprobanteKioskoServicio = new ComprobanteKioskoServicio();
            _cajaServicio         = new CajaServicio();
            _movimientoServicio   = new MovimientoServicio();
            _productoServicio     = new ProductoServicio();
            _comprobanteKioskoDto = new ComprobanteKioskoDto();
            _listaDetalles        = new List <DetalleComprobanteKioscoDto>();
            _listaPrecioServicio  = new ListaPrecioServicio();

            Inicializador();

            dgvGrilla.DataSource = _listaDetalles;

            FormatearGrilla(dgvGrilla);
        }
Пример #27
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();
        }
Пример #28
0
 public _00038_Caja(ICajaServicio cajaServicio)
 {
     InitializeComponent();
     _cajaServicio = cajaServicio;
 }
Пример #29
0
 public ComprobanteServicio(NpgsqlConnection db, IArticuloServicio articuloServicio, ICajaServicio cajaServicio)
 {
     _db = db;
     _articuloServicio = articuloServicio;
     _cajaServicio     = cajaServicio;
 }
Пример #30
0
        public AbrirCaja()
        {
            InitializeComponent();

            _cajaServicio = new CajaServicio();
        }