From 727852080398ccc4d498e5eb9413a93f3c2bd282 Mon Sep 17 00:00:00 2001 From: Daniel Covington Date: Thu, 25 Jul 2024 14:01:39 -0400 Subject: [PATCH] added office copies migration --- App/Views/Kit/SwitchBoardPurpleEnvelopeEdit.asp | 7 +++++-- ...7_Alter_Kit_Table_With_OfficeCopiesAmount.asp | 16 ++++++++++++++++ Data/Migrations/migrate.asp | 2 +- 3 files changed, 22 insertions(+), 3 deletions(-) create mode 100644 Data/Migrations/Migration_17_Alter_Kit_Table_With_OfficeCopiesAmount.asp diff --git a/App/Views/Kit/SwitchBoardPurpleEnvelopeEdit.asp b/App/Views/Kit/SwitchBoardPurpleEnvelopeEdit.asp index beff653..a0cae38 100644 --- a/App/Views/Kit/SwitchBoardPurpleEnvelopeEdit.asp +++ b/App/Views/Kit/SwitchBoardPurpleEnvelopeEdit.asp @@ -10,15 +10,18 @@

Labels Printed On : <%= Model.Kit.LabelsPrinted %>

Exported to SnailWorks On: <%= Model.Kit.ExportedToSnailWorks %>

<% IF Model.Kit.Status = "Ready To Assign STIDS" THEN %> +

Amount of Office Copies:

+ <%= HTML.TextBox("OfficeCopies","0") %> +

Select Outbound STID:

<%= HTML.FormTag("Kit","SwitchBoardPurpleEnvelopeEditPost",empty,empty) %> <%= HTML.Hidden("nonce", HTMLSecurity.GetAntiCSRFToken("KitEditForm")) %> <%= HTML.Hidden("Id", Model.Kit.ID) %> <%= HTML.DropDownListExt("OutboundSTID","hmm",Model.StidDropDown,"STID","OPTION",Array("Class","form-select")) %>

- <%= HTML.Checkbox("InBoundTracking",0) %> Inbound Tracking + <%= HTML.Checkbox("InBoundTracking",0) %>Inbound Tracking

- <%= HTML.Button("submit", " Save", "btn-primary") %> +

<%= HTML.Button("submit", " Save", "btn-primary") %>

<% END IF %> diff --git a/Data/Migrations/Migration_17_Alter_Kit_Table_With_OfficeCopiesAmount.asp b/Data/Migrations/Migration_17_Alter_Kit_Table_With_OfficeCopiesAmount.asp new file mode 100644 index 0000000..7e94193 --- /dev/null +++ b/Data/Migrations/Migration_17_Alter_Kit_Table_With_OfficeCopiesAmount.asp @@ -0,0 +1,16 @@ +<% +Class Migration_17_Alter_Kit_Table_With_OfficeCopiesAmount + Public Migration + + Public Sub Up + Migration.Do "ALTER TABLE [Kit] " &_ + "ADD [OfficeCopiesAmount] Long;" +End Sub + + Public Sub Down + Migration.Do "ALTER TABLE [Kit] " &_ + "DROP COLUMN [OfficeCopiesAmount];" + End Sub +End Class + Migrations.Add "Migration_17_Alter_Kit_Table_With_OfficeCopiesAmount" + %> \ No newline at end of file diff --git a/Data/Migrations/migrate.asp b/Data/Migrations/migrate.asp index 4b671c5..f2d5437 100644 --- a/Data/Migrations/migrate.asp +++ b/Data/Migrations/migrate.asp @@ -44,7 +44,7 @@ Migrations.Tracing = false - + <% Sub HandleMigration putl "Starting Version: " & Migrations.Version & ""