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
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
/**  
* EC_AcceptWayByOrder.cs
*
* 功 能: N/A
* 类 名: EC_AcceptWayByOrder
*
* Ver    变更日期             负责人  变更内容
* ───────────────────────────────────
* V0.01  2013-4-2 14:27:18   N/A    初版
* V0.02  2013-5-13 11:15     吴崎均    增加运单号字段(TheAwb)
* V0.03  2013-5-31 10:20     吴崎均    统一Visiter内容位置
*
*
*
*
*/
using System;
using CY.Infrastructure.Domain;
using CY.Infrastructure.Common;
namespace CY.Model
{
    /// <summary>
    /// 订单收货方式
    /// </summary>
    [Serializable]
    public partial class EC_AcceptWayByOrder : IAggregateRoot
    {
        public EC_AcceptWayByOrder()
        { }
        #region Model
        private int? _keyid;
        private int? _targetid;
        private string _city;
        private string _accepter;
        private string _accepterphone;
        private string _appointcouriercompany;
        private string _accepteraddress;
        private string _accepterphonenum;
        private string _acceptcontacts;
        private string _fetchaddress;
        private string _fetchphonenum;
        private string _fetchcontacts;
        private string _invoicedemand;
        private DateTime? _lastupdatetime;
        private string _operator;
        private string _remark;
        private int? _accepttypeid;
        private string _theawb;
 
 
        public string NumPerBag
        {
            set;
            get;
        }
        public string BagNum
        {
            set;
            get;
        }
 
        /// <summary>
        /// 收货类型编号
        /// </summary>
        public int? AcceptTypeId
        {
            set
            {
                _accepttypeid = value;
            }
            get
            {
                return _accepttypeid;
            }
        }
        /// <summary>
        /// 收货方式编号
        /// </summary>
        public int? Keyid
        {
            set { _keyid = value; }
            get { return _keyid; }
        }
        /// <summary>
        /// 目标编号
        /// </summary>
        public int? TargetId
        {
            set { _targetid = value; }
            get { return _targetid; }
        }
        /// <summary>
        /// 城市
        /// </summary>
        public string City
        {
            set { _city = value; }
            get { return _city; }
        }
        /// <summary>
        /// 收货人
        /// </summary>
        public string Accepter
        {
            set { _accepter = value; }
            get { return _accepter; }
        }
        /// <summary>
        /// 联系电话
        /// </summary>
        public string AccepterPhone
        {
            set { _accepterphone = value; }
            get { return _accepterphone; }
        }
        /// <summary>
        /// 指定货运公司
        /// </summary>
        public string AppointCourierCompany
        {
            set { _appointcouriercompany = value; }
            get { return _appointcouriercompany; }
        }
        /// <summary>
        /// 收货点地址
        /// </summary>
        public string AccepterAddress
        {
            set { _accepteraddress = value; }
            get { return _accepteraddress; }
        }
        /// <summary>
        /// 收货电话
        /// </summary>
        public string AccepterPhoneNum
        {
            set { _accepterphonenum = value; }
            get { return _accepterphonenum; }
        }
        /// <summary>
        /// 收货联系人
        /// </summary>
        public string AcceptContacts
        {
            set { _acceptcontacts = value; }
            get { return _acceptcontacts; }
        }
        /// <summary>
        /// 取货点地址
        /// </summary>
        public string FetchAddress
        {
            set { _fetchaddress = value; }
            get { return _fetchaddress; }
        }
        /// <summary>
        /// 取货电话
        /// </summary>
        public string FetchPhoneNum
        {
            set { _fetchphonenum = value; }
            get { return _fetchphonenum; }
        }
        /// <summary>
        /// 取货联系人
        /// </summary>
        public string FetchContacts
        {
            set { _fetchcontacts = value; }
            get { return _fetchcontacts; }
        }
        /// <summary>
        /// 票据要求
        /// </summary>
        public string InvoiceDemand
        {
            set { _invoicedemand = value; }
            get { return _invoicedemand; }
        }
        /// <summary>
        /// 最后修改时间
        /// </summary>
        public DateTime? LastUpdateTime
        {
            set { _lastupdatetime = value; }
            get { return _lastupdatetime; }
        }
        /// <summary>
        /// 操作人
        /// </summary>
        public string Operator
        {
            set { _operator = value; }
            get { return _operator; }
        }
        /// <summary>
        /// 备注
        /// </summary>
        public string Remark
        {
            set { _remark = value; }
            get { return _remark; }
        }
        /// <summary>
        /// 运单号
        /// </summary>
        public string TheAwb
        {
            set { _theawb = value; }
            get { return _theawb; }
        }
 
