forked from statisticssweden/PxWeb
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'statisticssweden:master' into master
- Loading branch information
Showing
26 changed files
with
238 additions
and
47 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 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 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 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 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 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 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 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
11 changes: 11 additions & 0 deletions
11
PCAxis.Web.Controls/FileTypes/Csv/Csv2FileSerializerCreator.vb
This file contains 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,11 @@ | ||
Imports PCAxis.Paxiom | ||
Imports PCAxis.Web.Core | ||
|
||
Public Class Csv2FileSerializerCreator | ||
|
||
Implements PCAxis.Web.Core.ISerializerCreator | ||
|
||
Public Function Create(fileInfo As String) As IPXModelStreamSerializer Implements ISerializerCreator.Create | ||
Return New PCAxis.Paxiom.Csv2FileSerializer() | ||
End Function | ||
End Class |
This file contains 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 @@ | ||
<%@ control inherits="PCAxis.Web.Controls.Csv2FileTypeCodebehind" %> |
This file contains 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,28 @@ | ||
Imports System.Web.UI | ||
Imports System.Web.UI.WebControls | ||
Imports System.ComponentModel | ||
Imports PCAxis.Web.Core | ||
Imports PCAxis.Web.Core.Attributes | ||
Imports PCAxis.Paxiom | ||
Imports PCAxis.Web.Core.Management | ||
|
||
|
||
''' <summary> | ||
''' </summary> | ||
''' <remarks></remarks> | ||
Partial Public Class Csv2FileType | ||
Inherits FileTypeMarkerControlBase(Of Csv2FileTypeCodebehind, Csv2FileType) | ||
|
||
''' <summary> | ||
''' Creates a csv2 file and sends it to the user | ||
''' </summary> | ||
''' <remarks></remarks> | ||
Public Overrides Sub SerializeAndStream() | ||
Using stream As IO.MemoryStream = New IO.MemoryStream() | ||
Dim csv2FileSerializer As New Csv2FileSerializer | ||
csv2FileSerializer.Serialize(PaxiomManager.PaxiomModel, stream) | ||
StreamFile(stream, Me.SelectedFileType.MimeType, Me.SelectedFileType.FileExtension) | ||
End Using | ||
End Sub | ||
|
||
End Class |
12 changes: 12 additions & 0 deletions
12
PCAxis.Web.Controls/FileTypes/Csv/Csv2FileTypeCodebehind.vb
This file contains 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,12 @@ | ||
Imports PCAxis.Web.Core | ||
|
||
|
||
Public Class Csv2FileTypeCodebehind | ||
Inherits FileTypeControlBase(Of Csv2FileTypeCodebehind, Csv2FileType) | ||
|
||
Private Sub Csv2FileType_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load | ||
OnFinished() | ||
Marker.SerializeAndStream() | ||
End Sub | ||
|
||
End Class |
11 changes: 11 additions & 0 deletions
11
PCAxis.Web.Controls/FileTypes/Csv/Csv3FileSerializerCreator.vb
This file contains 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,11 @@ | ||
Imports PCAxis.Paxiom | ||
Imports PCAxis.Web.Core | ||
|
||
Public Class Csv3FileSerializerCreator | ||
|
||
Implements PCAxis.Web.Core.ISerializerCreator | ||
|
||
Public Function Create(fileInfo As String) As IPXModelStreamSerializer Implements ISerializerCreator.Create | ||
Return New PCAxis.Paxiom.Csv3FileSerializer() | ||
End Function | ||
End Class |
This file contains 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 @@ | ||
<%@ control inherits="PCAxis.Web.Controls.Csv3FileTypeCodebehind" %> |
This file contains 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,28 @@ | ||
Imports System.Web.UI | ||
Imports System.Web.UI.WebControls | ||
Imports System.ComponentModel | ||
Imports PCAxis.Web.Core | ||
Imports PCAxis.Web.Core.Attributes | ||
Imports PCAxis.Paxiom | ||
Imports PCAxis.Web.Core.Management | ||
|
||
|
||
''' <summary> | ||
''' </summary> | ||
''' <remarks></remarks> | ||
Partial Public Class Csv3FileType | ||
Inherits FileTypeMarkerControlBase(Of Csv3FileTypeCodebehind, Csv3FileType) | ||
|
||
''' <summary> | ||
''' Creates a csv3 file and sends it to the user | ||
''' </summary> | ||
''' <remarks></remarks> | ||
Public Overrides Sub SerializeAndStream() | ||
Using stream As IO.MemoryStream = New IO.MemoryStream() | ||
Dim csv3FileSerializer As New Csv3FileSerializer | ||
csv3FileSerializer.Serialize(PaxiomManager.PaxiomModel, stream) | ||
StreamFile(stream, Me.SelectedFileType.MimeType, Me.SelectedFileType.FileExtension) | ||
End Using | ||
End Sub | ||
|
||
End Class |
11 changes: 11 additions & 0 deletions
11
PCAxis.Web.Controls/FileTypes/Csv/Csv3FileTypeCodebehind.vb
This file contains 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,11 @@ | ||
Imports PCAxis.Web.Core | ||
|
||
Public Class Csv3FileTypeCodebehind | ||
Inherits FileTypeControlBase(Of Csv3FileTypeCodebehind, Csv3FileType) | ||
|
||
Private Sub Csv3FiltType_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load | ||
OnFinished() | ||
Marker.SerializeAndStream() | ||
End Sub | ||
|
||
End Class |
This file contains 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 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.