username@email.com
2025-04-22 277cffdd657197fbd72444ef24a99dde7a469011
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
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
/**  
* OA_Procurement.cs
*
* 功 能: N/A
* 类 名: OA_Procurement
*
* Ver    变更日期             负责人  变更内容
* ───────────────────────────────────
* V0.01  2013-4-2 14:27:56   N/A    初版
*
*
*
*
*
*
*/
using System;
using CY.Infrastructure.Domain;
using CY.Infrastructure.Common;
 
namespace CY.Model
{
    /// <summary>
    /// 办公系统采购信息
    /// </summary>
    [Serializable]
    public partial class OA_Procurement : IAggregateRoot
    {
        public OA_Procurement()
        {
        }
 
        #region Model
        private int? _keyid;
        private Guid _firmid;
        private int? _commodityid;
        private int? _suppliersid;
        private int? _goodsid;
        private int? _clearingstatusid;
        private decimal? _price;
        private int? _quantity;
        private decimal? _allmoney;
        private DateTime? _purchasetime;
        private int? _purchasestatusid;
        private DateTime? _lastupdatetime;
        private string _operator;
        private string _remark;
        private string _GoodsName;
        private string _BrandName;
        private decimal? _tanPrice;
 
 
        public string WarehouseName { get; set; }
 
        /// <summary>
        /// 纸张吨价
        /// </summary>
        public decimal? TanPrice
        {
            get
            {
                return _tanPrice;
            }
            set
            {
                _tanPrice = value;
            }
        }
        /// <summary>
        /// 品牌名称
        /// </summary>
        public string BrandName
        {
            get
            {
                return _BrandName;
            }
            set
            {
                _BrandName = value;
            }
        }
        /// <summary>
        /// 规格名称
        /// </summary>
        private string _SpeceicationName;
        public string SpeceicationName
        {
            get
            {
                return _SpeceicationName;
            }
            set
            {
                _SpeceicationName = value;
            }
        }
        /// <summary>
        /// 克重
        /// </summary>
        private string _PaperWeightName;
        public string PaperWeightName
        {
            get
            {
                return _PaperWeightName;
            }
            set
            {
                _PaperWeightName = value;
            }
        }
        private int? _SpecificationId;
        /// <summary>
        /// 规格Id
        /// </summary>
        public int? SpecificationId
        {
            get
            {
                return _SpecificationId;
            }
            set
            {
                _SpecificationId = value;
            }
        }
        /// <summary>
        /// 克重ID
        /// </summary>
        private int? _PaperWeightId;
        public int? PaperWeightId
        {
            get
            {
                return _PaperWeightId;
            }
            set
            {
                _PaperWeightId = value;
            }
        }
        /// <summary>
        /// 品牌ID
        /// </summary>
        private int? _BrandId;
        public int? BrandId
        {
            get
            {
                return _BrandId;
            }
            set
            {
                _BrandId = value;
            }
        }
        /// <summary>
        /// 货品名称
        /// </summary>
        public string GoodsName
        {
            get
            {
                return _GoodsName;
            }
            set
            {
                _GoodsName = value;
            }
        }
        private string _ClearingStatus;
        public string ClearingStatus
        {
            get
            {
                return _ClearingStatus;
            }
            set
            {
                _ClearingStatus = value;
            }
        }
        private string _PurchaseStatus;
        /// <summary>
        /// 购买状态
        /// </summary>
        public string PurchaseStatus
        {
            get
            {
                return _PurchaseStatus;
            }
            set
            {
                _PurchaseStatus = value;
            }
        }
        private string _SuppliersName;
        /// <summary>
        /// 供应商名称
        /// </summary>
        public string SuppliersName
        {
            get
            {
                return _SuppliersName;
            }
            set
            {
                _SuppliersName = value;
            }
        }
        /// <summary>
        /// 信息编号
        /// </summary>
        public int? Keyid
        {
            set
            {
                _keyid = value;
            }
            get
            {
                return _keyid;
            }
        }
        /// <summary>
        /// 所属厂商
        /// </summary>
        public Guid FirmId
        {
            set
            {
                _firmid = value;
            }
            get
            {
                return _firmid;
            }
        }
        /// <summary>
        /// 关联供应商编号
        /// </summary>
        public int? SuppliersId
        {
            set
            {
                _suppliersid = value;
            }
            get
            {
                return _suppliersid;
            }
        }
        /// <summary>
        /// 货品编号
        /// </summary>
        public int? GoodsId
        {
            set
            {
                _goodsid = value;
            }
            get
            {
                return _goodsid;
            }
        }
        /// <summary>
        /// 结算状态编号
        /// </summary>
        public int? ClearingStatusId
        {
            set
            {
                _clearingstatusid = value;
            }
            get
            {
                return _clearingstatusid;
            }
        }
        /// <summary>
        /// 单价
        /// </summary>
        public decimal? Price
        {
            set
            {
                _price = value;
            }
            get
            {
                return _price;
            }
        }
        /// <summary>
        /// 数量
        /// </summary>
        public int? Quantity
        {
            set
            {
                _quantity = value;
            }
            get
            {
                return _quantity;
            }
        }
        /// <summary>
        /// 金额
        /// </summary>
        public decimal? AllMoney
        {
            set
            {
                _allmoney = value;
            }
            get
            {
                return _allmoney;
            }
        }
        /// <summary>
        /// 已付金额
        /// </summary>
        public decimal? ReceiveMoney
        {
            set;
            get;
        }
        /// <summary>
        /// 采购时间
        /// </summary>
        public DateTime? PurchaseTime
        {
            set
            {
                _purchasetime = value;
            }
            get
            {
                return _purchasetime;
            }
        }
        /// <summary>
        /// 采购状态
        /// </summary>
        public int? PurchaseStatusId
        {
            set
            {
                _purchasestatusid = value;
            }
            get
            {
                return _purchasestatusid;
            }
        }
        /// <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 int? Commodityid
        {
            set
            {
                _commodityid = value;
            }
            get
            {
                return _commodityid;
            }
        }
 
