public EmpleadoLookUp(IEmpleadoServicio empleadoServicio,
                       IUsuarioServicio usuarioServicio)
 {
     InitializeComponent();
     _empleadoServicio = empleadoServicio;
     _usuarioServicio  = usuarioServicio;
 }
        public FormularioEmpleadoABM(TipoOperacion tipoOperacion, long?entidadId = null)
            : base(tipoOperacion, entidadId)
        {
            InitializeComponent();

            _empleadoServicio  = new EmpleadoServicio();
            _provinciaServicio = new ProvinciaServicio();
            _localidadServicio = new LocalidadServicio();

            dtpFechaIngreso.MaxDate    = DateTime.Now.AddDays(1);
            dtpFechaNacimiento.MaxDate = DateTime.Now.AddDays(1);

            if (tipoOperacion == TipoOperacion.Eliminar || tipoOperacion == TipoOperacion.Modificar)
            {
                CargarDatos(entidadId);
            }

            if (tipoOperacion == TipoOperacion.Eliminar)
            {
                DesactivarControles(this);
            }

            AgregarControlesObligatorios(txtApellido, "Apellido");
            AgregarControlesObligatorios(txtNombre, "Nombre");
            AgregarControlesObligatorios(nudLegajo, "Legajo");
            AgregarControlesObligatorios(txtDni, "Dni");
            AgregarControlesObligatorios(txtTelefono, "Telefono");
            AgregarControlesObligatorios(txtCuil, "Cuil");
            AgregarControlesObligatorios(txtEmail, "Email");
            AgregarControlesObligatorios(txtCalle, "Calle");
            AgregarControlesObligatorios(txtNumero, "Numero");
            AgregarControlesObligatorios(cmbLocalidad, "Localidad");
            AgregarControlesObligatorios(cmbProvincia, "Provincia");
        }
        public _00002_ABM_Empleados(TipoOp tipoOperacion, long?entidadId = null)
            : base(tipoOperacion, entidadId)
        {
            InitializeComponent();
            _categoriaServicio = new CategoriaServicio();
            _empleadoServicio  = new EmpleadoServicio();
            _provinciaServicio = new ProvinciaServicio();
            _localidadServicio = new LocalidadServicio();

            Validaciones();
            if (tipoOperacion == TipoOp.Eliminar || tipoOperacion == TipoOp.Modificar)
            {
                CargarDatos(entidadId);
            }

            if (tipoOperacion == TipoOp.Eliminar)
            {
                DesactivarControles(this);
            }

            AsignarEventoEnterLeave(this);

            AgregarControlesObligatorios(nudLegajo, "Legajo");
            AgregarControlesObligatorios(txtApellido, "Apellido");
            AgregarControlesObligatorios(txtNombre, "Nombre");
            AgregarControlesObligatorios(txtDni, "DNI");
            AgregarControlesObligatorios(txtCuil, "CUIL");
            AgregarControlesObligatorios(cmbLocalidad, "Localidad");
            AgregarControlesObligatorios(cmbProvincia, "Provincia");
            AgregarControlesObligatorios(txtEmail, "E-Mail");
            AgregarControlesObligatorios(txtCalle, "Calle");

            Inicializador(entidadId);
        }
