protected override void NuevaDiscrepanciaAction() { if (!AuditoriaFormController.IsActionEnabled(_entity, AccionAuditoria.GENERAR_INFORME_DISCREPANCIAS)) { return; } InformeDiscrepanciaAddForm form = new InformeDiscrepanciaAddForm(_entity, this); form.ShowDialog(); Datos_Informes.ResetBindings(false); }
protected override void EditarDiscrepanciaAction() { if (Datos_Informes.Current == null) { return; } if (!AuditoriaFormController.IsActionEnabled(_entity, AccionAuditoria.EDITAR_INFORME_DISCREPANCIAS) || (Datos_Informes.Current as InformeDiscrepancia).Notificado) { return; } InformeDiscrepanciaEditForm form = new InformeDiscrepanciaEditForm(_entity, Datos_Informes.Current as InformeDiscrepancia, this); form.ShowDialog(); Datos_Informes.ResetBindings(false); }