liaoxujun@qq.com
2024-02-26 a71cfd93b85389e6473afdca1b7d6411bb676d0d
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
using cy_scdz.Model.Set;
using Microsoft.EntityFrameworkCore;
using NPOI.HPSF;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
 
namespace cy_scdz.Model.Oder
{
    /// <summary>
    /// 订单详情
    /// </summary>
    public class OrderInfo:BasePoco
    {
        #region 项目一般情况
        /// <summary>
        /// 项目名称
        /// </summary>
        [Display(Name = "项目名称")]
        [Required]
        [Comment("项目名称")]
        public string Title { get; set; }
        /// <summary>
        /// 中标时间
        /// </summary>
        [Display(Name = "中标时间")]
        [Required]
        [Comment("中标时间")]
        public DateTime WinBidTime { get; set; }
 
        /// <summary>
        /// 初始供货时间
        /// </summary>
        [Display(Name = "初始供货")]
    
        [Comment("初始供货")]
        public DateTime InitialDeliveryTime { get; set; }
        /// <summary>
        /// 春秋季
        /// </summary>
        [Display(Name = "初始供货季节")]
        [Comment("初始供货季节")]
        public chunqiue Chunqiuji { get; set; }
        /// <summary>
        /// 初始供货时间
        /// 关联字典供货学期选择 父级为key===ghxqi 默认为2学期
        /// </summary>
        [Display(Name = "供货学期")]
 
        [Comment("供货学期")]
        public Dictionary Semester { get; set; }
        /// <summary>
        /// 供货学期
        /// 供货学期 父级为key===ghxqi 默认为2
        /// </summary>
        [Display(Name = "供货学期")]
        [Required]
        [Comment("供货学期")]
        public Guid SemesterId { get; set; }
 
        /// <summary>
        /// 中标价格       
        /// </summary>
        [Display(Name = "中标价格")]
        [Required]
        [Comment("中标价格")]
        public decimal BidMoney { get; set; } = 0;
 
 
        /// <summary>
        /// 供应商       对应父级key为zbgys
        /// </summary>
        [Display(Name = "中标供应商")]
        public Dictionary? Supplier { get; set; }
        /// <summary>
        /// 供应商       
        /// </summary>
        [Display(Name = "中标供应商")]
        [Comment("中标供应商")]
        public Guid? SupplierId { get; set; }
 
        /// <summary>
        /// 订单类别       对应父级key为ddnb
        /// </summary>
        [Display(Name = "订单类别")]
        public Dictionary? BidType { get; set; }
        /// <summary>
        /// 订单类别       
        /// </summary>
        [Display(Name = "订单类别")]
        [Comment("订单类别")]
        public Guid? BidTypeId { get; set; }
 
        /// <summary>
        /// 招标代理费       
        /// </summary>
        [Display(Name = "招标代理费")]
        [Comment("招标代理费")]
        public decimal TenderAgentFee { get; set; } = 0;
        #endregion
        #region 收款情况
        /// <summary>
        /// 收款情况
        /// </summary>
        [Display(Name = "收款情况")]   
        public List<OrderReceivables> OrderReceivablesStatus { get; set; }
        #endregion
        #region 印刷要求
        #region 作业本
 
        /// <summary>
        /// 作业本封面纸张       对应父级key为fmzz
        /// </summary>
        [Display(Name = "封面纸张")]
        public Dictionary? WorkbookCoverPaperType { get; set; }
        /// <summary>
        /// 作业本封面纸张       
        /// </summary>
        [Display(Name = "封面纸张")]
        [Comment("封面纸张")]
        public Guid? WorkbookCoverPaperTypeId { get; set; }
        /// <summary>
        /// 作业本内页纸张       对应父级key为nyzz
        /// </summary>
        [Display(Name = "内页纸张")]
        public Dictionary? WorkbookInnerPaperType { get; set; }
        /// <summary>
        /// 作业本内页纸张       
        /// </summary>
        [Display(Name = "内页纸张")]
        [Comment("内页纸张")]
        public Guid? WorkbookInnerPaperTypeId { get; set; }
 
 
        /// <summary>
        /// 作业本内页颜色       对应父级key为nyys
        /// </summary>
        [Display(Name = "内页纸张")]
        public Dictionary? WorkbookColorType { get; set; }
        /// <summary>
        /// 作业本内页颜色       
        /// </summary>
        [Display(Name = "内页颜色")]
        [Comment("内页颜色")]
        public Guid? WorkbookColorTypeId { get; set; }
 
 
 
