示例#1
0
        private void btn_report_Click(object sender, EventArgs e)
        {
            ReportForm reportform = new ReportForm();

            reportform.sprintboard = sprintBoard;
            reportform.ShowDialog();
        }
示例#2
0
        private void analizujButton_Click(object sender, EventArgs e)
        {
            var login = Enova.Business.Old.DB.Web.User.LoginedUser.LoginedEnova;

            if (login == null)
            {
                MessageBox.Show("Nie jesteś zalogowany do bazy Enova. Skontaktuj się z Administratorem");
                return;
            }

            if (DataGrid.CurrentRow != null && DataGrid.CurrentRow.DataBoundItem != null)
            {
                this.Cursor  = Cursors.WaitCursor;
                this.Enabled = false;

                using (Session session = login.CreateSession(true, false, "Zwrot.Analiza"))
                {
                    Zwrot zwrot = (Zwrot)DataGrid.CurrentRow.DataBoundItem;

                    ZwrotAnaliza analiza = zwrot.AnalizujZwrot(session);

                    ReportForm form = new ReportForm();
                    form.ReportPath = "ZwrotAnalizaSimpleReport.rdlc";

                    form.Title = "Analiza zwrotu";

                    form.LocalReport.SetParameters(new ReportParameter[] {
                        new ReportParameter("numer", zwrot.ID.ToString()),
                        new ReportParameter("dataDodania", zwrot.DataDodania.ToShortDateString()),
                        new ReportParameter("dataModyfikacji", zwrot.DataModyfikacji.ToShortDateString()),
                        new ReportParameter("kontrahent", zwrot.Kontrahent.ToString()),
                        new ReportParameter("opis", zwrot.OpisLine)
                    });

                    int idx = 0;
                    foreach (ZwrotAnalizaDokHandlowyOld dh in analiza.Dokumenty)
                    {
                        if (idx <= 9)
                        {
                            form.LocalReport.SetParameters(new ReportParameter("dokument" + idx.ToString(), dh.NumerPelny));
                        }
                        idx++;
                    }

                    if (idx < 9)
                    {
                        for (int i = idx; i <= 9; i++)
                        {
                            form.LocalReport.SetParameters(new ReportParameter("dokument" + i.ToString(), string.Empty));
                        }
                    }

                    form.AddDataSource("Pozycje", analiza.Pozycje);

                    form.ShowDialog();
                }
                this.Enabled = true;
                this.Cursor  = Cursors.Default;
            }
        }
示例#3
0
文件: Admin.cs 项目: IEEfimov/Busines
        private void звітЗаРікToolStripMenuItem_Click(object sender, EventArgs e)
        {
            ReportForm report = new ReportForm();
            int        yr     = DateTime.Today.Year;

            report.viewYear(new DateTime(yr, 1, 1));
        }
示例#4
0
        public VisitDetailsFrm()
        {
            InitializeComponent();

            _reportForm = new ReportForm<VisitDetail>(bindingNavigator1, dataGridView1,
                                                      bindingNavigatorPositionItem.TextBox, lblReportStatus);
        }
        private void btnGenerate_Click(object sender, RoutedEventArgs e)
        {
            if (cmbCashBank.SelectedItem != null && cmbReportDate.SelectedItem != null)
            {
                ReportDate repDate = cmbReportDate.SelectedItem as ReportDate;
                BankModel  bnk     = cmbCashBank.SelectedItem as BankModel;
                repDate.ReportType = cmbChartType.SelectedValue.ToString();

                if (repDate.DateReport.Equals("BY MONTH"))
                {
                    DateTime searchDate = DateTime.Parse(dateFrom.Text);
                    repDate.MonthFrom = searchDate.Year + "-" + searchDate.Month + "-" + searchDate.Day;

                    searchDate      = DateTime.Parse(dateTo.Text);
                    repDate.MonthTo = searchDate.Year + "-" + searchDate.Month + "-" + searchDate.Day;
                    ReportForm report = new ReportForm(bnk, repDate, "FHBOTTLES");
                    report.ShowDialog();
                }
                else
                {
                    repDate.YearFrom = txtYearFrom.Text + "-01-01";
                    repDate.YearTo   = txtYearTo.Text + "-12-31";
                    ReportForm report = new ReportForm(bnk, repDate, "FHBOTTLES");
                    report.ShowDialog();
                }
            }
        }
示例#6
0
        public SMSHistoryfrm()
        {
            InitializeComponent();

            _reportForm = new ReportForm<SMSHistory>(bindingNavigator1, dataGridView1,
                                                      bindingNavigatorPositionItem.TextBox, lblReportStatus);
        }
示例#7
0
        internal void postFile(string username, string getGame, string matchid, string filepath)
        {
            try
            {
                WebProxy proxy = WebProxy.GetDefaultProxy();
                proxy.UseDefaultCredentials = true;
                var myClient = new WebClientEx();
                ServicePointManager.ServerCertificateValidationCallback = delegate { return(true); };
                myClient.Headers.Add("Content-Type", "binary/octet-stream");
                myClient.Proxy    = proxy;
                myClient.Timeout  = 86400000;
                myClient.filepath = filepath;
                byte[] result = myClient.UploadFile(GlobalSettings.Website_URL + "/upload.php?user="******"&game=" + getGame + "&matchid=" + matchid, "POST", filepath);

                string response = System.Text.Encoding.UTF8.GetString(result, 0, result.Length);

                if (response.Contains("Invalid") || response.Contains("Failed!"))
                {
                    ReportForm ef = new ReportForm();
                    ef.label2.Text = response;
                    ef.Show();
                }
            }
            catch (Exception)
            {
                ReportForm ef = new ReportForm();
                ef.label2.Text = "Upload failed";
                ef.Show();
            }
        }
        public FrmPaperReelConsumptionReport()
        {
            InitializeComponent();

            _reportForm = new ReportForm<PaperReelConsumption, PaperReelConsumptionSearchRequest, PaperReelConsumption>(groupBox1, bindingNavigator1, dataGridView1,
                                                                                           bindingNavigatorPositionItem.TextBox, lblReportStatus, lblReportSummary);
        }
示例#9
0
        public FrmBundlingM1Report()
        {
            InitializeComponent();

            _reportForm = new ReportForm<BundlingM1, BundlingM1SearchRequest, BundlingM1>(groupBox1, bindingNavigator1, dataGridView1,
                                                                                           bindingNavigatorPositionItem.TextBox, lblReportStatus,lblReportSummary);
        }
示例#10
0
        private async void btnGenerate_Click(object sender, RoutedEventArgs e)
        {
            //List<PurchaseOrders> lstA = await getPurchaseOrderReports();
            ReportForm rf = new ReportForm(await getPurchaseOrderReports());

            rf.ShowDialog();
        }
示例#11
0
        public FrmUserAccessReport()
        {
            InitializeComponent();

            _reportForm = new ReportForm<UserReportView, UserSearchRequest, User>(groupBox1, bindingNavigator1, dataGridView1,
                                                                                            bindingNavigatorPositionItem.TextBox, lblReportStatus, lblReportSummary);
        }
示例#12
0
        public FrmAutoStichingPinReport()
        {
            InitializeComponent();

            _reportForm = new ReportForm<AutoStichingPin, AutoStichingPinSearchRequest, AutoStichingPin>(groupBox1, bindingNavigator1, dataGridView1,
                                                                                           bindingNavigatorPositionItem.TextBox, lblReportStatus,lblReportSummary);
        }
示例#13
0
        public FrmCustomerMasterReport()
        {
            InitializeComponent();

            _reportForm = new ReportForm<RWPLLinqDataService.CustomerMaster, CustomerMasterSearchRequest, RWPLLinqDataService.CustomerMaster>(groupBox1, bindingNavigator1, dataGridView1,
                                                                                       bindingNavigatorPositionItem.TextBox, lblReportStatus, lblReportSummary);
        }
