コード例 #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);
            ExpedienteREAListRpt report = reportMng.GetExpedienteREAListReport(ExpedienteREAList.GetList((IList <ExpedienteREAInfo>)Datos.List));

            PgMng.FillUp();

            ShowReport(report);
        }
コード例 #2
0
        public ExpedienteREAListRpt GetExpedienteREAListReport(ExpedienteREAList expedientes)
        {
            if (expedientes.Count == 0)
            {
                return(null);
            }

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

            foreach (ExpedienteREAInfo item in expedientes)
            {
                pList.Add(ExpedienteREAPrint.New(item));
            }

            ExpedienteREAListRpt doc = new ExpedienteREAListRpt();

            doc.SetDataSource(pList);

            FormatHeader(doc);

            return(doc);
        }