添加项目文件。
This commit is contained in:
15
WaterCloud.Domain/Entity/Common/BaseField.cs
Normal file
15
WaterCloud.Domain/Entity/Common/BaseField.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
namespace WaterCloud.Domain
|
||||
{
|
||||
public class BaseField
|
||||
{
|
||||
public static string[] BaseFieldList = new string[]
|
||||
{
|
||||
"F_Id",
|
||||
"F_DeleteMark",
|
||||
"F_LastModifyTime",
|
||||
"F_LastModifyUserId",
|
||||
"F_DeleteTime",
|
||||
"F_DeleteUserId",
|
||||
};
|
||||
}
|
||||
}
|
||||
14
WaterCloud.Domain/Entity/Common/HomeInfoEntity.cs
Normal file
14
WaterCloud.Domain/Entity/Common/HomeInfoEntity.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
namespace WaterCloud.Domain
|
||||
{
|
||||
public class HomeInfoEntity
|
||||
{
|
||||
public string title { get; set; }
|
||||
public string href { get; set; }
|
||||
|
||||
public HomeInfoEntity()
|
||||
{
|
||||
title = "首页";
|
||||
href = "../Home/Default";
|
||||
}
|
||||
}
|
||||
}
|
||||
11
WaterCloud.Domain/Entity/Common/InitEntity.cs
Normal file
11
WaterCloud.Domain/Entity/Common/InitEntity.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace WaterCloud.Domain
|
||||
{
|
||||
public class InitEntity
|
||||
{
|
||||
public HomeInfoEntity homeInfo { get; set; }
|
||||
public LogoInfoEntity logoInfo { get; set; }
|
||||
public List<MenuInfoEntity> menuInfo { get; set; }
|
||||
}
|
||||
}
|
||||
16
WaterCloud.Domain/Entity/Common/LogoInfoEntity.cs
Normal file
16
WaterCloud.Domain/Entity/Common/LogoInfoEntity.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
namespace WaterCloud.Domain
|
||||
{
|
||||
public class LogoInfoEntity
|
||||
{
|
||||
public string title { get; set; }
|
||||
public string href { get; set; }
|
||||
public string image { get; set; }
|
||||
|
||||
public LogoInfoEntity()
|
||||
{
|
||||
title = "WaterCloud";
|
||||
href = "";
|
||||
image = "../icon/favicon.ico";
|
||||
}
|
||||
}
|
||||
}
|
||||
13
WaterCloud.Domain/Entity/Common/MenuInfoEntity.cs
Normal file
13
WaterCloud.Domain/Entity/Common/MenuInfoEntity.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace WaterCloud.Domain
|
||||
{
|
||||
public class MenuInfoEntity
|
||||
{
|
||||
public string title { get; set; }
|
||||
public string href { get; set; }
|
||||
public string icon { get; set; }
|
||||
public string target { get; set; }
|
||||
public List<MenuInfoEntity> child { get; set; }
|
||||
}
|
||||
}
|
||||
152
WaterCloud.Domain/Entity/ContentManage/ArticleCategoryEntity.cs
Normal file
152
WaterCloud.Domain/Entity/ContentManage/ArticleCategoryEntity.cs
Normal file
@@ -0,0 +1,152 @@
|
||||
using SqlSugar;
|
||||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace WaterCloud.Domain.ContentManage
|
||||
{
|
||||
/// <summary>
|
||||
/// 创 建:超级管理员
|
||||
/// 日 期:2020-06-09 19:42
|
||||
/// 描 述:新闻类别实体类
|
||||
/// </summary>
|
||||
[SugarTable("cms_articlecategory")]
|
||||
public class ArticleCategoryEntity : IEntity<ArticleCategoryEntity>, ICreationAudited, IModificationAudited, IDeleteAudited
|
||||
{
|
||||
/// <summary>
|
||||
/// 主键Id
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(ColumnName = "F_Id", IsPrimaryKey = true, ColumnDescription = "主键Id")]
|
||||
public string F_Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 类别名称
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[Required(ErrorMessage = "新闻类别名称不能为空")]
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_FullName", ColumnDataType = "nvarchar(100)", ColumnDescription = "类别名称", UniqueGroupNameList = new string[] { "cms_articlecategory" })]
|
||||
public string F_FullName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 父级Id
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[Required(ErrorMessage = "新闻类别父级不能为空")]
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_ParentId", ColumnDataType = "nvarchar(50)", ColumnDescription = "父级Id")]
|
||||
public string F_ParentId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 排序
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[Required(ErrorMessage = "排序不能为空")]
|
||||
[Range(0, 99999999, ErrorMessage = "排序大小必须介于1~99999999之间")]
|
||||
[SugarColumn(IsNullable = false, ColumnDescription = "排序")]
|
||||
public int? F_SortCode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 描述
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_Description", ColumnDataType = "longtext", ColumnDescription = "描述")]
|
||||
public string F_Description { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 链接地址
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_LinkUrl", ColumnDataType = "longtext", ColumnDescription = "链接地址")]
|
||||
public string F_LinkUrl { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 图片地址
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_ImgUrl", ColumnDataType = "longtext", ColumnDescription = "图片地址")]
|
||||
public string F_ImgUrl { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// SEO标题
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_SeoTitle", ColumnDataType = "longtext", ColumnDescription = "SEO标题")]
|
||||
public string F_SeoTitle { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// SEO关键字
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_SeoKeywords", ColumnDataType = "longtext", ColumnDescription = "SEO关键字")]
|
||||
public string F_SeoKeywords { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// SEO描述
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_SeoDescription", ColumnDataType = "longtext", ColumnDescription = "SEO描述")]
|
||||
public string F_SeoDescription { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否热门
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "是否热门")]
|
||||
public bool? F_IsHot { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否启用
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "是否热门")]
|
||||
public bool? F_EnabledMark { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 删除标志
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "删除标志")]
|
||||
public bool? F_DeleteMark { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 创建时间
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "创建时间")]
|
||||
public DateTime? F_CreatorTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 创建人Id
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_CreatorUserId", ColumnDataType = "nvarchar(50)", ColumnDescription = "创建人Id")]
|
||||
public string F_CreatorUserId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 修改时间
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "修改时间")]
|
||||
public DateTime? F_LastModifyTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 修改人Id
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_LastModifyUserId", ColumnDataType = "nvarchar(50)", ColumnDescription = "修改人Id")]
|
||||
public string F_LastModifyUserId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 删除时间
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "删除时间")]
|
||||
public DateTime? F_DeleteTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 删除人Id
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_DeleteUserId", ColumnDataType = "nvarchar(50)", ColumnDescription = "删除人Id")]
|
||||
public string F_DeleteUserId { get; set; }
|
||||
}
|
||||
}
|
||||
208
WaterCloud.Domain/Entity/ContentManage/ArticleNewsEntity.cs
Normal file
208
WaterCloud.Domain/Entity/ContentManage/ArticleNewsEntity.cs
Normal file
@@ -0,0 +1,208 @@
|
||||
using SqlSugar;
|
||||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace WaterCloud.Domain.ContentManage
|
||||
{
|
||||
/// <summary>
|
||||
/// 创 建:超级管理员
|
||||
/// 日 期:2020-06-09 19:42
|
||||
/// 描 述:新闻管理实体类
|
||||
/// </summary>
|
||||
[SugarTable("cms_articlenews")]
|
||||
public class ArticleNewsEntity : IEntity<ArticleNewsEntity>, ICreationAudited, IModificationAudited, IDeleteAudited
|
||||
{
|
||||
/// <summary>
|
||||
/// 文章主键Id
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(ColumnName = "F_Id", IsPrimaryKey = true, ColumnDescription = "主键Id")]
|
||||
public string F_Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 类别Id
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[Required(ErrorMessage = "新闻类别不能为空")]
|
||||
[SugarColumn(IsNullable = false, ColumnName = "F_CategoryId", ColumnDataType = "nvarchar(50)", ColumnDescription = "类别Id", UniqueGroupNameList = new string[] { "cms_articlenews" })]
|
||||
public string F_CategoryId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 类别名称(不映射任何列)
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsIgnore = true)]
|
||||
public string F_CategoryName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 标题
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[Required(ErrorMessage = "新闻标题不能为空")]
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_Title", ColumnDataType = "nvarchar(200)", ColumnDescription = "标题", UniqueGroupNameList = new string[] { "cms_articlenews" })]
|
||||
public string F_Title { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 链接地址
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_LinkUrl", ColumnDataType = "longtext", ColumnDescription = "链接地址")]
|
||||
public string F_LinkUrl { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 图片地址
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_ImgUrl", ColumnDataType = "longtext", ColumnDescription = "图片地址")]
|
||||
public string F_ImgUrl { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// SEO标题
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_SeoTitle", ColumnDataType = "longtext", ColumnDescription = "SEO标题")]
|
||||
public string F_SeoTitle { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// SEO关键字
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_SeoKeywords", ColumnDataType = "longtext", ColumnDescription = "SEO关键字")]
|
||||
public string F_SeoKeywords { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// SEO描述
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_SeoDescription", ColumnDataType = "longtext", ColumnDescription = "SEO描述")]
|
||||
public string F_SeoDescription { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 标签
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_Tags", ColumnDataType = "longtext", ColumnDescription = "标签")]
|
||||
public string F_Tags { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 摘要
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_Zhaiyao", ColumnDataType = "longtext", ColumnDescription = "摘要")]
|
||||
public string F_Zhaiyao { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 内容
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_Description", ColumnDataType = "longtext", ColumnDescription = "内容")]
|
||||
public string F_Description { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 排序
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[Required(ErrorMessage = "排序不能为空")]
|
||||
[Range(0, 99999999, ErrorMessage = "排序大小必须介于1~99999999之间")]
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "排序")]
|
||||
public int? F_SortCode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否置顶
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "是否置顶")]
|
||||
public bool? F_IsTop { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否推荐
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "是否推荐")]
|
||||
public bool? F_IsHot { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否热门
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "是否热门")]
|
||||
public bool? F_IsRed { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 点击次数
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "点击次数")]
|
||||
public int? F_Click { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 来源
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_Source", ColumnDataType = "nvarchar(50)", ColumnDescription = "来源")]
|
||||
public string F_Source { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 作者
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_Author", ColumnDataType = "nvarchar(50)", ColumnDescription = "作者")]
|
||||
public string F_Author { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否启用
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "是否启用")]
|
||||
public bool? F_EnabledMark { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 逻辑删除标志
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "逻辑删除标志")]
|
||||
public bool? F_DeleteMark { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 创建时间
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "创建时间")]
|
||||
public DateTime? F_CreatorTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 创建人
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_CreatorUserId", ColumnDataType = "nvarchar(50)", ColumnDescription = "创建人")]
|
||||
public string F_CreatorUserId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 最后修改时间
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "最后修改时间")]
|
||||
public DateTime? F_LastModifyTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 最后修改人
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_LastModifyUserId", ColumnDataType = "nvarchar(50)", ColumnDescription = "最后修改人")]
|
||||
public string F_LastModifyUserId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 删除时间
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "删除时间")]
|
||||
public DateTime? F_DeleteTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 删除人
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_DeleteUserId", ColumnDataType = "nvarchar(50)", ColumnDescription = "删除人")]
|
||||
public string F_DeleteUserId { get; set; }
|
||||
}
|
||||
}
|
||||
108
WaterCloud.Domain/Entity/FileManage/UploadfileEntity.cs
Normal file
108
WaterCloud.Domain/Entity/FileManage/UploadfileEntity.cs
Normal file
@@ -0,0 +1,108 @@
|
||||
using SqlSugar;
|
||||
using System;
|
||||
|
||||
namespace WaterCloud.Domain.FileManage
|
||||
{
|
||||
/// <summary>
|
||||
/// 创 建:超级管理员
|
||||
/// 日 期:2020-07-22 12:04
|
||||
/// 描 述:文件管理实体类
|
||||
/// </summary>
|
||||
[SugarTable("oms_uploadfile")]
|
||||
public class UploadfileEntity : IEntity<UploadfileEntity>, ICreationAudited
|
||||
{
|
||||
/// <summary>
|
||||
/// 主键Id
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(ColumnName = "F_Id", IsPrimaryKey = true, ColumnDescription = "主键Id")]
|
||||
public string F_Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 文件路径
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_FilePath", ColumnDataType = "nvarchar(50)", ColumnDescription = "文件路径")]
|
||||
public string F_FilePath { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 文件名称
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = false, ColumnName = "F_FileName", ColumnDataType = "nvarchar(200)", ColumnDescription = "文件名称", UniqueGroupNameList = new string[] { "oms_uploadfile" })]
|
||||
public string F_FileName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 文件类型(0文件、1图片)
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "文件类型")]
|
||||
public int? F_FileType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 文件大小
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "文件大小")]
|
||||
public int? F_FileSize { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 文件扩展名
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_FileExtension", ColumnDataType = "nvarchar(20)", ColumnDescription = "文件扩展名")]
|
||||
public string F_FileExtension { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 文件所属
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_FileBy", ColumnDataType = "nvarchar(50)", ColumnDescription = "文件所属")]
|
||||
public string F_FileBy { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 备注
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_Description", ColumnDataType = "nvarchar(200)", ColumnDescription = "备注")]
|
||||
public string F_Description { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 所属部门
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_OrganizeId", ColumnDataType = "nvarchar(50)", ColumnDescription = "所属部门")]
|
||||
public string F_OrganizeId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 有效
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "有效")]
|
||||
public bool? F_EnabledMark { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 创建时间
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "创建时间")]
|
||||
public DateTime? F_CreatorTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 创建用户主键
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_CreatorUserId", ColumnDataType = "nvarchar(50)", ColumnDescription = "创建用户主键")]
|
||||
public string F_CreatorUserId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 创建用户
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_CreatorUserName", ColumnDataType = "nvarchar(50)", ColumnDescription = "创建用户")]
|
||||
public string F_CreatorUserName { get; set; }
|
||||
|
||||
[SugarColumn(IsIgnore = true)]
|
||||
public string F_OrganizeName { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
namespace WaterCloud.Domain.FlowManage
|
||||
{
|
||||
public class VerificationExtend : NodeDesignateEntity
|
||||
{
|
||||
public string F_FlowInstanceId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 1:同意;2:不同意;3:驳回
|
||||
/// </summary>
|
||||
public string F_VerificationFinally { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 审核意见
|
||||
/// </summary>
|
||||
public string F_VerificationOpinion { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 驳回的步骤,即驳回到的节点ID
|
||||
/// </summary>
|
||||
public string NodeRejectStep { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 驳回类型。null:使用节点配置的驳回类型/0:前一步/1:第一步/2:指定节点,使用NodeRejectStep
|
||||
/// </summary>
|
||||
public string NodeRejectType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 新的表单数据
|
||||
/// 如果该节点有可以修改的表单项时,会提交表单数据信息
|
||||
/// </summary>
|
||||
public string F_FrmData { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,64 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <autogenerated>
|
||||
// This code was generated by a CodeSmith Template.
|
||||
//
|
||||
// DO NOT MODIFY contents of this file. Changes to this
|
||||
// file will be lost if the code is regenerated.
|
||||
// Author:Yubao Li
|
||||
// </autogenerated>
|
||||
//------------------------------------------------------------------------------
|
||||
using SqlSugar;
|
||||
using System;
|
||||
|
||||
namespace WaterCloud.Domain.FlowManage
|
||||
{
|
||||
/// <summary>
|
||||
/// 工作流实例操作记录
|
||||
/// </summary>
|
||||
[SugarTable("oms_flowinstanceinfo")]
|
||||
public class FlowInstanceOperationHistory
|
||||
{
|
||||
/// <summary>
|
||||
/// 主键Id
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(ColumnName = "F_Id", IsPrimaryKey = true, ColumnDescription = "主键Id")]
|
||||
public string F_Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 实例进程Id
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = false, ColumnName = "F_InstanceId", ColumnDataType = "nvarchar(50)", ColumnDescription = "实例进程Id")]
|
||||
public string F_InstanceId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 操作内容
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_Content", ColumnDataType = "nvarchar(200)", ColumnDescription = "操作内容")]
|
||||
public string F_Content { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 创建时间
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = false, ColumnDescription = "类别名称")]
|
||||
public DateTime? F_CreatorTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 创建用户主键
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_CreatorUserId", ColumnDataType = "nvarchar(50)", ColumnDescription = "创建用户主键")]
|
||||
public string F_CreatorUserId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 创建用户
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_CreatorUserName", ColumnDataType = "nvarchar(50)", ColumnDescription = "创建用户")]
|
||||
public string F_CreatorUserName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 表单数据
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_FrmData", ColumnDataType = "longtext", ColumnDescription = "表单数据")]
|
||||
public string F_FrmData { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,100 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <autogenerated>
|
||||
// This code was generated by a CodeSmith Template.
|
||||
//
|
||||
// DO NOT MODIFY contents of this file. Changes to this
|
||||
// file will be lost if the code is regenerated.
|
||||
// Author:Yubao Li
|
||||
// </autogenerated>
|
||||
//------------------------------------------------------------------------------
|
||||
using SqlSugar;
|
||||
using System;
|
||||
|
||||
namespace WaterCloud.Domain.FlowManage
|
||||
{
|
||||
/// <summary>
|
||||
/// 工作流实例流转历史记录
|
||||
/// </summary>
|
||||
[SugarTable("oms_flowinstancehis")]
|
||||
public class FlowInstanceTransitionHistory
|
||||
{
|
||||
/// <summary>
|
||||
/// 主键Id
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(ColumnName = "F_Id", IsPrimaryKey = true, ColumnDescription = "主键Id")]
|
||||
public string F_Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 实例Id
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = false, ColumnName = "F_InstanceId", ColumnDataType = "nvarchar(50)", ColumnDescription = "实例Id")]
|
||||
public string F_InstanceId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 开始节点Id
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_FromNodeId", ColumnDataType = "nvarchar(50)", ColumnDescription = "开始节点Id")]
|
||||
public string F_FromNodeId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 开始节点类型
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "开始节点类型")]
|
||||
public int? F_FromNodeType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 开始节点名称
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_FromNodeName", ColumnDataType = "nvarchar(200)", ColumnDescription = "开始节点名称")]
|
||||
public string F_FromNodeName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 结束节点Id
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_ToNodeId", ColumnDataType = "nvarchar(50)", ColumnDescription = "结束节点Id")]
|
||||
public string F_ToNodeId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 结束节点类型
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "结束节点类型")]
|
||||
public int? F_ToNodeType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 结束节点名称
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_ToNodeName", ColumnDataType = "nvarchar(200)", ColumnDescription = "结束节点名称")]
|
||||
public string F_ToNodeName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 转化状态
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = false, ColumnDescription = "转化状态")]
|
||||
public bool F_TransitionSate { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否结束
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = false, ColumnDescription = "是否结束")]
|
||||
public bool F_IsFinish { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 转化时间
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = false, ColumnDescription = "转化时间")]
|
||||
public DateTime F_CreatorTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 创建用户主键
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_CreatorUserId", ColumnDataType = "nvarchar(50)", ColumnDescription = "创建用户主键")]
|
||||
public string F_CreatorUserId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 创建用户
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_CreatorUserName", ColumnDataType = "nvarchar(50)", ColumnDescription = "创建用户")]
|
||||
public string F_CreatorUserName { get; set; }
|
||||
}
|
||||
}
|
||||
530
WaterCloud.Domain/Entity/FlowManage/FlowRuntime.cs
Normal file
530
WaterCloud.Domain/Entity/FlowManage/FlowRuntime.cs
Normal file
@@ -0,0 +1,530 @@
|
||||
// <summary>
|
||||
// 一个正在运行中的流程实例
|
||||
//</summary>
|
||||
// ***********************************************************************
|
||||
|
||||
using Newtonsoft.Json.Linq;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Net.Http;
|
||||
using System.Text;
|
||||
using WaterCloud.Code;
|
||||
|
||||
namespace WaterCloud.Domain.FlowManage
|
||||
{
|
||||
public class FlowRuntime
|
||||
{
|
||||
/// <summary>
|
||||
/// 构造函数
|
||||
/// </summary>
|
||||
public FlowRuntime(FlowinstanceEntity instance)
|
||||
{
|
||||
dynamic schemeContentJson = instance.F_SchemeContent.ToObject();//获取工作流模板内容的json对象;
|
||||
|
||||
InitLines(schemeContentJson);
|
||||
InitNodes(schemeContentJson);
|
||||
|
||||
currentNodeId = (string.IsNullOrEmpty(instance.F_ActivityId) ? startNodeId : instance.F_ActivityId);
|
||||
currentNodeType = GetNodeType(currentNodeId);
|
||||
FrmData = instance.F_FrmData;
|
||||
title = schemeContentJson.title;
|
||||
initNum = schemeContentJson.initNum ?? 0;
|
||||
previousId = GetPreviousNodeId(currentNodeId);
|
||||
flowInstanceId = instance.F_Id;
|
||||
|
||||
//会签开始节点和流程结束节点没有下一步
|
||||
if (currentNodeType == 0 || currentNodeType == 4)
|
||||
{
|
||||
nextNodeId = "-1";
|
||||
nextNodeType = -1;
|
||||
}
|
||||
else
|
||||
{
|
||||
nextNodeId = GetNextNodeId();//下一个节点
|
||||
nextNodeType = GetNodeType(nextNodeId);
|
||||
}
|
||||
}
|
||||
|
||||
#region 私有方法
|
||||
|
||||
/// <summary>
|
||||
/// 获取工作流节点的字典列表:key节点id
|
||||
/// </summary>
|
||||
/// <param name="schemeContentJson"></param>
|
||||
/// <returns></returns>
|
||||
private void InitNodes(dynamic schemeContentJson)
|
||||
{
|
||||
Nodes = new Dictionary<string, FlowNode>();
|
||||
foreach (JObject item in schemeContentJson.nodes)
|
||||
{
|
||||
var node = item.ToObject<FlowNode>();
|
||||
if (!Nodes.ContainsKey(node.id))
|
||||
{
|
||||
Nodes.Add(node.id, node);
|
||||
}
|
||||
if (node.type == FlowNode.START)
|
||||
{
|
||||
this.startNodeId = node.id;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void InitLines(dynamic schemeContentJson)
|
||||
{
|
||||
Lines = new List<FlowLine>();
|
||||
FromNodeLines = new Dictionary<string, List<FlowLine>>();
|
||||
ToNodeLines = new Dictionary<string, List<FlowLine>>();
|
||||
foreach (JObject item in schemeContentJson.lines)
|
||||
{
|
||||
var line = item.ToObject<FlowLine>();
|
||||
Lines.Add(line);
|
||||
|
||||
if (!FromNodeLines.ContainsKey(line.from))
|
||||
{
|
||||
List<FlowLine> d = new List<FlowLine> { line };
|
||||
FromNodeLines.Add(line.from, d);
|
||||
}
|
||||
else
|
||||
{
|
||||
FromNodeLines[line.from].Add(line);
|
||||
}
|
||||
|
||||
if (!ToNodeLines.ContainsKey(line.to))
|
||||
{
|
||||
List<FlowLine> d = new List<FlowLine> { line };
|
||||
ToNodeLines.Add(line.to, d);
|
||||
}
|
||||
else
|
||||
{
|
||||
ToNodeLines[line.to].Add(line);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取下一个节点
|
||||
/// </summary>
|
||||
private string GetNextNodeId(string nodeId = null)
|
||||
{
|
||||
var lines = nodeId == null ? FromNodeLines[currentNodeId] : FromNodeLines[nodeId];
|
||||
if (lines.Count == 0)
|
||||
{
|
||||
throw new Exception("无法寻找到下一个节点");
|
||||
}
|
||||
|
||||
if (string.IsNullOrEmpty(FrmData)) return lines[0].to;
|
||||
|
||||
FrmData = FrmData.ToLower();//统一转小写
|
||||
var frmDataJson = FrmData.ToJObject();//获取数据内容
|
||||
|
||||
foreach (var l in lines)
|
||||
{
|
||||
if (l.Compares == null)
|
||||
{
|
||||
l.Compares = new List<DataCompare>();
|
||||
}
|
||||
if (l.Compares.Count > 0 && l.Compare(frmDataJson))
|
||||
{
|
||||
return l.to;
|
||||
}
|
||||
}
|
||||
|
||||
return lines[0].to;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取上一个节点
|
||||
/// </summary>
|
||||
private string GetPreviousNodeId(string nodeId = null)
|
||||
{
|
||||
try
|
||||
{
|
||||
var lines = nodeId == null ? ToNodeLines[currentNodeId] : ToNodeLines[nodeId];
|
||||
if (lines.Count == 0)
|
||||
{
|
||||
return string.Empty;
|
||||
}
|
||||
|
||||
if (FrmData == "") return lines[0].from;
|
||||
|
||||
FrmData = FrmData.ToLower();//统一转小写
|
||||
var frmDataJson = FrmData.ToJObject();//获取数据内容
|
||||
|
||||
foreach (var l in lines)
|
||||
{
|
||||
if (l.Compares == null)
|
||||
{
|
||||
l.Compares = new List<DataCompare>();
|
||||
}
|
||||
if (l.Compares.Count > 0 && l.Compare(frmDataJson))
|
||||
{
|
||||
return l.from;
|
||||
}
|
||||
}
|
||||
|
||||
return lines[0].from;
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
return string.Empty;
|
||||
}
|
||||
}
|
||||
|
||||
#endregion 私有方法
|
||||
|
||||
#region 共有方法
|
||||
|
||||
//获取下一个节点
|
||||
public FlowNode GetNextNode(string nodeId = null)
|
||||
{
|
||||
return Nodes[GetNextNodeId(nodeId)];
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取实例接下来运行的状态
|
||||
/// </summary>
|
||||
/// <returns>-1无法运行,0会签开始,1会签结束,2一般节点,4流程运行结束</returns>
|
||||
public int GetNextNodeType()
|
||||
{
|
||||
if (nextNodeId != "-1")
|
||||
{
|
||||
return GetNodeType(nextNodeId);
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取节点类型 0会签开始,1会签结束,2一般节点,开始节点,4流程运行结束
|
||||
/// </summary>
|
||||
/// <param name="nodeId"></param>
|
||||
/// <returns></returns>
|
||||
public int GetNodeType(string nodeId)
|
||||
{
|
||||
switch (Nodes[nodeId].type)
|
||||
{
|
||||
//会签开始节点
|
||||
case FlowNode.FORK:
|
||||
return 0;
|
||||
//会签结束节点
|
||||
case FlowNode.JOIN:
|
||||
return 1;
|
||||
//结束节点
|
||||
case FlowNode.END:
|
||||
return 4;
|
||||
//开始节点
|
||||
case FlowNode.START:
|
||||
return 3;
|
||||
|
||||
default:
|
||||
return 2;
|
||||
}
|
||||
}
|
||||
|
||||
public void RemoveNode(string nodeId)
|
||||
{
|
||||
var node = Nodes[nodeId];
|
||||
if (node != null && node.setInfo != null)
|
||||
{
|
||||
node.setInfo.Taged = null;
|
||||
node.setInfo.UserName = null;
|
||||
node.setInfo.UserId = null;
|
||||
node.setInfo.Description = null;
|
||||
node.setInfo.TagedTime = null;
|
||||
}
|
||||
}
|
||||
|
||||
public void RemoveNodes()
|
||||
{
|
||||
foreach (var item in Nodes)
|
||||
{
|
||||
var node = item.Value;
|
||||
if (node != null && node.setInfo != null)
|
||||
{
|
||||
node.setInfo.Taged = null;
|
||||
node.setInfo.UserName = null;
|
||||
node.setInfo.UserId = null;
|
||||
node.setInfo.Description = null;
|
||||
node.setInfo.TagedTime = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 节点会签审核
|
||||
/// </summary>
|
||||
/// <param name="nodeId">会签时,currentNodeId是会签开始节点。这个表示当前正在处理的节点</param>
|
||||
/// <param name="tag"></param>
|
||||
/// <returns>-1不通过,1等待,其它通过</returns>
|
||||
public string NodeConfluence(string nodeId, Tag tag)
|
||||
{
|
||||
var forkNode = Nodes[currentNodeId]; //会签开始节点
|
||||
FlowNode nextNode = GetNextNode(nodeId); //获取当前处理的下一个节点
|
||||
|
||||
int forkNumber = FromNodeLines[currentNodeId].Count; //直接与会签节点连接的点,即会签分支数目
|
||||
string res = string.Empty; //记录会签的结果,默认正在会签
|
||||
if (forkNode.setInfo.NodeConfluenceType == "one") //有一个步骤通过即可
|
||||
{
|
||||
if (tag.Taged == (int)TagState.Ok)
|
||||
{
|
||||
if (nextNode.type == FlowNode.JOIN) //下一个节点是会签结束,则该线路结束
|
||||
{
|
||||
res = GetNextNodeId(nextNode.id);
|
||||
}
|
||||
}
|
||||
else if (tag.Taged == (int)TagState.No)
|
||||
{
|
||||
if (forkNode.setInfo.ConfluenceNo == null)
|
||||
{
|
||||
forkNode.setInfo.ConfluenceNo = 1;
|
||||
}
|
||||
else if (forkNode.setInfo.ConfluenceNo == (forkNumber - 1))
|
||||
{
|
||||
res = TagState.No.ToString("D");
|
||||
}
|
||||
else
|
||||
{
|
||||
bool isFirst = true; //是不是从会签开始到现在第一个
|
||||
var preNode = GetPreNode(nodeId);
|
||||
while (preNode.id != forkNode.id) //反向一直到会签开始节点
|
||||
{
|
||||
if (preNode.setInfo != null && preNode.setInfo.Taged == (int)TagState.No)
|
||||
{
|
||||
isFirst = false;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (isFirst)
|
||||
{
|
||||
forkNode.setInfo.ConfluenceNo++;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else //默认所有步骤通过
|
||||
{
|
||||
if (tag.Taged == (int)TagState.No) //只要有一个不同意,那么流程就结束
|
||||
{
|
||||
res = TagState.No.ToString("D");
|
||||
}
|
||||
else if (tag.Taged == (int)TagState.Ok)
|
||||
{
|
||||
if (nextNode.type == FlowNode.JOIN) //这种模式下只有坚持到【会签结束】节点之前才有意义,是否需要判定这条线所有的节点都通过,不然直接执行这个节点??
|
||||
{
|
||||
if (forkNode.setInfo.ConfluenceOk == null)
|
||||
{
|
||||
forkNode.setInfo.ConfluenceOk = 1;
|
||||
}
|
||||
else if (forkNode.setInfo.ConfluenceOk == (forkNumber - 1)) //会签成功
|
||||
{
|
||||
res = GetNextNodeId(nextNode.id);
|
||||
}
|
||||
else
|
||||
{
|
||||
forkNode.setInfo.ConfluenceOk++;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (res == TagState.No.ToString("D"))
|
||||
{
|
||||
tag.Taged = (int)TagState.No;
|
||||
MakeTagNode(nextNode.id, tag);
|
||||
}
|
||||
else if (!string.IsNullOrEmpty(res)) //会签结束,标记合流节点
|
||||
{
|
||||
tag.Taged = (int)TagState.Ok;
|
||||
MakeTagNode(nextNode.id, tag);
|
||||
nextNodeId = res;
|
||||
nextNodeType = GetNodeType(res);
|
||||
}
|
||||
else
|
||||
{
|
||||
nextNodeId = nextNode.id;
|
||||
nextNodeType = GetNodeType(nextNode.id);
|
||||
}
|
||||
return res;
|
||||
}
|
||||
|
||||
//获取上一个节点
|
||||
private FlowNode GetPreNode(string nodeId = null)
|
||||
{
|
||||
var lines = nodeId == null ? ToNodeLines[currentNodeId] : ToNodeLines[nodeId];
|
||||
if (lines.Count == 0)
|
||||
{
|
||||
throw new Exception("无法找到上一个点");
|
||||
}
|
||||
return Nodes[lines[0].from];
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 驳回
|
||||
/// </summary>
|
||||
/// <param name="rejectType">驳回类型。null:使用节点配置的驳回类型/0:前一步/1:第一步/2:指定节点,使用NodeRejectStep</param>
|
||||
/// <returns></returns>
|
||||
public string RejectNode(string rejectType)
|
||||
{
|
||||
dynamic node = Nodes[currentNodeId];
|
||||
if (node.setInfo != null && string.IsNullOrEmpty(rejectType))
|
||||
{
|
||||
rejectType = node.setInfo.NodeRejectType;
|
||||
}
|
||||
|
||||
if (rejectType == "0")
|
||||
{
|
||||
return previousId;
|
||||
}
|
||||
if (rejectType == "1")
|
||||
{
|
||||
return startNodeId;
|
||||
}
|
||||
return previousId;
|
||||
}
|
||||
|
||||
///<summary>
|
||||
/// 标记节点1通过,2不通过,3驳回
|
||||
/// </summary>
|
||||
/// <param name="nodeId"></param>
|
||||
public void MakeTagNode(string nodeId, Tag tag)
|
||||
{
|
||||
foreach (var item in Nodes)
|
||||
{
|
||||
if (item.Key == nodeId)
|
||||
{
|
||||
if (item.Value.setInfo == null)
|
||||
{
|
||||
item.Value.setInfo = new Setinfo();
|
||||
}
|
||||
item.Value.setInfo.Taged = tag.Taged;
|
||||
item.Value.setInfo.UserId = tag.UserId;
|
||||
item.Value.setInfo.UserName = tag.UserName;
|
||||
item.Value.setInfo.Description = tag.Description;
|
||||
item.Value.setInfo.TagedTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm");
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public object ToSchemeObj()
|
||||
{
|
||||
return new
|
||||
{
|
||||
title = this.title,
|
||||
initNum = this.initNum,
|
||||
lines = Lines,
|
||||
nodes = Nodes.Select(u => u.Value),
|
||||
areas = new string[0]
|
||||
};
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 通知三方系统,节点执行情况
|
||||
/// </summary>
|
||||
public void NotifyThirdParty(HttpClient client, Tag tag)
|
||||
{
|
||||
if (currentNode.setInfo == null || string.IsNullOrEmpty(currentNode.setInfo.ThirdPartyUrl))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
var postData = new
|
||||
{
|
||||
flowInstanceId,
|
||||
nodeName = currentNode.name,
|
||||
nodeId = currentNodeId,
|
||||
userId = tag.UserId,
|
||||
userName = tag.UserName,
|
||||
result = tag.Taged, //1:通过;2:不通过;3驳回
|
||||
description = tag.Description,
|
||||
execTime = tag.TagedTime,
|
||||
isFinish = currentNodeType == 4
|
||||
};
|
||||
HttpContent httpContent = new StringContent(postData.ToJson(), Encoding.UTF8);
|
||||
httpContent.Headers.ContentType = new System.Net.Http.Headers.MediaTypeHeaderValue("application/json");
|
||||
client.PostAsync(currentNode.setInfo.ThirdPartyUrl, httpContent);
|
||||
}
|
||||
|
||||
#endregion 共有方法
|
||||
|
||||
#region 属性
|
||||
|
||||
public string title { get; set; }
|
||||
|
||||
public int initNum { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 运行实例的Id
|
||||
/// </summary>
|
||||
public string flowInstanceId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 开始节点的ID
|
||||
/// </summary>
|
||||
public string startNodeId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 当前节点的ID
|
||||
/// </summary>
|
||||
public string currentNodeId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 当前节点类型 0会签开始,1会签结束,2一般节点,开始节点,4流程运行结束
|
||||
/// </summary>
|
||||
public int currentNodeType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 当前节点的对象
|
||||
/// </summary>
|
||||
public FlowNode currentNode => Nodes[currentNodeId];
|
||||
|
||||
/// <summary>
|
||||
/// 下一个节点
|
||||
/// </summary>
|
||||
public string nextNodeId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 下一个节点类型 -1无法运行,0会签开始,1会签结束,2一般节点,4流程运行结束
|
||||
/// </summary>
|
||||
/// <value>The type of the next node.</value>
|
||||
public int nextNodeType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 下一个节点对象
|
||||
/// </summary>
|
||||
public FlowNode nextNode => Nodes[nextNodeId];
|
||||
|
||||
/// <summary>
|
||||
/// 上一个节点
|
||||
/// </summary>
|
||||
public string previousId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 实例节点集合
|
||||
/// </summary>
|
||||
public Dictionary<string, FlowNode> Nodes { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 流程实例中所有的线段
|
||||
/// </summary>
|
||||
public List<FlowLine> Lines { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 从节点发出的线段集合
|
||||
/// </summary>
|
||||
public Dictionary<string, List<FlowLine>> FromNodeLines { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 到达节点的线段集合
|
||||
/// </summary>
|
||||
public Dictionary<string, List<FlowLine>> ToNodeLines { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 表单数据
|
||||
/// </summary>
|
||||
public string FrmData { get; set; }
|
||||
|
||||
#endregion 属性
|
||||
}
|
||||
}
|
||||
233
WaterCloud.Domain/Entity/FlowManage/FlowinstanceEntity.cs
Normal file
233
WaterCloud.Domain/Entity/FlowManage/FlowinstanceEntity.cs
Normal file
@@ -0,0 +1,233 @@
|
||||
using SqlSugar;
|
||||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace WaterCloud.Domain.FlowManage
|
||||
{
|
||||
/// <summary>
|
||||
/// 创 建:超级管理员
|
||||
/// 日 期:2020-07-14 09:18
|
||||
/// 描 述:我的流程实体类
|
||||
/// </summary>
|
||||
[SugarTable("oms_flowinstance")]
|
||||
public class FlowinstanceEntity : IEntity<FlowinstanceEntity>, ICreationAudited
|
||||
{
|
||||
/// <summary>
|
||||
/// 主键Id
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(ColumnName = "F_Id", IsPrimaryKey = true, ColumnDescription = "主键Id")]
|
||||
public string F_Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 流程实例模板Id
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = false, ColumnName = "F_InstanceSchemeId", ColumnDataType = "nvarchar(50)", ColumnDescription = "流程实例模板Id")]
|
||||
public string F_InstanceSchemeId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 实例编号
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[Required(ErrorMessage = "编号不能为空")]
|
||||
[SugarColumn(IsNullable = false, ColumnName = "F_Code", ColumnDataType = "nvarchar(200)", ColumnDescription = "实例编号", UniqueGroupNameList = new string[] { "oms_flowinstance" })]
|
||||
public string F_Code { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 自定义名称
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_CustomName", ColumnDataType = "nvarchar(200)", ColumnDescription = "自定义名称")]
|
||||
public string F_CustomName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 当前节点ID
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_ActivityId", ColumnDataType = "nvarchar(50)", ColumnDescription = "当前节点ID")]
|
||||
public string F_ActivityId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 当前节点类型(0会签节点)
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "当前节点类型")]
|
||||
public int? F_ActivityType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 当前节点名称
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_ActivityName", ColumnDataType = "nvarchar(200)", ColumnDescription = "当前节点名称")]
|
||||
public string F_ActivityName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 前一个ID
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_PreviousId", ColumnDataType = "nvarchar(50)", ColumnDescription = "前一个ID")]
|
||||
public string F_PreviousId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 流程模板内容
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_SchemeContent", ColumnDataType = "longtext", ColumnDescription = "流程模板内容")]
|
||||
public string F_SchemeContent { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 流程模板ID
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[Required(ErrorMessage = "模板不能为空")]
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_SchemeId", ColumnDataType = "nvarchar(50)", ColumnDescription = "流程模板ID")]
|
||||
public string F_SchemeId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 数据库名称
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_DbName", ColumnDataType = "nvarchar(50)", ColumnDescription = "数据库名称")]
|
||||
public string F_DbName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 表单数据
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_FrmData", ColumnDataType = "longtext", ColumnDescription = "表单数据")]
|
||||
public string F_FrmData { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 表单类型
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = false, ColumnDescription = "表单类型")]
|
||||
public int? F_FrmType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 表单中的字段
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_FrmContentData", ColumnDataType = "longtext", ColumnDescription = "表单中的字段")]
|
||||
public string F_FrmContentData { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 表单字段(冗余)
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_FrmContentParse", ColumnDataType = "longtext", ColumnDescription = "表单字段")]
|
||||
public string F_FrmContentParse { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 表单参数
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_FrmContent", ColumnDataType = "longtext", ColumnDescription = "表单参数")]
|
||||
public string F_FrmContent { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 表单ID
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_FrmId", ColumnDataType = "nvarchar(50)", ColumnDescription = "表单ID")]
|
||||
public string F_FrmId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 流程类型
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_SchemeType", ColumnDataType = "nvarchar(50)", ColumnDescription = "流程类型")]
|
||||
public string F_SchemeType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 等级
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = false, ColumnDescription = "等级")]
|
||||
public int F_FlowLevel { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 实例备注
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_Description", ColumnDataType = "nvarchar(200)", ColumnDescription = "实例备注")]
|
||||
public string F_Description { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否完成
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = false, ColumnDescription = "是否完成")]
|
||||
public int F_IsFinish { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 执行人
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_MakerList", ColumnDataType = "longtext", ColumnDescription = "执行人")]
|
||||
public string F_MakerList { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 所属部门
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_OrganizeId", ColumnDataType = "nvarchar(50)", ColumnDescription = "所属部门")]
|
||||
public string F_OrganizeId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 有效
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "有效")]
|
||||
public bool? F_EnabledMark { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 创建时间
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
//[SugarColumn(IsNullable = true,ColumnDescription = "创建时间")]
|
||||
public DateTime? F_CreatorTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 创建用户主键
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_CreatorUserId", ColumnDataType = "nvarchar(50)", ColumnDescription = "创建用户主键")]
|
||||
public string F_CreatorUserId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 创建用户
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_CreatorUserName", ColumnDataType = "nvarchar(50)", ColumnDescription = "创建用户")]
|
||||
public string F_CreatorUserName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 如果下个执行节点是运行时指定执行者。需要传指定的类型
|
||||
/// <para>取值为RUNTIME_SPECIAL_ROLE、RUNTIME_SPECIAL_USER</para>
|
||||
/// </summary>
|
||||
[SugarColumn(IsIgnore = true)]
|
||||
public string NextNodeDesignateType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 如果下个执行节点是运行时指定执行者。该值表示具体的执行者
|
||||
/// <para>如果NodeDesignateType为RUNTIME_SPECIAL_ROLE,则该值为指定的角色</para>
|
||||
/// <para>如果NodeDesignateType为RUNTIME_SPECIAL_USER,则该值为指定的用户</para>
|
||||
/// </summary>
|
||||
[SugarColumn(IsIgnore = true)]
|
||||
public string[] NextNodeDesignates { get; set; }
|
||||
|
||||
[SugarColumn(IsIgnore = true)]
|
||||
public string NextMakerName { get; set; }
|
||||
|
||||
[SugarColumn(IsIgnore = true)]
|
||||
public string CurrentMakerName { get; set; }
|
||||
|
||||
[SugarColumn(IsIgnore = true)]
|
||||
public string CurrentNodeDesignateType { get; set; }
|
||||
|
||||
[SugarColumn(IsIgnore = true)]
|
||||
public string[] CanWriteFormItems { get; set; }
|
||||
}
|
||||
}
|
||||
49
WaterCloud.Domain/Entity/FlowManage/FormTestEntity.cs
Normal file
49
WaterCloud.Domain/Entity/FlowManage/FormTestEntity.cs
Normal file
@@ -0,0 +1,49 @@
|
||||
/*******************************************************************************
|
||||
* Copyright © 2020 WaterCloud.Framework 版权所有
|
||||
* Author: WaterCloud
|
||||
* Description: WaterCloud快速开发平台
|
||||
* Website:
|
||||
*********************************************************************************/
|
||||
|
||||
using SqlSugar;
|
||||
using System;
|
||||
|
||||
namespace WaterCloud.Domain.FlowManage
|
||||
{
|
||||
[SugarTable("oms_formtest")]
|
||||
public class FormTestEntity : IEntity<FormTestEntity>, ICreationAudited
|
||||
{
|
||||
[SugarColumn(ColumnName = "F_Id", IsPrimaryKey = true, ColumnDescription = "主键Id")]
|
||||
public string F_Id { get; set; }
|
||||
|
||||
[SugarColumn(IsNullable = false, ColumnName = "F_UserName", ColumnDataType = "nvarchar(10)")]
|
||||
public string F_UserName { get; set; }
|
||||
|
||||
[SugarColumn(IsNullable = false)]
|
||||
public string F_RequestType { get; set; }
|
||||
|
||||
[SugarColumn(IsNullable = true)]
|
||||
public DateTime? F_StartTime { get; set; }
|
||||
|
||||
[SugarColumn(IsNullable = true)]
|
||||
public DateTime? F_EndTime { get; set; }
|
||||
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_RequestComment", ColumnDataType = "longtext")]
|
||||
public string F_RequestComment { get; set; }
|
||||
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_Attachment", ColumnDataType = "longtext")]
|
||||
public string F_Attachment { get; set; }
|
||||
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_FlowInstanceId", ColumnDataType = "nvarchar(50)")]
|
||||
public string F_FlowInstanceId { get; set; }
|
||||
|
||||
[SugarColumn(IsNullable = true)]
|
||||
public DateTime? F_CreatorTime { get; set; }
|
||||
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_CreatorUserId", ColumnDataType = "nvarchar(50)")]
|
||||
public string F_CreatorUserId { get; set; }
|
||||
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_CreatorUserName", ColumnDataType = "nvarchar(50)")]
|
||||
public string F_CreatorUserName { get; set; }
|
||||
}
|
||||
}
|
||||
18
WaterCloud.Domain/Entity/FlowManage/NodeDesignateEntity.cs
Normal file
18
WaterCloud.Domain/Entity/FlowManage/NodeDesignateEntity.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
namespace WaterCloud.Domain.FlowManage
|
||||
{
|
||||
public class NodeDesignateEntity
|
||||
{
|
||||
/// <summary>
|
||||
/// 如果下个执行节点是运行时指定执行者。需要传指定的类型
|
||||
/// <para>取值为RUNTIME_SPECIAL_ROLE、RUNTIME_SPECIAL_USER</para>
|
||||
/// </summary>
|
||||
public string NodeDesignateType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 如果下个执行节点是运行时指定执行者。该值表示具体的执行者
|
||||
/// <para>如果NodeDesignateType为RUNTIME_SPECIAL_ROLE,则该值为指定的角色</para>
|
||||
/// <para>如果NodeDesignateType为RUNTIME_SPECIAL_USER,则该值为指定的用户</para>
|
||||
/// </summary>
|
||||
public string[] NodeDesignates { get; set; }
|
||||
}
|
||||
}
|
||||
18
WaterCloud.Domain/Entity/IBaseEntity/ICreationAudited.cs
Normal file
18
WaterCloud.Domain/Entity/IBaseEntity/ICreationAudited.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
/*******************************************************************************
|
||||
* Copyright © 2020 WaterCloud.Framework 版权所有
|
||||
* Author: WaterCloud
|
||||
* Description: WaterCloud快速开发平台
|
||||
* Website:
|
||||
*********************************************************************************/
|
||||
|
||||
using System;
|
||||
|
||||
namespace WaterCloud.Domain
|
||||
{
|
||||
public interface ICreationAudited
|
||||
{
|
||||
string F_Id { get; set; }
|
||||
string F_CreatorUserId { get; set; }
|
||||
DateTime? F_CreatorTime { get; set; }
|
||||
}
|
||||
}
|
||||
29
WaterCloud.Domain/Entity/IBaseEntity/IDeleteAudited.cs
Normal file
29
WaterCloud.Domain/Entity/IBaseEntity/IDeleteAudited.cs
Normal file
@@ -0,0 +1,29 @@
|
||||
/*******************************************************************************
|
||||
* Copyright © 2020 WaterCloud.Framework 版权所有
|
||||
* Author: WaterCloud
|
||||
* Description: WaterCloud快速开发平台
|
||||
* Website:
|
||||
*********************************************************************************/
|
||||
|
||||
using System;
|
||||
|
||||
namespace WaterCloud.Domain
|
||||
{
|
||||
public interface IDeleteAudited
|
||||
{
|
||||
/// <summary>
|
||||
/// 逻辑删除标记
|
||||
/// </summary>
|
||||
bool? F_DeleteMark { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 删除实体的用户
|
||||
/// </summary>
|
||||
string F_DeleteUserId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 删除实体时间
|
||||
/// </summary>
|
||||
DateTime? F_DeleteTime { get; set; }
|
||||
}
|
||||
}
|
||||
51
WaterCloud.Domain/Entity/IBaseEntity/IEntity.cs
Normal file
51
WaterCloud.Domain/Entity/IBaseEntity/IEntity.cs
Normal file
@@ -0,0 +1,51 @@
|
||||
/*******************************************************************************
|
||||
* Copyright © 2020 WaterCloud.Framework 版权所有
|
||||
* Author: WaterCloud
|
||||
* Description: WaterCloud快速开发平台
|
||||
* Website:
|
||||
*********************************************************************************/
|
||||
|
||||
using System;
|
||||
using WaterCloud.Code;
|
||||
|
||||
namespace WaterCloud.Domain
|
||||
{
|
||||
public class IEntity<TEntity>
|
||||
{
|
||||
public void Create()
|
||||
{
|
||||
var entity = this as ICreationAudited;
|
||||
entity.F_Id = Utils.GuId();
|
||||
var LoginInfo = OperatorProvider.Provider.GetCurrent();
|
||||
if (LoginInfo != null)
|
||||
{
|
||||
entity.F_CreatorUserId = LoginInfo.UserId;
|
||||
}
|
||||
entity.F_CreatorTime = DateTime.Now;
|
||||
}
|
||||
|
||||
public void Modify(string keyValue)
|
||||
{
|
||||
var entity = this as IModificationAudited;
|
||||
entity.F_Id = keyValue;
|
||||
var LoginInfo = OperatorProvider.Provider.GetCurrent();
|
||||
if (LoginInfo != null)
|
||||
{
|
||||
entity.F_LastModifyUserId = LoginInfo.UserId;
|
||||
}
|
||||
entity.F_LastModifyTime = DateTime.Now;
|
||||
}
|
||||
|
||||
public void Remove()
|
||||
{
|
||||
var entity = this as IDeleteAudited;
|
||||
var LoginInfo = OperatorProvider.Provider.GetCurrent();
|
||||
if (LoginInfo != null)
|
||||
{
|
||||
entity.F_DeleteUserId = LoginInfo.UserId;
|
||||
}
|
||||
entity.F_DeleteTime = DateTime.Now;
|
||||
entity.F_DeleteMark = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
18
WaterCloud.Domain/Entity/IBaseEntity/IModificationAudited.cs
Normal file
18
WaterCloud.Domain/Entity/IBaseEntity/IModificationAudited.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
/*******************************************************************************
|
||||
* Copyright © 2020 WaterCloud.Framework 版权所有
|
||||
* Author: WaterCloud
|
||||
* Description: WaterCloud快速开发平台
|
||||
* Website:
|
||||
*********************************************************************************/
|
||||
|
||||
using System;
|
||||
|
||||
namespace WaterCloud.Domain
|
||||
{
|
||||
public interface IModificationAudited
|
||||
{
|
||||
string F_Id { get; set; }
|
||||
string F_LastModifyUserId { get; set; }
|
||||
DateTime? F_LastModifyTime { get; set; }
|
||||
}
|
||||
}
|
||||
111
WaterCloud.Domain/Entity/InfoManage/MessageEntity.cs
Normal file
111
WaterCloud.Domain/Entity/InfoManage/MessageEntity.cs
Normal file
@@ -0,0 +1,111 @@
|
||||
using SqlSugar;
|
||||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace WaterCloud.Domain.InfoManage
|
||||
{
|
||||
/// <summary>
|
||||
/// 创 建:超级管理员
|
||||
/// 日 期:2020-07-29 16:41
|
||||
/// 描 述:通知管理实体类
|
||||
/// </summary>
|
||||
[SugarTable("oms_message")]
|
||||
public class MessageEntity : IEntity<MessageEntity>, ICreationAudited
|
||||
{
|
||||
/// <summary>
|
||||
/// 主键Id
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(ColumnName = "F_Id", IsPrimaryKey = true, ColumnDescription = "主键Id")]
|
||||
public string F_Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 信息类型(通知、私信、处理)
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[Required(ErrorMessage = "信息类型不能为空")]
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "信息类型")]
|
||||
public int? F_MessageType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 收件人主键
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_ToUserId", ColumnDataType = "longtext", ColumnDescription = "收件人主键")]
|
||||
public string F_ToUserId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 收件人
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_ToUserName", ColumnDataType = "longtext", ColumnDescription = "收件人")]
|
||||
public string F_ToUserName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 内容
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[Required(ErrorMessage = "内容不能为空")]
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_MessageInfo", ColumnDataType = "longtext", ColumnDescription = "内容")]
|
||||
public string F_MessageInfo { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 有效
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "有效")]
|
||||
public bool? F_EnabledMark { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 创建时间
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "创建时间")]
|
||||
public DateTime? F_CreatorTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 创建用户主键
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_CreatorUserId", ColumnDataType = "nvarchar(50)", ColumnDescription = "创建用户主键")]
|
||||
public string F_CreatorUserId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 创建用户
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_CreatorUserName", ColumnDataType = "nvarchar(50)", ColumnDescription = "创建用户")]
|
||||
public string F_CreatorUserName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 跳转类型
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_HrefTarget", ColumnDataType = "nvarchar(50)", ColumnDescription = "跳转类型")]
|
||||
public string F_HrefTarget { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 跳转地址
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_Href", ColumnDataType = "nvarchar(100)", ColumnDescription = "跳转地址")]
|
||||
public string F_Href { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 待办关联键
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_KeyValue", ColumnDataType = "nvarchar(50)", ColumnDescription = "待办关联键")]
|
||||
public string F_KeyValue { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 点击已读
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "点击已读")]
|
||||
public bool? F_ClickRead { get; set; }
|
||||
|
||||
[SugarColumn(IsIgnore = true)]
|
||||
public string companyId { get; set; }
|
||||
}
|
||||
}
|
||||
49
WaterCloud.Domain/Entity/InfoManage/MessageHistoryEntity.cs
Normal file
49
WaterCloud.Domain/Entity/InfoManage/MessageHistoryEntity.cs
Normal file
@@ -0,0 +1,49 @@
|
||||
using SqlSugar;
|
||||
using System;
|
||||
|
||||
namespace WaterCloud.Domain.InfoManage
|
||||
{
|
||||
/// <summary>
|
||||
/// 创 建:超级管理员
|
||||
/// 日 期:2020-07-29 16:44
|
||||
/// 描 述:信息历史实体类
|
||||
/// </summary>
|
||||
[SugarTable("oms_messagehis")]
|
||||
public class MessageHistoryEntity : IEntity<MessageHistoryEntity>, ICreationAudited
|
||||
{
|
||||
/// <summary>
|
||||
/// 主键Id
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(ColumnName = "F_Id", IsPrimaryKey = true, ColumnDescription = "主键Id")]
|
||||
public string F_Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 信息Id
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_MessageId", ColumnDataType = "nvarchar(50)", ColumnDescription = "信息Id")]
|
||||
public string F_MessageId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 创建时间
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "创建时间")]
|
||||
public DateTime? F_CreatorTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 创建用户主键
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_CreatorUserId", ColumnDataType = "nvarchar(50)", ColumnDescription = "创建用户主键")]
|
||||
public string F_CreatorUserId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 创建用户
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_CreatorUserName", ColumnDataType = "nvarchar(50)", ColumnDescription = "创建用户")]
|
||||
public string F_CreatorUserName { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,98 @@
|
||||
using SqlSugar;
|
||||
using System;
|
||||
|
||||
namespace WaterCloud.Domain.OrderManagement
|
||||
{
|
||||
/// <summary>
|
||||
/// 创 建:超级管理员
|
||||
/// 日 期:2021-07-12 20:40
|
||||
/// 描 述:订单明细实体类
|
||||
/// </summary>
|
||||
[SugarTable("crm_orderdetail")]
|
||||
public class OrderDetailEntity : IEntity<OrderDetailEntity>, ICreationAudited
|
||||
{
|
||||
/// <summary>
|
||||
/// 主键
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "F_Id", IsPrimaryKey = true)]
|
||||
public string F_Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 订单Id
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = false, ColumnName = "F_OrderId", ColumnDataType = "nvarchar(50)", ColumnDescription = "订单Id", UniqueGroupNameList = new string[] { "crm_orderdetail" })]
|
||||
public string F_OrderId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 订单状态
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = false, ColumnName = "F_OrderState", ColumnDescription = "订单状态")]
|
||||
public int? F_OrderState { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 产品名称
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_ProductName", ColumnDataType = "nvarchar(50)", ColumnDescription = "产品名称", UniqueGroupNameList = new string[] { "crm_orderdetail" })]
|
||||
public string F_ProductName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 产品规格
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_ProductDescription", ColumnDataType = "nvarchar(100)", ColumnDescription = "产品规格")]
|
||||
public string F_ProductDescription { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 产品单位
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_ProductUnit", ColumnDataType = "nvarchar(5)", ColumnDescription = "产品单位")]
|
||||
public string F_ProductUnit { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 需求数量
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_NeedNum", ColumnDescription = "需求数量")]
|
||||
public int? F_NeedNum { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 实际数量
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_ActualNum", ColumnDescription = "实际数量")]
|
||||
public int? F_ActualNum { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 备注
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_Description", ColumnDataType = "longtext", ColumnDescription = "备注")]
|
||||
public string F_Description { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 创建时间
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "创建时间")]
|
||||
public DateTime? F_CreatorTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 创建人Id
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_CreatorUserId", ColumnDataType = "nvarchar(50)", ColumnDescription = "创建人Id")]
|
||||
public string F_CreatorUserId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_CreatorUserName", ColumnDataType = "nvarchar(50)", ColumnDescription = "创建人")]
|
||||
public string F_CreatorUserName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 需求时间
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "需求时间")]
|
||||
public DateTime? F_NeedTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 实际时间
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "实际时间")]
|
||||
public DateTime? F_ActualTime { get; set; }
|
||||
}
|
||||
}
|
||||
114
WaterCloud.Domain/Entity/OrderManagement/OrderEntity.cs
Normal file
114
WaterCloud.Domain/Entity/OrderManagement/OrderEntity.cs
Normal file
@@ -0,0 +1,114 @@
|
||||
using SqlSugar;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace WaterCloud.Domain.OrderManagement
|
||||
{
|
||||
/// <summary>
|
||||
/// 创 建:超级管理员
|
||||
/// 日 期:2021-07-12 20:41
|
||||
/// 描 述:订单管理实体类
|
||||
/// </summary>
|
||||
[SugarTable("crm_order")]
|
||||
public class OrderEntity : IEntity<OrderEntity>, ICreationAudited, IModificationAudited, IDeleteAudited
|
||||
{
|
||||
/// <summary>
|
||||
/// 主键
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "F_Id", IsPrimaryKey = true)]
|
||||
public string F_Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 订单编号
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_OrderCode", ColumnDataType = "nvarchar(50)", ColumnDescription = "订单编号", UniqueGroupNameList = new string[] { "crm_order" })]
|
||||
public string F_OrderCode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 订单状态(0待确认,待采购,1已完成)
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = false, ColumnDescription = "订单状态")]
|
||||
public int? F_OrderState { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 需求时间
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "需求时间")]
|
||||
public DateTime? F_NeedTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 实际时间
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "实际时间")]
|
||||
public DateTime? F_ActualTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 删除标记
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "删除标记")]
|
||||
public bool? F_DeleteMark { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 有效标记
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "有效标记")]
|
||||
public bool? F_EnabledMark { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 备注
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_Description", ColumnDataType = "longtext", ColumnDescription = "备注")]
|
||||
public string F_Description { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 创建时间
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "创建时间")]
|
||||
public DateTime? F_CreatorTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 创建人Id
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_CreatorUserId", ColumnDataType = "nvarchar(50)", ColumnDescription = "创建人Id")]
|
||||
public string F_CreatorUserId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 创建人
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_CreatorUserName", ColumnDataType = "nvarchar(50)", ColumnDescription = "创建人")]
|
||||
public string F_CreatorUserName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 修改时间
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "修改时间")]
|
||||
public DateTime? F_LastModifyTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 修改人Id
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_LastModifyUserId", ColumnDataType = "nvarchar(50)", ColumnDescription = "修改人Id")]
|
||||
public string F_LastModifyUserId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 删除时间
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "删除时间")]
|
||||
public DateTime? F_DeleteTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 删除人Id
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_DeleteUserId", ColumnDataType = "nvarchar(50)", ColumnDescription = "删除人Id")]
|
||||
public string F_DeleteUserId { get; set; }
|
||||
|
||||
[SugarColumn(IsIgnore = true)]
|
||||
public int? F_NeedNum { get; set; }
|
||||
|
||||
[SugarColumn(IsIgnore = true)]
|
||||
public int? F_ActualNum { get; set; }
|
||||
|
||||
[SugarColumn(IsIgnore = true)]
|
||||
public List<OrderDetailEntity> list { get; set; }
|
||||
}
|
||||
}
|
||||
121
WaterCloud.Domain/Entity/SystemManage/AreaEntity.cs
Normal file
121
WaterCloud.Domain/Entity/SystemManage/AreaEntity.cs
Normal file
@@ -0,0 +1,121 @@
|
||||
/*******************************************************************************
|
||||
* Copyright © 2020 WaterCloud.Framework 版权所有
|
||||
* Author: WaterCloud
|
||||
* Description: WaterCloud快速开发平台
|
||||
* Website:
|
||||
*********************************************************************************/
|
||||
|
||||
using SqlSugar;
|
||||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace WaterCloud.Domain.SystemManage
|
||||
{
|
||||
[SugarTable("sys_area")]
|
||||
public class AreaEntity : IEntity<AreaEntity>, ICreationAudited, IDeleteAudited, IModificationAudited
|
||||
{
|
||||
/// <summary>
|
||||
/// 主键Id
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "F_Id", IsPrimaryKey = true, ColumnDescription = "主键Id")]
|
||||
public string F_Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 父级Id
|
||||
/// </summary>
|
||||
[Required(ErrorMessage = "父级不能为空")]
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_ParentId", ColumnDataType = "nvarchar(50)", ColumnDescription = "父级Id")]
|
||||
public string F_ParentId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 层级
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "层级")]
|
||||
public int? F_Layers { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 编号
|
||||
/// </summary>
|
||||
[Required(ErrorMessage = "编号不能为空")]
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_EnCode", ColumnDataType = "nvarchar(50)", ColumnDescription = "编号", UniqueGroupNameList = new string[] { "sys_area" })]
|
||||
public string F_EnCode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 名称
|
||||
/// </summary>
|
||||
[Required(ErrorMessage = "名称不能为空")]
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_FullName", ColumnDataType = "nvarchar(50)", ColumnDescription = "名称")]
|
||||
public string F_FullName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 简拼
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_SimpleSpelling", ColumnDataType = "nvarchar(50)", ColumnDescription = "简拼")]
|
||||
public string F_SimpleSpelling { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 排序
|
||||
/// </summary>
|
||||
[Required(ErrorMessage = "排序不能为空")]
|
||||
[Range(0, 999999999999, ErrorMessage = "排序大小必须介于1~999999999999之间")]
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "排序")]
|
||||
public long? F_SortCode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 删除标记
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "删除标记")]
|
||||
public bool? F_DeleteMark { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 有效标记
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "有效标记")]
|
||||
public bool? F_EnabledMark { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 备注
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_Description", ColumnDataType = "longtext", ColumnDescription = "备注")]
|
||||
public string F_Description { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 创建时间
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "创建时间")]
|
||||
public DateTime? F_CreatorTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 创建人Id
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_CreatorUserId", ColumnDataType = "nvarchar(50)", ColumnDescription = "创建人Id")]
|
||||
public string F_CreatorUserId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 修改时间
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "修改时间")]
|
||||
public DateTime? F_LastModifyTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 修改人Id
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_LastModifyUserId", ColumnDataType = "nvarchar(50)", ColumnDescription = "修改人Id")]
|
||||
public string F_LastModifyUserId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 删除时间
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "删除时间")]
|
||||
public DateTime? F_DeleteTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 删除人Id
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_DeleteUserId", ColumnDataType = "nvarchar(50)", ColumnDescription = "删除人Id")]
|
||||
public string F_DeleteUserId { get; set; }
|
||||
|
||||
[SugarColumn(IsIgnore = true)]
|
||||
public bool haveChild { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace WaterCloud.Domain.SystemManage
|
||||
{
|
||||
/// <summary>
|
||||
/// 单据规则模型
|
||||
/// </summary>
|
||||
public class CodeRuleFormatEntity
|
||||
{
|
||||
/// <summary>
|
||||
/// 编码前缀类型 1-固定参数 2-日期 3-年 4-月 5-日 6-周别 7-周几 8-小时 9-上午下午 10-班别 11-流水号 12-自定义 13-通配符
|
||||
/// </summary>
|
||||
[Range(1, 15)]
|
||||
public int FormatType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 格式化字符串
|
||||
/// </summary>
|
||||
public string FormatString { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 自定义日,月,周别,周几,班别,上午下午
|
||||
/// </summary>
|
||||
public string[] DiyDate { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 流水号初始值,默认:1
|
||||
/// </summary>
|
||||
public int? InitValue { get; set; } = 1;
|
||||
|
||||
/// <summary>
|
||||
/// 流水号最大值
|
||||
/// </summary>
|
||||
public int? MaxValue { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 步长
|
||||
/// </summary>
|
||||
public decimal? Increment { get; set; } = 1;
|
||||
|
||||
/// <summary>
|
||||
/// 进制
|
||||
/// </summary>
|
||||
[Range(2, 36)]
|
||||
public int ToBase { get; set; } = 10;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,95 @@
|
||||
using System;
|
||||
using SqlSugar;
|
||||
|
||||
namespace WaterCloud.Domain.SystemManage
|
||||
{
|
||||
/// <summary>
|
||||
/// 创 建:超级管理员
|
||||
/// 日 期:2022-10-06 14:18
|
||||
/// 描 述:条码生成记录实体类
|
||||
/// </summary>
|
||||
[SugarTable("sys_codegeneratelog")]
|
||||
public class CodegeneratelogEntity : IEntity<CodegeneratelogEntity>,ICreationAudited,IModificationAudited,IDeleteAudited
|
||||
{
|
||||
/// <summary>
|
||||
/// 主键
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName="F_Id", ColumnDescription = "主键",IsPrimaryKey = true)]
|
||||
public string F_Id { get; set; }
|
||||
/// <summary>
|
||||
/// 条码
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName="F_Code", ColumnDescription = "条码",ColumnDataType = "nvarchar(50)")]
|
||||
public string F_Code { get; set; }
|
||||
/// <summary>
|
||||
/// 规则id
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName="F_RuleId", ColumnDescription = "规则id",ColumnDataType = "nvarchar(50)")]
|
||||
public string F_RuleId { get; set; }
|
||||
/// <summary>
|
||||
/// 规则名称
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName="F_RuleName", ColumnDescription = "规则名称",ColumnDataType = "nvarchar(50)", IsNullable = true)]
|
||||
public string F_RuleName { get; set; }
|
||||
/// <summary>
|
||||
/// 打印Json
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName="F_PrintJson", ColumnDescription = "打印Json",ColumnDataType = "longtext", IsNullable = true)]
|
||||
public string F_PrintJson { get; set; }
|
||||
/// <summary>
|
||||
/// 打印次数
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName="F_PrintCount", ColumnDescription = "打印次数", IsNullable = true)]
|
||||
public int? F_PrintCount { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName="F_DeleteMark", IsNullable = true)]
|
||||
public bool? F_DeleteMark { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName="F_EnabledMark", IsNullable = true)]
|
||||
public bool? F_EnabledMark { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName="F_Description",ColumnDataType = "longtext", IsNullable = true)]
|
||||
public string F_Description { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName="F_CreatorTime", IsNullable = true)]
|
||||
public DateTime? F_CreatorTime { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName="F_CreatorUserId", ColumnDescription = "",ColumnDataType = "nvarchar(50)", IsNullable = true)]
|
||||
public string F_CreatorUserId { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName="F_CreatorUserName", ColumnDescription = "",ColumnDataType = "nvarchar(50)", IsNullable = true)]
|
||||
public string F_CreatorUserName { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName="F_LastModifyTime", IsNullable = true)]
|
||||
public DateTime? F_LastModifyTime { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName="F_LastModifyUserId", ColumnDescription = "",ColumnDataType = "nvarchar(50)", IsNullable = true)]
|
||||
public string F_LastModifyUserId { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName="F_DeleteTime", IsNullable = true)]
|
||||
public DateTime? F_DeleteTime { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName="F_DeleteUserId", ColumnDescription = "",ColumnDataType = "nvarchar(50)", IsNullable = true)]
|
||||
public string F_DeleteUserId { get; set; }
|
||||
}
|
||||
}
|
||||
105
WaterCloud.Domain/Entity/SystemManage/CoderuleEntity.cs
Normal file
105
WaterCloud.Domain/Entity/SystemManage/CoderuleEntity.cs
Normal file
@@ -0,0 +1,105 @@
|
||||
using System;
|
||||
using SqlSugar;
|
||||
|
||||
namespace WaterCloud.Domain.SystemManage
|
||||
{
|
||||
/// <summary>
|
||||
/// 创 建:超级管理员
|
||||
/// 日 期:2022-10-06 11:25
|
||||
/// 描 述:条码规则实体类
|
||||
/// </summary>
|
||||
[SugarTable("sys_coderule")]
|
||||
public class CoderuleEntity : IEntity<CoderuleEntity>,ICreationAudited,IModificationAudited,IDeleteAudited
|
||||
{
|
||||
/// <summary>
|
||||
/// 主键
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName="F_Id", ColumnDescription = "主键",IsPrimaryKey = true)]
|
||||
public string F_Id { get; set; }
|
||||
/// <summary>
|
||||
/// 规则名称
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName="F_RuleName", ColumnDescription = "规则名称",ColumnDataType = "nvarchar(50)", IsNullable = true)]
|
||||
public string F_RuleName { get; set; }
|
||||
/// <summary>
|
||||
/// 规则内容
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName="F_RuleJson", ColumnDescription = "规则内容",ColumnDataType = "longtext")]
|
||||
public string F_RuleJson { get; set; }
|
||||
/// <summary>
|
||||
/// 重设机制
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName="F_Reset", ColumnDescription = "重设机制",ColumnDataType = "nvarchar(50)", IsNullable = true)]
|
||||
public string F_Reset { get; set; }
|
||||
/// <summary>
|
||||
/// 打印模板Id
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "F_TemplateId", ColumnDescription = "模板Id", ColumnDataType = "nvarchar(50)", IsNullable = true)]
|
||||
public string F_TemplateId { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName="F_DeleteMark", IsNullable = true)]
|
||||
public bool? F_DeleteMark { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName="F_EnabledMark", IsNullable = true)]
|
||||
public bool? F_EnabledMark { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName="F_Description",ColumnDataType = "longtext", IsNullable = true)]
|
||||
public string F_Description { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName="F_CreatorTime", IsNullable = true)]
|
||||
public DateTime? F_CreatorTime { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName="F_CreatorUserId", ColumnDescription = "",ColumnDataType = "nvarchar(50)", IsNullable = true)]
|
||||
public string F_CreatorUserId { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName="F_CreatorUserName", ColumnDescription = "",ColumnDataType = "nvarchar(50)", IsNullable = true)]
|
||||
public string F_CreatorUserName { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName="F_LastModifyTime", IsNullable = true)]
|
||||
public DateTime? F_LastModifyTime { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName="F_LastModifyUserId", ColumnDescription = "",ColumnDataType = "nvarchar(50)", IsNullable = true)]
|
||||
public string F_LastModifyUserId { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName="F_DeleteTime", IsNullable = true)]
|
||||
public DateTime? F_DeleteTime { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName="F_DeleteUserId", ColumnDescription = "",ColumnDataType = "nvarchar(50)", IsNullable = true)]
|
||||
public string F_DeleteUserId { get; set; }
|
||||
/// <summary>
|
||||
/// 打印模板
|
||||
/// </summary>
|
||||
[SugarColumn(IsIgnore = true)]
|
||||
public string F_TemplateName { get; set; }
|
||||
/// <summary>
|
||||
/// 打印方式
|
||||
/// </summary>
|
||||
[SugarColumn(IsIgnore = true)]
|
||||
public int? F_PrintType { get; set; }
|
||||
/// <summary>
|
||||
/// 是否批量
|
||||
/// </summary>
|
||||
[SugarColumn(IsIgnore = true)]
|
||||
public bool? F_Batch { get; set; }
|
||||
}
|
||||
}
|
||||
41
WaterCloud.Domain/Entity/SystemManage/CoderulelogEntity.cs
Normal file
41
WaterCloud.Domain/Entity/SystemManage/CoderulelogEntity.cs
Normal file
@@ -0,0 +1,41 @@
|
||||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using SqlSugar;
|
||||
|
||||
namespace WaterCloud.Domain.SystemManage
|
||||
{
|
||||
/// <summary>
|
||||
/// 创 建:超级管理员
|
||||
/// 日 期:2022-10-08 16:20
|
||||
/// 描 述:条码规则计数实体类
|
||||
/// </summary>
|
||||
[SugarTable("sys_coderulelog")]
|
||||
public class CoderulelogEntity
|
||||
{
|
||||
/// <summary>
|
||||
/// 主键
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName="F_Id", ColumnDescription = "主键",ColumnDataType = "nvarchar(50)",IsPrimaryKey = true)]
|
||||
public string F_Id { get; set; }
|
||||
/// <summary>
|
||||
/// 规则Id
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName="F_RuleId", ColumnDescription = "规则Id",ColumnDataType = "nvarchar(50)")]
|
||||
public string F_RuleId { get; set; }
|
||||
/// <summary>
|
||||
/// key
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName="F_Key", ColumnDescription = "key",ColumnDataType = "nvarchar(100)")]
|
||||
public string F_Key { get; set; }
|
||||
/// <summary>
|
||||
/// value
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName="F_Value", ColumnDescription = "value",ColumnDataType = "nvarchar(100)", IsNullable = true)]
|
||||
public string F_Value { get; set; }
|
||||
/// <summary>
|
||||
/// 计数
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName="F_Score", ColumnDescription = "计数", IsNullable = true)]
|
||||
public int? F_Score { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
namespace WaterCloud.Domain.SystemManage
|
||||
{
|
||||
public class FlowschemeExtend : FlowschemeEntity
|
||||
{
|
||||
/// 用户显示
|
||||
/// </summary>
|
||||
public string F_WebId { get; set; }
|
||||
|
||||
public string F_FrmContentData { get; set; }
|
||||
public string F_FrmContent { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 如果下个执行节点是运行时指定执行者。需要传指定的类型
|
||||
/// <para>取值为RUNTIME_SPECIAL_ROLE、RUNTIME_SPECIAL_USER</para>
|
||||
/// </summary>
|
||||
public string NextNodeDesignateType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 如果下个执行节点是运行时指定执行者。该值表示具体的执行者
|
||||
/// <para>如果NodeDesignateType为RUNTIME_SPECIAL_ROLE,则该值为指定的角色</para>
|
||||
/// <para>如果NodeDesignateType为RUNTIME_SPECIAL_USER,则该值为指定的用户</para>
|
||||
/// </summary>
|
||||
public string[] NextNodeDesignates { get; set; }
|
||||
|
||||
public string NextMakerName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 可写的表单项
|
||||
/// </summary>
|
||||
public string[] CanWriteFormItems { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
//-----------------------------------------------------------------------
|
||||
// <copyright file=" QuickModule.cs" company="WaterCloud">
|
||||
// * Copyright (C) WaterCloud.Framework All Rights Reserved
|
||||
// * version : 1.0
|
||||
// * author : WaterCloud.Framework
|
||||
// * FileName: QuickModule.cs
|
||||
// * history : Created by T4 04/13/2020 16:51:14
|
||||
// </copyright>
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
namespace WaterCloud.Domain.SystemManage
|
||||
{
|
||||
/// <summary>
|
||||
/// QuickModule Entity Model
|
||||
/// </summary>
|
||||
public class QuickModuleExtend
|
||||
{
|
||||
public string id { get; set; }
|
||||
public string title { get; set; }
|
||||
public string href { get; set; }
|
||||
public string icon { get; set; }
|
||||
}
|
||||
}
|
||||
183
WaterCloud.Domain/Entity/SystemManage/FlowschemeEntity.cs
Normal file
183
WaterCloud.Domain/Entity/SystemManage/FlowschemeEntity.cs
Normal file
@@ -0,0 +1,183 @@
|
||||
using SqlSugar;
|
||||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace WaterCloud.Domain.SystemManage
|
||||
{
|
||||
/// <summary>
|
||||
/// 创 建:超级管理员
|
||||
/// 日 期:2020-07-10 08:49
|
||||
/// 描 述:流程设计实体类
|
||||
/// </summary>
|
||||
[SugarTable("sys_flowscheme")]
|
||||
public class FlowschemeEntity : IEntity<FlowschemeEntity>, ICreationAudited, IModificationAudited, IDeleteAudited
|
||||
{
|
||||
/// <summary>
|
||||
/// 主键Id
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(ColumnName = "F_Id", IsPrimaryKey = true, ColumnDescription = "主键Id")]
|
||||
public string F_Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 流程编号
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[Required(ErrorMessage = "流程编号不能为空")]
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_SchemeCode", ColumnDataType = "nvarchar(50)", ColumnDescription = "流程编号", UniqueGroupNameList = new string[] { "sys_flowscheme" })]
|
||||
public string F_SchemeCode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 流程名称
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[Required(ErrorMessage = "流程名称不能为空")]
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_SchemeName", ColumnDataType = "nvarchar(200)", ColumnDescription = "流程名称")]
|
||||
public string F_SchemeName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 流程分类
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_SchemeType", ColumnDataType = "nvarchar(50)", ColumnDescription = "流程分类")]
|
||||
public string F_SchemeType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 流程内容版本
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_SchemeVersion", ColumnDataType = "nvarchar(50)", ColumnDescription = "流程内容版本")]
|
||||
public string F_SchemeVersion { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 流程模板使用者
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_SchemeCanUser", ColumnDataType = "longtext", ColumnDescription = "流程模板使用者")]
|
||||
public string F_SchemeCanUser { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 流程内容
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_SchemeContent", ColumnDataType = "longtext", ColumnDescription = "流程内容")]
|
||||
public string F_SchemeContent { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 表单ID
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_FrmId", ColumnDataType = "nvarchar(50)", ColumnDescription = "表单ID")]
|
||||
public string F_FrmId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 表单类型
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = false, ColumnDescription = "表单类型")]
|
||||
public int F_FrmType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 模板权限类型:0完全公开,1指定部门/人员
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = false, ColumnDescription = "模板权限类型:0完全公开,1指定部门/人员")]
|
||||
public int F_AuthorizeType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 排序码
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[Required(ErrorMessage = "排序不能为空")]
|
||||
[Range(0, 99999999, ErrorMessage = "排序大小必须介于1~99999999之间")]
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "排序码")]
|
||||
public int? F_SortCode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 删除标记
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "删除标记")]
|
||||
public bool? F_DeleteMark { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 有效
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "有效")]
|
||||
public bool? F_EnabledMark { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 备注
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_Description", ColumnDataType = "nvarchar(200)", ColumnDescription = "备注")]
|
||||
public string F_Description { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 创建时间
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "创建时间")]
|
||||
public DateTime? F_CreatorTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 创建用户主键
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_CreatorUserId", ColumnDataType = "nvarchar(50)", ColumnDescription = "创建用户主键")]
|
||||
public string F_CreatorUserId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 创建用户
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_CreatorUserName", ColumnDataType = "nvarchar(50)", ColumnDescription = "创建用户")]
|
||||
public string F_CreatorUserName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 修改时间
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "修改时间")]
|
||||
public DateTime? F_LastModifyTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 修改用户主键
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_LastModifyUserId", ColumnDataType = "nvarchar(50)", ColumnDescription = "修改用户主键")]
|
||||
public string F_LastModifyUserId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 修改用户
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_LastModifyUserName", ColumnDataType = "nvarchar(50)", ColumnDescription = "修改用户")]
|
||||
public string F_LastModifyUserName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 所属部门
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_OrganizeId", ColumnDataType = "nvarchar(50)", ColumnDescription = "所属部门")]
|
||||
public string F_OrganizeId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 删除时间
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "删除时间")]
|
||||
public DateTime? F_DeleteTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 删除人
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_DeleteUserId", ColumnDataType = "nvarchar(50)", ColumnDescription = "删除人")]
|
||||
public string F_DeleteUserId { get; set; }
|
||||
|
||||
[SugarColumn(IsIgnore = true)]
|
||||
public string F_ParentId { get; set; }
|
||||
}
|
||||
}
|
||||
162
WaterCloud.Domain/Entity/SystemManage/FormEntity.cs
Normal file
162
WaterCloud.Domain/Entity/SystemManage/FormEntity.cs
Normal file
@@ -0,0 +1,162 @@
|
||||
using SqlSugar;
|
||||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace WaterCloud.Domain.SystemManage
|
||||
{
|
||||
/// <summary>
|
||||
/// 创 建:超级管理员
|
||||
/// 日 期:2020-07-08 14:33
|
||||
/// 描 述:表单设计实体类
|
||||
/// </summary>
|
||||
[SugarTable("sys_form")]
|
||||
public class FormEntity : IEntity<FormEntity>, ICreationAudited, IModificationAudited, IDeleteAudited
|
||||
{
|
||||
/// <summary>
|
||||
/// 表单模板Id
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(ColumnName = "F_Id", IsPrimaryKey = true, ColumnDescription = "主键Id")]
|
||||
public string F_Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 表单名称
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[Required(ErrorMessage = "表单名称不能为空")]
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_Name", ColumnDataType = "nvarchar(200)", ColumnDescription = "表单名称", UniqueGroupNameList = new string[] { "sys_form" })]
|
||||
public string F_Name { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 表单类型,0:默认动态表单;1:Web自定义表单
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[Required(ErrorMessage = "表单类型不能为空")]
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "表单类型,0:默认动态表单;1:Web自定义表单")]
|
||||
public int? F_FrmType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 系统页面标识,当表单类型为用Web自定义的表单时,需要标识加载哪个页面
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_WebId", ColumnDataType = "nvarchar(50)", ColumnDescription = "系统页面标识")]
|
||||
public string F_WebId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 字段个数
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "字段个数")]
|
||||
public int? F_Fields { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 表单中的字段
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_ContentData", ColumnDataType = "longtext", ColumnDescription = "表单中的字段")]
|
||||
public string F_ContentData { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 表单参数(冗余)
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_ContentParse", ColumnDataType = "longtext", ColumnDescription = "表单参数")]
|
||||
public string F_ContentParse { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 表单参数Json
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_Content", ColumnDataType = "longtext", ColumnDescription = "表单参数Json")]
|
||||
public string F_Content { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 排序码
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[Required(ErrorMessage = "排序不能为空")]
|
||||
[Range(0, 99999999, ErrorMessage = "排序大小必须介于1~99999999之间")]
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "排序码")]
|
||||
public int? F_SortCode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否启用
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "是否启用")]
|
||||
public bool? F_EnabledMark { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 逻辑删除标志
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "逻辑删除标志")]
|
||||
public bool? F_DeleteMark { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 创建时间
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "创建时间")]
|
||||
public DateTime? F_CreatorTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 创建人
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_CreatorUserId", ColumnDataType = "nvarchar(50)", ColumnDescription = "创建人")]
|
||||
public string F_CreatorUserId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 最后修改时间
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "最后修改时间")]
|
||||
public DateTime? F_LastModifyTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 最后修改人
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_LastModifyUserId", ColumnDataType = "nvarchar(50)", ColumnDescription = "最后修改人")]
|
||||
public string F_LastModifyUserId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 删除时间
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "删除时间")]
|
||||
public DateTime? F_DeleteTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 删除人
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_DeleteUserId", ColumnDataType = "nvarchar(50)", ColumnDescription = "删除人")]
|
||||
public string F_DeleteUserId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 内容
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_Description", ColumnDataType = "longtext", ColumnDescription = "内容")]
|
||||
public string F_Description { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 所属组织
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_OrganizeId", ColumnDataType = "nvarchar(50)", ColumnDescription = "所属组织")]
|
||||
public string F_OrganizeId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 数据库名称
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_DbName", ColumnDataType = "nvarchar(50)", ColumnDescription = "数据库名称")]
|
||||
public string F_DbName { get; set; }
|
||||
|
||||
[SugarColumn(IsIgnore = true)]
|
||||
public string F_OrganizeName { get; set; }
|
||||
}
|
||||
}
|
||||
130
WaterCloud.Domain/Entity/SystemManage/ItemsDetailEntity.cs
Normal file
130
WaterCloud.Domain/Entity/SystemManage/ItemsDetailEntity.cs
Normal file
@@ -0,0 +1,130 @@
|
||||
/*******************************************************************************
|
||||
* Copyright © 2020 WaterCloud.Framework 版权所有
|
||||
* Author: WaterCloud
|
||||
* Description: WaterCloud快速开发平台
|
||||
* Website:
|
||||
*********************************************************************************/
|
||||
|
||||
using SqlSugar;
|
||||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace WaterCloud.Domain.SystemManage
|
||||
{
|
||||
[SugarTable("sys_itemsdetail")]
|
||||
public class ItemsDetailEntity : IEntity<ItemsDetailEntity>, ICreationAudited, IDeleteAudited, IModificationAudited
|
||||
{
|
||||
/// <summary>
|
||||
/// 主键Id
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "F_Id", IsPrimaryKey = true, ColumnDescription = "主键Id")]
|
||||
public string F_Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 分类Id
|
||||
/// </summary>
|
||||
[Required(ErrorMessage = "分类不能为空")]
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_ItemId", ColumnDataType = "nvarchar(50)", ColumnDescription = "分类Id", UniqueGroupNameList = new string[] { "sys_itemsdetail" })]
|
||||
public string F_ItemId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 父级Id
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_ParentId", ColumnDataType = "nvarchar(50)", ColumnDescription = "父级Id", UniqueGroupNameList = new string[] { "sys_itemsdetail" })]
|
||||
public string F_ParentId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 编号
|
||||
/// </summary>
|
||||
[Required(ErrorMessage = "编号不能为空")]
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_ItemCode", ColumnDataType = "nvarchar(50)", ColumnDescription = "编号", UniqueGroupNameList = new string[] { "sys_itemsdetail" })]
|
||||
public string F_ItemCode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 名称
|
||||
/// </summary>
|
||||
[Required(ErrorMessage = "名称不能为空")]
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_ItemName", ColumnDataType = "nvarchar(50)", ColumnDescription = "名称")]
|
||||
public string F_ItemName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 简拼
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_SimpleSpelling", ColumnDataType = "longtext", ColumnDescription = "简拼")]
|
||||
public string F_SimpleSpelling { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否默认
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "是否默认")]
|
||||
public bool? F_IsDefault { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 层级
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "层级")]
|
||||
public int? F_Layers { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 排序码
|
||||
/// </summary>
|
||||
[Required(ErrorMessage = "排序不能为空")]
|
||||
[Range(0, 99999999, ErrorMessage = "排序大小必须介于1~99999999之间")]
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "排序码")]
|
||||
public int? F_SortCode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 删除标记
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "删除标记")]
|
||||
public bool? F_DeleteMark { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 有效标记
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "有效标记")]
|
||||
public bool? F_EnabledMark { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 备注
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_Description", ColumnDataType = "longtext", ColumnDescription = "备注")]
|
||||
public string F_Description { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 创建时间
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "创建时间")]
|
||||
public DateTime? F_CreatorTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 创建人Id
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_CreatorUserId", ColumnDataType = "nvarchar(50)", ColumnDescription = "创建人Id")]
|
||||
public string F_CreatorUserId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 修改时间
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "修改时间")]
|
||||
public DateTime? F_LastModifyTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 修改人Id
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_LastModifyUserId", ColumnDataType = "nvarchar(50)", ColumnDescription = "修改人Id")]
|
||||
public string F_LastModifyUserId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 删除时间
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "删除时间")]
|
||||
public DateTime? F_DeleteTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 删除人Id
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_DeleteUserId", ColumnDataType = "nvarchar(50)", ColumnDescription = "删除人Id")]
|
||||
public string F_DeleteUserId { get; set; }
|
||||
}
|
||||
}
|
||||
118
WaterCloud.Domain/Entity/SystemManage/ItemsEntity.cs
Normal file
118
WaterCloud.Domain/Entity/SystemManage/ItemsEntity.cs
Normal file
@@ -0,0 +1,118 @@
|
||||
/*******************************************************************************
|
||||
* Copyright © 2020 WaterCloud.Framework 版权所有
|
||||
* Author: WaterCloud
|
||||
* Description: WaterCloud快速开发平台
|
||||
* Website:
|
||||
*********************************************************************************/
|
||||
|
||||
using SqlSugar;
|
||||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace WaterCloud.Domain.SystemManage
|
||||
{
|
||||
[SugarTable("sys_items")]
|
||||
public class ItemsEntity : IEntity<ItemsEntity>, ICreationAudited, IDeleteAudited, IModificationAudited
|
||||
{
|
||||
/// <summary>
|
||||
/// 主键Id
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "F_Id", IsPrimaryKey = true, ColumnDescription = "主键Id")]
|
||||
public string F_Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 父级Id
|
||||
/// </summary>
|
||||
[Required(ErrorMessage = "父级不能为空")]
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_ParentId", ColumnDataType = "nvarchar(50)", ColumnDescription = "父级Id")]
|
||||
public string F_ParentId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 编号
|
||||
/// </summary>
|
||||
[Required(ErrorMessage = "编号不能为空")]
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_EnCode", ColumnDataType = "nvarchar(50)", ColumnDescription = "编号", UniqueGroupNameList = new string[] { "sys_items" })]
|
||||
public string F_EnCode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 名称
|
||||
/// </summary>
|
||||
[Required(ErrorMessage = "名称不能为空")]
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_FullName", ColumnDataType = "nvarchar(50)", ColumnDescription = "名称")]
|
||||
public string F_FullName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否是树
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "是否是树")]
|
||||
public bool? F_IsTree { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 层级
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "层级")]
|
||||
public int? F_Layers { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 排序码
|
||||
/// </summary>
|
||||
[Required(ErrorMessage = "排序不能为空")]
|
||||
[Range(0, 99999999, ErrorMessage = "排序大小必须介于1~99999999之间")]
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "排序码")]
|
||||
public int? F_SortCode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 删除标记
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "删除标记")]
|
||||
public bool? F_DeleteMark { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 有效标记
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "有效标记")]
|
||||
public bool? F_EnabledMark { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 备注
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_Description", ColumnDataType = "longtext", ColumnDescription = "备注")]
|
||||
public string F_Description { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 创建时间
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "创建时间")]
|
||||
public DateTime? F_CreatorTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 创建人Id
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_CreatorUserId", ColumnDataType = "nvarchar(50)", ColumnDescription = "创建人Id")]
|
||||
public string F_CreatorUserId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 修改时间
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "修改时间")]
|
||||
public DateTime? F_LastModifyTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 修改人Id
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_LastModifyUserId", ColumnDataType = "nvarchar(50)", ColumnDescription = "修改人Id")]
|
||||
public string F_LastModifyUserId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 删除时间
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "删除时间")]
|
||||
public DateTime? F_DeleteTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 删除人Id
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_DeleteUserId", ColumnDataType = "nvarchar(50)", ColumnDescription = "删除人Id")]
|
||||
public string F_DeleteUserId { get; set; }
|
||||
}
|
||||
}
|
||||
174
WaterCloud.Domain/Entity/SystemManage/ModuleButtonEntity.cs
Normal file
174
WaterCloud.Domain/Entity/SystemManage/ModuleButtonEntity.cs
Normal file
@@ -0,0 +1,174 @@
|
||||
/*******************************************************************************
|
||||
* Copyright © 2020 WaterCloud.Framework 版权所有
|
||||
* Author: WaterCloud
|
||||
* Description: WaterCloud快速开发平台
|
||||
* Website:
|
||||
*********************************************************************************/
|
||||
|
||||
using SqlSugar;
|
||||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace WaterCloud.Domain.SystemManage
|
||||
{
|
||||
[SugarTable("sys_modulebutton")]
|
||||
public class ModuleButtonEntity : IEntity<ModuleButtonEntity>, ICreationAudited, IDeleteAudited, IModificationAudited
|
||||
{
|
||||
/// <summary>
|
||||
/// 主键Id
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "F_Id", IsPrimaryKey = true, ColumnDescription = "主键Id")]
|
||||
public string F_Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 模块Id
|
||||
/// </summary>
|
||||
[Required(ErrorMessage = "模块不能为空")]
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_ModuleId", ColumnDataType = "nvarchar(50)", ColumnDescription = "模块Id", UniqueGroupNameList = new string[] { "sys_modulebutton" })]
|
||||
public string F_ModuleId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 父级Id
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_ParentId", ColumnDataType = "nvarchar(50)", ColumnDescription = "父级", UniqueGroupNameList = new string[] { "sys_modulebutton" })]
|
||||
public string F_ParentId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 层级
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "层级")]
|
||||
public int? F_Layers { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 编号
|
||||
/// </summary>
|
||||
[Required(ErrorMessage = "编号不能为空")]
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_EnCode", ColumnDataType = "nvarchar(50)", ColumnDescription = "编号", UniqueGroupNameList = new string[] { "sys_modulebutton" })]
|
||||
public string F_EnCode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 名称
|
||||
/// </summary>
|
||||
[Required(ErrorMessage = "名称不能为空")]
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_FullName", ColumnDataType = "nvarchar(50)", ColumnDescription = "名称")]
|
||||
public string F_FullName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 图标
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_Icon", ColumnDataType = "nvarchar(50)", ColumnDescription = "图标")]
|
||||
public string F_Icon { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 位置
|
||||
/// </summary>
|
||||
[Required(ErrorMessage = "位置不能为空")]
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "位置")]
|
||||
public int? F_Location { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 事件
|
||||
/// </summary>
|
||||
[Required(ErrorMessage = "事件不能为空")]
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_JsEvent", ColumnDataType = "nvarchar(50)", ColumnDescription = "事件")]
|
||||
public string F_JsEvent { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Url地址
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_UrlAddress", ColumnDataType = "longtext", ColumnDescription = "Url地址")]
|
||||
public string F_UrlAddress { get; set; }
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true)]
|
||||
public bool? F_Split { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否公共
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "是否公共")]
|
||||
public bool? F_IsPublic { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否允许修改
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "是否允许修改")]
|
||||
public bool? F_AllowEdit { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否允许删除
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "是否允许删除")]
|
||||
public bool? F_AllowDelete { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 排序码
|
||||
/// </summary>
|
||||
[Required(ErrorMessage = "排序不能为空")]
|
||||
[Range(0, 99999999, ErrorMessage = "排序大小必须介于1~99999999之间")]
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "排序码")]
|
||||
public int? F_SortCode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 删除标记
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "删除标记")]
|
||||
public bool? F_DeleteMark { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 有效标记
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "有效标记")]
|
||||
public bool? F_EnabledMark { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 备注
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_Description", ColumnDataType = "longtext", ColumnDescription = "备注")]
|
||||
public string F_Description { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 创建时间
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "创建时间")]
|
||||
public DateTime? F_CreatorTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 创建人Id
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_CreatorUserId", ColumnDataType = "nvarchar(50)", ColumnDescription = "创建人Id")]
|
||||
public string F_CreatorUserId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 修改时间
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "修改时间")]
|
||||
public DateTime? F_LastModifyTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 修改人Id
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_LastModifyUserId", ColumnDataType = "nvarchar(50)", ColumnDescription = "修改人Id")]
|
||||
public string F_LastModifyUserId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 删除时间
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "删除时间")]
|
||||
public DateTime? F_DeleteTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 删除人Id
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_DeleteUserId", ColumnDataType = "nvarchar(50)", ColumnDescription = "删除人Id")]
|
||||
public string F_DeleteUserId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_Authorize", ColumnDataType = "nvarchar(200)", ColumnDescription = "权限标识")]
|
||||
public string F_Authorize { get; set; }
|
||||
}
|
||||
}
|
||||
173
WaterCloud.Domain/Entity/SystemManage/ModuleEntity.cs
Normal file
173
WaterCloud.Domain/Entity/SystemManage/ModuleEntity.cs
Normal file
@@ -0,0 +1,173 @@
|
||||
/*******************************************************************************
|
||||
* Copyright © 2020 WaterCloud.Framework 版权所有
|
||||
* Author: WaterCloud
|
||||
* Description: WaterCloud快速开发平台
|
||||
* Website:
|
||||
*********************************************************************************/
|
||||
|
||||
using SqlSugar;
|
||||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace WaterCloud.Domain.SystemManage
|
||||
{
|
||||
[SugarTable("sys_module")]
|
||||
public class ModuleEntity : IEntity<ModuleEntity>, ICreationAudited, IModificationAudited, IDeleteAudited
|
||||
{
|
||||
/// <summary>
|
||||
/// 主键Id
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "F_Id", IsPrimaryKey = true, ColumnDescription = "主键Id")]
|
||||
public string F_Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 父级Id
|
||||
/// </summary>
|
||||
[Required(ErrorMessage = "上级不能为空")]
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_ParentId", ColumnDataType = "nvarchar(50)", ColumnDescription = "父级Id")]
|
||||
public string F_ParentId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 层级
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "层级")]
|
||||
public int? F_Layers { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 编号
|
||||
/// </summary>
|
||||
[Required(ErrorMessage = "编号不能为空")]
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_EnCode", ColumnDataType = "nvarchar(50)", ColumnDescription = "编号", UniqueGroupNameList = new string[] { "sys_module" })]
|
||||
public string F_EnCode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 名称
|
||||
/// </summary>
|
||||
[Required(ErrorMessage = "名称不能为空")]
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_FullName", ColumnDataType = "nvarchar(50)", ColumnDescription = "删除人Id")]
|
||||
public string F_FullName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 图标
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_Icon", ColumnDataType = "nvarchar(50)", ColumnDescription = "图标")]
|
||||
public string F_Icon { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Url地址
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_UrlAddress", ColumnDataType = "longtext", ColumnDescription = "Url地址")]
|
||||
public string F_UrlAddress { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 目标
|
||||
/// </summary>
|
||||
[Required(ErrorMessage = "目标不能为空")]
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_Target", ColumnDataType = "nvarchar(50)", ColumnDescription = "目标")]
|
||||
public string F_Target { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否是菜单
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "是否是菜单")]
|
||||
public bool? F_IsMenu { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否展开
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "是否展开")]
|
||||
public bool? F_IsExpand { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否公共
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "是否公共")]
|
||||
public bool? F_IsPublic { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否字段
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "是否字段")]
|
||||
public bool? F_IsFields { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 允许修改
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "允许修改")]
|
||||
public bool? F_AllowEdit { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 允许删除
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "允许删除")]
|
||||
public bool? F_AllowDelete { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 排序码
|
||||
/// </summary>
|
||||
[Required(ErrorMessage = "排序不能为空")]
|
||||
[Range(0, 99999999, ErrorMessage = "排序大小必须介于1~99999999之间")]
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "排序码")]
|
||||
public int? F_SortCode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 删除标记
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "删除标记")]
|
||||
public bool? F_DeleteMark { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 有效标记
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "有效标记")]
|
||||
public bool? F_EnabledMark { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 备注
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_Description", ColumnDataType = "longtext", ColumnDescription = "备注")]
|
||||
public string F_Description { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 创建时间
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "创建时间")]
|
||||
public DateTime? F_CreatorTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 创建人Id
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_CreatorUserId", ColumnDataType = "nvarchar(50)", ColumnDescription = "创建人Id")]
|
||||
public string F_CreatorUserId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 修改时间
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "修改时间")]
|
||||
public DateTime? F_LastModifyTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 修改人Id
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_LastModifyUserId", ColumnDataType = "nvarchar(50)", ColumnDescription = "修改人Id")]
|
||||
public string F_LastModifyUserId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 删除时间
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "删除时间")]
|
||||
public DateTime? F_DeleteTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 删除人Id
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_DeleteUserId", ColumnDataType = "nvarchar(50)", ColumnDescription = "删除人Id")]
|
||||
public string F_DeleteUserId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_Authorize", ColumnDataType = "nvarchar(100)")]
|
||||
public string F_Authorize { get; set; }
|
||||
}
|
||||
}
|
||||
115
WaterCloud.Domain/Entity/SystemManage/ModuleFieldsEntity.cs
Normal file
115
WaterCloud.Domain/Entity/SystemManage/ModuleFieldsEntity.cs
Normal file
@@ -0,0 +1,115 @@
|
||||
using SqlSugar;
|
||||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace WaterCloud.Domain.SystemManage
|
||||
{
|
||||
/// <summary>
|
||||
/// 创 建:超级管理员
|
||||
/// 日 期:2020-05-21 14:38
|
||||
/// 描 述:字段管理实体类
|
||||
/// </summary>
|
||||
[SugarTable("sys_modulefields")]
|
||||
public class ModuleFieldsEntity : IEntity<ModuleFieldsEntity>, ICreationAudited, IModificationAudited, IDeleteAudited
|
||||
{
|
||||
/// <summary>
|
||||
/// 主键Id
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(ColumnName = "F_Id", IsPrimaryKey = true, ColumnDescription = "主键Id")]
|
||||
public string F_Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 模块Id
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[Required(ErrorMessage = "模块不能为空")]
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_ModuleId", ColumnDataType = "nvarchar(50)", ColumnDescription = "模块Id", UniqueGroupNameList = new string[] { "sys_modulefields" })]
|
||||
public string F_ModuleId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 编号
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[Required(ErrorMessage = "编号不能为空")]
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_EnCode", ColumnDataType = "nvarchar(50)", ColumnDescription = "编号", UniqueGroupNameList = new string[] { "sys_modulefields" })]
|
||||
public string F_EnCode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 名称
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[Required(ErrorMessage = "名称不能为空")]
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_FullName", ColumnDataType = "nvarchar(50)", ColumnDescription = "名称")]
|
||||
public string F_FullName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 删除标记
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "删除标记")]
|
||||
public bool? F_DeleteMark { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 有效标记
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "有效标记")]
|
||||
public bool? F_EnabledMark { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 备注
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_Description", ColumnDataType = "longtext", ColumnDescription = "备注")]
|
||||
public string F_Description { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 创建时间
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "创建时间")]
|
||||
public DateTime? F_CreatorTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 创建人Id
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_CreatorUserId", ColumnDataType = "nvarchar(50)", ColumnDescription = "创建人Id")]
|
||||
public string F_CreatorUserId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 修改时间
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "修改时间")]
|
||||
public DateTime? F_LastModifyTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 修改人Id
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_LastModifyUserId", ColumnDataType = "nvarchar(50)", ColumnDescription = "修改人Id")]
|
||||
public string F_LastModifyUserId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 删除时间
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "删除时间")]
|
||||
public DateTime? F_DeleteTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 删除人Id
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_DeleteUserId", ColumnDataType = "nvarchar(50)", ColumnDescription = "删除人Id")]
|
||||
public string F_DeleteUserId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否公共
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "是否公共")]
|
||||
public bool? F_IsPublic { get; set; }
|
||||
}
|
||||
}
|
||||
87
WaterCloud.Domain/Entity/SystemManage/QuickModuleEntity.cs
Normal file
87
WaterCloud.Domain/Entity/SystemManage/QuickModuleEntity.cs
Normal file
@@ -0,0 +1,87 @@
|
||||
//-----------------------------------------------------------------------
|
||||
// <copyright file=" QuickModule.cs" company="WaterCloud">
|
||||
// * Copyright (C) WaterCloud.Framework All Rights Reserved
|
||||
// * version : 1.0
|
||||
// * author : WaterCloud.Framework
|
||||
// * FileName: QuickModule.cs
|
||||
// * history : Created by T4 04/13/2020 16:51:14
|
||||
// </copyright>
|
||||
//-----------------------------------------------------------------------
|
||||
using SqlSugar;
|
||||
using System;
|
||||
|
||||
namespace WaterCloud.Domain.SystemManage
|
||||
{
|
||||
/// <summary>
|
||||
/// QuickModule Entity Model
|
||||
/// </summary>
|
||||
[SugarTable("sys_quickmodule")]
|
||||
public class QuickModuleEntity : IEntity<QuickModuleEntity>, ICreationAudited, IDeleteAudited, IModificationAudited
|
||||
{
|
||||
/// <summary>
|
||||
/// 主键Id
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "F_Id", IsPrimaryKey = true, ColumnDescription = "主键Id")]
|
||||
public string F_Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 模块Id
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_ModuleId", ColumnDataType = "nvarchar(50)", ColumnDescription = "模块Id", UniqueGroupNameList = new string[] { "sys_quickmodule" })]
|
||||
public string F_ModuleId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 删除标记
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "删除标记")]
|
||||
public Boolean? F_DeleteMark { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 有效标记
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "有效标记")]
|
||||
public Boolean? F_EnabledMark { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 备注
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_Description", ColumnDataType = "longtext", ColumnDescription = "备注")]
|
||||
public string F_Description { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 创建时间
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "创建时间")]
|
||||
public DateTime? F_CreatorTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 创建人Id
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_CreatorUserId", ColumnDataType = "nvarchar(50)", ColumnDescription = "创建人Id", UniqueGroupNameList = new string[] { "sys_quickmodule" })]
|
||||
public string F_CreatorUserId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 修改时间
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "修改时间")]
|
||||
public DateTime? F_LastModifyTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 修改人Id
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_LastModifyUserId", ColumnDataType = "nvarchar(50)", ColumnDescription = "修改人Id")]
|
||||
public string F_LastModifyUserId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 删除时间
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "删除时间")]
|
||||
public DateTime? F_DeleteTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 删除人Id
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_DeleteUserId", ColumnDataType = "nvarchar(50)", ColumnDescription = "删除人Id")]
|
||||
public string F_DeleteUserId { get; set; }
|
||||
}
|
||||
}
|
||||
105
WaterCloud.Domain/Entity/SystemManage/TemplateEntity.cs
Normal file
105
WaterCloud.Domain/Entity/SystemManage/TemplateEntity.cs
Normal file
@@ -0,0 +1,105 @@
|
||||
using System;
|
||||
using SqlSugar;
|
||||
|
||||
namespace WaterCloud.Domain.SystemManage
|
||||
{
|
||||
/// <summary>
|
||||
/// 创 建:超级管理员
|
||||
/// 日 期:2022-10-06 14:11
|
||||
/// 描 述:打印模板实体类
|
||||
/// </summary>
|
||||
[SugarTable("sys_template")]
|
||||
public class TemplateEntity : IEntity<TemplateEntity>,ICreationAudited,IModificationAudited,IDeleteAudited
|
||||
{
|
||||
/// <summary>
|
||||
/// 主键
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName="F_Id", ColumnDescription = "主键",IsPrimaryKey = true)]
|
||||
public string F_Id { get; set; }
|
||||
/// <summary>
|
||||
/// 模板名称
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName="F_TemplateName", ColumnDescription = "模板名称",ColumnDataType = "nvarchar(50)", IsNullable = true)]
|
||||
public string F_TemplateName { get; set; }
|
||||
/// <summary>
|
||||
/// 模板文件
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName="F_TemplateFile", ColumnDescription = "模板文件",ColumnDataType = "nvarchar(100)")]
|
||||
public string F_TemplateFile { get; set; }
|
||||
/// <summary>
|
||||
/// 模板执行库
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName="F_TemplateDBProvider", ColumnDescription = "模板执行库",ColumnDataType = "nvarchar(50)", IsNullable = true)]
|
||||
public string F_TemplateDBProvider { get; set; }
|
||||
/// <summary>
|
||||
/// 模板执行sql
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName="F_TemplateSql", ColumnDescription = "模板执行sql",ColumnDataType = "longtext", IsNullable = true)]
|
||||
public string F_TemplateSql { get; set; }
|
||||
/// <summary>
|
||||
/// 模板执行参数
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName="F_TemplateSqlParm", ColumnDescription = "模板执行参数",ColumnDataType = "longtext", IsNullable = true)]
|
||||
public string F_TemplateSqlParm { get; set; }
|
||||
/// <summary>
|
||||
/// 打印方式(1.Fastreport,2.水晶报表,3.html,4.pdf,5.图片,6.bartender)
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName="F_PrintType", ColumnDescription = "打印方式",ColumnDataType = "int", IsNullable = true)]
|
||||
public int? F_PrintType { get; set; }
|
||||
/// <summary>
|
||||
/// 是否批量
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "F_Batch", ColumnDescription = "是否批量", IsNullable = true)]
|
||||
public bool? F_Batch { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName="F_DeleteMark", ColumnDescription = "", IsNullable = true)]
|
||||
public bool? F_DeleteMark { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName="F_EnabledMark", ColumnDescription = "", IsNullable = true)]
|
||||
public bool? F_EnabledMark { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName="F_Description", ColumnDescription = "",ColumnDataType = "longtext", IsNullable = true)]
|
||||
public string F_Description { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName="F_CreatorTime", ColumnDescription = "", IsNullable = true)]
|
||||
public DateTime? F_CreatorTime { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName="F_CreatorUserId", ColumnDescription = "",ColumnDataType = "nvarchar(50)", IsNullable = true)]
|
||||
public string F_CreatorUserId { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName="F_CreatorUserName", ColumnDescription = "",ColumnDataType = "nvarchar(50)", IsNullable = true)]
|
||||
public string F_CreatorUserName { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName="F_LastModifyTime", ColumnDescription = "", IsNullable = true)]
|
||||
public DateTime? F_LastModifyTime { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName="F_LastModifyUserId", ColumnDescription = "",ColumnDataType = "nvarchar(50)", IsNullable = true)]
|
||||
public string F_LastModifyUserId { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName="F_DeleteTime", ColumnDescription = "", IsNullable = true)]
|
||||
public DateTime? F_DeleteTime { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName="F_DeleteUserId", ColumnDescription = "",ColumnDataType = "nvarchar(50)", IsNullable = true)]
|
||||
public string F_DeleteUserId { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,116 @@
|
||||
using SqlSugar;
|
||||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace WaterCloud.Domain.SystemOrganize
|
||||
{
|
||||
/// <summary>
|
||||
/// 创 建:超级管理员
|
||||
/// 日 期:2020-06-01 09:44
|
||||
/// 描 述:数据权限实体类
|
||||
/// </summary>
|
||||
[SugarTable("sys_dataprivilegerule")]
|
||||
public class DataPrivilegeRuleEntity : IEntity<DataPrivilegeRuleEntity>, ICreationAudited, IModificationAudited, IDeleteAudited
|
||||
{
|
||||
/// <summary>
|
||||
/// 主键Id
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(ColumnName = "F_Id", IsPrimaryKey = true, ColumnDescription = "主键Id")]
|
||||
public string F_Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 模块Id
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[Required(ErrorMessage = "模块不能为空")]
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_ModuleId", ColumnDataType = "nvarchar(50)", ColumnDescription = "模块Id", UniqueGroupNameList = new string[] { "sys_dataprivilegerule" })]
|
||||
public string F_ModuleId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 模块编号
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_ModuleCode", ColumnDataType = "nvarchar(50)", ColumnDescription = "模块编号")]
|
||||
public string F_ModuleCode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 权限规则
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_PrivilegeRules", ColumnDataType = "longtext", ColumnDescription = "权限规则")]
|
||||
public string F_PrivilegeRules { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 排序
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[Required(ErrorMessage = "排序不能为空")]
|
||||
[Range(0, 99999999, ErrorMessage = "排序大小必须介于1~99999999之间")]
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "排序")]
|
||||
public int? F_SortCode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 删除标记
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "删除标记")]
|
||||
public bool? F_DeleteMark { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 有效标记
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "有效标记")]
|
||||
public bool? F_EnabledMark { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 备注
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_Description", ColumnDataType = "longtext", ColumnDescription = "备注")]
|
||||
public string F_Description { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 创建时间
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "创建时间")]
|
||||
public DateTime? F_CreatorTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 创建人Id
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_CreatorUserId", ColumnDataType = "nvarchar(50)", ColumnDescription = "创建人Id")]
|
||||
public string F_CreatorUserId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 修改时间
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "修改时间")]
|
||||
public DateTime? F_LastModifyTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 修改人Id
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_LastModifyUserId", ColumnDataType = "nvarchar(50)", ColumnDescription = "修改人Id")]
|
||||
public string F_LastModifyUserId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 删除时间
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "删除时间")]
|
||||
public DateTime? F_DeleteTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 删除人Id
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_DeleteUserId", ColumnDataType = "nvarchar(50)", ColumnDescription = "删除人Id")]
|
||||
public string F_DeleteUserId { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
using SqlSugar;
|
||||
|
||||
namespace WaterCloud.Domain.SystemOrganize
|
||||
{
|
||||
/// <summary>
|
||||
/// 创 建:超级管理员
|
||||
/// 日 期:2023-12-25 08:54
|
||||
/// 描 述:组织实体扩展类
|
||||
/// </summary>
|
||||
[SugarTable("sys_organize")]
|
||||
public class OrganizeExtend : OrganizeEntity
|
||||
{
|
||||
[SugarColumn(IsIgnore = true)]
|
||||
//使用导入错误信息
|
||||
public string ErrorMsg { get; set; }
|
||||
[SugarColumn(IsIgnore = true)]
|
||||
public string F_ManagerName { get; set; }
|
||||
}
|
||||
}
|
||||
27
WaterCloud.Domain/Entity/SystemOrganize/Extend/RoleExtend.cs
Normal file
27
WaterCloud.Domain/Entity/SystemOrganize/Extend/RoleExtend.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
using SqlSugar;
|
||||
|
||||
namespace WaterCloud.Domain.SystemOrganize
|
||||
{
|
||||
/// <summary>
|
||||
/// 创 建:超级管理员
|
||||
/// 日 期:2020-08-06 08:54
|
||||
/// 描 述:角色类别实体扩展类
|
||||
/// </summary>
|
||||
[SugarTable("sys_role")]
|
||||
public class RoleExtend : RoleEntity
|
||||
{
|
||||
[SugarColumn(IsIgnore = true)]
|
||||
//使用导入错误信息
|
||||
public string ErrorMsg { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 备注
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsIgnore = true)]
|
||||
public string F_Remark { get; set; }
|
||||
|
||||
[SugarColumn(IsIgnore = true)]
|
||||
public string F_CompanyName { get; set; }
|
||||
}
|
||||
}
|
||||
33
WaterCloud.Domain/Entity/SystemOrganize/Extend/UserExtend.cs
Normal file
33
WaterCloud.Domain/Entity/SystemOrganize/Extend/UserExtend.cs
Normal file
@@ -0,0 +1,33 @@
|
||||
using SqlSugar;
|
||||
|
||||
namespace WaterCloud.Domain.SystemOrganize
|
||||
{
|
||||
/// <summary>
|
||||
/// 创 建:超级管理员
|
||||
/// 日 期:2020-08-06 08:54
|
||||
/// 描 述:用户实体扩展类
|
||||
/// </summary>
|
||||
[SugarTable("sys_user")]
|
||||
public class UserExtend : UserEntity
|
||||
{
|
||||
//使用导入错误信息
|
||||
[SugarColumn(IsIgnore = true)]
|
||||
public string ErrorMsg { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 备注
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsIgnore = true)]
|
||||
public string F_Remark { get; set; }
|
||||
|
||||
[SugarColumn(IsIgnore = true)]
|
||||
public string F_DutyName { get; set; }
|
||||
|
||||
[SugarColumn(IsIgnore = true)]
|
||||
public string F_CompanyName { get; set; }
|
||||
|
||||
[SugarColumn(IsIgnore = true)]
|
||||
public string F_ManagerName { get; set; }
|
||||
}
|
||||
}
|
||||
102
WaterCloud.Domain/Entity/SystemOrganize/NoticeEntity.cs
Normal file
102
WaterCloud.Domain/Entity/SystemOrganize/NoticeEntity.cs
Normal file
@@ -0,0 +1,102 @@
|
||||
//-----------------------------------------------------------------------
|
||||
// <copyright file=" Notice.cs" company="WaterCloud">
|
||||
// * Copyright (C) WaterCloud.Framework All Rights Reserved
|
||||
// * version : 1.0
|
||||
// * author : WaterCloud.Framework
|
||||
// * FileName: Notice.cs
|
||||
// * history : Created by T4 04/13/2020 16:51:21
|
||||
// </copyright>
|
||||
//-----------------------------------------------------------------------
|
||||
using SqlSugar;
|
||||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace WaterCloud.Domain.SystemOrganize
|
||||
{
|
||||
/// <summary>
|
||||
/// Notice Entity Model
|
||||
/// </summary>
|
||||
[SugarTable("sys_notice")]
|
||||
public class NoticeEntity : IEntity<NoticeEntity>, ICreationAudited, IDeleteAudited, IModificationAudited
|
||||
{
|
||||
/// <summary>
|
||||
/// 主键Id
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "F_Id", IsPrimaryKey = true, ColumnDescription = "主键Id")]
|
||||
public string F_Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 标题
|
||||
/// </summary>
|
||||
[Required(ErrorMessage = "标题不能为空")]
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_Title", ColumnDataType = "nvarchar(50)", ColumnDescription = "标题", UniqueGroupNameList = new string[] { "sys_notice" })]
|
||||
public string F_Title { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 内容
|
||||
/// </summary>
|
||||
[Required(ErrorMessage = "内容不能为空")]
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_Content", ColumnDataType = "longtext", ColumnDescription = "内容")]
|
||||
public string F_Content { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 删除标记
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "删除标记")]
|
||||
public Boolean? F_DeleteMark { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 有效标记
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "有效标记")]
|
||||
public Boolean? F_EnabledMark { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 备注
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_Description", ColumnDataType = "longtext", ColumnDescription = "删除人Id")]
|
||||
public string F_Description { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 创建时间
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "创建时间")]
|
||||
public DateTime? F_CreatorTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 创建人Id
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_CreatorUserId", ColumnDataType = "nvarchar(50)", ColumnDescription = "创建人Id")]
|
||||
public string F_CreatorUserId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 创建人姓名
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_CreatorUserName", ColumnDataType = "nvarchar(50)", ColumnDescription = "创建人姓名")]
|
||||
public string F_CreatorUserName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 修改时间
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "修改时间")]
|
||||
public DateTime? F_LastModifyTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 修改人Id
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_LastModifyUserId", ColumnDataType = "nvarchar(50)", ColumnDescription = "修改人Id")]
|
||||
public string F_LastModifyUserId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 删除时间
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "删除时间")]
|
||||
public DateTime? F_DeleteTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 删除人Id
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_DeleteUserId", ColumnDataType = "nvarchar(50)", ColumnDescription = "删除人Id")]
|
||||
public string F_DeleteUserId { get; set; }
|
||||
}
|
||||
}
|
||||
191
WaterCloud.Domain/Entity/SystemOrganize/OrganizeEntity.cs
Normal file
191
WaterCloud.Domain/Entity/SystemOrganize/OrganizeEntity.cs
Normal file
@@ -0,0 +1,191 @@
|
||||
/*******************************************************************************
|
||||
* Copyright © 2020 WaterCloud.Framework 版权所有
|
||||
* Author: WaterCloud
|
||||
* Description: WaterCloud快速开发平台
|
||||
* Website:
|
||||
*********************************************************************************/
|
||||
|
||||
using SqlSugar;
|
||||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace WaterCloud.Domain.SystemOrganize
|
||||
{
|
||||
/// <summary>
|
||||
/// 机构实体
|
||||
/// </summary>
|
||||
[SugarTable("sys_organize")]
|
||||
public class OrganizeEntity : IEntity<OrganizeEntity>, ICreationAudited, IDeleteAudited, IModificationAudited
|
||||
{
|
||||
/// <summary>
|
||||
/// 主键Id
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "F_Id", IsPrimaryKey = true, ColumnDescription = "主键Id")]
|
||||
public string F_Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 父级Id
|
||||
/// </summary>
|
||||
[Required(ErrorMessage = "父级不能为空")]
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_ParentId", ColumnDataType = "nvarchar(50)", ColumnDescription = "父级Id")]
|
||||
public string F_ParentId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 层级
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_Layers", ColumnDescription = "层级")]
|
||||
public int? F_Layers { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 编号
|
||||
/// </summary>
|
||||
[Required(ErrorMessage = "编号不能为空")]
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_EnCode", ColumnDataType = "nvarchar(50)", ColumnDescription = "编号", UniqueGroupNameList = new string[] { "sys_organize" })]
|
||||
public string F_EnCode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 全名称
|
||||
/// </summary>
|
||||
[Required(ErrorMessage = "名称不能为空")]
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_FullName", ColumnDataType = "nvarchar(50)", ColumnDescription = "全名称")]
|
||||
public string F_FullName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 简称
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_ShortName", ColumnDataType = "nvarchar(50)", ColumnDescription = "简称")]
|
||||
public string F_ShortName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 类型
|
||||
/// </summary>
|
||||
[Required(ErrorMessage = "类型不能为空")]
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_CategoryId", ColumnDataType = "nvarchar(50)", ColumnDescription = "类型")]
|
||||
public string F_CategoryId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 部门负责人
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_ManagerId", ColumnDataType = "nvarchar(50)")]
|
||||
public string F_ManagerId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 电话
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_TelePhone", ColumnDataType = "nvarchar(20)", ColumnDescription = "电话")]
|
||||
public string F_TelePhone { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 手机
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_MobilePhone", ColumnDataType = "nvarchar(20)", ColumnDescription = "手机")]
|
||||
public string F_MobilePhone { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 微信号
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_WeChat", ColumnDataType = "nvarchar(50)", ColumnDescription = "微信号")]
|
||||
public string F_WeChat { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 传真号
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_Fax", ColumnDataType = "nvarchar(20)", ColumnDescription = "传真号")]
|
||||
public string F_Fax { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 邮箱
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_Email", ColumnDataType = "nvarchar(50)", ColumnDescription = "邮箱")]
|
||||
public string F_Email { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 区域Id
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_AreaId", ColumnDataType = "nvarchar(50)", ColumnDescription = "区域Id")]
|
||||
public string F_AreaId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 地址
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_Address", ColumnDataType = "longtext", ColumnDescription = "地址")]
|
||||
public string F_Address { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 允许修改
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "允许修改")]
|
||||
public bool? F_AllowEdit { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 允许删除
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "允许删除")]
|
||||
public bool? F_AllowDelete { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 排序码
|
||||
/// </summary>
|
||||
[Required(ErrorMessage = "排序不能为空")]
|
||||
[Range(0, 99999999, ErrorMessage = "排序大小必须介于1~99999999之间")]
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "排序码")]
|
||||
public int? F_SortCode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 删除标记
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "删除标记")]
|
||||
public bool? F_DeleteMark { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 有效标记
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "有效标记")]
|
||||
public bool? F_EnabledMark { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 备注
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_Description", ColumnDataType = "longtext", ColumnDescription = "备注")]
|
||||
public string F_Description { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 创建时间
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "创建时间")]
|
||||
public DateTime? F_CreatorTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 创建人Id
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_CreatorUserId", ColumnDataType = "nvarchar(50)", ColumnDescription = "创建人Id")]
|
||||
public string F_CreatorUserId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 修改时间
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "修改时间")]
|
||||
public DateTime? F_LastModifyTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 修改人Id
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_LastModifyUserId", ColumnDataType = "nvarchar(50)", ColumnDescription = "修改人Id")]
|
||||
public string F_LastModifyUserId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 删除时间
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "删除时间")]
|
||||
public DateTime? F_DeleteTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 删除人Id
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_DeleteUserId", ColumnDataType = "nvarchar(50)", ColumnDescription = "删除人Id")]
|
||||
public string F_DeleteUserId { get; set; }
|
||||
|
||||
[SugarColumn(IsIgnore = true)]
|
||||
public bool LAY_CHECKED { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,67 @@
|
||||
/*******************************************************************************
|
||||
* Copyright © 2020 WaterCloud.Framework 版权所有
|
||||
* Author: WaterCloud
|
||||
* Description: WaterCloud快速开发平台
|
||||
* Website:
|
||||
*********************************************************************************/
|
||||
|
||||
using SqlSugar;
|
||||
using System;
|
||||
|
||||
namespace WaterCloud.Domain.SystemOrganize
|
||||
{
|
||||
/// <summary>
|
||||
/// 角色权限实体
|
||||
/// </summary>
|
||||
[SugarTable("sys_roleauthorize")]
|
||||
public class RoleAuthorizeEntity : IEntity<RoleAuthorizeEntity>, ICreationAudited
|
||||
{
|
||||
/// <summary>
|
||||
/// 主键Id
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "F_Id", IsPrimaryKey = true, ColumnDescription = "主键Id")]
|
||||
public string F_Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 项目类型(1菜单,2按钮,3字段)
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "项目类型")]
|
||||
public int? F_ItemType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// /项目Id
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_ItemId", ColumnDataType = "nvarchar(50)", ColumnDescription = "项目Id")]
|
||||
public string F_ItemId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 目标类型(1角色,2租户)
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "目标类型")]
|
||||
public int? F_ObjectType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 目标Id
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_ObjectId", ColumnDataType = "nvarchar(50)", ColumnDescription = "目标Id")]
|
||||
public string F_ObjectId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 排序码
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "排序码")]
|
||||
public int? F_SortCode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 创建时间
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "创建时间")]
|
||||
public DateTime? F_CreatorTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 创建人Id
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_CreatorUserId", ColumnDataType = "nvarchar(50)", ColumnDescription = "创建人Id")]
|
||||
public string F_CreatorUserId { get; set; }
|
||||
}
|
||||
}
|
||||
140
WaterCloud.Domain/Entity/SystemOrganize/RoleEntity.cs
Normal file
140
WaterCloud.Domain/Entity/SystemOrganize/RoleEntity.cs
Normal file
@@ -0,0 +1,140 @@
|
||||
/*******************************************************************************
|
||||
* Copyright © 2020 WaterCloud.Framework 版权所有
|
||||
* Author: WaterCloud
|
||||
* Description: WaterCloud快速开发平台
|
||||
* Website:
|
||||
*********************************************************************************/
|
||||
|
||||
using MiniExcelLibs.Attributes;
|
||||
using SqlSugar;
|
||||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace WaterCloud.Domain.SystemOrganize
|
||||
{
|
||||
/// <summary>
|
||||
/// 角色实体
|
||||
/// </summary>
|
||||
[SugarTable("sys_role")]
|
||||
public class RoleEntity : IEntity<RoleEntity>, ICreationAudited, IDeleteAudited, IModificationAudited
|
||||
{
|
||||
/// <summary>
|
||||
/// 主键Id
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "F_Id", IsPrimaryKey = true, ColumnDescription = "主键Id")]
|
||||
public string F_Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 公司Id
|
||||
/// </summary>
|
||||
[Required(ErrorMessage = "公司不能为空")]
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_CompanyId", ColumnDataType = "nvarchar(50)", ColumnDescription = "公司Id")]
|
||||
public string F_CompanyId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 类型
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "类型")]
|
||||
public int? F_Category { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 编号
|
||||
/// </summary>
|
||||
[Required(ErrorMessage = "编号不能为空")]
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_EnCode", ColumnDataType = "nvarchar(50)", ColumnDescription = "编号", UniqueGroupNameList = new string[] { "sys_role" })]
|
||||
[ExcelColumnName("岗位编号")]
|
||||
public string F_EnCode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 名称
|
||||
/// </summary>
|
||||
[Required(ErrorMessage = "名称不能为空")]
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_FullName", ColumnDataType = "nvarchar(50)", ColumnDescription = "名称")]
|
||||
[ExcelColumnName("岗位名称")]
|
||||
public string F_FullName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 类型
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_Type", ColumnDataType = "nvarchar(50)", ColumnDescription = "类型")]
|
||||
public string F_Type { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 允许修改
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "允许修改")]
|
||||
public bool? F_AllowEdit { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 允许删除
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "允许删除")]
|
||||
public bool? F_AllowDelete { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 排序码
|
||||
/// </summary>
|
||||
[Required(ErrorMessage = "排序不能为空")]
|
||||
[Range(0, 99999999, ErrorMessage = "排序大小必须介于1~99999999之间")]
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "排序码")]
|
||||
public int? F_SortCode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 删除标记
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "删除标记")]
|
||||
public bool? F_DeleteMark { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 有效标记
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "有效标记")]
|
||||
public bool? F_EnabledMark { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 备注
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_Description", ColumnDataType = "longtext", ColumnDescription = "备注")]
|
||||
[ExcelColumnName("备注")]
|
||||
public string F_Description { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 创建时间
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "创建时间")]
|
||||
public DateTime? F_CreatorTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 创建人Id
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_CreatorUserId", ColumnDataType = "nvarchar(50)", ColumnDescription = "创建人Id")]
|
||||
public string F_CreatorUserId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 修改时间
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "修改时间")]
|
||||
public DateTime? F_LastModifyTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 修改人Id
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_LastModifyUserId", ColumnDataType = "nvarchar(50)", ColumnDescription = "修改人Id")]
|
||||
public string F_LastModifyUserId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 删除时间
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "删除时间")]
|
||||
public DateTime? F_DeleteTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 删除人Id
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_DeleteUserId", ColumnDataType = "nvarchar(50)", ColumnDescription = "删除人Id")]
|
||||
public string F_DeleteUserId { get; set; }
|
||||
|
||||
[SugarColumn(IsIgnore = true)]
|
||||
public bool LAY_CHECKED { get; set; }
|
||||
}
|
||||
}
|
||||
184
WaterCloud.Domain/Entity/SystemOrganize/SystemSetEntity.cs
Normal file
184
WaterCloud.Domain/Entity/SystemOrganize/SystemSetEntity.cs
Normal file
@@ -0,0 +1,184 @@
|
||||
using SqlSugar;
|
||||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace WaterCloud.Domain.SystemOrganize
|
||||
{
|
||||
/// <summary>
|
||||
/// 创 建:超级管理员
|
||||
/// 日 期:2020-06-12 13:50
|
||||
/// 描 述:系统设置实体类
|
||||
/// </summary>
|
||||
[SugarTable("sys_systemset")]
|
||||
public class SystemSetEntity : IEntity<SystemSetEntity>, ICreationAudited, IModificationAudited, IDeleteAudited
|
||||
{
|
||||
/// <summary>
|
||||
/// 主键Id
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(ColumnName = "F_Id", IsPrimaryKey = true, ColumnDescription = "主键Id")]
|
||||
public string F_Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Logo图标
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[Required(ErrorMessage = "Logo图标不能为空")]
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_Logo", ColumnDataType = "nvarchar(50)", ColumnDescription = "Logo图标")]
|
||||
public string F_Logo { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Logo编号
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[Required(ErrorMessage = "Logo编号不能为空")]
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_LogoCode", ColumnDataType = "nvarchar(50)", ColumnDescription = "Logo编号")]
|
||||
public string F_LogoCode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 项目名称
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[Required(ErrorMessage = "项目名称不能为空")]
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_ProjectName", ColumnDataType = "nvarchar(50)", ColumnDescription = "项目名称")]
|
||||
public string F_ProjectName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 公司名称
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[Required(ErrorMessage = "公司名称不能为空")]
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_CompanyName", ColumnDataType = "nvarchar(50)", ColumnDescription = "公司名称")]
|
||||
public string F_CompanyName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 系统账号
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[Required(ErrorMessage = "系统账户不能为空")]
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_AdminAccount", ColumnDataType = "nvarchar(50)", ColumnDescription = "系统账号")]
|
||||
public string F_AdminAccount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 系统密码
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[Required(ErrorMessage = "系统密码不能为空")]
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_AdminPassword", ColumnDataType = "nvarchar(50)", ColumnDescription = "系统密码")]
|
||||
public string F_AdminPassword { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 删除标记
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "删除标记")]
|
||||
public bool? F_DeleteMark { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 有效标记
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "有效标记")]
|
||||
public bool? F_EnabledMark { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 备注
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_Description", ColumnDataType = "longtext", ColumnDescription = "备注")]
|
||||
public string F_Description { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 创建时间
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "创建时间")]
|
||||
public DateTime? F_CreatorTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 创建人Id
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_CreatorUserId", ColumnDataType = "nvarchar(50)", ColumnDescription = "创建人Id")]
|
||||
public string F_CreatorUserId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 修改时间
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "修改时间")]
|
||||
public DateTime? F_LastModifyTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 修改人Id
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_LastModifyUserId", ColumnDataType = "nvarchar(50)", ColumnDescription = "修改人Id")]
|
||||
public string F_LastModifyUserId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 删除时间
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "删除时间")]
|
||||
public DateTime? F_DeleteTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 删除人Id
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_DeleteUserId", ColumnDataType = "longtext", ColumnDescription = "删除人Id")]
|
||||
public string F_DeleteUserId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 联系电话
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[Required(ErrorMessage = "联系电话不能为空")]
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_MobilePhone", ColumnDataType = "nvarchar(20)", ColumnDescription = "联系电话")]
|
||||
public string F_MobilePhone { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 联系人
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[Required(ErrorMessage = "联系人不能为空")]
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_PrincipalMan", ColumnDataType = "nvarchar(50)", ColumnDescription = "联系人")]
|
||||
public string F_PrincipalMan { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 到期时间
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[Required(ErrorMessage = "到期时间不能为空")]
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "到期时间")]
|
||||
public DateTime? F_EndTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 数据库连接串
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_DbString", ColumnDataType = "longtext", ColumnDescription = "数据库连接串")]
|
||||
public string F_DbString { get; set; }
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_DBProvider", ColumnDataType = "nvarchar(50)")]
|
||||
public string F_DBProvider { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 域名
|
||||
/// </summary>
|
||||
[Required(ErrorMessage = "域名不能为空")]
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_HostUrl", ColumnDataType = "longtext", ColumnDescription = "域名")]
|
||||
public string F_HostUrl { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 数据库序号
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_DbNumber", ColumnDataType = "nvarchar(50)", ColumnDescription = "数据库序号", UniqueGroupNameList = new string[] { "sys_systemset" })]
|
||||
public string F_DbNumber { get; set; }
|
||||
}
|
||||
}
|
||||
262
WaterCloud.Domain/Entity/SystemOrganize/UserEntity.cs
Normal file
262
WaterCloud.Domain/Entity/SystemOrganize/UserEntity.cs
Normal file
@@ -0,0 +1,262 @@
|
||||
/*******************************************************************************
|
||||
* Copyright © 2020 WaterCloud.Framework 版权所有
|
||||
* Author: WaterCloud
|
||||
* Description: WaterCloud快速开发平台
|
||||
* Website:
|
||||
*********************************************************************************/
|
||||
|
||||
using SqlSugar;
|
||||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace WaterCloud.Domain.SystemOrganize
|
||||
{
|
||||
/// <summary>
|
||||
/// 用户实体
|
||||
/// </summary>
|
||||
[SugarTable("sys_user")]
|
||||
public class UserEntity : IEntity<UserEntity>, ICreationAudited, IDeleteAudited, IModificationAudited
|
||||
{
|
||||
/// <summary>
|
||||
/// 主键Id
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "F_Id", IsPrimaryKey = true, ColumnDescription = "主键Id")]
|
||||
public string F_Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 账户
|
||||
/// </summary>
|
||||
[Required(ErrorMessage = "账户不能为空")]
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_Account", ColumnDataType = "nvarchar(50)", ColumnDescription = "账户", UniqueGroupNameList = new string[] { "sys_user" })]
|
||||
public string F_Account { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 姓名
|
||||
/// </summary>
|
||||
[Required(ErrorMessage = "姓名不能为空")]
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_RealName", ColumnDataType = "nvarchar(50)", ColumnDescription = "姓名")]
|
||||
public string F_RealName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 昵称
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_NickName", ColumnDataType = "nvarchar(50)", ColumnDescription = "昵称")]
|
||||
public string F_NickName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 头像
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_HeadIcon", ColumnDataType = "nvarchar(50)", ColumnDescription = "头像")]
|
||||
public string F_HeadIcon { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 性别
|
||||
/// </summary>
|
||||
[Required(ErrorMessage = "性别不能为空")]
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "性别")]
|
||||
public bool? F_Gender { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 生日
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "生日")]
|
||||
public DateTime? F_Birthday { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 手机
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_MobilePhone", ColumnDataType = "nvarchar(20)", ColumnDescription = "手机")]
|
||||
public string F_MobilePhone { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 邮箱
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_Email", ColumnDataType = "nvarchar(50)", ColumnDescription = "邮箱")]
|
||||
public string F_Email { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 微信号
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_WeChat", ColumnDataType = "nvarchar(50)", ColumnDescription = "微信号")]
|
||||
public string F_WeChat { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 管理Id
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_ManagerId", ColumnDataType = "nvarchar(50)", ColumnDescription = "管理Id")]
|
||||
public string F_ManagerId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 安全级别
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "安全级别")]
|
||||
public int? F_SecurityLevel { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 个性签名
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_Signature", ColumnDataType = "longtext", ColumnDescription = "个性签名")]
|
||||
public string F_Signature { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 公司Id
|
||||
/// </summary>
|
||||
[Required(ErrorMessage = "公司不能为空")]
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_CompanyId", ColumnDataType = "nvarchar(50)", ColumnDescription = "公司Id")]
|
||||
public string F_CompanyId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 部门Id
|
||||
/// </summary>
|
||||
[Required(ErrorMessage = "部门不能为空")]
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_OrganizeId", ColumnDataType = "longtext", ColumnDescription = "部门Id")]
|
||||
public string F_OrganizeId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 角色Id
|
||||
/// </summary>
|
||||
[Required(ErrorMessage = "角色不能为空")]
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_RoleId", ColumnDataType = "longtext", ColumnDescription = "角色Id")]
|
||||
public string F_RoleId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 岗位Id
|
||||
/// </summary>
|
||||
[Required(ErrorMessage = "职位不能为空")]
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_DutyId", ColumnDataType = "longtext", ColumnDescription = "岗位Id")]
|
||||
public string F_DutyId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否管理员
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "是否管理员")]
|
||||
public bool? F_IsAdmin { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否老板
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "是否老板")]
|
||||
public bool? F_IsBoss { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否高管
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "是否高管")]
|
||||
public bool? F_IsSenior { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否部门领导
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "是否部门领导")]
|
||||
public bool? F_IsLeaderInDepts { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 排序码
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "排序码")]
|
||||
public int? F_SortCode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 删除标记
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "删除标记")]
|
||||
public bool? F_DeleteMark { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 有效标记
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "有效标记")]
|
||||
public bool? F_EnabledMark { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 备注
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_Description", ColumnDataType = "longtext", ColumnDescription = "备注")]
|
||||
public string F_Description { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 创建时间
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "创建时间")]
|
||||
public DateTime? F_CreatorTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 创建人Id
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_CreatorUserId", ColumnDataType = "nvarchar(50)", ColumnDescription = "创建人Id")]
|
||||
public string F_CreatorUserId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 修改时间
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "修改时间")]
|
||||
public DateTime? F_LastModifyTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 修改人Id
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_LastModifyUserId", ColumnDataType = "nvarchar(50)", ColumnDescription = "修改人Id")]
|
||||
public string F_LastModifyUserId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 删除时间
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "删除时间")]
|
||||
public DateTime? F_DeleteTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 删除人Id
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_DeleteUserId", ColumnDataType = "nvarchar(50)", ColumnDescription = "删除人Id")]
|
||||
public string F_DeleteUserId { get; set; }
|
||||
|
||||
// 拓展字段,2019-03-03
|
||||
/// <summary>
|
||||
/// 钉钉用户Id
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_DingTalkUserId", ColumnDataType = "nvarchar(50)", ColumnDescription = "钉钉用户Id")]
|
||||
public string F_DingTalkUserId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 钉钉用户名称
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_DingTalkUserName", ColumnDataType = "nvarchar(50)", ColumnDescription = "钉钉用户名称")]
|
||||
public string F_DingTalkUserName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 钉钉头像
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_DingTalkAvatar", ColumnDataType = "nvarchar(100)", ColumnDescription = "钉钉头像")]
|
||||
public string F_DingTalkAvatar { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 微信开放Id
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_WxOpenId", ColumnDataType = "nvarchar(50)", ColumnDescription = "微信开放Id")]
|
||||
public string F_WxOpenId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 微信昵称
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_WxNickName", ColumnDataType = "nvarchar(50)", ColumnDescription = "微信昵称")]
|
||||
public string F_WxNickName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 微信头像
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_HeadImgUrl", ColumnDataType = "nvarchar(100)", ColumnDescription = "微信头像")]
|
||||
public string F_HeadImgUrl { get; set; }
|
||||
|
||||
[SugarColumn(IsIgnore = true)]
|
||||
public string F_OrganizeName { get; set; }
|
||||
|
||||
[SugarColumn(IsIgnore = true)]
|
||||
public string F_RoleName { get; set; }
|
||||
|
||||
[SugarColumn(IsIgnore = true)]
|
||||
public bool LAY_CHECKED { get; set; }
|
||||
|
||||
[SugarColumn(IsIgnore = true)]
|
||||
public int MsgCout { get; set; }
|
||||
}
|
||||
}
|
||||
150
WaterCloud.Domain/Entity/SystemOrganize/UserLogOnEntity.cs
Normal file
150
WaterCloud.Domain/Entity/SystemOrganize/UserLogOnEntity.cs
Normal file
@@ -0,0 +1,150 @@
|
||||
/*******************************************************************************
|
||||
* Copyright © 2020 WaterCloud.Framework 版权所有
|
||||
* Author: WaterCloud
|
||||
* Description: WaterCloud快速开发平台
|
||||
* Website:
|
||||
*********************************************************************************/
|
||||
|
||||
using SqlSugar;
|
||||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace WaterCloud.Domain.SystemOrganize
|
||||
{
|
||||
[SugarTable("sys_userlogon")]
|
||||
public class UserLogOnEntity
|
||||
{
|
||||
/// <summary>
|
||||
/// 主键Id
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "F_Id", IsPrimaryKey = true, ColumnDescription = "主键Id")]
|
||||
public string F_Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 用户Id
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_UserId", ColumnDataType = "nvarchar(50)", ColumnDescription = "用户Id", UniqueGroupNameList = new string[] { "sys_userlogon" })]
|
||||
public string F_UserId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 用户密码
|
||||
/// </summary>
|
||||
[Required(ErrorMessage = "密码不能为空")]
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_UserPassword", ColumnDataType = "nvarchar(50)", ColumnDescription = "用户密码")]
|
||||
public string F_UserPassword { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 用户密钥
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_UserSecretkey", ColumnDataType = "nvarchar(50)", ColumnDescription = "用户密钥")]
|
||||
public string F_UserSecretkey { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 登录开始时间
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "登录开始时间")]
|
||||
public DateTime? F_AllowStartTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 登录结束时间
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "登录结束时间")]
|
||||
public DateTime? F_AllowEndTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 锁定开始时间
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "锁定开始时间")]
|
||||
public DateTime? F_LockStartDate { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 锁定结束时间
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "锁定结束时间")]
|
||||
public DateTime? F_LockEndDate { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 第一次访问时间
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "第一次访问时间")]
|
||||
public DateTime? F_FirstVisitTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 上一次访问时间
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "上一次访问时间")]
|
||||
public DateTime? F_PreviousVisitTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 最后访问时间
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "最后访问时间")]
|
||||
public DateTime? F_LastVisitTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 修改密码时间
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "修改密码时间")]
|
||||
public DateTime? F_ChangePasswordDate { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否允许多用户登录
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "是否允许多用户登录")]
|
||||
public bool? F_MultiUserLogin { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 登录次数
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "登录次数")]
|
||||
public int? F_LogOnCount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否在线
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "是否在线")]
|
||||
public bool? F_UserOnLine { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 密保问题
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_Question", ColumnDataType = "nvarchar(50)", ColumnDescription = "密保问题")]
|
||||
public string F_Question { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 密保答案
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_AnswerQuestion", ColumnDataType = "longtext", ColumnDescription = "密保答案")]
|
||||
public string F_AnswerQuestion { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否校验登录IP
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "是否校验登录IP")]
|
||||
public bool? F_CheckIPAddress { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 系统语言
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_Language", ColumnDataType = "nvarchar(50)", ColumnDescription = "系统语言")]
|
||||
public string F_Language { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 系统主题
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_Theme", ColumnDataType = "nvarchar(50)", ColumnDescription = "系统主题")]
|
||||
public string F_Theme { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 登录session
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_LoginSession", ColumnDataType = "nvarchar(100)", ColumnDescription = "登录session")]
|
||||
public string F_LoginSession { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 错误码
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "错误码")]
|
||||
public Int32 F_ErrorNum { get; set; }
|
||||
}
|
||||
}
|
||||
112
WaterCloud.Domain/Entity/SystemSecurity/FilterIPEntity.cs
Normal file
112
WaterCloud.Domain/Entity/SystemSecurity/FilterIPEntity.cs
Normal file
@@ -0,0 +1,112 @@
|
||||
/*******************************************************************************
|
||||
* Copyright © 2020 WaterCloud.Framework 版权所有
|
||||
* Author: WaterCloud
|
||||
* Description: WaterCloud快速开发平台
|
||||
* Website:
|
||||
*********************************************************************************/
|
||||
|
||||
using SqlSugar;
|
||||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace WaterCloud.Domain.SystemSecurity
|
||||
{
|
||||
/// <summary>
|
||||
/// IP过滤实体
|
||||
/// </summary>
|
||||
[SugarTable("sys_filterip")]
|
||||
public class FilterIPEntity : IEntity<FilterIPEntity>, ICreationAudited, IDeleteAudited, IModificationAudited
|
||||
{
|
||||
/// <summary>
|
||||
/// 主键Id
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "F_Id", IsPrimaryKey = true, ColumnDescription = "主键Id")]
|
||||
public string F_Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 类型
|
||||
/// </summary>
|
||||
[Required(ErrorMessage = "类型不能为空")]
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "类型")]
|
||||
public bool? F_Type { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 起始IP
|
||||
/// </summary>
|
||||
[Required(ErrorMessage = "起始IP不能为空")]
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_StartIP", ColumnDataType = "nvarchar(50)", ColumnDescription = "起始IP")]
|
||||
public string F_StartIP { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 结束IP
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_EndIP", ColumnDataType = "nvarchar(50)", ColumnDescription = "结束IP")]
|
||||
public string F_EndIP { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 排序码
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "排序码")]
|
||||
public int? F_SortCode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 删除标记
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "删除标记")]
|
||||
public bool? F_DeleteMark { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 有效标记
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "有效标记")]
|
||||
public bool? F_EnabledMark { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 备注
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_Description", ColumnDataType = "longtext", ColumnDescription = "备注")]
|
||||
public string F_Description { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 创建时间
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "创建时间")]
|
||||
public DateTime? F_CreatorTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 创建人Id
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_CreatorUserId", ColumnDataType = "nvarchar(50)", ColumnDescription = "创建人Id")]
|
||||
public string F_CreatorUserId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 修改时间
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "修改时间")]
|
||||
public DateTime? F_LastModifyTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 修改人Id
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_LastModifyUserId", ColumnDataType = "nvarchar(50)", ColumnDescription = "修改人Id")]
|
||||
public string F_LastModifyUserId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 删除时间
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "删除时间")]
|
||||
public DateTime? F_DeleteTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 删除人Id
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_DeleteUserId", ColumnDataType = "nvarchar(50)", ColumnDescription = "删除人Id")]
|
||||
public string F_DeleteUserId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 删除时间
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "到期时间")]
|
||||
public DateTime? F_EndTime { get; set; }
|
||||
}
|
||||
}
|
||||
122
WaterCloud.Domain/Entity/SystemSecurity/LogEntity.cs
Normal file
122
WaterCloud.Domain/Entity/SystemSecurity/LogEntity.cs
Normal file
@@ -0,0 +1,122 @@
|
||||
/*******************************************************************************
|
||||
* Copyright © 2020 WaterCloud.Framework 版权所有
|
||||
* Author: WaterCloud
|
||||
* Description: WaterCloud快速开发平台
|
||||
* Website:
|
||||
*********************************************************************************/
|
||||
|
||||
using SqlSugar;
|
||||
using System;
|
||||
|
||||
namespace WaterCloud.Domain.SystemSecurity
|
||||
{
|
||||
/// <summary>
|
||||
/// 日志实体
|
||||
/// </summary>
|
||||
[SugarTable("sys_log")]
|
||||
public class LogEntity : IEntity<LogEntity>, ICreationAudited
|
||||
{
|
||||
/// <summary>
|
||||
/// 主键Id
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "F_Id", IsPrimaryKey = true, ColumnDescription = "主键Id")]
|
||||
public string F_Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 日期
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "日期")]
|
||||
public DateTime? F_Date { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 账户
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_Account", ColumnDataType = "nvarchar(50)", ColumnDescription = "账户")]
|
||||
public string F_Account { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 昵称
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_NickName", ColumnDataType = "nvarchar(50)", ColumnDescription = "昵称")]
|
||||
public string F_NickName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 类型
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_Type", ColumnDataType = "nvarchar(50)", ColumnDescription = "类型")]
|
||||
public string F_Type { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// IP地址
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_IPAddress", ColumnDataType = "nvarchar(50)", ColumnDescription = "IP地址")]
|
||||
public string F_IPAddress { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// IP地址名
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_IPAddressName", ColumnDataType = "nvarchar(50)", ColumnDescription = "IP地址名")]
|
||||
public string F_IPAddressName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 模块Id
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_ModuleId", ColumnDataType = "nvarchar(50)", ColumnDescription = "模块Id")]
|
||||
public string F_ModuleId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 模块名称
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_ModuleName", ColumnDataType = "nvarchar(50)", ColumnDescription = "模块名称")]
|
||||
public string F_ModuleName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true)]
|
||||
public bool? F_Result { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 备注
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_Description", ColumnDataType = "longtext", ColumnDescription = "备注")]
|
||||
public string F_Description { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 创建时间
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "创建时间")]
|
||||
public DateTime? F_CreatorTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 创建人Id
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_CreatorUserId", ColumnDataType = "nvarchar(50)", ColumnDescription = "创建人Id")]
|
||||
public string F_CreatorUserId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_KeyValue", ColumnDataType = "longtext")]
|
||||
public string F_KeyValue { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 公司Id
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_CompanyId", ColumnDataType = "nvarchar(50)", ColumnDescription = "公司Id")]
|
||||
public string F_CompanyId { get; set; }
|
||||
|
||||
public LogEntity()
|
||||
{
|
||||
}
|
||||
|
||||
//重载构造方法
|
||||
public LogEntity(string module, string moduleitem, string optiontype)
|
||||
{
|
||||
this.F_ModuleName = module + moduleitem;
|
||||
this.F_Description = moduleitem + "操作,";
|
||||
this.F_Type = optiontype;
|
||||
this.F_Result = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
220
WaterCloud.Domain/Entity/SystemSecurity/OpenJobEntity.cs
Normal file
220
WaterCloud.Domain/Entity/SystemSecurity/OpenJobEntity.cs
Normal file
@@ -0,0 +1,220 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <autogenerated>
|
||||
// This code was generated by a CodeSmith Template.
|
||||
//
|
||||
// DO NOT MODIFY contents of this file. Changes to this
|
||||
// file will be lost if the code is regenerated.
|
||||
// Author:Yubao Li
|
||||
// </autogenerated>
|
||||
//------------------------------------------------------------------------------
|
||||
using SqlSugar;
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace WaterCloud.Domain.SystemSecurity
|
||||
{
|
||||
/// <summary>
|
||||
/// 定时任务
|
||||
/// </summary>
|
||||
[SugarTable("sys_openjob")]
|
||||
[Tenant("0")]
|
||||
public partial class OpenJobEntity : IEntity<OpenJobEntity>, ICreationAudited, IDeleteAudited, IModificationAudited
|
||||
{
|
||||
[SugarColumn(ColumnName = "F_Id", IsPrimaryKey = true, ColumnDescription = "主键Id")]
|
||||
public string F_Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 任务名称
|
||||
/// </summary>
|
||||
[Description("任务名称")]
|
||||
[Required(ErrorMessage = "任务名称不能为空")]
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_JobName", ColumnDataType = "nvarchar(50)", ColumnDescription = "任务名称")]
|
||||
public string F_JobName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 任务组别
|
||||
/// </summary>
|
||||
[Description("任务组别")]
|
||||
[Required(ErrorMessage = "任务组别不能为空")]
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_JobGroup", ColumnDataType = "nvarchar(50)", ColumnDescription = "任务组别")]
|
||||
public string F_JobGroup { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 文件名称
|
||||
/// </summary>
|
||||
[Description("文件名称")]
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_FileName", ColumnDataType = "nvarchar(100)", ColumnDescription = "文件名称")]
|
||||
public string F_FileName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 开始时间
|
||||
/// </summary>
|
||||
[Description("开始时间")]
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "开始时间")]
|
||||
public System.DateTime? F_StarRunTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 结束时间
|
||||
/// </summary>
|
||||
[Description("结束时间")]
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "结束时间")]
|
||||
public System.DateTime? F_EndRunTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 最近执行时间
|
||||
/// </summary>
|
||||
[Description("最近执行时间")]
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "最近执行时间")]
|
||||
public System.DateTime? F_LastRunTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 最近执行状态
|
||||
/// </summary>
|
||||
[Description("最近执行状态")]
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "最近执行状态")]
|
||||
public bool? F_LastRunMark { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 上次发生错误时间
|
||||
/// </summary>
|
||||
[Description("上次发生错误时间")]
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "上次发生错误时间")]
|
||||
public DateTime? F_LastRunErrTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 上次发生错误信息
|
||||
/// </summary>
|
||||
[Description("上次发生错误信息")]
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "上次发生错误信息", ColumnDataType = "nvarchar(200)")]
|
||||
public string F_LastRunErrMsg { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// CRON表达式
|
||||
/// </summary>
|
||||
[Description("CRON表达式")]
|
||||
[Required(ErrorMessage = "CRON表达式不能为空")]
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_CronExpress", ColumnDataType = "nvarchar(50)", ColumnDescription = "CRON表达式")]
|
||||
public string F_CronExpress { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 删除标记
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "删除标记")]
|
||||
public bool? F_DeleteMark { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 有效标记
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "有效标记")]
|
||||
public bool? F_EnabledMark { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 备注
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_Description", ColumnDataType = "longtext", ColumnDescription = "备注")]
|
||||
public string F_Description { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 创建时间
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "公司Id")]
|
||||
public DateTime? F_CreatorTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 创建人Id
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_CreatorUserId", ColumnDataType = "nvarchar(50)", ColumnDescription = "创建人Id")]
|
||||
public string F_CreatorUserId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 修改时间
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "修改时间")]
|
||||
public DateTime? F_LastModifyTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 修改人Id
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_LastModifyUserId", ColumnDataType = "nvarchar(50)", ColumnDescription = "修改人Id")]
|
||||
public string F_LastModifyUserId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 删除时间
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "删除时间")]
|
||||
public DateTime? F_DeleteTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 删除人Id
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_DeleteUserId", ColumnDataType = "nvarchar(50)", ColumnDescription = "删除人Id")]
|
||||
public string F_DeleteUserId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 任务类型
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "任务类型")]
|
||||
public int? F_JobType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 请求头
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_RequestHeaders", ColumnDataType = "longtext", ColumnDescription = "请求头")]
|
||||
public string F_RequestHeaders { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 请求内容
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_RequestString", ColumnDataType = "longtext", ColumnDescription = "请求内容")]
|
||||
public string F_RequestString { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 请求url
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_RequestUrl", ColumnDataType = "longtext", ColumnDescription = "请求url")]
|
||||
public string F_RequestUrl { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 立即执行
|
||||
/// </summary>
|
||||
[SugarColumn(IsIgnore = true)]
|
||||
public bool? F_DoItNow { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 数据库序号
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_DbNumber", ColumnDataType = "nvarchar(50)", ColumnDescription = "数据库序号")]
|
||||
public string F_DbNumber { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 下次执行时间
|
||||
/// </summary>
|
||||
[SugarColumn(IsIgnore = true)]
|
||||
public DateTime? NextValidTimeAfter { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否记录日志
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_IsLog", ColumnDataType = "nvarchar(50)", ColumnDescription = "是否记录日志")]
|
||||
public string F_IsLog { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 执行数据库
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_JobDBProvider", ColumnDataType = "longtext", ColumnDescription = "执行数据库")]
|
||||
public string F_JobDBProvider { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 执行sql
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_JobSql", ColumnDataType = "longtext", ColumnDescription = "执行sql")]
|
||||
public string F_JobSql { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 执行sql参数
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_JobSqlParm", ColumnDataType = "longtext", ColumnDescription = "执行sql参数")]
|
||||
public string F_JobSqlParm { get; set; }
|
||||
}
|
||||
}
|
||||
60
WaterCloud.Domain/Entity/SystemSecurity/OpenJobLogEntity.cs
Normal file
60
WaterCloud.Domain/Entity/SystemSecurity/OpenJobLogEntity.cs
Normal file
@@ -0,0 +1,60 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <autogenerated>
|
||||
// This code was generated by a CodeSmith Template.
|
||||
//
|
||||
// DO NOT MODIFY contents of this file. Changes to this
|
||||
// file will be lost if the code is regenerated.
|
||||
// Author:Yubao Li
|
||||
// </autogenerated>
|
||||
//------------------------------------------------------------------------------
|
||||
using SqlSugar;
|
||||
using System.ComponentModel;
|
||||
|
||||
namespace WaterCloud.Domain.SystemSecurity
|
||||
{
|
||||
/// <summary>
|
||||
/// 定时任务
|
||||
/// </summary>
|
||||
[SugarTable("sys_openjoblog")]
|
||||
[Tenant("0")]
|
||||
public partial class OpenJobLogEntity : IEntity<OpenJobEntity>
|
||||
{
|
||||
[SugarColumn(ColumnName = "F_Id", IsPrimaryKey = true, ColumnDescription = "主键Id")]
|
||||
public string F_Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 任务名称
|
||||
/// </summary>
|
||||
[Description("任务名称")]
|
||||
[SugarColumn(IsNullable = false, ColumnName = "F_JobName", ColumnDataType = "nvarchar(50)", ColumnDescription = "任务名称")]
|
||||
public string F_JobName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 任务Id
|
||||
/// </summary>
|
||||
[Description("任务Id")]
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_JobId", ColumnDataType = "nvarchar(50)", ColumnDescription = "任务Id")]
|
||||
public string F_JobId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 文件名称
|
||||
/// </summary>
|
||||
[Description("任务信息")]
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_Description", ColumnDataType = "longtext", ColumnDescription = "任务信息")]
|
||||
public string F_Description { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 开始时间
|
||||
/// </summary>
|
||||
[Description("执行时间")]
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "执行时间")]
|
||||
public System.DateTime? F_CreatorTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 结束时间
|
||||
/// </summary>
|
||||
[Description("执行状态")]
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "执行状态")]
|
||||
public bool? F_EnabledMark { get; set; }
|
||||
}
|
||||
}
|
||||
63
WaterCloud.Domain/Entity/SystemSecurity/ServerStateEntity.cs
Normal file
63
WaterCloud.Domain/Entity/SystemSecurity/ServerStateEntity.cs
Normal file
@@ -0,0 +1,63 @@
|
||||
//-----------------------------------------------------------------------
|
||||
// <copyright file=" ServerState.cs" company="WaterCloud">
|
||||
// * Copyright (C) WaterCloud.Framework All Rights Reserved
|
||||
// * version : 1.0
|
||||
// * author : WaterCloud.Framework
|
||||
// * FileName: ServerState.cs
|
||||
// * history : Created by T4 04/13/2020 11:54:49
|
||||
// </copyright>
|
||||
//-----------------------------------------------------------------------
|
||||
using SqlSugar;
|
||||
using System;
|
||||
|
||||
namespace WaterCloud.Domain.SystemSecurity
|
||||
{
|
||||
/// <summary>
|
||||
/// ServerState Entity Model
|
||||
/// </summary>
|
||||
[SugarTable("sys_serverstate")]
|
||||
public class ServerStateEntity : IEntity<ServerStateEntity>
|
||||
{
|
||||
/// <summary>
|
||||
/// 主键Id
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "F_Id", IsPrimaryKey = true, ColumnDescription = "主键Id")]
|
||||
public string F_Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 网站站点
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_WebSite", ColumnDataType = "nvarchar(200)", ColumnDescription = "网站站点")]
|
||||
public string F_WebSite { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// ARM
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_ARM", ColumnDataType = "nvarchar(50)", ColumnDescription = "ARM")]
|
||||
public string F_ARM { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// CPU
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_CPU", ColumnDataType = "nvarchar(50)", ColumnDescription = "CPU")]
|
||||
public string F_CPU { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// IIS
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnName = "F_IIS", ColumnDataType = "nvarchar(50)", ColumnDescription = "IIS")]
|
||||
public string F_IIS { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 日期
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "日期")]
|
||||
public DateTime F_Date { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 次数
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnDescription = "次数")]
|
||||
public int F_Cout { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user