chr
2024-08-12 e9d7a5ef4c17e4804fb988dd193ff7d1fa36d52b
PdmSwPlugin.PropertySetting/Panel/JgjModulePanel.xaml.cs
@@ -1,7 +1,7 @@
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.Reflection;
using System.IO;
using System.Runtime.CompilerServices;
using System.Windows.Controls;
using PdmSwPlugin.Common.CustomHandler;
@@ -119,7 +119,7 @@
        #region UI属性
        private string _materialCode;
        [PropertySettingAttr(Name = NameConstant.materialCode)]
        [PropertySettingAttr(Name = NameConstant.materialCode, defaultValue = "$PRP:\"SW-File Name\"")]
        public string materialCode
        {
            get => _materialCode;
@@ -221,13 +221,20 @@
        [PropertySettingAttr(Name = NameConstant.weight, NeedSave = false)]
        public string weight
        {
            get => _weight;
            get => CustomPropertyUtil.GetMass(doc);
            set
            {
                RaiseAndSetIfChanged(ref _weight, value);
                ccc(ref _weight, value);
            }
        }
        [PropertySettingAttr(Name = NameConstant.weight, NeedInit = false)]
        public string weightEval
        {
            get => doc == null ? null : $"\"SW-质量@{Path.GetFileName(doc.GetPathName())}\"";
            set { }
        }
        private string _designer = "";
        [PropertySettingAttr(Name = NameConstant.designer)]
        public string designer