Exemple #1
0
 private void FormModalReporteProductos_Load(object sender, EventArgs e)
 {
     mostrarEnComboboxLookUp(lookUpEditLinea, "nombre", "idlinea", ControllerProducto.MostrarLineasActivas());
     radioGroup1.SelectedIndex            = 0;
     layoutControlItemLinea.Visibility    = DevExpress.XtraLayout.Utils.LayoutVisibility.Never;
     layoutControlItemSubLinea.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Never;
 }
        private void FormNuevoProducto_Load(object sender, EventArgs e)
        {
            mostrarEnComboboxLookUp(lookUpEditLinea, "nombre", "idlinea", ControllerProducto.MostrarLineasActivas());
            mostrarEnComboboxLookUp(lookUpEditMarca, "Nombre", "idmarca", ControllerProducto.MostrarMarcasActivas());
            lookUpEditLinea.Focus();
            radioGroupMarca.SelectedIndex = 0;
            lookUpEditMarca.Enabled       = false;
            dxErrorProvider1.SetError(lookUpEditLinea, "ESTE CAMPO ES OBLIGATORIO");
            dxErrorProvider1.SetError(lookUpEditSubLinea, "ESTE CAMPO ES OBLIGATORIO");
            dxErrorProvider1.SetError(txtNombre, "ESTE CAMPO ES OBLIGATORIO");
            dxErrorProvider1.SetError(txtPresentacion, "ESTE CAMPO ES OBLIGATORIO");


            gridControlProductosAgredaosRecietnes.DataSource = ControllerGenerarOrdenCompra.MostrarProdcutosRecienCreados();
            gridControlProductosAgredaosRecietnes.ForceInitialize();
            gridViewListaProductosRecientes.BestFitColumns();
        }