Browse Source

2023-3-20 12:08:20

洪 王 2 years ago
parent
commit
c3bd50efc0

+ 42 - 0
OASystem/OASystem.Domain/Entities/System/Sys_Company.cs

@@ -0,0 +1,42 @@
+namespace OASystem.Domain.Entities.System
+{
+    /// <summary>
+    /// 公司表
+    /// </summary>
+    [SugarTable("Sys_Company")]
+    public class Sys_Company: EntityBase
+    {
+        /// <summary>
+        /// 公司Code
+        /// </summary>
+        [SugarColumn(IsNullable =false,Length =50)]
+        public string CompanyCode { get; set; }
+        /// <summary>
+        /// 公司名称
+        /// </summary>
+        [SugarColumn(IsNullable = false, Length = 50)]
+        public string CompanyName { get; set; }
+       
+        /// <summary>
+        /// 公司所在地
+        /// </summary>
+        [SugarColumn(IsNullable = false, Length = 200)]
+        public string Address { get; set; }
+        /// <summary>
+        /// 负责人Id
+        /// </summary>
+        [SugarColumn(IsNullable =false)]
+        public int ContactUserId { get; set; }
+        /// <summary>
+        /// 联系方式
+        /// </summary>
+        [SugarColumn(IsNullable =false,Length =30)]
+        public string Tel { get; set; }
+        /// <summary>
+        /// 父级公司Id
+        /// </summary>
+        [SugarColumn(IsNullable =false)]
+        public int ParentCompanyId { get; set; }
+    }
+
+}

+ 31 - 0
OASystem/OASystem.Domain/Entities/System/Sys_Department.cs

@@ -0,0 +1,31 @@
+
+namespace OASystem.Domain.Entities.System
+{
+    /// <summary>
+    /// 部门表
+    /// </summary>
+    [SugarTable("Sys_Department")]
+    public class Sys_Department: EntityBase
+    {
+        /// <summary>
+        /// 公司Id
+        /// </summary>
+        [SugarColumn(IsNullable =false)]
+        public int CompanyId { get; set; }
+        /// <summary>
+        /// 部门code
+        /// </summary>
+        [SugarColumn(IsNullable = false,Length =50)]
+        public string DepCode { get; set; }
+        /// <summary>
+        /// 部门名称
+        /// </summary>
+        [SugarColumn(IsNullable = false,Length =50)]
+        public string DepName { get; set; }
+        /// <summary>
+        /// 父级部门Id
+        /// </summary>
+        [SugarColumn(IsNullable = false)]
+        public int ParentDepId { get; set; }
+    }
+}

+ 28 - 0
OASystem/OASystem.Domain/Entities/System/Sys_JobPost.cs

@@ -0,0 +1,28 @@
+
+namespace OASystem.Domain.Entities.System
+{
+    /// <summary>
+    /// 岗位表
+    /// </summary>
+    [SugarTable("Sys_JobPost")]
+    public class Sys_JobPost:EntityBase
+    {
+        /// <summary>
+        /// 公司Id
+        /// </summary>
+        [SugarColumn(IsNullable =false)]
+        public int CompanyId { get; set; }
+        /// <summary>
+        /// 部门Id
+        /// </summary>
+        [SugarColumn(IsNullable = false)]
+        public int DepId { get; set; }
+        /// <summary>
+        /// 岗位名称
+        /// </summary>
+        [SugarColumn(IsNullable = false,Length =50)]
+        public string JobName { get; set; }
+       
+    }
+
+}

+ 26 - 0
OASystem/OASystem.Domain/Entities/System/Sys_PageFunctionPermission.cs

@@ -0,0 +1,26 @@
+
+namespace OASystem.Domain.Entities.System
+{
+    /// <summary>
+    /// 页面操作权限表
+    /// </summary>
+    [SugarTable("Sys_PageFunctionPermission")]
+    public class Sys_PageFunctionPermission:EntityBase
+    {
+        /// <summary>
+        /// 功能名称
+        /// </summary>
+        [SugarColumn(IsNullable =false,Length =80)]
+        public string FunctionName { get; set; }
+        /// <summary>
+        /// 功能权限Code
+        /// </summary>
+        [SugarColumn(IsNullable = false, Length = 80)]
+        public string FunctionCode { get; set; }
+        /// <summary>
+        /// 是否启用0否1是
+        /// </summary>
+        [SugarColumn(IsNullable = false)]
+        public string IsEnable { get; set; }
+    }
+}

+ 41 - 0
OASystem/OASystem.Domain/Entities/System/Sys_SetDataType.cs

@@ -0,0 +1,41 @@
+
+namespace OASystem.Domain.Entities.System
+{
+    /// <summary>
+    /// 数据类型表
+    /// </summary>
+    [SugarTable("Sys_SetDataType")]
+    public class Sys_SetDataType:EntityBase
+    {
+        /// <summary>
+        /// 类型名称
+        /// </summary>
+        [SugarColumn(Length=50,IsNullable = false)]
+        public string Name { get; set; }
+        /// <summary>
+        /// 是否启用
+        /// </summary>
+        [SugarColumn(IsNullable = false)]
+        public bool IsEnable { get; set; } = false;
+    }
+    /// <summary>
+    /// 数据表子类型
+    /// </summary>
+    [SugarTable("Sys_SetData")]
+    public class Sys_SetData : EntityBase
+    {
+        /// <summary>
+        /// 子类型名称
+        /// </summary>
+        [SugarColumn(IsNullable = false,Length =50)]
+        public string Name { get; set; }
+       
+        /// <summary>
+        /// Sys_SetDataType.id 数据类型表Id
+        /// </summary>
+        [SugarColumn(IsNullable = false)]
+        public int STid { get; set; }
+
+        
+    }
+}

+ 21 - 0
OASystem/OASystem.Domain/Entities/System/Sys_SystemMenuAndFunction.cs

@@ -0,0 +1,21 @@
+namespace OASystem.Domain.Entities.System
+{
+    /// <summary>
+    /// 页面与操作关联表
+    /// </summary>
+    [SugarTable("Sys_SystemMenuAndFunction")]
+    public class Sys_SystemMenuAndFunction:EntityBase
+    {
+        /// <summary>
+        /// 页面权限Id
+        /// </summary>
+        [SugarColumn(IsNullable =false)]
+        public int SmId { get; set; }
+        /// <summary>
+        /// 页面功能Id
+        /// </summary>
+        [SugarColumn(IsNullable = false)]
+        public int FId { get; set; }
+
+    }
+}

+ 31 - 0
OASystem/OASystem.Domain/Entities/System/Sys_SystemMenuPermission.cs

@@ -0,0 +1,31 @@
+
+namespace OASystem.Domain.Entities.System
+{
+    /// <summary>
+    /// 页面权限表
+    /// </summary>
+    [SugarTable("Sys_SystemMenuPermission")]
+    public class Sys_SystemMenuPermission:EntityBase
+    {
+        /// <summary>
+        /// 页面名称
+        /// </summary>
+        [SugarColumn(IsNullable =false,Length =80)]
+        public string Name { get; set; }
+        /// <summary>
+        /// 是否启用
+        /// </summary>
+        [SugarColumn(IsNullable = false)]
+        public int IsEnable { get; set; }
+        /// <summary>
+        /// 模块Id
+        /// </summary>
+        [SugarColumn(IsNullable = false)]
+        public int Mid { get; set; }
+        /// <summary>
+        /// 页面权限Code
+        /// </summary>
+        [SugarColumn(IsNullable = false, Length = 80)]
+        public string SystemMenuCode { get; set; }
+    }
+}