コード例 #1
0
 /// <summary>
 /// Handles the LinkClicked event of the CauseListLinkLabel control.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="T:System.Windows.Forms.LinkLabelLinkClickedEventArgs"/> instance containing the event data.</param>
 private void CauseListLinkLabel_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
 {
     try
     {
         //Save the records
         this.SaveRecords();
         System.Threading.Thread thread = new Thread(new ThreadStart(ProcessCauseList));
         thread.Start();
         //Once thread over make invisible the form and again open the form(BugID = 1052)
         this.Hide();
         // Shows the report form.
         TerraScanCommon.ShowReport(90101, TerraScan.Common.Reports.Report.ReportType.Preview, this.errorIdHashTable);
     }
     catch (SoapException ex)
     {
         ExceptionManager.ManageException(ex, ExceptionManager.ActionType.CloseCurrentForm, this);
     }
     catch (Exception ex)
     {
         ExceptionManager.ManageException(ex, ExceptionManager.ActionType.CloseCurrentForm, this);
     }
     finally
     {
         this.Cursor = Cursors.Default;
     }
 }
コード例 #2
0
ファイル: F9008.cs プロジェクト: CSSAdmin/TScan
        public void PreviewButtonClick(object sender, DataEventArgs <Button> e)
        {
            try
            {
                TerraScanCommon.SetDataGridViewPosition(this.ReportDetailsDataGridView, this.selectedRow);

                this.Cursor = Cursors.WaitCursor;

                //// Calling the Common Function for Report
                Hashtable ht = new Hashtable();
                ht.Add("UserId", this.userId);
                if (this.ReportDetailsDataGridView.SelectedRows.Count > 0)
                {
                    ////TerraScanCommon.ShowReport(Convert.ToInt32(this.ReportDetailsDataGridView.SelectedRows[0].Cells[0].Value), TerraScan.Common.Reports.Report.ReportType.Preview);
                    TerraScanCommon.ShowReport(900801, TerraScan.Common.Reports.Report.ReportType.Preview, ht);
                }
            }
            catch (Exception ex)
            {
                ExceptionManager.ManageException(ex, ExceptionManager.ActionType.CloseCurrentForm, this.ParentForm);
            }
            finally
            {
                this.Cursor = Cursors.Default;
            }
        }
コード例 #3
0
ファイル: F1224.cs プロジェクト: CSSAdmin/TScan
 /// <summary>
 /// Calls to report process for privew button.
 /// </summary>
 /// <param name="reportAuditIds">The report audit ids.</param>
 private void CallToReportProcessForPrivewButton(string reportAuditIds)
 {
     try
     {
         this.reportFileIdHashTable.Clear();
         this.reportFileIdHashTable.Add("CLIDs", reportAuditIds);
         //// Shows the report form.
         ////changed the parameter type from string to int
         TerraScanCommon.ShowReport(122400, TerraScan.Common.Reports.Report.ReportType.Preview, this.reportFileIdHashTable);
     }
     catch (Exception ex)
     {
         ExceptionManager.ManageException(ex, ExceptionManager.ActionType.CloseCurrentForm, this.ParentForm);
     }
 }
コード例 #4
0
ファイル: F8046.cs プロジェクト: CSSAdmin/TScan
        /// <summary>
        /// Link button click
        /// </summary>
        /// <param name="sender">sender</param>
        /// <param name="e">e</param>
        private void TotalCostLinkLabel_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            Hashtable reportOpen = new Hashtable();

            try
            {
                reportOpen.Add("KeyId", this.keyID);
                ////changed the parameter type from string to int
                TerraScanCommon.ShowReport(800101, TerraScan.Common.Reports.Report.ReportType.Preview, reportOpen);
            }
            catch (Exception exception)
            {
                ExceptionManager.ManageException(exception, ExceptionManager.ActionType.CloseCurrentForm, this.ParentForm);
            }
        }
コード例 #5
0
 /// <summary>
 /// Handles the Click event of the ViewGLButton control.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="T:System.EventArgs"/> instance containing the event data.</param>
 private void ViewGLButton_Click(object sender, EventArgs e)
 {
     try
     {
         Hashtable userTabReport = new Hashtable();
         ////userTabReport.Add("ReportNumber", "120110");-commented WRT change request.
         ////userTabReport.Add("UserID", TerraScanCommon.UserId); ////changed for may change order request
         ////userTabReport.Add("PostID", this.PostId); ////changed for may change order request
         ////changed the parameter type from string to int
         TerraScanCommon.ShowReport(120110, TerraScan.Common.Reports.Report.ReportType.Preview, userTabReport);
     }
     catch (Exception ex)
     {
         ExceptionManager.ManageException(ex, ExceptionManager.ActionType.CloseCurrentForm, this.ParentForm);
     }
 }
