|
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 "--";
|
}
|
}
|
|
}
|
}
|