        /// <summary>
        /// 作业本装订方式       对应父级key为zdfs
        /// </summary>
        [Display(Name = "装订方式")]
        public Dictionary? WorkbookBindingType { get; set; }
        /// <summary>
        /// 作业本装订方式       
        /// </summary>
        [Display(Name = "装订方式")]
        [Comment("装订方式")]
        public Guid? WorkbookBindingTypeId { get; set; }
     
 
        /// <summary>
        /// 内页页码       对应父级key为nyym
        /// </summary>
        [Display(Name = "内页页码")]
        public Dictionary? WorkbookInnerPageCode { get; set; }
        /// <summary>
        /// 内页页码       
        /// </summary>
        [Display(Name = "页数")]
        [Comment("内页页码")]
        public Guid? WorkbookInnerPageCodeId { get; set; }
        #endregion
 
        #region 图画本
 
        /// <summary>
        /// 图画本封面纸张       对应父级key为fmzz
        /// </summary>
        [Display(Name = "封面纸张")]
        public Dictionary? PictureBookCoverPaperType { get; set; }
        /// <summary>
        /// 图画本封面纸张       
        /// </summary>
        [Display(Name = "封面纸张")]
        [Comment("封面纸张")]
        public Guid? PictureBookCoverPaperTypeId { get; set; }
        /// <summary>
        /// 图画本内页纸张       对应父级key为nyzz
        /// </summary>
        [Display(Name = "内页纸张")]
        public Dictionary? PictureBookInnerPaperType { get; set; }
        /// <summary>
        /// 图画本内页纸张       
        /// </summary>
        [Display(Name = "内页纸张")]
        [Comment("内页纸张")]
        public Guid? PictureBookInnerPaperTypeId { get; set; }
 
 
        /// <summary>
        /// 图画本内页颜色       对应父级key为nyys
        /// </summary>
        [Display(Name = "内页纸张")]
        public Dictionary? PictureBookColorType { get; set; }
        /// <summary>
        /// 图画本内页颜色       
        /// </summary>
        [Display(Name = "内页颜色")]
        [Comment("内页颜色")]
        public Guid? PictureBookColorTypeId { get; set; }
 
 
 
        /// <summary>
        /// 图画本装订方式       对应父级key为zdfs
        /// </summary>
        [Display(Name = "装订方式")]
        public Dictionary? PictureBookBindingType { get; set; }
        /// <summary>
        /// 图画本装订方式       
        /// </summary>
        [Display(Name = "装订方式")]
        [Comment("装订方式")]
        public Guid? PictureBookBindingTypeId { get; set; }
        /// <summary>
        /// 图画本页码       对应父级key为nyym
        /// </summary>
        [Display(Name = "图画本页码")]
        public Dictionary? PictureBookInnerPageCode { get; set; }
        /// <summary>
        /// 图画本内页页码       
        /// </summary>
        [Display(Name = "页数")]
        [Comment("图画本内页页码")]
        public Guid? PictureBookInnerPageCodeId { get; set; }
        #endregion
 
 
        #region 大字本
 
        /// <summary>
        /// 大字本封面纸张       对应父级key为fmzz
        /// </summary>
        [Display(Name = "封面纸张")]
        public Dictionary? LargeCharacterBookCoverPaperType { get; set; }
        /// <summary>
        /// 大字本封面纸张       
        /// </summary>
        [Display(Name = "封面纸张")]
        [Comment("封面纸张")]
        public Guid? LargeCharacterBookCoverPaperTypeId { get; set; }
        /// <summary>
        /// 大字本内页纸张       对应父级key为nyzz
        /// </summary>
        [Display(Name = "内页纸张")]
        public Dictionary? LargeCharacterBookInnerPaperType { get; set; }
        /// <summary>
        /// 大字本内页纸张       
        /// </summary>
        [Display(Name = "内页纸张")]
        [Comment("内页纸张")]
        public Guid? LargeCharacterBookInnerPaperTypeId { get; set; }
 
 
        /// <summary>
        /// 大字本内页颜色       对应父级key为nyys
        /// </summary>
        [Display(Name = "内页纸张")]
        public Dictionary? LargeCharacterBookColorType { get; set; }
        /// <summary>
        /// 大字本内页颜色       
        /// </summary>
        [Display(Name = "内页颜色")]
        [Comment("内页颜色")]
        public Guid? LargeCharacterBookColorTypeId { get; set; }
 
 
 