示例#4
0
        public _0010_VentaDelivery(ClienteDto Cliente, long EmpleadoId)
        {
            InitializeComponent();

            _clienteSeleccionado    = Cliente;
            _empleadoSeleccionadoId = EmpleadoId;
            _comprobante            = new ComprobanteDeliveryDto();
            _productoServicio       = new ProductoServicio();
            _productoSeleccionado   = new ComprobanteDeliveryDetalleDto();
            _empleadoServicio       = new EmpleadoServicio();
            _clienteServicio        = new ClienteServicio();
            _comprobanteDelivery    = new ComprobanteDeliveryServicio();
            _listaPrecioServicio    = new ListaPrecioServicio();
            _realizoAlgunaOperacion = false;

            txtDescripcion.KeyPress += Validacion.NoSimbolos;
            txtDescripcion.KeyPress += Validacion.NoInyeccion;

            txtObservacion.KeyPress += Validacion.NoInyeccion;


            txtObservacion.Enter += txt_Enter;
            txtObservacion.Leave += txt_Leave;

            txtDescripcion.Enter += txt_Enter;
            txtDescripcion.Leave += txt_Leave;

            nudCantidad.Enter += txt_Enter;
            nudCantidad.Leave += txt_Leave;

            nudDescuento.Enter += txt_Enter;
            nudDescuento.Leave += txt_Leave;
        }
        public _00004_Clientes_ABM(TipoOperacion tipoOperacion, long?entidadId = null)
            : base(tipoOperacion, entidadId)
        {
            InitializeComponent();

            _clienteServicio   = new ClienteServicio();
            _provinciaServicio = new ProvinciaServicio();
            _localidadServicio = new LocalidadServicio();
            _empleadoServicio  = new EmpleadoServicio();

            if (tipoOperacion == TipoOperacion.Eliminar || tipoOperacion == TipoOperacion.Modificar)
            {
                CargarDatos(entidadId);
            }

            if (tipoOperacion == TipoOperacion.Eliminar)
            {
                DesactivarControles(this);
            }

            AsignarEventoEnterLeave(this);

            AgregarControlesObligatorios(txtApellido, "Apellido");
            AgregarControlesObligatorios(txtNombre, "Nombre");
            AgregarControlesObligatorios(txtDni, "DNI");
            AgregarControlesObligatorios(txtCelular, "Celular");
            AgregarControlesObligatorios(txtCalle, "Calle");
            AgregarControlesObligatorios(txtNumero, "Numero");

            nudCuentaCorriente.Minimum = 0;
            nudCuentaCorriente.Maximum = 9999999;


            Inicializador(entidadId);
        }
示例#6
0
 public LocalidadesController(ILocalidadServicio localidadServicio, IProvinciaServicio provinciaServicio,
                              IEmpleadoServicio empleadoServicio)
 {
     _localidadServicio = localidadServicio;
     _provinciaServicio = provinciaServicio;
     _empleadoServicio  = empleadoServicio;
 }
 public FormularioReservaConsulta(IMesaServicio mesaServicio, IReservaServicio reservaServicio, IClienteServicio clienteServicio, IEmpleadoServicio empleadoServicio)
 {
     _mesaServicio     = mesaServicio;
     _clienteServicio  = clienteServicio;
     _empleadoServicio = empleadoServicio;
     _reservaServicio  = reservaServicio;
 }
示例#8
0
 public _0030_ComprobanteMesa(IComprobanteSalonServicio comprobanteSalonServicio, IProductoServicio productoServicio,
                              IEmpleadoServicio empleadoServicio)
 {
     _comprobanteSalonServicio = comprobanteSalonServicio;
     _productoServicio         = productoServicio;
     _empleadoServicio         = empleadoServicio;
 }
        public FormularioReservaABM(TipoOperacion tipoOperacion, long?entidadId = null)
            : base(tipoOperacion, entidadId)
        {
            InitializeComponent();

            _clienteServicio  = new ClienteServicio();
            _salonServicio    = new SalonServicio();
            _mesaServicio     = new MesaServicio();
            _reservaServicio  = new ReservaServicio();
            _empleadoServicio = new EmpleadoServicio();

            lblUsuarioRegistra.Text = $"Usuario Registrando Reserva: {DatosSistema.NombreUsuario}";

            if (tipoOperacion == TipoOperacion.Eliminar || tipoOperacion == TipoOperacion.Modificar)
            {
                CargarDatos(entidadId);
            }

            if (tipoOperacion == TipoOperacion.Eliminar)
            {
                DesactivarControles(this);
            }

            AgregarControlesObligatorios(txtApynomb, "Apynom");
            AgregarControlesObligatorios(txtCelular, "Celular");
            AgregarControlesObligatorios(txtDNI, "DNI");
            AgregarControlesObligatorios(cmbMesa, "Mesa");
            AgregarControlesObligatorios(cmbSalon, "Salon");
            AgregarControlesObligatorios(nudSenia, "Senia");
        }
