wzp
2021-07-28 1cd1fbd9b88e3a4c0a9f6b76947c7523c1fa2979
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
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
 
namespace AsiaINFO.SMS.DBFactory
{
    public class SMS_MT_INFO
    {
        // Fields
        private string guid;
        private char mobileNoType;
        private int msgSub;
        private int msgSum;
        private string phoneNumber;
        private string sendTime;
        private string smsContent;
        private string subNumber;
        private string wapPushAddr;
        private string _LONG_SERV_NO;
        private string _SERV_CODE;
        private string _NEED_DOWN_TIME;
        private int _batchid;
        private int _priority;
 
        public int BatchID
        {
 
            get { return _batchid; }
            set { _batchid = value; }
        }
        public string NEED_DOWN_TIME
        {
            get { return _NEED_DOWN_TIME; }
            set { _NEED_DOWN_TIME = value; }
        }
        /// <summary>
        /// 与Msg_Src及Servcie_id相同,如为hs0055
        /// </summary>
        public string SERV_CODE
        {
            get { return _SERV_CODE; }
            set { _SERV_CODE = value; }
        }
 
        public string LONG_SERV_NO
        {
            get { return _LONG_SERV_NO; }
            set { _LONG_SERV_NO = value; }
        }
 
        // Methods
        public SMS_MT_INFO()
        {
        }
        /// <summary>
        /// 
        /// </summary>
        /// <param name="guid"></param>
        /// <param name="phoneNumber"></param>
        /// <param name="mobileNoType"></param>
        /// <param name="smsContent"></param>
        /// <param name="subNumber">子号</param>
        /// <param name="wapPushAddr"></param>
        /// <param name="sendTime">发送时间</param>
        /// <param name="msgSum"></param>
        /// <param name="msgSub"></param>
        /// <param name="LONG_SERV_NO">接入号</param>
        /// <param name="NEED_DOWN_TIME">需要下发的时间</param>
        /// <param name="SER_CODE">与Msg_Src,Service_id相同</param>
        public SMS_MT_INFO(int priority,int batchid, string guid, string phoneNumber, char mobileNoType, string smsContent, string subNumber, string wapPushAddr, string sendTime, int msgSum, int msgSub, string LONG_SERV_NO = "", string NEED_DOWN_TIME = "", string SER_CODE = "")
        {
            this.guid = guid;
            this.phoneNumber = phoneNumber;
            this.mobileNoType = mobileNoType;
            this.smsContent = smsContent;
            this.subNumber = subNumber;
            this.wapPushAddr = wapPushAddr;
            this.sendTime = sendTime;
            this.msgSum = msgSum;
            this.msgSub = msgSub;
            this.BatchID = batchid;
            this.Priority = priority;
            this._LONG_SERV_NO = string.IsNullOrEmpty(LONG_SERV_NO) ? System.Configuration.ConfigurationManager.AppSettings["LONGSERVNO"].ToString() : LONG_SERV_NO;
            this._LONG_SERV_NO = string.IsNullOrEmpty(subNumber) ? _LONG_SERV_NO : string.Format("{0}{1}", _LONG_SERV_NO, subNumber);
            this.SERV_CODE = string.IsNullOrEmpty(SER_CODE) ? System.Configuration.ConfigurationManager.AppSettings["Service_Id"].ToString() : SER_CODE;
            this._NEED_DOWN_TIME = string.IsNullOrEmpty(NEED_DOWN_TIME) ? DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") : NEED_DOWN_TIME;
        }
 
        // Properties
        public string Guid
        {
            get
            {
                return this.guid;
            }
            set
            {
                this.guid = value;
            }
        }
 
        public char MobileNoType
        {
            get
            {
                return this.mobileNoType;
            }
            set
            {
                this.mobileNoType = value;
            }
        }
 
        public int MsgSub
        {
            get
            {
                return this.msgSub;
            }
            set
            {
                this.msgSub = value;
            }
        }
 
        public int MsgSum
        {
            get
            {
                return this.msgSum;
            }
            set
            {
                this.msgSum = value;
            }
        }
 
        public string PhoneNumber
        {
            get
            {
                return this.phoneNumber;
            }
            set
            {
                this.phoneNumber = value;
            }
        }
 
        public string SendTime
        {
            get
            {
                return this.sendTime;
            }
            set
            {
                this.sendTime = value;
            }
        }
 
        public string SmsContent
        {
            get
            {
                return this.smsContent;
            }
            set
            {
                this.smsContent = value;
            }
        }
 
        public string SubNumber
        {
            get
            {
                return this.subNumber;
            }
            set
            {
                this.subNumber = value;
            }
        }
 
        public string WapPushAddr
        {
            get
            {
                return this.wapPushAddr;
            }
            set
            {
                this.wapPushAddr = value;
            }
        }
 
        public int Priority
        {
            get { return this._priority; }
            set { this._priority = value; }
        }
    }
}