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 SFColumnSln : EntityMyPK { #region 构造方法 public override UAC HisUAC { get { UAC uac = new UAC(); uac.Readonly(); return uac; } } /// /// 用户自定义表 /// public SFColumnSln() { } public SFColumnSln(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_SFColumnSln", "查询列转换方案"); map.AddMyPK(); //对应的是: MapExt的 MyPK map.AddTBString("RefPKVal", null, "实体主键", false, false, 1, 200, 20); map.AddTBString("FrmID", null, "表单", false, false, 1, 200, 20); map.AddTBString("AttrKey", null, "列英文名", true, true, 1, 200, 100); map.AddTBString("AttrName", null, "列中文名", true, true, 0, 200, 100); map.AddBoolean("IsEnable", true, "启用?", true, true); map.AddTBString("DataType", null, "列中文名", true, true, 0, 200, 100); // const sql="" map.AddTBString("ToField", null, "转换列名", true, true, 0, 200, 100); this._enMap = map; return this._enMap; } } #endregion } /// /// 查询列s /// public class SFColumnSlns : EntitiesMyPK { #region 构造 /// /// 查询列s /// public SFColumnSlns() { } /// /// 得到它的 Entity /// public override Entity GetNewEntity { get { return new SFColumnSln(); } } #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((SFColumnSln)this[i]); } return list; } #endregion 为了适应自动翻译成java的需要,把实体转换成List. } }