Exemplo n.º 1
0
        public override void PrintQRAction()
        {
            PgMng.Reset(4, 1, Face.Resources.Messages.LOADING_DATA, this);
            CobroReportMng reportMng = new CobroReportMng(AppContext.ActiveSchema, this.Text, FilterValues);

            reportMng.ShowQRCode = true;

            PgMng.Grow();
            CobroREAList cReas = CobroREAList.GetList(false);

            PgMng.Grow(Face.Resources.Messages.BUILDING_REPORT);
            CobroREAListRpt report = reportMng.GetCobroREAListReport(CobroList.GetList((IList <CobroInfo>)Datos.List), cReas);

            PgMng.FillUp();

            ShowReport(report);
        }
        public CobroREAListRpt GetListReport(CobroREAList list)
        {
            if (list.Count == 0)
            {
                return(null);
            }

            CobroREAListRpt doc = new ClienteListRpt();

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

            foreach (CobroREAInfo item in list)
            {
                pList.Add(CobroREAPrint.New(item));;
            }

            doc.SetDataSource(pList);

            FormatHeader(doc);

            return(doc);
        }