Esempio n. 1
0
        protected void RelSel(DataCombo dc, Type relType, Persistent parent)
        {
            if (relType == businessLogic.PersistentType)
            {
                if (crudController != null)
                {
                    crudController.Dispose();
                }

                if (businessLogic is IFiltrable)
                {
                    ((IFiltrable)businessLogic).SetFilterObject(parent);
                }

                this.dc        = dc;
                crudController = new CRUDController(businessLogic, gridTitle, crudFormTitle, crudFormType, this);
                CRUDControllerManager.Instance.GetCRUDChildControllerManager().SetChildControllers(crudController);

                if (dc.ValueChanged)
                {
                    crudController.ShowGrid(dc.Text);
                }
                else
                {
                    crudController.ShowGrid("");
                }
            }
        }
Esempio n. 2
0
 private void dcProducto_BrowseClick(DataCombo dc, Type dataType)
 {
     RequireGridSel(dc, dataType);
 }
Esempio n. 3
0
 private void dcCliente_BrowseClick(DataCombo dc, Type dataType)
 {
     RequireGridSel(dc, dataType);
 }
Esempio n. 4
0
 private void dcTipoContribuyenteProveedor_BrowseClick(DataCombo dc, Type dataType)
 {
     RequireGridSel(dc, dataType);
 }
Esempio n. 5
0
 private void dcTipoPago_BrowseClick(DataCombo dc, Type dataType)
 {
     RequireGridSel(dc, dataType);
 }