コード例 #1
0
        public AlbaranRecibidoListRpt GetListReport(InputDeliveryList list,
                                                    SerieList series,
                                                    ProviderBaseList acreedores)
        {
            if (list.Count == 0)
            {
                return(null);
            }

            AlbaranRecibidoListRpt doc = new AlbaranRecibidoListRpt();

            List <InputDeliveryPrint> pList = new List <InputDeliveryPrint>();

            foreach (InputDeliveryInfo item in list)
            {
                pList.Add(InputDeliveryPrint.New(item,
                                                 acreedores.GetItem(item.OidAcreedor, item.ETipoAcreedor),
                                                 series.GetItem(item.OidSerie)));
            }

            doc.SetDataSource(pList);

            FormatHeader(doc);

            return(doc);
        }
コード例 #2
0
        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);
        }