示例#10
0
        public EmpleadoController(IEmpleadoServicio empleadoRepositorio)
        {
            _empleadoRepositorio = empleadoRepositorio;
            var config = new MapperConfiguration(x => x.AddProfile <AutoMapper.MapperProfile>());

            _mapper = config.CreateMapper();
        }
        public _00050_Venta(
            IClienteServicio clienteServicio,
            IPuestoTrabajoServicio puestoTrabajoServicio,
            IListaPrecioServicio listaPrecioServicio,
            IConfiguracionServicio configuracionServicio,
            IEmpleadoServicio empleadoServicio,
            IContadorServicio contadorServicio,
            IArticuloServicio articuloServicio,
            IFacturaServicio facturaServicio)
        {
            InitializeComponent();
            this.DoubleBuffered = true;

            // -------------------------------------------- Servicios

            _clienteServicio       = clienteServicio;
            _puestoTrabajoServicio = puestoTrabajoServicio;
            _listaPrecioServicio   = listaPrecioServicio;
            _configuracionServicio = configuracionServicio;
            _empleadoServicio      = empleadoServicio;
            _contadorServicio      = contadorServicio;
            _articuloServicio      = articuloServicio;
            _facturaServicio       = facturaServicio;

            //----------------------------------------------

            dgvGrilla.AutoSizeRowsMode      = DataGridViewAutoSizeRowsMode.None;
            dgvGrilla.AllowUserToResizeRows = false;

            txtCodigo.KeyPress += delegate(object sender, KeyPressEventArgs args)
            {
                NoInyeccion(sender, args);
                NoLetras(sender, args);
            };

            // ----------------------------- Asignacion de Variables Privadas

            _clienteSeleccionado  = null;
            _vendedorSeleccionado = null;
            _articuloSeleccionado = null;
            _itemSeleccionado     = null;

            _permiteAgregarPorCantidad            = false;
            _articuloConPrecioAlternativo         = false;
            _autorizaPermisoListaPrecio           = false;
            _ingresoPorCodigoBascula              = false;
            _cambiarCantidadConErrorPorValidacion = false;

            _factura = new FacturaView();

            _configuracion = _configuracionServicio.Obtener();

            if (_configuracion == null)
            {
                MessageBox.Show("Antes de comenzar por favor cargue la configuracion del Sistema");
                Close();
            }
            // ----------------------------- Eventos
        }
示例#12
0
        public _30001_ConsultaEmpleado(IEmpleadoServicio empleadoServicio)
        {
            InitializeComponent();

            _empleadoServicio           = empleadoServicio;
            _ComprobanteSalonServicio   = new ComprobanteSalon();
            _ComproanteDeliveryServicio = new ComprobanteDeliveryServicio();
        }
 public _10002_Venta(IComprobanteSalon comprobanteSalon, IListaPrecioServicio listaPrecioServicio, IEmpleadoServicio empleadoServicio
                     , IProductoServicio productoServicio)
 {
     _comprobanteSalon    = comprobanteSalon;
     _listaPrecioServicio = listaPrecioServicio;
     _empleadoServicio    = empleadoServicio;
     _productoServicio    = productoServicio;
 }
示例#14
0
 public _100001_Cadeteria(IComprobanteDelivery comprobanteDelivery, IListaPrecioServicio listaPrecioServicio, IEmpleadoServicio EmpleadoServicio
                          , IProductoServicio productoServicio)
 {
     _comprobanteDelivery = comprobanteDelivery;
     _listaPrecioServicio = listaPrecioServicio;
     _EmpleadoServicio    = EmpleadoServicio;
     _productoServicio    = productoServicio;
 }
示例#15
0
 public EmpleadosController(IEmpleadoServicio empleadoServicio, IProvinciaServicio provinciaServicio,
                            ILocalidadServicio localidadServicio, IUsuarioServicio usuarioServicio)
 {
     _empleadoServicio  = empleadoServicio;
     _provinciaServicio = provinciaServicio;
     _localidadServicio = localidadServicio;
     _usuarioServicio   = usuarioServicio;
 }
 public x(IArticuloServicio articuloServicio, IPrecioServicio precioServicio,
          IComprobanteMesaServicio comprobanteMesa, IEmpleadoServicio empleadoServicio) : this()
 {
     _precioServicio   = precioServicio;
     _articuloServicio = articuloServicio;
     _mesaServicio     = comprobanteMesa;
     _empleadoServicio = empleadoServicio;
 }
