Пример #1
0
        private void PrintTrafficBill(DataDynamics.ActiveReports.ActiveReport3 rpReport)
        {
            // список операций
            TrafficGood oTrafficPrint = new TrafficGood();
            int         nMarkedCnt    = CalcMarkedRows();

            if (nMarkedCnt > 0 &&
                RFMMessage.MessageBoxYesNo("Отмечено записей: " + nMarkedCnt.ToString() + "\r\n" +
                                           "Напечатать лист заданий для всех отмеченных записей?") != DialogResult.Yes)
            {
                return;
            }
            TrafficPrepareIDList(oTrafficPrint, nMarkedCnt > 0);
            oTrafficPrint.FillData();
            if (oTrafficPrint.MainTable.Rows.Count == 0)
            {
                return;
            }

            DataView dv = new DataView(oTrafficPrint.MainTable);

            dv.Sort = "OutputID, CellTargetAddress, StoreZoneSourceID, CellSourceRank, CellSourceAddress, GoodAlias";
            DataTable tTable = dv.ToTable();

            // печать
            StartForm(new frmActiveReport(tTable, rpReport));
        }
Пример #2
0
        private void PrintFrameLabel(DataDynamics.ActiveReports.ActiveReport3 rpReport)
        {
            Frame oFrameLabel = new Frame();
            int   nMarkedCnt  = CalcMarkedRows();

            if (nMarkedCnt > 0 &&
                RFMMessage.MessageBoxYesNo("Отмечено записей: " + nMarkedCnt.ToString() + "\r\n" +
                                           "Формировать этикетки для всех отмеченных записей?") != DialogResult.Yes)
            {
                return;
            }

            Refresh();
            WaitOn(this);
            FramePrepareIDList(oFrameLabel, nMarkedCnt > 0);
            oFrameLabel.FillData();
            WaitOff(this);
            if (oFrameLabel.MainTable.Rows.Count == 0)
            {
                return;
            }

            // печать
            StartForm(new frmActiveReport(oFrameLabel.MainTable, rpReport));
        }
Пример #3
0
        private void PassPrint(bool bAll)
        {
            if (grdData.CurrentRow == null)
            {
                return;
            }

            RFMCursorWait.Set(true);

            Pass oPassPrint = new Pass();

            PassPrepareIDList(oPassPrint, bAll);

            DataDynamics.ActiveReports.ActiveReport3 rep = new DataDynamics.ActiveReports.ActiveReport3();
            rep = new PassBill();

            LogService.Pass_Print(oPassPrint, rep, this);
        }
Пример #4
0
    public ReportForm(Form parent, DataDynamics.ActiveReports.ActiveReport3 rpt)
    {
      InitializeComponent();
      _parent = parent;
      _reporte = rpt;

      if (rpt is IntelliTrack.Client.Application.Reportes.Reporte1)
      {
        IntelliTrack.Service.Common.Singleton<IntelliTrack.Client.Application.Imaging.ComplexMap>.Instance.SetHistoricDataHandlerReportForm(this);
      }
      else if (rpt is IntelliTrack.Client.Application.Reportes.Regadores)
      {
        IntelliTrack.Service.Common.Singleton<IntelliTrack.Client.Application.Imaging.ComplexMap>.Instance.SetHistoricDataHandlerReporteRegadoresForm(this);
        (rpt as IntelliTrack.Client.Application.Reportes.Regadores).OnCalcularTiemposTotales += new IntelliTrack.Client.Application.Reportes.Regadores.DoCalcularTiemposTotales(ReportForm_OnCalcularTiemposTotales);

      }
      HideOnClose = true;
    }
Пример #5
0
        private void WayBillPrint(bool bAll)
        {
            if (grdWayBills.CurrentRow == null)
            {
                return;
            }

            RFMCursorWait.Set(true);

            WayBill oWayBillPrint = new WayBill();

            WayBillPrepareIDList(oWayBillPrint, bAll);

            DataDynamics.ActiveReports.ActiveReport3 rep = new DataDynamics.ActiveReports.ActiveReport3();
            rep = new WayBillShort();

            LogService.WayBill_Print(oWayBillPrint, rep, this);
        }