添加Tnb.Vengine

This commit is contained in:
2023-08-15 11:41:49 +08:00
parent 69930e06a2
commit 45e59b175f
47 changed files with 3060 additions and 3066 deletions

View File

@@ -0,0 +1,70 @@
/////////////////////////////////////////////////////////////////////////////////
// 宁波拓通e智造平台 ToTong Next Builder //
// https://git.tuotong-tech.com/tnb/tnb.server //
/////////////////////////////////////////////////////////////////////////////////
namespace Tnb.Vengine;
public static class DbConsts
{
public const string DefaultDbCode = "totedp";
public const string ConnectNameDapper = "Dapper";
public const string ConnectNameMySql = "MySql";
public const string ConnectNameSqlServer = "SqlServer";
public const string ConnectNameSqlite = "Sqlite";
public const string ConnectNamePostgreSql = "PostgreSql";
public const string ConnectNameOracle = "Oracle";
public const string ConnectNameMongoDb = "MongoDb";
public const string DbCode = "totemp";
public const string DbTablePrefix = "app";
public const string DbSchema = null;
public const string DbSystemPrefix = "sys";
public const string DbMESPrefix = "mes";
public const string DbWMSPrefix = "wms";
public const string DbBasePrefix = "bas";
public const string DbConfigPrefix = "cfg";
public const string DbEqpPrefix = "eqp";
public const string DbQCPrefix = "qc";
public const string OneToOne = "OneToOne";
public const string OneToMany = "OneToMany";
public const string ManyToMany = "ManyToMany";
public static string[] HiddenFields = new string[] { "Id", "CreationTime", "CreatorId", "LastModificationTime", "LastModifierId" };
public const string CsString = "string";
public const string CsInt = "int";
public const string CsShort = "short";
public const string CsBool = "bool";
public const string CsFloat = "float";
public const string CsDouble = "double";
public const string CsGuid = "Guid";
public const string CsDateTime = "DateTime";
public const string CsClass = "class";
public const string CsJson = "json";
public const string CsEnum = "enum";
public const string CsCustomer = "customer";
public const int LengthXXS = 10;
public const int LengthXS = 25;
public const int LengthS = 50;
public const int LengthM = 100;
public const int LengthL = 250;
public const int LengthXL = 1000;
public const int LengthXXL = 2000;
public const int LengthXXXL = 3000;
public const int LengthXXXXL = 4000;
public const int LengthPassword = 32;
public const int LengthNodePath = 742; //20组GUID
public const int LengthText = -1;
public const string SuperAdminName = "admin";
public static Guid SuperAdminId = Guid.Parse("39fe9e87-4659-05a7-99ce-9a23d84875df");
public static Guid SuperRoleId = Guid.Parse("39fea2c5-088a-32c1-2c2c-b814700aee7e");
public static Guid UserAdminId = Guid.Parse("39fe9e87-4695-8eb7-273c-e49b0524aea8");
public static Guid RoleAdminId = Guid.Parse("39fea2c8-01a4-75cd-026f-2f0349a94098");
public static Guid EventDefaultCategoryId = Guid.Parse("39ffae5d-13d2-1e43-3f0e-98f774f71c8a");
public static Guid DefaultViewId = Guid.Parse("39fea2c1-b2dd-cfae-1c3d-89de77f94709");
}

View File

@@ -0,0 +1,7 @@
namespace Tnb.Vengine;
public class ModuleConst
{
public const string Tag = "Tnb";
public const string Area = "tnb";
}

View File

@@ -0,0 +1,109 @@
/////////////////////////////////////////////////////////////////////////////////
// 宁波拓通e智造平台 ToTong Next Builder //
// https://git.tuotong-tech.com/tnb/tnb.server //
/////////////////////////////////////////////////////////////////////////////////
using System.ComponentModel;
namespace Tnb.Vengine;
public enum eCsType
{
[Description("string")]
String = 10,
[Description("bool")]
Bool = 12,
[Description("uuid")]
Guid = 14,
[Description("int")]
Int = 20,
[Description("short")]
Short = 22,
[Description("long")]
Long = 24,
[Description("float")]
Float = 30,
[Description("double")]
Double = 32,
[Description("decimal")]
Decimal = 34,
[Description("date")]
Date = 40,
[Description("time")]
Time = 42,
[Description("datetime")]
DateTime = 44,
[Description("timestamp")]
Timestamp = 46,
[Description("enum")]
Enum = 50,
[Description("dictionary")]
Dictionary = 52,
[Description("json")]
Json = 60,
[Description("entity")]
Entity = 70,
[Description("customer")]
Customer = 80,
}
public enum eDbType
{
MySql,
SqlServer,
PostgreSQL,
Oracle,
Sqlite,
MsAccess,
Dameng,
ClickHouse,
Redis,
InfluxDb
}
public enum eResourceType
{
[Description("菜单")]
Menu = 10,
[Description("页面")]
Page = 20,
[Description("按钮")]
Button = 30,
[Description("接口")]
Interface = 40,
[Description("视图")]
View = 50,
}
public enum eSearchType
{
[Description("无")]
None = 0,
[Description("精准查询")]
Exact = 1,
[Description("模糊查询")]
Fuzzy = 2,
[Description("范围查询")]
Range = 3,
}
public enum eNavigateType
{
[Description("无")]
None = 0,
[Description("一对一")]
OneToOne = 1,
[Description("一对多")]
OneToMany = 2,
[Description("多对多")]
ManyToMany = 3,
}
/// <summary>
/// 模型属性类型
/// </summary>
public enum ePropType
{
[Description("表字段")]
DbTable = 0,
[Description("计算属性")]
Calculate = 1,
[Description("导航属性")]
Navigate = 2,
}