username@email.com
2024-12-04 ba381be6a5aac58df11e2e7b6b19f012bd9ff5a1
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
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
using System;
using CY.Infrastructure.Domain;
using CY.Infrastructure.Common;
namespace CY.Model
{
    /// <summary>
    ///工作安排
    /// </summary>
    [Serializable]
    public partial class OA_WorkPlan : IAggregateRoot
    {
        public OA_WorkPlan()
        {
        }
        #region Model
        private int? _keyid;
        private Guid _memberid;
        private Guid _sentstaffid;
        private int? _departid;
        private Guid _recivestaffid;
        private int? _plantype;
        private int? _plandatatype;
        private string _plantitle;
        private string _plancontent;
        private DateTime? _planruntime;
        private decimal? _planmoney;
        private string _planremark;
        private DateTime? _planstarttime;
        private string _planpeople;
        private string _plancomplany;
        private int? _planstatus;
        private Guid _approvalstaffid;
        private int? _approvalstatus;
        private DateTime? _approvaltime;
        private string _approvalcontent;
        private DateTime? _lastupdatetime;
        private string _operator;
        private int? _evaluationstatus;
        private string _evaluationcontent;
        private Guid _evaluationstaffid;
        private DateTime? _evaluationtime;
        private int? _rewardtype;
        private string _rewardcontent;
        private string _rewardresult;
        private decimal? _rewardmoney;
 
