|
|
|
|
using System;
|
|
|
|
|
using System.Data;
|
|
|
|
|
using BP.DA;
|
|
|
|
|
using BP.En;
|
|
|
|
|
|
|
|
|
|
namespace BP.Demo.BPFramework
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// ѧ<><D1A7><EFBFBD><EFBFBD>Ŀ<EFBFBD><C4BF>Ӧ -<2D><><EFBFBD><EFBFBD>
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class StudentKeMuAttr
|
|
|
|
|
{
|
|
|
|
|
#region <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// ѧ<><D1A7>
|
|
|
|
|
/// </summary>
|
|
|
|
|
public const string FK_Student="FK_Student";
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// <20><>Ŀ
|
|
|
|
|
/// </summary>
|
|
|
|
|
public const string FK_KeMu="FK_KeMu";
|
|
|
|
|
#endregion
|
|
|
|
|
}
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// ѧ<><D1A7><EFBFBD><EFBFBD>Ŀ<EFBFBD><C4BF>Ӧ
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class StudentKeMu :EntityMM
|
|
|
|
|
{
|
|
|
|
|
#region <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// ѧ<><D1A7>
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string FK_Student
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return this.GetValStringByKey(StudentKeMuAttr.FK_Student);
|
|
|
|
|
}
|
|
|
|
|
set
|
|
|
|
|
{
|
|
|
|
|
SetValByKey(StudentKeMuAttr.FK_Student,value);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// <20><>Ŀ<EFBFBD><C4BF><EFBFBD><EFBFBD>
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string FK_KeMuT
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return this.GetValRefTextByKey(StudentKeMuAttr.FK_KeMu);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
/// <summary>
|
|
|
|
|
///<2F><>Ŀ
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string FK_KeMu
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return this.GetValStringByKey(StudentKeMuAttr.FK_KeMu);
|
|
|
|
|
}
|
|
|
|
|
set
|
|
|
|
|
{
|
|
|
|
|
SetValByKey(StudentKeMuAttr.FK_KeMu,value);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region <20><><EFBFBD>캯<EFBFBD><ECBAAF>
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// ѧ<><D1A7><EFBFBD><EFBFBD>Ŀ<EFBFBD><C4BF>Ӧ
|
|
|
|
|
/// </summary>
|
|
|
|
|
public StudentKeMu(){}
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// <20><><EFBFBD><EFBFBD>ѧ<EFBFBD><D1A7><EFBFBD><EFBFBD>Ŀ<EFBFBD><C4BF>Ӧ
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="_empoid">ѧ<><D1A7></param>
|
|
|
|
|
/// <param name="fk_km"><3E><>Ŀ<EFBFBD><C4BF><EFBFBD><EFBFBD></param>
|
|
|
|
|
public StudentKeMu(string fk_student,string fk_km)
|
|
|
|
|
{
|
|
|
|
|
this.FK_Student = fk_student;
|
|
|
|
|
this.FK_KeMu = fk_km;
|
|
|
|
|
this.Retrieve();
|
|
|
|
|
}
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// <20><>д<EFBFBD><D0B4><EFBFBD><EFBFBD><E0B7BD>
|
|
|
|
|
/// </summary>
|
|
|
|
|
public override Map EnMap
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
if (this._enMap!=null)
|
|
|
|
|
return this._enMap;
|
|
|
|
|
|
|
|
|
|
Map map = new Map("Demo_StudentKeMu", "ѧ<><D1A7><EFBFBD><EFBFBD>Ŀ<EFBFBD><C4BF>Ӧ");
|
|
|
|
|
map.EnType=EnType.Dot2Dot;
|
|
|
|
|
|
|
|
|
|
map.AddTBStringPK(StudentKeMuAttr.FK_Student, null, "ѧ<><D1A7>", false, false, 1, 20, 1);
|
|
|
|
|
map.AddDDLEntitiesPK(StudentKeMuAttr.FK_KeMu,null,"<22><>Ŀ",new BP.Demo.KeMus(),true);
|
|
|
|
|
|
|
|
|
|
this._enMap=map;
|
|
|
|
|
return this._enMap;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region <20><><EFBFBD>ػ<EFBFBD><D8BB><EFBFBD><E0B7BD>
|
|
|
|
|
public override UAC HisUAC
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
UAC uac = new UAC();
|
|
|
|
|
|
|
|
|
|
//if (BP.Web.WebUser.No.Equals("admin")==true)
|
|
|
|
|
//{
|
|
|
|
|
uac.IsView = true;
|
|
|
|
|
uac.IsDelete = true;
|
|
|
|
|
uac.IsInsert = true;
|
|
|
|
|
uac.IsUpdate = true;
|
|
|
|
|
uac.IsAdjunct = true;
|
|
|
|
|
// }
|
|
|
|
|
return uac;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// <20><><EFBFBD><EFBFBD>ǰ<EFBFBD><C7B0><EFBFBD><EFBFBD><EFBFBD>Ĺ<EFBFBD><C4B9><EFBFBD>
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns>true/false</returns>
|
|
|
|
|
protected override bool beforeInsert()
|
|
|
|
|
{
|
|
|
|
|
return base.beforeInsert();
|
|
|
|
|
}
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// <20><><EFBFBD><EFBFBD>ǰ<EFBFBD><C7B0><EFBFBD><EFBFBD><EFBFBD>Ĺ<EFBFBD><C4B9><EFBFBD>
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns>true/false</returns>
|
|
|
|
|
protected override bool beforeUpdate()
|
|
|
|
|
{
|
|
|
|
|
return base.beforeUpdate();
|
|
|
|
|
}
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// ɾ<><C9BE>ǰ<EFBFBD><C7B0><EFBFBD><EFBFBD><EFBFBD>Ĺ<EFBFBD><C4B9><EFBFBD>
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns>true/false</returns>
|
|
|
|
|
protected override bool beforeDelete()
|
|
|
|
|
{
|
|
|
|
|
return base.beforeDelete();
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
}
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// ѧ<><D1A7><EFBFBD><EFBFBD>Ŀ<EFBFBD><C4BF>Ӧs -<2D><><EFBFBD><EFBFBD>
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class StudentKeMus : EntitiesMM
|
|
|
|
|
{
|
|
|
|
|
#region <20><><EFBFBD><EFBFBD>
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// ѧ<><D1A7><EFBFBD><EFBFBD>Ŀ<EFBFBD><C4BF>Ӧs
|
|
|
|
|
/// </summary>
|
|
|
|
|
public StudentKeMus(){}
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region <20><>д<EFBFBD><D0B4><EFBFBD><EFBFBD>
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// <20>õ<EFBFBD><C3B5><EFBFBD><EFBFBD><EFBFBD> Entity
|
|
|
|
|
/// </summary>
|
|
|
|
|
public override Entity GetNewEntity
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return new StudentKeMu();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|