示例#14
0
        private void buatLaporanByQueryStock(object laporan, Boolean blank)
        {
            ReportForm reportForm = new ReportForm(main);

            reportForm.MdiParent   = main;
            reportForm.WindowState = FormWindowState.Maximized;

            reportForm.GetCrystalReportViewer().ReportSource = laporan;

            ParameterField         field1 = new ParameterField();
            ParameterDiscreteValue value1 = new ParameterDiscreteValue();

            field1.Name  = "blank";
            value1.Value = blank;
            field1.CurrentValues.Add(value1);

            ParameterFields fields = new ParameterFields();

            fields.Add(field1);

            reportForm.GetCrystalReportViewer().ReportSource       = laporan;
            reportForm.GetCrystalReportViewer().ParameterFieldInfo = fields;
            reportForm.GetCrystalReportViewer().Refresh();
            reportForm.Show();
        }
 private void ShowReport()
 {
     try
     {
         if (OnShowReport != null)
         {
             using (WaitCursor wc = new WaitCursor())
             {
                 SelectReportEventArgs ev = new SelectReportEventArgs(SelectedReport);
                 if (ev.Report != null)
                 {
                     OnShowReport(this, ev);
                     if (ev.ReportBuilder != null)
                     {
                         ReportForm form = new ReportForm(ev.Report, ev.ReportBuilder);
                         if (form.ShowDialog() == DialogResult.OK)
                         {
                         }
                     }
                 }
             }
         }
     }
     catch (Exception ex)
     {
         Log.Exception(ex);
     }
 }
示例#16
0
        private void AutoComplitTreament(Machine Machine, DataManager d)
        {
            var t = new ReportsInMap();

            if (Rf is null)
            {
                Rf = new ReportForm(loge, Machine, d);
            }
            else
            {
                List <Entities.Report> q = new List <Entities.Report>();
                if (!(Rf.s.internet.data is null))
                {
                    foreach (var i in Rf.s.internet.data)
                    {
                        q.Add(new Entities.Report()
                        {
                            p1 = ((dynamic)i)["lat"],
                            p2 = ((dynamic)i)["lon"]
                        });
                    }
                }
                ;
                t.DataContext2 = q;
            }
            rightTab = t;
            leftTab  = Rf;
        }
示例#17
0
        private void obrotFKDrukujButton_Click(object sender, EventArgs e)
        {
            string     przedstawiciel = (string)this.przedstawicieleComboBox.SelectedItem;
            ReportForm raport         = new ReportForm("Reports\\DokumentyListaReport.rdlc", "DokumentyViewRow", dokObrotyFK, null);

            raport.Show();
        }
        private void buatLaporanByQuery(object laporan, DateTime startTime, DateTime endTime)
        {
            ReportForm reportForm = new ReportForm(main);

            reportForm.MdiParent   = main;
            reportForm.WindowState = FormWindowState.Maximized;

            reportForm.GetCrystalReportViewer().ReportSource = laporan;

            ParameterField         field1 = new ParameterField();
            ParameterDiscreteValue value1 = new ParameterDiscreteValue();

            field1.Name  = "startTime";
            value1.Value = startTime;
            field1.CurrentValues.Add(value1);

            ParameterField         field2 = new ParameterField();
            ParameterDiscreteValue value2 = new ParameterDiscreteValue();

            field2.Name  = "endTime";
            value2.Value = endTime;
            field2.CurrentValues.Add(value2);

            ParameterFields fields = new ParameterFields();

            fields.Add(field1);
            fields.Add(field2);

            reportForm.GetCrystalReportViewer().ParameterFieldInfo = fields;
            reportForm.GetCrystalReportViewer().Refresh();
            reportForm.Show();
        }
示例#19
0
        private void drukujButton_Click(object sender, EventArgs e)
        {
            decimal    podatekDochodowy = decimal.Round((decimal)this.dowyplaty * 0.19M, 2);
            ReportForm raport           = new ReportForm("Reports\\ProwizjaPodsumowanieReport.rdlc", "RaportProwizjiData",
                                                         new List <RaportProwizjiData>()
            {
                new RaportProwizjiData()
                {
                    Przedstawiciel       = (string)this.przedstawicieleComboBox.SelectedItem,
                    ZaOkres              = (this.miesiąceComboBox.SelectedIndex + 1).ToString().PadLeft(2, '0') + "/" + this.rokTextBox.Text,
                    ProwizjaOdFV         = string.Format("{0:C}", this.prowizjaFV),
                    ProwizjaOdFVOpis     = "(Zapłacone FV: " + string.Format("{0:C}", sumaSprzedazyNetto) + " -> " + (sumaSprzedazyNetto == 0 ? 0 : decimal.Round((decimal)prowizjaFV / (decimal)sumaSprzedazyNetto * 100, 2)) + "%)",
                    ProwizjaOdFK         = string.Format("{0:C}", this.prowizjaFK),
                    ProwizjaOdFKOpis     = "(Zapłacone FK: " + string.Format("{0:C}", sumaKorektNetto) + " -> " + (sumaKorektNetto == 0 ? 0 : decimal.Round((decimal)prowizjaFK / (decimal)sumaKorektNetto * 100, 2)) + "%)",
                    ProwizjaSuma         = string.Format("{0:C}", this.prowizjaSuma),
                    ProwizjaSumaOpis     = "(Suma FV i FK: " + string.Format("{0:C}", sumaSprzedazyNetto + sumaKorektNetto) + " -> " + (sumaSprzedazyNetto == 0 && sumaKorektNetto == 0 ? 0 : decimal.Round((decimal)prowizjaSuma / (decimal)(sumaSprzedazyNetto + sumaKorektNetto) * 100, 2)) + "%)",
                    Przeterminowania     = string.Format("{0:C}", this.przeterminowane),
                    PrzeterminowaniaOpis = "(Od kwoty: " + sumaDoRozliczeniaPotraceniaTextBox.Text + ")",
                    Wysylki              = string.Format("{0:C}", this.wysylki),
                    WysylkiOpis          = "(" + ilość_paczek.ToString() + " p. * " + string.Format("{0:C}", GetCenaPaczki()) + " - " + (ilość_paczek > 50?"50":ilość_paczek.ToString()) + ",00%)",
                    Magazynowe           = string.Format("{0:C}", this.magazynowe),
                    MagazynoweOpis       = "(1,00% od " + string.Format("{0:C}", decimal.Round((decimal)(obrotFirmaFV + obrotFirmaFK), 2)) + ")",
                    ProwizjaNetto        = string.Format("{0:C}", this.dowyplaty),
                    PodatekDochodowy     = string.Format("{0:C}", podatekDochodowy),
                    DoWyplaty            = string.Format("{0:C}", this.dowyplaty - podatekDochodowy),
                    PodatekVat           = string.Format("{0:C}", decimal.Round((decimal)this.dowyplaty * 0.23M, 2))
                }
            }, null);

            raport.Show();
        }
示例#20
0
        private void btnGenerate_Click(object sender, EventArgs e)
        {
            if (!m_obdInterface.getConnectedStatus())
            {
                MessageBox.Show("A vehicle connection must first be established.", "Connection Required", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);

            }
            else
            {
                m_bReportForm = new ReportForm();
                btnGenerate.Enabled = false;
                m_bReportForm.ReportPage1.ShopName = txtByName.Text;
                m_bReportForm.ReportPage1.ShopAddress1 = txtByAddress1.Text;
                m_bReportForm.ReportPage1.ShopAddress2 = txtByAddress2.Text;
                m_bReportForm.ReportPage1.ShopTelephone = txtByTelephone.Text;
                m_bReportForm.ReportPage1.ClientName = txtForName.Text;
                m_bReportForm.ReportPage1.ClientAddress1 = txtForAddress1.Text;
                m_bReportForm.ReportPage1.ClientAddress2 = txtForAddress2.Text;
                m_bReportForm.ReportPage1.ClientTelephone = txtForTelephone.Text;
                m_bReportForm.ReportPage1.Vehicle = txtVehicleYear.Text + " " + txtVehicleMake.Text + " " + txtVehicleModel.Text;
                if (m_bReportForm.ReportPage1.Vehicle.Trim().Length == 0)
                    m_bReportForm.ReportPage1.Vehicle = "vehicle";
                DateTime now1 = DateTime.Now;
                DateTime now2 = DateTime.Now;
                m_bReportForm.ReportPage1.GenerationDate = string.Format("{0} at {1}", DateTime.Now.ToString("MMMM dd, yyyy"), DateTime.Now.ToString("h:mm:ss tt"));
                richTextStatus.Text = "";
                progressBar.Value = 0;
                progressBar.Maximum = 22;
                ThreadPool.QueueUserWorkItem(new WaitCallback(CollectData));
            }
        }
示例#21
0
        private void btnCreateReport_Click(object sender, EventArgs e)
        {
            string     dateReport = dateMenu.Value.ToString("yyyy-MM-dd");
            ReportForm frmReport  = new ReportForm(dateReport);

            frmReport.Show();
        }
示例#22
0
        public FrmStockMasterReport()
        {
            InitializeComponent();

            _reportForm = new ReportForm<InwardMasterView, InwardMasterSearchRequest, InwardMaster>(groupBox1, bindingNavigator1, dataGridView1,
                                                                                           bindingNavigatorPositionItem.TextBox, lblReportStatus, lblReportSummary);
        }
