chr
2024-08-21 9ee7d3bd9c58a204b1efe38e6be61155bbb15c16
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
using PdmSwPlugin.PropertySetting.Panel.Attr;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
 
namespace PdmSwPlugin.PropertySetting.Panel.Model
{
    public class JgjModuleModel:JgjBasePanelModel
    {
        private string _materialCode;
        [PropertySettingAttr(Name = NameConstant.materialCode)]
        public string materialCode
        {
            get => _materialCode;
            set
            {
                RaiseAndSetIfChanged(ref _materialCode, value);
            }
        }
 
        private string _materialName;
        [PropertySettingAttr(Name = NameConstant.materialName)]
        public string materialName
        {
            get => _materialName;
            set
            {
                RaiseAndSetIfChanged(ref _materialName, value);
            }
        }
 
        private string _materialModel;
        [PropertySettingAttr(Name = NameConstant.materialModel)]
        public string materialModel
        {
            get => _materialModel;
            set
            {
                RaiseAndSetIfChanged(ref _materialModel, value);
            }
        }
 
        private string _materialType = "";
        [PropertySettingAttr(Name = NameConstant.materialType)]
        public string materialType
        {
            get => _materialType;
            set
            {
                RaiseAndSetIfChanged(ref _materialType, value);
            }
        }
 
        private string _weight = "";
        [PropertySettingAttr(Name = NameConstant.weight, NeedSave = false)]
        public string weight
        {
            get => _weight;
            set
            {
                RaiseAndSetIfChanged(ref _weight, value);
            }
        }
 
        private string _designer = "";
        [PropertySettingAttr(Name = NameConstant.designer)]
        public string designer
        {
            get => _designer;
            set
            {
                RaiseAndSetIfChanged(ref _designer, value);
            }
        }
 
        private string _version = "";
        [PropertySettingAttr(Name = NameConstant.version)]
        public string version
        {
            get => _version;
            set
            {
                RaiseAndSetIfChanged(ref _version, value);
            }
        }
 
        private string _remark = "";
        [PropertySettingAttr(Name = NameConstant.remark)]
        public string remark
        {
            get => _remark;
            set
            {
                RaiseAndSetIfChanged(ref _remark, value);
            }
        }
 
        private string _docType = "";
        [PropertySettingAttr(Name = NameConstant.docType)]
        public string docType
        {
            get => _docType;
            set
            {
                RaiseAndSetIfChanged(ref _docType, value);
            }
        }
 
        private string _versionChange = "0";
        [PropertySettingAttr(Name = NameConstant.versionChange)]
        public string versionChange
        {
            get => _versionChange;
            set
            {
                RaiseAndSetIfChanged(ref _versionChange, value);
                RaiseAndSetIfChanged(ref _versionChangeBind, value == "1", "versionChangeBind");
            }
        }
 
        private bool _versionChangeBind = false;
        [PropertySettingAttr(Name = NameConstant.versionChange, NeedSave = false, NeedInit = false)]
        public bool versionChangeBind
        {
            get => _versionChangeBind;
            set
            {
                RaiseAndSetIfChanged(ref _versionChangeBind, value);
                RaiseAndSetIfChanged(ref _versionChange, value ? "1" : "0", "versionChange");
            }
        }
    }
}