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"); } } } }