This commit is contained in:
2026-02-06 18:34:35 +08:00
commit f7f4c94c00
3285 changed files with 563208 additions and 0 deletions

View File

@@ -0,0 +1,32 @@
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace iMES.Entity.DomainModels
{
public class PageDataOptions
{
public int Page { get; set; }
public int Rows { get; set; }
public int Total { get; set; }
public string TableName { get; set; }
public string Sort { get; set; }
/// <summary>
/// 排序方式
/// </summary>
public string Order { get; set; }
public string Wheres { get; set; }
public bool Export { get; set; }
public object Value { get; set; }
}
public class SearchParameters
{
public string Name { get; set; }
public string Value { get; set; }
public string DisplayType { get; set; }
}
}

View File

@@ -0,0 +1,23 @@
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace iMES.Entity.DomainModels
{
public class PageGridData<T>
{
public int status { get; set; }
public string msg { get; set; }
public int total { get; set; }
public List<T> rows { get; set; }
public object summary { get; set; }
/// <summary>
/// 可以在返回前,再返回一些额外的数据,比如返回其他表的信息,前台找到查询后的方法取出来
/// </summary>
public object extra { get; set; }
}
}

View File

@@ -0,0 +1,18 @@
using System.Collections;
using System.Collections.Generic;
namespace iMES.Entity.DomainModels
{
public class SaveModel
{
public Dictionary<string, object> MainData { get; set; }
public List<Dictionary<string, object>> DetailData { get; set; }
public List<object> DelKeys { get; set; }
/// <summary>
/// 从前台传入的其他参数(自定义扩展可以使用)
/// </summary>
public object Extra { get; set; }
}
}

View File

@@ -0,0 +1,245 @@
using iMES.Entity.SystemModels;
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace iMES.Entity.DomainModels
{
[Table("Sys_TableColumn")]
public class Sys_TableColumn : SysEntity
{
/// <summary>
///
/// <summary>
[Display(Name = "")]
[Column(TypeName = "int")]
[Editable(true)]
public int Table_Id { get; set; }
/// <summary>
///
/// <summary>
[Key]
[Display(Name = "")]
[Column(TypeName = "int")]
[Editable(true)]
public int ColumnId { get; set; }
/// <summary>
///
/// <summary>
[Display(Name = "")]
[Editable(true)]
public string ColumnName { get; set; }
/// <summary>
///
/// <summary>
[Display(Name = "")]
[Editable(true)]
public string ColumnCnName { get; set; }
/// <summary>
///
/// <summary>
[Display(Name = "")]
[Editable(true)]
public string ColumnType { get; set; }
/// <summary>
///
/// <summary>
[Display(Name = "")]
[Editable(true)]
public string TableName { get; set; }
/// <summary>
///
/// <summary>
[Display(Name = "")]
[Column(TypeName = "int")]
[Editable(true)]
public int? Maxlength { get; set; }
/// <summary>
///
/// <summary>
[Display(Name = "")]
[Column(TypeName = "int")]
[Editable(true)]
public int? IsNull { get; set; }
/// <summary>
///
/// <summary>
[Display(Name = "")]
[Column(TypeName = "int")]
[Editable(true)]
public int? IsDisplay { get; set; }
/// <summary>
///
/// <summary>
[Display(Name = "")]
[Column(TypeName = "int")]
[Editable(true)]
public int? IsKey { get; set; }
/// <summary>
///
/// <summary>
[Display(Name = "")]
[Editable(true)]
public string Columnformat { get; set; }
/// <summary>
///
/// <summary>
[Display(Name = "")]
[Editable(true)]
public string Script { get; set; }
/// <summary>
///
/// <summary>
[Display(Name = "")]
[Editable(true)]
public string DropNo { get; set; }
[Editable(true)]
public int? IsImage { get; set; }
/// <summary>
///
/// <summary>
[Display(Name = "")]
[Column(TypeName = "int")]
[Editable(true)]
public int? Sortable { get; set; }
/// <summary>
///
/// <summary>
[Display(Name = "")]
[Column(TypeName = "int")]
[Editable(true)]
public int? ColumnWidth { get; set; }
/// <summary>
///
/// <summary>
[Display(Name = "")]
[Editable(true)]
public int? SearchRowNo { get; set; }
[Editable(true)]
[Column(TypeName = "int")]
public int? SearchColNo { get; set; }
/// <summary>
///
/// <summary>
[Display(Name = "")]
[Editable(true)]
public string SearchType { get; set; }
/// <summary>
///
/// <summary>
[Display(Name = "")]
[Editable(true)]
[Column(TypeName = "int")]
public int? EditRowNo { get; set; }
[Editable(true)]
public int? EditColNo { get; set; }
/// <summary>
///
/// </summary>
[Display(Name = "")]
[Editable(true)]
public string EditType { get; set; }
[Editable(true)]
[Column(TypeName = "int")]
public int? ColSize { get; set; }
/// <summary>
///
/// <summary>
[Display(Name = "")]
[Editable(true)]
[Column(TypeName = "int")]
public int? IsReadDataset { get; set; }
/// <summary>
///
/// <summary>
[Display(Name = "")]
[Editable(true)]
[Column(TypeName = "int")]
public int? Enable { get; set; }
[Editable(true)]
[Column(TypeName = "int")]
public int? ApiInPut { get; set; }
[Editable(true)]
[Column(TypeName = "int")]
public int? ApiIsNull { get; set; }
[Editable(true)]
[Column(TypeName = "int")]
public int? ApiOutPut { get; set; }
/// <summary>
///
/// <summary>
[Display(Name = "")]
[Column(TypeName = "int")]
public int? CreateID { get; set; }
/// <summary>
///
/// <summary>
[Display(Name = "")]
public string Creator { get; set; }
/// <summary>
///
/// <summary>
[Display(Name = "")]
public DateTime? CreateDate { get; set; }
/// <summary>
///
/// <summary>
[Display(Name = "")]
[Column(TypeName = "int")]
public int? ModifyID { get; set; }
/// <summary>
///
/// <summary>
[Display(Name = "")]
public string Modifier { get; set; }
/// <summary>
///
/// <summary>
[Display(Name = "")]
public DateTime? ModifyDate { get; set; }
/// <summary>
///
/// <summary>
[Display(Name = "")]
[Column(TypeName = "int")]
[Editable(true)]
public int? OrderNo { get; set; }
/// <summary>
///
/// <summary>
[Display(Name = "")]
[Column(TypeName = "int")]
[Editable(true)]
public int? IsColumnData { get; set; }
}
}