示例#23
0
        private void raporToolStripMenuItem_Click(object sender, EventArgs e)
        {
            ReportForm frm = new ReportForm();

            frm.MdiParent = this;
            frm.Show();
        }
        private void RozrachunkiPrzeterminowaneForm_PrintItemClick(object sender, EventArgs e)
        {
            DialogResult result = MessageBox.Show("Czy wydrukować tylko zaznaczone pozycje ?", "EnovaTools", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Question);
            List <Enova.Business.Old.Types.RozrachunekRow> reportSource = null;

            if (result == DialogResult.Yes)
            {
                reportSource = new List <Enova.Business.Old.Types.RozrachunekRow>();
                foreach (DataGridViewRow row in DataGrid.SelectedRows)
                {
                    reportSource.Add((Enova.Business.Old.Types.RozrachunekRow)row.DataBoundItem);
                }
            }
            else if (result == DialogResult.No)
            {
                reportSource = new List <Enova.Business.Old.Types.RozrachunekRow>();
                foreach (DataGridViewRow row in DataGrid.Rows)
                {
                    reportSource.Add((Enova.Business.Old.Types.RozrachunekRow)row.DataBoundItem);
                }
            }

            if (reportSource != null)
            {
                ReportForm form = new ReportForm();
                form.ReportViewer.LocalReport.ReportPath = System.IO.Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Reports\\RozrachunkiPrzeterminowaneReport.rdlc");
                form.ReportViewer.LocalReport.DataSources.Clear();
                form.ReportViewer.LocalReport.DataSources.Add(new ReportDataSource("RozrachunekRow", reportSource));

                form.ShowDialog();
            }
        }
        public CustomerVendorDetails(UniEnums.VendorType custVendor)
        {
            InitializeComponent();

            _reportForm = new ReportForm<CompanyDetail>(bindingNavigator1, dataGridView1,
                                                  bindingNavigatorPositionItem.TextBox, lblReportStatus);
        }
示例#26
0
        public FrmDuplexPrintedPaperReport()
        {
            InitializeComponent();

            _reportForm = new ReportForm<DuplexPrintedPaper, DuplexPrintedPaperSearchRequest, DuplexPrintedPaper>(groupBox1, bindingNavigator1, dataGridView1,
                                                                                          bindingNavigatorPositionItem.TextBox, lblReportStatus, lblReportSummary);
        }
示例#27
0
        private void sumbitReportMenuItem_Click(object sender, EventArgs e)
        {
            ReportForm form = new ReportForm();

            form.Report = computer.GetReport();
            form.ShowDialog();
        }
示例#28
0
        public FrmRotaryReport()
        {
            InitializeComponent();

            _reportForm = new ReportForm<Rotary, RotarySearchRequest, Rotary>(groupBox1, bindingNavigator1, dataGridView1,
                                                                                          bindingNavigatorPositionItem.TextBox, lblReportStatus, lblReportSummary);
        }
示例#29
0
        public FrmDispatchReport()
        {
            InitializeComponent();

            _reportForm = new ReportForm<DispatchReportView, DispatchSearchRequest, Dispatch>(groupBox1, bindingNavigator1, dataGridView1,
                                                                                            bindingNavigatorPositionItem.TextBox, lblReportStatus,lblReportSummary);
        }
示例#30
0
 private void btnPrint_Click(object sender, EventArgs e)
 {
     if (_order.Items.Any())
     {
         ReportForm reportForm = new ReportForm(_order);
         reportForm.ShowDialog();
     }
 }
示例#31
0
        private void reportToolStripMenuItem_Click(object sender, EventArgs e)
        {
            ReportForm Report = new ReportForm();

            Report.FormBorderStyle = FormBorderStyle.FixedSingle;
            Report.MaximizeBox     = false;
            Report.Show();
        }
示例#32
0
文件: Admin.cs 项目: IEEfimov/Busines
        private void місячнеСальдоToolStripMenuItem_Click(object sender, EventArgs e)
        {
            ReportForm report = new ReportForm();
            int        yr     = DateTime.Today.Year;
            int        mth    = DateTime.Today.Month;

            report.viewMonth(new DateTime(yr, mth, 1));
        }
示例#33
0
        private void generateOccupancyReToolStripMenuItem_Click(object sender, EventArgs e)
        {
            ReportForm rf = new ReportForm(bookingController);

            rf.MdiParent     = this;    // Setting the MDI Parent
            rf.StartPosition = FormStartPosition.CenterParent;
            rf.Show();
        }
示例#34
0
        private void butGPA_Click(object sender, EventArgs e)
        {
            DataSet1.ReportsDataTable dt = new DataSet1.ReportsDataTable();
            dt = (DataSet1.ReportsDataTable)SetOrderDetails(listReports);
            ReportForm rf = new ReportForm(dt);

            rf.Show();
        }
示例#35
0
        private void btnGenerate_Click(object sender, RoutedEventArgs e)
        {
            getDR();

            ReportForm report = new ReportForm(filteredNetworkingSales, lstDrNoPayments, lstDrWithPayments);

            report.ShowDialog();
        }
示例#36
0
        private void btnPrint_Click(object sender, EventArgs e)
        {
            DataSet1.CustomerDataTable dt = new DataSet1.CustomerDataTable();
            dt = (DataSet1.CustomerDataTable)SetCustomerDetails(customer);
            ReportForm rf = new ReportForm(dt);

            rf.Show();
        }
示例#37
0
 public reportclassification()
 {
     OT                    = ObjectType.ot_None;
     form                  = ReportForm.rf_standard;
     fire                  = incidentfire.if_unknown;
     authorised_forms      = 0; /* [dlatikay 20140521] MULTIASPECT */
     authorised_efrclasses = new List <incidentfire>();
 }
示例#38
0
        public VendorDetailsFrm(UniEnums.VendorType vendorType)
        {
            InitializeComponent();

            _vendorType = vendorType;
            _reportForm = new ReportForm<VendorDetail>(bindingNavigator1, dataGridView1,
                                                      bindingNavigatorPositionItem.TextBox, lblReportStatus);
        }
示例#39
0
        public FrmItemMasterReport(string companyName)
        {
            InitializeComponent();

            _companyName = companyName;
            _reportForm = new ReportForm<RWPLLinqDataService.ItemMaster, ItemMasterSearchRequest, RWPLLinqDataService.ItemMaster>(groupBox1, bindingNavigator1, dataGridView1,
                                                                                          bindingNavigatorPositionItem.TextBox, lblReportStatus, lblReportSummary);
        }
示例#40
0
        public static void RunReportForm(MainForm form, int userId)
        {
            form.Hide();
            ReportForm reportForm = new ReportForm(userId);

            reportForm.Closed += (s, args) => form.Close();
            reportForm.Show();
        }
示例#41
0
 /// <summary>
 /// InitiliazeGUI
 /// </summary>
 /// <param name="parent"></param>
 public void InitiliazeGUI(Form parent)
 {
     // initialize GUI part
     this.parentForm     = parent;
     frmReport           = new ReportForm(this);
     frmReport.MdiParent = parent;
     frmReport.Show();
 }
示例#42
0
        /// <summary>
        /// Asks the user if the exception should be reported. If so, collects some data and send it to the server.
        /// </summary>
        /// <remarks>It does nothing at all if ServerURL is empty or ExceptionFilter( ex ) returns false</remarks>
        /// <param name="ex">exception to report</param>
        public static void ReportException(Exception ex)
        {
            if (!string.IsNullOrWhiteSpace(ServerURL) && ((ExceptionFilter == null) || ExceptionFilter(ex)))
            {
                try {
                    ReportForm    form           = new ReportForm(GetReportInformation?.Invoke());
                    List <string> additionalInfo = new List <string>();

                    if (UseShortVersion)
                    {
                        additionalInfo.Add("Full version: " + GetAppVersion(false));
                    }

                    additionalInfo.Add(GetOpenForms());
                    additionalInfo.Add(GetStackTrace(ex));

                    additionalInfo.RemoveAll(string.IsNullOrWhiteSpace);

                    Trace.WriteLine(string.Join("\n\n", additionalInfo));

                    if (form.ShowDialog() == DialogResult.OK)
                    {
                        ReportInformation   info      = form.Info;
                        WebClient           webClient = new WebClient();
                        NameValueCollection values    = new NameValueCollection
                        {
                            { "email", "\"" + info.UserName + "\" <" + info.EMail + ">" },
                            { "comment", info.Comments },
                            { "version", GetAppVersion(UseShortVersion) },
                            { "summary", ex.ToString() },
                            { "crashes", string.Join("\n\n---\n\n", additionalInfo) },
                            { "system", GetSystemData() },
                            { "shell", GetShellData(ex) },
                            { "preferences", GetAppConfig() },
                        };

                        SaveReportInformation?.Invoke(info);

                        if (CollectEventLog)
                        {
                            values["eventlog"] = GetEventLog();
                        }

                        if (Proxy != null)
                        {
                            webClient.Proxy = Proxy;
                        }

                        webClient.Headers[HttpRequestHeader.UserAgent] = Application.ProductName + "/" + Application.ProductVersion;

                        webClient.UploadValuesAsync(new Uri(ServerURL), values);
                    }
                }
                catch {
                }
            }
        }
