init commit
This commit is contained in:
54
20220330_Vote/Ewide.RoadFlow/Entity/Extend/TableField.cs
Normal file
54
20220330_Vote/Ewide.RoadFlow/Entity/Extend/TableField.cs
Normal file
@@ -0,0 +1,54 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace RoadFlow.Model
|
||||
{
|
||||
/// <summary>
|
||||
/// 表字段实体
|
||||
/// </summary>
|
||||
public class TableField
|
||||
{
|
||||
/// <summary>
|
||||
/// 字段名称
|
||||
/// </summary>
|
||||
public string FieldName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 字段类型
|
||||
/// </summary>
|
||||
public string Type { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 长度
|
||||
/// </summary>
|
||||
public int Size { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否可为空
|
||||
/// </summary>
|
||||
public bool IsNull { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否有默认值
|
||||
/// </summary>
|
||||
public bool IsDefault { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否是自增
|
||||
/// </summary>
|
||||
public bool IsIdentity { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 默认值
|
||||
/// </summary>
|
||||
public string DefaultValue { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 字段说明
|
||||
/// </summary>
|
||||
public string Comment { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,55 @@
|
||||
using SqlSugar;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace RoadFlow.Model
|
||||
{
|
||||
public partial class rf_dbconnection
|
||||
{
|
||||
[SugarColumn(IsIgnore = true)]
|
||||
public SqlSugar.DbType DbType
|
||||
{
|
||||
get
|
||||
{
|
||||
SqlSugar.DbType dbType = SqlSugar.DbType.MySql;
|
||||
switch (this.ConnType.ToLower())
|
||||
{
|
||||
case "sqlserver":
|
||||
dbType = SqlSugar.DbType.SqlServer;
|
||||
break;
|
||||
case "mysql":
|
||||
dbType = SqlSugar.DbType.MySql;
|
||||
break;
|
||||
case "oracle":
|
||||
dbType = SqlSugar.DbType.Oracle;
|
||||
break;
|
||||
case "postgresql":
|
||||
dbType = SqlSugar.DbType.PostgreSQL;
|
||||
break;
|
||||
}
|
||||
return dbType;
|
||||
}
|
||||
}
|
||||
public SqlSugarProvider GetConn(SqlSugarClient db)
|
||||
{
|
||||
SqlSugarProvider conn = null;
|
||||
if(db.IsAnyConnection(this.Id))
|
||||
conn = db.GetConnection(this.Id);
|
||||
if (conn == null)
|
||||
{
|
||||
db.AddConnection(new ConnectionConfig
|
||||
{
|
||||
DbType = this.DbType,
|
||||
ConnectionString = this.ConnString,
|
||||
ConfigId = this.Id,
|
||||
IsAutoCloseConnection = true
|
||||
});
|
||||
conn = db.GetConnection(this.Id);
|
||||
}
|
||||
return conn;
|
||||
}
|
||||
}
|
||||
}
|
||||
100
20220330_Vote/Ewide.RoadFlow/Entity/Extend/rf_doc.cs
Normal file
100
20220330_Vote/Ewide.RoadFlow/Entity/Extend/rf_doc.cs
Normal file
@@ -0,0 +1,100 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Linq;
|
||||
using System.Runtime.Serialization;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace RoadFlow.Model.Extend
|
||||
{
|
||||
public class rf_doc
|
||||
{
|
||||
public Guid Id { get; set; }
|
||||
/// <summary>
|
||||
/// 栏目Id
|
||||
/// </summary>
|
||||
|
||||
[Display(Name = "栏目Id")]
|
||||
[Column("DirId")]
|
||||
[DataMember]
|
||||
public string DirId { get; set; }
|
||||
/// <summary>
|
||||
/// 栏目名称
|
||||
/// </summary>
|
||||
|
||||
[Display(Name = "栏目名称")]
|
||||
[Column("DirName")]
|
||||
[DataMember]
|
||||
public string DirName { get; set; }
|
||||
/// <summary>
|
||||
/// 标题
|
||||
/// </summary>
|
||||
|
||||
[Display(Name = "标题")]
|
||||
[Column("Title")]
|
||||
[DataMember]
|
||||
public string Title { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 添加时间
|
||||
/// </summary>
|
||||
|
||||
[Display(Name = "添加时间")]
|
||||
[Column("WriteTime")]
|
||||
[DataMember]
|
||||
public DateTime WriteTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 添加人员姓名
|
||||
/// </summary>
|
||||
|
||||
[Display(Name = "添加人员姓名")]
|
||||
[Column("WriteUserName")]
|
||||
[DataMember]
|
||||
public string WriteUserName { get; set; }
|
||||
/// <summary>
|
||||
/// 最后修改时间
|
||||
/// </summary>
|
||||
|
||||
[Display(Name = "最后修改时间")]
|
||||
[Column("EditTime")]
|
||||
[DataMember]
|
||||
public DateTime? EditTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 修改人姓名
|
||||
/// </summary>
|
||||
|
||||
[Display(Name = "修改人姓名")]
|
||||
[Column("EditUserName")]
|
||||
[DataMember]
|
||||
public string EditUserName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 阅读次数
|
||||
/// </summary>
|
||||
|
||||
[Display(Name = "阅读次数")]
|
||||
[Column("ReadCount")]
|
||||
[DataMember]
|
||||
public int ReadCount { get; set; }
|
||||
/// <summary>
|
||||
/// 文档等级 0普通 1重要 2非常重要
|
||||
/// </summary>
|
||||
|
||||
[Display(Name = "文档等级 0普通 1重要 2非常重要")]
|
||||
[Column("DocRank")]
|
||||
[DataMember]
|
||||
public int DocRank { get; set; }
|
||||
/// <summary>
|
||||
/// 是否已读
|
||||
/// </summary>
|
||||
|
||||
[Display(Name = "是否已读")]
|
||||
[Column("IsRead")]
|
||||
[DataMember]
|
||||
public int IsRead { get; set; }
|
||||
}
|
||||
}
|
||||
29
20220330_Vote/Ewide.RoadFlow/Entity/Extend/rf_flowtask.cs
Normal file
29
20220330_Vote/Ewide.RoadFlow/Entity/Extend/rf_flowtask.cs
Normal file
@@ -0,0 +1,29 @@
|
||||
using SqlSugar;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace RoadFlow.Model
|
||||
{
|
||||
public partial class rf_flowtask
|
||||
{
|
||||
[SugarColumn(IsIgnore = true)]
|
||||
public string CurrentStepName { get; set; }
|
||||
|
||||
public rf_flowtask Clone()
|
||||
{
|
||||
return (rf_flowtask)this.MemberwiseClone();
|
||||
}
|
||||
}
|
||||
public partial class rf_flowtask_Group1
|
||||
{
|
||||
public string GroupId { get; set; }
|
||||
public DateTime ReceiveTime { get; set; }
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user