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.

541 lines
18 KiB
Plaintext

11 months ago
using System;
using System.Data;
using BP.DA;
using BP.En;
using BP.Port;
namespace BP.Demo
{
/// <summary>
/// ѧ<><D1A7> <20><><EFBFBD><EFBFBD>
/// </summary>
public class StudentAttr : EntityNoNameAttr
{
#region <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
/// <summary>
/// <20>Ա<EFBFBD>
/// </summary>
public const string XB = "XB";
/// <summary>
/// <20><>ַ
/// </summary>
public const string Addr = "Addr";
/// <summary>
/// <20><>¼ϵͳ<CFB5><CDB3><EFBFBD><EFBFBD>
/// </summary>
public const string PWD = "PWD";
/// <summary>
/// <20>
/// </summary>
public const string FK_BanJi = "FK_BanJi";
/// <summary>
/// <20><><EFBFBD><EFBFBD>
/// </summary>
public const string Age = "Age";
/// <summary>
/// <20>ʼ<EFBFBD>
/// </summary>
public const string Email = "Email";
/// <summary>
/// <20>
/// </summary>
public const string Tel = "Tel";
/// <summary>
/// ע<><D7A2>ʱ<EFBFBD><CAB1>
/// </summary>
public const string RegDate = "RegDate";
/// <summary>
/// <20><>ע
/// </summary>
public const string Note = "Note";
/// <summary>
/// <20>Ƿ<EFBFBD><C7B7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
/// </summary>
public const string IsTeKunSheng = "IsTeKunSheng";
/// <summary>
/// <20>Ƿ<EFBFBD><C7B7><EFBFBD><EFBFBD>ش󼲲<D8B4>ʷ<EFBFBD><CAB7>
/// </summary>
public const string IsJiBing = "IsJiBing";
/// <summary>
/// <20>Ƿ<EFBFBD>ƫԶɽ<D4B6><C9BD><EFBFBD><EFBFBD>
/// </summary>
public const string IsPianYuanShanQu = "IsPianYuanShanQu";
/// <summary>
/// <20>Ƿ<EFBFBD><C7B7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
/// </summary>
public const string IsDuShengZi = "IsDuShengZi";
/// <summary>
/// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ò
/// </summary>
public const string ZZMM = "ZZMM";
/// <summary>
/// ¼<><C2BC><EFBFBD><EFBFBD>
/// </summary>
public const string RecNo = "RecNo";
/// <summary>
/// ¼<><C2BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
/// </summary>
public const string RecName = "RecName";
#endregion
/// <summary>
/// Ƭ<><C6AC>
/// </summary>
public const string FK_PQ = "FK_PQ";
/// <summary>
/// ʡ<><CAA1>
/// </summary>
public const string FK_SF = "FK_SF";
/// <summary>
/// <20><><EFBFBD><EFBFBD>
/// </summary>
public const string FK_City = "FK_City";
}
/// <summary>
/// ѧ<><D1A7>
/// </summary>
public class Student : BP.En.EntityNoName
{
#region <20><><EFBFBD><EFBFBD>
/// <summary>
/// <20><>¼ϵͳ<CFB5><CDB3><EFBFBD><EFBFBD>
/// </summary>
public string PWD
{
get
{
return this.GetValStringByKey(StudentAttr.PWD);
}
set
{
this.SetValByKey(StudentAttr.PWD, value);
}
}
/// <summary>
/// <20><>ַ
/// </summary>
public string Addr
{
get
{
return this.GetValStringByKey(StudentAttr.Addr);
}
set
{
this.SetValByKey(StudentAttr.Addr, value);
}
}
/// <summary>
/// <20>Ա<EFBFBD>
/// </summary>
public int XB
{
get
{
return this.GetValIntByKey(StudentAttr.XB);
}
set
{
this.SetValByKey(StudentAttr.XB, value);
}
}
/// <summary>
/// <20>Ա<EFBFBD><D4B1><EFBFBD><EFBFBD><EFBFBD>
/// </summary>
public string XBText
{
get
{
return this.GetValRefTextByKey(StudentAttr.XB);
}
}
/// <summary>
/// <20><EFBFBD><E0BCB6><EFBFBD><EFBFBD>
/// </summary>
public string FK_BanJi
{
get
{
return this.GetValStringByKey(StudentAttr.FK_BanJi);
}
set
{
this.SetValByKey(StudentAttr.FK_BanJi, value);
}
}
/// <summary>
/// <20><EFBFBD><E0BCB6><EFBFBD><EFBFBD>
/// </summary>
public string FK_BanJiText
{
get
{
return this.GetValRefTextByKey(StudentAttr.FK_BanJi);
}
}
/// <summary>
/// <20>ʼ<EFBFBD>
/// </summary>
public string Email
{
get
{
return this.GetValStringByKey(StudentAttr.Email);
}
set
{
this.SetValByKey(StudentAttr.Email, value);
}
}
/// <summary>
/// <20>
/// </summary>
public string Tel
{
get
{
return this.GetValStringByKey(StudentAttr.Tel);
}
set
{
this.SetValByKey(StudentAttr.Tel, value);
}
}
/// <summary>
/// ע<><D7A2><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
/// </summary>
public string RegDate
{
get
{
return this.GetValStringByKey(StudentAttr.RegDate);
}
set
{
this.SetValByKey(StudentAttr.RegDate, value);
}
}
#endregion
#region <20><><EFBFBD><EFBFBD><ECBAAF>
/// <summary>
/// ʵ<><CAB5><EFBFBD><EFBFBD>Ȩ<EFBFBD>޿<EFBFBD><DEBF><EFBFBD>
/// </summary>
public override UAC HisUAC
{
get
{
UAC uac = new UAC();
// uac.LoadRightFromCCGPM(this); //<2F><>GPM<50><4D><EFBFBD><EFBFBD>װ<EFBFBD><D7B0>.
// return uac;
//uac.OpenAllForStation("001,002");
//return uac;
if (BP.Web.WebUser.No.Equals("admin") == true)
{
uac.IsDelete = true;
uac.IsUpdate = true;
uac.IsInsert = true;
uac.IsView = true;
}
else
{
uac.IsView = true;
}
uac.IsImp = true;
return uac;
}
}
/// <summary>
/// ѧ<><D1A7>
/// </summary>
public Student()
{
}
/// <summary>
/// ѧ<><D1A7>
/// </summary>
/// <param name="no"></param>
public Student(string no)
: base(no)
{
}
#endregion
#region <20><>д<EFBFBD><D0B4><EFBFBD><EFBFBD><E0B7BD>
/// <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_Student", "ѧ<><D1A7>");
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ.
map.ItIsAllowRepeatName = true; //<2F>Ƿ<EFBFBD><C7B7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ظ<EFBFBD>.
map.ItIsAutoGenerNo = true; //<2F>Ƿ<EFBFBD><C7B7>Զ<EFBFBD><D4B6><EFBFBD><EFBFBD>ɱ<EFBFBD><C9B1><EFBFBD>.
map.setCodeStruct( "4"); // 4λ<34><CEBB><EFBFBD>ı<EFBFBD><C4B1>ţ<EFBFBD><C5A3><EFBFBD> 0001 <20><>ʼ<EFBFBD><CABC><EFBFBD><EFBFBD> 9999.
map.DepositaryOfEntity = Depositary.None; //<2F><><EFBFBD><EFBFBD>λ<EFBFBD><CEBB>.None=<3D><><EFBFBD>ݱ<EFBFBD><DDB1><EFBFBD> Application=<3D><><EFBFBD><EFBFBD>.
#region <20>ֶ<EFBFBD>ӳ<EFBFBD><D3B3> - <20><>ͨ<EFBFBD>ֶ<EFBFBD>.
map.AddGroupAttr("<22><>ͨ<EFBFBD>ֶ<EFBFBD>");
map.AddTBStringPK(StudentAttr.No, null, "ѧ<><D1A7>", true, true, 4, 4, 90); // <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Զ<EFBFBD><D4B6><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ֶα<D6B6><CEB1><EFBFBD><EFBFBD><EFBFBD>ֻ<EFBFBD><D6BB><EFBFBD><EFBFBD>.
map.AddTBString(StudentAttr.Name, null, "<22><><EFBFBD><EFBFBD>", true, false, 0, 200, 70);
map.AddTBString(StudentAttr.PWD, null, "<22><><EFBFBD><EFBFBD>", true, false, 0, 200, 50);
map.AddTBInt(StudentAttr.Age, 18, "<22><><EFBFBD><EFBFBD>", true, false);
map.AddTBString(StudentAttr.Addr, null, "<22><>ַ", true, false, 0, 200, 100, true);
map.AddTBString(StudentAttr.Tel, null, "<22>绰", true, false, 0, 200, 100);
map.AddTBString(StudentAttr.Email, null, "<22>ʼ<EFBFBD>", true, false, 0, 200, 100);
map.AddTBDateTime(StudentAttr.RegDate, null, "ע<><D7A2><EFBFBD><EFBFBD><EFBFBD><EFBFBD>", true, true);
map.AddBoolean(StudentAttr.IsDuShengZi, false, "<22>Ƿ<EFBFBD><C7B7>Ƕ<EFBFBD><C7B6><EFBFBD><EFBFBD>ӣ<EFBFBD>", true, true, true);
map.AddBoolean(StudentAttr.IsJiBing, false, "<22>Ƿ<EFBFBD><C7B7><EFBFBD><EFBFBD>ش󼲲<D8B4><F3BCB2B2><EFBFBD>", true, true, true);
map.AddBoolean(StudentAttr.IsPianYuanShanQu, false, "<22>Ƿ<EFBFBD>ƫԶɽ<D4B6><C9BD><EFBFBD><EFBFBD>", true, true);
map.AddBoolean(StudentAttr.IsTeKunSheng, false, "<22>Ƿ<EFBFBD><C7B7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>", true, true);
map.AddTBStringDoc(ResumeAttr.BeiZhu, null, "<22><>ע", true, false);
map.AddTBString(StudentAttr.RecNo, null, "¼<><C2BC><EFBFBD>˱<EFBFBD><CBB1><EFBFBD>", true, true, 0, 200, 100); //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.
map.AddTBString(StudentAttr.RecName, null, "¼<><C2BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>", false, false, 0, 200, 100);//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.
map.AddTBAtParas(2000);
#endregion <20>ֶ<EFBFBD>ӳ<EFBFBD><D3B3> - <20><>ͨ<EFBFBD>ֶ<EFBFBD>.
#region <20><><EFBFBD><EFBFBD>ö<EFBFBD><C3B6><EFBFBD>ֶ<EFBFBD>.
map.AddGroupAttr("<22><><EFBFBD><EFBFBD>ö<EFBFBD><C3B6><EFBFBD>ֶ<EFBFBD>");
map.AddDDLSysEnum(StudentAttr.ZZMM, 0, "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ò", true, true, StudentAttr.ZZMM,
"@0=<3D><><EFBFBD>ȶ<EFBFBD>Ա@1=<3D><>Ա@2=<3D><>Ա@3=<3D><><EFBFBD><EFBFBD>");
map.AddRadioBtnSysEnum(StudentAttr.XB, 0, "<22>Ա<EFBFBD>", true, true, StudentAttr.XB, "@0=Ů@1=<3D><>");
//<2F><><EFBFBD><EFBFBD><EFBFBD>ֶ<EFBFBD>.
map.AddDDLEntities(StudentAttr.FK_BanJi, null, "<22>༶", new BP.Demo.BanJis(), true);
//string sql = "SELECT No,Name FROM CN_SF "; //<2F><><EFBFBD><EFBFBD>sql<71><6C><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>֧<EFBFBD>ֱ<EFBFBD><D6B1><EFBFBD>ʽ @WebUser.* , Ҳ<><D2B2><EFBFBD><EFBFBD><EFBFBD>DZ<EFBFBD>ʵ<EFBFBD><CAB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʊ<EFBFBD><C6B1><EFBFBD> @No.
//map.AddDDLSQL(StudentAttr.FK_SF, null, "ʡ<><CAA1>", sql, true);
//map.AddDDLEntities(StudentAttr.FK_PQ, null, "Ƭ<><C6AC>",new BP.CN.PQs(),true);
//map.AddDDLEntities(StudentAttr.FK_SF, null, "ʡ<><CAA1>",new BP.CN.SFs(),true);
//map.AddDDLEntities(StudentAttr.FK_City, null, "<22><><EFBFBD><EFBFBD>",new BP.CN.Citys(),true);
#endregion <20><><EFBFBD><EFBFBD>ö<EFBFBD><C3B6><EFBFBD>ֶ<EFBFBD>.
map.AddMyFileS("<22><><EFBFBD><EFBFBD>");//<2F>ϴ<EFBFBD><CFB4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
#region <20><><EFBFBD>ò<EFBFBD>ѯ<EFBFBD><D1AF><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
// map.ItIsShowSearchKey = false; //<2F>Ƿ<EFBFBD><C7B7><EFBFBD>ʾ<EFBFBD>ؼ<EFBFBD><D8BC>ֲ<EFBFBD>ѯ<EFBFBD><D1AF>Ĭ<EFBFBD><C4AC><EFBFBD><EFBFBD>ʾ<EFBFBD><CABE><EFBFBD>ؼ<EFBFBD><D8BC>ֲ<EFBFBD>ѯƥ<D1AF><C6A5><EFBFBD>κ<EFBFBD><CEBA>С<EFBFBD>
//String<6E>ֶ<EFBFBD><D6B6><EFBFBD><EFBFBD>͵<EFBFBD>ģ<EFBFBD><C4A3><EFBFBD><EFBFBD>ѯ<EFBFBD><D1AF><EFBFBD><EFBFBD><EFBFBD>ʽmap.SearchFields,<2C>丳ֵ<E4B8B3><D6B5>ʽ<EFBFBD><CABD>@<40><><EFBFBD><EFBFBD>=<3D>ֶ<EFBFBD>Ӣ<EFBFBD><D3A2><EFBFBD><EFBFBD>
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ø<EFBFBD><C3B8>ֶ<EFBFBD><D6B6><EFBFBD><EFBFBD><EFBFBD><EFBFBD>йؼ<D0B9><D8BC>ֲ<EFBFBD>ѯ<EFBFBD><D1AF><EFBFBD><EFBFBD><EFBFBD><EFBFBD>string<6E>ֶε<D6B6>ģ<EFBFBD><C4A3><EFBFBD><EFBFBD>ѯ
// map.SearchFields = "@<40><><EFBFBD><EFBFBD>=Name@<40><>ַ=Addr@<40>绰=Tel";
//<2F><>ֵ<EFBFBD><D6B5><EFBFBD>ֶβ<D6B6>ѯ<EFBFBD><D1AF><EFBFBD><EFBFBD><EFBFBD>ʽmap.SearchFieldsOfNum<75><6D><EFBFBD>丳ֵ<E4B8B3><D6B5>ʽ<EFBFBD><CABD>@<40><><EFBFBD><EFBFBD>=<3D>ֶ<EFBFBD>Ӣ<EFBFBD><D3A2><EFBFBD><EFBFBD>
//<2F><>ѯ<EFBFBD><D1AF>ʽ<EFBFBD>Ǵ<EFBFBD>Age1<65><31>Age2<65>׶β<D7B6>ѯ<EFBFBD><D1AF>
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Age1<65><31>ֵ<EFBFBD><D6B5>Age2<65><32>ֵ<EFBFBD><D6B5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѯ<EFBFBD><D1AF><EFBFBD>ڵ<EFBFBD><DAB5><EFBFBD>Age1<65>Ľ<EFBFBD><C4BD><EFBFBD><EFBFBD><EFBFBD>
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Age1<65><31>ֵ<EFBFBD><D6B5>Age2<65><32>ֵ<EFBFBD><D6B5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѯС<D1AF>ڵ<EFBFBD><DAB5><EFBFBD>Age2<65>Ľ<EFBFBD><C4BD><EFBFBD><EFBFBD><EFBFBD>
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Age1<65><31>ֵ<EFBFBD><D6B5>Age2<65><32>ֵ<EFBFBD><D6B5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѯ<EFBFBD><D1AF><EFBFBD>ڵ<EFBFBD><DAB5><EFBFBD>Age1С<31>ڵ<EFBFBD><DAB5><EFBFBD>Age2<65>Ľ<EFBFBD><C4BD><EFBFBD><EFBFBD><EFBFBD>
//<2F><>ֵ<EFBFBD><D6B5>Χ<EFBFBD><CEA7>ѯ
map.SearchFieldsOfNum = "@<40><><EFBFBD><EFBFBD>=Age";
//<2F><><EFBFBD>ڲ<EFBFBD>ѯ.
map.DTSearchKey = "RegDate";
map.DTSearchLabel = "ע<><D7A2><EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
map.DTSearchWay = Sys.DTSearchWay.ByYearMonth;
//<2F><><EFBFBD><EFBFBD>Search.htmҳ<6D><D2B3><EFBFBD><EFBFBD>ѯ<EFBFBD><D1AF><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>еĹ<D0B5><C4B9><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ӵIJ<D3B5>ѯ<EFBFBD>ֶεĿ<CEB5><C4BF>ȳ<EFBFBD><C8B3><EFBFBD>4000<30><30><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
map.AddSearchAttr(StudentAttr.XB);
map.AddSearchAttr(StudentAttr.ZZMM);
map.AddSearchAttr(StudentAttr.FK_BanJi);
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>IJ<EFBFBD>ѯ: <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѯ<EFBFBD><D1AF>¼<EFBFBD><C2BC><EFBFBD><EFBFBD>.
// map.AddHidden(StudentAttr.RecNo, " = ", "@WebUser.No");
#endregion <20><><EFBFBD>ò<EFBFBD>ѯ<EFBFBD><D1AF><EFBFBD><EFBFBD>
#region <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> - <20><><EFBFBD><EFBFBD>.
map.AddGroupMethod("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
////<2F><><EFBFBD>Զ<EFBFBD><D4B6><EFBFBD>ӳ<EFBFBD><D3B3>.
//map.AttrsOfOneVSM.Add(new StudentKeMus(), new KeMus(), StudentKeMuAttr.FK_Student,
// StudentKeMuAttr.FK_KeMu, KeMuAttr.Name, KeMuAttr.No, "ѡ<>޵Ŀ<DEB5>Ŀ");
//<2F><>ѯģʽ.
map.AddDtl(new Resumes(), ResumeAttr.StudentNo, null, DtlEditerModel.DtlSearch, "icon-drop");
//<2F><><EFBFBD><EFBFBD><EFBFBD>༭ģʽ
map.AddDtl(new Resumes(), ResumeAttr.StudentNo, null, DtlEditerModel.DtlBatch, "icon-drop");
//<2F><><EFBFBD>в<EFBFBD><D0B2><EFBFBD><EFBFBD>ķ<EFBFBD><C4B7><EFBFBD>.
RefMethod rm = new RefMethod();
rm.Title = "<22><><EFBFBD>ɰ<EFBFBD><C9B0><EFBFBD>";
rm.HisAttrs.AddTBDecimal("JinE", 100, "<22><><EFBFBD>ɽ<EFBFBD><C9BD><EFBFBD>", true, false);
rm.HisAttrs.AddTBString("Note", null, "<22><>ע", true, false, 0, 100, 100);
rm.ClassMethodName = this.ToString() + ".DoJiaoNaBanFei";
// rm.ItIsCanBatch = false; //<2F>Ƿ<EFBFBD><C7B7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
map.AddRefMethod(rm);
//<2F><><EFBFBD><EFBFBD><EFBFBD>в<EFBFBD><D0B2><EFBFBD><EFBFBD>ķ<EFBFBD><C4B7><EFBFBD>.
rm = new RefMethod();
rm.Title = "ע<><D7A2>ѧ<EFBFBD><D1A7>";
rm.Warning = "<22><>ȷ<EFBFBD><C8B7>Ҫע<D2AA><D7A2><EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
rm.ClassMethodName = this.ToString() + ".DoZhuXiao";
rm.ItIsForEns = true;
rm.ItIsCanBatch = true; //<2F>Ƿ<EFBFBD><C7B7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
map.AddRefMethod(rm);
#endregion <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> - <20><><EFBFBD><EFBFBD>.
#region <20>߼<EFBFBD><DFBC><EFBFBD><EFBFBD><EFBFBD> - <20><><EFBFBD><EFBFBD>.
map.AddGroupMethod("<22>߼<EFBFBD><DFBC><EFBFBD><EFBFBD><EFBFBD>");
//<2F><><EFBFBD><EFBFBD><EFBFBD>в<EFBFBD><D0B2><EFBFBD><EFBFBD>ķ<EFBFBD><C4B7><EFBFBD>.
rm = new RefMethod();
rm.Title = "<22><><EFBFBD><EFBFBD>Ȱ<EFBFBD><C8B0><EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
rm.ClassMethodName = this.ToString() + ".DoStartFlow";
rm.RefMethodType = RefMethodType.LinkeWinOpen;
rm.ItIsCanBatch = false; //<2F>Ƿ<EFBFBD><C7B7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
map.AddRefMethod(rm);
//<2F><><EFBFBD><EFBFBD><EFBFBD>в<EFBFBD><D0B2><EFBFBD><EFBFBD>ķ<EFBFBD><C4B7><EFBFBD>.
rm = new RefMethod();
rm.Title = "<22><>ӡѧ<D3A1><D1A7>֤";
rm.ClassMethodName = this.ToString() + ".DoPrintStuLicence";
rm.ItIsCanBatch = true; //<2F>Ƿ<EFBFBD><C7B7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
map.AddRefMethod(rm);
//<2F><><EFBFBD><EFBFBD><EFBFBD>в<EFBFBD><D0B2><EFBFBD><EFBFBD>ķ<EFBFBD><C4B7><EFBFBD>.
rm = new RefMethod();
rm.Title = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ҳ<EFBFBD><D2B3><EFBFBD><EFBFBD>ʾ";
rm.ClassMethodName = this.ToString() + ".DoOpenit";
rm.ItIsCanBatch = true; //<2F>Ƿ<EFBFBD><C7B7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
rm.RefMethodType = RefMethodType.RightFrameOpen;
map.AddRefMethod(rm);
#endregion <20>߼<EFBFBD><DFBC><EFBFBD><EFBFBD><EFBFBD> - <20><><EFBFBD><EFBFBD>.
////<2F><><EFBFBD><EFBFBD><EFBFBD>в<EFBFBD><D0B2><EFBFBD><EFBFBD>ķ<EFBFBD><C4B7><EFBFBD>.
//rm = new RefMethod();
//rm.Title = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ӡѧ<D3A1><D1A7>֤";
//rm.ClassMethodName = this.ToString() + ".EnsMothed";
////rm.ItIsForEns = true; //<2F>Ƿ<EFBFBD><C7B7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
//rm.RefMethodType = RefMethodType.FuncBacthEntities; //<2F>Ƿ<EFBFBD><C7B7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
//map.AddRefMethod(rm);
this._enMap = map;
return this._enMap;
}
}
public string DoOpenit()
{
return "/WebForm1.aspx?No=" + this.No;
}
/// <summary>
/// <20><>д<EFBFBD><D0B4><EFBFBD><EFBFBD><EFBFBD>ķ<EFBFBD><C4B7><EFBFBD>.
/// </summary>
/// <returns></returns>
protected override bool beforeInsert()
{
//<2F>ڲ<EFBFBD><DAB2><EFBFBD>֮ǰ<D6AE><C7B0><EFBFBD><EFBFBD>ע<EFBFBD><D7A2>ʱ<EFBFBD><CAB1>.
this.RegDate = DataType.CurrentDateTime;
this.SetValByKey(StudentAttr.RecNo, BP.Web.WebUser.No); //<2F><><EFBFBD>ü<EFBFBD>¼<EFBFBD><C2BC>.
this.SetValByKey(StudentAttr.RecName, BP.Web.WebUser.Name); //<2F><><EFBFBD>ü<EFBFBD>¼<EFBFBD><C2BC>.
return base.beforeInsert();
}
protected override bool beforeUpdateInsertAction()
{
if (this.Email.Length == 0)
throw new Exception("@email <20><><EFBFBD><EFBFBD>Ϊ<EFBFBD><CEAA>.");
return base.beforeUpdateInsertAction();
}
#endregion <20><>д<EFBFBD><D0B4><EFBFBD><EFBFBD><E0B7BD>
#region <20><><EFBFBD><EFBFBD>
public string DoPrintStuLicence()
{
BP.Pub.RTFEngine en = new BP.Pub.RTFEngine();
Student stu = new Student(this.No);
en.HisGEEntity = stu; //<2F><>ǰ<EFBFBD><C7B0>ʵ<EFBFBD><CAB5>.
//<2F><><EFBFBD>Ӵӱ<D3B4>.
BP.Demo.Resumes dtls = new Resumes();
dtls.Retrieve(ResumeAttr.StudentNo, stu.No);
en.AddDtlEns(dtls);
string saveTo = BP.Difference.SystemConfig.PathOfTemp; // \\DataUser\\Temp\\
string billFileName = this.No + "StuTest.doc";
//Ҫ<><D2AA><EFBFBD>ɵ<EFBFBD><C9B5><EFBFBD><EFBFBD><EFBFBD>.
en.MakeDoc(BP.Difference.SystemConfig.PathOfDataUser + "\\CyclostyleFile\\StudentDemo.rtf", saveTo, billFileName);
string url = "/DataUser/Temp/" + billFileName;
string info = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɳɹ<C9B3>:<a href='" + url + "' ><3E><>ӡ</a><3E><><a href='/SDKFlowDemo/App/PrintJoin.aspx'>ƴ<>Ӵ<EFBFBD>ӡ</a>";
return info;
}
public string DoStartFlow()
{
return "/WF/MyFlow.htm?FK_Flow=045&XH=" + this.No + "&XM=" + this.Name;
}
/// <summary>
/// <20><><EFBFBD>в<EFBFBD><D0B2><EFBFBD><EFBFBD>ķ<EFBFBD><C4B7><EFBFBD>:<3A><><EFBFBD>ɰ<EFBFBD><C9B0><EFBFBD>
/// ˵<><CBB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ҫ<EFBFBD><D2AA><EFBFBD><EFBFBD>string<6E><67><EFBFBD><EFBFBD>.
/// </summary>
/// <returns></returns>
public string DoJiaoNaBanFei(decimal jine, string note)
{
return "ѧ<><D1A7>:" + this.No + ",<2C><><EFBFBD><EFBFBD>:" + this.Name + ",<2C><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:" + jine + "Ԫ,˵<><CBB5>:" + note;
}
/// <summary>
/// <20>޲<EFBFBD><DEB2><EFBFBD><EFBFBD>ķ<EFBFBD><C4B7><EFBFBD><><D7A2>ѧ<EFBFBD><D1A7>
/// ˵<><CBB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ҫ<EFBFBD><D2AA><EFBFBD><EFBFBD>string<6E><67><EFBFBD><EFBFBD>.
/// </summary>
/// <returns></returns>
public string DoZhuXiao()
{
// DBAccess.RunSQL("DELETE RR");
// DataTable DT= DBAccess.RunSQLReturnTable("elect * from ");
return "ѧ<><D1A7>:" + this.No + ",<2C><><EFBFBD><EFBFBD>:" + this.Name + ",<2C>Ѿ<EFBFBD>ע<EFBFBD><D7A2>.";
}
/// <summary>
/// У<><D0A3><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
/// </summary>
/// <param name="pass">ԭʼ<D4AD><CABC><EFBFBD><EFBFBD></param>
/// <returns><3E>Ƿ<EFBFBD><C7B7>ɹ<EFBFBD></returns>
public bool CheckPass(string pass)
{
return this.PWD.Equals(pass);
}
#endregion
protected override bool beforeDelete()
{
return base.beforeDelete();
}
}
/// <summary>
/// ѧ<><D1A7>s
/// </summary>
public class Students : BP.En.EntitiesNoName
{
#region <20><><EFBFBD><EFBFBD>
/// <summary>
/// ѧ<><D1A7>s
/// </summary>
public Students() { }
#endregion
#region <20><>д<EFBFBD><D0B4><EFBFBD><EFBFBD><E0B7BD>
/// <summary>
/// <20>õ<EFBFBD><C3B5><EFBFBD><EFBFBD><EFBFBD> Entity
/// </summary>
public override Entity GetNewEntity
{
get
{
return new Student();
}
}
#endregion <20><>д<EFBFBD><D0B4><EFBFBD><EFBFBD><E0B7BD>
#region <20><><EFBFBD>Է<EFBFBD><D4B7><EFBFBD>.
public string EnsMothed()
{
return "EnsMothed@ִ<>гɹ<D0B3>.";
}
public string EnsMothedParas(string para1, string para2)
{
return "EnsMothedParas@ִ<>гɹ<D0B3>." + para1 + " - " + para2;
}
#endregion
}
}