You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
DS7/DSWeb/Areas/SoftMng/Models/SoftSysTable/MsSysTable.cs

233 lines
5.5 KiB
C#

using System;
using System.Data;
using System.Collections;
using System.Collections.Generic;
using HcUtility.Core;
using Newtonsoft.Json;
namespace DSWeb.SoftMng.Models.MsSysTable
{
[JsonObject]
public class sys_table : ModelObjectBillHead
{
#region 私有成员
private string _GID = Guid.NewGuid().ToString();//业务编号
private string _TBLNAME;//
private string _TBLCNAME;//
private string _MODULENAME;//
private string _REMARKS;//
private string _INPUTBY;
private string _INPUTBYREF;
private string _INPUTTIME;
private string _AUDITBY;
private string _AUDITTIME;
#endregion
public sys_table()
{
TableName = "sys_table";
}
#region 读写属性
/// <summary>
/// 主键唯一值
/// </summary>
[ModelDB(MDBType = ModelDBOprationType.All, IsPrimary = true)]
public string GID
{
get { return _GID; }
set { _GID = value; }
}
[ModelDB]
public string TBLNAME
{
get { return _TBLNAME; }
set { _TBLNAME = value; }
}
[ModelDB]
public string TBLCNAME
{
get { return _TBLCNAME; }
set { _TBLCNAME = value; }
}
[ModelDB]
public string MODULENAME
{
get { return _MODULENAME; }
set { _MODULENAME = value; }
}
[ModelDB]
public string REMARKS
{
get { return _REMARKS; }
set { _REMARKS = value; }
}
[ModelDB(MDBType = ModelDBOprationType.Insert)]
public string INPUTBY
{
get { return _INPUTBY; }
set { _INPUTBY = value; }
}
public string INPUTBYREF
{
get { return _INPUTBYREF; }
set { _INPUTBYREF = value; }
}
[ModelDB(MDBType = ModelDBOprationType.Insert)]
public string INPUTTIME
{
get { return _INPUTTIME; }
set { _INPUTTIME = value; }
}
#endregion
}
[JsonObject]
public class sys_table_detail : ModelObjectBillBody
{
#region private Fields
private string _GID = Guid.NewGuid().ToString();//业务编号
private string _TBLGID = "*";
private string _FIELDNAME = "";
private string _FIELDCNAME = "";
private string _FIELDTYPE = "";
private string _FIELDLEN = "";
private string _ISNULL = "";
private string _ISKEY = "";
private string _DEFVALUE = "";
private string _INPUTBY;
private string _INPUTBYREF;
private string _INPUTTIME;
private string _REMARKS;
private string _LNKTBL;
private string _LNKFIELDNAME;
private string _SORT;
#endregion
#region Public Properties
[ModelDB(MDBType = ModelDBOprationType.All, IsPrimary = true)]
public string GID
{
get { return _GID; }
set { _GID = value; }
}
[ModelDB(MDBType = ModelDBOprationType.Insert)]
public string TBLGID
{
get { return _TBLGID; }
set { _TBLGID = value; }
}
[ModelDB]
public string FIELDNAME
{
get { return _FIELDNAME; }
set { _FIELDNAME = value; }
}
[ModelDB]
public string FIELDCNAME
{
get { return _FIELDCNAME; }
set { _FIELDCNAME = value; }
}
[ModelDB]
public string FIELDLEN
{
get { return _FIELDLEN; }
set { _FIELDLEN = value; }
}
[ModelDB]
public string FIELDTYPE
{
get { return _FIELDTYPE; }
set { _FIELDTYPE = value; }
}
[ModelDB]
public string ISNULL
{
get { return _ISNULL; }
set { _ISNULL = value; }
}
[ModelDB]
public string ISKEY
{
get { return _ISKEY; }
set { _ISKEY = value; }
}
[ModelDB]
public string DEFVALUE
{
get { return _DEFVALUE; }
set { _DEFVALUE = value; }
}
[ModelDB]
public string REMARKS
{
get { return _REMARKS; }
set { _REMARKS = value; }
}
[ModelDB(MDBType = ModelDBOprationType.Insert)]
public string INPUTBY
{
get { return _INPUTBY; }
set { _INPUTBY = value; }
}
public string INPUTBYREF
{
get { return _INPUTBYREF; }
set { _INPUTBYREF = value; }
}
[ModelDB(MDBType = ModelDBOprationType.Insert)]
public string INPUTTIME
{
get { return _INPUTTIME; }
set { _INPUTTIME = value; }
}
[ModelDB]
public string LNKTBL
{
get { return _LNKTBL; }
set { _LNKTBL = value; }
}
[ModelDB]
public string LNKFIELDNAME
{
get { return _LNKFIELDNAME; }
set { _LNKFIELDNAME = value; }
}
[ModelDB]
public string SORT
{
get { return _SORT; }
set { _SORT = value; }
}
#endregion
public sys_table_detail()
{
TableName = "sys_table_detail";
}
public override string GetBillNoFieldName()
{
return "TBLGID";
}
}
}