-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathConstants.cs
More file actions
93 lines (83 loc) · 3.47 KB
/
Constants.cs
File metadata and controls
93 lines (83 loc) · 3.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
// // // *************************************************************************
// // // * *
// // // * http://www.pentia.net/ *
// // // * *
// // // * Copyright(C) Pentia A/S, 1997 - 2012. All rights reserved (R). *
// // // * *
// // // * LEGAL NOTICE: This is unpublished proprietary source code of Pentia. *
// // // * The contents of this file are protected by copyright laws and *
// // // * international copyright treaties, as well as other intellectual *
// // // * property laws and treaties. These contents may not be extracted, *
// // // * copied, modified or redistributed either as a whole or part thereof *
// // // * in any form, and may not be used directly in, or to assist with, the *
// // // * creation of derivative works of any nature without prior written *
// // // * permission from Pentia. The above copyright notice does not *
// // // * evidence any actual or intended publication of this file. *
// // // * *
// // // *************************************************************************
namespace WFFM.SQLServer.SaveToDatabase
{
internal class Constants
{
internal struct Texts
{
internal struct Warning
{
internal const string IncorrectDateFromat = "Incorrect DateTime format.";
}
}
internal struct Settings
{
internal struct Name
{
internal const string Connection = "WFM.ConnectionString";
internal const string CsvDelimiter = "WFFM.SQLServer.SaveToDatabase.CsvDelimiter";
internal const string ExportOptions = "WFFM.SQLServer.SaveToDatabase.ExportOptions";
}
}
internal struct Url
{
internal const string ExportFromDataPage = "/Components/Framework/Form/Presentation/ExportFormData.aspx";
}
internal struct QueryString
{
internal struct Name
{
internal const string ItemId = "itemId";
internal const string ItemName = "itemName";
internal const string DateRange = "dateRange";
}
}
internal struct Response
{
internal struct ContentType
{
internal const string Csv = "text/csv; charset=UTF-8";
}
internal struct Charset
{
internal const string Utf8 = "UTF-8";
}
internal struct Header
{
internal struct ContentDisposition
{
internal const string Name = "Content-Disposition";
internal const string AttachmentFilenameFormat = "attachment; filename={0}";
}
}
}
internal struct File
{
internal struct Exstensions
{
internal const string Csv = "csv";
}
}
internal struct DateTime
{
internal const string TimeStampFormat = "yyyy-MM-dd HH:mm:ss";
internal const string DateFormat = "d";
}
}
}