示例#17
0
 public CombinarMesas(IMesaServicio mesaServicio, IComprobanteSalon comprobanteSalon, IEmpleadoServicio empleadoServicio,
                      IListaPrecioProducto listaPrecioServicio, IProductoServicio productoServicio)
 {
     _comprobanteSalon    = comprobanteSalon;
     _listaPrecioProducto = listaPrecioServicio;
     _productoServicio    = productoServicio;
     _mesaServicio        = mesaServicio;
     _empladoServicio     = empleadoServicio;
 }
示例#18
0
 public Principal()
 {
     _empleadoServicio = new EmpleadoServicio();
     InitializeComponent();
     if (Entidad.UsuarioId != 0)
     {
         controlPresentacion1.lblUsuario.Text  = Entidad.NombreUsuario;
         controlPresentacion1.pbEmpleado.Image = ImagenDb.Convertir_Bytes_Imagen(_empleadoServicio.ObtenerPorUsuarioId(Entidad.UsuarioId).Foto);
     }
 }
示例#19
0
 public FormularioEmpleadoConsulta(bool soloSeleccion)
 {
     InitializeComponent();
     this.soloSeleccion = soloSeleccion;
     if (soloSeleccion)
     {
         MessageBox.Show("Seleccione el empleado con doble clock");
     }
     _empleadoServicio = new EmpleadoServicio();
 }
        public _00008_Abm_Empleado(TipoOperacion tipoOperacion, long?entidadId = null)
            : base(tipoOperacion, entidadId)
        {
            InitializeComponent();

            _empleadoServicio     = ObjectFactory.GetInstance <IEmpleadoServicio>();
            _provinciaServicio    = ObjectFactory.GetInstance <IProvinciaServicio>();
            _departamentoServicio = ObjectFactory.GetInstance <IDepartamentoServicio>();
            _localidadServicio    = ObjectFactory.GetInstance <ILocalidadServicio>();
        }
示例#21
0
        public FormularioMovimiento()
        {
            InitializeComponent();

            cmbTipo.DataSource = Enum.GetValues(typeof(_TipoMov));

            _movimientoServicio = new MovimientoServicio();
            _empleadoServicio   = new EmpleadoServicio();
            Filtrar();
            ResetearGrilla(dgvGrilla);
        }
        public _00008_Abm_Empleado(TipoOperacion tipoOperacion, long?entidadId = null)
            : base(tipoOperacion, entidadId)
        {
            InitializeComponent();

            _empleadoServicio     = ObjectFactory.GetInstance <IEmpleadoServicio>();
            _provinciaServicio    = ObjectFactory.GetInstance <IProvinciaServicio>();
            _departamentoServicio = ObjectFactory.GetInstance <IDepartamentoServicio>();
            _localidadServicio    = ObjectFactory.GetInstance <ILocalidadServicio>();

            txtTelefono.KeyPress += delegate(object sender, KeyPressEventArgs args)
            {
                NoInyeccion(sender, args);
                NoSimbolos(sender, args);
                NoLetras(sender, args);
            };

            txtLegajo.KeyPress += delegate(object sender, KeyPressEventArgs args)
            {
                NoInyeccion(sender, args);
                NoSimbolos(sender, args);
                NoLetras(sender, args);
            };

            txtDni.KeyPress += delegate(object sender, KeyPressEventArgs args)
            {
                NoInyeccion(sender, args);
                NoSimbolos(sender, args);
                NoLetras(sender, args);
            };

            txtNombre.KeyPress += delegate(object sender, KeyPressEventArgs args)
            {
                NoInyeccion(sender, args);
                NoSimbolos(sender, args);
                NoNumeros(sender, args);
            };

            txtApellido.KeyPress += delegate(object sender, KeyPressEventArgs args)
            {
                NoInyeccion(sender, args);
                NoSimbolos(sender, args);
                NoNumeros(sender, args);
            };

            txtDomicilio.KeyPress += delegate(object sender, KeyPressEventArgs args)
            {
                NoInyeccion(sender, args);
                NoSimbolos(sender, args);
            };
        }
        public EmpleadoLookUp(IEmpleadoServicio empleadoServicio,
                              IUsuarioServicio usuarioServicio,
                              IUnidadDeTrabajo unidadDeTrabajo,
                              IConfiguracionServicio configuracionServicio)
        {
            InitializeComponent();
            _empleadoServicio      = empleadoServicio;
            _usuarioServicio       = usuarioServicio;
            _unidadDeTrabajo       = unidadDeTrabajo;
            _configuracionServicio = configuracionServicio;

            configuracion           = null;
            btnCrearUsuario.Visible = false;
        }
