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.

112 lines
3.0 KiB
C#

using BP.En;
namespace BP.WF.Data
{
/// <summary>
/// 月份
/// </summary>
public class GenerWorkFlowViewNYAttr : EntityNoNameAttr
{
}
/// <summary>
/// 月份
/// </summary>
public class GenerWorkFlowViewNY : EntityNoName
{
#region 属性
#endregion
#region 构造方法
/// <summary>
/// 月份
/// </summary>
public GenerWorkFlowViewNY()
{
}
/// <summary>
/// 月份
/// </summary>
/// <param name="no"></param>
public GenerWorkFlowViewNY(string no)
{
this.No = no;
this.Retrieve();
}
/// <summary>
/// EnMap
/// </summary>
public override Map EnMap
{
get
{
if (this._enMap != null)
return this._enMap;
Map map = new Map("Pub_NY", "月份");
map.setEnType(EnType.App);
map.AddTBStringPK(GenerWorkFlowViewNYAttr.No, null, "编号", true, false, 2, 30, 20);
map.AddTBString(GenerWorkFlowViewNYAttr.Name, null, "名称", true, false, 0, 3900, 20);
this._enMap = map;
return this._enMap;
}
}
#endregion
}
/// <summary>
/// 月份s
/// </summary>
public class GenerWorkFlowViewNYs : EntitiesNoName
{
#region 构造
/// <summary>
/// 月份s
/// </summary>
public GenerWorkFlowViewNYs()
{
}
/// <summary>
/// 得到它的 Entity
/// </summary>
public override Entity GetNewEntity
{
get
{
return new GenerWorkFlowViewNY();
}
}
#endregion
public override int RetrieveAll()
{
string sql = "SELECT DISTINCT FK_NY, FK_NY FROM WF_GenerWorkFlow";
return base.RetrieveAll();
}
#region 为了适应自动翻译成java的需要,把实体转换成List.
/// <summary>
/// 转化成 java list,C#不能调用.
/// </summary>
/// <returns>List</returns>
public System.Collections.Generic.IList<GenerWorkFlowViewNY> ToJavaList()
{
return (System.Collections.Generic.IList<GenerWorkFlowViewNY>)this;
}
/// <summary>
/// 转化成list
/// </summary>
/// <returns>List</returns>
public System.Collections.Generic.List<GenerWorkFlowViewNY> Tolist()
{
System.Collections.Generic.List<GenerWorkFlowViewNY> list = new System.Collections.Generic.List<GenerWorkFlowViewNY>();
for (int i = 0; i < this.Count; i++)
{
list.Add((GenerWorkFlowViewNY)this[i]);
}
return list;
}
#endregion 为了适应自动翻译成java的需要,把实体转换成List.
}
}