Пример #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("");
                }
            }
        }
Пример #2
0
 private void dcProducto_BrowseClick(DataCombo dc, Type dataType)
 {
     RequireGridSel(dc, dataType);
 }
Пример #3
0
 private void dcCliente_BrowseClick(DataCombo dc, Type dataType)
 {
     RequireGridSel(dc, dataType);
 }
Пример #4
0
 private void dcTipoContribuyenteProveedor_BrowseClick(DataCombo dc, Type dataType)
 {
     RequireGridSel(dc, dataType);
 }
Пример #5
0
 private void dcTipoPago_BrowseClick(DataCombo dc, Type dataType)
 {
     RequireGridSel(dc, dataType);
 }