示例#43
0
        private void BtnPrint_Click(object sender, EventArgs e)
        {
            ReportForm reportForm = new ReportForm();

            reportForm.StaffScore.SetDataSource(listStaff);
            reportForm.StaffScore.SetParameterValue(0, "បញ្ជីឈ្មោះបុគ្កលិកឆ្នើមទាំង ១០ រូប");
            reportForm.StaffScore.SetParameterValue(1, "នៃការិយាល័យ ព័ត៌មានវិទ្យា នៃស្ថាប័នជីជី");
            reportForm.ShowDialog();
        }
示例#44
0
      public ActionResult DownloadReport(string reportType, string year, string duration, string projectId)
      {
          var report = new ReportForm()
          {
              Id        = 0,
              Duration  = duration,
              Year      = int.Parse(year),
              ProjectId = int.Parse(projectId)
          };
          var reportData = this.GetProjectReportData(report);


          ReportDocument rd = new ReportDocument();

          rd.Load(Path.Combine(Server.MapPath("~/Reports/ProjectCrystalReport.rpt")));
          rd.SetDataSource(reportData);

          Response.Buffer = false;
          Response.ClearContent();
          Response.ClearHeaders();


          if (reportType == "csv")
          {
              //Stream stream = rd.ExportToStream(CrystalDecisions.Shared.ExportFormatType.ExcelWorkbook);
              //stream.Seek(0, SeekOrigin.Begin);



              //return File(stream, "Application/xlsx", "ProjectReport.xlsx");

              //get the project name

              var projectname = this._context.Projects.FirstOrDefault(p => p.Id == report.ProjectId).Name;

              StringBuilder builder = new StringBuilder();

              builder.AppendLine("Project Level Indicator Name,Target,BaseLine Name,Remaining");


              foreach (var item in reportData)
              {
                  builder.AppendLine($"{item.IndicatorName},{item.Target},{item.BaseLine},{item.Remaining}");
              }
              return(File(Encoding.UTF8.GetBytes(builder.ToString()), "text/csv", $"{projectname} Project Report.csv"));
          }
          else
          {
              Stream stream = rd.ExportToStream(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat);
              stream.Seek(0, SeekOrigin.Begin);



              return(File(stream, "Application/pdf", "ProjectReport.pdf"));
          }
      }
示例#45
0
        private void obrotFVDrukujButton_Click(object sender, EventArgs e)
        {
            string   przedstawiciel = (string)this.przedstawicieleComboBox.SelectedItem;
            DateTime dataOd         = this.getDataOd();
            DateTime dataDo         = this.getDataDo();

            ReportForm raport = new ReportForm("Reports\\DokumentyObrotyReport.rdlc", "DokumentyProwizjeViewRow", dokObrotyFV, null);

            raport.Show();
        }
示例#46
0
        public FrmStockMasterReport(string bf = "", string gsm = "", string size = "")
        {
            InitializeComponent();

            _bf = bf;
            _gsm = gsm;
            _size = size;
            _reportForm = new ReportForm<InwardMasterView, InwardMasterSearchRequest, InwardMaster>(groupBox1, bindingNavigator1, dataGridView1,
                                                                                           bindingNavigatorPositionItem.TextBox, lblReportStatus, lblReportSummary);
        }
示例#47
0
        public CompanyDetailsfrm(UniEnums.CompanyType companyType)
        {
            InitializeComponent();

            _reportForm = new ReportForm<VendorDetail>(bindingNavigator1, dataGridView1,
                                                     bindingNavigatorPositionItem.TextBox, lblReportStatus);

            _pagination = new GridPagination<CustomerDetail>();
            _uniDb = new UniDBDataContext();
            _companyType = companyType;
        }
示例#48
0
 private void btnOpen_Click(object sender, EventArgs e)
 {
     OpenFileDialog openFileDialog = new OpenFileDialog();
     openFileDialog.Title = "Open OBD-II Diagnostic Report";
     openFileDialog.Filter = "ProScan Report Files (*.obd)|*.obd";
     openFileDialog.FilterIndex = 0;
     openFileDialog.RestoreDirectory = true;
     int num1 = (int)openFileDialog.ShowDialog();
     if (openFileDialog.FileName.Length <= 0)
         return;
     FileStream fileStream = File.OpenRead(openFileDialog.FileName);
     BinaryReader binaryReader = new BinaryReader((Stream)fileStream);
     m_bReportForm = new ReportForm();
     m_bReportForm.ReportPage1.ShopName = binaryReader.ReadString();
     m_bReportForm.ReportPage1.ShopAddress1 = binaryReader.ReadString();
     m_bReportForm.ReportPage1.ShopAddress2 = binaryReader.ReadString();
     m_bReportForm.ReportPage1.ShopTelephone = binaryReader.ReadString();
     m_bReportForm.ReportPage1.ClientName = binaryReader.ReadString();
     m_bReportForm.ReportPage1.ClientAddress1 = binaryReader.ReadString();
     m_bReportForm.ReportPage1.ClientAddress2 = binaryReader.ReadString();
     m_bReportForm.ReportPage1.ClientTelephone = binaryReader.ReadString();
     m_bReportForm.ReportPage1.Vehicle = binaryReader.ReadString();
     m_bReportForm.ReportPage1.GenerationDate = binaryReader.ReadString();
     m_bReportForm.ReportPage1.MilStatus = binaryReader.ReadBoolean();
     m_bReportForm.ReportPage1.TotalCodes = binaryReader.ReadInt32();
     m_bReportForm.ReportPage1.FreezeFrameDTC = binaryReader.ReadString();
     StringCollection stringCollection1 = new StringCollection();
     uint num2 = 25U;
     do
     {
         string str = binaryReader.ReadString();
         if (str.Length > 0)
             stringCollection1.Add(str);
         --num2;
     }
     while (num2 > 0U);
     m_bReportForm.ReportPage1.DTCList = stringCollection1;
     StringCollection stringCollection2 = new StringCollection();
     uint num3 = 25U;
     do
     {
         string str = binaryReader.ReadString();
         if (str.Length > 0)
             stringCollection2.Add(str);
         --num3;
     }
     while (num3 > 0U);
     m_bReportForm.ReportPage1.DTCDefinitionList = stringCollection2;
     StringCollection stringCollection3 = new StringCollection();
     uint num4 = 25U;
     do
     {
         string str = binaryReader.ReadString();
         if (str.Length > 0)
             stringCollection3.Add(str);
         --num4;
     }
     while (num4 > 0U);
     m_bReportForm.ReportPage1.PendingList = stringCollection3;
     StringCollection stringCollection4 = new StringCollection();
     uint num5 = 25U;
     do
     {
         string str = binaryReader.ReadString();
         if (str.Length > 0)
             stringCollection4.Add(str);
         --num5;
     }
     while (num5 > 0U);
     m_bReportForm.ReportPage1.PendingDefinitionList = stringCollection4;
     m_bReportForm.ReportPage1.FuelSystem1Status = binaryReader.ReadString();
     m_bReportForm.ReportPage1.FuelSystem2Status = binaryReader.ReadString();
     m_bReportForm.ReportPage1.CalculatedLoad = binaryReader.ReadDouble();
     m_bReportForm.ReportPage1.EngineCoolantTemp = binaryReader.ReadDouble();
     m_bReportForm.ReportPage1.STFT1 = binaryReader.ReadDouble();
     m_bReportForm.ReportPage1.STFT2 = binaryReader.ReadDouble();
     m_bReportForm.ReportPage1.STFT3 = binaryReader.ReadDouble();
     m_bReportForm.ReportPage1.STFT4 = binaryReader.ReadDouble();
     m_bReportForm.ReportPage1.LTFT1 = binaryReader.ReadDouble();
     m_bReportForm.ReportPage1.LTFT2 = binaryReader.ReadDouble();
     m_bReportForm.ReportPage1.LTFT3 = binaryReader.ReadDouble();
     m_bReportForm.ReportPage1.LTFT4 = binaryReader.ReadDouble();
     m_bReportForm.ReportPage1.IntakePressure = binaryReader.ReadDouble();
     m_bReportForm.ReportPage1.EngineRPM = binaryReader.ReadDouble();
     m_bReportForm.ReportPage1.VehicleSpeed = binaryReader.ReadDouble();
     m_bReportForm.ReportPage1.SparkAdvance = binaryReader.ReadDouble();
     m_bReportForm.ReportPage1.ShowFuelSystemStatus = binaryReader.ReadBoolean();
     m_bReportForm.ReportPage1.ShowCalculatedLoad = binaryReader.ReadBoolean();
     m_bReportForm.ReportPage1.ShowEngineCoolantTemp = binaryReader.ReadBoolean();
     m_bReportForm.ReportPage1.ShowSTFT13 = binaryReader.ReadBoolean();
     m_bReportForm.ReportPage1.ShowSTFT24 = binaryReader.ReadBoolean();
     m_bReportForm.ReportPage1.ShowLTFT13 = binaryReader.ReadBoolean();
     m_bReportForm.ReportPage1.ShowLTFT24 = binaryReader.ReadBoolean();
     m_bReportForm.ReportPage1.ShowIntakePressure = binaryReader.ReadBoolean();
     m_bReportForm.ReportPage1.ShowEngineRPM = binaryReader.ReadBoolean();
     m_bReportForm.ReportPage1.ShowVehicleSpeed = binaryReader.ReadBoolean();
     m_bReportForm.ReportPage1.ShowSparkAdvance = binaryReader.ReadBoolean();
     m_bReportForm.ReportPage1.MisfireMonitorSupported = binaryReader.ReadBoolean();
     m_bReportForm.ReportPage1.MisfireMonitorCompleted = binaryReader.ReadBoolean();
     m_bReportForm.ReportPage1.FuelSystemMonitorSupported = binaryReader.ReadBoolean();
     m_bReportForm.ReportPage1.FuelSystemMonitorCompleted = binaryReader.ReadBoolean();
     m_bReportForm.ReportPage1.ComprehensiveMonitorSupported = binaryReader.ReadBoolean();
     m_bReportForm.ReportPage1.ComprehensiveMonitorCompleted = binaryReader.ReadBoolean();
     m_bReportForm.ReportPage1.CatalystMonitorSupported = binaryReader.ReadBoolean();
     m_bReportForm.ReportPage1.CatalystMonitorCompleted = binaryReader.ReadBoolean();
     m_bReportForm.ReportPage1.HeatedCatalystMonitorSupported = binaryReader.ReadBoolean();
     m_bReportForm.ReportPage1.HeatedCatalystMonitorCompleted = binaryReader.ReadBoolean();
     m_bReportForm.ReportPage1.EvapSystemMonitorSupported = binaryReader.ReadBoolean();
     m_bReportForm.ReportPage1.EvapSystemMonitorCompleted = binaryReader.ReadBoolean();
     m_bReportForm.ReportPage1.SecondaryAirMonitorSupported = binaryReader.ReadBoolean();
     m_bReportForm.ReportPage1.SecondaryAirMonitorCompleted = binaryReader.ReadBoolean();
     m_bReportForm.ReportPage1.RefrigerantMonitorSupported = binaryReader.ReadBoolean();
     m_bReportForm.ReportPage1.RefrigerantMonitorCompleted = binaryReader.ReadBoolean();
     m_bReportForm.ReportPage1.OxygenSensorMonitorSupported = binaryReader.ReadBoolean();
     m_bReportForm.ReportPage1.OxygenSensorMonitorCompleted = binaryReader.ReadBoolean();
     m_bReportForm.ReportPage1.OxygenSensorHeaterMonitorSupported = binaryReader.ReadBoolean();
     m_bReportForm.ReportPage1.OxygenSensorHeaterMonitorCompleted = binaryReader.ReadBoolean();
     m_bReportForm.ReportPage1.EGRSystemMonitorSupported = binaryReader.ReadBoolean();
     m_bReportForm.ReportPage1.EGRSystemMonitorCompleted = binaryReader.ReadBoolean();
     binaryReader.Close();
     fileStream.Close();
     int num6 = (int)m_bReportForm.ShowDialog();
 }
