wangsheng
2022-03-01 a89e6ba4b31d13e437d04146490ba8f1c299da08
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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
 
using System.Text.RegularExpressions;
 
namespace Model
{
    public class GwOp
    {
        private int _opId;
        private string _opName;
        private int _threshold;
        private string _accessCode;
        private string _serverIp;
        private int _serverPort;
        private string _spId;
        private string _password;
        private int _localPort;
        private string _smInDir;
        private string _dmOutDir;
        private string _smOutDir;
        private int _price;
        
 
        public int OpID
        {
            get
            {
                return this._opId;
            }
            set
            {
                this._opId = value;
            }
        }
 
        public string OpName
        {
            get
            {
                return this._opName;
            }
            set
            {
                this._opName = value;
            }
        }
 
        public int Threshold
        {
            get
            {
                return this._threshold;
            }
            set
            {
                this._threshold = value;
            }
        }
 
        public string AccessCode
        {
            get
            {
                return this._accessCode;
            }
            set
            {
                this._accessCode = value;
            }
        }
 
        public string ServerIp
        {
            get
            {
                return this._serverIp;
            }
            set
            {
                this._serverIp = value;
            }
        }
 
        public int ServerPort
        {
            get
            {
                return this._serverPort;
            }
            set
            {
                this._serverPort = value;
            }
        }
 
        public string SpID
        {
            get
            {
                return this._spId;
            }
            set
            {
                this._spId = value;
            }
        }
 
        public string Password
        {
            get
            {
                return this._password;
            }
            set
            {
                this._password = value;
            }
        }
 
        public int LocalPort
        {
            get
            {
                return this._localPort;
            }
            set
            {
                this._localPort = value;
            }
        }
 
        public string SmInDir
        {
            get
            {
                return this._smInDir;
            }
            set
            {
                this._smInDir = value;
            }
        }
 
        public string DmOutDir
        {
            get
            {
                return this._dmOutDir;
            }
            set
            {
                this._dmOutDir = value;
            }
        }
 
        public string SmOutDir
        {
            get
            {
                return this._smOutDir;
            }
            set
            {
                this._smOutDir = value;
            }
        }
 
        public int Price
        {
            get
            {
                return this._price;
            }
            set
            {
                this._price = value;
            }
        }
 
        public string BaseDir
        {
            get
            {
                if (string.IsNullOrEmpty(this.SmInDir))
                    return string.Empty;
                return Regex.Replace(this.SmInDir, "\\d+.*", string.Empty);
            }
        }
 
        public string ClassName { get; set; }
 
        public string ExtParams { get; set; }
 
        public string UserName { get; set; }
 
        public string Remark { get; set; }
 
        public int OpError { get; set; }
 
        public int OpStatus { get; set; }
 
        public string WhiteSegments { get; set; }
 
        public int Priority { get; set; }
 
        public string BlackSegments { get; set; }
 
        public int UdhiMode { get; set; }
 
        public int MsgFormat { get; set; }
 
        public int FeeShortLength { get; set; }
 
        public int FeeLongLength { get; set; }
 
        public int SplitLength { get; set; }
 
        public int CurrentRate { get; set; }
 
        public int MaxConn { get; set; }
 
        public int ClearFixMode { get; set; }
 
        public string ClearFixModeText
        {
            get
            {
                if (this.ClearFixMode == 1)
                    return "直接抹签名";
                if (this.ClearFixMode == 2)
                    return "抹签名后填充空白到原字符串开头(客户提交自带UDHI头的情况下无效)";
                if (this.ClearFixMode == 3)
                    return "抹签名后填充空白到原字符串结尾(客户提交自带UDHI头的情况下无效)";
                return this.ClearFixMode == 4 ? "抹签名后在原位置填充空白字符" : "不抹客户签名";
            }
        }
 
        public string AlarmSetting { get; set; }
 
        public string DllPath
        {
            get
            {
                switch (this.ClassName)
                {
                    case "com.softwee.smgw.cmppc.CmppOutPoint":
                        return "cmppc.dll";
                    case "com.softwee.smgw.cmppc.Cmpp3OutPoint":
                        return "cmppc.dll";
                    case "com.softwee.smgw.sgipc.SgipOutPoint":
                        return "sgipc.dll";
                    case "com.softwee.smgw.smgpc.SmgpOutPoint":
                        return "smgpc.dll";
                    case "com.softwee.smgw.smppc.SmppOutPoint":
                        return "smppc.dll";
 
                    case "com.softwee.smgw.smgpc.SmgpxnOutPoint":
                        return "smgpc.dll";
                    case "com.softwee.smgw.cmppc.CmppxnOutPoint":
                        return "cmppc.dll";
 
                    case "com.softwee.smgw.httpc.Sms57OutPoint":
                        return "httpc.dll";
                    default:
                        return "--";
                }
            }
        }
 
        public int SplitMode { get; set; }
 
        public int BlackPoolID { get; set; }
 
        public int price { get; set; }
 
        public static string ToClassNameText(string className)
        {
            switch (className)
            {
                case "com.softwee.smgw.cmppc.CmppOutPoint":
                    return "中国移动-CMPP2.0/CMPP2.1";
                case "com.softwee.smgw.cmppc.Cmpp3OutPoint":
                    return "中国移动-CMPP3.0";
                case "com.softwee.smgw.sgipc.SgipOutPoint":
                    return "中国联通-SGIP1.1/SGIP1.2";
                case "com.softwee.smgw.smgpc.SmgpOutPoint":
                    return "中国电信-SMGP3.0";
                case "com.softwee.smgw.smppc.SmppOutPoint":
                    return "国际-SMPP3.4/SMPP3.3";
 
                case "com.softwee.smgw.smgpc.SmgpxnOutPoint":
                    return "虚拟网关成功状态接口3.0";
                case "com.softwee.smgw.cmppc.CmppxnOutPoint":
                    return "虚拟网关随机状态接口2.0";
 
                case "com.softwee.smgw.httpc.Sms57OutPoint":
                    return "HTTPAPI-SMS57(不支持短信分条)";
                default:
                    return "--";
            }
        }
 
    }
}