public override void PrintDetailAction() { if (ActiveItem == null) { return; } InputDeliveryReportMng reportMng = new InputDeliveryReportMng(AppContext.ActiveSchema, Text, FilterValues); SerieInfo serie = SerieInfo.Get(ActiveItem.OidSerie, false); FormatConfFacturaAlbaranReport conf = new FormatConfFacturaAlbaranReport(); conf.nota = ActiveItem.Nota ? serie.Cabecera : ""; /*AlbaranProveedorRpt report = reportMng.GetAlbaranProveedorReport(InputDeliveryInfo.Get(ActiveOID, true), conf); * * if (report != null) * { * ReportViewer.SetReport(report); * ReportViewer.ShowDialog(); * } * else * { * MessageBox.Show(moleQule.Face.Resources.Messages.NO_DATA_REPORTS, * moleQule.Face.Resources.Labels.ADVISE_TITLE, * MessageBoxButtons.OK, * MessageBoxIcon.Exclamation); * }*/ }
public override void PrintList() { PgMng.Reset(4, 1, Face.Resources.Messages.LOADING_DATA, this); ProviderBaseList acreedores = ProviderBaseList.GetList(false); PgMng.Grow(); SerieList series = SerieList.GetList(false); PgMng.Grow(); InputDeliveryReportMng rptMng = new InputDeliveryReportMng(AppContext.ActiveSchema, Text, FilterValues); AlbaranRecibidoListRpt report = rptMng.GetListReport(InputDeliveryList.GetList(Datos.DataSource as IList <InputDeliveryInfo>), series, acreedores); PgMng.FillUp(); ShowReport(report); }