示例#49
0
 /// <summary>
 /// InitiliazeGUI
 /// </summary>
 /// <param name="parent"></param>
 public void InitiliazeGUI(Form parent)
 {
     // initialize GUI part
     this.parentForm = parent;
     frmReport = new ReportForm(this);
     frmReport.MdiParent = parent;
     frmReport.Show();
 }
 public DaocLoggerV3TextLogReaderStats()
 {
     report = new ReportForm();
     report.buttonReset.Click += new EventHandler(ResetClick);
     MainForm.Instance.FilesLoaded += new MainForm.LogReaderDelegate(ShowReport);
 }
示例#51
0
        private void PrintRoport(ReportForm.RptHander aReportName, System.Collections.ArrayList arrList, System.Data.DataTable dt, System.Data.DataTable dtDev, string sUser, DateTime sDate, DateTime eDate)
        {
            string sReportName = aReportName.ToString();
            string startDate = sDate.ToString("yyyy-MM-dd HH:mm");
            string endDate = eDate.ToString("yyyy-MM-dd HH:mm");

            DevExpress.XtraReports.UI.XtraReport myXtraReport = null;

            DevExpress.XtraReports.UI.XtraReport NewsPaper = null;

            //是否為主從報表
            foreach (string s in Enum.GetNames(typeof(ReportForm.CommClass.Father.HasMain)))
            {
                if (aReportName.ToString() == s)
                {
                    myXtraReport = new ReportForm.clsReport(sReportName.ToString(), new VDReportHandler(), new VDReportMaim(), new VDReportMinor(), 4, arrList, dt, dtDev, sUser, startDate, endDate);
                    myXtraReport.Print(@"\\xml\HPLaserJ");
                    //myXtraReport.ShowPreview();
                    break;
                }
            }
            //不是主從報表,但有設備重類
            foreach (string s in Enum.GetNames(typeof(ReportForm.CommClass.Father.HasKind)))
            {
                if (aReportName.ToString() == s)
                {
                    List<int> perList = new List<int>();
                    perList.AddRange(new int[] { 12, 12, 12, 40, 12, 12 });
                    myXtraReport = new ReportForm.clsReport(sReportName.ToString(), new HadKindHandler(perList), null, new HadKindMinor(perList), 3, arrList, dt, dtDev, sUser, startDate, endDate);
                    //myXtraReport.ShowPreview();
                    myXtraReport.Print(@"\\xml\HPLaserJ");
                    break;
                }
            }
            //不是主從報表,也沒有有設備重類
            foreach (string s in Enum.GetNames(typeof(ReportForm.CommClass.Father.NonKind)))
            {
                if (aReportName.ToString() == s)
                {
                    ReportForm.clsReport report = new ReportForm.clsReport(sReportName.ToString(), new HadKindHandler(), null, new HadKindMinor(), 3, arrList, dt, null, sUser, startDate, endDate);
                    report.IsShowTime = false;
                    myXtraReport = report;
                    //myXtraReport.ShowPreview();
                    myXtraReport.Print(@"\\xml\HPLaserJ");
                    //NewsPaper.Print();
                    break;
                }
            }

            //SHIN ADD  2010-11-05
            if (aReportName.ToString() == "每日定時路況新聞稿")
            {

                NewsPaper = new ReportForm.clsNewsPaper(sReportName.ToString(), section, dtDev, DateTime.Now);
                NewsPaper.PrintingSystem.ShowPrintStatusDialog = false;      //取消列印的訊息視窗
                NewsPaper.PrintingSystem.ShowMarginsWarning = false;

                ExportDataTableToExcel(aReportName.ToString(), dt);
                //NewsPaper.ShowPreview();
                //NewsPaper.Print();
                NewsPaper.Print(@"\\xml\HPLaserJ");

            }
            else if (aReportName.ToString() == "路段壅塞狀況一分鐘報表")
            {

                ExportDataTableToExcel(aReportName.ToString(), dt);
            }

            //75, 20, 20, 142

            //timer.Change(3000, -1);
            //myXtraReport.Landscape = true;
            //myXtraReport.PaperKind = System.Drawing.Printing.PaperKind.Letter;
            //myXtraReport.PrintingSystem.ShowPrintStatusDialog = false;      //取消列印的訊息視窗
            //myXtraReport.PrintingSystem.ShowMarginsWarning = false;
            //myXtraReport.ShowPreviewDialog();
            //string query = string.Format("SELECT * from Win32_Printer");
            //ManagementObjectSearcher searcher = new ManagementObjectSearcher(query);
            //ManagementObjectCollection coll = searcher.Get();

            //foreach (ManagementObject printer in coll)
            //{
            //    foreach (PropertyData property in printer.Properties)
            //    {
            //        Console.WriteLine(string.Format("{0}: {1}", property.Name, property.Value));
            //    }
            //}
            //myXtraReport.ShowPreview();
            //myXtraReport.Print(@"\\testdb2\MainPrinter");
            //myXtraReport.Print(@"\\xml\HPLaserJ");
        }
