protected virtual void EditClienteAction() { ClientEditForm form = new ClientEditForm(Entity, this); form.ShowDialog(this); _resumen.Refresh(Entity); Datos_Resumen.DataSource = _resumen; Datos_Resumen.ResetBindings(false); }
public override void OpenEditForm() { ClientEditForm form = new ClientEditForm(ActiveOID, this); if (form.Entity != null) { AddForm(form); _entity = form.Entity; } }
private void OpenForm(ETipoEntidad entityType, long oid) { switch (entityType) { case ETipoEntidad.Cliente: { ClientEditForm form = new ClientEditForm(oid, this); form.ShowDialog(); } break; case ETipoEntidad.CuentaBancaria: { BankAccountEditForm form = new BankAccountEditForm(oid, this); form.ShowDialog(); } break; case ETipoEntidad.Despachante: { DespachanteEditForm form = new DespachanteEditForm(oid, this); form.ShowDialog(); } break; case ETipoEntidad.Empleado: { EmployeeEditForm form = new EmployeeEditForm(oid, this); form.ShowDialog(); } break; case ETipoEntidad.Familia: { FamiliaEditForm form = new FamiliaEditForm(oid, this); form.ShowDialog(); } break; case ETipoEntidad.Impuesto: { ImpuestoUIForm form = new ImpuestoUIForm(this); form.ShowDialog(); } break; case ETipoEntidad.Naviera: { NavieraEditForm form = new NavieraEditForm(oid, this); form.ShowDialog(); } break; case ETipoEntidad.Acreedor: case ETipoEntidad.Proveedor: { ProveedorEditForm form = new ProveedorEditForm(oid, moleQule.Library.Store.EnumConvert.ToETipoAcreedor(entityType), this); form.ShowDialog(); } break; case ETipoEntidad.TipoGasto: { TipoGastoEditForm form = new TipoGastoEditForm(oid); form.ShowDialog(); } break; case ETipoEntidad.TransportistaDestino: case ETipoEntidad.TransportistaOrigen: { TransporterEditForm form = new TransporterEditForm(oid, moleQule.Library.Store.EnumConvert.ToETipoAcreedor(entityType), this); form.ShowDialog(); } break; case ETipoEntidad.Prestamo: { LoanEditForm form = new LoanEditForm(oid, this); form.ShowDialog(); } break; } }
public virtual void ShowClienteAction() { ClientEditForm form = new ClientEditForm(ActiveItem.OidHolder, this); form.ShowDialog(this); }