        /// <summary>
        /// 编号
        /// </summary>        
        public int? Keyid
        {
            get
            {
                return _keyid;
            }
            set
            {
                _keyid = value;
            }
        }
        /// <summary>
        /// 会员编号
        /// </summary>        
        public Guid MemberId
        {
            get
            {
                return _memberid;
            }
            set
            {
                _memberid = value;
            }
        }
        /// <summary>
        /// 发起人编号
        /// </summary>        
        public Guid SentStaffId
        {
            get
            {
                return _sentstaffid;
            }
            set
            {
                _sentstaffid = value;
            }
        }
        /// <summary>
        /// 部门编号
        /// </summary>        
        public int? DepartId
        {
            get
            {
                return _departid;
            }
            set
            {
                _departid = value;
            }
        }
        /// <summary>
        /// 接收人编号
        /// </summary>        
        public Guid ReciveStaffId
        {
            get
            {
                return _recivestaffid;
            }
            set
            {
                _recivestaffid = value;
            }
        }
        /// <summary>
        /// 计划类型/工作安排1,任务下达2,我的请示3
        /// </summary>        
        public int? PlanType
        {
            get
            {
                return _plantype;
            }
            set
            {
                _plantype = value;
            }
        }
        /// <summary>
        /// <para>计划性质/客户拜访1,业务跟单2,行政工作3,其他计划4</para>
        /// <para>请示类别/请假5,出差6,用车7,采购申请8,物品领用9,业务经费10,客户联谊11,其他12,开票申请13</para>
        /// </summary>        
        public int? PlanDataType
        {
            get
            {
                return _plandatatype;
            }
            set
            {
                _plandatatype = value;
            }
        }
        /// <summary>
        /// 主题
        /// </summary>        
        public string PlanTitle
        {
            get
            {
                return _plantitle;
            }
            set
            {
                _plantitle = value;
            }
        }
        /// <summary>
        /// 内容
        /// </summary>        
        public string PlanContent
        {
            get
            {
                return _plancontent;
            }
            set
            {
                _plancontent = value;
            }
        }
        /// <summary>
        /// 执行时间
        /// </summary>        
        public DateTime? PlanRunTime
        {
            get
            {
                return _planruntime;
            }
            set
            {
                _planruntime = value;
            }
        }
        /// <summary>
        /// 申请费用
        /// </summary>        
        public decimal? PlanMoney
        {
            get
            {
                return _planmoney;
            }
            set
            {
                _planmoney = value;
            }
        }
        /// <summary>
        /// 备注
        /// </summary>        
        public string PlanRemark
        {
            get
            {
                return _planremark;
            }
            set
            {
                _planremark = value;
            }
        }
        /// <summary>
        /// 计划添加时间
        /// </summary>        
        public DateTime? PlanStartTime
        {
            get
            {
                return _planstarttime;
            }
            set
            {
                _planstarttime = value;
            }
        }
        /// <summary>
        /// 承办人
        /// </summary>        
        public string PlanPeople
        {
            get
            {
                return _planpeople;
            }
            set
            {
                _planpeople = value;
            }
        }
        /// <summary>
        /// 对口单位
        /// </summary>        
        public string PlanComplany
        {
            get
            {
                return _plancomplany;
            }
            set
            {
                _plancomplany = value;
            }
        }
        /// <summary>
        /// 计划状态/未批复1,已批复2
        /// </summary>        
        public int? PlanStatus
        {
            get
            {
                return _planstatus;
            }
            set
            {
                _planstatus = value;
            }
        }
        /// <summary>
        /// 审核人编号
        /// </summary>        
        public Guid ApprovalStaffId
        {
            get
            {
                return _approvalstaffid;
            }
            set
            {
                _approvalstaffid = value;
            }
        }
        /// <summary>
        /// 审核状态/未审核0,批准1,不批准2,已结束3
        /// </summary>        
        public int? ApprovalStatus
        {
            get
            {
                return _approvalstatus;
            }
            set
            {
                _approvalstatus = value;
            }
        }
        /// <summary>
        /// 审核时间
        /// </summary>        
        public DateTime? ApprovalTime
        {
            get
            {
                return _approvaltime;
            }
            set
            {
                _approvaltime = value;
            }
        }
        /// <summary>
        /// 审核批复
        /// </summary>        
        public string ApprovalContent
        {
            get
            {
                return _approvalcontent;
            }
            set
            {
                _approvalcontent = value;
            }
        }
        /// <summary>
        /// 最后修改时间
        /// </summary>        
        public DateTime? LastUpdateTime
        {
            get
            {
                return _lastupdatetime;
            }
            set
            {
                _lastupdatetime = value;
            }
        }
        /// <summary>
        /// 操作人
        /// </summary>        
        public string Operator
        {
            get
            {
                return _operator;
            }
            set
            {
                _operator = value;
            }
        }
        /// <summary>
        /// 考评结果/未审核0,合格1,不合格2
        /// </summary>        
        public int? EvaluationStatus
        {
            get
            {
                return _evaluationstatus;
            }
            set
            {
                _evaluationstatus = value;
            }
        }
        /// <summary>
        /// 考评内容
        /// </summary>        
        public string EvaluationContent
        {
            get
            {
                return _evaluationcontent;
            }
            set
            {
                _evaluationcontent = value;
            }
        }
        /// <summary>
        /// 考评人
        /// </summary>        
        public Guid EvaluationStaffId
        {
            get
            {
                return _evaluationstaffid;
            }
            set
            {
                _evaluationstaffid = value;
            }
        }
        /// <summary>
        /// 考评时间
        /// </summary>        
        public DateTime? EvaluationTime
        {
            get
            {
                return _evaluationtime;
            }
            set
            {
                _evaluationtime = value;
            }
        }
        /// <summary>
        /// 奖励类型/无0,奖励1,惩罚2
        /// </summary>        
        public int? RewardType
        {
            get
            {
                return _rewardtype;
            }
            set
            {
                _rewardtype = value;
            }
        }
        /// <summary>
        /// 奖励原因
        /// </summary>        
        public string RewardContent
        {
            get
            {
                return _rewardcontent;
            }
            set
            {
                _rewardcontent = value;
            }
        }
        /// <summary>
        /// 奖励结果
        /// </summary>        
        public string RewardResult
        {
            get
            {
                return _rewardresult;
            }
            set
            {
                _rewardresult = value;
            }
        }
        /// <summary>
        /// 奖励金额
        /// </summary>        
        public decimal? RewardMoney
        {
            get
            {
                return _rewardmoney;
            }
            set
            {
                _rewardmoney = value;
            }
        }
 
