Przeglądaj źródła

added office copies migration

pull/8/head
Daniel Covington 4 miesięcy temu
rodzic
commit
7278520803
3 zmienionych plików z 22 dodań i 3 usunięć
  1. +5
    -2
      App/Views/Kit/SwitchBoardPurpleEnvelopeEdit.asp
  2. +16
    -0
      Data/Migrations/Migration_17_Alter_Kit_Table_With_OfficeCopiesAmount.asp
  3. +1
    -1
      Data/Migrations/migrate.asp

+ 5
- 2
App/Views/Kit/SwitchBoardPurpleEnvelopeEdit.asp Wyświetl plik

@@ -10,15 +10,18 @@
<p><strong>Labels Printed On :</strong> <%= Model.Kit.LabelsPrinted %></p>
<p><strong>Exported to SnailWorks On:</strong> <%= Model.Kit.ExportedToSnailWorks %></p>
<% IF Model.Kit.Status = "Ready To Assign STIDS" THEN %>
<p><strong>Amount of Office Copies:</strong></p>
<%= HTML.TextBox("OfficeCopies","0") %>
<p></p>
<p><strong>Select Outbound STID:</strong></p>
<%= 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")) %>
<p></p>
<%= HTML.Checkbox("InBoundTracking",0) %> Inbound Tracking
<%= HTML.Checkbox("InBoundTracking",0) %><strong>Inbound Tracking</strong>
<p></p>
<%= HTML.Button("submit", "<i class='glyphicon glyphicon-ok'></i> Save", "btn-primary") %>
<p><%= HTML.Button("submit", "<i class='glyphicon glyphicon-ok'></i> Save", "btn-primary") %></p>
</form>
<p></p>
<% END IF %>


+ 16
- 0
Data/Migrations/Migration_17_Alter_Kit_Table_With_OfficeCopiesAmount.asp Wyświetl plik

@@ -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"
%>

+ 1
- 1
Data/Migrations/migrate.asp Wyświetl plik

@@ -44,7 +44,7 @@ Migrations.Tracing = false
<!--#include file="Migration_13_Alter_Kit_Table_With_File_Cass.asp"-->
<!--#include file="Migration_14_Alter_Kit_Table_With_STIDS.asp"-->
<!--#include file="Migration_15_Alter_InkJetRecords_Table_With_KitLabelID.asp"-->
<!--#include file="Migration_16_Alter_Jurisdiction_Table_With_Title.asp"-->
<!--#include file="Migration_17_Alter_Kit_Table_With_OfficeCopiesAmount.asp"-->
<%
Sub HandleMigration
putl "<b>Starting Version: " & Migrations.Version & "</b>"


Ładowanie…
Anuluj
Zapisz

Powered by TurnKey Linux.