Ejemplo n.º 1
0
        public override void PrintObject()
        {
            PgMng.Reset(5, 1, Face.Resources.Messages.LOADING_DATA, this);

            OutputDeliveryReportMng reportMng = new OutputDeliveryReportMng(AppContext.ActiveSchema);

            OutputDeliveryInfo item = OutputDeliveryInfo.Get(EntityInfo.Oid, ETipoEntidad.WorkReport, true);

            PgMng.Grow();

            WorkReportInfo work_report = WorkReportInfo.Get(item.OidHolder, false);

            PgMng.Grow();

            ExpedientInfo work = ExpedientInfo.Get((work_report != null) ? work_report.OidExpedient : 0, false);

            PgMng.Grow();

            ReportClass report = reportMng.GetWorkDelivery(item, work);

            PgMng.FillUp();

            if (SettingsMng.Instance.GetUseDefaultPrinter())
            {
                int n_copias = SettingsMng.Instance.GetDefaultNCopies();
                PrintReport(report, n_copias);
            }
            else
            {
                ShowReport(report);
            }
        }
        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);
        }
 protected override void GetFormSourceData(long oid)
 {
     _entity = WorkReportInfo.Get(oid, true);
 }