-
Notifications
You must be signed in to change notification settings - Fork 4
ORV2-4569 - FE: STOW Basic Application Form for CV Client #2262
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
glen-aot
wants to merge
18
commits into
main
Choose a base branch
from
ORV2-4569
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 9 commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
f193a59
initial commit
3d2ea8a
permit application page
a8056cd
Merge branch 'main' into ORV2-4569
631c48a
Merge remote-tracking branch 'origin' into ORV2-4569
b28446b
add db scripts for PE updates
0f4df5d
Merge remote-tracking branch 'origin' into ORV2-4569
df077f0
update policy engine config
4ddeb35
Merge remote-tracking branch 'origin' into ORV2-4569
37f24a4
update db scripts to support STOW
2f0ef37
PR review changes
68966b0
Merge remote-tracking branch 'origin' into ORV2-4569
c4e25ec
update date on v_90_ddl.sql policy insert script
de0aa88
update db script to v_91
802e6e9
Merge branch 'main' into ORV2-4569
glen-aot 4beff15
Merge branch 'main' into ORV2-4569
glen-aot 8881465
update database scripts README
6a399f1
pass vehicleFormData and vehicleConfiguration to CommodityDetailsSect…
5d96edf
PR review changes
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
database/mssql/scripts/versions/revert/v_90_ddl_revert.sql
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,43 @@ | ||
| SET ANSI_NULLS ON | ||
| GO | ||
| SET QUOTED_IDENTIFIER ON | ||
| GO | ||
| SET NOCOUNT ON | ||
| GO | ||
| SET XACT_ABORT ON | ||
| GO | ||
| SET TRANSACTION ISOLATION LEVEL SERIALIZABLE | ||
| GO | ||
| BEGIN TRANSACTION | ||
| GO | ||
|
|
||
| -- Remove the newly added policy configuration | ||
| DELETE FROM [dbo].[ORBC_POLICY_CONFIGURATION] | ||
| WHERE POLICY_CONFIGURATION_ID = (SELECT MAX(POLICY_CONFIGURATION_ID) FROM [dbo].[ORBC_POLICY_CONFIGURATION]) | ||
| GO | ||
|
|
||
| IF @@ERROR <> 0 SET NOEXEC ON | ||
| GO | ||
|
|
||
| DECLARE @VersionDescription VARCHAR(255) | ||
| SET @VersionDescription = 'Reverting updates to policy config to support STOW' | ||
|
|
||
| INSERT [dbo].[ORBC_SYS_VERSION] ([VERSION_ID], [DESCRIPTION], [RELEASE_DATE]) VALUES (89, @VersionDescription, getutcdate()) | ||
| GO | ||
|
|
||
| IF @@ERROR <> 0 SET NOEXEC ON | ||
| GO | ||
|
|
||
| COMMIT TRANSACTION | ||
| GO | ||
| IF @@ERROR <> 0 SET NOEXEC ON | ||
| GO | ||
| DECLARE @Success AS BIT | ||
| SET @Success = 1 | ||
| SET NOEXEC OFF | ||
| IF (@Success = 1) PRINT 'The database revert succeeded' | ||
| ELSE BEGIN | ||
| IF @@TRANCOUNT > 0 ROLLBACK TRANSACTION | ||
| PRINT 'The database revert failed' | ||
| END | ||
| GO |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,70 @@ | ||
| import { PermitCondition } from "../types/PermitCondition"; | ||
|
|
||
| export const STOW_CONDITIONS: PermitCondition[] = [ | ||
| { | ||
| description: "Permit Scope and Limitation", | ||
| condition: "CVSE-1070", | ||
| conditionLink: "https://www.th.gov.bc.ca/forms/getForm.aspx?formId=1261", | ||
| checked: true, | ||
| disabled: true, | ||
| }, | ||
| { | ||
| description: "Highways with Restrictive Load Limits", | ||
| condition: "CVSE-1011", | ||
| conditionLink: "https://www.th.gov.bc.ca/forms/getForm.aspx?formId=1258", | ||
| checked: false, | ||
| disabled: false, | ||
| }, | ||
| ]; | ||
|
|
||
| export const MANDATORY_STOW_CONDITIONS: PermitCondition[] = | ||
| STOW_CONDITIONS.filter( | ||
| ({ condition }: PermitCondition) => condition === "CVSE-1070", | ||
| ); | ||
|
|
||
| export const MIN_STOW_DURATION = 1; | ||
| export const MAX_STOW_CV_DURATION = 7; | ||
| export const MAX_STOW_STAFF_DURATION = 30; | ||
|
|
||
| export const STOW_CV_DURATION_OPTIONS = [ | ||
| { value: MIN_STOW_DURATION, label: "1 Day" }, | ||
| { value: 2, label: "2 Days" }, | ||
| { value: 3, label: "3 Days" }, | ||
| { value: 4, label: "4 Days" }, | ||
| { value: 5, label: "5 Days" }, | ||
| { value: 6, label: "6 Days" }, | ||
| { value: MAX_STOW_CV_DURATION, label: "7 Days" }, | ||
| ]; | ||
|
|
||
| export const STOW_STAFF_DURATION_OPTIONS = [ | ||
| { value: MIN_STOW_DURATION, label: "1 Day" }, | ||
| { value: 2, label: "2 Days" }, | ||
| { value: 3, label: "3 Days" }, | ||
| { value: 4, label: "4 Days" }, | ||
| { value: 5, label: "5 Days" }, | ||
| { value: 6, label: "6 Days" }, | ||
| { value: 7, label: "7 Days" }, | ||
| { value: 8, label: "8 Days" }, | ||
| { value: 9, label: "9 Days" }, | ||
| { value: 10, label: "10 Days" }, | ||
| { value: 11, label: "11 Days" }, | ||
| { value: 12, label: "12 Days" }, | ||
| { value: 13, label: "13 Days" }, | ||
| { value: 14, label: "14 Days" }, | ||
| { value: 15, label: "15 Days" }, | ||
| { value: 16, label: "16 Days" }, | ||
| { value: 17, label: "17 Days" }, | ||
| { value: 18, label: "18 Days" }, | ||
| { value: 19, label: "19 Days" }, | ||
| { value: 20, label: "20 Days" }, | ||
| { value: 21, label: "21 Days" }, | ||
| { value: 22, label: "22 Days" }, | ||
| { value: 23, label: "23 Days" }, | ||
| { value: 24, label: "24 Days" }, | ||
| { value: 25, label: "25 Days" }, | ||
| { value: 26, label: "26 Days" }, | ||
| { value: 27, label: "27 Days" }, | ||
| { value: 28, label: "28 Days" }, | ||
| { value: 29, label: "29 Days" }, | ||
| { value: MAX_STOW_STAFF_DURATION, label: "30 Days" }, | ||
| ]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.