        #endregion Model
        #region Visiter
 
        /// <summary>
        /// 属性访问器
        /// </summary>
        /// <param name="name">属性名</param>
        /// <param name="index">索引</param>
        /// <param name="isChange">是否将指定属性设置为传入值</param>
        /// <param name="value">需要赋予的值</param>
        /// <returns>与名称对应的属性值</returns>
        public object Visiter(string name, int? index = -1, bool isChange = false, object value = null)
        {
            object theValue = null;
 
            if ("Keyid".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 1)
            {
                this.Keyid = isChange ? MyConvert.ConvertToInt32(value) : Keyid;
                theValue = this.Keyid;
            }
            else if ("TargetId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 2)
            {
                this.TargetId = isChange ? MyConvert.ConvertToInt32(value) : TargetId;
                theValue = this.TargetId;
            }
            else if ("City".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 3)
            {
                this.City = isChange ? MyConvert.ConvertToString(value) : City;
                theValue = this.City;
            }
            else if ("Accepter".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 4)
            {
                this.Accepter = isChange ? MyConvert.ConvertToString(value) : Accepter;
                theValue = this.Accepter;
            }
            else if ("AccepterPhone".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 5)
            {
                this.AccepterPhone = isChange ? MyConvert.ConvertToString(value) : AccepterPhone;
                theValue = this.AccepterPhone;
            }
            else if ("AppointCourierCompany".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 6)
            {
                this.AppointCourierCompany = isChange ? MyConvert.ConvertToString(value) : AppointCourierCompany;
                theValue = this.AppointCourierCompany;
            }
            else if ("AccepterAddress".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 7)
            {
                this.AccepterAddress = isChange ? MyConvert.ConvertToString(value) : AccepterAddress;
                theValue = this.AccepterAddress;
            }
            else if ("AccepterPhoneNum".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 8)
            {
                this.AccepterPhoneNum = isChange ? MyConvert.ConvertToString(value) : AccepterPhoneNum;
                theValue = this.AccepterPhoneNum;
            }
            else if ("AcceptContacts".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 9)
            {
                this.AcceptContacts = isChange ? MyConvert.ConvertToString(value) : AcceptContacts;
                theValue = this.AcceptContacts;
            }
            else if ("FetchAddress".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 10)
            {
                this.FetchAddress = isChange ? MyConvert.ConvertToString(value) : FetchAddress;
                theValue = this.FetchAddress;
            }
            else if ("FetchPhoneNum".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 11)
            {
                this.FetchPhoneNum = isChange ? MyConvert.ConvertToString(value) : FetchPhoneNum;
                theValue = this.FetchPhoneNum;
            }
            else if ("FetchContacts".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 12)
            {
                this.FetchContacts = isChange ? MyConvert.ConvertToString(value) : FetchContacts;
                theValue = this.FetchContacts;
            }
            else if ("InvoiceDemand".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 13)
            {
                this.InvoiceDemand = isChange ? MyConvert.ConvertToString(value) : InvoiceDemand;
                theValue = this.InvoiceDemand;
            }
            else if ("LastUpdateTime".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 14)
            {
                this.LastUpdateTime = isChange ? MyConvert.ConvertToDateTime(value) : LastUpdateTime;
                theValue = this.LastUpdateTime;
            }
 
            else if ("Remark".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 15)
            {
                this.Remark = isChange ? MyConvert.ConvertToString(value) : Remark;
                theValue = this.Remark;
            }
            else if ("Operator".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 16)
            {
                this.Operator = isChange ? MyConvert.ConvertToString(value) : Operator;
                theValue = this.Operator;
            }
            else if ("AcceptTypeId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 17)
            {
                this.AcceptTypeId = isChange ? MyConvert.ConvertToInt32(value) : AcceptTypeId;
                theValue = this.AcceptTypeId;
            }
            else if ("TheAwb".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 18)
            {
                this.TheAwb = isChange ? MyConvert.ConvertToString(value) : TheAwb;
                theValue = this.TheAwb;
            }
            return theValue;
        }
        #endregion
    }
}