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.
121 lines
3.1 KiB
Plaintext
121 lines
3.1 KiB
Plaintext
11 months ago
|
using System;
|
||
|
using System.CodeDom;
|
||
|
using System.CodeDom.Compiler;
|
||
|
using System.Data;
|
||
|
using System.Data.SqlClient;
|
||
|
using System.Collections;
|
||
|
using System.IO;
|
||
|
using System.Net;
|
||
|
using System.Xml;
|
||
|
using BP.DA;
|
||
|
using BP.En;
|
||
|
using Microsoft.CSharp;
|
||
|
using BP.Web;
|
||
|
using BP.Difference;
|
||
|
using Newtonsoft.Json.Linq;
|
||
|
|
||
|
namespace BP.Sys
|
||
|
{
|
||
|
|
||
|
/// <summary>
|
||
|
/// 查询列s
|
||
|
/// </summary>
|
||
|
public class SFColumn : EntityMyPK
|
||
|
{
|
||
|
|
||
|
#region 构造方法
|
||
|
public override UAC HisUAC
|
||
|
{
|
||
|
get
|
||
|
{
|
||
|
UAC uac = new UAC();
|
||
|
uac.Readonly();
|
||
|
return uac;
|
||
|
}
|
||
|
}
|
||
|
/// <summary>
|
||
|
/// 用户自定义表
|
||
|
/// </summary>
|
||
|
public SFColumn()
|
||
|
{
|
||
|
}
|
||
|
public SFColumn(string no)
|
||
|
{
|
||
|
this.MyPK = no;
|
||
|
this.Retrieve();
|
||
|
}
|
||
|
/// <summary>
|
||
|
/// EnMap
|
||
|
/// </summary>
|
||
|
public override Map EnMap
|
||
|
{
|
||
|
get
|
||
|
{
|
||
|
if (this._enMap != null)
|
||
|
return this._enMap;
|
||
|
Map map = new Map("Sys_SFColumn", "查询列");
|
||
|
|
||
|
map.AddMyPK();
|
||
|
map.AddTBString("RefPKVal", null, "实体主键", false, false, 1, 200, 20);
|
||
|
map.AddTBString("AttrKey", null, "列英文名", true, true, 1, 200, 100);
|
||
|
map.AddTBString("AttrName", null, "列中文名", true, false, 0, 200, 100);
|
||
|
map.AddTBString("DataType", null, "数据类型", true, false, 0, 200, 100);
|
||
|
|
||
|
// map.AddDDLStringEnum("DataType", "String", "数据类型", "@String=String@Int=Int@Float=Float", true);
|
||
|
|
||
|
this._enMap = map;
|
||
|
return this._enMap;
|
||
|
}
|
||
|
}
|
||
|
#endregion
|
||
|
}
|
||
|
/// <summary>
|
||
|
/// 查询列s
|
||
|
/// </summary>
|
||
|
public class SFColumns : EntitiesMyPK
|
||
|
{
|
||
|
#region 构造
|
||
|
/// <summary>
|
||
|
/// 查询列s
|
||
|
/// </summary>
|
||
|
public SFColumns()
|
||
|
{
|
||
|
}
|
||
|
/// <summary>
|
||
|
/// 得到它的 Entity
|
||
|
/// </summary>
|
||
|
public override Entity GetNewEntity
|
||
|
{
|
||
|
get
|
||
|
{
|
||
|
return new SFColumn();
|
||
|
}
|
||
|
}
|
||
|
#endregion
|
||
|
|
||
|
#region 为了适应自动翻译成java的需要,把实体转换成List.
|
||
|
/// <summary>
|
||
|
/// 转化成 java list,C#不能调用.
|
||
|
/// </summary>
|
||
|
/// <returns>List</returns>
|
||
|
public System.Collections.Generic.IList<SFColumn> ToJavaList()
|
||
|
{
|
||
|
return (System.Collections.Generic.IList<SFColumn>)this;
|
||
|
}
|
||
|
/// <summary>
|
||
|
/// 转化成list
|
||
|
/// </summary>
|
||
|
/// <returns>List</returns>
|
||
|
public System.Collections.Generic.List<SFColumn> Tolist()
|
||
|
{
|
||
|
System.Collections.Generic.List<SFColumn> list = new System.Collections.Generic.List<SFColumn>();
|
||
|
for (int i = 0; i < this.Count; i++)
|
||
|
{
|
||
|
list.Add((SFColumn)this[i]);
|
||
|
}
|
||
|
return list;
|
||
|
}
|
||
|
#endregion 为了适应自动翻译成java的需要,把实体转换成List.
|
||
|
}
|
||
|
}
|