        /// <summary>
        /// 大字本装订方式       对应父级key为zdfs
        /// </summary>
        [Display(Name = "装订方式")]
        public Dictionary? LargeCharacterBookBindingType { get; set; }
        /// <summary>
        /// 大字本装订方式       
        /// </summary>
        [Display(Name = "装订方式")]
        [Comment("装订方式")]
        public Guid? LargeCharacterBookBindingTypeId { get; set; }
        /// <summary>
        /// 大字本内页页码       对应父级key为nyym
        /// </summary>
        [Display(Name = "大字本内页页码")]
        public Dictionary? LargeCharacterBookInnerPageCode { get; set; }
        /// <summary>
        /// 大字本内页页码       
        /// </summary>
        [Display(Name = "页数")]
        [Comment("大字本内页页码")]
        public Guid? LargeCharacterBookInnerPageCodeId { get; set; }
        #endregion
        #endregion
 
        #region 订单数量
        /// <summary>
        /// 订单数量
        /// </summary>
        [Display(Name ="订单数量")]
       public List<OrderProduction> Productions { get; set; }
        #endregion
 
        #region 确认时间
        /// <summary>
        /// 确认列表
        /// </summary>
        [Display(Name ="确认")]
       public List<OderSure> Sures { get; set; }
        #endregion
        #region 垫资情况
        /// <summary>
        /// 垫资表
        /// </summary>
        [Display(Name = "垫资")]
        public List<AdvancePayment> AdvancePayments { get; set; }
        #endregion
    }
    /// <summary>
    /// 项目收款情况
    /// </summary>
    public class OrderReceivables: BasePoco
    {
   
        /// <summary>
        /// 项目ID
        /// </summary>
        [Display(Name = "项目ID")]
        [Required]
        [Comment("项目ID")]
        public Guid OderId { get; set; }
        /// <summary>
        /// 项目
        /// </summary>
        [Display(Name = "项目")]
        [Required]
        [Comment("项目")]
        public OrderInfo  Oder { get; set; }
        /// <summary>
        /// 回款时间
        /// </summary>
        [Display(Name = "回款时间")]
        [Required]
        [Comment("回款时间")]
        public DateTime Time { get; set; }
 
        /// <summary>
        /// 回款金额
        /// </summary>
        [Display(Name = "回款金额")]
        [Required]
        [Comment("回款金额")]
        public decimal ReceivablesMoney { get; set; }
 
 
        /// <summary>
        /// 回款名称 例如 2024 年第一学期
        /// </summary>
        [Display(Name = "回款名称")]
        [Required]
        [Comment("回款名称")]
        public string ReceivablesName { get; set; }
 
    }
 
    /// <summary>
    /// 订单确认表
    /// </summary>
    public class OderSure: BasePoco
    {
 
      
        /// <summary>
        /// 项目ID
        /// </summary>
        [Display(Name = "项目ID")]
        [Required]
        [Comment("项目ID")]
        public Guid OderId { get; set; }
        /// <summary>
        /// 项目
        /// </summary>
        [Display(Name = "项目")]      
        [Comment("项目")]
        public OrderInfo Oder { get; set; }
 
        /// <summary>
        /// 用户ID
        /// </summary>
        [Display(Name = "用户ID")]
        [Required]
        [Comment("用户ID")]
        public Guid UserID { get; set; }
        /// <summary>
        /// 用户
        /// </summary>
        [Display(Name = "用户")]  
        public FrameworkUser User { get; set; }
        /// <summary>
        /// 确认时间
        /// </summary>
        [Display(Name = "确认时间")]       
        [Comment("确认时间")]
        public DateTime SureTime { get; set; }
 
        /// <summary>
        /// 标注
        /// </summary>
        [Display(Name = "标注")]     
        [Comment("标注")]
        public string Mark { get; set; }
    }
 
