コード例 #1
0
        public _00007_AsignarAgenteSubSector()
        {
            InitializeComponent();

            _agenteSubSectorServicio = new AgenteSubSectorServicio();

            _subSectorServicio = new SubSectorServicio();

            _sectorServicio = new SectorServicio();

            this.WindowState = FormWindowState.Maximized;

            this.imgBuscarNoAsignados.Image = PresentacionBase.Imagenes.BotonBuscar;
            this.imgBuscarAsignados.Image   = PresentacionBase.Imagenes.BotonBuscar;

            this.txtBuscarAsignados.Enter  += Control_Enter;
            this.txtBuscarNoAsignado.Enter += Control_Enter;

            this.txtBuscarAsignados.Leave  += Control_Leave;
            this.txtBuscarNoAsignado.Leave += Control_Leave;

            this.btnActualizar.Image = PresentacionBase.Imagenes.BotonActualizar;
            this.btnEjecutar.Image   = PresentacionBase.Imagenes.BotonEjecutar;
            this.btnSalir.Image      = PresentacionBase.Imagenes.BotonSalir;

            PoblarComboBox(this.cmbSector, _sectorServicio.ObtenerTodo(), "Descripcion");

            if (this.cmbSector.Items.Count > 0)
            {
                PoblarComboBox(this.cmbSubSector,
                               _subSectorServicio.ObtenerTodo(Convert.ToInt64(this.cmbSector.SelectedValue)),
                               "Descripcion");
            }
        }
コード例 #2
0
        public _00007_AsignarAgenteSubSector()
        {
            InitializeComponent();

            _agenteSubSectorServicio = new AgenteSubSectorServicio();

            _subSectorServicio = new SubSectorServicio();

            _sectorServicio = new SectorServicio();

            this.WindowState = FormWindowState.Maximized;

            this.imgBuscarNoAsignados.Image = PresentacionBase.Imagenes.BotonBuscar;
            this.imgBuscarAsignados.Image = PresentacionBase.Imagenes.BotonBuscar;

            this.txtBuscarAsignados.Enter += Control_Enter;
            this.txtBuscarNoAsignado.Enter += Control_Enter;

            this.txtBuscarAsignados.Leave += Control_Leave;
            this.txtBuscarNoAsignado.Leave += Control_Leave;

            this.btnActualizar.Image = PresentacionBase.Imagenes.BotonActualizar;
            this.btnEjecutar.Image = PresentacionBase.Imagenes.BotonEjecutar;
            this.btnSalir.Image = PresentacionBase.Imagenes.BotonSalir;

            PoblarComboBox(this.cmbSector, _sectorServicio.ObtenerTodo(), "Descripcion");

            if (this.cmbSector.Items.Count > 0)
            {
                PoblarComboBox(this.cmbSubSector,
                    _subSectorServicio.ObtenerTodo(Convert.ToInt64(this.cmbSector.SelectedValue)),
                    "Descripcion");
            }
        }
コード例 #3
0
ファイル: _00001_Sectores.cs プロジェクト: seansa/Biometrico
        public _00001_Sectores()
            : base("Consulta de Sectores", "Lista de Sectores", new _00002_ABM_Sector())
        {
            InitializeComponent();

            _sectorServicio          = new SectorServicio();
            this.btnImprimir.Visible = false;
            this.WindowState         = FormWindowState.Maximized;
        }
コード例 #4
0
        public _00021_ReporteMensual()
        {
            InitializeComponent();
            WindowState = FormWindowState.Maximized;

            _agenteServicio     = new AgenteServicio();
            _sectorServicio     = new SectorServicio();
            _subsectorServicio  = new SubSectorServicio();
            _agenteSeleccionado = null;

            _filaAgente = -1;
        }
コード例 #5
0
        public _00002_ABM_Sector()
            : base("ABM de Sectores")
        {
            InitializeComponent();

            _sectorServicio = new SectorServicio();

            this.nudCodigo.Enter += new EventHandler(Control_Enter);
            this.txtDescripcion.Enter += new EventHandler(Control_Enter);

            this.nudCodigo.Leave += new EventHandler(Control_Leave);
            this.txtDescripcion.Leave += new EventHandler(Control_Leave);
        }
コード例 #6
0
        public _00002_ABM_Sector()
            : base("ABM de Sectores")
        {
            InitializeComponent();

            _sectorServicio = new SectorServicio();

            this.nudCodigo.Enter      += new EventHandler(Control_Enter);
            this.txtDescripcion.Enter += new EventHandler(Control_Enter);

            this.nudCodigo.Leave      += new EventHandler(Control_Leave);
            this.txtDescripcion.Leave += new EventHandler(Control_Leave);
        }
コード例 #7
0
        public _00004_ABM_SubSector()
            : base("ABM de Sub-Sectores")
        {
            InitializeComponent();

            _subSectorServicio = new SubSectorServicio();
            _sectorServicio = new SectorServicio();

            this.nudCodigo.Enter += Control_Enter;
            this.txtDescripcion.Enter += Control_Enter;
            this.txtAbreviatura.Enter += Control_Enter;

            this.nudCodigo.Leave += Control_Leave;
            this.txtDescripcion.Leave += Control_Leave;
            this.txtAbreviatura.Leave += Control_Leave;

            PoblarComboBox(this.cmbSector, _sectorServicio.ObtenerTodo(), "Descripcion");

            this.txtDescripcion.Validating += (sender, e) => Validacion.VerificarNoVacios(sender, e, errorProviderMensaje);
            this.txtAbreviatura.Validating += (sender, e) => Validacion.VerificarNoVacios(sender, e, errorProviderMensaje);
        }
コード例 #8
0
        public _00004_ABM_SubSector()
            : base("ABM de Sub-Sectores")
        {
            InitializeComponent();

            _subSectorServicio = new SubSectorServicio();
            _sectorServicio    = new SectorServicio();

            this.nudCodigo.Enter      += Control_Enter;
            this.txtDescripcion.Enter += Control_Enter;
            this.txtAbreviatura.Enter += Control_Enter;

            this.nudCodigo.Leave      += Control_Leave;
            this.txtDescripcion.Leave += Control_Leave;
            this.txtAbreviatura.Leave += Control_Leave;

            PoblarComboBox(this.cmbSector, _sectorServicio.ObtenerTodo(), "Descripcion");

            this.txtDescripcion.Validating += (sender, e) => Validacion.VerificarNoVacios(sender, e, errorProviderMensaje);
            this.txtAbreviatura.Validating += (sender, e) => Validacion.VerificarNoVacios(sender, e, errorProviderMensaje);
        }