Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 2017.02.16 11:06:27 INFO web[jruby.rack] keeping custom (config.logger) Rails logger instance
- 2017.02.16 11:06:28 INFO web[o.a.c.h.Http11NioProtocol] Starting ProtocolHandler ["http-nio-0.0.0.0-9000"]
- 2017.02.16 11:06:28 INFO web[o.s.s.a.TomcatAccessLog] Web server is started
- 2017.02.16 11:06:28 INFO web[o.s.s.a.EmbeddedTomcat] HTTP connector enabled on port 9000
- 2017.02.16 11:06:28 INFO app[o.s.p.m.Monitor] Process[web] is up
- 2017.02.16 11:06:28 INFO app[o.s.p.m.JavaProcessLauncher] Launch process[ce]: C:\Program Files (x86)\Java\jre1.8.0_111\bin\java -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Xmx512m -Xms128m -XX:+HeapDumpOnOutOfMemoryError -Djava.net.preferIPv4Stack=true -Djava.io.tmpdir=C:\sonarqube-5.6.5\temp -javaagent:C:\Program Files (x86)\Java\jre1.8.0_111\lib\management-agent.jar -cp ./lib/common/*;./lib/server/*;./lib/ce/*;C:\sonarqube-5.6.5\lib\jdbc\mysql\mysql-connector-java-5.1.35.jar org.sonar.ce.app.CeServer C:\sonarqube-5.6.5\temp\sq-process4016449006423887821properties
- (unknown):0 warning: already initialized constant Input
- 2017.02.16 11:06:30 INFO ce[o.s.p.ProcessEntryPoint] Starting ce
- 2017.02.16 11:06:30 INFO ce[o.s.c.a.WebServerWatcherImpl] Waiting for Web Server to be operational...
- 2017.02.16 11:06:31 INFO ce[o.s.c.a.WebServerWatcherImpl] Still waiting for WebServer...
- 2017.02.16 11:06:33 INFO ce[o.s.c.a.WebServerWatcherImpl] Still waiting for WebServer...
- 2017.02.16 11:06:38 INFO ce[o.s.c.a.WebServerWatcherImpl] Still waiting for WebServer...
- 2017.02.16 11:06:51 INFO ce[o.s.c.a.WebServerWatcherImpl] Still waiting for WebServer...
- 2017.02.16 11:06:56 INFO web[o.s.s.d.m.PlatformDatabaseMigration] Starting DB Migration
- 2017.02.16 11:06:56 INFO web[DbMigration] == CreateAnalysisReports: migrating ==========================================
- 2017.02.16 11:06:56 INFO web[DbMigration] -- create_table(:analysis_reports, {})
- 2017.02.16 11:06:56 INFO web[DbMigration] -> 0.0860s
- 2017.02.16 11:06:56 INFO web[DbMigration] -> 0 rows
- 2017.02.16 11:06:56 INFO web[DbMigration] == CreateAnalysisReports: migrated (0.0880s) =================================
- 2017.02.16 11:06:56 INFO web[DbMigration]
- 2017.02.16 11:06:56 INFO web[DbMigration] == AddProjectNameToAnalysisReports: migrating ================================
- 2017.02.16 11:06:56 INFO web[DbMigration] -- columns("analysis_reports")
- 2017.02.16 11:06:56 INFO web[DbMigration] -> 0.0150s
- 2017.02.16 11:06:56 INFO web[DbMigration] -- add_column("analysis_reports", :project_name, :string, {:limit=>256, :null=>true})
- 2017.02.16 11:06:57 INFO web[DbMigration] -> 0.1040s
- 2017.02.16 11:06:57 INFO web[DbMigration] -> 0 rows
- 2017.02.16 11:06:57 INFO web[DbMigration] == AddProjectNameToAnalysisReports: migrated (0.1210s) =======================
- 2017.02.16 11:06:57 INFO web[DbMigration]
- 2017.02.16 11:06:57 INFO web[DbMigration] == AddProjectUuidColumns: migrating ==========================================
- 2017.02.16 11:06:57 INFO web[DbMigration] -- columns("projects")
- 2017.02.16 11:06:57 INFO web[DbMigration] -> 0.0110s
- 2017.02.16 11:06:57 INFO web[DbMigration] -- add_column("projects", :uuid, :string, {:limit=>50, :null=>true})
- 2017.02.16 11:07:04 INFO web[DbMigration] -> 7.6550s
- 2017.02.16 11:07:04 INFO web[DbMigration] -> 0 rows
- 2017.02.16 11:07:04 INFO web[DbMigration] -- columns("projects")
- 2017.02.16 11:07:04 INFO web[DbMigration] -> 0.0240s
- 2017.02.16 11:07:04 INFO web[DbMigration] -- add_column("projects", :project_uuid, :string, {:limit=>50, :null=>true})
- 2017.02.16 11:07:11 INFO web[DbMigration] -> 7.0970s
- 2017.02.16 11:07:11 INFO web[DbMigration] -> 0 rows
- 2017.02.16 11:07:11 INFO web[DbMigration] -- columns("projects")
- 2017.02.16 11:07:11 INFO web[DbMigration] -> 0.0340s
- 2017.02.16 11:07:11 INFO web[DbMigration] -- add_column("projects", :module_uuid, :string, {:limit=>50, :null=>true})
- 2017.02.16 11:07:19 INFO web[DbMigration] -> 7.4150s
- 2017.02.16 11:07:19 INFO web[DbMigration] -> 0 rows
- 2017.02.16 11:07:19 INFO web[DbMigration] -- columns("projects")
- 2017.02.16 11:07:19 INFO web[DbMigration] -> 0.0200s
- 2017.02.16 11:07:19 INFO web[DbMigration] -- add_column("projects", :module_uuid_path, :string, {:limit=>4000, :null=>true})
- 2017.02.16 11:07:25 INFO ce[o.s.c.a.WebServerWatcherImpl] Still waiting for WebServer...
- 2017.02.16 11:07:25 INFO web[DbMigration] -> 6.6780s
- 2017.02.16 11:07:25 INFO web[DbMigration] -> 0 rows
- 2017.02.16 11:07:25 INFO web[DbMigration] == AddProjectUuidColumns: migrated (28.9410s) ================================
- 2017.02.16 11:07:25 INFO web[DbMigration]
- 2017.02.16 11:07:25 INFO web[DbMigration] == PopulateProjectsUuidColumns: migrating ====================================
- 2017.02.16 11:08:25 INFO web[o.s.d.v.v.PopulateProjectsUuidColumnsMigrationStep] 19121 rows processed (318 items/sec)
- 2017.02.16 11:08:53 INFO web[o.s.d.v.v.PopulateProjectsUuidColumnsMigrationStep] 68143 rows processed (817 items/sec)
- 2017.02.16 11:08:53 INFO web[DbMigration] == PopulateProjectsUuidColumns: migrated (87.5670s) ==========================
- 2017.02.16 11:08:53 INFO web[DbMigration]
- 2017.02.16 11:08:53 INFO web[DbMigration] == AddSnapshotIdToAnalysisReports: migrating =================================
- 2017.02.16 11:08:53 INFO web[DbMigration] -- columns("analysis_reports")
- 2017.02.16 11:08:53 INFO web[DbMigration] -> 0.0140s
- 2017.02.16 11:08:53 INFO web[DbMigration] -- add_column("analysis_reports", :snapshot_id, :integer, {:null=>false})
- 2017.02.16 11:08:53 INFO web[DbMigration] -> 0.2950s
- 2017.02.16 11:08:53 INFO web[DbMigration] -> 0 rows
- 2017.02.16 11:08:53 INFO web[DbMigration] == AddSnapshotIdToAnalysisReports: migrated (0.3160s) ========================
- 2017.02.16 11:08:53 INFO web[DbMigration]
- 2017.02.16 11:08:53 INFO web[DbMigration] == AddBusinessDatesToAnalysisReports: migrating ==============================
- 2017.02.16 11:08:53 INFO web[DbMigration] -- columns("analysis_reports")
- 2017.02.16 11:08:53 INFO web[DbMigration] -> 0.0110s
- 2017.02.16 11:08:53 INFO web[DbMigration] -- add_column("analysis_reports", :started_at, :datetime, {:null=>true})
- 2017.02.16 11:08:54 INFO web[DbMigration] -> 0.0920s
- 2017.02.16 11:08:54 INFO web[DbMigration] -> 0 rows
- 2017.02.16 11:08:54 INFO web[DbMigration] -- columns("analysis_reports")
- 2017.02.16 11:08:54 INFO web[DbMigration] -> 0.0100s
- 2017.02.16 11:08:54 INFO web[DbMigration] -- add_column("analysis_reports", :finished_at, :datetime, {:null=>true})
- 2017.02.16 11:08:54 INFO web[DbMigration] -> 0.0920s
- 2017.02.16 11:08:54 INFO web[DbMigration] -> 0 rows
- 2017.02.16 11:08:54 INFO web[DbMigration] == AddBusinessDatesToAnalysisReports: migrated (0.2080s) =====================
- 2017.02.16 11:08:54 INFO web[DbMigration]
- 2017.02.16 11:08:54 INFO web[DbMigration] == AddProjectUuidIndex: migrating ============================================
- 2017.02.16 11:08:54 INFO web[DbMigration] -- index_exists?("projects", "uuid", {:name=>"projects_uuid"})
- 2017.02.16 11:08:54 INFO web[DbMigration] -> 0.0060s
- 2017.02.16 11:08:54 INFO web[DbMigration] -- add_index("projects", "uuid", {:name=>"projects_uuid", :unique=>true})
- 2017.02.16 11:08:57 INFO web[DbMigration] -> 3.4200s
- 2017.02.16 11:08:57 INFO web[DbMigration] -> 0 rows
- 2017.02.16 11:08:57 INFO web[DbMigration] -- index_exists?("projects", "project_uuid", {:name=>"projects_project_uuid"})
- 2017.02.16 11:08:57 INFO web[DbMigration] -> 0.0030s
- 2017.02.16 11:08:57 INFO web[DbMigration] -- add_index("projects", "project_uuid", {:name=>"projects_project_uuid"})
- 2017.02.16 11:08:59 INFO ce[o.s.c.a.WebServerWatcherImpl] Still waiting for WebServer...
- 2017.02.16 11:09:00 INFO web[DbMigration] -> 2.9510s
- 2017.02.16 11:09:00 INFO web[DbMigration] -> 0 rows
- 2017.02.16 11:09:00 INFO web[DbMigration] == AddProjectUuidIndex: migrated (6.3840s) ===================================
- 2017.02.16 11:09:00 INFO web[DbMigration]
- 2017.02.16 11:09:00 INFO web[DbMigration] == AddIssueUpdatedAtIndex: migrating =========================================
- 2017.02.16 11:09:00 INFO web[DbMigration] -- index_exists?("issues", "updated_at", {:name=>"issues_updated_at"})
- 2017.02.16 11:09:00 INFO web[DbMigration] -> 0.0070s
- 2017.02.16 11:09:00 INFO web[DbMigration] -- add_index("issues", "updated_at", {:name=>"issues_updated_at"})
- 2017.02.16 11:09:25 INFO web[DbMigration] -> 25.1170s
- 2017.02.16 11:09:25 INFO web[DbMigration] -> 0 rows
- 2017.02.16 11:09:25 INFO web[DbMigration] == AddIssueUpdatedAtIndex: migrated (25.1250s) ===============================
- 2017.02.16 11:09:25 INFO web[DbMigration]
- 2017.02.16 11:09:25 INFO web[DbMigration] == ReplaceIssueFiltersProjectKeyByUuid: migrating ============================
- 2017.02.16 11:09:25 INFO web[o.s.d.v.MassUpdate] 0 rows processed (0 items/sec)
- 2017.02.16 11:09:25 INFO web[DbMigration] == ReplaceIssueFiltersProjectKeyByUuid: migrated (0.0250s) ===================
- 2017.02.16 11:09:25 INFO web[DbMigration]
- 2017.02.16 11:09:25 INFO web[DbMigration] == AddUpdatedAtToSnapshotSources: migrating ==================================
- 2017.02.16 11:09:25 INFO web[DbMigration] -- columns("snapshot_sources")
- 2017.02.16 11:09:25 INFO web[DbMigration] -> 0.0120s
- 2017.02.16 11:09:25 INFO web[DbMigration] -- add_column("snapshot_sources", :updated_at, :datetime, {:null=>true})
- 2017.02.16 11:13:15 INFO ce[o.s.c.a.WebServerWatcherImpl] Still waiting for WebServer...
- 2017.02.16 11:24:50 INFO ce[o.s.c.a.WebServerWatcherImpl] Still waiting for WebServer...
- 2017.02.16 11:56:17 INFO ce[o.s.c.a.WebServerWatcherImpl] Still waiting for WebServer...
- 2017.02.16 12:24:31 INFO web[DbMigration] -> 4505.6500s
- 2017.02.16 12:24:31 INFO web[DbMigration] -> 0 rows
- 2017.02.16 12:24:31 INFO web[DbMigration] == AddUpdatedAtToSnapshotSources: migrated (4505.6640s) ======================
- 2017.02.16 12:24:31 INFO web[DbMigration]
- 2017.02.16 12:24:31 INFO web[DbMigration] == FeedSnapshotSourcesUpdatedAt: migrating ===================================
- 2017.02.16 12:25:31 INFO web[o.s.d.v.MassUpdate] 14749 rows processed (245 items/sec)
- 2017.02.16 12:26:31 INFO web[o.s.d.v.MassUpdate] 35999 rows processed (354 items/sec)
- 2017.02.16 12:27:31 INFO web[o.s.d.v.MassUpdate] 61749 rows processed (429 items/sec)
- 2017.02.16 12:28:31 INFO web[o.s.d.v.MassUpdate] 92999 rows processed (520 items/sec)
- 2017.02.16 12:29:31 INFO web[o.s.d.v.MassUpdate] 126499 rows processed (558 items/sec)
- 2017.02.16 12:30:31 INFO web[o.s.d.v.MassUpdate] 160749 rows processed (570 items/sec)
- 2017.02.16 12:31:31 INFO web[o.s.d.v.MassUpdate] 192499 rows processed (529 items/sec)
- 2017.02.16 12:32:31 INFO web[o.s.d.v.MassUpdate] 227749 rows processed (587 items/sec)
- 2017.02.16 12:33:31 INFO web[o.s.d.v.MassUpdate] 261499 rows processed (562 items/sec)
- 2017.02.16 12:34:31 INFO web[o.s.d.v.MassUpdate] 297999 rows processed (608 items/sec)
- 2017.02.16 12:35:31 INFO web[o.s.d.v.MassUpdate] 331499 rows processed (558 items/sec)
- 2017.02.16 12:36:31 INFO web[o.s.d.v.MassUpdate] 365749 rows processed (570 items/sec)
- 2017.02.16 12:37:31 INFO web[o.s.d.v.MassUpdate] 402249 rows processed (608 items/sec)
- 2017.02.16 12:38:31 INFO web[o.s.d.v.MassUpdate] 437249 rows processed (583 items/sec)
- 2017.02.16 12:39:31 INFO web[o.s.d.v.MassUpdate] 473749 rows processed (608 items/sec)
- 2017.02.16 12:40:31 INFO web[o.s.d.v.MassUpdate] 505999 rows processed (537 items/sec)
- 2017.02.16 12:41:31 INFO web[o.s.d.v.MassUpdate] 537999 rows processed (533 items/sec)
- 2017.02.16 12:42:31 INFO web[o.s.d.v.MassUpdate] 566499 rows processed (475 items/sec)
- 2017.02.16 12:43:31 INFO web[o.s.d.v.MassUpdate] 597249 rows processed (512 items/sec)
- 2017.02.16 12:44:31 INFO web[o.s.d.v.MassUpdate] 623499 rows processed (437 items/sec)
- 2017.02.16 12:45:31 INFO web[o.s.d.v.MassUpdate] 649499 rows processed (433 items/sec)
- 2017.02.16 12:46:31 INFO web[o.s.d.v.MassUpdate] 674999 rows processed (425 items/sec)
- 2017.02.16 12:47:31 INFO web[o.s.d.v.MassUpdate] 701999 rows processed (450 items/sec)
- 2017.02.16 12:48:31 INFO web[o.s.d.v.MassUpdate] 726249 rows processed (404 items/sec)
- 2017.02.16 12:49:31 INFO web[o.s.d.v.MassUpdate] 752249 rows processed (433 items/sec)
- 2017.02.16 12:50:31 INFO web[o.s.d.v.MassUpdate] 776499 rows processed (404 items/sec)
- 2017.02.16 12:51:31 INFO web[o.s.d.v.MassUpdate] 804249 rows processed (462 items/sec)
- 2017.02.16 12:52:31 INFO web[o.s.d.v.MassUpdate] 828249 rows processed (400 items/sec)
- 2017.02.16 12:53:31 INFO web[o.s.d.v.MassUpdate] 851999 rows processed (395 items/sec)
- 2017.02.16 12:54:31 INFO web[o.s.d.v.MassUpdate] 878249 rows processed (437 items/sec)
- 2017.02.16 12:55:31 INFO web[o.s.d.v.MassUpdate] 904249 rows processed (433 items/sec)
- 2017.02.16 12:56:31 INFO web[o.s.d.v.MassUpdate] 931749 rows processed (458 items/sec)
- 2017.02.16 12:57:31 INFO web[o.s.d.v.MassUpdate] 955999 rows processed (404 items/sec)
- 2017.02.16 12:58:31 INFO web[o.s.d.v.MassUpdate] 982749 rows processed (445 items/sec)
- 2017.02.16 12:59:31 INFO web[o.s.d.v.MassUpdate] 1007249 rows processed (408 items/sec)
- 2017.02.16 13:00:31 INFO web[o.s.d.v.MassUpdate] 1034249 rows processed (450 items/sec)
- 2017.02.16 13:01:31 INFO web[o.s.d.v.MassUpdate] 1057999 rows processed (395 items/sec)
- 2017.02.16 13:02:31 INFO web[o.s.d.v.MassUpdate] 1080499 rows processed (375 items/sec)
- 2017.02.16 13:03:31 INFO web[o.s.d.v.MassUpdate] 1107999 rows processed (458 items/sec)
- 2017.02.16 13:04:31 INFO web[o.s.d.v.MassUpdate] 1132999 rows processed (416 items/sec)
- 2017.02.16 13:05:31 INFO web[o.s.d.v.MassUpdate] 1158749 rows processed (429 items/sec)
- 2017.02.16 13:06:31 INFO web[o.s.d.v.MassUpdate] 1187499 rows processed (479 items/sec)
- 2017.02.16 13:07:31 INFO web[o.s.d.v.MassUpdate] 1203999 rows processed (275 items/sec)
- 2017.02.16 13:08:31 INFO web[o.s.d.v.MassUpdate] 1226749 rows processed (379 items/sec)
- 2017.02.16 13:09:31 INFO web[o.s.d.v.MassUpdate] 1252249 rows processed (425 items/sec)
- 2017.02.16 13:10:31 INFO web[o.s.d.v.MassUpdate] 1276999 rows processed (412 items/sec)
- 2017.02.16 13:11:31 INFO web[o.s.d.v.MassUpdate] 1302499 rows processed (425 items/sec)
- 2017.02.16 13:12:31 INFO web[o.s.d.v.MassUpdate] 1328249 rows processed (429 items/sec)
- 2017.02.16 13:13:31 INFO web[o.s.d.v.MassUpdate] 1352749 rows processed (408 items/sec)
- 2017.02.16 13:13:39 INFO web[o.s.d.v.MassUpdate] 1358274 rows processed (92 items/sec)
- 2017.02.16 13:13:39 INFO web[DbMigration] == FeedSnapshotSourcesUpdatedAt: migrated (2948.4480s) =======================
- 2017.02.16 13:13:39 INFO web[DbMigration]
- 2017.02.16 13:13:39 INFO web[DbMigration] == CreateFileSources: migrating ==============================================
- 2017.02.16 13:13:39 INFO web[DbMigration] -- create_table(:file_sources, {})
- 2017.02.16 13:13:39 INFO web[DbMigration] -> 0.0690s
- 2017.02.16 13:13:39 INFO web[DbMigration] -> 0 rows
- 2017.02.16 13:13:39 INFO web[DbMigration] -- index_exists?("file_sources", "file_uuid", {:name=>"file_sources_file_uuid_uniq"})
- 2017.02.16 13:13:40 INFO web[DbMigration] -> 0.0030s
- 2017.02.16 13:13:40 INFO web[DbMigration] -- add_index("file_sources", "file_uuid", {:unique=>true, :name=>"file_sources_file_uuid_uniq"})
- 2017.02.16 13:13:40 INFO web[DbMigration] -> 0.0580s
- 2017.02.16 13:13:40 INFO web[DbMigration] -> 0 rows
- 2017.02.16 13:13:40 INFO web[DbMigration] -- index_exists?("file_sources", "project_uuid", {:name=>"file_sources_project_uuid"})
- 2017.02.16 13:13:40 INFO web[DbMigration] -> 0.0040s
- 2017.02.16 13:13:40 INFO web[DbMigration] -- add_index("file_sources", "project_uuid", {:name=>"file_sources_project_uuid"})
- 2017.02.16 13:13:40 INFO web[DbMigration] -> 0.0500s
- 2017.02.16 13:13:40 INFO web[DbMigration] -> 0 rows
- 2017.02.16 13:13:40 INFO web[DbMigration] -- index_exists?("file_sources", "updated_at", {:name=>"file_sources_updated_at"})
- 2017.02.16 13:13:40 INFO web[DbMigration] -> 0.0040s
- 2017.02.16 13:13:40 INFO web[DbMigration] -- add_index("file_sources", "updated_at", {:name=>"file_sources_updated_at"})
- 2017.02.16 13:13:40 INFO web[DbMigration] -> 0.0470s
- 2017.02.16 13:13:40 INFO web[DbMigration] -> 0 rows
- 2017.02.16 13:13:40 INFO web[DbMigration] == CreateFileSources: migrated (0.2650s) =====================================
- 2017.02.16 13:13:40 INFO web[DbMigration]
- 2017.02.16 13:13:40 INFO web[DbMigration] == FeedFileSources: migrating ================================================
- 2017.02.16 13:14:40 INFO web[o.s.d.v.MassUpdate] 0 files processed (0 items/sec)
- 2017.02.16 13:15:40 INFO web[o.s.d.v.MassUpdate] 0 files processed (0 items/sec)
- 2017.02.16 13:16:40 INFO web[o.s.d.v.MassUpdate] 0 files processed (0 items/sec)
- 2017.02.16 13:17:40 INFO web[o.s.d.v.MassUpdate] 402 files processed (6 items/sec)
- 2017.02.16 13:18:40 INFO web[o.s.d.v.MassUpdate] 749 files processed (5 items/sec)
- 2017.02.16 13:18:43 ERROR web[o.s.s.d.m.DatabaseMigrator] Fail to execute database migration: org.sonar.db.version.v50.FeedFileSources
- java.lang.IllegalStateException: Error during processing of row: [uuid=AVpHrbhU29-XDi5QdhtN,uuid=AVpHrbk629-XDi5Qdh0r,data=using System;
- using System.Collections;
- using System.ComponentModel;
- using System.Drawing;
- using System.Data;
- using System.Text;
- using System.Windows.Forms;
- using DevExpress.XtraGrid.Views.Grid;
- using DevExpress.XtraEditors.Controls;
- using DevExpress.XtraEditors.Repository;
- using Com.Taxware.Atlas.Common.Security;
- using Com.Taxware.Atlas.Common;
- using Com.Taxware.Atlas.Common.Util;
- using Com.Taxware.Platform;
- using Com.Taxware.Windows;
- using Com.Taxware.DataServices;
- namespace Com.Taxware.Atlas.TaxRule
- {
- public class VersionPane : System.Windows.Forms.UserControl, IDataConsumerControl, IEditorPane
- {
- #region Constants
- private const string VALUE_RATE_THRESHOLD_FLAG_YES = "Y";
- private const string DISPLAY_RATE_THRESHOLD_FLAG_YES = "Y";
- private const string VALUE_RATE_THRESHOLD_FLAG_NO = "N";
- private const string DISPLAY_RATE_THRESHOLD_FLAG_NO = "N";
- private const string VALUE_RATE_THRESHOLD_TYPE_NA = "0";
- private const string DISPLAY_RATE_THRESHOLD_TYPE_NA = "N/A";
- private const string VALUE_AMT_THRESHOLD_TYPE_NA = "0";
- private const string DISPLAY_AMT_THRESHOLD_TYPE_NA = "N/A";
- private const string LABEL_RATE_DEFAULT = "Rate";
- private const string LABEL_RATE_FEE = "Fee Amount";
- private const string LABEL_RATE_TAX_AMOUNT_LIMITATION = "Amount Limit";
- private const string LABEL_RATE_TAXABLE_AMOUNT_LIMITATION = "Amount Limit";
- private const string LABEL_RATE_TAXABLE_AMOUNT_THRESHOLD = "Threshold Amount";
- private const string LABEL_RATE_TAX_RATE_LIMITATION = "Rate Limit";
- private const string LABEL_RATE_TAXABLE_AMOUNT_DECREASE = "Decrease Amount";
- private const string LABEL_RATE_TAXABLE_AMOUNT_INCREASE = "Increase Amount";
- private const string COL_THRESHOLD_TAX_RATE_THRESHOLD_ID = "TAX_RATE_THRESHOLD_ID";
- private const string COL_THRESHOLD_MIN_VALUE = "MIN_VALUE";
- private const string COL_THRESHOLD_MAX_VALUE = "MAX_VALUE";
- private const string COL_THRESHOLD_RATE = "TAX_RATE_VALUE";
- private const string COL_THRESHOLD_RATE_FLAG = "IS_STANDARD_RATE_FLAG";
- private const string COL_THRESHOLD_IS_POSTED = "IS_POSTED";
- private const string MSG_INVALID_ERROR_HEADER = "Threshold Error.";
- private const string MSG_INVALID_THRESHOLD_DELETE = "The threshold selected has already been posted and may not be deleted.";
- #endregion Constants
- #region Private Members
- private DataTable m_dsRateFlag = null;
- private int m_versionListIndex = 0;
- private ExemptAlgTypeCollection m_dsAmtThreshold = null;
- private TaxRateThreshAlgTypeCollection m_dsRateThreshold = null;
- private TaxRuleVersionCollection m_scratchPad = null;
- private TaxRuleEditMode m_editMode = TaxRuleEditMode.EDIT_MODE_EDIT_RULE;
- private Com.Taxware.Platform.TaxRule m_dataSource = null;
- private RadioButtonGroup m_useCommonRulesGroup = null;
- private RadioButtonGroup m_itemDocumentGroup = null;
- private CheckBoxGroup m_commonRulesGroup = null;
- #endregion Private Members
- #region User Interface Elements
- private System.Windows.Forms.Label m_lblVersionList;
- private System.Windows.Forms.GroupBox m_lblVersionDetails;
- private System.Windows.Forms.ComboBox m_guiAmtThresholdType;
- private System.Windows.Forms.Label m_lblAmountThresholdType;
- private System.Windows.Forms.GroupBox m_lblItemDocIndicator;
- private System.Windows.Forms.RadioButton m_guiDocumentIndicator;
- private System.Windows.Forms.RadioButton m_guiItemIndicator;
- private System.Windows.Forms.Label m_lblUseCommonRules;
- private System.Windows.Forms.RadioButton m_guiUseCommonRulesNo;
- private System.Windows.Forms.RadioButton m_guiUseCommonRulesYes;
- private System.Windows.Forms.Label m_lblComments;
- private System.Windows.Forms.Label m_lblRate;
- private System.Windows.Forms.GroupBox m_lblCommonRules;
- private System.Windows.Forms.CheckBox m_guiApplyState;
- private System.Windows.Forms.CheckBox m_guiApplySelf;
- private System.Windows.Forms.CheckBox m_guiApplyCity;
- private System.Windows.Forms.CheckBox m_guiApplyCounty;
- private System.Windows.Forms.TextBox m_guiComments;
- private System.Windows.Forms.TextBox m_guiRate;
- private System.Windows.Forms.Label m_lblSunset;
- private System.Windows.Forms.Label m_lblEffective;
- private System.Windows.Forms.ComboBox m_guiRateThresholdType;
- private System.Windows.Forms.Label m_lblRateThresholdType;
- private System.Windows.Forms.Label m_lblThresholds;
- private System.Windows.Forms.TextBox m_guiTaxRuleId;
- private System.Windows.Forms.Label m_lblTaxRuleId;
- private System.Windows.Forms.TextBox m_guiVersionId;
- private System.Windows.Forms.Label m_lblVersionId;
- private System.Windows.Forms.TextBox m_guiIsPosted;
- private System.Windows.Forms.TextBox m_guiRecordStatus;
- private System.Windows.Forms.Label m_lblIsPosted;
- private System.Windows.Forms.Label m_lblRecordStatus;
- private System.Windows.Forms.TextBox m_guiUpdateDate;
- private System.Windows.Forms.TextBox m_guiUpdateUser;
- private System.Windows.Forms.Label m_lblUpdateDate;
- private System.Windows.Forms.Label m_lblUpdateUser;
- private System.Windows.Forms.TextBox m_guiCreateDate;
- private System.Windows.Forms.TextBox m_guiCreateUser;
- private System.Windows.Forms.Label m_lblCreateDate;
- private System.Windows.Forms.Label m_lblCreateUser;
- private DevExpress.XtraEditors.DateEdit m_guiEffective;
- private DevExpress.XtraEditors.DateEdit m_guiSunset;
- private System.Windows.Forms.CheckBox m_guiApplyDistrict;
- private System.Windows.Forms.ColumnHeader m_colVersionId;
- private System.Windows.Forms.ColumnHeader m_colTaxRuleId;
- private System.Windows.Forms.ColumnHeader m_colItemDocInd;
- private System.Windows.Forms.ColumnHeader m_colRate;
- private System.Windows.Forms.ColumnHeader m_colUseCommonRules;
- private System.Windows.Forms.ColumnHeader m_colApplyToSelf;
- private System.Windows.Forms.ColumnHeader m_colApplyToState;
- private System.Windows.Forms.ColumnHeader m_colApplyToCounty;
- private System.Windows.Forms.ColumnHeader m_colApplyToCity;
- private System.Windows.Forms.ColumnHeader m_colApplyToDistrict;
- private System.Windows.Forms.ColumnHeader m_colEffectiveDate;
- private System.Windows.Forms.ColumnHeader m_colSunsetDate;
- private System.Windows.Forms.ColumnHeader m_colRecordStatus;
- private System.Windows.Forms.ColumnHeader m_colIsPosted;
- private System.Windows.Forms.ListView m_guiVersionList;
- private System.Windows.Forms.Panel m_panelAuditInfo;
- private System.Windows.Forms.Panel m_panelThresholds;
- private DevExpress.XtraEditors.Repository.PersistentRepository persistentRepository1;
- private DevExpress.XtraEditors.Repository.RepositoryItemComboBox m_editorComboBox;
- private System.Windows.Forms.Button m_guiNewVersion;
- private System.Windows.Forms.Button m_guiApprove;
- private System.Windows.Forms.Button m_guiReject;
- private System.Windows.Forms.ColumnHeader m_colThresMin;
- private System.Windows.Forms.ColumnHeader m_colThresMax;
- private System.Windows.Forms.ColumnHeader m_colThresRate;
- private System.Windows.Forms.ListView m_guiThresholdList;
- private System.Windows.Forms.Button m_guiNewThreshold;
- private System.Windows.Forms.GroupBox m_lblThresholdDetails;
- private System.Windows.Forms.Label m_lblThresRate;
- private System.Windows.Forms.Label m_lblThresMax;
- private System.Windows.Forms.Label m_lblThresMin;
- private System.Windows.Forms.TextBox m_guiThresRate;
- private System.Windows.Forms.TextBox m_guiThresMax;
- private System.Windows.Forms.TextBox m_guiThresMin;
- private System.Windows.Forms.Button m_guiResetStatus;
- /// <summary>
- /// Required designer variable.
- /// </summary>
- private System.ComponentModel.Container components = null;
- #endregion User Interface Elements
- #region Constructors and Destructors
- public VersionPane()
- {
- InitializeComponent();
- Initialize();
- InitRegisterEvents();
- }
- /// <summary>
- /// Clean up any resources being used.
- /// </summary>
- protected override void Dispose( bool disposing )
- {
- if( disposing )
- {
- if(components != null)
- {
- components.Dispose();
- }
- }
- base.Dispose( disposing );
- }
- #endregion Constructors and Destructors
- #region Component Designer generated code
- /// <summary>
- /// Required method for Designer support - do not modify
- /// the contents of this method with the code editor.
- /// </summary>
- private void InitializeComponent()
- {
- this.m_guiNewVersion = new System.Windows.Forms.Button();
- this.m_guiApprove = new System.Windows.Forms.Button();
- this.m_lblVersionList = new System.Windows.Forms.Label();
- this.m_guiReject = new System.Windows.Forms.Button();
- this.m_lblVersionDetails = new System.Windows.Forms.GroupBox();
- this.m_guiSunset = new DevExpress.XtraEditors.DateEdit();
- this.m_guiEffective = new DevExpress.XtraEditors.DateEdit();
- this.m_panelAuditInfo = new System.Windows.Forms.Panel();
- this.m_guiTaxRuleId = new System.Windows.Forms.TextBox();
- this.m_lblTaxRuleId = new System.Windows.Forms.Label();
- this.m_guiVersionId = new System.Windows.Forms.TextBox();
- this.m_lblVersionId = new System.Windows.Forms.Label();
- this.m_guiIsPosted = new System.Windows.Forms.TextBox();
- this.m_guiRecordStatus = new System.Windows.Forms.TextBox();
- this.m_lblIsPosted = new System.Windows.Forms.Label();
- this.m_lblRecordStatus = new System.Windows.Forms.Label();
- this.m_guiUpdateDate = new System.Windows.Forms.TextBox();
- this.m_guiUpdateUser = new System.Windows.Forms.TextBox();
- this.m_lblUpdateDate = new System.Windows.Forms.Label();
- this.m_lblUpdateUser = new System.Windows.Forms.Label();
- this.m_guiCreateDate = new System.Windows.Forms.TextBox();
- this.m_guiCreateUser = new System.Windows.Forms.TextBox();
- this.m_lblCreateDate = new System.Windows.Forms.Label();
- this.m_lblCreateUser = new System.Windows.Forms.Label();
- this.m_guiComments = new System.Windows.Forms.TextBox();
- this.m_panelThresholds = new System.Windows.Forms.Panel();
- this.m_lblThresholdDetails = new System.Windows.Forms.GroupBox();
- this.m_guiThresRate = new System.Windows.Forms.TextBox();
- this.m_guiThresMin = new System.Windows.Forms.TextBox();
- this.m_guiThresMax = new System.Windows.Forms.TextBox();
- this.m_lblThresMin = new System.Windows.Forms.Label();
- this.m_lblThresMax = new System.Windows.Forms.Label();
- this.m_lblThresRate = new System.Windows.Forms.Label();
- this.m_lblRateThresholdType = new System.Windows.Forms.Label();
- this.m_guiRateThresholdType = new System.Windows.Forms.ComboBox();
- this.m_guiNewThreshold = new System.Windows.Forms.Button();
- this.m_guiThresholdList = new System.Windows.Forms.ListView();
- this.m_colThresMin = new System.Windows.Forms.ColumnHeader();
- this.m_colThresMax = new System.Windows.Forms.ColumnHeader();
- this.m_colThresRate = new System.Windows.Forms.ColumnHeader();
- this.m_lblThresholds = new System.Windows.Forms.Label();
- this.m_guiAmtThresholdType = new System.Windows.Forms.ComboBox();
- this.m_lblAmountThresholdType = new System.Windows.Forms.Label();
- this.m_lblItemDocIndicator = new System.Windows.Forms.GroupBox();
- this.m_guiDocumentIndicator = new System.Windows.Forms.RadioButton();
- this.m_guiItemIndicator = new System.Windows.Forms.RadioButton();
- this.m_lblUseCommonRules = new System.Windows.Forms.Label();
- this.m_guiUseCommonRulesNo = new System.Windows.Forms.RadioButton();
- this.m_guiUseCommonRulesYes = new System.Windows.Forms.RadioButton();
- this.m_lblComments = new System.Windows.Forms.Label();
- this.m_lblRate = new System.Windows.Forms.Label();
- this.m_lblCommonRules = new System.Windows.Forms.GroupBox();
- this.m_guiApplyDistrict = new System.Windows.Forms.CheckBox();
- this.m_guiApplyState = new System.Windows.Forms.CheckBox();
- this.m_guiApplySelf = new System.Windows.Forms.CheckBox();
- this.m_guiApplyCity = new System.Windows.Forms.CheckBox();
- this.m_guiApplyCounty = new System.Windows.Forms.CheckBox();
- this.m_guiRate = new System.Windows.Forms.TextBox();
- this.m_lblSunset = new System.Windows.Forms.Label();
- this.m_lblEffective = new System.Windows.Forms.Label();
- this.persistentRepository1 = new DevExpress.XtraEditors.Repository.PersistentRepository();
- this.m_editorComboBox = new DevExpress.XtraEditors.Repository.RepositoryItemComboBox();
- this.m_guiVersionList = new System.Windows.Forms.ListView();
- this.m_colVersionId = new System.Windows.Forms.ColumnHeader();
- this.m_colEffectiveDate = new System.Windows.Forms.ColumnHeader();
- this.m_colSunsetDate = new System.Windows.Forms.ColumnHeader();
- this.m_colItemDocInd = new System.Windows.Forms.ColumnHeader();
- this.m_colRate = new System.Windows.Forms.ColumnHeader();
- this.m_colUseCommonRules = new System.Windows.Forms.ColumnHeader();
- this.m_colApplyToSelf = new System.Windows.Forms.ColumnHeader();
- this.m_colApplyToState = new System.Windows.Forms.ColumnHeader();
- this.m_colApplyToCounty = new System.Windows.Forms.ColumnHeader();
- this.m_colApplyToCity = new System.Windows.Forms.ColumnHeader();
- this.m_colApplyToDistrict = new System.Windows.Forms.ColumnHeader();
- this.m_colRecordStatus = new System.Windows.Forms.ColumnHeader();
- this.m_colIsPosted = new System.Windows.Forms.ColumnHeader();
- this.m_colTaxRuleId = new System.Windows.Forms.ColumnHeader();
- this.m_guiResetStatus = new System.Windows.Forms.Button();
- this.m_lblVersionDetails.SuspendLayout();
- ((System.ComponentModel.ISupportInitialize)(this.m_guiSunset)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.m_guiEffective)).BeginInit();
- this.m_panelAuditInfo.SuspendLayout();
- this.m_panelThresholds.SuspendLayout();
- this.m_lblThresholdDetails.SuspendLayout();
- this.m_lblItemDocIndicator.SuspendLayout();
- this.m_lblCommonRules.SuspendLayout();
- ((System.ComponentModel.ISupportInitialize)(this.m_editorComboBox)).BeginInit();
- this.SuspendLayout();
- //
- // m_guiNewVersion
- //
- this.m_guiNewVersion.Location = new System.Drawing.Point(456, 560);
- this.m_guiNewVersion.Name = "m_guiNewVersion";
- this.m_guiNewVersion.Size = new System.Drawing.Size(88, 24);
- this.m_guiNewVersion.TabIndex = 220;
- this.m_guiNewVersion.Text = "New Version";
- this.m_guiNewVersion.Click += new System.EventHandler(this.m_guiNewVersion_Click);
- //
- // m_guiApprove
- //
- this.m_guiApprove.Location = new System.Drawing.Point(552, 560);
- this.m_guiApprove.Name = "m_guiApprove";
- this.m_guiApprove.Size = new System.Drawing.Size(88, 24);
- this.m_guiApprove.TabIndex = 230;
- this.m_guiApprove.Text = "Approve";
- this.m_guiApprove.Click += new System.EventHandler(this.m_guiApprove_Click);
- //
- // m_lblVersionList
- //
- this.m_lblVersionList.Location = new System.Drawing.Point(17, 16);
- this.m_lblVersionList.Name = "m_lblVersionList";
- this.m_lblVersionList.Size = new System.Drawing.Size(160, 16);
- this.m_lblVersionList.TabIndex = 31;
- this.m_lblVersionList.Text = "Versions List";
- //
- // m_guiReject
- //
- this.m_guiReject.Location = new System.Drawing.Point(648, 560);
- this.m_guiReject.Name = "m_guiReject";
- this.m_guiReject.Size = new System.Drawing.Size(88, 24);
- this.m_guiReject.TabIndex = 240;
- this.m_guiReject.Text = "Reject";
- this.m_guiReject.Click += new System.EventHandler(this.m_guiReject_Click);
- //
- // m_lblVersionDetails
- //
- this.m_lblVersionDetails.Controls.Add(this.m_guiSunset);
- this.m_lblVersionDetails.Controls.Add(this.m_guiEffective);
- this.m_lblVersionDetails.Controls.Add(this.m_panelAuditInfo);
- this.m_lblVersionDetails.Controls.Add(this.m_guiComments);
- this.m_lblVersionDetails.Controls.Add(this.m_panelThresholds);
- this.m_lblVersionDetails.Controls.Add(this.m_guiAmtThresholdType);
- this.m_lblVersionDetails.Controls.Add(this.m_lblAmountThresholdType);
- this.m_lblVersionDetails.Controls.Add(this.m_lblItemDocIndicator);
- this.m_lblVersionDetails.Controls.Add(this.m_lblUseCommonRules);
- this.m_lblVersionDetails.Controls.Add(this.m_guiUseCommonRulesNo);
- this.m_lblVersionDetails.Controls.Add(this.m_guiUseCommonRulesYes);
- this.m_lblVersionDetails.Controls.Add(this.m_lblComments);
- this.m_lblVersionDetails.Controls.Add(this.m_lblRate);
- this.m_lblVersionDetails.Controls.Add(this.m_lblCommonRules);
- this.m_lblVersionDetails.Controls.Add(this.m_guiRate);
- this.m_lblVersionDetails.Controls.Add(this.m_lblSunset);
- this.m_lblVersionDetails.Controls.Add(this.m_lblEffective);
- this.m_lblVersionDetails.Location = new System.Drawing.Point(17, 136);
- this.m_lblVersionDetails.Name = "m_lblVersionDetails";
- this.m_lblVersionDetails.Size = new System.Drawing.Size(816, 400);
- this.m_lblVersionDetails.TabIndex = 28;
- this.m_lblVersionDetails.TabStop = false;
- this.m_lblVersionDetails.Text = "Version Details";
- //
- // m_guiSunset
- //
- this.m_guiSunset.DateTime = new System.DateTime(((long)(0)));
- this.m_guiSunset.Location = new System.Drawing.Point(240, 96);
- this.m_guiSunset.Name = "m_guiSunset";
- this.m_guiSunset.Properties.Buttons.Add(new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo));
- this.m_guiSunset.Properties.Format = null;
- this.m_guiSunset.Properties.FormatString = "MMMM dd, yyyy";
- this.m_guiSunset.Size = new System.Drawing.Size(192, 21);
- this.m_guiSunset.TabIndex = 100;
- //
- // m_guiEffective
- //
- this.m_guiEffective.DateTime = new System.DateTime(((long)(0)));
- this.m_guiEffective.Location = new System.Drawing.Point(240, 64);
- this.m_guiEffective.Name = "m_guiEffective";
- this.m_guiEffective.Properties.Buttons.Add(new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo));
- this.m_guiEffective.Properties.Format = null;
- this.m_guiEffective.Properties.FormatString = "MMMM dd, yyyy";
- this.m_guiEffective.Size = new System.Drawing.Size(192, 21);
- this.m_guiEffective.TabIndex = 90;
- //
- // m_panelAuditInfo
- //
- this.m_panelAuditInfo.Controls.Add(this.m_guiTaxRuleId);
- this.m_panelAuditInfo.Controls.Add(this.m_lblTaxRuleId);
- this.m_panelAuditInfo.Controls.Add(this.m_guiVersionId);
- this.m_panelAuditInfo.Controls.Add(this.m_lblVersionId);
- this.m_panelAuditInfo.Controls.Add(this.m_guiIsPosted);
- this.m_panelAuditInfo.Controls.Add(this.m_guiRecordStatus);
- this.m_panelAuditInfo.Controls.Add(this.m_lblIsPosted);
- this.m_panelAuditInfo.Controls.Add(this.m_lblRecordStatus);
- this.m_panelAuditInfo.Controls.Add(this.m_guiUpdateDate);
- this.m_panelAuditInfo.Controls.Add(this.m_guiUpdateUser);
- this.m_panelAuditInfo.Controls.Add(this.m_lblUpdateDate);
- this.m_panelAuditInfo.Controls.Add(this.m_lblUpdateUser);
- this.m_panelAuditInfo.Controls.Add(this.m_guiCreateDate);
- this.m_panelAuditInfo.Controls.Add(this.m_guiCreateUser);
- this.m_panelAuditInfo.Controls.Add(this.m_lblCreateDate);
- this.m_panelAuditInfo.Controls.Add(this.m_lblCreateUser);
- this.m_panelAuditInfo.Location = new System.Drawing.Point(16, 304);
- this.m_panelAuditInfo.Name = "m_panelAuditInfo";
- this.m_panelAuditInfo.Size = new System.Drawing.Size(784, 80);
- this.m_panelAuditInfo.TabIndex = 40;
- //
- // m_guiTaxRuleId
- //
- this.m_guiTaxRuleId.BackColor = System.Drawing.SystemColors.Control;
- this.m_guiTaxRuleId.Location = new System.Drawing.Point(80, 46);
- this.m_guiTaxRuleId.Name = "m_guiTaxRuleId";
- this.m_guiTaxRuleId.ReadOnly = true;
- this.m_guiTaxRuleId.Size = new System.Drawing.Size(88, 20);
- this.m_guiTaxRuleId.TabIndex = 74;
- this.m_guiTaxRuleId.TabStop = false;
- this.m_guiTaxRuleId.Text = "";
- //
- // m_lblTaxRuleId
- //
- this.m_lblTaxRuleId.Location = new System.Drawing.Point(8, 46);
- this.m_lblTaxRuleId.Name = "m_lblTaxRuleId";
- this.m_lblTaxRuleId.Size = new System.Drawing.Size(64, 16);
- this.m_lblTaxRuleId.TabIndex = 73;
- this.m_lblTaxRuleId.Text = "Tax Rule Id";
- this.m_lblTaxRuleId.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
- //
- // m_guiVersionId
- //
- this.m_guiVersionId.BackColor = System.Drawing.SystemColors.Control;
- this.m_guiVersionId.Location = new System.Drawing.Point(80, 14);
- this.m_guiVersionId.Name = "m_guiVersionId";
- this.m_guiVersionId.ReadOnly = true;
- this.m_guiVersionId.Size = new System.Drawing.Size(88, 20);
- this.m_guiVersionId.TabIndex = 72;
- this.m_guiVersionId.TabStop = false;
- this.m_guiVersionId.Text = "";
- //
- // m_lblVersionId
- //
- this.m_lblVersionId.Location = new System.Drawing.Point(8, 14);
- this.m_lblVersionId.Name = "m_lblVersionId";
- this.m_lblVersionId.Size = new System.Drawing.Size(56, 16);
- this.m_lblVersionId.TabIndex = 71;
- this.m_lblVersionId.Text = "Version Id";
- this.m_lblVersionId.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
- //
- // m_guiIsPosted
- //
- this.m_guiIsPosted.BackColor = System.Drawing.SystemColors.Control;
- this.m_guiIsPosted.Location = new System.Drawing.Point(672, 46);
- this.m_guiIsPosted.Name = "m_guiIsPosted";
- this.m_guiIsPosted.ReadOnly = true;
- this.m_guiIsPosted.Size = new System.Drawing.Size(104, 20);
- this.m_guiIsPosted.TabIndex = 70;
- this.m_guiIsPosted.TabStop = false;
- this.m_guiIsPosted.Text = "";
- //
- // m_guiRecordStatus
- //
- this.m_guiRecordStatus.BackColor = System.Drawing.SystemColors.Control;
- this.m_guiRecordStatus.Location = new System.Drawing.Point(672, 14);
- this.m_guiRecordStatus.Name = "m_guiRecordStatus";
- this.m_guiRecordStatus.ReadOnly = true;
- this.m_guiRecordStatus.Size = new System.Drawing.Size(104, 20);
- this.m_guiRecordStatus.TabIndex = 69;
- this.m_guiRecordStatus.TabStop = false;
- this.m_guiRecordStatus.Text = "";
- //
- // m_lblIsPosted
- //
- this.m_lblIsPosted.Location = new System.Drawing.Point(584, 46);
- this.m_lblIsPosted.Name = "m_lblIsPosted";
- this.m_lblIsPosted.Size = new System.Drawing.Size(72, 16);
- this.m_lblIsPosted.TabIndex = 68;
- this.m_lblIsPosted.Text = "Is Posted";
- this.m_lblIsPosted.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
- //
- // m_lblRecordStatus
- //
- this.m_lblRecordStatus.Location = new System.Drawing.Point(584, 14);
- this.m_lblRecordStatus.Name = "m_lblRecordStatus";
- this.m_lblRecordStatus.Size = new System.Drawing.Size(88, 16);
- this.m_lblRecordStatus.TabIndex = 67;
- this.m_lblRecordStatus.Text = "Record Status";
- this.m_lblRecordStatus.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
- //
- // m_guiUpdateDate
- //
- this.m_guiUpdateDate.BackColor = System.Drawing.SystemColors.Control;
- this.m_guiUpdateDate.Location = new System.Drawing.Point(464, 46);
- this.m_guiUpdateDate.Name = "m_guiUpdateDate";
- this.m_guiUpdateDate.ReadOnly = true;
- this.m_guiUpdateDate.Size = new System.Drawing.Size(96, 20);
- this.m_guiUpdateDate.TabIndex = 66;
- this.m_guiUpdateDate.TabStop = false;
- this.m_guiUpdateDate.Text = "";
- //
- // m_guiUpdateUser
- //
- this.m_guiUpdateUser.BackColor = System.Drawing.SystemColors.Control;
- this.m_guiUpdateUser.Location = new System.Drawing.Point(464, 14);
- this.m_guiUpdateUser.Name = "m_guiUpdateUser";
- this.m_guiUpdateUser.ReadOnly = true;
- this.m_guiUpdateUser.Size = new System.Drawing.Size(96, 20);
- this.m_guiUpdateUser.TabIndex = 65;
- this.m_guiUpdateUser.TabStop = false;
- this.m_guiUpdateUser.Text = "";
- //
- // m_lblUpdateDate
- //
- this.m_lblUpdateDate.Location = new System.Drawing.Point(392, 46);
- this.m_lblUpdateDate.Name = "m_lblUpdateDate";
- this.m_lblUpdateDate.Size = new System.Drawing.Size(72, 16);
- this.m_lblUpdateDate.TabIndex = 64;
- this.m_lblUpdateDate.Text = "Update Date";
- this.m_lblUpdateDate.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
- //
- // m_lblUpdateUser
- //
- this.m_lblUpdateUser.Location = new System.Drawing.Point(392, 14);
- this.m_lblUpdateUser.Name = "m_lblUpdateUser";
- this.m_lblUpdateUser.Size = new System.Drawing.Size(72, 16);
- this.m_lblUpdateUser.TabIndex = 63;
- this.m_lblUpdateUser.Text = "Update User";
- this.m_lblUpdateUser.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
- //
- // m_guiCreateDate
- //
- this.m_guiCreateDate.BackColor = System.Drawing.SystemColors.Control;
- this.m_guiCreateDate.Location = new System.Drawing.Point(264, 46);
- this.m_guiCreateDate.Name = "m_guiCreateDate";
- this.m_guiCreateDate.ReadOnly = true;
- this.m_guiCreateDate.Size = new System.Drawing.Size(104, 20);
- this.m_guiCreateDate.TabIndex = 62;
- this.m_guiCreateDate.TabStop = false;
- this.m_guiCreateDate.Text = "";
- //
- // m_guiCreateUser
- //
- this.m_guiCreateUser.BackColor = System.Drawing.SystemColors.Control;
- this.m_guiCreateUser.Location = new System.Drawing.Point(264, 14);
- this.m_guiCreateUser.Name = "m_guiCreateUser";
- this.m_guiCreateUser.ReadOnly = true;
- this.m_guiCreateUser.Size = new System.Drawing.Size(104, 20);
- this.m_guiCreateUser.TabIndex = 61;
- this.m_guiCreateUser.TabStop = false;
- this.m_guiCreateUser.Text = "";
- //
- // m_lblCreateDate
- //
- this.m_lblCreateDate.Location = new System.Drawing.Point(192, 46);
- this.m_lblCreateDate.Name = "m_lblCreateDate";
- this.m_lblCreateDate.Size = new System.Drawing.Size(72, 16);
- this.m_lblCreateDate.TabIndex = 60;
- this.m_lblCreateDate.Text = "Create Date";
- this.m_lblCreateDate.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
- //
- // m_lblCreateUser
- //
- this.m_lblCreateUser.Location = new System.Drawing.Point(192, 14);
- this.m_lblCreateUser.Name = "m_lblCreateUser";
- this.m_lblCreateUser.Size = new System.Drawing.Size(72, 16);
- this.m_lblCreateUser.TabIndex = 59;
- this.m_lblCreateUser.Text = "Create User";
- this.m_lblCreateUser.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
- //
- // m_guiComments
- //
- this.m_guiComments.Location = new System.Drawing.Point(240, 136);
- this.m_guiComments.Multiline = true;
- this.m_guiComments.Name = "m_guiComments";
- this.m_guiComments.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
- this.m_guiComments.Size = new System.Drawing.Size(552, 40);
- this.m_guiComments.TabIndex = 150;
- this.m_guiComments.Text = "";
- //
- // m_panelThresholds
- //
- this.m_panelThresholds.Controls.Add(this.m_lblThresholdDetails);
- this.m_panelThresholds.Controls.Add(this.m_guiThresholdList);
- this.m_panelThresholds.Controls.Add(this.m_lblThresholds);
- this.m_panelThresholds.Location = new System.Drawing.Point(16, 184);
- this.m_panelThresholds.Name = "m_panelThresholds";
- this.m_panelThresholds.Size = new System.Drawing.Size(784, 112);
- this.m_panelThresholds.TabIndex = 39;
- //
- // m_lblThresholdDetails
- //
- this.m_lblThresholdDetails.Controls.Add(this.m_guiThresRate);
- this.m_lblThresholdDetails.Controls.Add(this.m_guiThresMin);
- this.m_lblThresholdDetails.Controls.Add(this.m_guiThresMax);
- this.m_lblThresholdDetails.Controls.Add(this.m_lblThresMin);
- this.m_lblThresholdDetails.Controls.Add(this.m_lblThresMax);
- this.m_lblThresholdDetails.Controls.Add(this.m_lblThresRate);
- this.m_lblThresholdDetails.Controls.Add(this.m_lblRateThresholdType);
- this.m_lblThresholdDetails.Controls.Add(this.m_guiRateThresholdType);
- this.m_lblThresholdDetails.Controls.Add(this.m_guiNewThreshold);
- this.m_lblThresholdDetails.ImeMode = System.Windows.Forms.ImeMode.On;
- this.m_lblThresholdDetails.Location = new System.Drawing.Point(320, 8);
- this.m_lblThresholdDetails.Name = "m_lblThresholdDetails";
- this.m_lblThresholdDetails.Size = new System.Drawing.Size(456, 104);
- this.m_lblThresholdDetails.TabIndex = 169;
- this.m_lblThresholdDetails.TabStop = false;
- this.m_lblThresholdDetails.Text = "Threshold Details";
- //
- // m_guiThresRate
- //
- this.m_guiThresRate.Location = new System.Drawing.Point(48, 64);
- this.m_guiThresRate.Name = "m_guiThresRate";
- this.m_guiThresRate.Size = new System.Drawing.Size(88, 20);
- this.m_guiThresRate.TabIndex = 200;
- this.m_guiThresRate.Text = "";
- //
- // m_guiThresMin
- //
- this.m_guiThresMin.Location = new System.Drawing.Point(48, 32);
- this.m_guiThresMin.Name = "m_guiThresMin";
- this.m_guiThresMin.Size = new System.Drawing.Size(88, 20);
- this.m_guiThresMin.TabIndex = 170;
- this.m_guiThresMin.Text = "";
- //
- // m_guiThresMax
- //
- this.m_guiThresMax.Location = new System.Drawing.Point(176, 32);
- this.m_guiThresMax.Name = "m_guiThresMax";
- this.m_guiThresMax.Size = new System.Drawing.Size(88, 20);
- this.m_guiThresMax.TabIndex = 180;
- this.m_guiThresMax.Text = "";
- //
- // m_lblThresMin
- //
- this.m_lblThresMin.Location = new System.Drawing.Point(16, 32);
- this.m_lblThresMin.Name = "m_lblThresMin";
- this.m_lblThresMin.Size = new System.Drawing.Size(64, 16);
- this.m_lblThresMin.TabIndex = 186;
- this.m_lblThresMin.Text = "Min";
- this.m_lblThresMin.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
- //
- // m_lblThresMax
- //
- this.m_lblThresMax.Location = new System.Drawing.Point(144, 32);
- this.m_lblThresMax.Name = "m_lblThresMax";
- this.m_lblThresMax.Size = new System.Drawing.Size(88, 16);
- this.m_lblThresMax.TabIndex = 187;
- this.m_lblThresMax.Text = "Max";
- this.m_lblThresMax.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
- //
- // m_lblThresRate
- //
- this.m_lblThresRate.Location = new System.Drawing.Point(16, 64);
- this.m_lblThresRate.Name = "m_lblThresRate";
- this.m_lblThresRate.Size = new System.Drawing.Size(40, 16);
- this.m_lblThresRate.TabIndex = 188;
- this.m_lblThresRate.Text = "Rate";
- this.m_lblThresRate.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
- //
- // m_lblRateThresholdType
- //
- this.m_lblRateThresholdType.Location = new System.Drawing.Point(328, 16);
- this.m_lblRateThresholdType.Name = "m_lblRateThresholdType";
- this.m_lblRateThresholdType.Size = new System.Drawing.Size(112, 16);
- this.m_lblRateThresholdType.TabIndex = 39;
- this.m_lblRateThresholdType.Text = "Rate Threshold Type";
- this.m_lblRateThresholdType.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
- //
- // m_guiRateThresholdType
- //
- this.m_guiRateThresholdType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
- this.m_guiRateThresholdType.Location = new System.Drawing.Point(328, 32);
- this.m_guiRateThresholdType.Name = "m_guiRateThresholdType";
- this.m_guiRateThresholdType.Size = new System.Drawing.Size(112, 21);
- this.m_guiRateThresholdType.TabIndex = 190;
- //
- // m_guiNewThreshold
- //
- this.m_guiNewThreshold.Location = new System.Drawing.Point(328, 64);
- this.m_guiNewThreshold.Name = "m_guiNewThreshold";
- this.m_guiNewThreshold.Size = new System.Drawing.Size(112, 24);
- this.m_guiNewThreshold.TabIndex = 210;
- this.m_guiNewThreshold.Text = "New Threshold";
- this.m_guiNewThreshold.Click += new System.EventHandler(this.m_guiNewThreshold_Click);
- //
- // m_guiThresholdList
- //
- this.m_guiThresholdList.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
- this.m_colThresMin,
- this.m_colThresMax,
- this.m_colThresRate});
- this.m_guiThresholdList.FullRowSelect = true;
- this.m_guiThresholdList.GridLines = true;
- this.m_guiThresholdList.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.Nonclickable;
- this.m_guiThresholdList.HideSelection = false;
- this.m_guiThresholdList.Location = new System.Drawing.Point(8, 16);
- this.m_guiThresholdList.MultiSelect = false;
- this.m_guiThresholdList.Name = "m_guiThresholdList";
- this.m_guiThresholdList.Size = new System.Drawing.Size(296, 96);
- this.m_guiThresholdList.Sorting = System.Windows.Forms.SortOrder.Ascending;
- this.m_guiThresholdList.TabIndex = 160;
- this.m_guiThresholdList.View = System.Windows.Forms.View.Details;
- //
- // m_colThresMin
- //
- this.m_colThresMin.Text = "Minimum";
- this.m_colThresMin.Width = 90;
- //
- // m_colThresMax
- //
- this.m_colThresMax.Text = "Maximum";
- this.m_colThresMax.Width = 90;
- //
- // m_colThresRate
- //
- this.m_colThresRate.Text = "Rate";
- this.m_colThresRate.Width = 70;
- //
- // m_lblThresholds
- //
- this.m_lblThresholds.Location = new System.Drawing.Point(8, 0);
- this.m_lblThresholds.Name = "m_lblThresholds";
- this.m_lblThresholds.Size = new System.Drawing.Size(88, 16);
- this.m_lblThresholds.TabIndex = 37;
- this.m_lblThresholds.Text = "Threshold List";
- this.m_lblThresholds.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
- //
- // m_guiAmtThresholdType
- //
- this.m_guiAmtThresholdType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
- this.m_guiAmtThresholdType.Location = new System.Drawing.Point(632, 40);
- this.m_guiAmtThresholdType.Name = "m_guiAmtThresholdType";
- this.m_guiAmtThresholdType.Size = new System.Drawing.Size(160, 21);
- this.m_guiAmtThresholdType.TabIndex = 120;
- //
- // m_lblAmountThresholdType
- //
- this.m_lblAmountThresholdType.Location = new System.Drawing.Point(632, 24);
- this.m_lblAmountThresholdType.Name = "m_lblAmountThresholdType";
- this.m_lblAmountThresholdType.Size = new System.Drawing.Size(112, 16);
- this.m_lblAmountThresholdType.TabIndex = 37;
- this.m_lblAmountThresholdType.Text = "Amt Threshold Type";
- this.m_lblAmountThresholdType.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
- //
- // m_lblItemDocIndicator
- //
- this.m_lblItemDocIndicator.Controls.Add(this.m_guiDocumentIndicator);
- this.m_lblItemDocIndicator.Controls.Add(this.m_guiItemIndicator);
- this.m_lblItemDocIndicator.Location = new System.Drawing.Point(472, 72);
- this.m_lblItemDocIndicator.Name = "m_lblItemDocIndicator";
- this.m_lblItemDocIndicator.Size = new System.Drawing.Size(216, 48);
- this.m_lblItemDocIndicator.TabIndex = 129;
- this.m_lblItemDocIndicator.TabStop = false;
- this.m_lblItemDocIndicator.Text = "Item Document Indicator";
- //
- // m_guiDocumentIndicator
- //
- this.m_guiDocumentIndicator.Location = new System.Drawing.Point(112, 16);
- this.m_guiDocumentIndicator.Name = "m_guiDocumentIndicator";
- this.m_guiDocumentIndicator.Size = new System.Drawing.Size(80, 24);
- this.m_guiDocumentIndicator.TabIndex = 140;
- this.m_guiDocumentIndicator.Tag = "D";
- this.m_guiDocumentIndicator.Text = "Document";
- this.m_guiDocumentIndicator.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
- //
- // m_guiItemIndicator
- //
- this.m_guiItemIndicator.Location = new System.Drawing.Point(32, 16);
- this.m_guiItemIndicator.Name = "m_guiItemIndicator";
- this.m_guiItemIndicator.Size = new System.Drawing.Size(48, 24);
- this.m_guiItemIndicator.TabIndex = 130;
- this.m_guiItemIndicator.Tag = "I";
- this.m_guiItemIndicator.Text = "Item";
- this.m_guiItemIndicator.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
- //
- // m_lblUseCommonRules
- //
- this.m_lblUseCommonRules.Location = new System.Drawing.Point(184, 24);
- this.m_lblUseCommonRules.Name = "m_lblUseCommonRules";
- this.m_lblUseCommonRules.Size = new System.Drawing.Size(112, 24);
- this.m_lblUseCommonRules.TabIndex = 31;
- this.m_lblUseCommonRules.Text = "Use Common Rules:";
- this.m_lblUseCommonRules.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
- //
- // m_guiUseCommonRulesNo
- //
- this.m_guiUseCommonRulesNo.Location = new System.Drawing.Point(368, 24);
- this.m_guiUseCommonRulesNo.Name = "m_guiUseCommonRulesNo";
- this.m_guiUseCommonRulesNo.Size = new System.Drawing.Size(40, 24);
- this.m_guiUseCommonRulesNo.TabIndex = 80;
- this.m_guiUseCommonRulesNo.Tag = "N";
- this.m_guiUseCommonRulesNo.Text = "No";
- this.m_guiUseCommonRulesNo.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
- //
- // m_guiUseCommonRulesYes
- //
- this.m_guiUseCommonRulesYes.Location = new System.Drawing.Point(304, 24);
- this.m_guiUseCommonRulesYes.Name = "m_guiUseCommonRulesYes";
- this.m_guiUseCommonRulesYes.Size = new System.Drawing.Size(48, 24);
- this.m_guiUseCommonRulesYes.TabIndex = 70;
- this.m_guiUseCommonRulesYes.Tag = "Y";
- this.m_guiUseCommonRulesYes.Text = "Yes";
- this.m_guiUseCommonRulesYes.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
- //
- // m_lblComments
- //
- this.m_lblComments.Location = new System.Drawing.Point(184, 128);
- this.m_lblComments.Name = "m_lblComments";
- this.m_lblComments.Size = new System.Drawing.Size(56, 32);
- this.m_lblComments.TabIndex = 26;
- this.m_lblComments.Text = "Comment";
- this.m_lblComments.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
- //
- // m_lblRate
- //
- this.m_lblRate.Location = new System.Drawing.Point(472, 24);
- this.m_lblRate.Name = "m_lblRate";
- this.m_lblRate.Size = new System.Drawing.Size(144, 16);
- this.m_lblRate.TabIndex = 25;
- this.m_lblRate.Text = "Rate";
- this.m_lblRate.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
- //
- // m_lblCommonRules
- //
- this.m_lblCommonRules.Controls.Add(this.m_guiApplyDistrict);
- this.m_lblCommonRules.Controls.Add(this.m_guiApplyState);
- this.m_lblCommonRules.Controls.Add(this.m_guiApplySelf);
- this.m_lblCommonRules.Controls.Add(this.m_guiApplyCity);
- this.m_lblCommonRules.Controls.Add(this.m_guiApplyCounty);
- this.m_lblCommonRules.Location = new System.Drawing.Point(24, 24);
- this.m_lblCommonRules.Name = "m_lblCommonRules";
- this.m_lblCommonRules.Size = new System.Drawing.Size(144, 152);
- this.m_lblCommonRules.TabIndex = 9;
- this.m_lblCommonRules.TabStop = false;
- this.m_lblCommonRules.Text = "Common Rules";
- //
- // m_guiApplyDistrict
- //
- this.m_guiApplyDistrict.Location = new System.Drawing.Point(16, 120);
- this.m_guiApplyDistrict.Name = "m_guiApplyDistrict";
- this.m_guiApplyDistrict.Size = new System.Drawing.Size(120, 24);
- this.m_guiApplyDistrict.TabIndex = 60;
- this.m_guiApplyDistrict.Text = "Apply To District";
- //
- // m_guiApplyState
- //
- this.m_guiApplyState.Location = new System.Drawing.Point(16, 48);
- this.m_guiApplyState.Name = "m_guiApplyState";
- this.m_guiApplyState.Size = new System.Drawing.Size(120, 24);
- this.m_guiApplyState.TabIndex = 30;
- this.m_guiApplyState.Text = "Apply To State";
- //
- // m_guiApplySelf
- //
- this.m_guiApplySelf.Location = new System.Drawing.Point(16, 24);
- this.m_guiApplySelf.Name = "m_guiApplySelf";
- this.m_guiApplySelf.Size = new System.Drawing.Size(120, 24);
- this.m_guiApplySelf.TabIndex = 20;
- this.m_guiApplySelf.Text = "Apply To Self";
- //
- // m_guiApplyCity
- //
- this.m_guiApplyCity.Location = new System.Drawing.Point(16, 96);
- this.m_guiApplyCity.Name = "m_guiApplyCity";
- this.m_guiApplyCity.Size = new System.Drawing.Size(120, 24);
- this.m_guiApplyCity.TabIndex = 50;
- this.m_guiApplyCity.Text = "Apply To City";
- //
- // m_guiApplyCounty
- //
- this.m_guiApplyCounty.Location = new System.Drawing.Point(16, 72);
- this.m_guiApplyCounty.Name = "m_guiApplyCounty";
- this.m_guiApplyCounty.Size = new System.Drawing.Size(120, 24);
- this.m_guiApplyCounty.TabIndex = 40;
- this.m_guiApplyCounty.Text = "Apply To County";
- //
- // m_guiRate
- //
- this.m_guiRate.Location = new System.Drawing.Point(472, 40);
- this.m_guiRate.Name = "m_guiRate";
- this.m_guiRate.Size = new System.Drawing.Size(152, 20);
- this.m_guiRate.TabIndex = 110;
- this.m_guiRate.Text = "";
- //
- // m_lblSunset
- //
- this.m_lblSunset.Location = new System.Drawing.Point(184, 96);
- this.m_lblSunset.Name = "m_lblSunset";
- this.m_lblSunset.Size = new System.Drawing.Size(48, 16);
- this.m_lblSunset.TabIndex = 3;
- this.m_lblSunset.Text = "Sunset";
- this.m_lblSunset.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
- //
- // m_lblEffective
- //
- this.m_lblEffective.Location = new System.Drawing.Point(184, 64);
- this.m_lblEffective.Name = "m_lblEffective";
- this.m_lblEffective.Size = new System.Drawing.Size(48, 16);
- this.m_lblEffective.TabIndex = 2;
- this.m_lblEffective.Text = "Effective";
- this.m_lblEffective.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
- //
- // persistentRepository1
- //
- this.persistentRepository1.Items.AddRange(new DevExpress.XtraEditors.Repository.RepositoryItem[] {
- this.m_editorComboBox});
- //
- // m_editorComboBox
- //
- this.m_editorComboBox.Name = "m_editorComboBox";
- this.m_editorComboBox.Properties.AllowFocused = false;
- this.m_editorComboBox.Properties.AutoHeight = false;
- this.m_editorComboBox.Properties.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
- this.m_editorComboBox.Properties.Buttons.Add(new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo));
- this.m_editorComboBox.Properties.ButtonsBorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.HotFlat;
- this.m_editorComboBox.Properties.DropDownRows = 2;
- this.m_editorComboBox.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.DisableTextEditor;
- this.m_editorComboBox.Properties.UseCtrlScroll = true;
- //
- // m_guiVersionList
- //
- this.m_guiVersionList.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
- this.m_colVersionId,
- this.m_colEffectiveDate,
- this.m_colSunsetDate,
- this.m_colItemDocInd,
- this.m_colRate,
- this.m_colUseCommonRules,
- this.m_colApplyToSelf,
- this.m_colApplyToState,
- this.m_colApplyToCounty,
- this.m_colApplyToCity,
- this.m_colApplyToDistrict,
- this.m_colRecordStatus,
- this.m_colIsPosted,
- this.m_colTaxRuleId});
- this.m_guiVersionList.FullRowSelect = true;
- this.m_guiVersionList.GridLines = true;
- this.m_guiVersionList.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.Nonclickable;
- this.m_guiVersionList.HideSelection = false;
- this.m_guiVersionList.Location = new System.Drawing.Point(16, 32);
- this.m_guiVersionList.MultiSelect = false;
- this.m_guiVersionList.Name = "m_guiVersionList";
- this.m_guiVersionList.Size = new System.Drawing.Size(816, 96);
- this.m_guiVersionList.TabIndex = 10;
- this.m_guiVersionList.View = System.Windows.Forms.View.Details;
- //
- // m_colVersionId
- //
- this.m_colVersionId.Text = "Version Id";
- this.m_colVersionId.Width = 65;
- //
- // m_colEffectiveDate
- //
- this.m_colEffectiveDate.Text = "Effective Date";
- this.m_colEffectiveDate.Width = 80;
- //
- // m_colSunsetDate
- //
- this.m_colSunsetDate.Text = "Sunset Date";
- this.m_colSunsetDate.Width = 75;
- //
- // m_colItemDocInd
- //
- this.m_colItemDocInd.Text = "Item/Doc";
- //
- // m_colRate
- //
- this.m_colRate.Text = "Rate";
- //
- // m_colUseCommonRules
- //
- this.m_colUseCommonRules.Text = "Use Common";
- this.m_colUseCommonRules.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
- this.m_colUseCommonRules.Width = 75;
- //
- // m_colApplyToSelf
- //
- this.m_colApplyToSelf.Text = "Self";
- this.m_colApplyToSelf.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
- this.m_colApplyToSelf.Width = 35;
- //
- // m_colApplyToState
- //
- this.m_colApplyToState.Text = "State";
- this.m_colApplyToState.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
- this.m_colApplyToState.Width = 40;
- //
- // m_colApplyToCounty
- //
- this.m_colApplyToCounty.Text = "County";
- this.m_colApplyToCounty.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
- this.m_colApplyToCounty.Width = 50;
- //
- // m_colApplyToCity
- //
- this.m_colApplyToCity.Text = "City";
- this.m_colApplyToCity.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
- this.m_colApplyToCity.Width = 30;
- //
- // m_colApplyToDistrict
- //
- this.m_colApplyToDistrict.Text = "District";
- this.m_colApplyToDistrict.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
- this.m_colApplyToDistrict.Width = 45;
- //
- // m_colRecordStatus
- //
- this.m_colRecordStatus.Text = "Status";
- this.m_colRecordStatus.Width = 65;
- //
- // m_colIsPosted
- //
- this.m_colIsPosted.Text = "Is Posted";
- //
- // m_colTaxRuleId
- //
- this.m_colTaxRuleId.Text = "Tax Rule Id";
- this.m_colTaxRuleId.Width = 70;
- //
- // m_guiResetStatus
- //
- this.m_guiResetStatus.Location = new System.Drawing.Point(744, 560);
- this.m_guiResetStatus.Name = "m_guiResetStatus";
- this.m_guiResetStatus.Size = new System.Drawing.Size(88, 24);
- this.m_guiResetStatus.TabIndex = 250;
- this.m_guiResetStatus.Text = "Reset Status";
- this.m_guiResetStatus.Click += new System.EventHandler(this.m_guiResetStatus_Click);
- //
- // VersionPane
- //
- this.Controls.Add(this.m_guiResetStatus);
- this.Controls.Add(this.m_guiVersionList);
- this.Controls.Add(this.m_guiNewVersion);
- this.Controls.Add(this.m_guiApprove);
- this.Controls.Add(this.m_lblVersionList);
- this.Controls.Add(this.m_guiReject);
- this.Controls.Add(this.m_lblVersionDetails);
- this.Name = "VersionPane";
- this.Size = new System.Drawing.Size(850, 600);
- this.m_lblVersionDetails.ResumeLayout(false);
- ((System.ComponentModel.ISupportInitialize)(this.m_guiSunset)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.m_guiEffective)).EndInit();
- this.m_panelAuditInfo.ResumeLayout(false);
- this.m_panelThresholds.ResumeLayout(false);
- this.m_lblThresholdDetails.ResumeLayout(false);
- this.m_lblItemDocIndicator.ResumeLayout(false);
- this.m_lblCommonRules.ResumeLayout(false);
- ((System.ComponentModel.ISupportInitialize)(this.m_editorComboBox)).EndInit();
- this.ResumeLayout(false);
- }
- #endregion
- #region Intialization Routines
- public void Initialize()
- {
- m_useCommonRulesGroup = new RadioButtonGroup();
- m_useCommonRulesGroup.Add(m_guiUseCommonRulesYes);
- m_useCommonRulesGroup.Add(m_guiUseCommonRulesNo);
- m_itemDocumentGroup = new RadioButtonGroup();
- m_itemDocumentGroup.Add(m_guiItemIndicator);
- m_itemDocumentGroup.Add(m_guiDocumentIndicator);
- m_commonRulesGroup = new CheckBoxGroup();
- m_commonRulesGroup.Add(m_guiApplySelf);
- m_commonRulesGroup.Add(m_guiApplyState);
- m_commonRulesGroup.Add(m_guiApplyCounty);
- m_commonRulesGroup.Add(m_guiApplyCity);
- m_commonRulesGroup.Add(m_guiApplyDistrict);
- m_guiVersionList.BindingContext = new BindingContext();
- }
- public void InitRegisterEvents()
- {
- this.Load += new System.EventHandler(VersionPane_Load);
- m_guiUseCommonRulesYes.CheckedChanged += new System.EventHandler(m_guiUseCommonRulesYes_CheckChanged);
- m_guiUseCommonRulesNo.CheckedChanged += new System.EventHandler(m_guiUseCommonRulesNo_CheckChanged);
- m_guiVersionList.SelectedIndexChanged += new System.EventHandler(this.ListView_SelectedIndexChanged);
- m_guiThresholdList.SelectedIndexChanged += new System.EventHandler(this.m_guiThresholdList_SelectedIndexChanged);
- m_guiThresholdList.KeyUp += new System.Windows.Forms.KeyEventHandler(this.ThresholdListView_KeyUp);
- m_guiVersionList.KeyUp += new System.Windows.Forms.KeyEventHandler(this.ListView_KeyUp);
- m_guiApplySelf.LostFocus += new System.EventHandler(this.VersionDetails_LostFocus);
- m_guiApplyState.LostFocus += new System.EventHandler(this.VersionDetails_LostFocus);
- m_guiApplyCounty.LostFocus += new System.EventHandler(this.VersionDetails_LostFocus);
- m_guiApplyCity.LostFocus += new System.EventHandler(this.VersionDetails_LostFocus);
- m_guiApplyDistrict.LostFocus += new System.EventHandler(this.VersionDetails_LostFocus);
- m_guiUseCommonRulesNo.LostFocus += new System.EventHandler(this.VersionDetails_LostFocus);
- m_guiUseCommonRulesYes.LostFocus += new System.EventHandler(this.VersionDetails_LostFocus);
- m_guiRate.LostFocus += new System.EventHandler(this.VersionDetails_LostFocus);
- m_guiItemIndicator.LostFocus += new System.EventHandler(this.VersionDetails_LostFocus);
- m_guiDocumentIndicator.LostFocus += new System.EventHandler(this.VersionDetails_LostFocus);
- m_guiAmtThresholdType.LostFocus += new System.EventHandler(this.VersionDetails_LostFocus);
- m_guiRateThresholdType.LostFocus += new System.EventHandler(this.VersionDetails_LostFocus);
- m_guiEffective.LostFocus += new System.EventHandler(this.VersionDetails_LostFocus);
- m_guiSunset.LostFocus += new System.EventHandler(this.VersionDetails_LostFocus);
- m_guiComments.LostFocus += new System.EventHandler(this.VersionDetails_LostFocus);
- m_guiThresMin.LostFocus += new System.EventHandler(this.ThresholdDetails_ValueChanged);
- m_guiThresMax.LostFocus += new System.EventHandler(this.ThresholdDetails_ValueChanged);
- m_guiThresRate.LostFocus += new System.EventHandler(this.ThresholdDetails_ValueChanged);
- m_guiApplySelf.GotFocus += new System.EventHandler(this.VersionDetails_GotFocus);
- m_guiApplyState.GotFocus += new System.EventHandler(this.VersionDetails_GotFocus);
- m_guiApplyCounty.GotFocus += new System.EventHandler(this.VersionDetails_GotFocus);
- m_guiApplyCity.GotFocus += new System.EventHandler(this.VersionDetails_GotFocus);
- m_guiApplyDistrict.GotFocus += new System.EventHandler(this.VersionDetails_GotFocus);
- m_guiUseCommonRulesNo.GotFocus += new System.EventHandler(this.VersionDetails_GotFocus);
- m_guiUseCommonRulesYes.GotFocus += new System.EventHandler(this.VersionDetails_GotFocus);
- m_guiRate.GotFocus += new System.EventHandler(this.VersionDetails_GotFocus);
- m_guiItemIndicator.GotFocus += new System.EventHandler(this.VersionDetails_GotFocus);
- m_guiDocumentIndicator.GotFocus += new System.EventHandler(this.VersionDetails_GotFocus);
- m_guiAmtThresholdType.GotFocus += new System.EventHandler(this.VersionDetails_GotFocus);
- m_guiRateThresholdType.GotFocus += new System.EventHandler(this.VersionDetails_GotFocus);
- m_guiEffective.GotFocus += new System.EventHandler(this.VersionDetails_GotFocus);
- m_guiSunset.GotFocus += new System.EventHandler(this.VersionDetails_GotFocus);
- m_guiComments.GotFocus += new System.EventHandler(this.VersionDetails_GotFocus);
- m_guiThresMin.GotFocus += new System.EventHandler(this.ThresholdDetails_ValueChanged);
- m_guiThresMax.GotFocus += new System.EventHandler(this.ThresholdDetails_ValueChanged);
- m_guiThresRate.GotFocus += new System.EventHandler(this.ThresholdDetails_ValueChanged);
- m_guiVersionList.LostFocus += new System.EventHandler(this.m_guiVersionList_LostFocus);
- m_guiThresMin.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.NumericTextBox_KeyPress);
- m_guiThresMax.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.NumericTextBox_KeyPress);
- m_guiThresRate.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.NumericTextBox_KeyPress);
- m_guiRate.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.NumericTextBox_KeyPress);
- }
- #endregion Intialization Routines
- #region Interface IDataConsumerControl
- public void LoadControlData()
- {
- ExemptAlgType et = new ExemptAlgType();
- m_dsAmtThreshold = et.List();
- et.AlgorithmCode = VALUE_AMT_THRESHOLD_TYPE_NA;
- et.AlgorithmDesc = DISPLAY_AMT_THRESHOLD_TYPE_NA;
- m_dsAmtThreshold.Insert(0, et);
- TaxRateThreshAlgType tt = new TaxRateThreshAlgType();
- m_dsRateThreshold = tt.List();
- tt.AlgorithmCode = VALUE_RATE_THRESHOLD_TYPE_NA;
- tt.AlgorithmDesc = DISPLAY_RATE_THRESHOLD_TYPE_NA;
- m_dsRateThreshold.Insert(0, tt);
- m_dsRateFlag = new DataTable();
- m_dsRateFlag.Columns.Add("VALUE");
- m_dsRateFlag.Columns.Add("DISPLAY");
- m_dsRateFlag.Rows.Add(new String[] {VALUE_RATE_THRESHOLD_FLAG_YES, DISPLAY_RATE_THRESHOLD_FLAG_YES});
- m_dsRateFlag.Rows.Add(new String[] {VALUE_RATE_THRESHOLD_FLAG_NO , DISPLAY_RATE_THRESHOLD_FLAG_NO});
- }
- public void BindControlData()
- {
- m_useCommonRulesGroup.Value = "Y";
- m_itemDocumentGroup.Value = "I";
- m_editorComboBox.Properties.Items.Add("Y");
- m_editorComboBox.Properties.Items.Add("N");
- m_guiAmtThresholdType.DataSource = m_dsAmtThreshold;
- m_guiAmtThresholdType.DisplayMember = "AlgorithmDesc";
- m_guiAmtThresholdType.ValueMember = "AlgorithmCode";
- m_guiRateThresholdType.DataSource = m_dsRateThreshold;
- m_guiRateThresholdType.DisplayMember = "AlgorithmDesc";
- m_guiRateThresholdType.ValueMember = "AlgorithmCode";
- }
- public void SetDefaultControlValues()
- {
- m_guiAmtThresholdType.SelectedValue = VALUE_AMT_THRESHOLD_TYPE_NA;
- m_guiRateThresholdType.SelectedValue = VALUE_RATE_THRESHOLD_TYPE_NA;
- }
- #endregion Interface IDataConsumerControl
- #region Interface IEditorPane
- public void GetSelectedControlValues()
- {
- Com.Taxware.Platform.TaxRule tr = (Com.Taxware.Platform.TaxRule) m_dataSource;
- foreach (TaxRuleVersion trv in tr.Versions)
- {
- if (trv.IsPosted == 1 && trv.RecordStatus.Equals("POSTED"))
- {
- trv.RecordStatus = "PENDING";
- }
- }
- }
- public void SetSelectedControlValues()
- {
- if (m_editMode == TaxRuleEditMode.EDIT_MODE_EDIT_RULE)
- {
- SetEditRuleState();
- SetEditRuleValues();
- }
- else if (m_editMode == TaxRuleEditMode.EDIT_MODE_COPY_RULE)
- {
- SetEditRuleState();
- SetEditRuleValues();
- }
- else if (m_editMode == TaxRuleEditMode.EDIT_MODE_NEW_RULE)
- {
- SetNewRuleState();
- SetNewRuleValues();
- }
- else if (m_editMode == TaxRuleEditMode.EDIT_MODE_ADD_CHILD_RULE)
- {
- SetAddChildRuleState();
- SetAddChildRuleValues();
- }
- }
- public void ClearControlValues()
- {
- }
- public bool ValidateControlValues()
- {
- bool bCommonRulesChecked = false;
- bool bItemDocIndChecked = false;
- bool bIsCommonRule = false;
- string sCommonRules = String.Empty;
- string sItemDocInd = String.Empty;
- int iBlankSunset = 0;
- DateTime dtPreviousEff = DateTime.MaxValue;
- int i = 0;
- foreach (TaxRuleVersion trv in m_dataSource.Versions)
- {
- if (i == 0)
- {
- sCommonRules = trv.ApplyToCommonRules;
- sItemDocInd = trv.ItemDocIndicator;
- }
- if (trv.ApplyToSelf.ToUpper().Trim().Equals("Y") ||
- trv.ApplyToState.ToUpper().Trim().Equals("Y") ||
- trv.ApplyToCounty.ToUpper().Trim().Equals("Y") ||
- trv.ApplyToCity.ToUpper().Trim().Equals("Y") ||
- trv.ApplyToDistrict.ToUpper().Trim().Equals("Y"))
- {
- bIsCommonRule = true;
- }
- //check that all apply to common rules among version are same
- if (!trv.ApplyToCommonRules.Equals(sCommonRules) && !bCommonRulesChecked)
- {
- if (MessageBox.Show(TaxRuleMessages.MSG_VERSION_USE_COMMON_RULES_DIFFERENT,
- TaxRuleMessages.WIN_VERSION_TITLE_WARNING,
- MessageBoxButtons.YesNo,
- MessageBoxIcon.Warning) == DialogResult.Yes)
- {
- return false;
- }
- else
- {
- bCommonRulesChecked = true;
- }
- }
- //You can not use common rules for secondary rules
- if (trv.ApplyToCommonRules.ToUpper().Trim().Equals("Y") && m_dataSource.IsSecondaryRule)
- {
- if (MessageBox.Show(TaxRuleMessages.MSG_VERSION_USE_COMMON_RULE_SECONDARY,
- TaxRuleMessages.WIN_VERSION_TITLE_WARNING,
- MessageBoxButtons.YesNo,
- MessageBoxIcon.Exclamation) == DialogResult.No)
- {
- return false;
- }
- }
- //check that all item document indicators among version are same
- if (!trv.ItemDocIndicator.Equals(sItemDocInd) && !bItemDocIndChecked)
- {
- if (MessageBox.Show(TaxRuleMessages.MSG_VERSION_ITEM_DOCUMENT_DIFFERENT,
- TaxRuleMessages.WIN_VERSION_TITLE_WARNING,
- MessageBoxButtons.YesNo,
- MessageBoxIcon.Warning) == DialogResult.Yes)
- {
- return false;
- }
- else
- {
- bItemDocIndChecked = true;
- }
- }
- //Effective date should never be blank
- if (PlatformUtil.ToString(trv.EffectiveDate, "yyyy-mm-dd") == String.Empty)
- {
- MessageBox.Show(TaxRuleMessages.MSG_VERSION_EFFECTIVE_MISSING,
- TaxRuleMessages.WIN_VERSION_TITLE_ERROR,
- MessageBoxButtons.OK,
- MessageBoxIcon.Exclamation);
- return false;
- }
- //Count blank sunset dates can only be one per tax rule
- if (PlatformUtil.ToString(trv.SunsetDate, "yyyy-mm-dd") == String.Empty)
- {
- iBlankSunset++;
- if (iBlankSunset > 1)
- {
- MessageBox.Show(TaxRuleMessages.MSG_VERSION_SUNSET_MULTIPLE_BLANK,
- TaxRuleMessages.WIN_VERSION_TITLE_ERROR,
- MessageBoxButtons.OK,
- MessageBoxIcon.Exclamation);
- return false;
- }
- }
- //A sunset date should not be blank in the middle of a series
- if (i > 0 && PlatformUtil.ToString(trv.SunsetDate, "yyyy-mm-dd") == String.Empty)
- {
- if (MessageBox.Show(String.Format(TaxRuleMessages.MSG_VERSION_SUNSET_MISSING, dtPreviousEff.ToString("yyyy-MM-dd")),
- TaxRuleMessages.WIN_VERSION_TITLE_WARNING,
- MessageBoxButtons.YesNo,
- MessageBoxIcon.Warning) == DialogResult.Yes)
- {
- return false;
- }
- }
- //Sunset date is less than effective date
- if ((PlatformUtil.ToString(trv.SunsetDate, "yyyy-mm-dd") != String.Empty) &&
- (trv.SunsetDate < trv.EffectiveDate))
- {
- MessageBox.Show(TaxRuleMessages.MSG_VERSION_SUNSET_LESS,
- TaxRuleMessages.WIN_VERSION_TITLE_ERROR,
- MessageBoxButtons.OK,
- MessageBoxIcon.Exclamation);
- return false;
- }
- //Doesn't seem to be contiguous set of dates
- if (dtPreviousEff != DateTime.MaxValue &&
- dtPreviousEff != trv.SunsetDate)
- {
- if (MessageBox.Show(TaxRuleMessages.MSG_VERSION_DATE_NOT_CONTIGUOUS,
- TaxRuleMessages.WIN_VERSION_TITLE_WARNING,
- MessageBoxButtons.YesNo,
- MessageBoxIcon.Warning) == DialogResult.Yes)
- {
- return false;
- }
- }
- //Check that there is a Algorithm type for particular versions
- if (m_dataSource.TaxRuleTypeId == TaxRuleType.RULE_TYPE_TAXABLE_AMOUNT_THRESHOLD)
- {
- if (trv.AlgTypeCd == String.Empty || trv.AlgTypeCd == "0")
- {
- MessageBox.Show(TaxRuleMessages.MSG_VERSION_AMT_THRESHOLD_MISSING,
- TaxRuleMessages.WIN_VERSION_TITLE_WARNING,
- MessageBoxButtons.OK,
- MessageBoxIcon.Exclamation);
- return false;
- }
- }
- else if (m_dataSource.TaxRuleTypeId == TaxRuleType.RULE_TYPE_TAX_RATE_THRESHOLD)
- {
- if (trv.AlgTypeCd == String.Empty || trv.AlgTypeCd == "0")
- {
- MessageBox.Show(TaxRuleMessages.MSG_VERSION_RATE_THRESHOLD_MISSING,
- TaxRuleMessages.WIN_VERSION_TITLE_WARNING,
- MessageBoxButtons.OK,
- MessageBoxIcon.Exclamation);
- return false;
- }
- }
- //check the threshold values
- if (m_dataSource.TaxRuleTypeId == TaxRuleType.RULE_TYPE_TAX_RATE_THRESHOLD)
- {
- int iBlankMaxCount = 0;
- foreach (TaxRateThreshold trt in trv.TaxRateThresholds)
- {
- //Only one blank Max is allowed per series of thresholds
- if (Double.IsNaN(trt.MaxValue))
- {
- iBlankMaxCount++;
- }
- if (iBlankMaxCount > 1)
- {
- String sSunset = PlatformUtil.ToString(trv.SunsetDate, "yyyy-MM-dd");
- sSunset = (sSunset == String.Empty ? "Indefinite" : sSunset);
- if (MessageBox.Show(String.Format(TaxRuleMessages.MSG_VERSION_MAX_THRESHOLD_BLANK, trv.EffectiveDate.ToString("yyyy-MM-dd"), sSunset),
- TaxRuleMessages.WIN_VERSION_TITLE_WARNING,
- MessageBoxButtons.YesNo,
- MessageBoxIcon.Warning) == DialogResult.Yes)
- {
- return false;
- }
- }
- if ((!Double.IsNaN(trt.MaxValue)) && trt.MinValue >= trt.MaxValue)
- {
- String sSunset = PlatformUtil.ToString(trv.SunsetDate, "yyyy-MM-dd");
- sSunset = (sSunset == String.Empty ? "Indefinite" : sSunset);
- MessageBox.Show(String.Format(TaxRuleMessages.MSG_VERSION_MIN_GREATER_MAX, trv.EffectiveDate.ToString("yyyy-MM-dd"), sSunset),
- TaxRuleMessages.WIN_VERSION_TITLE_WARNING,
- MessageBoxButtons.OK,
- MessageBoxIcon.Exclamation);
- return false;
- }
- }
- }
- dtPreviousEff = trv.EffectiveDate;
- i++;
- }
- if (bIsCommonRule &&
- m_dataSource.Children != null &&
- m_dataSource.Children.Count > 0)
- {
- MessageBox.Show(TaxRuleMessages.MSG_VERSION_COMMON_RULE_CHILD,
- TaxRuleMessages.WIN_VERSION_TITLE_WARNING,
- MessageBoxButtons.OK,
- MessageBoxIcon.Exclamation);
- return false;
- }
- if (bIsCommonRule && m_dataSource.AssociatedTaxRuleId != Int32.MinValue)
- {
- MessageBox.Show(TaxRuleMessages.MSG_VERSION_COMMON_RULE_PARENTS,
- TaxRuleMessages.WIN_VERSION_TITLE_WARNING,
- MessageBoxButtons.OK,
- MessageBoxIcon.Exclamation);
- return false;
- }
- if (bIsCommonRule && m_dataSource.IsPrimaryRule)
- {
- if (MessageBox.Show(TaxRuleMessages.MSG_VERSION_COMMON_RULE_PRIMARY_RULE,
- TaxRuleMessages.WIN_VERSION_TITLE_ERROR,
- MessageBoxButtons.YesNo,
- MessageBoxIcon.Exclamation) == DialogResult.No)
- {
- return false;
- }
- }
- return true;
- }
- public void InitPane()
- {
- }
- public object DataSource
- {
- get {return m_dataSource;}
- set
- {
- m_dataSource = (Com.Taxware.Platform.TaxRule) value;
- if (m_dataSource != null && m_dataSource.Versions != null)
- {
- m_scratchPad = m_dataSource.Versions.Clone(true);
- }
- }
- }
- public object EditMode
- {
- get {return m_editMode;}
- set {m_editMode = (TaxRuleEditMode) value;}
- }
- public override string ToString()
- {
- StringBuilder sb = new StringBuilder();
- sb.Append("\n");
- sb.Append("VERSIONS \n");
- sb.Append("====================\n");
- foreach (TaxRuleVersion trv in m_dataSource.Versions)
- {
- sb.Append("\t");
- sb.Append("Version - " + PlatformUtil.ToString(trv.EffectiveDate, "yyyy-MM-dd") + " to ");
- if (PlatformUtil.ToString(trv.SunsetDate, "yyyy-MM-dd") == String.Empty)
- {
- sb.Append("Indefinite" + "\n");
- }
- else
- {
- sb.Append(PlatformUtil.ToString(trv.SunsetDate, "yyyy-MM-dd") + "\n");
- }
- sb.Append("\t\tUse Common Rules: " + trv.ApplyToCommonRules + " ");
- sb.Append("Apply To Self: " + trv.ApplyToSelf + " ");
- sb.Append("Apply To State: " + trv.ApplyToState + " ");
- sb.Append("Apply To County: " + trv.ApplyToCounty + " ");
- sb.Append("Apply To City: " + trv.ApplyToCity + " ");
- sb.Append("Apply To District: " + trv.ApplyToDistrict + "\n");
- sb.Append("\t\tRate: " + PlatformUtil.ToString(trv.Value) + "\t\t");
- sb.Append("Algorithm Type: " + (trv.AlgTypeCd) + " ");
- sb.Append("Item Document Indicator: " + (trv.ItemDocIndicator) + " ");
- sb.Append("Record Status: " + (trv.RecordStatus) + " ");
- sb.Append("Is Posted: " + PlatformUtil.ToString(trv.IsPosted) + "\n");
- sb.Append("\t\tComments: " + trv.Comments + "\n");
- foreach (TaxRateThreshold trt in trv.TaxRateThresholds)
- {
- sb.Append("\t\tMiniumum: " + PlatformUtil.ToString(trt.MinValue) + "\t");
- sb.Append("Maximum: " + PlatformUtil.ToString(trt.MaxValue) + "\t");
- sb.Append("Rate: " + PlatformUtil.ToString(trt.TaxRateValue) + "\n");
- }
- sb.Append("\n");
- }
- sb.Append("\n");
- return sb.ToString();
- }
- #endregion Interface IEditorPane
- #region Private Methods
- private void ListViewAddGuiVersion(ListView lv, TaxRuleVersion trv)
- {
- ListViewItem li = new ListViewItem();
- li.Text = PlatformUtil.ToString(trv.VersionId);
- li.SubItems.Add(PlatformUtil.ToString(trv.EffectiveDate, "yyyy-MM-dd")); //Effective Date
- li.SubItems.Add(PlatformUtil.ToString(trv.SunsetDate, "yyyy-MM-dd")); //Sunset Date
- li.SubItems.Add(trv.ItemDocIndicator); //Item document indicator
- li.SubItems.Add(PlatformUtil.ToString(trv.Value)); //Rate
- li.SubItems.Add(trv.ApplyToCommonRules); //Use common rules
- li.SubItems.Add(trv.ApplyToSelf); //Apply To Self
- li.SubItems.Add(trv.ApplyToState); //Apply To State
- li.SubItems.Add(trv.ApplyToCounty); //Apply To County
- li.SubItems.Add(trv.ApplyToCity); //Apply To City
- li.SubItems.Add(trv.ApplyToDistrict); //Apply To District
- li.SubItems.Add(trv.RecordStatus); //Status
- li.SubItems.Add(PlatformUtil.ToString(trv.IsPosted)); //Is Posted
- li.SubItems.Add(PlatformUtil.ToString(trv.TaxRuleId)); //Tax Rule Id
- lv.Items.Add(li);
- }
- private void ListViewAddGuiThreshold(ListView lv, TaxRateThreshold trt)
- {
- ListViewItem li = new ListViewItem();
- li.Text = PlatformUtil.ToString(trt.MinValue);
- li.SubItems.Add(PlatformUtil.ToString(trt.MaxValue));
- li.SubItems.Add(PlatformUtil.ToString(trt.TaxRateValue));
- lv.Items.Add(li);
- }
- private void SetEditRuleState()
- {
- }
- private void SetEditRuleValues()
- {
- SetVersionList();
- ListViewUtil.FocusRow(m_guiVersionList, 0);
- }
- private void SetNewRuleState()
- {
- }
- private void SetNewRuleValues()
- {
- SetVersionList();
- ListViewUtil.FocusRow(m_guiVersionList, 0);
- }
- private void SetAddChildRuleState()
- {
- }
- private void SetAddChildRuleValues()
- {
- SetVersionList();
- ListViewUtil.FocusRow(m_guiVersionList, 0);
- }
- private void SetVersionList()
- {
- m_guiVersionList.Items.Clear();
- foreach (TaxRuleVersion trv in m_dataSource.Versions)
- {
- ListViewAddGuiVersion(m_guiVersionList, trv);
- }
- }
- private void UpdateVersionList()
- {
- ListViewItem li = m_guiVersionList.Items[m_versionListIndex];
- TaxRuleVersion trv = (TaxRuleVersion) m_dataSource.Versions[m_versionListIndex];
- li.Text = PlatformUtil.ToString(trv.VersionId);
- li.SubItems[1].Text = PlatformUtil.ToString(trv.EffectiveDate, "yyyy-MM-dd");
- li.SubItems[2].Text = PlatformUtil.ToString(trv.SunsetDate, "yyyy-MM-dd");
- li.SubItems[3].Text = trv.ItemDocIndicator;
- li.SubItems[4].Text = PlatformUtil.ToString(trv.Value);
- li.SubItems[5].Text = trv.ApplyToCommonRules;
- li.SubItems[6].Text = trv.ApplyToSelf;
- li.SubItems[7].Text = trv.ApplyToState;
- li.SubItems[8].Text = trv.ApplyToCounty;
- li.SubItems[9].Text = trv.ApplyToCity;
- li.SubItems[10].Text = trv.ApplyToDistrict;
- li.SubItems[11].Text = trv.RecordStatus;
- li.SubItems[12].Text = PlatformUtil.ToString(trv.IsPosted);
- li.SubItems[13].Text = PlatformUtil.ToString(trv.TaxRuleId);
- }
- private void UpdateThresholdList(int iThresholdIndex)
- {
- ListViewItem li = m_guiThresholdList.Items[iThresholdIndex];
- li.Text = m_guiThresMin.Text;
- li.SubItems[1].Text = m_guiThresMax.Text;
- li.SubItems[2].Text = m_guiThresRate.Text;
- }
- private void AddGuiVersion()
- {
- Com.Taxware.Platform.TaxRule tr = (Com.Taxware.Platform.TaxRule) m_dataSource;
- if (tr.Versions.Count >= 1)
- {
- TaxRuleVersion trvClone;
- TaxRuleVersion trv = (TaxRuleVersion) tr.Versions[0];
- trvClone = trv.Clone(true);
- trvClone.EffectiveDate = trv.SunsetDate;
- trvClone.SunsetDate = DateTime.MinValue;
- trvClone.CreatedBy = AuthManager.User.UserId;
- trvClone.UpdateBy = AuthManager.User.UserId;
- trvClone.TaxRuleId = tr.TaxRuleId;
- trvClone.Comments = String.Empty;
- tr.Versions.Insert(0, trvClone);
- }
- }
- private void DeleteGuiVersion()
- {
- m_guiVersionList.Items.Clear();
- foreach (TaxRuleVersion trv in m_dataSource.Versions)
- {
- ListViewAddGuiVersion(m_guiVersionList, trv);
- }
- }
- private void UpdateVersionData()
- {
- if (m_guiVersionList.SelectedItems.Count != 1) return;
- int i = m_guiVersionList.SelectedItems[0].Index;
- TaxRuleVersion trv = (TaxRuleVersion) m_dataSource.Versions[i];
- trv.ApplyToSelf = m_guiApplySelf.Checked ? "Y" : "N";
- trv.ApplyToState = m_guiApplyState.Checked ? "Y" : "N";
- trv.ApplyToCounty = m_guiApplyCounty.Checked ? "Y" : "N";
- trv.ApplyToCity = m_guiApplyCity.Checked ? "Y" : "N";
- trv.ApplyToDistrict = m_guiApplyDistrict.Checked ? "Y" : "N";
- trv.ApplyToCommonRules = m_useCommonRulesGroup.Value.ToString();
- trv.EffectiveDate = PlatformUtil.FromString(m_guiEffective.Text, m_guiEffective.DateTime);
- trv.SunsetDate = PlatformUtil.FromString(m_guiSunset.Text, m_guiSunset.DateTime);
- trv.Value = (m_guiRate.Text == String.Empty) ? Double.NaN : Convert.ToDouble(m_guiRate.Text);
- trv.ItemDocIndicator = m_itemDocumentGroup.Value.ToString();
- trv.Comments = m_guiComments.Text;
- if (m_dataSource.TaxRuleTypeId == TaxRuleType.RULE_TYPE_TAXABLE_AMOUNT_THRESHOLD)
- {
- trv.AlgTypeCd = m_guiAmtThresholdType.SelectedValue.ToString();
- }
- else if (m_dataSource.TaxRuleTypeId == TaxRuleType.RULE_TYPE_TAX_RATE_THRESHOLD)
- {
- trv.AlgTypeCd = m_guiRateThresholdType.SelectedValue.ToString();
- }
- else
- {
- trv.AlgTypeCd = String.Empty;
- }
- }
- private void SetThresholdList(TaxRuleVersion trv)
- {
- if (trv.TaxRateThresholds.Count <= 0)
- {
- TaxRateThreshold trt = new TaxRateThreshold();
- trt.MinValue = 0;
- trt.TaxRateValue = 0;
- trt.IsStandardRateFlag = "Y";
- trv.TaxRateThresholds.Add(trt);
- }
- m_guiThresholdList.Items.Clear();
- foreach (TaxRateThreshold trt in trv.TaxRateThresholds)
- {
- ListViewAddGuiThreshold(m_guiThresholdList, trt);
- }
- ListViewUtil.FocusRow(m_guiThresholdList, 0);
- }
- private void UpdateThresholdData()
- {
- TaxRuleVersion trv = (TaxRuleVersion) m_dataSource.Versions[m_versionListIndex];
- SetPooledThreshold(trv);
- foreach (ListViewItem lvi in m_guiThresholdList.Items)
- {
- TaxRateThreshold trt = GetPooledThreshold(trv);
- trt.TaxRuleTypeId = TaxRuleType.RULE_TYPE_TAX_RATE_THRESHOLD;
- trt.MinValue = PlatformUtil.FromString(lvi.Text, trt.MinValue);
- trt.MaxValue = PlatformUtil.FromString(lvi.SubItems[1].Text, trt.MaxValue);
- trt.TaxRateValue = PlatformUtil.FromString(lvi.SubItems[2].Text, trt.TaxRateValue);
- trt.IsStandardRateFlag = "Y";
- trv.TaxRateThresholds.Add(trt);
- }
- if (m_dataSource.TaxRuleTypeId == TaxRuleType.RULE_TYPE_TAXABLE_AMOUNT_THRESHOLD)
- {
- trv.AlgTypeCd = m_guiAmtThresholdType.SelectedValue.ToString();
- }
- else if (m_dataSource.TaxRuleTypeId == TaxRuleType.RULE_TYPE_TAX_RATE_THRESHOLD)
- {
- trv.AlgTypeCd = m_guiRateThresholdType.SelectedValue.ToString();
- }
- else
- {
- trv.AlgTypeCd = String.Empty;
- }
- }
- private void SetPooledThreshold(TaxRuleVersion trv)
- {
- //Put TaxRateThresholds from one collection to another depending
- //so that they can be pooled and reused, if they are not even in
- //the database then just remove from collection
- int iThresholdId = Int32.MinValue;
- while(trv.TaxRateThresholds.Count > 0)
- {
- TaxRateThreshold trt = (TaxRateThreshold) trv.TaxRateThresholds[0];
- iThresholdId = trt.TaxRateThresholdId;
- if (iThresholdId != Int32.MinValue &&
- trv.DeletedThresholds.FindThreshold(iThresholdId) == null)
- {
- trv.DeletedThresholds.Add(trt);
- }
- trv.TaxRateThresholds.Remove(trt);
- }
- }
- private TaxRateThreshold GetPooledThreshold(TaxRuleVersion trv)
- {
- //Try to reuse thresholds which already have ids
- TaxRateThreshold trt = null;
- if (trv.DeletedThresholds.Count >= 1)
- {
- trt = (TaxRateThreshold) trv.DeletedThresholds[0];
- trv.DeletedThresholds.Remove(trt);
- return trt;
- }
- else
- {
- return new TaxRateThreshold();
- }
- }
- private void EnableFieldsByRuleType(int iTaxRuleType)
- {
- //Defaults
- m_lblRate.Text = LABEL_RATE_DEFAULT;
- m_lblRate.Visible = true;
- m_guiRate.Visible = true;
- m_commonRulesGroup.Enabled = true;
- m_useCommonRulesGroup.Enabled = true;
- m_lblAmountThresholdType.Visible = false;
- m_guiAmtThresholdType.Visible = false;
- m_panelThresholds.Visible = false;
- m_panelAuditInfo.Location = new System.Drawing.Point(16, 184);
- switch (iTaxRuleType)
- {
- case TaxRuleType.RULE_TYPE_COMPLETE_EXEMPTION:
- break;
- case TaxRuleType.RULE_TYPE_FEE:
- m_lblRate.Text = LABEL_RATE_FEE;
- m_commonRulesGroup.Enabled = false;
- m_useCommonRulesGroup.Value = "N";
- m_useCommonRulesGroup.Enabled = false;
- break;
- case TaxRuleType.RULE_TYPE_RECOVERABLE_PERCENTAGE:
- break;
- case TaxRuleType.RULE_TYPE_STANDARD_TAX_RATE:
- m_commonRulesGroup.Enabled = false;
- break;
- case TaxRuleType.RULE_TYPE_TAX_AMOUNT_LIMITATION:
- m_lblRate.Text = LABEL_RATE_TAX_AMOUNT_LIMITATION;
- break;
- case TaxRuleType.RULE_TYPE_TAX_RATE_LIMITATION:
- m_commonRulesGroup.Enabled = false;
- m_lblRate.Text = LABEL_RATE_TAX_RATE_LIMITATION;
- break;
- case TaxRuleType.RULE_TYPE_TAX_RATE_THRESHOLD:
- m_lblRate.Visible = false;
- m_guiRate.Visible = false;
- m_commonRulesGroup.Enabled = false;
- m_panelThresholds.Visible = true;
- m_panelAuditInfo.Location = new System.Drawing.Point(16, 304);
- break;
- case TaxRuleType.RULE_TYPE_TAXABILITY_GROUP_RULE:
- m_lblRate.Visible = false;
- m_guiRate.Visible = false;
- break;
- case TaxRuleType.RULE_TYPE_TAXABLE_AMOUNT_DECREASE:
- m_lblRate.Text = LABEL_RATE_TAXABLE_AMOUNT_DECREASE;
- break;
- case TaxRuleType.RULE_TYPE_TAXABLE_AMOUNT_INCREASE:
- m_lblRate.Text = LABEL_RATE_TAXABLE_AMOUNT_INCREASE;
- break;
- case TaxRuleType.RULE_TYPE_TAXABLE_AMOUNT_LIMITATION:
- m_lblRate.Text = LABEL_RATE_TAXABLE_AMOUNT_LIMITATION;
- break;
- case TaxRuleType.RULE_TYPE_TAXABLE_AMOUNT_THRESHOLD:
- m_lblRate.Text = LABEL_RATE_TAXABLE_AMOUNT_THRESHOLD;
- m_lblAmountThresholdType.Visible = true;
- m_guiAmtThresholdType.Visible = true;
- break;
- };
- if (m_useCommonRulesGroup.Value.ToString() == "Y")
- {
- m_commonRulesGroup.Enabled = false;
- }
- }
- private void EnableFieldsByIsPosted(string sIsPosted)
- {
- if (sIsPosted.Equals("1"))
- {
- m_guiApplySelf.Enabled = false;
- m_guiApplyState.Enabled = false;
- m_guiApplyCounty.Enabled = false;
- m_guiApplyCity.Enabled = false;
- m_guiApplyDistrict.Enabled = false;
- m_guiUseCommonRulesYes.Enabled = false;
- m_guiUseCommonRulesNo.Enabled = false;
- m_guiItemIndicator.Enabled = false;
- m_guiDocumentIndicator.Enabled = false;
- ControlUtil.Enable(m_guiAmtThresholdType, false);
- m_guiRate.ReadOnly = true;
- m_guiEffective.Enabled = false;
- if (m_guiEffective.DateTime > DateTime.Now)
- {
- m_guiEffective.Enabled = true;
- }
- if (m_guiSunset.Text == String.Empty || m_guiRecordStatus.Text != RecordStatus.STATUS_POSTED)
- {
- m_guiSunset.Enabled = true;
- }
- else
- {
- m_guiSunset.Enabled = false;
- }
- m_guiComments.ReadOnly = true;
- m_guiThresMin.ReadOnly = true;
- m_guiThresMax.ReadOnly = true;
- m_guiThresRate.ReadOnly = true;
- ControlUtil.Enable(m_guiRateThresholdType, false);
- m_guiNewThreshold.Enabled = false;
- this.m_guiThresholdList.KeyUp -= new System.Windows.Forms.KeyEventHandler(this.ThresholdListView_KeyUp);
- }
- else if (sIsPosted.Equals("0"))
- {
- m_guiApplySelf.Enabled = true;
- m_guiApplyState.Enabled = true;
- m_guiApplyCounty.Enabled = true;
- m_guiApplyCity.Enabled = true;
- m_guiApplyDistrict.Enabled = true;
- m_guiUseCommonRulesYes.Enabled = true;
- m_guiUseCommonRulesNo.Enabled = true;
- m_guiItemIndicator.Enabled = true;
- m_guiDocumentIndicator.Enabled = true;
- ControlUtil.Enable(m_guiAmtThresholdType, true);
- m_guiRate.ReadOnly = false;
- m_guiEffective.Enabled = true;
- m_guiSunset.Enabled = true;
- m_guiComments.ReadOnly = false;
- m_guiThresMin.ReadOnly = false;
- m_guiThresMax.ReadOnly = false;
- m_guiThresRate.ReadOnly = false;
- ControlUtil.Enable(m_guiRateThresholdType, true);
- m_guiNewThreshold.Enabled = true;
- this.m_guiThresholdList.KeyUp += new System.Windows.Forms.KeyEventHandler(this.ThresholdListView_KeyUp);
- EnableFieldsByRuleType(m_dataSource.TaxRuleTypeId);
- EnableFieldsByHierarchy();
- }
- }
- private void EnableFieldsByHierarchy()
- {
- if (m_dataSource == null) return;
- if (m_dataSource.Parent == null) return;
- if (m_dataSource.AssociatedTaxRuleId > Int32.MinValue)
- {
- m_guiApplySelf.Enabled = false;
- m_guiApplyState.Enabled = false;
- m_guiApplyCounty.Enabled = false;
- m_guiApplyCity.Enabled = false;
- m_guiApplyDistrict.Enabled = false;
- m_guiUseCommonRulesYes.Enabled = false;
- m_guiUseCommonRulesNo.Enabled = false;
- }
- }
- private void SetVersionDetails(TaxRuleVersion trv)
- {
- m_useCommonRulesGroup.Value = trv.ApplyToCommonRules.ToString();
- m_itemDocumentGroup.Value = trv.ItemDocIndicator.ToString();
- m_guiRate.Text = PlatformUtil.ToString(trv.Value);
- m_guiEffective.Text = PlatformUtil.ToString(trv.EffectiveDate, "MMMM dd, yyyy");
- m_guiSunset.Text = PlatformUtil.ToString(trv.SunsetDate, "MMMM dd, yyyy");
- m_guiComments.Text = trv.Comments;
- m_guiVersionId.Text = PlatformUtil.ToString(trv.VersionId);
- m_guiTaxRuleId.Text = PlatformUtil.ToString(trv.TaxRuleId);
- m_guiCreateUser.Text = trv.CreatedBy;
- m_guiCreateDate.Text = PlatformUtil.ToString(trv.CreatedDate, "yyyy-MM-dd");
- m_guiUpdateUser.Text = trv.UpdateBy;
- m_guiUpdateDate.Text = PlatformUtil.ToString(trv.UpdatedDate, "yyyy-MM-dd");
- m_guiRecordStatus.Text = trv.RecordStatus;
- m_guiIsPosted.Text = PlatformUtil.ToString(trv.IsPosted);
- m_guiApplySelf.Checked = PlatformUtil.ToBool(trv.ApplyToSelf, "Y");
- m_guiApplyState.Checked = PlatformUtil.ToBool(trv.ApplyToState, "Y");
- m_guiApplyCounty.Checked = PlatformUtil.ToBool(trv.ApplyToCounty, "Y");
- m_guiApplyCity.Checked = PlatformUtil.ToBool(trv.ApplyToCity, "Y");
- m_guiApplyDistrict.Checked = PlatformUtil.ToBool(trv.ApplyToDistrict, "Y");
- m_guiAmtThresholdType.SelectedValue = trv.AlgTypeCd.ToString();
- m_guiRateThresholdType.SelectedValue = trv.AlgTypeCd.ToString();
- if (m_dataSource.TaxRuleTypeId == TaxRuleType.RULE_TYPE_TAX_RATE_THRESHOLD)
- {
- SetThresholdList(trv);
- }
- EnableFieldsByRuleType(m_dataSource.TaxRuleTypeId);
- EnableFieldsByIsPosted(trv.IsPosted.ToString());
- EnableFieldsByHierarchy();
- }
- private void SetThresholdDetails(ListViewItem lvi)
- {
- m_guiThresMin.Text = lvi.Text;
- m_guiThresMax.Text = lvi.SubItems[1].Text;
- m_guiThresRate.Text = lvi.SubItems[2].Text;
- }
- #endregion Private Methods
- #region Event Handlers
- private void m_guiUseCommonRulesYes_CheckChanged(object sender, System.EventArgs e)
- {
- RadioButton rb = (RadioButton) sender;
- if (rb.Checked)
- {
- m_commonRulesGroup.Clear();
- m_commonRulesGroup.Enabled = false;
- }
- else if (!(m_dataSource.TaxRuleTypeId == TaxRuleType.RULE_TYPE_STANDARD_TAX_RATE ||
- m_dataSource.TaxRuleTypeId == TaxRuleType.RULE_TYPE_TAX_RATE_THRESHOLD ||
- m_dataSource.TaxRuleTypeId == TaxRuleType.RULE_TYPE_TAX_RATE_LIMITATION ||
- m_dataSource.TaxRuleTypeId == TaxRuleType.RULE_TYPE_FEE))
- {
- m_commonRulesGroup.Enabled = true;
- }
- }
- private void m_guiUseCommonRulesNo_CheckChanged(object sender, System.EventArgs e)
- {
- RadioButton rb = (RadioButton) sender;
- if ((rb.Checked) &&
- !(m_dataSource.TaxRuleTypeId == TaxRuleType.RULE_TYPE_STANDARD_TAX_RATE ||
- m_dataSource.TaxRuleTypeId == TaxRuleType.RULE_TYPE_TAX_RATE_THRESHOLD ||
- m_dataSource.TaxRuleTypeId == TaxRuleType.RULE_TYPE_TAX_RATE_LIMITATION ||
- m_dataSource.TaxRuleTypeId == TaxRuleType.RULE_TYPE_FEE))
- {
- m_commonRulesGroup.Enabled = true;
- }
- }
- private void ListView_KeyUp(object sender, KeyEventArgs e)
- {
- if (e.KeyCode == Keys.Delete)
- {
- Com.Taxware.Platform.TaxRule tr = m_dataSource;
- if (tr.Versions.Count <= 1) return;
- foreach (ListViewItem li in m_guiVersionList.SelectedItems)
- {
- TaxRuleVersion trv = (TaxRuleVersion) tr.Versions[li.Index];
- if (trv.VersionId != Int32.MinValue)
- {
- MessageBox.Show(TaxRuleMessages.MSG_VERSION_CANNOT_DELETE,
- TaxRuleMessages.WIN_VERSION_TITLE_ERROR,
- MessageBoxButtons.OK,
- MessageBoxIcon.Exclamation);
- continue;
- }
- else if (trv.IsPosted != 1)
- {
- tr.Versions.Remove(trv);
- li.Remove();
- ListViewUtil.FocusRow(m_guiVersionList, 0);
- }
- }
- }
- }
- private void ListView_SelectedIndexChanged(object sender, System.EventArgs e)
- {
- ListView lv = (ListView) sender;
- if (lv.SelectedItems.Count == 0 && lv.Items.Count > 0)
- {
- //Somehow this causes multiple to be selected even though
- //multiselect is set to false for the control, also I have
- //noticed that this event fires twice per selection change,
- //first time is that the selection is 0, then to 1
- //ListViewUtil.FocusRow(m_guiVersionList, 0);
- }
- else if (lv.SelectedItems.Count == 1)
- {
- m_versionListIndex = lv.SelectedItems[0].Index;
- TaxRuleVersion trv = (TaxRuleVersion) m_dataSource.Versions[m_versionListIndex];
- SetVersionDetails(trv);
- }
- }
- public void VersionDetails_GotFocus(object sender, System.EventArgs e)
- {
- if (m_guiVersionList.SelectedItems.Count <= 0)
- {
- MessageBox.Show(TaxRuleMessages.MSG_VERSION_NOT_SELECTED,
- TaxRuleMessages.WIN_VERSION_TITLE_WARNING,
- MessageBoxButtons.OK,
- MessageBoxIcon.Exclamation);
- return;
- }
- }
- public void m_guiVersionList_LostFocus(object sender, System.EventArgs e)
- {
- if (m_guiVersionList.SelectedItems.Count == 0 && m_guiVersionList.Items.Count > 0)
- {
- ListViewUtil.FocusRow(m_guiVersionList, 0);
- }
- }
- public void VersionDetails_LostFocus(object sender, System.EventArgs e)
- {
- if (m_guiVersionList.SelectedItems.Count != 1) return;
- int iVersionIndex = m_guiVersionList.SelectedItems[0].Index;
- UpdateVersionData();
- UpdateVersionList();
- ListViewUtil.FocusRow(m_guiVersionList, iVersionIndex);
- }
- public void ThresholdDetails_ValueChanged(object sender, System.EventArgs e)
- {
- if (m_guiThresholdList.SelectedItems.Count != 1) return;
- int iThresholdIndex = m_guiThresholdList.SelectedItems[0].Index;
- UpdateThresholdList(iThresholdIndex);
- UpdateThresholdData();
- }
- public void VersionPane_TaxRuleTypeChanged(object sender, System.EventArgs e)
- {
- EnableFieldsByRuleType(m_dataSource.TaxRuleTypeId);
- EnableFieldsByHierarchy();
- }
- private void m_editorTextEdit_ValueChanging(object sender, DevExpress.XtraEditors.Controls.ChangingEventArgs e)
- {
- if(e.NewValue is string && !string.Empty.Equals(e.NewValue))
- {
- try
- {
- Convert.ToDouble(e.NewValue);
- }
- catch
- {
- e.Cancel = true;
- }
- }
- }
- private void VersionPane_Load(object sender, System.EventArgs e)
- {
- if (m_dataSource != null)
- {
- EnableFieldsByRuleType(m_dataSource.TaxRuleTypeId);
- if (m_dataSource.Versions.Count > 0)
- {
- ListViewUtil.FocusRow(m_guiVersionList, 0);
- TaxRuleVersion trv = (TaxRuleVersion) m_dataSource.Versions[0];
- EnableFieldsByIsPosted(trv.IsPosted.ToString());
- EnableFieldsByHierarchy();
- }
- }
- }
- private void m_guiNewVersion_Click(object sender, System.EventArgs e)
- {
- if (m_guiVersionList.SelectedItems.Count <= 0)
- {
- MessageBox.Show(TaxRuleMessages.MSG_VERSION_NOT_SELECTED,
- TaxRuleMessages.WIN_VERSION_TITLE_WARNING,
- MessageBoxButtons.OK,
- MessageBoxIcon.Exclamation);
- return;
- }
- if (m_guiVersionList.Items.Count >= 1)
- {
- TaxRuleVersion trv = (TaxRuleVersion) m_dataSource.Versions[0];
- if (trv.SunsetDate != DateTime.MinValue)
- {
- AddGuiVersion();
- SetVersionList();
- ListViewUtil.FocusRow(m_guiVersionList, 0);
- }
- else
- {
- MessageBox.Show(TaxRuleMessages.MSG_VERSION_SUNSET_PREVIOUS,
- TaxRuleMessages.WIN_VERSION_TITLE_WARNING,
- MessageBoxButtons.OK,
- MessageBoxIcon.Exclamation);
- }
- }
- }
- private void m_guiApprove_Click(object sender, System.EventArgs e)
- {
- if (m_guiVersionList.SelectedItems.Count <= 0)
- {
- MessageBox.Show(TaxRuleMessages.MSG_VERSION_NOT_SELECTED,
- TaxRuleMessages.WIN_VERSION_TITLE_WARNING,
- MessageBoxButtons.OK,
- MessageBoxIcon.Exclamation);
- return;
- }
- if (m_dataSource.Versions.Count <= 0 &&
- m_versionListIndex > m_dataSource.Versions.Count - 1)
- {
- return;
- }
- TaxRuleVersion trv = (TaxRuleVersion) m_dataSource.Versions[m_versionListIndex];
- if (trv.VersionId == Int32.MinValue)
- {
- MessageBox.Show(TaxRuleMessages.MSG_VERSION_NEW_VERSION_APPROVE,
- TaxRuleMessages.WIN_VERSION_TITLE_WARNING,
- MessageBoxButtons.OK,
- MessageBoxIcon.Exclamation);
- return;
- }
- trv.RecordStatus = ApproveRejectStatus.getNextApproveStatus(trv.RecordStatus);
- SetVersionDetails(trv);
- VersionDetails_LostFocus(null, null);
- }
- private void m_guiReject_Click(object sender, System.EventArgs e)
- {
- if (m_guiVersionList.SelectedItems.Count <= 0)
- {
- MessageBox.Show(TaxRuleMessages.MSG_VERSION_NOT_SELECTED,
- TaxRuleMessages.WIN_VERSION_TITLE_WARNING,
- MessageBoxButtons.OK,
- MessageBoxIcon.Exclamation);
- return;
- }
- if (m_dataSource.Versions.Count <= 0 &&
- m_versionListIndex > m_dataSource.Versions.Count - 1)
- {
- return;
- }
- TaxRuleVersion trv = (TaxRuleVersion) m_dataSource.Versions[m_versionListIndex];
- if (trv.VersionId == Int32.MinValue)
- {
- MessageBox.Show(TaxRuleMessages.MSG_VERSION_NEW_VERSION_REJECT,
- TaxRuleMessages.WIN_VERSION_TITLE_WARNING,
- MessageBoxButtons.OK,
- MessageBoxIcon.Exclamation);
- return;
- }
- if (trv.IsPosted == 1)
- {
- MessageBox.Show(TaxRuleMessages.MSG_REJECT_POSTED,
- TaxRuleMessages.WIN_VERSION_TITLE_WARNING,
- MessageBoxButtons.OK,
- MessageBoxIcon.Exclamation);
- return;
- }
- trv.RecordStatus = ApproveRejectStatus.getNextRejectStatus(trv.RecordStatus, Convert.ToBoolean(trv.IsPosted));
- SetVersionDetails(trv);
- VersionDetails_LostFocus(null, null);
- if ((trv.VersionId == Int32.MinValue) &&
- (trv.RecordStatus.ToUpper() == "REJECTED" || trv.RecordStatus.ToUpper() == "DELETED"))
- {
- MessageBox.Show(TaxRuleMessages.MSG_VERSION_SHOULD_DELETE,
- TaxRuleMessages.WIN_VERSION_TITLE_WARNING,
- MessageBoxButtons.OK,
- MessageBoxIcon.Information);
- }
- }
- private void m_guiResetStatus_Click(object sender, System.EventArgs e)
- {
- if (m_guiVersionList.SelectedItems.Count <= 0)
- {
- MessageBox.Show(TaxRuleMessages.MSG_VERSION_NOT_SELECTED,
- TaxRuleMessages.WIN_VERSION_TITLE_WARNING,
- MessageBoxButtons.OK,
- MessageBoxIcon.Exclamation);
- return;
- }
- if (m_dataSource.Versions.Count <= 0 &&
- m_versionListIndex > m_dataSource.Versions.Count - 1)
- {
- return;
- }
- TaxRuleVersion trv = (TaxRuleVersion) m_dataSource.Versions[m_versionListIndex];
- trv.RecordStatus = "PENDING";
- SetVersionDetails(trv);
- VersionDetails_LostFocus(null, null);
- }
- private void m_guiNewThreshold_Click(object sender, System.EventArgs e)
- {
- ListViewItem liClone = new ListViewItem();
- if (m_guiThresholdList.SelectedItems.Count > 0)
- {
- ListViewItem li = m_guiThresholdList.SelectedItems[0];
- liClone.Text = li.SubItems[1].Text;
- liClone.SubItems.Add(String.Empty);
- liClone.SubItems.Add(li.SubItems[2].Text);
- m_guiThresholdList.Items.Add(liClone);
- }
- else
- {
- liClone.Text = "0";
- liClone.SubItems.Add(String.Empty);
- liClone.SubItems.Add("0");
- liClone.SubItems.Add("Y");
- m_guiThresholdList.Items.Add(liClone);
- }
- ListViewUtil.FocusRow(m_guiThresholdList, liClone.Index);
- }
- private void m_guiThresholdList_SelectedIndexChanged(object sender, System.EventArgs e)
- {
- ListView lv = (ListView) sender;
- if (lv.SelectedItems.Count == 0 && lv.Items.Count > 0)
- {
- //Somehow this causes multiple to be selected even though
- //multiselect is set to false for the control, also I have
- //noticed that this event fires twice per selection change,
- //first time is that the selection is 0, then to 1
- //ListViewUtil.FocusRow(m_guiVersionList, 0);
- }
- else if (lv.SelectedItems.Count == 1)
- {
- ListViewItem lvi = lv.SelectedItems[0];
- SetThresholdDetails(lvi);
- }
- }
- private void ThresholdListView_KeyUp(object sender, KeyEventArgs e)
- {
- if (e.KeyCode == Keys.Delete)
- {
- ListView li = (ListView) sender;
- foreach (ListViewItem lvi in li.SelectedItems)
- {
- lvi.Remove();
- }
- //Seems to call KeyUp again??? ListViewUtil.FocusRow(li, 0);
- }
- }
- private void NumericTextBox_KeyPress(object sender, KeyPressEventArgs e)
- {
- if (!Char.IsDigit(e.KeyChar) && e.KeyChar != '.' && e.KeyChar != Convert.ToChar(8))
- {
- e.Handled = true;
- }
- else
- {
- e.Handled = false;
- }
- }
- #endregion Event Handlers
- }
- }
- ,updated_at=2015-01-21 14:02:32.0,text_value=null,measure_data=[B@1985631,text_value=null,measure_data=[B@241d6c,text_value=null,measure_data=[B@8e6804,text_value=null,measure_data=null,text_value=null,measure_data=null,text_value=null,measure_data=null,text_value=null,measure_data=null,text_value=null,measure_data=null,text_value=null,measure_data=null,text_value=null,measure_data=null,text_value=null,measure_data=null,text_value=null,measure_data=null,text_value=null,measure_data=[B@e3ffc0]
- at org.sonar.db.version.SelectImpl.newExceptionWithRowDetails(SelectImpl.java:89) ~[sonar-db-5.6.5.jar:na]
- at org.sonar.db.version.SelectImpl.scroll(SelectImpl.java:81) ~[sonar-db-5.6.5.jar:na]
- at org.sonar.db.version.MassUpdate.execute(MassUpdate.java:91) ~[sonar-db-5.6.5.jar:na]
- at org.sonar.db.version.v50.FeedFileSources.execute(FeedFileSources.java:289) ~[sonar-db-5.6.5.jar:na]
- at org.sonar.db.version.BaseDataChange.execute(BaseDataChange.java:45) ~[sonar-db-5.6.5.jar:na]
- at org.sonar.server.db.migrations.DatabaseMigrator.executeMigration(DatabaseMigrator.java:95) ~[sonar-server-5.6.5.jar:na]
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_111]
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[na:1.8.0_111]
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[na:1.8.0_111]
- at java.lang.reflect.Method.invoke(Unknown Source) ~[na:1.8.0_111]
- at org.jruby.javasupport.JavaMethod.invokeDirectWithExceptionHandling(JavaMethod.java:455) [jruby-complete-1.7.9.jar:na]
- at org.jruby.javasupport.JavaMethod.invokeDirect(JavaMethod.java:316) [jruby-complete-1.7.9.jar:na]
- at org.jruby.java.invokers.InstanceMethodInvoker.call(InstanceMethodInvoker.java:61) [jruby-complete-1.7.9.jar:na]
- at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:168) [jruby-complete-1.7.9.jar:na]
- at org.jruby.ast.CallOneArgNode.interpret(CallOneArgNode.java:57) [jruby-complete-1.7.9.jar:na]
- at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105) [jruby-complete-1.7.9.jar:na]
- at org.jruby.evaluator.ASTInterpreter.INTERPRET_METHOD(ASTInterpreter.java:74) [jruby-complete-1.7.9.jar:na]
- at org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:182) [jruby-complete-1.7.9.jar:na]
- at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:198) [jruby-complete-1.7.9.jar:na]
- at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:326) [jruby-complete-1.7.9.jar:na]
- at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:170) [jruby-complete-1.7.9.jar:na]
- at org.jruby.ast.FCallOneArgNode.interpret(FCallOneArgNode.java:36) [jruby-complete-1.7.9.jar:na]
- at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105) [jruby-complete-1.7.9.jar:na]
- at org.jruby.evaluator.ASTInterpreter.INTERPRET_METHOD(ASTInterpreter.java:74) [jruby-complete-1.7.9.jar:na]
- at org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:161) [jruby-complete-1.7.9.jar:na]
- at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:190) [jruby-complete-1.7.9.jar:na]
- at org.jruby.internal.runtime.methods.AliasMethod.call(AliasMethod.java:81) [jruby-complete-1.7.9.jar:na]
- at org.jruby.RubyClass.finvoke(RubyClass.java:527) [jruby-complete-1.7.9.jar:na]
- at org.jruby.RubyBasicObject.send(RubyBasicObject.java:2590) [jruby-complete-1.7.9.jar:na]
- at org.jruby.RubyKernel.send(RubyKernel.java:2223) [jruby-complete-1.7.9.jar:na]
- at org.jruby.RubyKernel$INVOKER$s$send.call(RubyKernel$INVOKER$s$send.gen) [jruby-complete-1.7.9.jar:na]
- at org.jruby.internal.runtime.methods.JavaMethod$JavaMethodOneOrNBlock.call(JavaMethod.java:350) [jruby-complete-1.7.9.jar:na]
- at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:326) [jruby-complete-1.7.9.jar:na]
- at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:170) [jruby-complete-1.7.9.jar:na]
- at org.jruby.ast.FCallOneArgNode.interpret(FCallOneArgNode.java:36) [jruby-complete-1.7.9.jar:na]
- at org.jruby.ast.LocalAsgnNode.interpret(LocalAsgnNode.java:123) [jruby-complete-1.7.9.jar:na]
- at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105) [jruby-complete-1.7.9.jar:na]
- at org.jruby.evaluator.ASTInterpreter.INTERPRET_BLOCK(ASTInterpreter.java:112) [jruby-complete-1.7.9.jar:na]
- at org.jruby.runtime.InterpretedBlock.evalBlockBody(InterpretedBlock.java:384) [jruby-complete-1.7.9.jar:na]
- at org.jruby.runtime.InterpretedBlock.yield(InterpretedBlock.java:303) [jruby-complete-1.7.9.jar:na]
- at org.jruby.runtime.InterpretedBlock.yieldSpecific(InterpretedBlock.java:229) [jruby-complete-1.7.9.jar:na]
- at org.jruby.runtime.Block.yieldSpecific(Block.java:111) [jruby-complete-1.7.9.jar:na]
- at org.jruby.ast.ZYieldNode.interpret(ZYieldNode.java:25) [jruby-complete-1.7.9.jar:na]
- at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105) [jruby-complete-1.7.9.jar:na]
- at org.jruby.ast.BlockNode.interpret(BlockNode.java:71) [jruby-complete-1.7.9.jar:na]
- at org.jruby.evaluator.ASTInterpreter.INTERPRET_METHOD(ASTInterpreter.java:74) [jruby-complete-1.7.9.jar:na]
- at org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:161) [jruby-complete-1.7.9.jar:na]
- at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:190) [jruby-complete-1.7.9.jar:na]
- at org.jruby.internal.runtime.methods.WrapperMethod.call(WrapperMethod.java:74) [jruby-complete-1.7.9.jar:na]
- at org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:143) [jruby-complete-1.7.9.jar:na]
- at org.jruby.runtime.callsite.CachingCallSite.callIter(CachingCallSite.java:154) [jruby-complete-1.7.9.jar:na]
- at org.jruby.ast.CallNoArgBlockNode.interpret(CallNoArgBlockNode.java:64) [jruby-complete-1.7.9.jar:na]
- at org.jruby.ast.LocalAsgnNode.interpret(LocalAsgnNode.java:123) [jruby-complete-1.7.9.jar:na]
- at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105) [jruby-complete-1.7.9.jar:na]
- at org.jruby.ast.BlockNode.interpret(BlockNode.java:71) [jruby-complete-1.7.9.jar:na]
- at org.jruby.evaluator.ASTInterpreter.INTERPRET_METHOD(ASTInterpreter.java:74) [jruby-complete-1.7.9.jar:na]
- at org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:204) [jruby-complete-1.7.9.jar:na]
- at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:206) [jruby-complete-1.7.9.jar:na]
- at org.jruby.RubyClass.finvoke(RubyClass.java:567) [jruby-complete-1.7.9.jar:na]
- at org.jruby.RubyBasicObject.send(RubyBasicObject.java:2595) [jruby-complete-1.7.9.jar:na]
- at org.jruby.RubyKernel.send(RubyKernel.java:2227) [jruby-complete-1.7.9.jar:na]
- at org.jruby.RubyKernel$INVOKER$s$send.call(RubyKernel$INVOKER$s$send.gen) [jruby-complete-1.7.9.jar:na]
- at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:356) [jruby-complete-1.7.9.jar:na]
- at org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:213) [jruby-complete-1.7.9.jar:na]
- at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:217) [jruby-complete-1.7.9.jar:na]
- at org.jruby.ast.CallSpecialArgBlockPassNode.interpret(CallSpecialArgBlockPassNode.java:66) [jruby-complete-1.7.9.jar:na]
- at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105) [jruby-complete-1.7.9.jar:na]
- at org.jruby.ast.RescueNode.executeBody(RescueNode.java:221) [jruby-complete-1.7.9.jar:na]
- at org.jruby.ast.RescueNode.interpret(RescueNode.java:116) [jruby-complete-1.7.9.jar:na]
- at org.jruby.evaluator.ASTInterpreter.INTERPRET_METHOD(ASTInterpreter.java:74) [jruby-complete-1.7.9.jar:na]
- at org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:182) [jruby-complete-1.7.9.jar:na]
- at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:198) [jruby-complete-1.7.9.jar:na]
- at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:168) [jruby-complete-1.7.9.jar:na]
- at org.jruby.ast.CallOneArgNode.interpret(CallOneArgNode.java:57) [jruby-complete-1.7.9.jar:na]
- at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105) [jruby-complete-1.7.9.jar:na]
- at org.jruby.ast.BlockNode.interpret(BlockNode.java:71) [jruby-complete-1.7.9.jar:na]
- at org.jruby.evaluator.ASTInterpreter.INTERPRET_BLOCK(ASTInterpreter.java:112) [jruby-complete-1.7.9.jar:na]
- at org.jruby.runtime.InterpretedBlock.evalBlockBody(InterpretedBlock.java:384) [jruby-complete-1.7.9.jar:na]
- at org.jruby.runtime.InterpretedBlock.yield(InterpretedBlock.java:336) [jruby-complete-1.7.9.jar:na]
- at org.jruby.runtime.BlockBody.call(BlockBody.java:73) [jruby-complete-1.7.9.jar:na]
- at org.jruby.runtime.Block.call(Block.java:101) [jruby-complete-1.7.9.jar:na]
- at org.jruby.RubyProc.call(RubyProc.java:290) [jruby-complete-1.7.9.jar:na]
- at org.jruby.RubyProc.call(RubyProc.java:224) [jruby-complete-1.7.9.jar:na]
- at org.jruby.RubyProc$INVOKER$i$0$0$call.call(RubyProc$INVOKER$i$0$0$call.gen) [jruby-complete-1.7.9.jar:na]
- at org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:202) [jruby-complete-1.7.9.jar:na]
- at org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:198) [jruby-complete-1.7.9.jar:na]
- at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:134) [jruby-complete-1.7.9.jar:na]
- at org.jruby.ast.CallNoArgNode.interpret(CallNoArgNode.java:60) [jruby-complete-1.7.9.jar:na]
- at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105) [jruby-complete-1.7.9.jar:na]
- at org.jruby.ast.IfNode.interpret(IfNode.java:118) [jruby-complete-1.7.9.jar:na]
- at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105) [jruby-complete-1.7.9.jar:na]
- at org.jruby.evaluator.ASTInterpreter.INTERPRET_METHOD(ASTInterpreter.java:74) [jruby-complete-1.7.9.jar:na]
- at org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:161) [jruby-complete-1.7.9.jar:na]
- at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:190) [jruby-complete-1.7.9.jar:na]
- at org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:143) [jruby-complete-1.7.9.jar:na]
- at org.jruby.runtime.callsite.CachingCallSite.callIter(CachingCallSite.java:154) [jruby-complete-1.7.9.jar:na]
- at org.jruby.ast.FCallNoArgBlockNode.interpret(FCallNoArgBlockNode.java:32) [jruby-complete-1.7.9.jar:na]
- at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105) [jruby-complete-1.7.9.jar:na]
- at org.jruby.ast.RescueNode.executeBody(RescueNode.java:221) [jruby-complete-1.7.9.jar:na]
- at org.jruby.ast.RescueNode.interpret(RescueNode.java:116) [jruby-complete-1.7.9.jar:na]
- at org.jruby.ast.BeginNode.interpret(BeginNode.java:83) [jruby-complete-1.7.9.jar:na]
- at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105) [jruby-complete-1.7.9.jar:na]
- at org.jruby.ast.BlockNode.interpret(BlockNode.java:71) [jruby-complete-1.7.9.jar:na]
- at org.jruby.evaluator.ASTInterpreter.INTERPRET_BLOCK(ASTInterpreter.java:112) [jruby-complete-1.7.9.jar:na]
- at org.jruby.runtime.InterpretedBlock.evalBlockBody(InterpretedBlock.java:384) [jruby-complete-1.7.9.jar:na]
- at org.jruby.runtime.InterpretedBlock.yield(InterpretedBlock.java:357) [jruby-complete-1.7.9.jar:na]
- at org.jruby.runtime.InterpretedBlock.yield(InterpretedBlock.java:312) [jruby-complete-1.7.9.jar:na]
- at org.jruby.runtime.Block.yield(Block.java:142) [jruby-complete-1.7.9.jar:na]
- at org.jruby.RubyArray.eachCommon(RubyArray.java:1606) [jruby-complete-1.7.9.jar:na]
- at org.jruby.RubyArray.each(RubyArray.java:1613) [jruby-complete-1.7.9.jar:na]
- at org.jruby.RubyArray$INVOKER$i$0$0$each.call(RubyArray$INVOKER$i$0$0$each.gen) [jruby-complete-1.7.9.jar:na]
- at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:316) [jruby-complete-1.7.9.jar:na]
- at org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:145) [jruby-complete-1.7.9.jar:na]
- at org.jruby.runtime.callsite.CachingCallSite.callIter(CachingCallSite.java:154) [jruby-complete-1.7.9.jar:na]
- at org.jruby.ast.CallNoArgBlockNode.interpret(CallNoArgBlockNode.java:64) [jruby-complete-1.7.9.jar:na]
- at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105) [jruby-complete-1.7.9.jar:na]
- at org.jruby.ast.BlockNode.interpret(BlockNode.java:71) [jruby-complete-1.7.9.jar:na]
- at org.jruby.evaluator.ASTInterpreter.INTERPRET_METHOD(ASTInterpreter.java:74) [jruby-complete-1.7.9.jar:na]
- at org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:139) [jruby-complete-1.7.9.jar:na]
- at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:182) [jruby-complete-1.7.9.jar:na]
- at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:306) [jruby-complete-1.7.9.jar:na]
- at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:136) [jruby-complete-1.7.9.jar:na]
- at org.jruby.ast.CallNoArgNode.interpret(CallNoArgNode.java:60) [jruby-complete-1.7.9.jar:na]
- at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105) [jruby-complete-1.7.9.jar:na]
- at org.jruby.evaluator.ASTInterpreter.INTERPRET_METHOD(ASTInterpreter.java:74) [jruby-complete-1.7.9.jar:na]
- at org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:225) [jruby-complete-1.7.9.jar:na]
- at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:214) [jruby-complete-1.7.9.jar:na]
- at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:346) [jruby-complete-1.7.9.jar:na]
- at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:204) [jruby-complete-1.7.9.jar:na]
- at org.jruby.ast.FCallTwoArgNode.interpret(FCallTwoArgNode.java:38) [jruby-complete-1.7.9.jar:na]
- at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105) [jruby-complete-1.7.9.jar:na]
- at org.jruby.ast.WhenOneArgNode.whenNoTest(WhenOneArgNode.java:27) [jruby-complete-1.7.9.jar:na]
- at org.jruby.ast.WhenOneArgNode.when(WhenOneArgNode.java:45) [jruby-complete-1.7.9.jar:na]
- at org.jruby.ast.CaseNode.interpret(CaseNode.java:132) [jruby-complete-1.7.9.jar:na]
- at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105) [jruby-complete-1.7.9.jar:na]
- at org.jruby.evaluator.ASTInterpreter.INTERPRET_METHOD(ASTInterpreter.java:74) [jruby-complete-1.7.9.jar:na]
- at org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:182) [jruby-complete-1.7.9.jar:na]
- at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:198) [jruby-complete-1.7.9.jar:na]
- at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:326) [jruby-complete-1.7.9.jar:na]
- at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:170) [jruby-complete-1.7.9.jar:na]
- at org.jruby.ast.CallOneArgNode.interpret(CallOneArgNode.java:57) [jruby-complete-1.7.9.jar:na]
- at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105) [jruby-complete-1.7.9.jar:na]
- at org.jruby.evaluator.ASTInterpreter.INTERPRET_METHOD(ASTInterpreter.java:74) [jruby-complete-1.7.9.jar:na]
- at org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:139) [jruby-complete-1.7.9.jar:na]
- at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:182) [jruby-complete-1.7.9.jar:na]
- at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:306) [jruby-complete-1.7.9.jar:na]
- at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:136) [jruby-complete-1.7.9.jar:na]
- at org.jruby.ast.CallNoArgNode.interpret(CallNoArgNode.java:60) [jruby-complete-1.7.9.jar:na]
- at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105) [jruby-complete-1.7.9.jar:na]
- at org.jruby.evaluator.ASTInterpreter.INTERPRET_METHOD(ASTInterpreter.java:74) [jruby-complete-1.7.9.jar:na]
- at org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:112) [jruby-complete-1.7.9.jar:na]
- at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:164) [jruby-complete-1.7.9.jar:na]
- at RbCallUpgrade_272903560.callUpgrade(RbCallUpgrade_272903560.gen:13) [jruby-complete-1.7.9.jar:na]
- at org.sonar.server.ruby.PlatformRubyBridge$1.trigger(PlatformRubyBridge.java:52) [sonar-server-5.6.5.jar:na]
- at org.sonar.server.db.migrations.PlatformDatabaseMigration.doUpgradeDb(PlatformDatabaseMigration.java:131) [sonar-server-5.6.5.jar:na]
- at org.sonar.server.db.migrations.PlatformDatabaseMigration.doDatabaseMigration(PlatformDatabaseMigration.java:113) [sonar-server-5.6.5.jar:na]
- at org.sonar.server.db.migrations.PlatformDatabaseMigration.access$000(PlatformDatabaseMigration.java:37) [sonar-server-5.6.5.jar:na]
- at org.sonar.server.db.migrations.PlatformDatabaseMigration$1.run(PlatformDatabaseMigration.java:101) [sonar-server-5.6.5.jar:na]
- at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [na:1.8.0_111]
- at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [na:1.8.0_111]
- at java.lang.Thread.run(Unknown Source) [na:1.8.0_111]
- Caused by: java.sql.BatchUpdateException: Packet for query is too large (6371233 > 4194304). You can change this value on the server by setting the max_allowed_packet' variable.
- at com.mysql.jdbc.PreparedStatement.executeBatchedInserts(PreparedStatement.java:1607) ~[mysql-connector-java-5.1.35.jar:5.1.35]
- at com.mysql.jdbc.PreparedStatement.executeBatch(PreparedStatement.java:1272) ~[mysql-connector-java-5.1.35.jar:5.1.35]
- at org.apache.commons.dbcp.DelegatingStatement.executeBatch(DelegatingStatement.java:297) ~[commons-dbcp-1.4.jar:1.4]
- at org.apache.commons.dbcp.DelegatingStatement.executeBatch(DelegatingStatement.java:297) ~[commons-dbcp-1.4.jar:1.4]
- at org.sonar.db.version.UpsertImpl.addBatch(UpsertImpl.java:41) ~[sonar-db-5.6.5.jar:na]
- at org.sonar.db.version.MassUpdate.callSingleHandler(MassUpdate.java:118) ~[sonar-db-5.6.5.jar:na]
- at org.sonar.db.version.MassUpdate.lambda$execute$0(MassUpdate.java:91) ~[sonar-db-5.6.5.jar:na]
- at org.sonar.db.version.SelectImpl.scroll(SelectImpl.java:78) ~[sonar-db-5.6.5.jar:na]
- ... 159 common frames omitted
- Caused by: com.mysql.jdbc.PacketTooBigException: Packet for query is too large (6371233 > 4194304). You can change this value on the server by setting the max_allowed_packet' variable.
- at com.mysql.jdbc.MysqlIO.send(MysqlIO.java:3540) ~[mysql-connector-java-5.1.35.jar:5.1.35]
- at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2417) ~[mysql-connector-java-5.1.35.jar:5.1.35]
- at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2582) ~[mysql-connector-java-5.1.35.jar:5.1.35]
- at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2535) ~[mysql-connector-java-5.1.35.jar:5.1.35]
- at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1911) ~[mysql-connector-java-5.1.35.jar:5.1.35]
- at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2145) ~[mysql-connector-java-5.1.35.jar:5.1.35]
- at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2081) ~[mysql-connector-java-5.1.35.jar:5.1.35]
- at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2066) ~[mysql-connector-java-5.1.35.jar:5.1.35]
- at com.mysql.jdbc.PreparedStatement.executeBatchedInserts(PreparedStatement.java:1553) ~[mysql-connector-java-5.1.35.jar:5.1.35]
- ... 166 common frames omitted
- 2017.02.16 13:18:43 INFO web[o.s.s.d.m.PlatformDatabaseMigration] DB migration failed | time=7907530ms
- 2017.02.16 13:18:43 ERROR web[o.s.s.d.m.PlatformDatabaseMigration] DB Migration or container restart failed. Process ended with an exception
- org.jruby.exceptions.RaiseException: (StandardError) An error has occurred, all later migrations canceled:
- Fail to execute database migration: org.sonar.db.version.v50.FeedFileSources
Add Comment
Please, Sign In to add comment