瀏覽代碼

Added note field to JobStyle

Kenric Nugteren 1 年之前
父節點
當前提交
13e4040673
共有 2 個文件被更改,包括 6 次插入2 次删除
  1. 4 0
      prs.classes/Entities/Job/JobStyle.cs
  2. 2 2
      prs.classes/Entities/Product/Attribute/ProductStyle.cs

+ 4 - 0
prs.classes/Entities/Job/JobStyle.cs

@@ -9,5 +9,9 @@ namespace Comal.Classes
 
         [EntityRelationship(DeleteAction.SetNull)]
         public ProductStyleLink Style { get; set; }
+
+        [EditorSequence(3)]
+        [TextBoxEditor]
+        public string Note { get; set; } = "";
     }
 }

+ 2 - 2
prs.classes/Entities/Product/Attribute/ProductStyle.cs

@@ -7,11 +7,11 @@ namespace Comal.Classes
     {
         [EditorSequence(1)]
         [UniqueCodeEditor(Visible = Visible.Default, Editable = Editable.Enabled)]
-        public string Code { get; set; }
+        public string Code { get; set; } = "";
 
         [EditorSequence(2)]
         [TextBoxEditor]
-        public string Description { get; set; }
+        public string Description { get; set; } = "";
         
         public ProductLink ManufacturingTreatmentProduct { get; set; }