Esempio n. 1
0
 private void OrganizacionesForm_Load(object sender, EventArgs e)
 {
     FormConfig.Config(this);
     FormConfig.TextBoxToReadOnly(this);
     txtFiltro.ReadOnly = false;
     ObtenerDatos();
 }
Esempio n. 2
0
        private void ClienteEditForm_Load(object sender, EventArgs e)
        {
            try
            {
                FormConfig.Config(this);
                _cliente                       = ((BEL.ClienteBEL)Tag);
                bsCliente.DataSource           = _cliente;
                bsEmpresas.DataSource          = new BLL.EmpresaBLL().Listar();
                bsEmpresas.CurrentChanged     += BsEmpresas_CurrentChanged;
                razonSocialComboBox.DataSource = bsEmpresas;

                if (_cliente.Empresa == null || _cliente.Id == 0 | _cliente.Empresa.Id == 0)
                {
                    razonSocialComboBox.SelectedIndex = -1;
                }
                else
                {
                    razonSocialComboBox.SelectedIndex = razonSocialComboBox.FindString(((BEL.ClienteBEL)bsCliente.Current).Empresa.RazonSocial);
                }
            }
            catch (Exception ex)
            {
                Servicios.Logger.WriteLogExeption(ex, 2233);
                Mensajes.MensajeExcepcion(ex, this);
            }
        }
Esempio n. 3
0
 private void UbicacionEditForm_Load(object sender, EventArgs e)
 {
     FormConfig.Config(this);
     if (((BEL.UbicacionBEL)bsEditado.Current).Id == 0)
     {
         _esAlta = true;
     }
 }
Esempio n. 4
0
 private void BusquedaForm_Load(object sender, EventArgs e)
 {
     FormConfig.Config(this);
     _listaClientes             = new ClienteBLL().Listar().ConvertAll(x => (ClienteBEL)x);
     bsClientes.DataSource      = _listaClientes;
     Grilla.AutoGenerateColumns = false;
     Grilla.DataSource          = bsClientes;
 }
 private void ReparacionesForm_Load(object sender, EventArgs e)
 {
     FormConfig.Config(this);
     GrillaReparaciones.AutoGenerateColumns = false;
     FormConfig.TextBoxToReadOnly(this);
     ObtenerDatos();
     EnlazarControles();
 }
Esempio n. 6
0
 private void ActivosForm_Load(object sender, EventArgs e)
 {
     FormConfig.Config(this);
     FormConfig.TextBoxToReadOnly(this);
     FiltroTextBox.ReadOnly            = false;
     GrillaActivos.AutoGenerateColumns = false;
     ObtenerDatos();
     EnlazarControles();
 }
Esempio n. 7
0
        private void ActivoABMForm_Load(object sender, EventArgs e)
        {
            FormConfig.Config(this);
            ObtenerDatos();
            EnlazarControles();

            if (Editado.Id == 0)
            {
                FormConfig.LimpiarCombos(this);
            }
        }
Esempio n. 8
0
 private void DepositosForm_Load(object sender, EventArgs e)
 {
     try
     {
         FormConfig.Config(this);
         ObtenerDatos();
     }
     catch (Exception ex)
     {
         Mensajes.MensajeExcepcion(ex, this);
     }
 }
Esempio n. 9
0
 private void EdicionOrganizacion_Load(object sender, EventArgs e)
 {
     try
     {
         FormConfig.Config(this);
         bsOrganizacion.DataSource = Editado;
     }
     catch (Exception ex)
     {
         Mensajes.MensajeExcepcion(ex, this);
     }
 }
Esempio n. 10
0
 private void DonacionesForm_Load(object sender, EventArgs e)
 {
     try
     {
         FormConfig.Config(this);
         bsDonaciones.DataSource = new DonacionBLL().Listar().ConvertAll(x => (DonacionBEL)x);
     }
     catch (Exception ex)
     {
         Mensajes.MensajeExcepcion(ex, this);
     }
 }