        /// <summary>
        /// 任务下达人
        /// </summary>
        public string SentStaffName
        {
            get;
            set;
        }
        /// <summary>
        /// 承办人
        /// </summary>
        public string ReciveStaffName
        {
            get;
            set;
        }
        /// <summary>
        /// 审核人
        /// </summary>
        public string ApprovalStaffName
        {
            get;
            set;
        }
        /// <summary>
        /// 考评人
        /// </summary>
        public string EvaluationStaff
        {
            get;
            set;
        }
        /// <summary>
        /// 工作性质
        /// </summary>
        public string PlanDataTypeName
        {
            get;
            set;
        }
        /// <summary>
        /// 部门名称
        /// </summary>
        public string DepartName
        {
            get;
            set;
        }
        /// <summary>
        /// 承办人性别
        /// </summary>
        public string ReciveStaffSex
        {
            get;
            set;
        }
        /// <summary>
        /// 统计奖励
        /// </summary>
        public decimal? AllReward
        {
            get;
            set;
        }
        /// <summary>
        /// 统计罚款
        /// </summary>
        public decimal? AllFine
        {
            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.ConvertToInt(value) : Keyid;
                theValue = this.Keyid;
            }
            else if ("MemberId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 2)
            {
                this.MemberId = isChange ? MyConvert.ConvertToGuid(value) : MemberId;
                theValue = this.MemberId;
            }
            else if ("SentStaffId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 3)
            {
                this.SentStaffId = isChange ? MyConvert.ConvertToGuid(value) : SentStaffId;
                theValue = this.SentStaffId;
            }
            else if ("DepartId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 4)
            {
                this.DepartId = isChange ? MyConvert.ConvertToInt(value) : DepartId;
                theValue = this.DepartId;
            }
            else if ("ReciveStaffId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 5)
            {
                this.ReciveStaffId = isChange ? MyConvert.ConvertToGuid(value) : ReciveStaffId;
                theValue = this.ReciveStaffId;
            }
            else if ("PlanType".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 6)
            {
                this.PlanType = isChange ? MyConvert.ConvertToInt(value) : PlanType;
                theValue = this.PlanType;
            }
            else if ("PlanDataType".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 7)
            {
                this.PlanDataType = isChange ? MyConvert.ConvertToInt(value) : PlanDataType;
                theValue = this.PlanDataType;
            }
            else if ("PlanTitle".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 8)
            {
                this.PlanTitle = isChange ? MyConvert.ConvertToString(value) : PlanTitle;
                theValue = this.PlanTitle;
            }
            else if ("PlanContent".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 9)
            {
                this.PlanContent = isChange ? MyConvert.ConvertToString(value) : PlanContent;
                theValue = this.PlanContent;
            }
            else if ("PlanRunTime".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 10)
            {
                this.PlanRunTime = isChange ? MyConvert.ConvertToDateTime(value) : PlanRunTime;
                theValue = this.PlanRunTime;
            }
            else if ("PlanMoney".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 11)
            {
                this.PlanMoney = isChange ? MyConvert.ConvertToDecimal(value) : PlanMoney;
                theValue = this.PlanMoney;
            }
            else if ("PlanRemark".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 12)
            {
                this.PlanRemark = isChange ? MyConvert.ConvertToString(value) : PlanRemark;
                theValue = this.PlanRemark;
            }
            else if ("PlanStartTime".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 13)
            {
                this.PlanStartTime = isChange ? MyConvert.ConvertToDateTime(value) : PlanStartTime;
                theValue = this.PlanStartTime;
            }
            else if ("PlanPeople".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 14)
            {
                this.PlanPeople = isChange ? MyConvert.ConvertToString(value) : PlanPeople;
                theValue = this.PlanPeople;
            }
            else if ("PlanComplany".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 15)
            {
                this.PlanComplany = isChange ? MyConvert.ConvertToString(value) : PlanComplany;
                theValue = this.PlanComplany;
            }
            else if ("PlanStatus".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 16)
            {
                this.PlanStatus = isChange ? MyConvert.ConvertToInt(value) : PlanStatus;
                theValue = this.PlanStatus;
            }
            else if ("ApprovalStaffId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 17)
            {
                this.ApprovalStaffId = isChange ? MyConvert.ConvertToGuid(value) : ApprovalStaffId;
                theValue = this.ApprovalStaffId;
            }
            else if ("ApprovalStatus".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 18)
            {
                this.ApprovalStatus = isChange ? MyConvert.ConvertToInt(value) : ApprovalStatus;
                theValue = this.ApprovalStatus;
            }
            else if ("ApprovalTime".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 19)
            {
                this.ApprovalTime = isChange ? MyConvert.ConvertToDateTime(value) : ApprovalTime;
                theValue = this.ApprovalTime;
            }
            else if ("ApprovalContent".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 20)
            {
                this.ApprovalContent = isChange ? MyConvert.ConvertToString(value) : ApprovalContent;
                theValue = this.ApprovalContent;
            }
            else if ("LastUpdateTime".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 21)
            {
                this.LastUpdateTime = isChange ? MyConvert.ConvertToDateTime(value) : LastUpdateTime;
                theValue = this.LastUpdateTime;
            }
            else if ("Operator".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 22)
            {
                this.Operator = isChange ? MyConvert.ConvertToString(value) : Operator;
                theValue = this.Operator;
            }
            else if ("EvaluationStatus".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 23)
            {
                this.EvaluationStatus = isChange ? MyConvert.ConvertToInt(value) : EvaluationStatus;
                theValue = this.EvaluationStatus;
            }
            else if ("EvaluationContent".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 24)
            {
                this.EvaluationContent = isChange ? MyConvert.ConvertToString(value) : EvaluationContent;
                theValue = this.EvaluationContent;
            }
            else if ("EvaluationStaffId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 25)
            {
                this.EvaluationStaffId = isChange ? MyConvert.ConvertToGuid(value) : EvaluationStaffId;
                theValue = this.EvaluationStaffId;
            }
            else if ("EvaluationTime".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 26)
            {
                this.EvaluationTime = isChange ? MyConvert.ConvertToDateTime(value) : EvaluationTime;
                theValue = this.EvaluationTime;
            }
            else if ("RewardType".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 27)
            {
                this.RewardType = isChange ? MyConvert.ConvertToInt(value) : RewardType;
                theValue = this.RewardType;
            }
            else if ("RewardContent".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 28)
            {
                this.RewardContent = isChange ? MyConvert.ConvertToString(value) : RewardContent;
                theValue = this.RewardContent;
            }
            else if ("RewardResult".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 29)
            {
                this.RewardResult = isChange ? MyConvert.ConvertToString(value) : RewardResult;
                theValue = this.RewardResult;
            }
            else if ("RewardMoney".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 30)
            {
                this.RewardMoney = isChange ? MyConvert.ConvertToDecimal(value) : RewardMoney;
                theValue = this.RewardMoney;
            }
            else if ("SentStaffName".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 51)
            {
                this.SentStaffName = isChange ? MyConvert.ConvertToString(value) : SentStaffName;
                theValue = this.SentStaffName;
            }
            else if ("ReciveStaffName".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 52)
            {
                this.ReciveStaffName = isChange ? MyConvert.ConvertToString(value) : ReciveStaffName;
                theValue = this.ReciveStaffName;
            }
            else if ("ApprovalStaffName".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 53)
            {
                this.ApprovalStaffName = isChange ? MyConvert.ConvertToString(value) : ApprovalStaffName;
                theValue = this.ApprovalStaffName;
            }
            else if ("EvaluationStaff".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 54)
            {
                this.EvaluationStaff = isChange ? MyConvert.ConvertToString(value) : EvaluationStaff;
                theValue = this.EvaluationStaff;
            }
            else if ("PlanDataTypeName".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 55)
            {
                this.PlanDataTypeName = isChange ? MyConvert.ConvertToString(value) : PlanDataTypeName;
                theValue = this.PlanDataTypeName;
            }
            else if ("DepartName".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 56)
            {
                this.DepartName = isChange ? MyConvert.ConvertToString(value) : DepartName;
                theValue = this.DepartName;
            }
            else if ("ReciveStaffSex".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 57)
            {
                this.ReciveStaffSex = isChange ? MyConvert.ConvertToString(value) : ReciveStaffSex;
                theValue = this.ReciveStaffSex;
            }
            else if ("AllReward".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 58)
            {
                this.AllReward = isChange ? MyConvert.ConvertToDecimal(value) : AllReward;
                theValue = this.AllReward;
            }
            else if ("AllFine".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 59)
            {
                this.AllFine = isChange ? MyConvert.ConvertToDecimal(value) : AllFine;
                theValue = this.AllFine;
            }
            return theValue;
        }
        #endregion Visiter
    }
}