        /// <summary>
        /// 订单id
        /// </summary>
        public int? orderId
        {
            get;set;
        }
 
        /// <summary>
        /// 印件名称
        /// </summary>
        public  string DocumentName
        {
            get; set;
        }
 
        #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 ("FirmId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 2)
            {
                this.FirmId = isChange ? MyConvert.ConvertToGuid(value) : FirmId;
                theValue = this.FirmId;
            }
            else if ("SuppliersId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 3)
            {
                this.SuppliersId = isChange ? MyConvert.ConvertToInt32(value) : SuppliersId;
                theValue = this.SuppliersId;
            }
            else if ("GoodsId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 4)
            {
                this.GoodsId = isChange ? MyConvert.ConvertToInt32(value) : GoodsId;
                theValue = this.GoodsId;
            }
            else if ("ClearingStatusId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 5)
            {
                this.ClearingStatusId = isChange ? MyConvert.ConvertToInt32(value) : ClearingStatusId;
                theValue = this.ClearingStatusId;
            }
            else if ("Price".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 6)
            {
                this.Price = isChange ? MyConvert.ConvertToDecimal(value) : Price;
                theValue = this.Price;
            }
            else if ("Quantity".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 7)
            {
                this.Quantity = isChange ? MyConvert.ConvertToInt32(value) : Quantity;
                theValue = this.Quantity;
            }
            else if ("AllMoney".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 8)
            {
                this.AllMoney = isChange ? MyConvert.ConvertToDecimal(value) : AllMoney;
                theValue = this.AllMoney;
            }
            else if ("PurchaseTime".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 9)
            {
                this.PurchaseTime = isChange ? MyConvert.ConvertToDateTime(value) : PurchaseTime;
                theValue = this.PurchaseTime;
            }
            else if ("PurchaseStatusId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 10)
            {
                this.PurchaseStatusId = isChange ? MyConvert.ConvertToInt32(value) : PurchaseStatusId;
                theValue = this.PurchaseStatusId;
            }
            else if ("LastUpdateTime".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 11)
            {
                this.LastUpdateTime = isChange ? MyConvert.ConvertToDateTime(value) : LastUpdateTime;
                theValue = this.LastUpdateTime;
            }
            else if ("Operator".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 12)
            {
                this.Operator = isChange ? MyConvert.ConvertToString(value) : Operator;
                theValue = this.Operator;
            }
            else if ("Remark".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 13)
            {
                this.Remark = isChange ? MyConvert.ConvertToString(value) : Remark;
                theValue = this.Remark;
            }
            else if ("GoodsName".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 14)
            {
                this.GoodsName = isChange ? MyConvert.ConvertToString(value) : GoodsName;
                theValue = this.GoodsName;
            }
            else if ("ClearingStatus".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 15)
            {
                this.ClearingStatus = isChange ? MyConvert.ConvertToString(value) : ClearingStatus;
                theValue = this.ClearingStatus;
            }
            else if ("PurchaseStatus".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 16)
            {
                this.PurchaseStatus = isChange ? MyConvert.ConvertToString(value) : PurchaseStatus;
                theValue = this.PurchaseStatus;
            }
            else if ("SuppliersName".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 17)
            {
                this.SuppliersName = isChange ? MyConvert.ConvertToString(value) : SuppliersName;
                theValue = this.SuppliersName;
            }
            else if ("SpecificationId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 18)
            {
                this.SpecificationId = isChange ? MyConvert.ConvertToInt32(value) : SpecificationId;
                theValue = this.SpecificationId;
            }
            else if ("PaperWeightId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 19)
            {
                this.PaperWeightId = isChange ? MyConvert.ConvertToInt32(value) : PaperWeightId;
                theValue = this.PaperWeightId;
            }
            else if ("BrandId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 20)
            {
                this.BrandId = isChange ? MyConvert.ConvertToInt32(value) : BrandId;
                theValue = this.BrandId;
            }
            else if ("PaperWeightName".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 21)
            {
                this.PaperWeightName = isChange ? MyConvert.ConvertToString(value) : PaperWeightName;
                theValue = this.PaperWeightName;
            }
            else if ("BrandName".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 22)
            {
                this.BrandName = isChange ? MyConvert.ConvertToString(value) : BrandName;
                theValue = this.BrandName;
            }
            else if ("SpeceicationName".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 23)
            {
                this.SpeceicationName = isChange ? MyConvert.ConvertToString(value) : SpeceicationName;
                theValue = this.SpeceicationName;
            }
            else if ("TanPrice".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 24)
            {
                this.TanPrice = isChange ? MyConvert.ConvertToDecimal(value) : TanPrice;
                theValue = this.TanPrice;
            }
            else if ("ReceiveMoney".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 25)
            {
                this.ReceiveMoney = isChange ? MyConvert.ConvertToDecimal(value) : ReceiveMoney;
                theValue = this.ReceiveMoney;
            }
            else if ("Commodityid".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 26)
            {
                this.Commodityid = isChange ? MyConvert.ConvertToInt32(value) : Commodityid;
                theValue = this.Commodityid;
            }
            else if ("orderId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 26)
            {
                this.orderId = isChange ? MyConvert.ConvertToInt32(value) : orderId;
                theValue = this.orderId;
            }
            else if ("DocumentName".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 26)
            {
                this.DocumentName = isChange ? MyConvert.ConvertToString(value) : DocumentName;
                theValue = this.DocumentName;
            }
            else if ("WarehouseName".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 27)
            {
                this.WarehouseName = isChange ? MyConvert.ConvertToString(value) : WarehouseName;
                theValue = this.WarehouseName;
            }
            
            return theValue;
        }
        #endregion
    }
}