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 { /// /// 查询列s /// public class SFColumn : EntityMyPK { #region 构造方法 public override UAC HisUAC { get { UAC uac = new UAC(); uac.Readonly(); return uac; } } /// /// 用户自定义表 /// public SFColumn() { } public SFColumn(string no) { this.MyPK = no; this.Retrieve(); } /// /// EnMap /// public override Map EnMap { get { if (this._enMap != null) return this._enMap; Map map = new Map("Sys_SFColumn", "查询列"); map.AddMyPK(); map.AddTBString("RefPK", 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 } /// /// 查询列s /// public class SFColumns : EntitiesMyPK { #region 构造 /// /// 查询列s /// public SFColumns() { } /// /// 得到它的 Entity /// public override Entity GetNewEntity { get { return new SFColumn(); } } #endregion #region 为了适应自动翻译成java的需要,把实体转换成List. /// /// 转化成 java list,C#不能调用. /// /// List public System.Collections.Generic.IList ToJavaList() { return (System.Collections.Generic.IList)this; } /// /// 转化成list /// /// List public System.Collections.Generic.List Tolist() { System.Collections.Generic.List list = new System.Collections.Generic.List(); for (int i = 0; i < this.Count; i++) { list.Add((SFColumn)this[i]); } return list; } #endregion 为了适应自动翻译成java的需要,把实体转换成List. } }