using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using BP.DA;
using BP.En;
namespace BP.Demo.HNZY
{
public class TeacherManageAttr : EntityNoNameAttr
{
#region 个人基本信息字段
///
/// 身份证号
///
public static string IDCars = "IDCars";
///
/// 出生日期
///
public static string CSRQ = "CSRQ";
///
/// 性别
///
public static string Sex = "Sex";
///
/// 政治面貌
///
public static string ZZMM = "ZZMM";
///
/// 教师类别
///
public static string TeachersType = "TeachersType";
///
/// 婚姻状况
///
public static string HYZK = "HYZK";
///
/// 是否在编
///
public static string SFZB = "SFZB";
///
/// 联系地址
///
public static string Address = "Address";
///
/// Email
///
public static string Email = "Email";
///
/// 所属学校
///
public static string SSXX = "SSXX";
#endregion 个人基本信息字段
#region 教室业务基本信息字段
///
/// 最高学历
///
public static string ZGXL = "ZGXL";
///
/// 所学专业类别
///
public static string SXZY = "SXZY";
///
/// 所学专业名称
///
public static string ZYMC = "ZYMC";
///
/// 毕业院校
///
public static string BYYX = "BYYX";
///
/// 毕业时间
///
public static string BYSJ = "BYSJ";
///
/// 最高学位
///
public static string ZZXW = "ZZXW";
///
/// 学位类别
///
public static string XWLB = "XWLB";
///
/// 学位专业
///
public static string XWZY = "XWZY";
///
/// 学位院校
///
public static string XWYX = "XWYX";
///
/// 取得学位时间
///
public static string QDXWSJ = "QDXWSJ";
///
/// 现任职称
///
public static string XRZC = "XRZC";
///
/// 职称系列
///
public static string ZCXL = "ZCXL";
///
/// 聘任时间
///
public static string PRSJ = "PRSJ";
///
/// 现任行政职务
///
public static string XRXZZW = "XRXZZW";
///
/// 职务级别
///
public static string ZWJB = "ZWJB";
///
/// 职务任职时间
///
public static string ZWRZSJ = "ZWRZSJ";
///
/// 参加工作时间
///
public static string CJGZSJ = "CJGZSJ";
///
/// 从事教育时间
///
public static string CSJYSJ = "CSJYSJ";
///
/// 教师类别
///
public static string JSLB = "JSLB";
///
/// 任教课程分类
///
public static string RJKCFL = "RJKCFL";
///
/// 任教课程名称
///
public static string RJKCMC = "RJKCMC";
///
/// 是否双师
///
public static string SFSS = "SFSS";
///
/// 双师证书级别
///
public static string SSZSJB = "SSZSJB";
///
/// 双师证书名称
///
public static string SSZSMC = "SSZSMC";
///
/// 录入时间
///
public static string SSRLSJ = "SSRLSJ";
#endregion 教室业务基本信息字段
}
public class TeacherManage : EntityNoName
{
#region 属性
///
/// 身份证号
///
public string IDCars
{
get
{
return this.GetValStrByKey(TeacherManageAttr.IDCars);
}
}
///
/// 出生日期
///
public string CSRQ
{
get
{
return this.GetValStrByKey(TeacherManageAttr.CSRQ);
}
}
///
/// 所属学校
///
public string SSXX
{
get
{
return this.GetValStrByKey(TeacherManageAttr.SSXX);
}
}
///
/// 政治面貌
///
public int Sex
{
get
{
return this.GetValIntByKey(TeacherManageAttr.Sex);
}
}
///
/// 政治面貌
///
public string ZZMM
{
get
{
return this.GetValStrByKey(TeacherManageAttr.ZZMM);
}
}
///
/// 教师类别
///
public string TeachersType
{
get
{
return this.GetValStrByKey(TeacherManageAttr.TeachersType);
}
}
///
/// 婚姻状况
///
public int HYZK
{
get
{
return this.GetValIntByKey(TeacherManageAttr.HYZK);
}
}
///
/// 是否在编
///
public int SFZB
{
get
{
return this.GetValIntByKey(TeacherManageAttr.SFZB);
}
}
///
/// 邮箱
///
public string Email
{
get
{
return this.GetValStrByKey(TeacherManageAttr.Email);
}
}
///
/// 联系地址
///
public string Address
{
get
{
return this.GetValStrByKey(TeacherManageAttr.Address);
}
}
///
/// 最高学历
///
public string ZGXL
{
get
{
return this.GetValStrByKey(TeacherManageAttr.ZGXL);
}
}
///
/// 所学专业类别
///
public string SXZY
{
get
{
return this.GetValStrByKey(TeacherManageAttr.SXZY);
}
}
///
/// 所学专业名称
///
public string ZYMC
{
get
{
return this.GetValStrByKey(TeacherManageAttr.ZYMC);
}
}
///
/// 毕业院校
///
public string BYYX
{
get
{
return this.GetValStrByKey(TeacherManageAttr.BYYX);
}
}
///
/// 毕业时间
///
public string BYSJ
{
get
{
return this.GetValStrByKey(TeacherManageAttr.BYSJ);
}
}
///
/// 最好学位
///
public string ZZXW
{
get
{
return this.GetValStrByKey(TeacherManageAttr.ZZXW);
}
}
///
///学位类别
///
public string XWLB
{
get
{
return this.GetValStrByKey(TeacherManageAttr.XWLB);
}
}
///
/// 学位专业
///
public string XWZY
{
get
{
return this.GetValStrByKey(TeacherManageAttr.XWZY);
}
}
///
/// 学位院校
///
public string XWYX
{
get
{
return this.GetValStrByKey(TeacherManageAttr.XWYX);
}
}
///
/// 取得学位时间
///
public string QDXWSJ
{
get
{
return this.GetValStrByKey(TeacherManageAttr.QDXWSJ);
}
}
///
/// 现任职称
///
public string XRZC
{
get
{
return this.GetValStrByKey(TeacherManageAttr.XRZC);
}
}
///
/// 职称系列
///
public string ZCXL
{
get
{
return this.GetValStrByKey(TeacherManageAttr.ZCXL);
}
}
///
/// 聘任时间
///
public string PRSJ
{
get
{
return this.GetValStrByKey(TeacherManageAttr.PRSJ);
}
}
///
/// 现任行政职务
///
public string XRXZZW
{
get
{
return this.GetValStrByKey(TeacherManageAttr.XRXZZW);
}
}
///
/// 职务级别
///
public string ZWJB
{
get
{
return this.GetValStrByKey(TeacherManageAttr.ZWJB);
}
}
///
/// 任职时间
///
public string ZWRZSJ
{
get
{
return this.GetValStrByKey(TeacherManageAttr.ZWRZSJ);
}
}
///
/// 参加工作时间
///
public string CJGZSJ
{
get
{
return this.GetValStrByKey(TeacherManageAttr.CJGZSJ);
}
}
///
/// 从事教育时间
///
public string CSJYSJ
{
get
{
return this.GetValStrByKey(TeacherManageAttr.CSJYSJ);
}
}
///
/// 任教课程分类
///
public string RJKCFL
{
get
{
return this.GetValStrByKey(TeacherManageAttr.RJKCFL);
}
}
///
/// 任教课程名称
///
public string RJKCMC
{
get
{
return this.GetValStrByKey(TeacherManageAttr.RJKCMC);
}
}
///
/// 教师类别
///
public int JSLB
{
get
{
return this.GetValIntByKey(TeacherManageAttr.JSLB);
}
}
///
/// 是否双师
///
public int SFSS
{
get
{
return this.GetValIntByKey(TeacherManageAttr.SFSS);
}
}
///
/// 双师证书级别
///
public int SSZSJB
{
get
{
return this.GetValIntByKey(TeacherManageAttr.SSZSJB);
}
}
///
/// 双师证书名称
///
public string SSZSMC
{
get
{
return this.GetValStrByKey(TeacherManageAttr.SSZSMC);
}
}
///
/// 录入时间
///
public string SSRLSJ
{
get
{
return this.GetValStrByKey(TeacherManageAttr.SSRLSJ);
}
}
#endregion
#region 按钮权限控制
public override UAC HisUAC
{
get
{
UAC uac = new UAC();
uac.OpenAll();
return uac;
}
}
#endregion
#region 构造方法
///
/// 权限中心
///
public TeacherManage()
{
}
///
/// 权限中心
///
///
public TeacherManage(string no)
{
this.No = no;
this.Retrieve();
}
///
/// EnMap
///
public override Map EnMap
{
get
{
if (this._enMap != null)
return this._enMap;
Map map = new Map("Demo_Teacher");
map.DepositaryOfEntity = Depositary.None;
map.EnDesc = "教师信息管理";
map.EnType = EnType.Sys;
map.AddTBStringPK(TeacherManageAttr.No, null, "教师编码", true, true, 0, 100, 300);
map.AddTBString(TeacherManageAttr.Name, null, "姓名", true, true, 0, 100, 300);
map.AddTBString(TeacherManageAttr.IDCars, null, "身份证号", true, true, 0, 300, 200);
map.AddTBDate(TeacherManageAttr.CSRQ, "出生日期", true, false);
map.AddDDLSysEnum(TeacherManageAttr.Sex, 0, "性别", true, true, TeacherManageAttr.Sex, "@0=男@1=女", true);
map.AddDDLEntities(TeacherManageAttr.ZZMM, null, "政治面貌", new ZZMMs(), true);
map.AddDDLSysEnum(TeacherManageAttr.TeachersType, 0, "教师类别", true, true, TeacherManageAttr.TeachersType, "@0=兼职@1=非兼职", true);
map.AddDDLSysEnum(TeacherManageAttr.HYZK, 0, "婚姻状况", true, true, TeacherManageAttr.HYZK, "@0=未婚@1=已婚", true);
map.AddDDLSysEnum(TeacherManageAttr.SFZB, 0, "是否在编", true, true, TeacherManageAttr.SFZB, "@0=否@1=是", true);
map.AddTBString(TeacherManageAttr.Address, null, "联系地址", true, false, 0, 300, 200);
map.AddTBString(TeacherManageAttr.Email, null, "邮箱", true, false, 0, 300, 200);
map.AddDDLEntities(TeacherManageAttr.SSXX, null, "所属学校", new SchoolManagers(), true);
map.AddDDLEntities(TeacherManageAttr.ZGXL, null, "最高学历", new Educations(), true);
map.AddDDLEntities(TeacherManageAttr.SXZY, null, "所学专业类别", new MajorCategorys(), true);
map.AddTBString(TeacherManageAttr.ZYMC, null, "所学专业名称", true, false, 0, 300, 200);
map.AddTBString(TeacherManageAttr.BYYX, null, "毕业院校", true, false, 0, 300, 200);
map.AddTBDate(TeacherManageAttr.BYSJ, "毕业时间", true, false);
map.AddDDLSysEnum(TeacherManageAttr.ZZXW, 0, "最高学位", true, true, TeacherManageAttr.ZZXW, "@0=无@1=学士@2=硕士@3=博士", true);
map.AddDDLEntities(TeacherManageAttr.XWLB, null, "学位类别", new DegreeCategorys(), true);
map.AddTBString(TeacherManageAttr.XWZY, null, "学位专业", true, false, 0, 300, 200);
map.AddTBString(TeacherManageAttr.XWYX, null, "学位院校", true, false, 0, 300, 200);
map.AddTBDate(TeacherManageAttr.QDXWSJ, "取得学位时间", true, false);
map.AddDDLEntities(TeacherManageAttr.XRZC, null, "现任职称", new TechnicalTitles(), true);
map.AddDDLEntities(TeacherManageAttr.ZCXL, null, "职称系列", new TitelTypes(), true);
map.AddTBDate(TeacherManageAttr.PRSJ, "聘任时间", true, false);
map.AddTBString(TeacherManageAttr.XRXZZW, null, "现任行政职务", true, false, 0, 300, 200);
map.AddDDLEntities(TeacherManageAttr.ZWJB, null, "职务级别", new JobLevels(), true);
map.AddTBDate(TeacherManageAttr.ZWRZSJ, "任职时间", true, false);
map.AddTBDate(TeacherManageAttr.CJGZSJ, "参加工作时间", true, false);
map.AddTBDate(TeacherManageAttr.CSJYSJ, "从事教育时间", true, false);
map.AddDDLSysEnum(TeacherManageAttr.JSLB, 0, "教师类别", true, true, TeacherManageAttr.JSLB, "@0=专任@1=兼任", true);
map.AddDDLEntities(TeacherManageAttr.RJKCFL, null, "任教课程分类", new Classifications(), true);
map.AddTBString(TeacherManageAttr.RJKCMC, null, "任教课程名称", true, false, 0, 300, 200);
map.AddDDLSysEnum(TeacherManageAttr.SFSS, 0, "是否双师型", true, true, TeacherManageAttr.SFSS, "@0=否@1=是", true);
map.AddDDLSysEnum(TeacherManageAttr.SSZSJB, 0, "双师证书级别", true, true, TeacherManageAttr.SSZSJB, "@0=无@1=一级@2=二级", true);
map.AddTBString(TeacherManageAttr.SSZSMC, null, "双师证书名称", true, false, 0, 300, 200);
map.AddTBDate(TeacherManageAttr.SSRLSJ, "录入时间", true, false);
//map.AddSearchAttr(TeacherManageAttr.No);
//map.AddSearchAttr(TeacherManageAttr.IDCars);
map.AddSearchAttr(TeacherManageAttr.SSXX);
//map.AddSearchAttr(TeacherManageAttr.Name);
this._enMap = map;
return this._enMap;
}
}
#endregion
}
public class TeacherManages : EntitiesNoName
{
#region 构造方法
///
/// 得到它的 Entity
///
public override Entity GetNewEntity
{
get
{
return new TeacherManage();
}
}
///
/// 教师s
///
public TeacherManages()
{
}
///
/// 教师s
///
public TeacherManages(string no)
{
this.Retrieve(TeacherManageAttr.No, no);
}
#endregion 构造方法
#region 重写查询,add by zhoupeng 2015.09.30 为了适应能够从 webservice 数据源查询数据.
///
/// 重写查询全部适应从WS取数据需要
///
///
public override int RetrieveAll()
{
//if (BP.Web.WebUser.No != "admin")
// throw new Exception("@您没有查询的权限.");
return base.RetrieveAll();
}
///
/// 重写重数据源查询全部适应从WS取数据需要
///
///
public override int RetrieveAllFromDBSource()
{
return base.RetrieveAllFromDBSource();
}
#endregion 重写查询.
#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((TeacherManage)this[i]);
}
return list;
}
#endregion 为了适应自动翻译成java的需要,把实体转换成List.
}
}