浏览代码

Enity-Klassen erstellt

Arne Diekmann 8 年之前
父节点
当前提交
91141c0f0f

+ 76 - 0
GreenTree.Nachtragsmanagement.Core/Domain/Appendix/Appendix.cs

@@ -0,0 +1,76 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace GreenTree.Nachtragsmanagement.Core.Domain.Appendix
+{
+    public class Appendix : BaseEntity
+    {
+        /// <summary>
+        /// Id of corresponding site
+        /// </summary>
+        public int SiteId { get; set; }
+
+        /// <summary>
+        /// Customized number for identification
+        /// </summary>
+        public int CustomNumber { get; set; }
+
+        /// <summary>
+        /// The lot
+        /// </summary>
+        public string Lot { get; set; }
+
+        /// <summary>
+        /// Monetary value of all corresponding deviations
+        /// </summary>
+        public decimal Value { get; set; }
+
+        /// <summary>
+        /// Percentage probalitity
+        /// </summary>
+        public decimal Probability { get; set; }
+
+        /// <summary>
+        /// Number of corresponding offer
+        /// </summary>
+        public int OfferingNumber { get; set; }
+
+        /// <summary>
+        /// Date when corresponding offer was created
+        /// </summary>
+        public DateTime OfferingDate { get; set; }
+
+        /// <summary>
+        /// Date of negotiation
+        /// </summary>
+        public DateTime NegotiationDate { get; set; }
+
+        /// <summary>
+        /// Value of negotiation
+        /// </summary>
+        public decimal NegotiationValue { get; set; }
+
+        /// <summary>
+        /// Determines if protocol exists
+        /// </summary>
+        public bool ProtocolExists { get; set; }
+
+        /// <summary>
+        /// Number of the corresponding order
+        /// </summary>
+        public int OrderNumber { get; set; }
+
+        /// <summary>
+        /// Date of the corresponding order
+        /// </summary>
+        public DateTime OrderDate { get; set; }
+
+        /// <summary>
+        /// Editable comment
+        /// </summary>
+        public string Comment { get; set; }
+    }
+}

+ 16 - 0
GreenTree.Nachtragsmanagement.Core/Domain/Appendix/Category.cs

@@ -0,0 +1,16 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace GreenTree.Nachtragsmanagement.Core.Domain.Appendix
+{
+    public class Category : BaseEntity
+    {
+        /// <summary>
+        /// Description
+        /// </summary>
+        public string Description { get; set; }
+    }
+}

+ 51 - 0
GreenTree.Nachtragsmanagement.Core/Domain/Deviation/Deviation.cs

@@ -0,0 +1,51 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace GreenTree.Nachtragsmanagement.Core.Domain.Deviation
+{
+    public class Deviation : BaseEntity
+    {
+        /// <summary>
+        /// Id of corresponding Appendix
+        /// </summary>
+        public int AppendixId { get; set; }
+
+        /// <summary>
+        /// Id of the current deviation status
+        /// </summary>
+        public int StatusId { get; set; }
+
+        /// <summary>
+        /// Id of the current deviation disturbance
+        /// </summary>
+        public int DisturbanceId { get; set; }
+
+        /// <summary>
+        /// Id of the current deviation kind
+        /// </summary>
+        public int KindId { get; set; }
+
+        /// <summary>
+        /// Customized number for identification
+        /// </summary>
+        public int CustomNumber { get; set; }
+
+        /// <summary>
+        /// Date when deviation were created
+        /// </summary>
+        public DateTime ReceiptDate { get; set; }
+
+        /// <summary>
+        /// Editable comment
+        /// </summary>
+        public string Comment { get; set; }
+
+        /// <summary>
+        /// Monetary value
+        /// </summary>
+        public decimal Value { get; set; }
+    }
+}

+ 16 - 0
GreenTree.Nachtragsmanagement.Core/Domain/Deviation/Disturbance.cs

@@ -0,0 +1,16 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace GreenTree.Nachtragsmanagement.Core.Domain.Deviation
+{
+    public class Disturbance : BaseEntity
+    {
+        /// <summary>
+        /// Description
+        /// </summary>
+        public string Description { get; set; }
+    }
+}

+ 16 - 0
GreenTree.Nachtragsmanagement.Core/Domain/Deviation/Kind.cs

@@ -0,0 +1,16 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace GreenTree.Nachtragsmanagement.Core.Domain.Deviation
+{
+    public class Kind : BaseEntity
+    {
+        /// <summary>
+        /// Description
+        /// </summary>
+        public string Description { get; set; }
+    }
+}

+ 16 - 0
GreenTree.Nachtragsmanagement.Core/Domain/Deviation/Status.cs

@@ -0,0 +1,16 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace GreenTree.Nachtragsmanagement.Core.Domain.Deviation
+{
+    public class Status : BaseEntity
+    {
+        /// <summary>
+        /// Description
+        /// </summary>
+        public string Description { get; set; }
+    }
+}

+ 26 - 0
GreenTree.Nachtragsmanagement.Core/Domain/Invoice/Invoice.cs

@@ -0,0 +1,26 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace GreenTree.Nachtragsmanagement.Core.Domain.Invoice
+{
+    public class Invoice : BaseEntity
+    {
+        /// <summary>
+        /// Customized number for identification
+        /// </summary>
+        public int CustomNumber { get; set; }
+
+        /// <summary>
+        /// Monetary value
+        /// </summary>
+        public decimal Value { get; set; }
+
+        /// <summary>
+        /// Invoice date
+        /// </summary>
+        public DateTime Date { get; set; }
+    }
+}

+ 16 - 0
GreenTree.Nachtragsmanagement.Core/Domain/User/Function.cs

@@ -0,0 +1,16 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace GreenTree.Nachtragsmanagement.Core.Domain.User
+{
+    public class Function : BaseEntity
+    {
+        /// <summary>
+        /// Description
+        /// </summary>
+        public string Description { get; set; }
+    }
+}

+ 16 - 0
GreenTree.Nachtragsmanagement.Core/Domain/User/Role.cs

@@ -0,0 +1,16 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace GreenTree.Nachtragsmanagement.Core.Domain.User
+{
+    public class Role : BaseEntity
+    {
+        /// <summary>
+        /// Description
+        /// </summary>
+        public string Description { get; set; }
+    }
+}

+ 10 - 6
GreenTree.Nachtragsmanagement.Core/GreenTree.Nachtragsmanagement.Core.csproj

@@ -42,14 +42,18 @@
   </ItemGroup>
   <ItemGroup>
     <Compile Include="BaseEntity.cs" />
+    <Compile Include="Domain\Appendix\Appendix.cs" />
+    <Compile Include="Domain\Appendix\Category.cs" />
+    <Compile Include="Domain\Deviation\Deviation.cs" />
+    <Compile Include="Domain\Deviation\Disturbance.cs" />
+    <Compile Include="Domain\Deviation\Kind.cs" />
+    <Compile Include="Domain\Deviation\Status.cs" />
+    <Compile Include="Domain\Invoice\Invoice.cs" />
     <Compile Include="Domain\Site\Site.cs" />
+    <Compile Include="Domain\User\Function.cs" />
+    <Compile Include="Domain\User\Role.cs" />
     <Compile Include="Properties\AssemblyInfo.cs" />
   </ItemGroup>
-  <ItemGroup>
-    <Folder Include="Domain\Appendix\" />
-    <Folder Include="Domain\Deviation\" />
-    <Folder Include="Domain\Invoice\" />
-    <Folder Include="Domain\User\" />
-  </ItemGroup>
+  <ItemGroup />
   <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
 </Project>