    /// <summary>
    /// 垫资费用表
    /// </summary>
    public class AdvancePayment:BasePoco
    {
        /// <summary>
        /// 项目ID
        /// </summary>
        [Display(Name = "项目ID")]
        [Required]
        [Comment("项目ID")]
        public Guid OderId { get; set; }
        /// <summary>
        /// 项目
        /// </summary>
        [Display(Name = "项目")]      
        public OrderInfo Oder { get; set; }
 
        /// <summary>
        /// 用户ID
        /// </summary>
        [Display(Name = "用户ID")]
        [Required]
        [Comment("用户ID")]
        public Guid UserID { get; set; }
        /// <summary>
        /// 用户
        /// </summary>
        [Display(Name = "用户")]
        public FrameworkUser User { get; set; }
        /// <summary>
        /// 标注
        /// </summary>
        [Display(Name = "标注")]
        [Comment("标注")]
        public string Mark { get; set; }
        /// <summary>
        /// 金额
        /// </summary>
        [Display(Name = "金额")]
        [Comment("金额")]
        public decimal Money { get; set; }
    }
 
    /// <summary>
    /// 生产单
    /// </summary>
    public class OrderProduction: BasePoco
    {
 
        /// <summary>
        /// 项目ID
        /// </summary>
        [Display(Name = "项目ID")]
        [Required]
        [Comment("项目ID")]
        public Guid OderId { get; set; }
        /// <summary>
        /// 项目
        /// </summary>
        [Display(Name = "项目")]
        public OrderInfo Oder { get; set; }
 
        /// <summary>
        /// 16K作业本数量       
        /// </summary>
        [Display(Name = "16K作业本")]
        [Comment("16K作业本数量")]
        public int Workbook16KCount { get; set; } = 0;
        /// <summary>
        /// 16K作业本单价       
        /// </summary>
        [Display(Name = "中标单价")]
        [Comment("16K作业本单价")]
        public decimal Workbook16KPrice { get; set; } = 0;
        ///// <summary>
        ///// 生产厂商
        ///// 关联字典生产厂商选择 
        ///// </summary>
        //[Display(Name = "生产厂商")]
        //public Dictionary? Workbook16KManufacturer { get; set; }
        /// <summary>
        /// 生产厂商ID组合,用,分割
        /// 关联字典生产厂商选择 父级为key===ghxqi 默认为2
        /// </summary>
        [Display(Name = "生产厂商")]
        [Comment("生产厂商ID,用,分割")]
        public string Workbook16KManufacturerId { get; set; }
        /// <summary>
        /// 32K作业本数量       
        /// </summary>
        [Display(Name = "32K作业本")]
        [Comment("32K作业本数量")]
        public int Workbook32KCount { get; set; } = 0;
 
 
        /// <summary>
        /// 16K作业本单价       
        /// </summary>
        [Display(Name = "中标单价")]
        [Comment("16K作业本单价")]
        public decimal Workbook32KPrice { get; set; } = 0;
        ///// <summary>
        ///// 生产厂商
        ///// 关联字典生产厂商选择 父级为key===sccs 默认为2学期
        ///// </summary>
        //[Display(Name = "生产厂商")]
 
        //public Dictionary? Workbook32KManufacturer { get; set; }
        /// <summary>
        /// 生产厂商ID组合,用,分割
        /// 关联字典生产厂商选择 父级为key===ghxqi 默认为2
        /// </summary>
        [Display(Name = "生产厂商")]
        [Comment("生产厂商ID,用,分割")]
        public string Workbook32KManufacturerId { get; set; }
        /// <summary>
        /// 16K图画本数量       
        /// </summary>
        [Display(Name = "16K图画本")]
        [Comment("16K图画本数量")]
        public int PictureBook16KCount { get; set; } = 0;
 
 
        /// <summary>
        /// 16K作业本单价       
        /// </summary>
        [Display(Name = "中标单价")]
        [Comment("16K作业本单价")]
        public decimal PictureBook16KPrice { get; set; } = 0;
        ///// <summary>
        ///// 生产厂商
        ///// 关联字典生产厂商选择 父级为key===sccs 默认为2学期
        ///// </summary>
        //[Display(Name = "生产厂商")]
 
