private void SeleccionarFilaPolizas(int fila, bool seleccionar) { var poliza = (Poliza)UiVistaPoliza.GetRow(fila); if (poliza == null) { return; } if (poliza.BLOCKED_STATUS != EstadoPolizaFiscal.FREE.ToString()) { poliza.IS_SELECTED = seleccionar; } else { UiVistaPoliza.UnselectRow(fila); } }
private void GenerarReporte() { try { var listaPolizas = new List <Poliza>(); for (var i = 0; i < UiVistaPoliza.RowCount; i++) { if (!UiVistaPoliza.IsGroupRow(i)) { listaPolizas.Add((Poliza)UiVistaPoliza.GetRow(i)); } } var listaPolizasParaReporte = listaPolizas.GroupBy( b => new { b.CLIENT_CODE, b.CLIENT_NAME, b.REGIMEN, b.REGIMEN_GROUP, b.FECHA_LLEGADA, b.EXPIRATION_DATE, b.DAYS_FOR_LOCKING, b.TIME_BLOCKED, b.QTY, b.TOTAL_VALUE, b.DESCRIPTION_STATUS, b.UNLOCK_DATE, b.UNLOCK_DOCUMENT, b.UNLOCK_USER, b.DOC_ID }).Select(b => new Poliza { CLIENT_CODE = b.Key.CLIENT_CODE, CLIENT_NAME = b.Key.CLIENT_NAME, REGIMEN = b.Key.REGIMEN, REGIMEN_GROUP = b.Key.REGIMEN_GROUP, FECHA_LLEGADA = b.Key.FECHA_LLEGADA, EXPIRATION_DATE = b.Key.EXPIRATION_DATE, DAYS_FOR_LOCKING = b.Key.DAYS_FOR_LOCKING, TIME_BLOCKED = b.Key.TIME_BLOCKED, QTY = b.Key.QTY, TOTAL_VALUE = b.Key.TOTAL_VALUE, DESCRIPTION_STATUS = b.Key.DESCRIPTION_STATUS, UNLOCK_DATE = b.Key.UNLOCK_DATE, UNLOCK_DOCUMENT = b.Key.UNLOCK_DOCUMENT, UNLOCK_USER = b.Key.UNLOCK_USER, DOC_ID = b.Key.DOC_ID }).ToList(); var reporte = new Reportes.PolizasVencidas { DataSource = ListToDataTableClass.ListToDataTable(listaPolizasParaReporte), DataMember = "Polizas", RequestParameters = false }; reporte.Parameters["ImagenLogo"].Value = InteraccionConUsuarioServicio.ObtenerLogo(); reporte.Parameters["Usuario"].Value = InteraccionConUsuarioServicio.ObtenerNombreUsuario(); reporte.FillDataSource(); using (var printTool = new ReportPrintTool(reporte)) { printTool.ShowRibbonPreviewDialog(); } } catch (Exception ex) { InteraccionConUsuarioServicio.Mensaje(ex.Message); } }
private void UiBarButtonColapsar_ItemClick(object sender, ItemClickEventArgs e) { UiVistaPoliza.CollapseAllGroups(); }
private void UiBarButtonExportarExcel_ItemClick(object sender, ItemClickEventArgs e) { UiVistaPoliza.ShowPrintPreview(); }
private void UiBarButtonExpandir_ItemClick(object sender, ItemClickEventArgs e) { UiVistaPoliza.ExpandAllGroups(); }