Example #1
0
        public override void PrintObject()
        {
            WorkReportReportMng reportMng = new WorkReportReportMng(AppContext.ActiveSchema);

            ReportViewer.SetReport(reportMng.GetDetailReport(EntityInfo));
            ReportViewer.ShowDialog();
        }
        public override void PrintDetailAction()
        {
            if (ActiveItem == null)
            {
                return;
            }

            WorkReportReportMng reportMng = new WorkReportReportMng(AppContext.ActiveSchema, Text, FilterValues);
            ReportClass         report    = reportMng.GetDetailReport(WorkReportInfo.Get(ActiveOID, true));

            ShowReport(report);
        }
        public override void PrintList()
        {
            PgMng.Reset(2, 1, Face.Resources.Messages.LOADING_DATA, this);

            WorkReportReportMng rptMng = new WorkReportReportMng(AppContext.ActiveSchema, Text, FilterValues);

            ReportClass report = rptMng.GetListReport(WorkReportList.GetList(Datos.DataSource as IList <WorkReportInfo>));

            PgMng.FillUp();

            ShowReport(report);
        }
        protected virtual void PrintWorkReportListAction()
        {
            if (!ControlsMng.IsCurrentItemValid(WorkReportMonth_DGW))
            {
                return;
            }
            WorkReportResourceInfo item = ControlsMng.GetCurrentItem(WorkReportMonth_DGW) as WorkReportResourceInfo;

            PgMng.Reset(2, 1, Face.Resources.Messages.LOADING_DATA, this);

            string title  = Resources.Labels.EMPLOYEE_WORKREPORTS_LIST;
            string filter = Resources.Labels.EMPLOYEE + " = " + item.Resource + "; " + Resources.Labels.YEAR + " = " + item.Year + "; " + Resources.Labels.MONTH + " = " + item.Month;

            WorkReportReportMng rptMng = new WorkReportReportMng(AppContext.ActiveSchema, title, filter);

            ReportClass report = rptMng.GetWorkReportResourceList(WorkReportResourceList.GetList(WorkReport_BS.DataSource as IList <WorkReportResourceInfo>));

            PgMng.FillUp();

            ShowReport(report);
        }