Ejemplo n.º 1
0
        public override void PrintList()
        {
            PgMng.Reset(3, 1, Face.Resources.Messages.LOADING_DATA, this);
            ExpedientReportMng reportMng = new ExpedientReportMng(AppContext.ActiveSchema, this.Text, FilterValues);

            PgMng.Grow(Face.Resources.Messages.BUILDING_REPORT);
            PartidaListRpt report = reportMng.GetPartidaListReport(BatchList.GetList(Datos.DataSource as IList <BatchInfo>));

            PgMng.FillUp();
            ShowReport(report);
        }
Ejemplo n.º 2
0
        public PartidaListRpt GetPartidaListReport(BatchList list)
        {
            if (list.Count == 0)
            {
                return(null);
            }

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

            foreach (BatchInfo item in list)
            {
                pList.Add(PartidaPrint.New(item));
            }

            PartidaListRpt doc = new PartidaListRpt();

            doc.SetDataSource(pList);

            FormatHeader(doc);

            return(doc);
        }