Esempio n. 11
0
 private void TipoActivoAdminForm_Load(object sender, EventArgs e)
 {
     try
     {
         FormConfig.Config(this);
         dgvGrilla.AutoGenerateColumns = false;
         ObtenerDatos();
     }
     catch (Exception ex)
     {
         Mensajes.MensajeExcepcion(ex, this);
     }
 }
Esempio n. 12
0
 private void MarcaAdminForm_Load(object sender, EventArgs e)
 {
     try
     {
         FormConfig.Config(this);
         dgvGrilla.AutoGenerateColumns = false;
         ObtenerDatos(txtFiltro.Text.ToUpper());
     }
     catch (Exception ex)
     {
         Mensajes.MensajeExcepcion(ex, this);
     }
 }
Esempio n. 13
0
 private void ClienteAdminForm_Load(object sender, EventArgs e)
 {
     try
     {
         FormConfig.Config(this);
         FormConfig.TextBoxToReadOnly(this);
         txtFiltro.ReadOnly    = false;
         _listaClientes        = new BLL.ClienteBLL().Listar().ConvertAll(x => (BEL.ClienteBEL)x);
         bsClientes.DataSource = _listaClientes;
     }
     catch (Exception ex)
     {
         Mensajes.MensajeExcepcion(ex, this);
     }
 }
        private void PresupuestoAdminForm_Load(object sender, EventArgs e)
        {
            try
            {
                FormConfig.Config(this);
                Text = $"Presupuestos de reparación {Reparacion.Activo.ToString()}";
                grilla.AutoGenerateColumns = false;

                ObtenerDatos();
            }
            catch (Exception ex)
            {
                Mensajes.MensajeExcepcion(ex, this);
            }
        }
Esempio n. 15
0
        private void EdicionPresupuestoForm_Load(object sender, EventArgs e)
        {
            FormConfig.Config(this);
            FormConfig.ValidarCamposCompletos(this, errorProvider);
            bsPresupuesto.DataSource = Tag;
            bsProveedores.DataSource = new BLL.EmpresaBLL().Listar();
            bsMoneda.DataSource      = new BLL.MonedaBLL().Listar();

            if (((BEL.PresupuestoBEL)bsPresupuesto.Current).Id == 0)
            {
                razonSocialComboBox.SelectedIndex = -1;
                cmbMoneda.SelectedIndex           = -1;
            }
            else
            {
                razonSocialComboBox.SelectedIndex = razonSocialComboBox.FindStringExact(((BEL.PresupuestoBEL)bsPresupuesto.Current).Proveedor.RazonSocial);
                cmbMoneda.SelectedIndex           = cmbMoneda.FindString(((BEL.PresupuestoBEL)bsPresupuesto.Current).Moneda.Descripcion);
            }
        }
Esempio n. 16
0
 private void EdicionReparacionForm_Load(object sender, EventArgs e)
 {
     FormConfig.Config(this);
     bsReparacion.DataSource = Tag;
     FinalizarReparacion(((ReparacionBEL)Tag).Realizada);
 }
 private void ActivoDatosCompraForm_Load(object sender, EventArgs e)
 {
     FormConfig.Config(this);
     FormConfig.TextBoxToReadOnly(this);
 }
Esempio n. 18
0
 private void MovimientosActivoForm_Load(object sender, EventArgs e)
 {
     FormConfig.Config(this);
     //TODO: cargar los movimientos del activo
 }
Esempio n. 19
0
 private void LoginForm_Load(object sender, EventArgs e)
 {
     FormConfig.Config(this);
 }
Esempio n. 20
0
 private void PrincipalForm_Load(object sender, EventArgs e)
 {
     FormConfig.Config(this);
     Sesion.SesionActual().CierreSesionEvent += PrincipalForm_CierreSesionEvent;
 }