        //public Dictionary? PictureBook16KManufacturer { get; set; }
        /// <summary>
        /// 生产厂商ID组合,用,分割
        /// 关联字典生产厂商选择 父级为key===ghxqi 默认为2
        /// </summary>
        [Display(Name = "生产厂商")]
        [Comment("生产厂商ID,用,分割")]
        public string PictureBook16KManufacturerId { get; set; }
        /// <summary>
        /// 32K图画本数量       
        /// </summary>
        [Display(Name = "32K图画本")]
        [Comment("32K图画本数量")]
        public int PictureBook32KCount { get; set; } = 0;
 
 
        /// <summary>
        /// 32K图画本单价       
        /// </summary>
        [Display(Name = "中标单价")]
        [Comment("32K图画本单价")]
        public decimal PictureBook32KPrice { get; set; } = 0;
        ///// <summary>
        ///// 生产厂商
        ///// 关联字典生产厂商选择 父级为key===sccs 默认为2学期
        ///// </summary>
        //[Display(Name = "生产厂商")]
 
        //public Dictionary? PictureBook32KManufacturer { get; set; }
        /// <summary>
        /// 生产厂商ID组合,用,分割
        /// 关联字典生产厂商选择 父级为key===ghxqi 默认为2
        /// </summary>
        [Display(Name = "生产厂商")]
        [Comment("生产厂商ID,用,分割")]
        public string PictureBook32KManufacturerId { get; set; }
 
 
 
        /// <summary>
        /// A4图画本数量       
        /// </summary>
        [Display(Name = "A4图画本")]
        [Comment("A4图画本数量")]
        public int PictureBookA4Count { get; set; } = 0;
 
 
        /// <summary>
        /// 16K作业本单价       
        /// </summary>
        [Display(Name = "中标单价")]
        [Comment("16K作业本单价")]
        public decimal PictureBookA4KPrice { get; set; } = 0;
        ///// <summary>
        ///// 生产厂商
        ///// 关联字典生产厂商选择 父级为key===sccs 默认为2学期
        ///// </summary>
        //[Display(Name = "生产厂商")]
 
        //public Dictionary? PictureBookA4KManufacturer { get; set; }
        /// <summary>
        /// 生产厂商ID组合,用,分割
        /// 关联字典生产厂商选择 父级为key===yscs 默认为2
        /// </summary>
        [Display(Name = "生产厂商")]
        [Comment("生产厂商ID,用,分割")]
        public string PictureBookA4KManufacturerId { get; set; }
 
 
        /// <summary>
        /// 大字本数量       
        /// </summary>
        [Display(Name = "大字本")]
        [Comment("大字本数量")]
        public int LargeCharacterBookCount { get; set; } = 0;
 
 
        /// <summary>
        /// 大字本单价       
        /// </summary>
        [Display(Name = "中标单价")]
        [Comment("大字本单价")]
        public decimal LargeCharacterPrice { get; set; } = 0;
        ///// <summary>
        ///// 生产厂商
        ///// 关联字典生产厂商选择 父级为key===sccs 默认为2学期
        ///// </summary>
        //[Display(Name = "生产厂商")]
 
        //public Dictionary? LargeCharacterManufacturer { get; set; }
        /// <summary>
        /// 生产厂商ID组合,用,分割
        /// 关联字典生产厂商选择 父级为key===yscs 默认为2
        /// </summary>
        [Display(Name = "生产厂商")]
        [Comment("生产厂商ID,用,分割")]
        public string LargeCharacterManufacturerIds { get; set; }
 
        /// <summary>
        /// 标注
        /// </summary>
        [Display(Name = "标注")]
        [Comment("标注")]
        public string Mark { get; set; }
        /// <summary>
        /// 初始供货时间
        /// </summary>
        [Display(Name = "供货年份")]
        [Comment("供货年份")]
        public DateTime DeliveryTime { get; set; }
 
        /// <summary>
        /// 春秋季
        /// </summary>
        [Display(Name = "供货学期")]
        [Comment("供货学期")]
        public chunqiue Chunqiuji { get; set; }
        /// <summary>
        /// 是否完结
        /// </summary>
        [Display(Name = "是否完结")]
        [Comment("是否完结")]
        public bool IsOver { get; set; }=false;
 
    }
 
 
 
 
    /// <summary>
    /// 
    /// </summary>
    public enum chunqiue
        {
        [Display(Name ="春季")]
         chun=1,
        [Display(Name = "秋季")]
        qiu =6
    }
}