示例#52
0
        //private void Detector(object state)
        //{
        //    //System.Diagnostics.Process Processes = System.Diagnostics.Process.GetCurrentProcess();
        //    try
        //    {
        //        System.Windows.Forms.SendKeys.SendWait("{ENTER}");
        //        //foreach (System.ComponentModel.Component con in Processes.Container.Components)
        //        //{
        //        //    System.Windows.Forms.MessageBox.Show(con.ToString());
        //        //}
        //    }
        //    catch (System.NullReferenceException ex)
        //    {
        //        System.Windows.Forms.MessageBox.Show(ex.Message);
        //    }
        //}
        public void GetData(ReportForm.RptHander aReportName, string user, List<string> DevorSys, DateTime starTime, DateTime endTime, ref System.Data.DataTable dtDev, ref System.Data.DataTable dt, ref System.Collections.ArrayList arrListRpt)
        {
            clsDBRpt rpt = new clsDBRpt();
            int MyCol = -1;

            //報表標題陣列初始化
            arrListRpt.Clear();
            string sevorSys = "(";
            foreach (string s in DevorSys)
                sevorSys += "'" + s + "',";
            sevorSys = sevorSys.TrimEnd(',');
            sevorSys += ")";

            switch (aReportName)
            {
                case ReportForm.RptHander.操作記錄報表:
                    {
                        //把資料撈出來放進table
                        dt = rpt.GetctrlRPT_OPR1_01(sevorSys, user, starTime, endTime);

                        dtDev = rpt.GetDeviceList();

                        MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,操作時間, ");
                        MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,操作種類, ");
                        MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,操作設備, ");
                        MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,操作/執行狀態內容, ");
                        MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,操作人員, ");
                        MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,執行結果, ");
                    }
                    break;

                case ReportForm.RptHander.每日定時路況新聞稿:
                    {

                        string N1;
                        string N3;
                        string N4;
                        string N6;
                        //把資料撈出來放進table
                        dt = rpt.GetNewspaper(DateTime.Now.AddMinutes(-1).ToString("yyyy-MM-dd HH:mm"));
                        //dt = rpt.GetNewspaper("2010-11-03 12:00:00");

                        if (dt.Rows.Count > 0)
                        {

                            N1 = "2.路段狀況\n國道一號 新竹系統到大林路段 順暢/\n ";
                            N3 = "國道三號 香山到古坑 順暢/\n";
                            N4 = "國道四號 清水端到豐原端 順暢/\n";
                            N6 = "國道六號 霧峰系統到埔里端 順暢/\n";
                            for (int i = 0; i < dt.Rows.Count; i++)
                            {
                                if (dt.Rows[i]["LINEID"].ToString() == "N1")
                                {
                                    N1 += "\t" + dt.Rows[i]["from_location"] + "路段" + dt.Rows[i]["congested"] + "平均時速" + dt.Rows[i]["average_speed"].ToString().Trim() + "KM/H" + "\n";

                                }
                                else if (dt.Rows[i]["LINEID"].ToString() == "N3")
                                {

                                    N3 += "\t" + dt.Rows[i]["from_location"] + "路段" + dt.Rows[i]["congested"] + "平均時速" + dt.Rows[i]["average_speed"].ToString().Trim() + "KM/H" + "\n";

                                }
                                else if (dt.Rows[i]["LINEID"].ToString() == "N4")
                                {

                                    N4 += "\t" + dt.Rows[i]["from_location"] + "路段" + dt.Rows[i]["congested"] + "平均時速" + dt.Rows[i]["average_speed"].ToString().Trim() + "KM/H" + "\n";

                                }
                                else if (dt.Rows[i]["LINEID"].ToString() == "N6")
                                {

                                    N6 += "\t" + dt.Rows[i]["from_location"] + "路段" + dt.Rows[i]["congested"] + "平均時速" + dt.Rows[i]["average_speed"].ToString().Trim() + "KM/H" + "\n";

                                }
                            }

                            section = N1 + N3 + N4 + N6;
                        }

                        //dtDev = rpt.GetDeviceList();

                    }
                    break;

                case ReportForm.RptHander.路段壅塞狀況一分鐘報表:
                    {
                        starTime = DateTime.Now.AddMinutes(-1);
                        endTime = DateTime.Now;

                        //把資料撈出來放進table
                        dt = rpt.GetTRAFFICDATALOG(starTime, endTime);

                        //dtDev = rpt.GetDeviceList();

                        MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,路線, ");
                        MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,方向, ");
                        MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,時間, ");
                        MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,路段起點, ");
                        MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,路段起點里程, ");
                        MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,路段迄點, ");
                        MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,路段迄點里程, ");
                        MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,總速度, ");
                        MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,總流量, ");
                        MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,壅塞程度, ");
                    }
                    break;

            }

            //if (CtrlName == ctrlRPT_OPR1_01.Tag.ToString())//操作記錄報表
            //{

            //    //把資料撈出來放進table
            //    if (ctrlRPT_OPR1_01.GetPeopleList == "")
            //    {
            //        dt = rpt.GetctrlRPT_OPR1_01(ctrlRPT_OPR1_01.sDevSystemList, "", ctrlRPT_OPR1_01.TimeS, ctrlRPT_OPR1_01.TimeE);
            //    }
            //    else
            //    {
            //        dt = rpt.GetctrlRPT_OPR1_01(ctrlRPT_OPR1_01.sDevSystemList, ctrlRPT_OPR1_01.sDevPeopleList, ctrlRPT_OPR1_01.TimeS, ctrlRPT_OPR1_01.TimeE);

            //    }
            //    dtDev = rpt.GetDeviceList();

            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,操作時間, ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,操作種類, ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,操作設備, ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,操作/執行狀態內容, ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,操作人員, ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,執行結果, ");
            //}
            //else if (CtrlName == ctrlRPT_HDA_11.Tag.ToString())//匝道平均每日交通量統計報表
            //{
            //    //撈出符合畫面上的資料
            //    dt = rpt.GetCtrlRPT_HDA_11(ctrlRPT_HDA_11.sDevSystemList, ctrlRPT_HDA_11.TimeS, ctrlRPT_HDA_11.TimeE);

            //    dtvd = rpt.GetCtrlRPT_HDA_11vd(ctrlRPT_HDA_11.sDevSystemList, ctrlRPT_HDA_11.TimeS, ctrlRPT_HDA_11.TimeE);
            //    dtDev = rpt.Get_RPT_VD(ctrlRPT_HDA_11.Tag.ToString(), ADDVdstring(dtvd));

            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,設備, , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,日期, , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,聯結車, , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,聯結車比率%, , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,大型車, , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,大型車比率%, , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,小型車, , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,小型車比率%, , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,合計總流量, , ");

            //}
            //else if (CtrlName == ctrlRPT_HDA_10.Tag.ToString())//主線平均每日交通量統計報表
            //{
            //    dt = rpt.Get_RPT_LineDayVolume(ctrlRPT_HDA_10.sDevSystemList, ctrlRPT_HDA_10.TimeS, ctrlRPT_HDA_10.TimeE);
            //    //this.dgvReport.DataSource = dt;

            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,設備編號, ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,路線, ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,方向, ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,里程, ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,日期, ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,聯結車, ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,比率%, ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,大型車, ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,比率%, ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,小型車, ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,比率%, ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,合計總流量, ");

            //}
            //else if (CtrlName == ctrlRPT_HDA_12.Tag.ToString())//全區匝道全日交通量統計報表
            //{
            //    dt = rpt.Get_RPT_RAMPFULLDAY(ctrlRPT_HDA_12.sDevSystemList, ctrlRPT_HDA_12.TimeS, ctrlRPT_HDA_12.TimeE);

            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,高速公路編號, ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,交流道名稱, ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,方向, ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,流量, ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,設備編號, ");

            //}
            //else if (CtrlName == ctrlRPT_HDA_14.Tag.ToString())//全區主線小時路段平均速度統計報表
            //{
            //    dt = rpt.Get_RPT_SectionCarSpeed(ctrlRPT_HDA_14.sDevSystemList, ctrlRPT_HDA_14.TimeS, ctrlRPT_HDA_14.TimeE);

            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,高速公路編號, ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,主線路段, ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,方向, ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,平均速度, ");

            //}
            //else if (CtrlName == ctrlRPT_HDA_13.Tag.ToString())//全區主線全日交通量統計報表
            //{
            //    dt = rpt.Get_RPT_LINEFULLDAY(ctrlRPT_HDA_13.sDevSystemList, ctrlRPT_HDA_13.TimeS, ctrlRPT_HDA_13.TimeE);

            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,高速公路編號, ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,主線路段, ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,方向, ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,流量, ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,偵測器編號, ");
            //}
            //else if (CtrlName == ctrlRPT_HDA_05.Tag.ToString())//小時交通平均速度統計報表
            //{
            //    dt = rpt.Get_RPT_HourSpeed(ctrlRPT_HDA_05.sDevSystemList, ctrlRPT_HDA_05.TimeS, ctrlRPT_HDA_05.TimeE);

            //    dtvd = rpt.Get_RPT_HourSpeedVd(ctrlRPT_HDA_05.sDevSystemList, ctrlRPT_HDA_05.TimeS, ctrlRPT_HDA_05.TimeE);

            //    dtDev = rpt.Get_RPT_VD(ctrlRPT_HDA_05.Tag.ToString(), ADDVdstring(dtvd));

            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, "  ,時間, , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, "  ,設備, , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, "  ,總平均, , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, "  ,車道一, , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, "  ,車道二, , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, "  ,車道三, , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, "  ,車道四, , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, "  ,車道五, , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, "  ,車道六, , ");

            //}
            //else if (CtrlName == ctrlRPT_DATA_03.Tag.ToString())//一分鐘交通資料記錄報表
            //{
            //    dt = rpt.Get_RPT_VD1MIN(ctrlRPT_DATA_03.sDevSystemList, ctrlRPT_DATA_03.TimeS, ctrlRPT_DATA_03.TimeE);

            //    dtvd = rpt.GetReport(ctrlRPT_DATA_03.sDevSystemList, ctrlRPT_DATA_03.TimeS, ctrlRPT_DATA_03.TimeE, "", "一分鐘交通資料VD");
            //    dtDev = rpt.Get_RPT_VD(ctrlRPT_DATA_03.Tag.ToString(), ADDVdstring(dtvd));

            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,時間, , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,設備, , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " , , , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,總流量,平均速度,平均占量");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, "  車,小計,平均,平均");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, "  道,聯結, , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, "  一,大車, , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,小車, , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, "  車 ,小計,平均,平均");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, "  道 ,聯結, , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, "  二 ,大車, , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,小車, , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, "  車 ,小計,平均,平均");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, "  道 ,聯結, , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, "  三 ,大車, , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,小車, , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, "  車 ,小計,平均,平均");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, "  道 ,聯結, , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, "  四 ,大車, , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,小車, , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, "  車 ,小計,平均,平均");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, "  道 ,聯結, , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, "  五 ,大車, , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,小車, , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, "  車 ,小計,平均,平均");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, "  道 ,聯結, , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, "  六 ,大車, , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,小車, , ");

            //}
            //else if (CtrlName == ctrlRPT_DATA_01.Tag.ToString())//五分鐘交通資料記錄報表
            //{
            //    dt = rpt.Get_RPT_VD5MIN(ctrlRPT_DATA_01.sDevSystemList, ctrlRPT_DATA_01.TimeS, ctrlRPT_DATA_01.TimeE);

            //    dt.Columns.Remove("priority");

            //    dtvd = rpt.GetReport(ctrlRPT_DATA_01.sDevSystemList, ctrlRPT_DATA_01.TimeS, ctrlRPT_DATA_01.TimeE, "", "五分鐘交通資料VD");
            //    dtDev = rpt.Get_RPT_VD(ctrlRPT_DATA_01.Tag.ToString(), ADDVdstring(dtvd));

            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " , , , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,時間, , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,設備, , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,壅塞程度, , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,總流量,平均速度,平均占量");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, "車,小計,平均,平均");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, "道,聯結, , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, "一,大車, , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,小車, , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, "車,小計,平均,平均");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, "道,聯結, , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, "二,大車, , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,小車, , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, "車,小計,平均,平均");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, "道,聯結, , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, "三,大車, , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,小車, , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, "車,小計,平均,平均");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, "道,聯結, , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, "四,大車, , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,小車, , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, "車,小計,平均,平均");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, "道,聯結, , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, "五,大車, , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,小車, , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, "車,小計,平均,平均");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, "道,聯結, , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, "六,大車, , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,小車, , ");
            //}
            //else if (CtrlName == ctrlRPT_DATA_06.Tag.ToString())//現點速率調查交通資料記錄報表
            //{
            //    dt = rpt.Get_RPT_VDSPOTSPEED(ctrlRPT_DATA_06.sDevSystemList, ctrlRPT_DATA_06.TimeS, ctrlRPT_DATA_06.TimeE);

            //    //撈出符合Gridview上的資料(這裡撈只是要確定這裡撈出的VD設備名稱有資料)
            //    dtvd = rpt.GetReport(ctrlRPT_DATA_06.sDevSystemList, ctrlRPT_DATA_06.TimeS, ctrlRPT_DATA_06.TimeE, "", "現點速率VD");
            //    dtDev = rpt.Get_RPT_VD(ctrlRPT_DATA_06.Tag.ToString(), ADDVdstring(dtvd));

            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,時間, , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,設備, , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " , , , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,總流量,平均速度,平均占量");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, "車,聯結, , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, "道,大車, , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, "一,小車, , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, "車,聯結, , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, "道,大車, , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, "二,小車, , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, "車,聯結, , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, "道,大車, , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, "三,小車, , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, "車,聯結, , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, "道,大車, , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, "四,小車, , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, "車,聯結, , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, "道,大車, , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, "五,小車, , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, "車,聯結, , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, "道,大車, , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, "六,小車, , ");
            //}
            //else if (CtrlName == ctrlRPT_STA_01.Tag.ToString())//現場終端設備狀態記錄報表
            //{
            //    dt = rpt.Get_RPT_DeviceStatus(ctrlRPT_STA_01.sDevSystemList, ctrlRPT_STA_01.TimeS, ctrlRPT_STA_01.TimeE);

            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,設備編號, ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,路線, ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,位置, ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,方向, ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,里程, ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,故障模組/原因, ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,發生時間, ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,恢復時間, ");

            //}
            //else if (CtrlName == ctrlRPT_OPR2_07.Tag.ToString())//定時比對記錄報表
            //{
            //    //撈出符合畫面上的資料
            //    dt = rpt.Get_RPT_tblDeviceStatusLog(ctrlRPT_OPR2_07.sDevSystemList, ctrlRPT_OPR2_07.TimeS, ctrlRPT_OPR2_07.TimeE);

            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,設備編號, ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,路線, ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,位置, ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,方向, ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,里程, ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,時間, ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,中心顯示內容, ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,現場顯示內容, ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,比對結果, ");
            //}
            //else if (CtrlName == ctrlRPT_MON_01.Tag.ToString())//資訊可變標誌即時資料報表
            //{
            //    //撈出符合畫面上的資料
            //    dt = rpt.Get_RPT_tblDeviceStatus(ctrlRPT_MON_01.sDevSystemList);

            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,設備編號, ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,設備位置, ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,連線狀態, ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,操作模式, ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,操作狀態, ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,顯示資訊, ");

            //}
            //else if (CtrlName == ctrlRPT_DATA_02.Tag.ToString())//五分鐘車道使用率及車間距報表
            //{
            //    dt = rpt.Get_RPT_VD5MIN_INTERVAL(ctrlRPT_DATA_02.sDevSystemList, ctrlRPT_DATA_02.TimeS, ctrlRPT_DATA_02.TimeE);

            //    dtvd = rpt.GetReport(ctrlRPT_DATA_02.sDevSystemList, ctrlRPT_DATA_02.TimeS, ctrlRPT_DATA_02.TimeE, "", "五分鐘車間距資料VD");

            //    dtDev = rpt.Get_RPT_VD(ctrlRPT_DATA_02.Tag.ToString(), ADDVdstring(dtvd));

            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " , ,時間, ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " , ,設備, ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,車,使用率, ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,道,車長, ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,一,車間距, ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,車,使用率, ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,道,車長, ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,二,車間距, ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,車,使用率, ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,道,車長, ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,三,車間距, ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,車,使用率, ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,道,車長, ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,四,車間距, ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,車,使用率, ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,道,車長, ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,五,車間距, ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,車,使用率, ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,道,車長, ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,六,車間距, ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,總平均,車 長, ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,總平均,車間距, ");

            //}
            //else if (CtrlName == ctrlRPT_HDA_01.Tag.ToString())//小時交通資料紀錄報表
            //{
            //    dt = rpt.Get_RPT_VD1HR(ctrlRPT_HDA_01.sDevSystemList, ctrlRPT_HDA_01.TimeS, ctrlRPT_HDA_01.TimeE);

            //    dtvd = rpt.GetReport(ctrlRPT_HDA_01.sDevSystemList, ctrlRPT_HDA_01.TimeS, ctrlRPT_HDA_01.TimeE, "", "一小時交通資料VD");
            //    dtDev = rpt.Get_RPT_VD(ctrlRPT_HDA_01.Tag.ToString(), ADDVdstring(dtvd));

            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " , , , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,時間, , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,設備, , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " , , , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,總流量,平均速度,平均占量");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, "車,小計,平均,平均");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, "道,聯結, , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, "一,大車, , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,小車, , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, "車,小計,平均,平均");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, "道,聯結, , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, "二,大車, , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,小車, , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, "車,小計,平均,平均");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, "道,聯結, , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, "三,大車, , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,小車, , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, "車,小計,平均,平均");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, "道,聯結, , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, "四,大車, , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,小車, , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, "車,小計,平均,平均");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, "道,聯結, , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, "五,大車, , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,小車, , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, "車,小計,平均,平均");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, "道,聯結, , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, "六,大車, , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,小車, , ");

            //}
            //else if (CtrlName == ctrlRPT_HDA_03.Tag.ToString())//小時交通流量統計報表(依日期時段彙整)
            //{
            //    dt = rpt.Get_RPT_HourVolume(ctrlRPT_HDA_03.sDevSystemList, ctrlRPT_HDA_03.TimeS, ctrlRPT_HDA_03.TimeE);

            //    dtvd = rpt.Get_RPT_HourVolumeVD(ctrlRPT_HDA_03.sDevSystemList, ctrlRPT_HDA_03.TimeS, ctrlRPT_HDA_03.TimeE);
            //    dtDev = rpt.Get_RPT_VD("小時交通流量統計", ADDVdstring(dtvd));

            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, "時間, , , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, "設備, , , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, "總流量, , , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, "小,聯結, , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, "計,大車, , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, "  ,小車, , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, "車,小計, , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, "道,聯結, , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, "一,大車, , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, "  ,小車, , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, "車,小計, , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, "道,聯結, , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, "二,大車, , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, "  ,小車, , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, "車,小計, , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, "道,聯結, , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, "三,大車, , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, "  ,小車, , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, "車,小計, , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, "道,聯結, , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, "四,大車, , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, "  ,小車, , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, "車,小計, , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, "道,聯結, , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, "五,大車, , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, "  ,小車, , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, "車,小計, , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, "道,聯結, , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, "六,大車, , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, "  ,小車, , ");
            //}
            //else if (CtrlName == ctrlRPT_DATA_00.Tag.ToString())//一天交通資料
            //{
            //    dt = rpt.Get_RPT_VD1DAY(ctrlRPT_DATA_00.sDevSystemList, ctrlRPT_DATA_00.TimeS, ctrlRPT_DATA_00.TimeE);

            //    dtvd = rpt.GetReport(ctrlRPT_DATA_00.sDevSystemList, ctrlRPT_DATA_00.TimeS, ctrlRPT_DATA_00.TimeE, "", "一天交通資料VD");
            //    dtDev = rpt.Get_RPT_VD(ctrlRPT_DATA_00.Tag.ToString(), ADDVdstring(dtvd));

            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " , , , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,時間, , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,設備, , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " , , , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,總流量,平均速度,平均占量");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, "車,小計,平均,平均");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, "道,聯結, , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, "一,大車, , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,小車, , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, "車,小計,平均,平均");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, "道,聯結, , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, "二,大車, , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,小車, , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, "車,小計,平均,平均");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, "道,聯結, , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, "三,大車, , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,小車, , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, "車,小計,平均,平均");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, "道,聯結, , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, "四,大車, , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,小車, , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, "車,小計,平均,平均");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, "道,聯結, , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, "五,大車, , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,小車, , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, "車,小計,平均,平均");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, "道,聯結, , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, "六,大車, , ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,小車, , ");
            //}
            //else if (CtrlName == ctrlRPT_DATA_04.Tag.ToString())//一分鐘車道使用率及車間距報表
            //{

            //    dt = rpt.Get_RPT_VD1MIN_INTERVAL(ctrlRPT_DATA_04.sDevSystemList, ctrlRPT_DATA_04.TimeS, ctrlRPT_DATA_04.TimeE);

            //    dtvd = rpt.GetReport(ctrlRPT_DATA_04.sDevSystemList, ctrlRPT_DATA_04.TimeS, ctrlRPT_DATA_04.TimeE, "", "一分鐘車道使用率及車間距報表VD");

            //    dtDev = rpt.Get_RPT_VD(ctrlRPT_DATA_04.Tag.ToString(), ADDVdstring(dtvd));

            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " , ,時間, ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " , ,設備, ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,車,使用率, ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,道,車長, ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,一,車間距, ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,車,使用率, ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,道,車長, ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,二,車間距, ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,車,使用率, ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,道,車長, ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,三,車間距, ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,車,使用率, ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,道,車長, ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,四,車間距, ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,車,使用率, ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,道,車長, ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,五,車間距, ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,車,使用率, ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,道,車長, ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,六,車間距, ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,總平均,車 長, ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,總平均,車間距, ");
            //}
            //else if (CtrlName == ctrlRPT_MON_07.Tag.ToString())//設備狀態即時監視報表
            //{
            //    dt = rpt.Get_RPT_DeviceMonitor(ctrlRPT_MON_07.sDevSystemList, DateTime.Now, DateTime.Now);

            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,設備種類, ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,設備編號, ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,路線名稱, ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,連線狀態, ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,操作模式, ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,硬體狀態, ");
            //}
            //else if (CtrlName == ctrlRPT_OPR2_06.Tag.ToString())//現場終端設備運作記錄報表
            //{
            //    dt = rpt.Get_RPT_DeviceOpStatus(ctrlRPT_OPR2_06.sDevSystemList, ctrlRPT_OPR2_06.TimeS, ctrlRPT_OPR2_06.TimeE);

            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,設備編號, ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,路線, ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,位置, ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,方向, ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,里程, ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,時間, ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,通訊狀態, ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,運作狀態, ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,顯示內容, ");

            //}
            //else if (CtrlName == ctrlRPT_OPR2_14.Tag.ToString())//路段旅行時間記錄報表
            //{
            //    dt = rpt.Get_RPT_TrafficDataLogSection(ctrlRPT_OPR2_14.Lineid, ctrlRPT_OPR2_14.direction, ctrlRPT_OPR2_14.start_D, ctrlRPT_OPR2_14.end_D, ctrlRPT_OPR2_14.TimeS, ctrlRPT_OPR2_14.TimeE);

            //    dtDev = rpt.Get_RPT_lineName(ctrlRPT_OPR2_14.Tag.ToString(), ctrlRPT_OPR2_14.Lineid, ctrlRPT_OPR2_14.direction);

            //    dtDev.Rows[0][1] = "里程:" + ctrlRPT_OPR2_14.start_DC.ToString() + "交流道至" + ctrlRPT_OPR2_14.end_DC.ToString() + "交流道(分鐘)";

            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, " ,時間, ");
            //    MyCol = MyCol + 1; arrListRpt.Insert(MyCol, "," + ctrlRPT_OPR2_14.start_DC.ToString() + "交流道至" + ctrlRPT_OPR2_14.end_DC.ToString() + "交流道(分鐘),");

            //}
            //if (dt != null)
            //{
            //    // 呼叫新執行緒
            //    Thread t = new Thread(CommClass.clsMethod.OpenMsg);
            //    t.Start();

            //    // 開始跑報表
            //    LoadReportViwer(dt);

            //    // 結束新執行緒
            //    t.Abort();
            //}
            //else
            //{
            //    MessageBox.Show(this, "您尚未篩選資料!", "錯誤訊息");
            //}
        }