using BP.En;
namespace BP.WF.Data
{
///
/// 月份
///
public class GenerWorkFlowViewNYAttr : EntityNoNameAttr
{
}
///
/// 月份
///
public class GenerWorkFlowViewNY : EntityNoName
{
#region 属性
#endregion
#region 构造方法
///
/// 月份
///
public GenerWorkFlowViewNY()
{
}
///
/// 月份
///
///
public GenerWorkFlowViewNY(string no)
{
this.No = no;
this.Retrieve();
}
///
/// EnMap
///
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
}
///
/// 月份s
///
public class GenerWorkFlowViewNYs : EntitiesNoName
{
#region 构造
///
/// 月份s
///
public GenerWorkFlowViewNYs()
{
}
///
/// 得到它的 Entity
///
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.
///
/// 转化成 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((GenerWorkFlowViewNY)this[i]);
}
return list;
}
#endregion 为了适应自动翻译成java的需要,把实体转换成List.
}
}