View File

@@ -0,0 +1,72 @@
using iMES.Entity.SystemModels;
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Collections.Generic;
namespace iMES.Entity.DomainModels
{
[Table("Sys_TableInfo")]
[EntityAttribute(DetailTable = new Type[] { typeof(Sys_TableColumn) })]
public class Sys_TableInfo : SysEntity
{
[Key]
[Column(TypeName = "int")]
public int Table_Id { get; set; }
[Editable(true)]
[Column(TypeName = "int")]
public int? ParentId { get; set; }
[Editable(true)]
public string TableName { get; set; }
[Editable(true)]
public string TableTrueName { get; set; }
[Editable(true)]
public string ColumnCNName { get; set; }
public string Namespace { get; set; }
[Editable(true)]
public string FolderName { get; set; }
[Editable(true)]
public string DataTableType { get; set; }
[Editable(true)]
public string EditorType { get; set; }
[Editable(true)]
[Column(TypeName = "int")]
public int? OrderNo { get; set; }
[Editable(true)]
public string UploadField { get; set; }
[Editable(true)]
public int? UploadMaxCount { get; set; }
[Editable(true)]
public string RichText { get; set; }
[Editable(true)]
public string ExpressField { get; set; }
[Editable(true)]
public string DBServer { get; set; }
[Editable(true)]
public string SortName { get; set; }
[Editable(true)]
public string DetailCnName { get; set; }
[Editable(true)]
public string DetailName { get; set; }
[Editable(true)]
[Column(TypeName = "int")]
public int? Enable { get; set; }
[Editable(true)]
public string CnName { get; set; }
[ForeignKey("Table_Id")]
public List<Sys_TableColumn> TableColumns { get; set; }
}
}