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
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using cy_scdz.Model.Oder;
 
 
namespace cy_scdz.ViewModel.Order.OrderProductionVMs
{
    public partial class OrderProductionTemplateVM : BaseTemplateVM
    {
        [Display(Name = "项目")]
        public ExcelPropety Oder_Excel = ExcelPropety.CreateProperty<OrderProduction>(x => x.OderId);
        [Display(Name = "16K作业本")]
        public ExcelPropety Workbook16KCount_Excel = ExcelPropety.CreateProperty<OrderProduction>(x => x.Workbook16KCount);
        [Display(Name = "16K作业本单价")]
        public ExcelPropety Workbook16KPrice_Excel = ExcelPropety.CreateProperty<OrderProduction>(x => x.Workbook16KPrice);
        [Display(Name = "生产厂商")]
        public ExcelPropety Workbook16KManufacturerId_Excel = ExcelPropety.CreateProperty<OrderProduction>(x => x.Workbook16KManufacturerId);
        [Display(Name = "32K作业本")]
        public ExcelPropety Workbook32KCount_Excel = ExcelPropety.CreateProperty<OrderProduction>(x => x.Workbook32KCount);
        [Display(Name = "16K作业本单价")]
        public ExcelPropety Workbook32KPrice_Excel = ExcelPropety.CreateProperty<OrderProduction>(x => x.Workbook32KPrice);
        [Display(Name = "生产厂商")]
        public ExcelPropety Workbook32KManufacturerId_Excel = ExcelPropety.CreateProperty<OrderProduction>(x => x.Workbook32KManufacturerId);
        [Display(Name = "16K图画本")]
        public ExcelPropety PictureBook16KCount_Excel = ExcelPropety.CreateProperty<OrderProduction>(x => x.PictureBook16KCount);
        [Display(Name = "16K作业本单价")]
        public ExcelPropety PictureBook16KPrice_Excel = ExcelPropety.CreateProperty<OrderProduction>(x => x.PictureBook16KPrice);
        [Display(Name = "生产厂商")]
        public ExcelPropety PictureBook16KManufacturerId_Excel = ExcelPropety.CreateProperty<OrderProduction>(x => x.PictureBook16KManufacturerId);
        [Display(Name = "32K图画本")]
        public ExcelPropety PictureBook32KCount_Excel = ExcelPropety.CreateProperty<OrderProduction>(x => x.PictureBook32KCount);
        [Display(Name = "32K图画本单价")]
        public ExcelPropety PictureBook32KPrice_Excel = ExcelPropety.CreateProperty<OrderProduction>(x => x.PictureBook32KPrice);
        [Display(Name = "生产厂商")]
        public ExcelPropety PictureBook32KManufacturerId_Excel = ExcelPropety.CreateProperty<OrderProduction>(x => x.PictureBook32KManufacturerId);
        [Display(Name = "A4图画本")]
        public ExcelPropety PictureBookA4Count_Excel = ExcelPropety.CreateProperty<OrderProduction>(x => x.PictureBookA4Count);
        [Display(Name = "16K作业本单价")]
        public ExcelPropety PictureBookA4KPrice_Excel = ExcelPropety.CreateProperty<OrderProduction>(x => x.PictureBookA4KPrice);
        [Display(Name = "生产厂商")]
        public ExcelPropety PictureBookA4KManufacturerId_Excel = ExcelPropety.CreateProperty<OrderProduction>(x => x.PictureBookA4KManufacturerId);
        [Display(Name = "大字本")]
        public ExcelPropety LargeCharacterBookCount_Excel = ExcelPropety.CreateProperty<OrderProduction>(x => x.LargeCharacterBookCount);
        [Display(Name = "大字本单价")]
        public ExcelPropety LargeCharacterPrice_Excel = ExcelPropety.CreateProperty<OrderProduction>(x => x.LargeCharacterPrice);
        [Display(Name = "生产厂商")]
        public ExcelPropety LargeCharacterManufacturerIds_Excel = ExcelPropety.CreateProperty<OrderProduction>(x => x.LargeCharacterManufacturerIds);
        [Display(Name = "标注")]
        public ExcelPropety Mark_Excel = ExcelPropety.CreateProperty<OrderProduction>(x => x.Mark);
        [Display(Name = "供货年份")]
        public ExcelPropety DeliveryTime_Excel = ExcelPropety.CreateProperty<OrderProduction>(x => x.DeliveryTime);
        [Display(Name = "供货学期")]
        public ExcelPropety Chunqiuji_Excel = ExcelPropety.CreateProperty<OrderProduction>(x => x.Chunqiuji);
        [Display(Name = "是否完结")]
        public ExcelPropety IsOver_Excel = ExcelPropety.CreateProperty<OrderProduction>(x => x.IsOver);
 
        protected override void InitVM()
        {
            Oder_Excel.DataType = ColumnDataType.ComboBox;
            Oder_Excel.ListItems = DC.Set<OrderInfo>().GetSelectListItems(Wtm, y => y.Title);
        }
 
    }
 
    public class OrderProductionImportVM : BaseImportVM<OrderProductionTemplateVM, OrderProduction>
    {
 
    }
 
}