示例#24
0
 public ComprobanteDelivery(IDeliveryServicio deliveryServicio,
                            IArticuloServicio articuloServicio,
                            IEmpleadoServicio empleadoServicio,
                            IClienteServicio clienteServicio)
 {
     if (comprobante == null)
     {
         comprobante = new DeliveryDto();
     }
     _clienteServicio  = clienteServicio;
     _deliveryServicio = deliveryServicio;
     _empleadoServicio = empleadoServicio;
     _articuloServicio = articuloServicio;
 }
        public _20002_ABM_Empleado(string _tipoOperacion, long?_entidadId = default(long?))
            : base(_tipoOperacion, _entidadId)
        {
            InitializeComponent();
            _empleadoServicio = new EmpleadoServicio();

            nudLegajo.Enter += txt_Enter;
            nudLegajo.Leave += txt_Leave;

            txtNombre.Enter    += txt_Enter;
            txtNombre.Leave    += txt_Leave;
            txtNombre.KeyPress += Validacion.NoSimbolos;
            txtNombre.KeyPress += Validacion.NoInyeccion;
            txtNombre.KeyPress += Validacion.NoNumeros;

            txtApellido.Enter    += txt_Enter;
            txtApellido.Leave    += txt_Leave;
            txtApellido.KeyPress += Validacion.NoSimbolos;
            txtApellido.KeyPress += Validacion.NoInyeccion;
            txtApellido.KeyPress += Validacion.NoNumeros;

            txtTelefono.Enter    += txt_Enter;
            txtTelefono.Leave    += txt_Leave;
            txtTelefono.KeyPress += Validacion.NoSimbolos;
            txtTelefono.KeyPress += Validacion.NoInyeccion;
            txtTelefono.KeyPress += Validacion.NoLetras;

            txtCelular.Enter    += txt_Enter;
            txtCelular.Leave    += txt_Leave;
            txtCelular.KeyPress += Validacion.NoSimbolos;
            txtCelular.KeyPress += Validacion.NoInyeccion;
            txtCelular.KeyPress += Validacion.NoLetras;

            txtDni.Enter    += txt_Enter;
            txtDni.Leave    += txt_Leave;
            txtDni.KeyPress += Validacion.NoSimbolos;
            txtDni.KeyPress += Validacion.NoInyeccion;
            txtDni.KeyPress += Validacion.NoLetras;


            txtCuil.Enter    += txt_Enter;
            txtCuil.Leave    += txt_Leave;
            txtCuil.KeyPress += Validacion.NoSimbolos;
            txtCuil.KeyPress += Validacion.NoInyeccion;
            txtCuil.KeyPress += Validacion.NoLetras;

            Init(_tipoOperacion, entidadId);
        }
