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(""); } } }
private void dcProducto_BrowseClick(DataCombo dc, Type dataType) { RequireGridSel(dc, dataType); }
private void dcCliente_BrowseClick(DataCombo dc, Type dataType) { RequireGridSel(dc, dataType); }
private void dcTipoContribuyenteProveedor_BrowseClick(DataCombo dc, Type dataType) { RequireGridSel(dc, dataType); }
private void dcTipoPago_BrowseClick(DataCombo dc, Type dataType) { RequireGridSel(dc, dataType); }