Пример #1
0
        public override void PrintList()
        {
            PgMng.Reset(3, 1, Face.Resources.Messages.LOADING_DATA, this);
            ExpenseReportMng reportMng = new ExpenseReportMng(AppContext.ActiveSchema, this.Text, FilterValues);

            PgMng.Grow(Face.Resources.Messages.BUILDING_REPORT);
            ExpenseListRpt report = reportMng.GetListReport(ExpenseList.GetList((IList <ExpenseInfo>)Datos.List));

            PgMng.FillUp();
            ShowReport(report);
        }
        public ExpenseListRpt GetListReport(ExpenseList list)
        {
            if (list.Count == 0)
            {
                return(null);
            }

            ExpenseListRpt doc = new ExpenseListRpt();

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

            foreach (ExpenseInfo item in list)
            {
                pList.Add(GastoPrint.New(item));
            }

            doc.SetDataSource(pList);

            FormatHeader(doc);

            return(doc);
        }