示例#26
0
        public _00050_Venta(IClienteServicio clienteServicio,
                            IPuestoTrabajoServicio puestoTrabajoServicio,
                            IListaPrecioServicio listaPrecioServicio,
                            IConfiguracionServicio configuracionServicio,
                            IEmpleadoServicio empleadoServicio,
                            IContadorServicio contadorServicio,
                            IArticuloServicio articuloServicio)
        {
            InitializeComponent();

            this.DoubleBuffered = true;

            // ================================  Servicios   ================================= //

            _clienteServicio       = clienteServicio;
            _puestoTrabajoServicio = puestoTrabajoServicio;
            _listaPrecioServicio   = listaPrecioServicio;
            _configuracionServicio = configuracionServicio;
            _empleadoServicio      = empleadoServicio;
            _contadorServicio      = contadorServicio;
            _articuloServicio      = articuloServicio;

            // =============================================================================== //

            dgvGrilla.AutoSizeRowsMode      = DataGridViewAutoSizeRowsMode.None;
            dgvGrilla.AllowUserToResizeRows = false;

            // =================  Asignacion de Variables Privadas   ========================= //
            _clienteSeleccionado  = null;
            _vendedorSeleccionado = null;
            _articuloSeleccionado = null;
            _itemseleccionado     = null;

            _permiteAgregarPorCantidad    = false;
            _articuloConPrecioAlternativo = false;
            _autorizaPermisoListaPrecio   = false;
            _ingresoPorCodigoBascula      = false;

            _factura = new FacturaView();

            _configuracion = _configuracionServicio.Obtener();

            if (_configuracion == null)
            {
                MessageBox.Show("Antes de comenzar por favor cargue la configuracion del Sistema");
                Close();
            }
        }
示例#27
0
        public _00011_Usuario(IUsuarioServicio usuarioServicio,
                              IEmpleadoServicio empleadoServicio,
                              IUnidadDeTrabajo unidadDeTrabajo,
                              IConfiguracionServicio configuracionServicio,
                              IMailServicio mailCliente)
        {
            InitializeComponent();
            _usuarioServicio       = usuarioServicio;
            _empleadoServicio      = empleadoServicio;
            _unidadDeTrabajo       = unidadDeTrabajo;
            _configuracionServicio = configuracionServicio;

            _mailCliente = mailCliente;

            configuracion = null;
        }
示例#28
0
        public Clientes_Cadete_LookUp()
        {
            InitializeComponent();

            _clienteServicio         = new ClienteServicio();
            _comprobanteDelivery     = new ComprobanteDeliveryServicio();
            _EmpleadoServicio        = new EmpleadoServicio();
            _CuentaCorrienteServicio = new CuentaCorrienteServicio();
            RealizoAlgunaOperacion   = false;

            txtBuscar.KeyPress += Validacion.NoInyeccion;

            txtBuscar.Enter += txt_Enter;
            txtBuscar.Leave += txt_Leave;

            this.lblUsuarioLogin.Text = $"Usuario: {Identidad.Empleado}";
            lblUsuarioLogin.Image     = Constante.ImagenControl.Usuario;
        }
示例#29
0
        public _10005_Reservar_Mesa(long Id)
        {
            InitializeComponent();

            _mesaId           = Id;
            _reservaServicio  = new ReservaServicio();
            _clienteServicio  = new ClienteServicio();
            _empleadoServicio = new EmpleadoServicio();
            _mesaServicio     = new MesaServicio();

            PoblarComboBox(cmbCliente, _clienteServicio.ObtenerClientesDesocupadosSinFiltro(), "ApyNom", "Id");
            PoblarComboBox(cmbMozo, _empleadoServicio.obtenerMozos(DAL.TipoEmpleado.Mozo), "ApyNom", "Id");

            RealizoAlgunaOperacion = false;

            this.lblUsuarioLogin.Text = $"Usuario: {Identidad.Empleado}";
            lblUsuarioLogin.Image     = Constante.ImagenControl.Usuario;
        }
示例#30
0
        public _10003_Cliente_Mozo_Lookup(long MesaId)
        {
            InitializeComponent();

            _clienteServicio         = new ClienteServicio();
            _comprobanteSalon        = new ComprobanteSalon();
            _EmpleadoServicio        = new EmpleadoServicio();
            _CuentaCorrienteServicio = new CuentaCorrienteServicio();
            _mesaId = MesaId;
            RealizoAlgunaOperacion = false;
            FacturoLaVenta         = false;

            txtBuscar.KeyPress += Validacion.NoInyeccion;
            txtBuscar.KeyPress += Validacion.NoSimbolos;

            txtBuscar.Enter += txt_Enter;
            txtBuscar.Leave += txt_Leave;

            this.lblUsuarioLogin.Text = $"Usuario: {Identidad.Empleado}";
            lblUsuarioLogin.Image     = Constante.ImagenControl.Usuario;
        }