diff --git a/App/Controllers/Kit/KitController.asp b/App/Controllers/Kit/KitController.asp index c280521..ca8269c 100644 --- a/App/Controllers/Kit/KitController.asp +++ b/App/Controllers/Kit/KitController.asp @@ -113,7 +113,27 @@ Class KitController HTMLSecurity.SetAntiCSRFToken "KitEditForm" %> <% End Sub + Public Sub DownloadTrackingkitSnailWorks + + dim id : id = Request.QueryString("Id") + dim Labels : Set Labels = KitLabelsRepository.Find(Array("KitID=?",id),empty) + + + 'Response.Buffer = False + Dim objStream:Set objStream = Server.CreateObject("ADODB.Stream") + objStream.Type = 1 'adTypeBinary + objStream.Open + objStream.LoadFromFile(server.mappath("/uploads/MI Jurisdictions with IMB.csv")) + 'Response.Flush + Response.ContentType = "application/octet-stream" + Response.Addheader "Content-Disposition", "attachment; filename=" & "MI Jurisdictions with IMB.csv" + Response.BinaryWrite objStream.Read + 'Response.End + objStream.Close + Set objStream = Nothing + + End Sub Public Sub Edit dim id : id = Request.QueryString("Id") diff --git a/App/Views/Kit/SwitchBoardEdit.asp b/App/Views/Kit/SwitchBoardEdit.asp index 911d978..6879662 100644 --- a/App/Views/Kit/SwitchBoardEdit.asp +++ b/App/Views/Kit/SwitchBoardEdit.asp @@ -2,6 +2,7 @@ <%= HTML.Hidden("nonce", HTMLSecurity.GetAntiCSRFToken("KitEditForm")) %> <%= HTML.Hidden("Id", Model.Kit.ID) %>
Jurisdiction: <%= Model.Kit.Jurisdiction %>
@@ -9,6 +10,8 @@Created On: <%= Model.Kit.CreatedOn %>
Labels Printed On : <%= Model.Kit.LabelsPrinted %>
Exported to SnailWorks On: <%= Model.Kit.ExportedToSnailWorks %>
+ <%= HTML.LinkToExt("Download SnailWorks File","Kit", "DownloadTrackingkitSnailWorks", Array("Id",Model.Kit.ID,"_P","1"),Array("class","btn btn-primary")) %> +