|
|
|
|
using System;
|
|
|
|
|
using System.Data;
|
|
|
|
|
using BP.DA;
|
|
|
|
|
using BP.En;
|
|
|
|
|
using BP.Port;
|
|
|
|
|
|
|
|
|
|
namespace BP.Demo.BPFramework
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// <20>̶<EFBFBD><CCB6>ʲ<EFBFBD> <20><><EFBFBD><EFBFBD>
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class GDZCAttr : 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 jinE = "jinE";
|
|
|
|
|
/// <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";
|
|
|
|
|
#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>
|
|
|
|
|
/// <20>̶<EFBFBD><CCB6>ʲ<EFBFBD>
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class GDZC : BP.En.EntityNoName
|
|
|
|
|
{
|
|
|
|
|
#region <20><><EFBFBD><EFBFBD>
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// <20><>¼ϵͳ<CFB5><CDB3><EFBFBD><EFBFBD>
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string PWD
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return this.GetValStringByKey(GDZCAttr.PWD);
|
|
|
|
|
}
|
|
|
|
|
set
|
|
|
|
|
{
|
|
|
|
|
this.SetValByKey(GDZCAttr.PWD, value);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// <20><><EFBFBD><EFBFBD>
|
|
|
|
|
/// </summary>
|
|
|
|
|
public int jinE
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return this.GetValIntByKey(GDZCAttr.jinE);
|
|
|
|
|
}
|
|
|
|
|
set
|
|
|
|
|
{
|
|
|
|
|
this.SetValByKey(GDZCAttr.jinE, value);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// <20><>ַ
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string Addr
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return this.GetValStringByKey(GDZCAttr.Addr);
|
|
|
|
|
}
|
|
|
|
|
set
|
|
|
|
|
{
|
|
|
|
|
this.SetValByKey(GDZCAttr.Addr, value);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// <20>Ա<EFBFBD>
|
|
|
|
|
/// </summary>
|
|
|
|
|
public int XB
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return this.GetValIntByKey(GDZCAttr.XB);
|
|
|
|
|
}
|
|
|
|
|
set
|
|
|
|
|
{
|
|
|
|
|
this.SetValByKey(GDZCAttr.XB, value);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// <20>Ա<EFBFBD><D4B1><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string XBText
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return this.GetValRefTextByKey(GDZCAttr.XB);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// <20>༶<EFBFBD><E0BCB6><EFBFBD><EFBFBD>
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string FK_BanJi
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return this.GetValStringByKey(GDZCAttr.FK_BanJi);
|
|
|
|
|
}
|
|
|
|
|
set
|
|
|
|
|
{
|
|
|
|
|
this.SetValByKey(GDZCAttr.FK_BanJi, value);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// <20>༶<EFBFBD><E0BCB6><EFBFBD><EFBFBD>
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string FK_BanJiText
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return this.GetValRefTextByKey(GDZCAttr.FK_BanJi);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// <20>ʼ<EFBFBD>
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string Email
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return this.GetValStringByKey(GDZCAttr.Email);
|
|
|
|
|
}
|
|
|
|
|
set
|
|
|
|
|
{
|
|
|
|
|
this.SetValByKey(GDZCAttr.Email, value);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// <20>绰
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string Tel
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return this.GetValStringByKey(GDZCAttr.Tel);
|
|
|
|
|
}
|
|
|
|
|
set
|
|
|
|
|
{
|
|
|
|
|
this.SetValByKey(GDZCAttr.Tel, value);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// ע<><D7A2><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string RegDate
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return this.GetValStringByKey(GDZCAttr.RegDate);
|
|
|
|
|
}
|
|
|
|
|
set
|
|
|
|
|
{
|
|
|
|
|
this.SetValByKey(GDZCAttr.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;
|
|
|
|
|
if (BP.Web.WebUser.No == "admin")
|
|
|
|
|
{
|
|
|
|
|
uac.IsDelete = true;
|
|
|
|
|
uac.IsUpdate = true;
|
|
|
|
|
uac.IsInsert = true;
|
|
|
|
|
uac.IsView = true;
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
uac.IsView = true;
|
|
|
|
|
}
|
|
|
|
|
uac.IsImp = true;
|
|
|
|
|
return uac;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// <20>̶<EFBFBD><CCB6>ʲ<EFBFBD>
|
|
|
|
|
/// </summary>
|
|
|
|
|
public GDZC()
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// <20>̶<EFBFBD><CCB6>ʲ<EFBFBD>
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="no"></param>
|
|
|
|
|
public GDZC(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_GDZC", "<22>̶<EFBFBD><CCB6>ʲ<EFBFBD>");
|
|
|
|
|
|
|
|
|
|
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ.
|
|
|
|
|
map.IsAllowRepeatName = true; //<2F>Ƿ<EFBFBD><C7B7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ظ<EFBFBD>.
|
|
|
|
|
map.IsAutoGenerNo = true; //<2F>Ƿ<EFBFBD><C7B7>Զ<EFBFBD><D4B6><EFBFBD><EFBFBD>ɱ<EFBFBD><C9B1><EFBFBD>.
|
|
|
|
|
|
|
|
|
|
#region <20>ֶ<EFBFBD>ӳ<EFBFBD><D3B3> - <20><>ͨ<EFBFBD>ֶ<EFBFBD>.
|
|
|
|
|
map.AddTBStringPK(GDZCAttr.No, null, "<22>̶<EFBFBD><CCB6>ʲ<EFBFBD><CAB2><EFBFBD><EFBFBD><EFBFBD>", 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(GDZCAttr.Name, null, "<22><><EFBFBD><EFBFBD>", true, false, 0, 200, 70);
|
|
|
|
|
|
|
|
|
|
map.AddTBString(GDZCAttr.Addr, null, "<22><>ַ", true, false, 0, 200, 100, true);
|
|
|
|
|
map.AddTBInt(GDZCAttr.jinE, 18, "<22><><EFBFBD><EFBFBD>", true, false);
|
|
|
|
|
map.AddTBInt("Yuanzhi", 18, "ԭֵ", true, false);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endregion <20>ֶ<EFBFBD>ӳ<EFBFBD><D3B3> - <20><>ͨ<EFBFBD>ֶ<EFBFBD>.
|
|
|
|
|
|
|
|
|
|
map.AddMyFile("<22><>Ƭ");
|
|
|
|
|
//map.AddMyFileS("<22><><EFBFBD><EFBFBD>");
|
|
|
|
|
|
|
|
|
|
//#region <20><><EFBFBD>ò<EFBFBD>ѯ<EFBFBD><D1AF><EFBFBD><EFBFBD>.
|
|
|
|
|
////string<6E><67><EFBFBD>ͣ<EFBFBD><CDA3><EFBFBD><EFBFBD>ؼ<EFBFBD><D8BC>ֲ<EFBFBD>ѯ<EFBFBD><D1AF><EFBFBD><EFBFBD>.
|
|
|
|
|
//map.SearchFields = "@<40><>ַ=" + GDZCAttr.Addr;
|
|
|
|
|
//map.SearchFields += "@<40>绰=" + GDZCAttr.Tel;
|
|
|
|
|
|
|
|
|
|
////<2F><>ֵ<EFBFBD><D6B5><EFBFBD>ͣ<EFBFBD><CDA3><EFBFBD>Χ<EFBFBD><CEA7>ѯ<EFBFBD><D1AF><EFBFBD><EFBFBD>.
|
|
|
|
|
//map.SearchFieldsOfNum = "@<40><><EFBFBD><EFBFBD>=" + GDZCAttr.jinE;
|
|
|
|
|
|
|
|
|
|
////<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ڲ<EFBFBD>ѯ<EFBFBD><D1AF><EFBFBD><EFBFBD>.
|
|
|
|
|
//map.DTSearchKey = GDZCAttr.RegDate;
|
|
|
|
|
//map.DTSearchLabel = "ע<><D7A2><EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
|
|
|
|
|
//map.DTSearchWay = Sys.DTSearchWay.ByDate;
|
|
|
|
|
|
|
|
|
|
////<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ö<EFBFBD>١<EFBFBD>
|
|
|
|
|
//map.AddSearchAttr(GDZCAttr.XB,1001); //<2F><><EFBFBD>ȴ<EFBFBD><C8B4><EFBFBD>1000<30><30><EFBFBD>ǻ<EFBFBD><C7BB><EFBFBD>.
|
|
|
|
|
//map.AddSearchAttr(GDZCAttr.FK_BanJi);
|
|
|
|
|
|
|
|
|
|
////<2F><><EFBFBD>صIJ<D8B5>ѯ<EFBFBD><D1AF><EFBFBD><EFBFBD>.
|
|
|
|
|
////map.AddHidden("XB", " = ", "0");
|
|
|
|
|
//#endregion <20><><EFBFBD>ò<EFBFBD>ѯ<EFBFBD><D1AF><EFBFBD><EFBFBD>.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//#region <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʵ<EFBFBD><CAB5><EFBFBD><EFBFBD>ӳ<EFBFBD><D3B3>.
|
|
|
|
|
////<2F><><EFBFBD>Զ<EFBFBD><D4B6><EFBFBD>ӳ<EFBFBD><D3B3>.
|
|
|
|
|
//map.AttrsOfOneVSM.Add(new GDZCKeMus(), new KeMus(), GDZCKeMuAttr.FK_GDZC,
|
|
|
|
|
// GDZCKeMuAttr.FK_KeMu, KeMuAttr.Name, KeMuAttr.No, "ѡ<>Ŀ<DEB5>Ŀ");
|
|
|
|
|
|
|
|
|
|
////<2F><>ϸ<EFBFBD><CFB8>ӳ<EFBFBD><D3B3>.
|
|
|
|
|
//map.AddDtl(new Resumes(), ResumeAttr.RefPK);
|
|
|
|
|
//#endregion <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʵ<EFBFBD><CAB5><EFBFBD><EFBFBD>ӳ<EFBFBD><D3B3>.
|
|
|
|
|
|
|
|
|
|
// #region <20><><EFBFBD><EFBFBD>ӳ<EFBFBD><D3B3>.
|
|
|
|
|
|
|
|
|
|
// //<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.HisAttrs.AddTBString("Nowete", null, "22<32><32>ע", true, false, 0, 100, 100);
|
|
|
|
|
// rm.ClassMethodName = this.ToString() + ".DoJiaoNaBanFei";
|
|
|
|
|
// rm.GroupName = "<22><><EFBFBD><EFBFBD>ִ<EFBFBD>в<EFBFBD><D0B2><EFBFBD>";
|
|
|
|
|
// // rm.IsCanBatch = 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.IsForEns = true;
|
|
|
|
|
// rm.IsCanBatch = 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>xx<78><78><EFBFBD><EFBFBD>";
|
|
|
|
|
// rm.ClassMethodName = this.ToString() + ".DoStartFlow";
|
|
|
|
|
// rm.RefMethodType = RefMethodType.LinkeWinOpen;
|
|
|
|
|
// rm.IsCanBatch = 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><>ӡ<EFBFBD>̶<EFBFBD><CCB6>ʲ<EFBFBD>֤";
|
|
|
|
|
// rm.ClassMethodName = this.ToString() + ".DoPrintStuLicence";
|
|
|
|
|
// rm.IsCanBatch = true; //<2F>Ƿ<EFBFBD><C7B7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
// map.AddRefMethod(rm);
|
|
|
|
|
// #endregion <20><><EFBFBD><EFBFBD>ӳ<EFBFBD><D3B3>.
|
|
|
|
|
|
|
|
|
|
////<2F><><EFBFBD><EFBFBD><EFBFBD>в<EFBFBD><D0B2><EFBFBD><EFBFBD>ķ<EFBFBD><C4B7><EFBFBD>.
|
|
|
|
|
//rm = new RefMethod();
|
|
|
|
|
//rm.Title = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ӡ<EFBFBD>̶<EFBFBD><CCB6>ʲ<EFBFBD>֤";
|
|
|
|
|
//rm.ClassMethodName = this.ToString() + ".EnsMothed";
|
|
|
|
|
////rm.IsForEns = 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;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
/// <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;
|
|
|
|
|
return base.beforeInsert();
|
|
|
|
|
}
|
|
|
|
|
protected override bool beforeUpdateInsertAction()
|
|
|
|
|
{
|
|
|
|
|
return base.beforeUpdateInsertAction();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#endregion <20><>д<EFBFBD><D0B4><EFBFBD><EFBFBD><E0B7BD>
|
|
|
|
|
|
|
|
|
|
#region <20><><EFBFBD><EFBFBD>
|
|
|
|
|
public string DoPrintStuLicence()
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
BP.Pub.RTFEngine en = new Pub.RTFEngine();
|
|
|
|
|
|
|
|
|
|
GDZC stu = new GDZC(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\\GDZCDemo.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=001&FK_Studept=" + this.No + "&StuName=" + 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()
|
|
|
|
|
{
|
|
|
|
|
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>
|
|
|
|
|
/// <20>̶<EFBFBD><CCB6>ʲ<EFBFBD>s
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class GDZCs : BP.En.EntitiesNoName
|
|
|
|
|
{
|
|
|
|
|
#region <20><><EFBFBD><EFBFBD>
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// <20>̶<EFBFBD><CCB6>ʲ<EFBFBD>s
|
|
|
|
|
/// </summary>
|
|
|
|
|
public GDZCs() { }
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region <20><>д<EFBFBD><D0B4><EFBFBD><EFBFBD><E0B7BD>
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// <20>õ<EFBFBD><C3B5><EFBFBD><EFBFBD><EFBFBD> Entity
|
|
|
|
|
/// </summary>
|
|
|
|
|
public override Entity GetNewEntity
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return new GDZC();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
#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
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|