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
94
95
96
97
98
99
100
101
102
103
104
105
| using System;
| using System.Collections.Generic;
| using System.Linq;
|
| namespace DataLoader.CS
| {
| public class StaticData
| {
| public const int MAX_FILES = 2000;
|
| public static String ADMIN = "admin";
|
| public const String ZIP = ".zip";
|
| public const String XLS = ".xls";
|
| public const String XLSX = ".xlsx";
|
| public const String MDB = ".mdb";
|
| public const String SHP = ".shp";
|
| public const String NGDB = "gdb";
|
| public const String GDB = ".gdb";
|
| public const String JPG = ".jpg";
|
| public const String JP2 = ".jp2";
|
| public const String IMG = ".img";
|
| public const String MPT = ".mpt";
|
| public const String D3DML = ".3dml";
|
| public const String TIF = ".tif";
|
| public const String TIFF = ".tiff";
|
| public const String LAS = ".las";
|
| public const String OSGB = ".osgb";
|
| /// <summary>
| /// 栅格数据扩展名
| /// </summary>
| public static readonly List<String> RASTER_EXT = new List<String> { ".img", ".tif", ".tiff", "jpg", "jp2" };
|
| /// <summary>
| /// 16进制
| /// </summary>
| public static readonly char[] HEX_DIGITS = { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f' };
|
| /// <summary>
| /// 密码正则表达式
| /// </summary>
| public const String PWD_REG = "^(?![a-zA-Z]+$)(?![A-Z0-9]+$)(?![A-Z\\W!@#$%^&*`~()\\-_+=,.?;<>]+$)(?![a-z0-9]+$)(?![a-z\\W!@#$%^&*`~()\\-_+=,.?;<>]+$)(?![0-9\\W!@#$%^&*`~()\\-_+=,.?;<>]+$)[a-zA-Z0-9\\W!@#$%^&*`~()\\-_+=,.?;<>]{12,20}$";
|
| /// <summary>
| /// MPT文件扩展名
| /// </summary>
| public readonly static List<String> MPT_EXT = new List<String> { ".midx", ".strmi", ".ei.midx", ".ei.mpt", ".ei.strmi" };
|
| /// <summary>
| /// JPG文件扩展名
| /// </summary>
| public readonly static List<String> JPG_EXT = new List<String> { ".jpg.aux.xml", ".jpg.ovr", ".jpg.xml", ".jgw", ".prj" };
|
| /// <summary>
| /// JP2文件扩展名
| /// </summary>
| public readonly static List<String> JP2_EXT = new List<String> { ".jp2.aux.xml", ".jp2.ovr", ".jp2.xml", ".jgw", ".prj", ".jp2.html", ".jp2.txt" };
|
| /// <summary>
| /// IMG文件扩展名
| /// </summary>
| public readonly static List<String> IMG_EXT = new List<String> { ".rrd", ".img.aux.xml", ".hdr", ".img.enp", ".img.xml" };
|
| /// <summary>
| /// TIF文件扩展名
| /// </summary>
| public readonly static List<String> TIF_EXT = new List<String> { ".prj", ".tfw", ".aux", ".tif.ovr", ".tif.aux.xml", ".tif.xml" };
|
| /// <summary>
| /// TIFF文件扩展名
| /// </summary>
| public readonly static List<String> TIFF_EXT = new List<String> { ".prj", ".tfw", ".aux", ".tiff.ovr", ".tiff.aux.xml", ".tiff.xml" };
|
| /// <summary>
| /// SHP文件扩展名
| /// </summary>
| public readonly static List<String> SHP_EXT = new List<String> { ".shx", ".dbf", ".prj", ".cpg" };
|
| /// <summary>
| /// Mapper排除扩展名
| /// </summary>
| public readonly static List<String> MAPPER_EXCLUDE_EXT = new List<String> { ".jpg.aux.xml", ".jpg.xml", ".jp2.aux.xml", ".jp2.xml", ".jp2.html", ".jp2.txt", ".img.aux.xml", ".img.xml", ".tif.aux.xml", ".tif.xml", ".tiff.aux.xml", ".tiff.xml", ".shp.xml" };
|
| /// <summary>
| /// 所有文件扩展名
| /// </summary>
| public readonly static List<String> ALL_EXTENSION = new List<String> { ".txt", ".xml", ".pdf", ".xls", ".xlsx", ".doc", ".docx", ".ppt", ".pptx", ".shp", ".gdb", ".mdb", ".dwg", ".las", ".laz", ".cpt", ".mpt", ".ei.mpt", ".fly", ".efb", ".g3d", ".fbx", ".obj", ".3dm", ".3dml", ".osgb", ".rvt", ".ifc", ".jpg", ".jp2", ".png", ".img", ".tif", ".tiff", ".dem", ".bmp", ".gif", ".rmvb", ".rm", ".mp3", ".mp4", ".avi", ".wma", ".wmv", ".7z", ".rar", ".zip" };
| }
| }
|
|