コード例 #6
0
 /// <summary>
 /// Handles the Click event of the DepositHistoryButton control.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="T:System.EventArgs"/> instance containing the event data.</param>
 private void DepositHistoryButton_Click(object sender, EventArgs e)
 {
     try
     {
         this.Cursor = Cursors.WaitCursor;
         ////changed the parameter type from string to int
         TerraScanCommon.ShowReport(121201, Report.ReportType.Preview);
     }
     catch (Exception ex)
     {
         ExceptionManager.ManageException(ex, ExceptionManager.ActionType.Display, this.ParentForm);
     }
     finally
     {
         this.Cursor = Cursors.Default;
     }
 }
コード例 #7
0
 public void PreviewButtonClick(object sender, DataEventArgs <Button> e)
 {
     try
     {
         this.Cursor = Cursors.WaitCursor;
         //// Calling the Common Function for Report
         Hashtable ht = new Hashtable();
         ht.Add("SystemID", this.systemId);
         //// changed the parameter type from string to int
         TerraScanCommon.ShowReport(890101, Report.ReportType.Preview, ht);
     }
     catch (Exception ex)
     {
         ExceptionManager.ManageException(ex, ExceptionManager.ActionType.CloseCurrentForm, this.ParentForm);
     }
     finally
     {
         this.Cursor = Cursors.Default;
     }
 }
コード例 #8
0
 /// <summary>
 /// Handles the Click event of the ReportButton control.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="T:System.EventArgs"/> instance containing the event data.</param>
 private void ReportButton_Click(object sender, EventArgs e)
 {
     try
     {
         this.Cursor = Cursors.WaitCursor;
         Hashtable reportOptionalParameter = new Hashtable();
         ////// calling  Common Function For Report
         reportOptionalParameter.Add("UserID", TerraScanCommon.UserId);
         ////changed the parameter type from string to int
         TerraScanCommon.ShowReport(122001, Report.ReportType.Preview, reportOptionalParameter);
     }
     catch (Exception ex)
     {
         ExceptionManager.ManageException(ex, ExceptionManager.ActionType.Display, this.ParentForm);
     }
     finally
     {
         this.Cursor = Cursors.Default;
     }
 }
コード例 #9
0
 /// <summary>
 /// Handles the CellContentClick event of the PostingErrorsDataGrid control.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="T:System.Windows.Forms.DataGridViewCellEventArgs"/> instance containing the event data.</param>
 private void PostingErrorsDataGrid_CellContentClick(object sender, DataGridViewCellEventArgs e)
 {
     try
     {
         ////this.Cursor = Cursors.WaitCursor;
         if (e.ColumnIndex == 1 && e.RowIndex >= 0)
         {
             Hashtable userTabReport = new Hashtable();
             int       rptNumber     = Convert.ToInt32(this.PostingErrorsDataGrid[4, e.RowIndex].Value.ToString());
             userTabReport.Add("UserID", TerraScanCommon.UserId);
             userTabReport.Add("ReportNumber", rptNumber);
             ////changed the parameter type from string to int
             TerraScanCommon.ShowReport(rptNumber, TerraScan.Common.Reports.Report.ReportType.Preview, userTabReport);
         }
     }
     catch (Exception ex)
     {
         ExceptionManager.ManageException(ex, ExceptionManager.ActionType.Display, this.ParentForm);
     }
 }
コード例 #10
0
 /// <summary>
 /// Handles the CellContentClick event of the PostingHistoryDataGrid control.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="T:System.Windows.Forms.DataGridViewCellEventArgs"/> instance containing the event data.</param>
 private void PostingHistoryDataGrid_CellContentClick(object sender, DataGridViewCellEventArgs e)
 {
     try
     {
         if (e.ColumnIndex == 0 && e.RowIndex >= 0)
         {
             Hashtable userTabReport = new Hashtable();
             ////userTabReport.Add("ReportNumber", "120110");
             userTabReport.Add("PostID", this.PostId);
             ////changed the parameter type from string to int
             TerraScanCommon.ShowReport(120110, TerraScan.Common.Reports.Report.ReportType.Preview, userTabReport);
         }
     }
     catch (Exception ex)
     {
         ExceptionManager.ManageException(ex, ExceptionManager.ActionType.Display, this.ParentForm);
     }
     finally
     {
         this.Cursor = Cursors.Default;
     }
 }
コード例 #11
0
        /// <summary>
        /// Handles the Click event of the PreviewReportButton control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="T:System.EventArgs"/> instance containing the event data.</param>
        private void PreviewReportButton_Click(object sender, EventArgs e)
        {
            try
            {
                this.Cursor = Cursors.WaitCursor;

                if (this.ReportListingGrid.ActiveRow != null)
                {
                    int reportNumberId;
                    int.TryParse(this.ReportListingGrid.ActiveRow.Cells[0].Value.ToString(), out reportNumberId);

                    // Calling the Common Function for Report
                    TerraScanCommon.ShowReport(reportNumberId, TerraScan.Common.Reports.Report.ReportType.Preview);
                }
            }
            catch (Exception ex)
            {
                ExceptionManager.ManageException(ex, ExceptionManager.ActionType.CloseCurrentForm, this.ParentForm);
            }
            finally
            {
                this.Cursor = Cursors.Default;
            }
        }