#pragma warning disable 1591
//------------------------------------------------------------------------------
// <auto-generated>
//     此代码由工具生成。
//     运行库版本:2.0.50727.1882
//
//     对此文件的更改可能会导致不正确的行为，并且如果
//     重新生成代码，这些更改将会丢失。
// </auto-generated>
//------------------------------------------------------------------------------

namespace HRManagerSystem
{
	using System.Data.Linq;
	using System.Data.Linq.Mapping;
	using System.Data;
	using System.Collections.Generic;
	using System.Reflection;
	using System.Linq;
	using System.Linq.Expressions;
	using System.ComponentModel;
	using System;
	
	
	[System.Data.Linq.Mapping.DatabaseAttribute(Name="HR_DB")]
	public partial class DataDataContext : System.Data.Linq.DataContext
	{
		
		private static System.Data.Linq.Mapping.MappingSource mappingSource = new AttributeMappingSource();
		
    #region Extensibility Method Definitions
    partial void OnCreated();
    partial void InsertT_StaffRecords(T_StaffRecords instance);
    partial void UpdateT_StaffRecords(T_StaffRecords instance);
    partial void DeleteT_StaffRecords(T_StaffRecords instance);
    partial void InsertT_ZhiCheng(T_ZhiCheng instance);
    partial void UpdateT_ZhiCheng(T_ZhiCheng instance);
    partial void DeleteT_ZhiCheng(T_ZhiCheng instance);
    partial void InsertT_Users(T_Users instance);
    partial void UpdateT_Users(T_Users instance);
    partial void DeleteT_Users(T_Users instance);
    partial void InsertT_Type(T_Type instance);
    partial void UpdateT_Type(T_Type instance);
    partial void DeleteT_Type(T_Type instance);
    partial void InsertT_Trainings(T_Trainings instance);
    partial void UpdateT_Trainings(T_Trainings instance);
    partial void DeleteT_Trainings(T_Trainings instance);
    partial void InsertT_Nation(T_Nation instance);
    partial void UpdateT_Nation(T_Nation instance);
    partial void DeleteT_Nation(T_Nation instance);
    partial void InsertT_KaoPing(T_KaoPing instance);
    partial void UpdateT_KaoPing(T_KaoPing instance);
    partial void DeleteT_KaoPing(T_KaoPing instance);
    partial void InsertT_Jobs(T_Jobs instance);
    partial void UpdateT_Jobs(T_Jobs instance);
    partial void DeleteT_Jobs(T_Jobs instance);
    partial void InsertT_JiangCheng(T_JiangCheng instance);
    partial void UpdateT_JiangCheng(T_JiangCheng instance);
    partial void DeleteT_JiangCheng(T_JiangCheng instance);
    partial void InsertT_DiaoDu(T_DiaoDu instance);
    partial void UpdateT_DiaoDu(T_DiaoDu instance);
    partial void DeleteT_DiaoDu(T_DiaoDu instance);
    partial void InsertT_FuLi(T_FuLi instance);
    partial void UpdateT_FuLi(T_FuLi instance);
    partial void DeleteT_FuLi(T_FuLi instance);
    partial void InsertT_Department(T_Department instance);
    partial void UpdateT_Department(T_Department instance);
    partial void DeleteT_Department(T_Department instance);
    #endregion
		
		public DataDataContext() : 
				base(global::HRManagerSystem.Properties.Settings.Default.HR_DBConnectionString, mappingSource)
		{
			OnCreated();
		}
		
		public DataDataContext(string connection) : 
				base(connection, mappingSource)
		{
			OnCreated();
		}
		
		public DataDataContext(System.Data.IDbConnection connection) : 
				base(connection, mappingSource)
		{
			OnCreated();
		}
		
		public DataDataContext(string connection, System.Data.Linq.Mapping.MappingSource mappingSource) : 
				base(connection, mappingSource)
		{
			OnCreated();
		}
		
		public DataDataContext(System.Data.IDbConnection connection, System.Data.Linq.Mapping.MappingSource mappingSource) : 
				base(connection, mappingSource)
		{
			OnCreated();
		}
		
		public System.Data.Linq.Table<T_StaffRecords> T_StaffRecords
		{
			get
			{
				return this.GetTable<T_StaffRecords>();
			}
		}
		
		public System.Data.Linq.Table<V_StaffKP> V_StaffKP
		{
			get
			{
				return this.GetTable<V_StaffKP>();
			}
		}
		
		public System.Data.Linq.Table<V_StaffDD> V_StaffDD
		{
			get
			{
				return this.GetTable<V_StaffDD>();
			}
		}
		
		public System.Data.Linq.Table<V_StaffDetail> V_StaffDetail
		{
			get
			{
				return this.GetTable<V_StaffDetail>();
			}
		}
		
		public System.Data.Linq.Table<V_StaffJC> V_StaffJC
		{
			get
			{
				return this.GetTable<V_StaffJC>();
			}
		}
		
		public System.Data.Linq.Table<V_KPStaff> V_KPStaff
		{
			get
			{
				return this.GetTable<V_KPStaff>();
			}
		}
		
		public System.Data.Linq.Table<V_DDStaff> V_DDStaff
		{
			get
			{
				return this.GetTable<V_DDStaff>();
			}
		}
		
		public System.Data.Linq.Table<V_AddStaJC> V_AddStaJC
		{
			get
			{
				return this.GetTable<V_AddStaJC>();
			}
		}
		
		public System.Data.Linq.Table<T_ZhiCheng> T_ZhiCheng
		{
			get
			{
				return this.GetTable<T_ZhiCheng>();
			}
		}
		
		public System.Data.Linq.Table<T_Users> T_Users
		{
			get
			{
				return this.GetTable<T_Users>();
			}
		}
		
		public System.Data.Linq.Table<T_Type> T_Type
		{
			get
			{
				return this.GetTable<T_Type>();
			}
		}
		
		public System.Data.Linq.Table<T_Trainings> T_Trainings
		{
			get
			{
				return this.GetTable<T_Trainings>();
			}
		}
		
		public System.Data.Linq.Table<T_Nation> T_Nation
		{
			get
			{
				return this.GetTable<T_Nation>();
			}
		}
		
		public System.Data.Linq.Table<T_KaoPing> T_KaoPing
		{
			get
			{
				return this.GetTable<T_KaoPing>();
			}
		}
		
		public System.Data.Linq.Table<T_Jobs> T_Jobs
		{
			get
			{
				return this.GetTable<T_Jobs>();
			}
		}
		
		public System.Data.Linq.Table<T_JiangCheng> T_JiangCheng
		{
			get
			{
				return this.GetTable<T_JiangCheng>();
			}
		}
		
		public System.Data.Linq.Table<T_DiaoDu> T_DiaoDu
		{
			get
			{
				return this.GetTable<T_DiaoDu>();
			}
		}
		
		public System.Data.Linq.Table<T_FuLi> T_FuLi
		{
			get
			{
				return this.GetTable<T_FuLi>();
			}
		}
		
		public System.Data.Linq.Table<T_Department> T_Department
		{
			get
			{
				return this.GetTable<T_Department>();
			}
		}
		
		[Function(Name="dbo.Departinfo")]
		public ISingleResult<DepartinfoResult> Departinfo([Parameter(DbType="Int")] System.Nullable<int> id)
		{
			IExecuteResult result = this.ExecuteMethodCall(this, ((MethodInfo)(MethodInfo.GetCurrentMethod())), id);
			return ((ISingleResult<DepartinfoResult>)(result.ReturnValue));
		}
		
		[Function(Name="dbo.P_CountByDepart")]
		public ISingleResult<P_CountByDepartResult> P_CountByDepart([Parameter(Name="DepartID", DbType="Int")] System.Nullable<int> departID)
		{
			IExecuteResult result = this.ExecuteMethodCall(this, ((MethodInfo)(MethodInfo.GetCurrentMethod())), departID);
			return ((ISingleResult<P_CountByDepartResult>)(result.ReturnValue));
		}
		
		[Function(Name="dbo.P_DepartByStaff")]
		public ISingleResult<P_DepartByStaffResult> P_DepartByStaff([Parameter(Name="DepartID", DbType="NVarChar(20)")] string departID)
		{
			IExecuteResult result = this.ExecuteMethodCall(this, ((MethodInfo)(MethodInfo.GetCurrentMethod())), departID);
			return ((ISingleResult<P_DepartByStaffResult>)(result.ReturnValue));
		}
		
		[Function(Name="dbo.P_DiaoDuByStaffID")]
		public ISingleResult<P_DiaoDuByStaffIDResult> P_DiaoDuByStaffID([Parameter(Name="StaffID", DbType="Int")] System.Nullable<int> staffID)
		{
			IExecuteResult result = this.ExecuteMethodCall(this, ((MethodInfo)(MethodInfo.GetCurrentMethod())), staffID);
			return ((ISingleResult<P_DiaoDuByStaffIDResult>)(result.ReturnValue));
		}
		
		[Function(Name="dbo.P_DiaoDuByStaffname")]
		public ISingleResult<P_DiaoDuByStaffnameResult> P_DiaoDuByStaffname([Parameter(Name="StaffName", DbType="NVarChar(50)")] string staffName)
		{
			IExecuteResult result = this.ExecuteMethodCall(this, ((MethodInfo)(MethodInfo.GetCurrentMethod())), staffName);
			return ((ISingleResult<P_DiaoDuByStaffnameResult>)(result.ReturnValue));
		}
		
		[Function(Name="dbo.P_DiaoDuByStaffTime")]
		public ISingleResult<P_DiaoDuByStaffTimeResult> P_DiaoDuByStaffTime([Parameter(DbType="DateTime")] System.Nullable<System.DateTime> starttime, [Parameter(DbType="DateTime")] System.Nullable<System.DateTime> endtime)
		{
			IExecuteResult result = this.ExecuteMethodCall(this, ((MethodInfo)(MethodInfo.GetCurrentMethod())), starttime, endtime);
			return ((ISingleResult<P_DiaoDuByStaffTimeResult>)(result.ReturnValue));
		}
		
		[Function(Name="dbo.P_jc")]
		public ISingleResult<P_jcResult> P_jc([Parameter(DbType="DateTime")] System.Nullable<System.DateTime> starttime, [Parameter(DbType="DateTime")] System.Nullable<System.DateTime> endtime)
		{
			IExecuteResult result = this.ExecuteMethodCall(this, ((MethodInfo)(MethodInfo.GetCurrentMethod())), starttime, endtime);
			return ((ISingleResult<P_jcResult>)(result.ReturnValue));
		}
		
		[Function(Name="dbo.P_JiangChengOfStaff")]
		public ISingleResult<P_JiangChengOfStaffResult> P_JiangChengOfStaff([Parameter(Name="StaffID", DbType="Int")] System.Nullable<int> staffID)
		{
			IExecuteResult result = this.ExecuteMethodCall(this, ((MethodInfo)(MethodInfo.GetCurrentMethod())), staffID);
			return ((ISingleResult<P_JiangChengOfStaffResult>)(result.ReturnValue));
		}
		
		[Function(Name="dbo.P_KaoPingOfStaff")]
		public ISingleResult<P_KaoPingOfStaffResult> P_KaoPingOfStaff([Parameter(Name="StaffID", DbType="Int")] System.Nullable<int> staffID)
		{
			IExecuteResult result = this.ExecuteMethodCall(this, ((MethodInfo)(MethodInfo.GetCurrentMethod())), staffID);
			return ((ISingleResult<P_KaoPingOfStaffResult>)(result.ReturnValue));
		}
		
		[Function(Name="dbo.P_StaffByType")]
		public ISingleResult<P_StaffByTypeResult> P_StaffByType([Parameter(DbType="Int")] System.Nullable<int> stafftypeID)
		{
			IExecuteResult result = this.ExecuteMethodCall(this, ((MethodInfo)(MethodInfo.GetCurrentMethod())), stafftypeID);
			return ((ISingleResult<P_StaffByTypeResult>)(result.ReturnValue));
		}
		
		[Function(Name="dbo.P_TrainByTime")]
		public ISingleResult<P_TrainByTimeResult> P_TrainByTime([Parameter(Name="TrainStrTime", DbType="DateTime")] System.Nullable<System.DateTime> trainStrTime, [Parameter(Name="TrainEndTime", DbType="DateTime")] System.Nullable<System.DateTime> trainEndTime)
		{
			IExecuteResult result = this.ExecuteMethodCall(this, ((MethodInfo)(MethodInfo.GetCurrentMethod())), trainStrTime, trainEndTime);
			return ((ISingleResult<P_TrainByTimeResult>)(result.ReturnValue));
		}
	}
	
	[Table(Name="dbo.T_StaffRecords")]
	public partial class T_StaffRecords : INotifyPropertyChanging, INotifyPropertyChanged
	{
		
		private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
		
		private int _Staff_NationID;
		
		private int _Staff_ZhiChengID;
		
		private string _Photo_Path;
		
		private int _Staff_TypeID;
		
		private int _Staff_JobID;
		
		private int _Staff_DepartID;
		
		private string _Staff_Education;
		
		private string _Staff_Address;
		
		private string _Staff_Email;
		
		private string _Staff_Phone;
		
		private string _Staff_Mobile;
		
		private string _Staff_IDNumber;
		
		private bool _Staff_Sex;
		
		private string _Staff_Name;
		
		private int _Staff_ID;
		
		private EntitySet<T_Trainings> _T_Trainings;
		
		private EntitySet<T_KaoPing> _T_KaoPing;
		
		private EntitySet<T_JiangCheng> _T_JiangCheng;
		
		private EntitySet<T_DiaoDu> _T_DiaoDu;
		
		private EntitySet<T_FuLi> _T_FuLi;
		
		private EntityRef<T_ZhiCheng> _T_ZhiCheng;
		
		private EntityRef<T_Type> _T_Type;
		
		private EntityRef<T_Nation> _T_Nation;
		
		private EntityRef<T_Jobs> _T_Jobs;
		
		private EntityRef<T_Department> _T_Department;
		
    #region Extensibility Method Definitions
    partial void OnLoaded();
    partial void OnValidate(System.Data.Linq.ChangeAction action);
    partial void OnCreated();
    partial void OnStaff_NationIDChanging(int value);
    partial void OnStaff_NationIDChanged();
    partial void OnStaff_ZhiChengIDChanging(int value);
    partial void OnStaff_ZhiChengIDChanged();
    partial void OnPhoto_PathChanging(string value);
    partial void OnPhoto_PathChanged();
    partial void OnStaff_TypeIDChanging(int value);
    partial void OnStaff_TypeIDChanged();
    partial void OnStaff_JobIDChanging(int value);
    partial void OnStaff_JobIDChanged();
    partial void OnStaff_DepartIDChanging(int value);
    partial void OnStaff_DepartIDChanged();
    partial void OnStaff_EducationChanging(string value);
    partial void OnStaff_EducationChanged();
    partial void OnStaff_AddressChanging(string value);
    partial void OnStaff_AddressChanged();
    partial void OnStaff_EmailChanging(string value);
    partial void OnStaff_EmailChanged();
    partial void OnStaff_PhoneChanging(string value);
    partial void OnStaff_PhoneChanged();
    partial void OnStaff_MobileChanging(string value);
    partial void OnStaff_MobileChanged();
    partial void OnStaff_IDNumberChanging(string value);
    partial void OnStaff_IDNumberChanged();
    partial void OnStaff_SexChanging(bool value);
    partial void OnStaff_SexChanged();
    partial void OnStaff_NameChanging(string value);
    partial void OnStaff_NameChanged();
    partial void OnStaff_IDChanging(int value);
    partial void OnStaff_IDChanged();
    #endregion
		
		public T_StaffRecords()
		{
			this._T_Trainings = new EntitySet<T_Trainings>(new Action<T_Trainings>(this.attach_T_Trainings), new Action<T_Trainings>(this.detach_T_Trainings));
			this._T_KaoPing = new EntitySet<T_KaoPing>(new Action<T_KaoPing>(this.attach_T_KaoPing), new Action<T_KaoPing>(this.detach_T_KaoPing));
			this._T_JiangCheng = new EntitySet<T_JiangCheng>(new Action<T_JiangCheng>(this.attach_T_JiangCheng), new Action<T_JiangCheng>(this.detach_T_JiangCheng));
			this._T_DiaoDu = new EntitySet<T_DiaoDu>(new Action<T_DiaoDu>(this.attach_T_DiaoDu), new Action<T_DiaoDu>(this.detach_T_DiaoDu));
			this._T_FuLi = new EntitySet<T_FuLi>(new Action<T_FuLi>(this.attach_T_FuLi), new Action<T_FuLi>(this.detach_T_FuLi));
			this._T_ZhiCheng = default(EntityRef<T_ZhiCheng>);
			this._T_Type = default(EntityRef<T_Type>);
			this._T_Nation = default(EntityRef<T_Nation>);
			this._T_Jobs = default(EntityRef<T_Jobs>);
			this._T_Department = default(EntityRef<T_Department>);
			OnCreated();
		}
		
		[Column(Storage="_Staff_NationID", DbType="Int NOT NULL")]
		public int Staff_NationID
		{
			get
			{
				return this._Staff_NationID;
			}
			set
			{
				if ((this._Staff_NationID != value))
				{
					if (this._T_Nation.HasLoadedOrAssignedValue)
					{
						throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
					}
					this.OnStaff_NationIDChanging(value);
					this.SendPropertyChanging();
					this._Staff_NationID = value;
					this.SendPropertyChanged("Staff_NationID");
					this.OnStaff_NationIDChanged();
				}
			}
		}
		
		[Column(Storage="_Staff_ZhiChengID", DbType="Int NOT NULL")]
		public int Staff_ZhiChengID
		{
			get
			{
				return this._Staff_ZhiChengID;
			}
			set
			{
				if ((this._Staff_ZhiChengID != value))
				{
					if (this._T_ZhiCheng.HasLoadedOrAssignedValue)
					{
						throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
					}
					this.OnStaff_ZhiChengIDChanging(value);
					this.SendPropertyChanging();
					this._Staff_ZhiChengID = value;
					this.SendPropertyChanged("Staff_ZhiChengID");
					this.OnStaff_ZhiChengIDChanged();
				}
			}
		}
		
		[Column(Storage="_Photo_Path", DbType="NVarChar(100)")]
		public string Photo_Path
		{
			get
			{
				return this._Photo_Path;
			}
			set
			{
				if ((this._Photo_Path != value))
				{
					this.OnPhoto_PathChanging(value);
					this.SendPropertyChanging();
					this._Photo_Path = value;
					this.SendPropertyChanged("Photo_Path");
					this.OnPhoto_PathChanged();
				}
			}
		}
		
		[Column(Storage="_Staff_TypeID", DbType="Int NOT NULL")]
		public int Staff_TypeID
		{
			get
			{
				return this._Staff_TypeID;
			}
			set
			{
				if ((this._Staff_TypeID != value))
				{
					if (this._T_Type.HasLoadedOrAssignedValue)
					{
						throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
					}
					this.OnStaff_TypeIDChanging(value);
					this.SendPropertyChanging();
					this._Staff_TypeID = value;
					this.SendPropertyChanged("Staff_TypeID");
					this.OnStaff_TypeIDChanged();
				}
			}
		}
		
		[Column(Storage="_Staff_JobID", DbType="Int NOT NULL")]
		public int Staff_JobID
		{
			get
			{
				return this._Staff_JobID;
			}
			set
			{
				if ((this._Staff_JobID != value))
				{
					if (this._T_Jobs.HasLoadedOrAssignedValue)
					{
						throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
					}
					this.OnStaff_JobIDChanging(value);
					this.SendPropertyChanging();
					this._Staff_JobID = value;
					this.SendPropertyChanged("Staff_JobID");
					this.OnStaff_JobIDChanged();
				}
			}
		}
		
		[Column(Storage="_Staff_DepartID", DbType="Int NOT NULL")]
		public int Staff_DepartID
		{
			get
			{
				return this._Staff_DepartID;
			}
			set
			{
				if ((this._Staff_DepartID != value))
				{
					if (this._T_Department.HasLoadedOrAssignedValue)
					{
						throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
					}
					this.OnStaff_DepartIDChanging(value);
					this.SendPropertyChanging();
					this._Staff_DepartID = value;
					this.SendPropertyChanged("Staff_DepartID");
					this.OnStaff_DepartIDChanged();
				}
			}
		}
		
		[Column(Storage="_Staff_Education", DbType="NVarChar(20) NOT NULL", CanBeNull=false)]
		public string Staff_Education
		{
			get
			{
				return this._Staff_Education;
			}
			set
			{
				if ((this._Staff_Education != value))
				{
					this.OnStaff_EducationChanging(value);
					this.SendPropertyChanging();
					this._Staff_Education = value;
					this.SendPropertyChanged("Staff_Education");
					this.OnStaff_EducationChanged();
				}
			}
		}
		
		[Column(Storage="_Staff_Address", DbType="NVarChar(50)")]
		public string Staff_Address
		{
			get
			{
				return this._Staff_Address;
			}
			set
			{
				if ((this._Staff_Address != value))
				{
					this.OnStaff_AddressChanging(value);
					this.SendPropertyChanging();
					this._Staff_Address = value;
					this.SendPropertyChanged("Staff_Address");
					this.OnStaff_AddressChanged();
				}
			}
		}
		
		[Column(Storage="_Staff_Email", DbType="NVarChar(50) NOT NULL", CanBeNull=false)]
		public string Staff_Email
		{
			get
			{
				return this._Staff_Email;
			}
			set
			{
				if ((this._Staff_Email != value))
				{
					this.OnStaff_EmailChanging(value);
					this.SendPropertyChanging();
					this._Staff_Email = value;
					this.SendPropertyChanged("Staff_Email");
					this.OnStaff_EmailChanged();
				}
			}
		}
		
		[Column(Storage="_Staff_Phone", DbType="NVarChar(15)")]
		public string Staff_Phone
		{
			get
			{
				return this._Staff_Phone;
			}
			set
			{
				if ((this._Staff_Phone != value))
				{
					this.OnStaff_PhoneChanging(value);
					this.SendPropertyChanging();
					this._Staff_Phone = value;
					this.SendPropertyChanged("Staff_Phone");
					this.OnStaff_PhoneChanged();
				}
			}
		}
		
		[Column(Storage="_Staff_Mobile", DbType="NVarChar(11) NOT NULL", CanBeNull=false)]
		public string Staff_Mobile
		{
			get
			{
				return this._Staff_Mobile;
			}
			set
			{
				if ((this._Staff_Mobile != value))
				{
					this.OnStaff_MobileChanging(value);
					this.SendPropertyChanging();
					this._Staff_Mobile = value;
					this.SendPropertyChanged("Staff_Mobile");
					this.OnStaff_MobileChanged();
				}
			}
		}
		
		[Column(Storage="_Staff_IDNumber", DbType="NVarChar(18) NOT NULL", CanBeNull=false)]
		public string Staff_IDNumber
		{
			get
			{
				return this._Staff_IDNumber;
			}
			set
			{
				if ((this._Staff_IDNumber != value))
				{
					this.OnStaff_IDNumberChanging(value);
					this.SendPropertyChanging();
					this._Staff_IDNumber = value;
					this.SendPropertyChanged("Staff_IDNumber");
					this.OnStaff_IDNumberChanged();
				}
			}
		}
		
		[Column(Storage="_Staff_Sex", DbType="Bit NOT NULL")]
		public bool Staff_Sex
		{
			get
			{
				return this._Staff_Sex;
			}
			set
			{
				if ((this._Staff_Sex != value))
				{
					this.OnStaff_SexChanging(value);
					this.SendPropertyChanging();
					this._Staff_Sex = value;
					this.SendPropertyChanged("Staff_Sex");
					this.OnStaff_SexChanged();
				}
			}
		}
		
		[Column(Storage="_Staff_Name", DbType="NVarChar(50) NOT NULL", CanBeNull=false)]
		public string Staff_Name
		{
			get
			{
				return this._Staff_Name;
			}
			set
			{
				if ((this._Staff_Name != value))
				{
					this.OnStaff_NameChanging(value);
					this.SendPropertyChanging();
					this._Staff_Name = value;
					this.SendPropertyChanged("Staff_Name");
					this.OnStaff_NameChanged();
				}
			}
		}
		
		[Column(Storage="_Staff_ID", AutoSync=AutoSync.OnInsert, DbType="Int NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
		public int Staff_ID
		{
			get
			{
				return this._Staff_ID;
			}
			set
			{
				if ((this._Staff_ID != value))
				{
					this.OnStaff_IDChanging(value);
					this.SendPropertyChanging();
					this._Staff_ID = value;
					this.SendPropertyChanged("Staff_ID");
					this.OnStaff_IDChanged();
				}
			}
		}
		
		[Association(Name="T_StaffRecords_T_Trainings", Storage="_T_Trainings", OtherKey="Staff_ID")]
		public EntitySet<T_Trainings> T_Trainings
		{
			get
			{
				return this._T_Trainings;
			}
			set
			{
				this._T_Trainings.Assign(value);
			}
		}
		
		[Association(Name="T_StaffRecords_T_KaoPing", Storage="_T_KaoPing", OtherKey="Staff_ID")]
		public EntitySet<T_KaoPing> T_KaoPing
		{
			get
			{
				return this._T_KaoPing;
			}
			set
			{
				this._T_KaoPing.Assign(value);
			}
		}
		
		[Association(Name="T_StaffRecords_T_JiangCheng", Storage="_T_JiangCheng", OtherKey="Staff_ID")]
		public EntitySet<T_JiangCheng> T_JiangCheng
		{
			get
			{
				return this._T_JiangCheng;
			}
			set
			{
				this._T_JiangCheng.Assign(value);
			}
		}
		
		[Association(Name="T_StaffRecords_T_DiaoDu", Storage="_T_DiaoDu", OtherKey="Staff_ID")]
		public EntitySet<T_DiaoDu> T_DiaoDu
		{
			get
			{
				return this._T_DiaoDu;
			}
			set
			{
				this._T_DiaoDu.Assign(value);
			}
		}
		
		[Association(Name="T_StaffRecords_T_FuLi", Storage="_T_FuLi", OtherKey="Staff_ID")]
		public EntitySet<T_FuLi> T_FuLi
		{
			get
			{
				return this._T_FuLi;
			}
			set
			{
				this._T_FuLi.Assign(value);
			}
		}
		
		[Association(Name="T_ZhiCheng_T_StaffRecords", Storage="_T_ZhiCheng", ThisKey="Staff_ZhiChengID", IsForeignKey=true)]
		public T_ZhiCheng T_ZhiCheng
		{
			get
			{
				return this._T_ZhiCheng.Entity;
			}
			set
			{
				T_ZhiCheng previousValue = this._T_ZhiCheng.Entity;
				if (((previousValue != value) 
							|| (this._T_ZhiCheng.HasLoadedOrAssignedValue == false)))
				{
					this.SendPropertyChanging();
					if ((previousValue != null))
					{
						this._T_ZhiCheng.Entity = null;
						previousValue.T_StaffRecords.Remove(this);
					}
					this._T_ZhiCheng.Entity = value;
					if ((value != null))
					{
						value.T_StaffRecords.Add(this);
						this._Staff_ZhiChengID = value.ZhiCheng_ID;
					}
					else
					{
						this._Staff_ZhiChengID = default(int);
					}
					this.SendPropertyChanged("T_ZhiCheng");
				}
			}
		}
		
		[Association(Name="T_Type_T_StaffRecords", Storage="_T_Type", ThisKey="Staff_TypeID", IsForeignKey=true)]
		public T_Type T_Type
		{
			get
			{
				return this._T_Type.Entity;
			}
			set
			{
				T_Type previousValue = this._T_Type.Entity;
				if (((previousValue != value) 
							|| (this._T_Type.HasLoadedOrAssignedValue == false)))
				{
					this.SendPropertyChanging();
					if ((previousValue != null))
					{
						this._T_Type.Entity = null;
						previousValue.T_StaffRecords.Remove(this);
					}
					this._T_Type.Entity = value;
					if ((value != null))
					{
						value.T_StaffRecords.Add(this);
						this._Staff_TypeID = value.Type_ID;
					}
					else
					{
						this._Staff_TypeID = default(int);
					}
					this.SendPropertyChanged("T_Type");
				}
			}
		}
		
		[Association(Name="T_Nation_T_StaffRecords", Storage="_T_Nation", ThisKey="Staff_NationID", IsForeignKey=true)]
		public T_Nation T_Nation
		{
			get
			{
				return this._T_Nation.Entity;
			}
			set
			{
				T_Nation previousValue = this._T_Nation.Entity;
				if (((previousValue != value) 
							|| (this._T_Nation.HasLoadedOrAssignedValue == false)))
				{
					this.SendPropertyChanging();
					if ((previousValue != null))
					{
						this._T_Nation.Entity = null;
						previousValue.T_StaffRecords.Remove(this);
					}
					this._T_Nation.Entity = value;
					if ((value != null))
					{
						value.T_StaffRecords.Add(this);
						this._Staff_NationID = value.Nation_ID;
					}
					else
					{
						this._Staff_NationID = default(int);
					}
					this.SendPropertyChanged("T_Nation");
				}
			}
		}
		
		[Association(Name="T_Jobs_T_StaffRecords", Storage="_T_Jobs", ThisKey="Staff_JobID", IsForeignKey=true)]
		public T_Jobs T_Jobs
		{
			get
			{
				return this._T_Jobs.Entity;
			}
			set
			{
				T_Jobs previousValue = this._T_Jobs.Entity;
				if (((previousValue != value) 
							|| (this._T_Jobs.HasLoadedOrAssignedValue == false)))
				{
					this.SendPropertyChanging();
					if ((previousValue != null))
					{
						this._T_Jobs.Entity = null;
						previousValue.T_StaffRecords.Remove(this);
					}
					this._T_Jobs.Entity = value;
					if ((value != null))
					{
						value.T_StaffRecords.Add(this);
						this._Staff_JobID = value.Job_ID;
					}
					else
					{
						this._Staff_JobID = default(int);
					}
					this.SendPropertyChanged("T_Jobs");
				}
			}
		}
		
		[Association(Name="T_Department_T_StaffRecords", Storage="_T_Department", ThisKey="Staff_DepartID", IsForeignKey=true)]
		public T_Department T_Department
		{
			get
			{
				return this._T_Department.Entity;
			}
			set
			{
				T_Department previousValue = this._T_Department.Entity;
				if (((previousValue != value) 
							|| (this._T_Department.HasLoadedOrAssignedValue == false)))
				{
					this.SendPropertyChanging();
					if ((previousValue != null))
					{
						this._T_Department.Entity = null;
						previousValue.T_StaffRecords.Remove(this);
					}
					this._T_Department.Entity = value;
					if ((value != null))
					{
						value.T_StaffRecords.Add(this);
						this._Staff_DepartID = value.Depart_ID;
					}
					else
					{
						this._Staff_DepartID = default(int);
					}
					this.SendPropertyChanged("T_Department");
				}
			}
		}
		
		public event PropertyChangingEventHandler PropertyChanging;
		
		public event PropertyChangedEventHandler PropertyChanged;
		
		protected virtual void SendPropertyChanging()
		{
			if ((this.PropertyChanging != null))
			{
				this.PropertyChanging(this, emptyChangingEventArgs);
			}
		}
		
		protected virtual void SendPropertyChanged(String propertyName)
		{
			if ((this.PropertyChanged != null))
			{
				this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
			}
		}
		
		private void attach_T_Trainings(T_Trainings entity)
		{
			this.SendPropertyChanging();
			entity.T_StaffRecords = this;
		}
		
		private void detach_T_Trainings(T_Trainings entity)
		{
			this.SendPropertyChanging();
			entity.T_StaffRecords = null;
		}
		
		private void attach_T_KaoPing(T_KaoPing entity)
		{
			this.SendPropertyChanging();
			entity.T_StaffRecords = this;
		}
		
		private void detach_T_KaoPing(T_KaoPing entity)
		{
			this.SendPropertyChanging();
			entity.T_StaffRecords = null;
		}
		
		private void attach_T_JiangCheng(T_JiangCheng entity)
		{
			this.SendPropertyChanging();
			entity.T_StaffRecords = this;
		}
		
		private void detach_T_JiangCheng(T_JiangCheng entity)
		{
			this.SendPropertyChanging();
			entity.T_StaffRecords = null;
		}
		
		private void attach_T_DiaoDu(T_DiaoDu entity)
		{
			this.SendPropertyChanging();
			entity.T_StaffRecords = this;
		}
		
		private void detach_T_DiaoDu(T_DiaoDu entity)
		{
			this.SendPropertyChanging();
			entity.T_StaffRecords = null;
		}
		
		private void attach_T_FuLi(T_FuLi entity)
		{
			this.SendPropertyChanging();
			entity.T_StaffRecords = this;
		}
		
		private void detach_T_FuLi(T_FuLi entity)
		{
			this.SendPropertyChanging();
			entity.T_StaffRecords = null;
		}
	}
	
	[Table(Name="dbo.V_StaffKP")]
	public partial class V_StaffKP
	{
		
		private int _考评编号;
		
		private int _员工编号;
		
		private string _员工姓名;
		
		private string _部门;
		
		private string _考评内容;
		
		private string _考评结果;
		
		private double _考评分数;
		
		private System.DateTime _考评时间;
		
		public V_StaffKP()
		{
		}
		
		[Column(Storage="_考评编号", DbType="Int NOT NULL")]
		public int 考评编号
		{
			get
			{
				return this._考评编号;
			}
			set
			{
				if ((this._考评编号 != value))
				{
					this._考评编号 = value;
				}
			}
		}
		
		[Column(Storage="_员工编号", DbType="Int NOT NULL")]
		public int 员工编号
		{
			get
			{
				return this._员工编号;
			}
			set
			{
				if ((this._员工编号 != value))
				{
					this._员工编号 = value;
				}
			}
		}
		
		[Column(Storage="_员工姓名", DbType="NVarChar(50) NOT NULL", CanBeNull=false)]
		public string 员工姓名
		{
			get
			{
				return this._员工姓名;
			}
			set
			{
				if ((this._员工姓名 != value))
				{
					this._员工姓名 = value;
				}
			}
		}
		
		[Column(Storage="_部门", DbType="NVarChar(20) NOT NULL", CanBeNull=false)]
		public string 部门
		{
			get
			{
				return this._部门;
			}
			set
			{
				if ((this._部门 != value))
				{
					this._部门 = value;
				}
			}
		}
		
		[Column(Storage="_考评内容", DbType="NVarChar(50) NOT NULL", CanBeNull=false)]
		public string 考评内容
		{
			get
			{
				return this._考评内容;
			}
			set
			{
				if ((this._考评内容 != value))
				{
					this._考评内容 = value;
				}
			}
		}
		
		[Column(Storage="_考评结果", DbType="NVarChar(500) NOT NULL", CanBeNull=false)]
		public string 考评结果
		{
			get
			{
				return this._考评结果;
			}
			set
			{
				if ((this._考评结果 != value))
				{
					this._考评结果 = value;
				}
			}
		}
		
		[Column(Storage="_考评分数", DbType="Float NOT NULL")]
		public double 考评分数
		{
			get
			{
				return this._考评分数;
			}
			set
			{
				if ((this._考评分数 != value))
				{
					this._考评分数 = value;
				}
			}
		}
		
		[Column(Storage="_考评时间", DbType="DateTime NOT NULL")]
		public System.DateTime 考评时间
		{
			get
			{
				return this._考评时间;
			}
			set
			{
				if ((this._考评时间 != value))
				{
					this._考评时间 = value;
				}
			}
		}
	}
	
	[Table(Name="dbo.V_StaffDD")]
	public partial class V_StaffDD
	{
		
		private int _DiaoDu_ID;
		
		private int _Staff_ID;
		
		private System.DateTime _DiaoDu_Time;
		
		private string _Staff_Name;
		
		private string _Depart_Name;
		
		private string _Job_Name;
		
		private System.Nullable<int> _New_DepartID;
		
		private System.Nullable<int> _Old_DepartID;
		
		private string _newdepart_name;
		
		private string _Expr1;
		
		public V_StaffDD()
		{
		}
		
		[Column(Storage="_DiaoDu_ID", DbType="Int NOT NULL")]
		public int DiaoDu_ID
		{
			get
			{
				return this._DiaoDu_ID;
			}
			set
			{
				if ((this._DiaoDu_ID != value))
				{
					this._DiaoDu_ID = value;
				}
			}
		}
		
		[Column(Storage="_Staff_ID", DbType="Int NOT NULL")]
		public int Staff_ID
		{
			get
			{
				return this._Staff_ID;
			}
			set
			{
				if ((this._Staff_ID != value))
				{
					this._Staff_ID = value;
				}
			}
		}
		
		[Column(Storage="_DiaoDu_Time", DbType="DateTime NOT NULL")]
		public System.DateTime DiaoDu_Time
		{
			get
			{
				return this._DiaoDu_Time;
			}
			set
			{
				if ((this._DiaoDu_Time != value))
				{
					this._DiaoDu_Time = value;
				}
			}
		}
		
		[Column(Storage="_Staff_Name", DbType="NVarChar(50) NOT NULL", CanBeNull=false)]
		public string Staff_Name
		{
			get
			{
				return this._Staff_Name;
			}
			set
			{
				if ((this._Staff_Name != value))
				{
					this._Staff_Name = value;
				}
			}
		}
		
		[Column(Storage="_Depart_Name", DbType="NVarChar(20) NOT NULL", CanBeNull=false)]
		public string Depart_Name
		{
			get
			{
				return this._Depart_Name;
			}
			set
			{
				if ((this._Depart_Name != value))
				{
					this._Depart_Name = value;
				}
			}
		}
		
		[Column(Storage="_Job_Name", DbType="NVarChar(20) NOT NULL", CanBeNull=false)]
		public string Job_Name
		{
			get
			{
				return this._Job_Name;
			}
			set
			{
				if ((this._Job_Name != value))
				{
					this._Job_Name = value;
				}
			}
		}
		
		[Column(Storage="_New_DepartID", DbType="Int")]
		public System.Nullable<int> New_DepartID
		{
			get
			{
				return this._New_DepartID;
			}
			set
			{
				if ((this._New_DepartID != value))
				{
					this._New_DepartID = value;
				}
			}
		}
		
		[Column(Storage="_Old_DepartID", DbType="Int")]
		public System.Nullable<int> Old_DepartID
		{
			get
			{
				return this._Old_DepartID;
			}
			set
			{
				if ((this._Old_DepartID != value))
				{
					this._Old_DepartID = value;
				}
			}
		}
		
		[Column(Storage="_newdepart_name", DbType="NVarChar(20) NOT NULL", CanBeNull=false)]
		public string newdepart_name
		{
			get
			{
				return this._newdepart_name;
			}
			set
			{
				if ((this._newdepart_name != value))
				{
					this._newdepart_name = value;
				}
			}
		}
		
		[Column(Storage="_Expr1", DbType="NVarChar(20) NOT NULL", CanBeNull=false)]
		public string Expr1
		{
			get
			{
				return this._Expr1;
			}
			set
			{
				if ((this._Expr1 != value))
				{
					this._Expr1 = value;
				}
			}
		}
	}
	
	[Table(Name="dbo.V_StaffDetail")]
	public partial class V_StaffDetail
	{
		
		private int _Staff_ID;
		
		private string _Staff_Name;
		
		private bool _Staff_Sex;
		
		private string _Nation_Name;
		
		private string _ZhiCheng_Name;
		
		private string _Job_Name;
		
		private string _Depart_Name;
		
		private string _Staff_Education;
		
		private string _Type_Name;
		
		private string _Staff_IDNumber;
		
		private string _Staff_Mobile;
		
		private string _Staff_Phone;
		
		private string _Staff_Email;
		
		private string _Staff_Address;
		
		public V_StaffDetail()
		{
		}
		
		[Column(Storage="_Staff_ID", DbType="Int NOT NULL")]
		public int Staff_ID
		{
			get
			{
				return this._Staff_ID;
			}
			set
			{
				if ((this._Staff_ID != value))
				{
					this._Staff_ID = value;
				}
			}
		}
		
		[Column(Storage="_Staff_Name", DbType="NVarChar(50) NOT NULL", CanBeNull=false)]
		public string Staff_Name
		{
			get
			{
				return this._Staff_Name;
			}
			set
			{
				if ((this._Staff_Name != value))
				{
					this._Staff_Name = value;
				}
			}
		}
		
		[Column(Storage="_Staff_Sex", DbType="Bit NOT NULL")]
		public bool Staff_Sex
		{
			get
			{
				return this._Staff_Sex;
			}
			set
			{
				if ((this._Staff_Sex != value))
				{
					this._Staff_Sex = value;
				}
			}
		}
		
		[Column(Storage="_Nation_Name", DbType="VarChar(20) NOT NULL", CanBeNull=false)]
		public string Nation_Name
		{
			get
			{
				return this._Nation_Name;
			}
			set
			{
				if ((this._Nation_Name != value))
				{
					this._Nation_Name = value;
				}
			}
		}
		
		[Column(Storage="_ZhiCheng_Name", DbType="VarChar(20) NOT NULL", CanBeNull=false)]
		public string ZhiCheng_Name
		{
			get
			{
				return this._ZhiCheng_Name;
			}
			set
			{
				if ((this._ZhiCheng_Name != value))
				{
					this._ZhiCheng_Name = value;
				}
			}
		}
		
		[Column(Storage="_Job_Name", DbType="NVarChar(20) NOT NULL", CanBeNull=false)]
		public string Job_Name
		{
			get
			{
				return this._Job_Name;
			}
			set
			{
				if ((this._Job_Name != value))
				{
					this._Job_Name = value;
				}
			}
		}
		
		[Column(Storage="_Depart_Name", DbType="NVarChar(20) NOT NULL", CanBeNull=false)]
		public string Depart_Name
		{
			get
			{
				return this._Depart_Name;
			}
			set
			{
				if ((this._Depart_Name != value))
				{
					this._Depart_Name = value;
				}
			}
		}
		
		[Column(Storage="_Staff_Education", DbType="NVarChar(20) NOT NULL", CanBeNull=false)]
		public string Staff_Education
		{
			get
			{
				return this._Staff_Education;
			}
			set
			{
				if ((this._Staff_Education != value))
				{
					this._Staff_Education = value;
				}
			}
		}
		
		[Column(Storage="_Type_Name", DbType="NVarChar(20) NOT NULL", CanBeNull=false)]
		public string Type_Name
		{
			get
			{
				return this._Type_Name;
			}
			set
			{
				if ((this._Type_Name != value))
				{
					this._Type_Name = value;
				}
			}
		}
		
		[Column(Storage="_Staff_IDNumber", DbType="NVarChar(18) NOT NULL", CanBeNull=false)]
		public string Staff_IDNumber
		{
			get
			{
				return this._Staff_IDNumber;
			}
			set
			{
				if ((this._Staff_IDNumber != value))
				{
					this._Staff_IDNumber = value;
				}
			}
		}
		
		[Column(Storage="_Staff_Mobile", DbType="NVarChar(11) NOT NULL", CanBeNull=false)]
		public string Staff_Mobile
		{
			get
			{
				return this._Staff_Mobile;
			}
			set
			{
				if ((this._Staff_Mobile != value))
				{
					this._Staff_Mobile = value;
				}
			}
		}
		
		[Column(Storage="_Staff_Phone", DbType="NVarChar(15)")]
		public string Staff_Phone
		{
			get
			{
				return this._Staff_Phone;
			}
			set
			{
				if ((this._Staff_Phone != value))
				{
					this._Staff_Phone = value;
				}
			}
		}
		
		[Column(Storage="_Staff_Email", DbType="NVarChar(50) NOT NULL", CanBeNull=false)]
		public string Staff_Email
		{
			get
			{
				return this._Staff_Email;
			}
			set
			{
				if ((this._Staff_Email != value))
				{
					this._Staff_Email = value;
				}
			}
		}
		
		[Column(Storage="_Staff_Address", DbType="NVarChar(50)")]
		public string Staff_Address
		{
			get
			{
				return this._Staff_Address;
			}
			set
			{
				if ((this._Staff_Address != value))
				{
					this._Staff_Address = value;
				}
			}
		}
	}
	
	[Table(Name="dbo.V_StaffJC")]
	public partial class V_StaffJC
	{
		
		private int _JC_ID;
		
		private string _Staff_Name;
		
		private string _Depart_Name;
		
		private string _Job_Name;
		
		private System.Nullable<bool> _AwardORpunish;
		
		private System.Nullable<System.DateTime> _JC_Time;
		
		private decimal _JC_Money;
		
		private string _JC_Cause;
		
		public V_StaffJC()
		{
		}
		
		[Column(Storage="_JC_ID", DbType="Int NOT NULL")]
		public int JC_ID
		{
			get
			{
				return this._JC_ID;
			}
			set
			{
				if ((this._JC_ID != value))
				{
					this._JC_ID = value;
				}
			}
		}
		
		[Column(Storage="_Staff_Name", DbType="NVarChar(50) NOT NULL", CanBeNull=false)]
		public string Staff_Name
		{
			get
			{
				return this._Staff_Name;
			}
			set
			{
				if ((this._Staff_Name != value))
				{
					this._Staff_Name = value;
				}
			}
		}
		
		[Column(Storage="_Depart_Name", DbType="NVarChar(20) NOT NULL", CanBeNull=false)]
		public string Depart_Name
		{
			get
			{
				return this._Depart_Name;
			}
			set
			{
				if ((this._Depart_Name != value))
				{
					this._Depart_Name = value;
				}
			}
		}
		
		[Column(Storage="_Job_Name", DbType="NVarChar(20) NOT NULL", CanBeNull=false)]
		public string Job_Name
		{
			get
			{
				return this._Job_Name;
			}
			set
			{
				if ((this._Job_Name != value))
				{
					this._Job_Name = value;
				}
			}
		}
		
		[Column(Storage="_AwardORpunish", DbType="Bit")]
		public System.Nullable<bool> AwardORpunish
		{
			get
			{
				return this._AwardORpunish;
			}
			set
			{
				if ((this._AwardORpunish != value))
				{
					this._AwardORpunish = value;
				}
			}
		}
		
		[Column(Storage="_JC_Time", DbType="DateTime")]
		public System.Nullable<System.DateTime> JC_Time
		{
			get
			{
				return this._JC_Time;
			}
			set
			{
				if ((this._JC_Time != value))
				{
					this._JC_Time = value;
				}
			}
		}
		
		[Column(Storage="_JC_Money", DbType="Money NOT NULL")]
		public decimal JC_Money
		{
			get
			{
				return this._JC_Money;
			}
			set
			{
				if ((this._JC_Money != value))
				{
					this._JC_Money = value;
				}
			}
		}
		
		[Column(Storage="_JC_Cause", DbType="NVarChar(50)")]
		public string JC_Cause
		{
			get
			{
				return this._JC_Cause;
			}
			set
			{
				if ((this._JC_Cause != value))
				{
					this._JC_Cause = value;
				}
			}
		}
	}
	
	[Table(Name="dbo.V_KPStaff")]
	public partial class V_KPStaff
	{
		
		private int _员工编号;
		
		private string _员工姓名;
		
		private string _部门;
		
		public V_KPStaff()
		{
		}
		
		[Column(Storage="_员工编号", DbType="Int NOT NULL")]
		public int 员工编号
		{
			get
			{
				return this._员工编号;
			}
			set
			{
				if ((this._员工编号 != value))
				{
					this._员工编号 = value;
				}
			}
		}
		
		[Column(Storage="_员工姓名", DbType="NVarChar(50) NOT NULL", CanBeNull=false)]
		public string 员工姓名
		{
			get
			{
				return this._员工姓名;
			}
			set
			{
				if ((this._员工姓名 != value))
				{
					this._员工姓名 = value;
				}
			}
		}
		
		[Column(Storage="_部门", DbType="NVarChar(20) NOT NULL", CanBeNull=false)]
		public string 部门
		{
			get
			{
				return this._部门;
			}
			set
			{
				if ((this._部门 != value))
				{
					this._部门 = value;
				}
			}
		}
	}
	
	[Table(Name="dbo.V_DDStaff")]
	public partial class V_DDStaff
	{
		
		private int _员工编号;
		
		private string _员工姓名;
		
		private string _部门;
		
		private string _职务;
		
		public V_DDStaff()
		{
		}
		
		[Column(Storage="_员工编号", DbType="Int NOT NULL")]
		public int 员工编号
		{
			get
			{
				return this._员工编号;
			}
			set
			{
				if ((this._员工编号 != value))
				{
					this._员工编号 = value;
				}
			}
		}
		
		[Column(Storage="_员工姓名", DbType="NVarChar(50) NOT NULL", CanBeNull=false)]
		public string 员工姓名
		{
			get
			{
				return this._员工姓名;
			}
			set
			{
				if ((this._员工姓名 != value))
				{
					this._员工姓名 = value;
				}
			}
		}
		
		[Column(Storage="_部门", DbType="NVarChar(20) NOT NULL", CanBeNull=false)]
		public string 部门
		{
			get
			{
				return this._部门;
			}
			set
			{
				if ((this._部门 != value))
				{
					this._部门 = value;
				}
			}
		}
		
		[Column(Storage="_职务", DbType="NVarChar(20) NOT NULL", CanBeNull=false)]
		public string 职务
		{
			get
			{
				return this._职务;
			}
			set
			{
				if ((this._职务 != value))
				{
					this._职务 = value;
				}
			}
		}
	}
	
	[Table(Name="dbo.V_AddStaJC")]
	public partial class V_AddStaJC
	{
		
		private int _员工编号;
		
		private string _员工姓名;
		
		private string _部门;
		
		private string _考评内容;
		
		private double _考评分数;
		
		private string _考评结果;
		
		public V_AddStaJC()
		{
		}
		
		[Column(Storage="_员工编号", DbType="Int NOT NULL")]
		public int 员工编号
		{
			get
			{
				return this._员工编号;
			}
			set
			{
				if ((this._员工编号 != value))
				{
					this._员工编号 = value;
				}
			}
		}
		
		[Column(Storage="_员工姓名", DbType="NVarChar(50) NOT NULL", CanBeNull=false)]
		public string 员工姓名
		{
			get
			{
				return this._员工姓名;
			}
			set
			{
				if ((this._员工姓名 != value))
				{
					this._员工姓名 = value;
				}
			}
		}
		
		[Column(Storage="_部门", DbType="NVarChar(20) NOT NULL", CanBeNull=false)]
		public string 部门
		{
			get
			{
				return this._部门;
			}
			set
			{
				if ((this._部门 != value))
				{
					this._部门 = value;
				}
			}
		}
		
		[Column(Storage="_考评内容", DbType="NVarChar(50) NOT NULL", CanBeNull=false)]
		public string 考评内容
		{
			get
			{
				return this._考评内容;
			}
			set
			{
				if ((this._考评内容 != value))
				{
					this._考评内容 = value;
				}
			}
		}
		
		[Column(Storage="_考评分数", DbType="Float NOT NULL")]
		public double 考评分数
		{
			get
			{
				return this._考评分数;
			}
			set
			{
				if ((this._考评分数 != value))
				{
					this._考评分数 = value;
				}
			}
		}
		
		[Column(Storage="_考评结果", DbType="NVarChar(500) NOT NULL", CanBeNull=false)]
		public string 考评结果
		{
			get
			{
				return this._考评结果;
			}
			set
			{
				if ((this._考评结果 != value))
				{
					this._考评结果 = value;
				}
			}
		}
	}
	
	[Table(Name="dbo.T_ZhiCheng")]
	public partial class T_ZhiCheng : INotifyPropertyChanging, INotifyPropertyChanged
	{
		
		private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
		
		private int _ZhiCheng_ID;
		
		private string _ZhiCheng_Name;
		
		private EntitySet<T_StaffRecords> _T_StaffRecords;
		
    #region Extensibility Method Definitions
    partial void OnLoaded();
    partial void OnValidate(System.Data.Linq.ChangeAction action);
    partial void OnCreated();
    partial void OnZhiCheng_IDChanging(int value);
    partial void OnZhiCheng_IDChanged();
    partial void OnZhiCheng_NameChanging(string value);
    partial void OnZhiCheng_NameChanged();
    #endregion
		
		public T_ZhiCheng()
		{
			this._T_StaffRecords = new EntitySet<T_StaffRecords>(new Action<T_StaffRecords>(this.attach_T_StaffRecords), new Action<T_StaffRecords>(this.detach_T_StaffRecords));
			OnCreated();
		}
		
		[Column(Storage="_ZhiCheng_ID", AutoSync=AutoSync.OnInsert, DbType="Int NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
		public int ZhiCheng_ID
		{
			get
			{
				return this._ZhiCheng_ID;
			}
			set
			{
				if ((this._ZhiCheng_ID != value))
				{
					this.OnZhiCheng_IDChanging(value);
					this.SendPropertyChanging();
					this._ZhiCheng_ID = value;
					this.SendPropertyChanged("ZhiCheng_ID");
					this.OnZhiCheng_IDChanged();
				}
			}
		}
		
		[Column(Storage="_ZhiCheng_Name", DbType="VarChar(20) NOT NULL", CanBeNull=false)]
		public string ZhiCheng_Name
		{
			get
			{
				return this._ZhiCheng_Name;
			}
			set
			{
				if ((this._ZhiCheng_Name != value))
				{
					this.OnZhiCheng_NameChanging(value);
					this.SendPropertyChanging();
					this._ZhiCheng_Name = value;
					this.SendPropertyChanged("ZhiCheng_Name");
					this.OnZhiCheng_NameChanged();
				}
			}
		}
		
		[Association(Name="T_ZhiCheng_T_StaffRecords", Storage="_T_StaffRecords", OtherKey="Staff_ZhiChengID")]
		public EntitySet<T_StaffRecords> T_StaffRecords
		{
			get
			{
				return this._T_StaffRecords;
			}
			set
			{
				this._T_StaffRecords.Assign(value);
			}
		}
		
		public event PropertyChangingEventHandler PropertyChanging;
		
		public event PropertyChangedEventHandler PropertyChanged;
		
		protected virtual void SendPropertyChanging()
		{
			if ((this.PropertyChanging != null))
			{
				this.PropertyChanging(this, emptyChangingEventArgs);
			}
		}
		
		protected virtual void SendPropertyChanged(String propertyName)
		{
			if ((this.PropertyChanged != null))
			{
				this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
			}
		}
		
		private void attach_T_StaffRecords(T_StaffRecords entity)
		{
			this.SendPropertyChanging();
			entity.T_ZhiCheng = this;
		}
		
		private void detach_T_StaffRecords(T_StaffRecords entity)
		{
			this.SendPropertyChanging();
			entity.T_ZhiCheng = null;
		}
	}
	
	[Table(Name="dbo.T_Users")]
	public partial class T_Users : INotifyPropertyChanging, INotifyPropertyChanged
	{
		
		private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
		
		private int _User_ID;
		
		private string _User_Name;
		
		private string _User_pwd;
		
    #region Extensibility Method Definitions
    partial void OnLoaded();
    partial void OnValidate(System.Data.Linq.ChangeAction action);
    partial void OnCreated();
    partial void OnUser_IDChanging(int value);
    partial void OnUser_IDChanged();
    partial void OnUser_NameChanging(string value);
    partial void OnUser_NameChanged();
    partial void OnUser_pwdChanging(string value);
    partial void OnUser_pwdChanged();
    #endregion
		
		public T_Users()
		{
			OnCreated();
		}
		
		[Column(Storage="_User_ID", AutoSync=AutoSync.OnInsert, DbType="Int NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
		public int User_ID
		{
			get
			{
				return this._User_ID;
			}
			set
			{
				if ((this._User_ID != value))
				{
					this.OnUser_IDChanging(value);
					this.SendPropertyChanging();
					this._User_ID = value;
					this.SendPropertyChanged("User_ID");
					this.OnUser_IDChanged();
				}
			}
		}
		
		[Column(Storage="_User_Name", DbType="NVarChar(20) NOT NULL", CanBeNull=false)]
		public string User_Name
		{
			get
			{
				return this._User_Name;
			}
			set
			{
				if ((this._User_Name != value))
				{
					this.OnUser_NameChanging(value);
					this.SendPropertyChanging();
					this._User_Name = value;
					this.SendPropertyChanged("User_Name");
					this.OnUser_NameChanged();
				}
			}
		}
		
		[Column(Storage="_User_pwd", DbType="NVarChar(20) NOT NULL", CanBeNull=false)]
		public string User_pwd
		{
			get
			{
				return this._User_pwd;
			}
			set
			{
				if ((this._User_pwd != value))
				{
					this.OnUser_pwdChanging(value);
					this.SendPropertyChanging();
					this._User_pwd = value;
					this.SendPropertyChanged("User_pwd");
					this.OnUser_pwdChanged();
				}
			}
		}
		
		public event PropertyChangingEventHandler PropertyChanging;
		
		public event PropertyChangedEventHandler PropertyChanged;
		
		protected virtual void SendPropertyChanging()
		{
			if ((this.PropertyChanging != null))
			{
				this.PropertyChanging(this, emptyChangingEventArgs);
			}
		}
		
		protected virtual void SendPropertyChanged(String propertyName)
		{
			if ((this.PropertyChanged != null))
			{
				this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
			}
		}
	}
	
	[Table(Name="dbo.T_Type")]
	public partial class T_Type : INotifyPropertyChanging, INotifyPropertyChanged
	{
		
		private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
		
		private int _Type_ID;
		
		private string _Type_Name;
		
		private EntitySet<T_StaffRecords> _T_StaffRecords;
		
    #region Extensibility Method Definitions
    partial void OnLoaded();
    partial void OnValidate(System.Data.Linq.ChangeAction action);
    partial void OnCreated();
    partial void OnType_IDChanging(int value);
    partial void OnType_IDChanged();
    partial void OnType_NameChanging(string value);
    partial void OnType_NameChanged();
    #endregion
		
		public T_Type()
		{
			this._T_StaffRecords = new EntitySet<T_StaffRecords>(new Action<T_StaffRecords>(this.attach_T_StaffRecords), new Action<T_StaffRecords>(this.detach_T_StaffRecords));
			OnCreated();
		}
		
		[Column(Storage="_Type_ID", AutoSync=AutoSync.OnInsert, DbType="Int NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
		public int Type_ID
		{
			get
			{
				return this._Type_ID;
			}
			set
			{
				if ((this._Type_ID != value))
				{
					this.OnType_IDChanging(value);
					this.SendPropertyChanging();
					this._Type_ID = value;
					this.SendPropertyChanged("Type_ID");
					this.OnType_IDChanged();
				}
			}
		}
		
		[Column(Storage="_Type_Name", DbType="NVarChar(20) NOT NULL", CanBeNull=false)]
		public string Type_Name
		{
			get
			{
				return this._Type_Name;
			}
			set
			{
				if ((this._Type_Name != value))
				{
					this.OnType_NameChanging(value);
					this.SendPropertyChanging();
					this._Type_Name = value;
					this.SendPropertyChanged("Type_Name");
					this.OnType_NameChanged();
				}
			}
		}
		
		[Association(Name="T_Type_T_StaffRecords", Storage="_T_StaffRecords", OtherKey="Staff_TypeID")]
		public EntitySet<T_StaffRecords> T_StaffRecords
		{
			get
			{
				return this._T_StaffRecords;
			}
			set
			{
				this._T_StaffRecords.Assign(value);
			}
		}
		
		public event PropertyChangingEventHandler PropertyChanging;
		
		public event PropertyChangedEventHandler PropertyChanged;
		
		protected virtual void SendPropertyChanging()
		{
			if ((this.PropertyChanging != null))
			{
				this.PropertyChanging(this, emptyChangingEventArgs);
			}
		}
		
		protected virtual void SendPropertyChanged(String propertyName)
		{
			if ((this.PropertyChanged != null))
			{
				this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
			}
		}
		
		private void attach_T_StaffRecords(T_StaffRecords entity)
		{
			this.SendPropertyChanging();
			entity.T_Type = this;
		}
		
		private void detach_T_StaffRecords(T_StaffRecords entity)
		{
			this.SendPropertyChanging();
			entity.T_Type = null;
		}
	}
	
	[Table(Name="dbo.T_Trainings")]
	public partial class T_Trainings : INotifyPropertyChanging, INotifyPropertyChanged
	{
		
		private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
		
		private int _Training_ID;
		
		private int _Staff_ID;
		
		private System.DateTime _Training_StartTime;
		
		private System.DateTime _Training_EndTime;
		
		private string _Training_Address;
		
		private string _Training_Content;
		
		private int _Training_Grade;
		
		private EntityRef<T_StaffRecords> _T_StaffRecords;
		
    #region Extensibility Method Definitions
    partial void OnLoaded();
    partial void OnValidate(System.Data.Linq.ChangeAction action);
    partial void OnCreated();
    partial void OnTraining_IDChanging(int value);
    partial void OnTraining_IDChanged();
    partial void OnStaff_IDChanging(int value);
    partial void OnStaff_IDChanged();
    partial void OnTraining_StartTimeChanging(System.DateTime value);
    partial void OnTraining_StartTimeChanged();
    partial void OnTraining_EndTimeChanging(System.DateTime value);
    partial void OnTraining_EndTimeChanged();
    partial void OnTraining_AddressChanging(string value);
    partial void OnTraining_AddressChanged();
    partial void OnTraining_ContentChanging(string value);
    partial void OnTraining_ContentChanged();
    partial void OnTraining_GradeChanging(int value);
    partial void OnTraining_GradeChanged();
    #endregion
		
		public T_Trainings()
		{
			this._T_StaffRecords = default(EntityRef<T_StaffRecords>);
			OnCreated();
		}
		
		[Column(Storage="_Training_ID", AutoSync=AutoSync.OnInsert, DbType="Int NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
		public int Training_ID
		{
			get
			{
				return this._Training_ID;
			}
			set
			{
				if ((this._Training_ID != value))
				{
					this.OnTraining_IDChanging(value);
					this.SendPropertyChanging();
					this._Training_ID = value;
					this.SendPropertyChanged("Training_ID");
					this.OnTraining_IDChanged();
				}
			}
		}
		
		[Column(Storage="_Staff_ID", DbType="Int NOT NULL")]
		public int Staff_ID
		{
			get
			{
				return this._Staff_ID;
			}
			set
			{
				if ((this._Staff_ID != value))
				{
					if (this._T_StaffRecords.HasLoadedOrAssignedValue)
					{
						throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
					}
					this.OnStaff_IDChanging(value);
					this.SendPropertyChanging();
					this._Staff_ID = value;
					this.SendPropertyChanged("Staff_ID");
					this.OnStaff_IDChanged();
				}
			}
		}
		
		[Column(Storage="_Training_StartTime", DbType="DateTime NOT NULL")]
		public System.DateTime Training_StartTime
		{
			get
			{
				return this._Training_StartTime;
			}
			set
			{
				if ((this._Training_StartTime != value))
				{
					this.OnTraining_StartTimeChanging(value);
					this.SendPropertyChanging();
					this._Training_StartTime = value;
					this.SendPropertyChanged("Training_StartTime");
					this.OnTraining_StartTimeChanged();
				}
			}
		}
		
		[Column(Storage="_Training_EndTime", DbType="DateTime NOT NULL")]
		public System.DateTime Training_EndTime
		{
			get
			{
				return this._Training_EndTime;
			}
			set
			{
				if ((this._Training_EndTime != value))
				{
					this.OnTraining_EndTimeChanging(value);
					this.SendPropertyChanging();
					this._Training_EndTime = value;
					this.SendPropertyChanged("Training_EndTime");
					this.OnTraining_EndTimeChanged();
				}
			}
		}
		
		[Column(Storage="_Training_Address", DbType="NVarChar(50) NOT NULL", CanBeNull=false)]
		public string Training_Address
		{
			get
			{
				return this._Training_Address;
			}
			set
			{
				if ((this._Training_Address != value))
				{
					this.OnTraining_AddressChanging(value);
					this.SendPropertyChanging();
					this._Training_Address = value;
					this.SendPropertyChanged("Training_Address");
					this.OnTraining_AddressChanged();
				}
			}
		}
		
		[Column(Storage="_Training_Content", DbType="NVarChar(100) NOT NULL", CanBeNull=false)]
		public string Training_Content
		{
			get
			{
				return this._Training_Content;
			}
			set
			{
				if ((this._Training_Content != value))
				{
					this.OnTraining_ContentChanging(value);
					this.SendPropertyChanging();
					this._Training_Content = value;
					this.SendPropertyChanged("Training_Content");
					this.OnTraining_ContentChanged();
				}
			}
		}
		
		[Column(Storage="_Training_Grade", DbType="Int NOT NULL")]
		public int Training_Grade
		{
			get
			{
				return this._Training_Grade;
			}
			set
			{
				if ((this._Training_Grade != value))
				{
					this.OnTraining_GradeChanging(value);
					this.SendPropertyChanging();
					this._Training_Grade = value;
					this.SendPropertyChanged("Training_Grade");
					this.OnTraining_GradeChanged();
				}
			}
		}
		
		[Association(Name="T_StaffRecords_T_Trainings", Storage="_T_StaffRecords", ThisKey="Staff_ID", IsForeignKey=true)]
		public T_StaffRecords T_StaffRecords
		{
			get
			{
				return this._T_StaffRecords.Entity;
			}
			set
			{
				T_StaffRecords previousValue = this._T_StaffRecords.Entity;
				if (((previousValue != value) 
							|| (this._T_StaffRecords.HasLoadedOrAssignedValue == false)))
				{
					this.SendPropertyChanging();
					if ((previousValue != null))
					{
						this._T_StaffRecords.Entity = null;
						previousValue.T_Trainings.Remove(this);
					}
					this._T_StaffRecords.Entity = value;
					if ((value != null))
					{
						value.T_Trainings.Add(this);
						this._Staff_ID = value.Staff_ID;
					}
					else
					{
						this._Staff_ID = default(int);
					}
					this.SendPropertyChanged("T_StaffRecords");
				}
			}
		}
		
		public event PropertyChangingEventHandler PropertyChanging;
		
		public event PropertyChangedEventHandler PropertyChanged;
		
		protected virtual void SendPropertyChanging()
		{
			if ((this.PropertyChanging != null))
			{
				this.PropertyChanging(this, emptyChangingEventArgs);
			}
		}
		
		protected virtual void SendPropertyChanged(String propertyName)
		{
			if ((this.PropertyChanged != null))
			{
				this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
			}
		}
	}
	
	[Table(Name="dbo.T_Nation")]
	public partial class T_Nation : INotifyPropertyChanging, INotifyPropertyChanged
	{
		
		private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
		
		private int _Nation_ID;
		
		private string _Nation_Name;
		
		private EntitySet<T_StaffRecords> _T_StaffRecords;
		
    #region Extensibility Method Definitions
    partial void OnLoaded();
    partial void OnValidate(System.Data.Linq.ChangeAction action);
    partial void OnCreated();
    partial void OnNation_IDChanging(int value);
    partial void OnNation_IDChanged();
    partial void OnNation_NameChanging(string value);
    partial void OnNation_NameChanged();
    #endregion
		
		public T_Nation()
		{
			this._T_StaffRecords = new EntitySet<T_StaffRecords>(new Action<T_StaffRecords>(this.attach_T_StaffRecords), new Action<T_StaffRecords>(this.detach_T_StaffRecords));
			OnCreated();
		}
		
		[Column(Storage="_Nation_ID", AutoSync=AutoSync.OnInsert, DbType="Int NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
		public int Nation_ID
		{
			get
			{
				return this._Nation_ID;
			}
			set
			{
				if ((this._Nation_ID != value))
				{
					this.OnNation_IDChanging(value);
					this.SendPropertyChanging();
					this._Nation_ID = value;
					this.SendPropertyChanged("Nation_ID");
					this.OnNation_IDChanged();
				}
			}
		}
		
		[Column(Storage="_Nation_Name", DbType="VarChar(20) NOT NULL", CanBeNull=false)]
		public string Nation_Name
		{
			get
			{
				return this._Nation_Name;
			}
			set
			{
				if ((this._Nation_Name != value))
				{
					this.OnNation_NameChanging(value);
					this.SendPropertyChanging();
					this._Nation_Name = value;
					this.SendPropertyChanged("Nation_Name");
					this.OnNation_NameChanged();
				}
			}
		}
		
		[Association(Name="T_Nation_T_StaffRecords", Storage="_T_StaffRecords", OtherKey="Staff_NationID")]
		public EntitySet<T_StaffRecords> T_StaffRecords
		{
			get
			{
				return this._T_StaffRecords;
			}
			set
			{
				this._T_StaffRecords.Assign(value);
			}
		}
		
		public event PropertyChangingEventHandler PropertyChanging;
		
		public event PropertyChangedEventHandler PropertyChanged;
		
		protected virtual void SendPropertyChanging()
		{
			if ((this.PropertyChanging != null))
			{
				this.PropertyChanging(this, emptyChangingEventArgs);
			}
		}
		
		protected virtual void SendPropertyChanged(String propertyName)
		{
			if ((this.PropertyChanged != null))
			{
				this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
			}
		}
		
		private void attach_T_StaffRecords(T_StaffRecords entity)
		{
			this.SendPropertyChanging();
			entity.T_Nation = this;
		}
		
		private void detach_T_StaffRecords(T_StaffRecords entity)
		{
			this.SendPropertyChanging();
			entity.T_Nation = null;
		}
	}
	
	[Table(Name="dbo.T_KaoPing")]
	public partial class T_KaoPing : INotifyPropertyChanging, INotifyPropertyChanged
	{
		
		private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
		
		private int _KP_ID;
		
		private int _Staff_ID;
		
		private string _KP_Content;
		
		private double _KP_Grade;
		
		private System.DateTime _KP_Time;
		
		private string _KP_Result;
		
		private EntityRef<T_StaffRecords> _T_StaffRecords;
		
    #region Extensibility Method Definitions
    partial void OnLoaded();
    partial void OnValidate(System.Data.Linq.ChangeAction action);
    partial void OnCreated();
    partial void OnKP_IDChanging(int value);
    partial void OnKP_IDChanged();
    partial void OnStaff_IDChanging(int value);
    partial void OnStaff_IDChanged();
    partial void OnKP_ContentChanging(string value);
    partial void OnKP_ContentChanged();
    partial void OnKP_GradeChanging(double value);
    partial void OnKP_GradeChanged();
    partial void OnKP_TimeChanging(System.DateTime value);
    partial void OnKP_TimeChanged();
    partial void OnKP_ResultChanging(string value);
    partial void OnKP_ResultChanged();
    #endregion
		
		public T_KaoPing()
		{
			this._T_StaffRecords = default(EntityRef<T_StaffRecords>);
			OnCreated();
		}
		
		[Column(Storage="_KP_ID", AutoSync=AutoSync.OnInsert, DbType="Int NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
		public int KP_ID
		{
			get
			{
				return this._KP_ID;
			}
			set
			{
				if ((this._KP_ID != value))
				{
					this.OnKP_IDChanging(value);
					this.SendPropertyChanging();
					this._KP_ID = value;
					this.SendPropertyChanged("KP_ID");
					this.OnKP_IDChanged();
				}
			}
		}
		
		[Column(Storage="_Staff_ID", DbType="Int NOT NULL")]
		public int Staff_ID
		{
			get
			{
				return this._Staff_ID;
			}
			set
			{
				if ((this._Staff_ID != value))
				{
					if (this._T_StaffRecords.HasLoadedOrAssignedValue)
					{
						throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
					}
					this.OnStaff_IDChanging(value);
					this.SendPropertyChanging();
					this._Staff_ID = value;
					this.SendPropertyChanged("Staff_ID");
					this.OnStaff_IDChanged();
				}
			}
		}
		
		[Column(Storage="_KP_Content", DbType="NVarChar(50) NOT NULL", CanBeNull=false)]
		public string KP_Content
		{
			get
			{
				return this._KP_Content;
			}
			set
			{
				if ((this._KP_Content != value))
				{
					this.OnKP_ContentChanging(value);
					this.SendPropertyChanging();
					this._KP_Content = value;
					this.SendPropertyChanged("KP_Content");
					this.OnKP_ContentChanged();
				}
			}
		}
		
		[Column(Storage="_KP_Grade", DbType="Float NOT NULL")]
		public double KP_Grade
		{
			get
			{
				return this._KP_Grade;
			}
			set
			{
				if ((this._KP_Grade != value))
				{
					this.OnKP_GradeChanging(value);
					this.SendPropertyChanging();
					this._KP_Grade = value;
					this.SendPropertyChanged("KP_Grade");
					this.OnKP_GradeChanged();
				}
			}
		}
		
		[Column(Storage="_KP_Time", DbType="DateTime NOT NULL")]
		public System.DateTime KP_Time
		{
			get
			{
				return this._KP_Time;
			}
			set
			{
				if ((this._KP_Time != value))
				{
					this.OnKP_TimeChanging(value);
					this.SendPropertyChanging();
					this._KP_Time = value;
					this.SendPropertyChanged("KP_Time");
					this.OnKP_TimeChanged();
				}
			}
		}
		
		[Column(Storage="_KP_Result", DbType="NVarChar(500) NOT NULL", CanBeNull=false)]
		public string KP_Result
		{
			get
			{
				return this._KP_Result;
			}
			set
			{
				if ((this._KP_Result != value))
				{
					this.OnKP_ResultChanging(value);
					this.SendPropertyChanging();
					this._KP_Result = value;
					this.SendPropertyChanged("KP_Result");
					this.OnKP_ResultChanged();
				}
			}
		}
		
		[Association(Name="T_StaffRecords_T_KaoPing", Storage="_T_StaffRecords", ThisKey="Staff_ID", IsForeignKey=true)]
		public T_StaffRecords T_StaffRecords
		{
			get
			{
				return this._T_StaffRecords.Entity;
			}
			set
			{
				T_StaffRecords previousValue = this._T_StaffRecords.Entity;
				if (((previousValue != value) 
							|| (this._T_StaffRecords.HasLoadedOrAssignedValue == false)))
				{
					this.SendPropertyChanging();
					if ((previousValue != null))
					{
						this._T_StaffRecords.Entity = null;
						previousValue.T_KaoPing.Remove(this);
					}
					this._T_StaffRecords.Entity = value;
					if ((value != null))
					{
						value.T_KaoPing.Add(this);
						this._Staff_ID = value.Staff_ID;
					}
					else
					{
						this._Staff_ID = default(int);
					}
					this.SendPropertyChanged("T_StaffRecords");
				}
			}
		}
		
		public event PropertyChangingEventHandler PropertyChanging;
		
		public event PropertyChangedEventHandler PropertyChanged;
		
		protected virtual void SendPropertyChanging()
		{
			if ((this.PropertyChanging != null))
			{
				this.PropertyChanging(this, emptyChangingEventArgs);
			}
		}
		
		protected virtual void SendPropertyChanged(String propertyName)
		{
			if ((this.PropertyChanged != null))
			{
				this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
			}
		}
	}
	
	[Table(Name="dbo.T_Jobs")]
	public partial class T_Jobs : INotifyPropertyChanging, INotifyPropertyChanged
	{
		
		private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
		
		private int _Job_ID;
		
		private string _Job_Name;
		
		private EntitySet<T_StaffRecords> _T_StaffRecords;
		
		private EntitySet<T_DiaoDu> _T_DiaoDu;
		
		private EntitySet<T_DiaoDu> _T_DiaoDu1;
		
    #region Extensibility Method Definitions
    partial void OnLoaded();
    partial void OnValidate(System.Data.Linq.ChangeAction action);
    partial void OnCreated();
    partial void OnJob_IDChanging(int value);
    partial void OnJob_IDChanged();
    partial void OnJob_NameChanging(string value);
    partial void OnJob_NameChanged();
    #endregion
		
		public T_Jobs()
		{
			this._T_StaffRecords = new EntitySet<T_StaffRecords>(new Action<T_StaffRecords>(this.attach_T_StaffRecords), new Action<T_StaffRecords>(this.detach_T_StaffRecords));
			this._T_DiaoDu = new EntitySet<T_DiaoDu>(new Action<T_DiaoDu>(this.attach_T_DiaoDu), new Action<T_DiaoDu>(this.detach_T_DiaoDu));
			this._T_DiaoDu1 = new EntitySet<T_DiaoDu>(new Action<T_DiaoDu>(this.attach_T_DiaoDu1), new Action<T_DiaoDu>(this.detach_T_DiaoDu1));
			OnCreated();
		}
		
		[Column(Storage="_Job_ID", AutoSync=AutoSync.OnInsert, DbType="Int NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
		public int Job_ID
		{
			get
			{
				return this._Job_ID;
			}
			set
			{
				if ((this._Job_ID != value))
				{
					this.OnJob_IDChanging(value);
					this.SendPropertyChanging();
					this._Job_ID = value;
					this.SendPropertyChanged("Job_ID");
					this.OnJob_IDChanged();
				}
			}
		}
		
		[Column(Storage="_Job_Name", DbType="NVarChar(20) NOT NULL", CanBeNull=false)]
		public string Job_Name
		{
			get
			{
				return this._Job_Name;
			}
			set
			{
				if ((this._Job_Name != value))
				{
					this.OnJob_NameChanging(value);
					this.SendPropertyChanging();
					this._Job_Name = value;
					this.SendPropertyChanged("Job_Name");
					this.OnJob_NameChanged();
				}
			}
		}
		
		[Association(Name="T_Jobs_T_StaffRecords", Storage="_T_StaffRecords", OtherKey="Staff_JobID")]
		public EntitySet<T_StaffRecords> T_StaffRecords
		{
			get
			{
				return this._T_StaffRecords;
			}
			set
			{
				this._T_StaffRecords.Assign(value);
			}
		}
		
		[Association(Name="T_Jobs_T_DiaoDu", Storage="_T_DiaoDu", OtherKey="Old_JobID")]
		public EntitySet<T_DiaoDu> T_DiaoDu
		{
			get
			{
				return this._T_DiaoDu;
			}
			set
			{
				this._T_DiaoDu.Assign(value);
			}
		}
		
		[Association(Name="T_Jobs_T_DiaoDu1", Storage="_T_DiaoDu1", OtherKey="New_JobID")]
		public EntitySet<T_DiaoDu> T_DiaoDu1
		{
			get
			{
				return this._T_DiaoDu1;
			}
			set
			{
				this._T_DiaoDu1.Assign(value);
			}
		}
		
		public event PropertyChangingEventHandler PropertyChanging;
		
		public event PropertyChangedEventHandler PropertyChanged;
		
		protected virtual void SendPropertyChanging()
		{
			if ((this.PropertyChanging != null))
			{
				this.PropertyChanging(this, emptyChangingEventArgs);
			}
		}
		
		protected virtual void SendPropertyChanged(String propertyName)
		{
			if ((this.PropertyChanged != null))
			{
				this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
			}
		}
		
		private void attach_T_StaffRecords(T_StaffRecords entity)
		{
			this.SendPropertyChanging();
			entity.T_Jobs = this;
		}
		
		private void detach_T_StaffRecords(T_StaffRecords entity)
		{
			this.SendPropertyChanging();
			entity.T_Jobs = null;
		}
		
		private void attach_T_DiaoDu(T_DiaoDu entity)
		{
			this.SendPropertyChanging();
			entity.T_Jobs = this;
		}
		
		private void detach_T_DiaoDu(T_DiaoDu entity)
		{
			this.SendPropertyChanging();
			entity.T_Jobs = null;
		}
		
		private void attach_T_DiaoDu1(T_DiaoDu entity)
		{
			this.SendPropertyChanging();
			entity.T_Jobs1 = this;
		}
		
		private void detach_T_DiaoDu1(T_DiaoDu entity)
		{
			this.SendPropertyChanging();
			entity.T_Jobs1 = null;
		}
	}
	
	[Table(Name="dbo.T_JiangCheng")]
	public partial class T_JiangCheng : INotifyPropertyChanging, INotifyPropertyChanged
	{
		
		private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
		
		private int _JC_ID;
		
		private int _Staff_ID;
		
		private System.Nullable<bool> _AwardORpunish;
		
		private System.Nullable<System.DateTime> _JC_Time;
		
		private decimal _JC_Money;
		
		private string _JC_Cause;
		
		private EntityRef<T_StaffRecords> _T_StaffRecords;
		
    #region Extensibility Method Definitions
    partial void OnLoaded();
    partial void OnValidate(System.Data.Linq.ChangeAction action);
    partial void OnCreated();
    partial void OnJC_IDChanging(int value);
    partial void OnJC_IDChanged();
    partial void OnStaff_IDChanging(int value);
    partial void OnStaff_IDChanged();
    partial void OnAwardORpunishChanging(System.Nullable<bool> value);
    partial void OnAwardORpunishChanged();
    partial void OnJC_TimeChanging(System.Nullable<System.DateTime> value);
    partial void OnJC_TimeChanged();
    partial void OnJC_MoneyChanging(decimal value);
    partial void OnJC_MoneyChanged();
    partial void OnJC_CauseChanging(string value);
    partial void OnJC_CauseChanged();
    #endregion
		
		public T_JiangCheng()
		{
			this._T_StaffRecords = default(EntityRef<T_StaffRecords>);
			OnCreated();
		}
		
		[Column(Storage="_JC_ID", AutoSync=AutoSync.OnInsert, DbType="Int NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
		public int JC_ID
		{
			get
			{
				return this._JC_ID;
			}
			set
			{
				if ((this._JC_ID != value))
				{
					this.OnJC_IDChanging(value);
					this.SendPropertyChanging();
					this._JC_ID = value;
					this.SendPropertyChanged("JC_ID");
					this.OnJC_IDChanged();
				}
			}
		}
		
		[Column(Storage="_Staff_ID", DbType="Int NOT NULL")]
		public int Staff_ID
		{
			get
			{
				return this._Staff_ID;
			}
			set
			{
				if ((this._Staff_ID != value))
				{
					if (this._T_StaffRecords.HasLoadedOrAssignedValue)
					{
						throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
					}
					this.OnStaff_IDChanging(value);
					this.SendPropertyChanging();
					this._Staff_ID = value;
					this.SendPropertyChanged("Staff_ID");
					this.OnStaff_IDChanged();
				}
			}
		}
		
		[Column(Storage="_AwardORpunish", DbType="Bit")]
		public System.Nullable<bool> AwardORpunish
		{
			get
			{
				return this._AwardORpunish;
			}
			set
			{
				if ((this._AwardORpunish != value))
				{
					this.OnAwardORpunishChanging(value);
					this.SendPropertyChanging();
					this._AwardORpunish = value;
					this.SendPropertyChanged("AwardORpunish");
					this.OnAwardORpunishChanged();
				}
			}
		}
		
		[Column(Storage="_JC_Time", DbType="DateTime")]
		public System.Nullable<System.DateTime> JC_Time
		{
			get
			{
				return this._JC_Time;
			}
			set
			{
				if ((this._JC_Time != value))
				{
					this.OnJC_TimeChanging(value);
					this.SendPropertyChanging();
					this._JC_Time = value;
					this.SendPropertyChanged("JC_Time");
					this.OnJC_TimeChanged();
				}
			}
		}
		
		[Column(Storage="_JC_Money", DbType="Money NOT NULL")]
		public decimal JC_Money
		{
			get
			{
				return this._JC_Money;
			}
			set
			{
				if ((this._JC_Money != value))
				{
					this.OnJC_MoneyChanging(value);
					this.SendPropertyChanging();
					this._JC_Money = value;
					this.SendPropertyChanged("JC_Money");
					this.OnJC_MoneyChanged();
				}
			}
		}
		
		[Column(Storage="_JC_Cause", DbType="NVarChar(50)")]
		public string JC_Cause
		{
			get
			{
				return this._JC_Cause;
			}
			set
			{
				if ((this._JC_Cause != value))
				{
					this.OnJC_CauseChanging(value);
					this.SendPropertyChanging();
					this._JC_Cause = value;
					this.SendPropertyChanged("JC_Cause");
					this.OnJC_CauseChanged();
				}
			}
		}
		
		[Association(Name="T_StaffRecords_T_JiangCheng", Storage="_T_StaffRecords", ThisKey="Staff_ID", IsForeignKey=true)]
		public T_StaffRecords T_StaffRecords
		{
			get
			{
				return this._T_StaffRecords.Entity;
			}
			set
			{
				T_StaffRecords previousValue = this._T_StaffRecords.Entity;
				if (((previousValue != value) 
							|| (this._T_StaffRecords.HasLoadedOrAssignedValue == false)))
				{
					this.SendPropertyChanging();
					if ((previousValue != null))
					{
						this._T_StaffRecords.Entity = null;
						previousValue.T_JiangCheng.Remove(this);
					}
					this._T_StaffRecords.Entity = value;
					if ((value != null))
					{
						value.T_JiangCheng.Add(this);
						this._Staff_ID = value.Staff_ID;
					}
					else
					{
						this._Staff_ID = default(int);
					}
					this.SendPropertyChanged("T_StaffRecords");
				}
			}
		}
		
		public event PropertyChangingEventHandler PropertyChanging;
		
		public event PropertyChangedEventHandler PropertyChanged;
		
		protected virtual void SendPropertyChanging()
		{
			if ((this.PropertyChanging != null))
			{
				this.PropertyChanging(this, emptyChangingEventArgs);
			}
		}
		
		protected virtual void SendPropertyChanged(String propertyName)
		{
			if ((this.PropertyChanged != null))
			{
				this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
			}
		}
	}
	
	[Table(Name="dbo.T_DiaoDu")]
	public partial class T_DiaoDu : INotifyPropertyChanging, INotifyPropertyChanged
	{
		
		private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
		
		private int _DiaoDu_ID;
		
		private int _Staff_ID;
		
		private System.DateTime _DiaoDu_Time;
		
		private System.Nullable<int> _Old_DepartID;
		
		private System.Nullable<int> _New_DepartID;
		
		private System.Nullable<int> _Old_JobID;
		
		private System.Nullable<int> _New_JobID;
		
		private EntityRef<T_Jobs> _T_Jobs;
		
		private EntityRef<T_StaffRecords> _T_StaffRecords;
		
		private EntityRef<T_Jobs> _T_Jobs1;
		
		private EntityRef<T_Department> _T_Department;
		
		private EntityRef<T_Department> _T_Department1;
		
    #region Extensibility Method Definitions
    partial void OnLoaded();
    partial void OnValidate(System.Data.Linq.ChangeAction action);
    partial void OnCreated();
    partial void OnDiaoDu_IDChanging(int value);
    partial void OnDiaoDu_IDChanged();
    partial void OnStaff_IDChanging(int value);
    partial void OnStaff_IDChanged();
    partial void OnDiaoDu_TimeChanging(System.DateTime value);
    partial void OnDiaoDu_TimeChanged();
    partial void OnOld_DepartIDChanging(System.Nullable<int> value);
    partial void OnOld_DepartIDChanged();
    partial void OnNew_DepartIDChanging(System.Nullable<int> value);
    partial void OnNew_DepartIDChanged();
    partial void OnOld_JobIDChanging(System.Nullable<int> value);
    partial void OnOld_JobIDChanged();
    partial void OnNew_JobIDChanging(System.Nullable<int> value);
    partial void OnNew_JobIDChanged();
    #endregion
		
		public T_DiaoDu()
		{
			this._T_Jobs = default(EntityRef<T_Jobs>);
			this._T_StaffRecords = default(EntityRef<T_StaffRecords>);
			this._T_Jobs1 = default(EntityRef<T_Jobs>);
			this._T_Department = default(EntityRef<T_Department>);
			this._T_Department1 = default(EntityRef<T_Department>);
			OnCreated();
		}
		
		[Column(Storage="_DiaoDu_ID", AutoSync=AutoSync.OnInsert, DbType="Int NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
		public int DiaoDu_ID
		{
			get
			{
				return this._DiaoDu_ID;
			}
			set
			{
				if ((this._DiaoDu_ID != value))
				{
					this.OnDiaoDu_IDChanging(value);
					this.SendPropertyChanging();
					this._DiaoDu_ID = value;
					this.SendPropertyChanged("DiaoDu_ID");
					this.OnDiaoDu_IDChanged();
				}
			}
		}
		
		[Column(Storage="_Staff_ID", DbType="Int NOT NULL")]
		public int Staff_ID
		{
			get
			{
				return this._Staff_ID;
			}
			set
			{
				if ((this._Staff_ID != value))
				{
					if (this._T_StaffRecords.HasLoadedOrAssignedValue)
					{
						throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
					}
					this.OnStaff_IDChanging(value);
					this.SendPropertyChanging();
					this._Staff_ID = value;
					this.SendPropertyChanged("Staff_ID");
					this.OnStaff_IDChanged();
				}
			}
		}
		
		[Column(Storage="_DiaoDu_Time", DbType="DateTime NOT NULL")]
		public System.DateTime DiaoDu_Time
		{
			get
			{
				return this._DiaoDu_Time;
			}
			set
			{
				if ((this._DiaoDu_Time != value))
				{
					this.OnDiaoDu_TimeChanging(value);
					this.SendPropertyChanging();
					this._DiaoDu_Time = value;
					this.SendPropertyChanged("DiaoDu_Time");
					this.OnDiaoDu_TimeChanged();
				}
			}
		}
		
		[Column(Storage="_Old_DepartID", DbType="Int")]
		public System.Nullable<int> Old_DepartID
		{
			get
			{
				return this._Old_DepartID;
			}
			set
			{
				if ((this._Old_DepartID != value))
				{
					if (this._T_Department1.HasLoadedOrAssignedValue)
					{
						throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
					}
					this.OnOld_DepartIDChanging(value);
					this.SendPropertyChanging();
					this._Old_DepartID = value;
					this.SendPropertyChanged("Old_DepartID");
					this.OnOld_DepartIDChanged();
				}
			}
		}
		
		[Column(Storage="_New_DepartID", DbType="Int")]
		public System.Nullable<int> New_DepartID
		{
			get
			{
				return this._New_DepartID;
			}
			set
			{
				if ((this._New_DepartID != value))
				{
					if (this._T_Department.HasLoadedOrAssignedValue)
					{
						throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
					}
					this.OnNew_DepartIDChanging(value);
					this.SendPropertyChanging();
					this._New_DepartID = value;
					this.SendPropertyChanged("New_DepartID");
					this.OnNew_DepartIDChanged();
				}
			}
		}
		
		[Column(Storage="_Old_JobID", DbType="Int")]
		public System.Nullable<int> Old_JobID
		{
			get
			{
				return this._Old_JobID;
			}
			set
			{
				if ((this._Old_JobID != value))
				{
					if (this._T_Jobs.HasLoadedOrAssignedValue)
					{
						throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
					}
					this.OnOld_JobIDChanging(value);
					this.SendPropertyChanging();
					this._Old_JobID = value;
					this.SendPropertyChanged("Old_JobID");
					this.OnOld_JobIDChanged();
				}
			}
		}
		
		[Column(Storage="_New_JobID", DbType="Int")]
		public System.Nullable<int> New_JobID
		{
			get
			{
				return this._New_JobID;
			}
			set
			{
				if ((this._New_JobID != value))
				{
					if (this._T_Jobs1.HasLoadedOrAssignedValue)
					{
						throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
					}
					this.OnNew_JobIDChanging(value);
					this.SendPropertyChanging();
					this._New_JobID = value;
					this.SendPropertyChanged("New_JobID");
					this.OnNew_JobIDChanged();
				}
			}
		}
		
		[Association(Name="T_Jobs_T_DiaoDu", Storage="_T_Jobs", ThisKey="Old_JobID", IsForeignKey=true)]
		public T_Jobs T_Jobs
		{
			get
			{
				return this._T_Jobs.Entity;
			}
			set
			{
				T_Jobs previousValue = this._T_Jobs.Entity;
				if (((previousValue != value) 
							|| (this._T_Jobs.HasLoadedOrAssignedValue == false)))
				{
					this.SendPropertyChanging();
					if ((previousValue != null))
					{
						this._T_Jobs.Entity = null;
						previousValue.T_DiaoDu.Remove(this);
					}
					this._T_Jobs.Entity = value;
					if ((value != null))
					{
						value.T_DiaoDu.Add(this);
						this._Old_JobID = value.Job_ID;
					}
					else
					{
						this._Old_JobID = default(Nullable<int>);
					}
					this.SendPropertyChanged("T_Jobs");
				}
			}
		}
		
		[Association(Name="T_StaffRecords_T_DiaoDu", Storage="_T_StaffRecords", ThisKey="Staff_ID", IsForeignKey=true)]
		public T_StaffRecords T_StaffRecords
		{
			get
			{
				return this._T_StaffRecords.Entity;
			}
			set
			{
				T_StaffRecords previousValue = this._T_StaffRecords.Entity;
				if (((previousValue != value) 
							|| (this._T_StaffRecords.HasLoadedOrAssignedValue == false)))
				{
					this.SendPropertyChanging();
					if ((previousValue != null))
					{
						this._T_StaffRecords.Entity = null;
						previousValue.T_DiaoDu.Remove(this);
					}
					this._T_StaffRecords.Entity = value;
					if ((value != null))
					{
						value.T_DiaoDu.Add(this);
						this._Staff_ID = value.Staff_ID;
					}
					else
					{
						this._Staff_ID = default(int);
					}
					this.SendPropertyChanged("T_StaffRecords");
				}
			}
		}
		
		[Association(Name="T_Jobs_T_DiaoDu1", Storage="_T_Jobs1", ThisKey="New_JobID", IsForeignKey=true)]
		public T_Jobs T_Jobs1
		{
			get
			{
				return this._T_Jobs1.Entity;
			}
			set
			{
				T_Jobs previousValue = this._T_Jobs1.Entity;
				if (((previousValue != value) 
							|| (this._T_Jobs1.HasLoadedOrAssignedValue == false)))
				{
					this.SendPropertyChanging();
					if ((previousValue != null))
					{
						this._T_Jobs1.Entity = null;
						previousValue.T_DiaoDu1.Remove(this);
					}
					this._T_Jobs1.Entity = value;
					if ((value != null))
					{
						value.T_DiaoDu1.Add(this);
						this._New_JobID = value.Job_ID;
					}
					else
					{
						this._New_JobID = default(Nullable<int>);
					}
					this.SendPropertyChanged("T_Jobs1");
				}
			}
		}
		
		[Association(Name="T_Department_T_DiaoDu", Storage="_T_Department", ThisKey="New_DepartID", IsForeignKey=true)]
		public T_Department T_Department
		{
			get
			{
				return this._T_Department.Entity;
			}
			set
			{
				T_Department previousValue = this._T_Department.Entity;
				if (((previousValue != value) 
							|| (this._T_Department.HasLoadedOrAssignedValue == false)))
				{
					this.SendPropertyChanging();
					if ((previousValue != null))
					{
						this._T_Department.Entity = null;
						previousValue.T_DiaoDu.Remove(this);
					}
					this._T_Department.Entity = value;
					if ((value != null))
					{
						value.T_DiaoDu.Add(this);
						this._New_DepartID = value.Depart_ID;
					}
					else
					{
						this._New_DepartID = default(Nullable<int>);
					}
					this.SendPropertyChanged("T_Department");
				}
			}
		}
		
		[Association(Name="T_Department_T_DiaoDu1", Storage="_T_Department1", ThisKey="Old_DepartID", IsForeignKey=true)]
		public T_Department T_Department1
		{
			get
			{
				return this._T_Department1.Entity;
			}
			set
			{
				T_Department previousValue = this._T_Department1.Entity;
				if (((previousValue != value) 
							|| (this._T_Department1.HasLoadedOrAssignedValue == false)))
				{
					this.SendPropertyChanging();
					if ((previousValue != null))
					{
						this._T_Department1.Entity = null;
						previousValue.T_DiaoDu1.Remove(this);
					}
					this._T_Department1.Entity = value;
					if ((value != null))
					{
						value.T_DiaoDu1.Add(this);
						this._Old_DepartID = value.Depart_ID;
					}
					else
					{
						this._Old_DepartID = default(Nullable<int>);
					}
					this.SendPropertyChanged("T_Department1");
				}
			}
		}
		
		public event PropertyChangingEventHandler PropertyChanging;
		
		public event PropertyChangedEventHandler PropertyChanged;
		
		protected virtual void SendPropertyChanging()
		{
			if ((this.PropertyChanging != null))
			{
				this.PropertyChanging(this, emptyChangingEventArgs);
			}
		}
		
		protected virtual void SendPropertyChanged(String propertyName)
		{
			if ((this.PropertyChanged != null))
			{
				this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
			}
		}
	}
	
	[Table(Name="dbo.T_FuLi")]
	public partial class T_FuLi : INotifyPropertyChanging, INotifyPropertyChanged
	{
		
		private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
		
		private int _FL_ID;
		
		private string _FL_Cause;
		
		private System.Nullable<System.DateTime> _FL_Time;
		
		private System.Nullable<decimal> _FL_Money;
		
		private System.Nullable<int> _Staff_ID;
		
		private EntityRef<T_StaffRecords> _T_StaffRecords;
		
    #region Extensibility Method Definitions
    partial void OnLoaded();
    partial void OnValidate(System.Data.Linq.ChangeAction action);
    partial void OnCreated();
    partial void OnFL_IDChanging(int value);
    partial void OnFL_IDChanged();
    partial void OnFL_CauseChanging(string value);
    partial void OnFL_CauseChanged();
    partial void OnFL_TimeChanging(System.Nullable<System.DateTime> value);
    partial void OnFL_TimeChanged();
    partial void OnFL_MoneyChanging(System.Nullable<decimal> value);
    partial void OnFL_MoneyChanged();
    partial void OnStaff_IDChanging(System.Nullable<int> value);
    partial void OnStaff_IDChanged();
    #endregion
		
		public T_FuLi()
		{
			this._T_StaffRecords = default(EntityRef<T_StaffRecords>);
			OnCreated();
		}
		
		[Column(Storage="_FL_ID", AutoSync=AutoSync.OnInsert, DbType="Int NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
		public int FL_ID
		{
			get
			{
				return this._FL_ID;
			}
			set
			{
				if ((this._FL_ID != value))
				{
					this.OnFL_IDChanging(value);
					this.SendPropertyChanging();
					this._FL_ID = value;
					this.SendPropertyChanged("FL_ID");
					this.OnFL_IDChanged();
				}
			}
		}
		
		[Column(Storage="_FL_Cause", DbType="NVarChar(20)")]
		public string FL_Cause
		{
			get
			{
				return this._FL_Cause;
			}
			set
			{
				if ((this._FL_Cause != value))
				{
					this.OnFL_CauseChanging(value);
					this.SendPropertyChanging();
					this._FL_Cause = value;
					this.SendPropertyChanged("FL_Cause");
					this.OnFL_CauseChanged();
				}
			}
		}
		
		[Column(Storage="_FL_Time", DbType="DateTime")]
		public System.Nullable<System.DateTime> FL_Time
		{
			get
			{
				return this._FL_Time;
			}
			set
			{
				if ((this._FL_Time != value))
				{
					this.OnFL_TimeChanging(value);
					this.SendPropertyChanging();
					this._FL_Time = value;
					this.SendPropertyChanged("FL_Time");
					this.OnFL_TimeChanged();
				}
			}
		}
		
		[Column(Storage="_FL_Money", DbType="Money")]
		public System.Nullable<decimal> FL_Money
		{
			get
			{
				return this._FL_Money;
			}
			set
			{
				if ((this._FL_Money != value))
				{
					this.OnFL_MoneyChanging(value);
					this.SendPropertyChanging();
					this._FL_Money = value;
					this.SendPropertyChanged("FL_Money");
					this.OnFL_MoneyChanged();
				}
			}
		}
		
		[Column(Storage="_Staff_ID", DbType="Int")]
		public System.Nullable<int> Staff_ID
		{
			get
			{
				return this._Staff_ID;
			}
			set
			{
				if ((this._Staff_ID != value))
				{
					if (this._T_StaffRecords.HasLoadedOrAssignedValue)
					{
						throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
					}
					this.OnStaff_IDChanging(value);
					this.SendPropertyChanging();
					this._Staff_ID = value;
					this.SendPropertyChanged("Staff_ID");
					this.OnStaff_IDChanged();
				}
			}
		}
		
		[Association(Name="T_StaffRecords_T_FuLi", Storage="_T_StaffRecords", ThisKey="Staff_ID", IsForeignKey=true)]
		public T_StaffRecords T_StaffRecords
		{
			get
			{
				return this._T_StaffRecords.Entity;
			}
			set
			{
				T_StaffRecords previousValue = this._T_StaffRecords.Entity;
				if (((previousValue != value) 
							|| (this._T_StaffRecords.HasLoadedOrAssignedValue == false)))
				{
					this.SendPropertyChanging();
					if ((previousValue != null))
					{
						this._T_StaffRecords.Entity = null;
						previousValue.T_FuLi.Remove(this);
					}
					this._T_StaffRecords.Entity = value;
					if ((value != null))
					{
						value.T_FuLi.Add(this);
						this._Staff_ID = value.Staff_ID;
					}
					else
					{
						this._Staff_ID = default(Nullable<int>);
					}
					this.SendPropertyChanged("T_StaffRecords");
				}
			}
		}
		
		public event PropertyChangingEventHandler PropertyChanging;
		
		public event PropertyChangedEventHandler PropertyChanged;
		
		protected virtual void SendPropertyChanging()
		{
			if ((this.PropertyChanging != null))
			{
				this.PropertyChanging(this, emptyChangingEventArgs);
			}
		}
		
		protected virtual void SendPropertyChanged(String propertyName)
		{
			if ((this.PropertyChanged != null))
			{
				this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
			}
		}
	}
	
	[Table(Name="dbo.T_Department")]
	public partial class T_Department : INotifyPropertyChanging, INotifyPropertyChanged
	{
		
		private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
		
		private int _Depart_ID;
		
		private string _Depart_Name;
		
		private System.Nullable<int> _Parent_ID;
		
		private EntitySet<T_StaffRecords> _T_StaffRecords;
		
		private EntitySet<T_DiaoDu> _T_DiaoDu;
		
		private EntitySet<T_DiaoDu> _T_DiaoDu1;
		
    #region Extensibility Method Definitions
    partial void OnLoaded();
    partial void OnValidate(System.Data.Linq.ChangeAction action);
    partial void OnCreated();
    partial void OnDepart_IDChanging(int value);
    partial void OnDepart_IDChanged();
    partial void OnDepart_NameChanging(string value);
    partial void OnDepart_NameChanged();
    partial void OnParent_IDChanging(System.Nullable<int> value);
    partial void OnParent_IDChanged();
    #endregion
		
		public T_Department()
		{
			this._T_StaffRecords = new EntitySet<T_StaffRecords>(new Action<T_StaffRecords>(this.attach_T_StaffRecords), new Action<T_StaffRecords>(this.detach_T_StaffRecords));
			this._T_DiaoDu = new EntitySet<T_DiaoDu>(new Action<T_DiaoDu>(this.attach_T_DiaoDu), new Action<T_DiaoDu>(this.detach_T_DiaoDu));
			this._T_DiaoDu1 = new EntitySet<T_DiaoDu>(new Action<T_DiaoDu>(this.attach_T_DiaoDu1), new Action<T_DiaoDu>(this.detach_T_DiaoDu1));
			OnCreated();
		}
		
		[Column(Storage="_Depart_ID", AutoSync=AutoSync.OnInsert, DbType="Int NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
		public int Depart_ID
		{
			get
			{
				return this._Depart_ID;
			}
			set
			{
				if ((this._Depart_ID != value))
				{
					this.OnDepart_IDChanging(value);
					this.SendPropertyChanging();
					this._Depart_ID = value;
					this.SendPropertyChanged("Depart_ID");
					this.OnDepart_IDChanged();
				}
			}
		}
		
		[Column(Storage="_Depart_Name", DbType="NVarChar(20) NOT NULL", CanBeNull=false)]
		public string Depart_Name
		{
			get
			{
				return this._Depart_Name;
			}
			set
			{
				if ((this._Depart_Name != value))
				{
					this.OnDepart_NameChanging(value);
					this.SendPropertyChanging();
					this._Depart_Name = value;
					this.SendPropertyChanged("Depart_Name");
					this.OnDepart_NameChanged();
				}
			}
		}
		
		[Column(Storage="_Parent_ID", DbType="Int")]
		public System.Nullable<int> Parent_ID
		{
			get
			{
				return this._Parent_ID;
			}
			set
			{
				if ((this._Parent_ID != value))
				{
					this.OnParent_IDChanging(value);
					this.SendPropertyChanging();
					this._Parent_ID = value;
					this.SendPropertyChanged("Parent_ID");
					this.OnParent_IDChanged();
				}
			}
		}
		
		[Association(Name="T_Department_T_StaffRecords", Storage="_T_StaffRecords", OtherKey="Staff_DepartID")]
		public EntitySet<T_StaffRecords> T_StaffRecords
		{
			get
			{
				return this._T_StaffRecords;
			}
			set
			{
				this._T_StaffRecords.Assign(value);
			}
		}
		
		[Association(Name="T_Department_T_DiaoDu", Storage="_T_DiaoDu", OtherKey="New_DepartID")]
		public EntitySet<T_DiaoDu> T_DiaoDu
		{
			get
			{
				return this._T_DiaoDu;
			}
			set
			{
				this._T_DiaoDu.Assign(value);
			}
		}
		
		[Association(Name="T_Department_T_DiaoDu1", Storage="_T_DiaoDu1", OtherKey="Old_DepartID")]
		public EntitySet<T_DiaoDu> T_DiaoDu1
		{
			get
			{
				return this._T_DiaoDu1;
			}
			set
			{
				this._T_DiaoDu1.Assign(value);
			}
		}
		
		public event PropertyChangingEventHandler PropertyChanging;
		
		public event PropertyChangedEventHandler PropertyChanged;
		
		protected virtual void SendPropertyChanging()
		{
			if ((this.PropertyChanging != null))
			{
				this.PropertyChanging(this, emptyChangingEventArgs);
			}
		}
		
		protected virtual void SendPropertyChanged(String propertyName)
		{
			if ((this.PropertyChanged != null))
			{
				this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
			}
		}
		
		private void attach_T_StaffRecords(T_StaffRecords entity)
		{
			this.SendPropertyChanging();
			entity.T_Department = this;
		}
		
		private void detach_T_StaffRecords(T_StaffRecords entity)
		{
			this.SendPropertyChanging();
			entity.T_Department = null;
		}
		
		private void attach_T_DiaoDu(T_DiaoDu entity)
		{
			this.SendPropertyChanging();
			entity.T_Department = this;
		}
		
		private void detach_T_DiaoDu(T_DiaoDu entity)
		{
			this.SendPropertyChanging();
			entity.T_Department = null;
		}
		
		private void attach_T_DiaoDu1(T_DiaoDu entity)
		{
			this.SendPropertyChanging();
			entity.T_Department1 = this;
		}
		
		private void detach_T_DiaoDu1(T_DiaoDu entity)
		{
			this.SendPropertyChanging();
			entity.T_Department1 = null;
		}
	}
	
	public partial class DepartinfoResult
	{
		
		private System.Nullable<int> _sl;
		
		private string _depart_name;
		
		public DepartinfoResult()
		{
		}
		
		[Column(Storage="_sl", DbType="Int")]
		public System.Nullable<int> sl
		{
			get
			{
				return this._sl;
			}
			set
			{
				if ((this._sl != value))
				{
					this._sl = value;
				}
			}
		}
		
		[Column(Storage="_depart_name", DbType="NVarChar(20) NOT NULL", CanBeNull=false)]
		public string depart_name
		{
			get
			{
				return this._depart_name;
			}
			set
			{
				if ((this._depart_name != value))
				{
					this._depart_name = value;
				}
			}
		}
	}
	
	public partial class P_CountByDepartResult
	{
		
		private System.Nullable<int> _人员总数;
		
		private string _部门;
		
		public P_CountByDepartResult()
		{
		}
		
		[Column(Storage="_人员总数", DbType="Int")]
		public System.Nullable<int> 人员总数
		{
			get
			{
				return this._人员总数;
			}
			set
			{
				if ((this._人员总数 != value))
				{
					this._人员总数 = value;
				}
			}
		}
		
		[Column(Storage="_部门", DbType="NVarChar(20) NOT NULL", CanBeNull=false)]
		public string 部门
		{
			get
			{
				return this._部门;
			}
			set
			{
				if ((this._部门 != value))
				{
					this._部门 = value;
				}
			}
		}
	}
	
	public partial class P_DepartByStaffResult
	{
		
		private int _员工编号;
		
		private string _员工名称;
		
		private bool _性别;
		
		private string _部门名称;
		
		private string _职务;
		
		private string _手机;
		
		private string _学历;
		
		private string _地址;
		
		public P_DepartByStaffResult()
		{
		}
		
		[Column(Storage="_员工编号", DbType="Int NOT NULL")]
		public int 员工编号
		{
			get
			{
				return this._员工编号;
			}
			set
			{
				if ((this._员工编号 != value))
				{
					this._员工编号 = value;
				}
			}
		}
		
		[Column(Storage="_员工名称", DbType="NVarChar(50) NOT NULL", CanBeNull=false)]
		public string 员工名称
		{
			get
			{
				return this._员工名称;
			}
			set
			{
				if ((this._员工名称 != value))
				{
					this._员工名称 = value;
				}
			}
		}
		
		[Column(Storage="_性别", DbType="Bit NOT NULL")]
		public bool 性别
		{
			get
			{
				return this._性别;
			}
			set
			{
				if ((this._性别 != value))
				{
					this._性别 = value;
				}
			}
		}
		
		[Column(Storage="_部门名称", DbType="NVarChar(20) NOT NULL", CanBeNull=false)]
		public string 部门名称
		{
			get
			{
				return this._部门名称;
			}
			set
			{
				if ((this._部门名称 != value))
				{
					this._部门名称 = value;
				}
			}
		}
		
		[Column(Storage="_职务", DbType="NVarChar(20) NOT NULL", CanBeNull=false)]
		public string 职务
		{
			get
			{
				return this._职务;
			}
			set
			{
				if ((this._职务 != value))
				{
					this._职务 = value;
				}
			}
		}
		
		[Column(Storage="_手机", DbType="NVarChar(11) NOT NULL", CanBeNull=false)]
		public string 手机
		{
			get
			{
				return this._手机;
			}
			set
			{
				if ((this._手机 != value))
				{
					this._手机 = value;
				}
			}
		}
		
		[Column(Storage="_学历", DbType="NVarChar(20) NOT NULL", CanBeNull=false)]
		public string 学历
		{
			get
			{
				return this._学历;
			}
			set
			{
				if ((this._学历 != value))
				{
					this._学历 = value;
				}
			}
		}
		
		[Column(Storage="_地址", DbType="NVarChar(50)")]
		public string 地址
		{
			get
			{
				return this._地址;
			}
			set
			{
				if ((this._地址 != value))
				{
					this._地址 = value;
				}
			}
		}
	}
	
	public partial class P_DiaoDuByStaffIDResult
	{
		
		private int _员工编号;
		
		private string _员工名;
		
		private string _原部门;
		
		private string _原职务;
		
		private string _新部门;
		
		private string _新职务;
		
		private System.DateTime _调度时间;
		
		public P_DiaoDuByStaffIDResult()
		{
		}
		
		[Column(Storage="_员工编号", DbType="Int NOT NULL")]
		public int 员工编号
		{
			get
			{
				return this._员工编号;
			}
			set
			{
				if ((this._员工编号 != value))
				{
					this._员工编号 = value;
				}
			}
		}
		
		[Column(Storage="_员工名", DbType="NVarChar(50) NOT NULL", CanBeNull=false)]
		public string 员工名
		{
			get
			{
				return this._员工名;
			}
			set
			{
				if ((this._员工名 != value))
				{
					this._员工名 = value;
				}
			}
		}
		
		[Column(Storage="_原部门", DbType="NVarChar(20) NOT NULL", CanBeNull=false)]
		public string 原部门
		{
			get
			{
				return this._原部门;
			}
			set
			{
				if ((this._原部门 != value))
				{
					this._原部门 = value;
				}
			}
		}
		
		[Column(Storage="_原职务", DbType="NVarChar(20) NOT NULL", CanBeNull=false)]
		public string 原职务
		{
			get
			{
				return this._原职务;
			}
			set
			{
				if ((this._原职务 != value))
				{
					this._原职务 = value;
				}
			}
		}
		
		[Column(Storage="_新部门", DbType="NVarChar(20) NOT NULL", CanBeNull=false)]
		public string 新部门
		{
			get
			{
				return this._新部门;
			}
			set
			{
				if ((this._新部门 != value))
				{
					this._新部门 = value;
				}
			}
		}
		
		[Column(Storage="_新职务", DbType="NVarChar(20) NOT NULL", CanBeNull=false)]
		public string 新职务
		{
			get
			{
				return this._新职务;
			}
			set
			{
				if ((this._新职务 != value))
				{
					this._新职务 = value;
				}
			}
		}
		
		[Column(Storage="_调度时间", DbType="DateTime NOT NULL")]
		public System.DateTime 调度时间
		{
			get
			{
				return this._调度时间;
			}
			set
			{
				if ((this._调度时间 != value))
				{
					this._调度时间 = value;
				}
			}
		}
	}
	
	public partial class P_DiaoDuByStaffnameResult
	{
		
		private int _编号;
		
		private int _员工编号;
		
		private string _员工名;
		
		private string _原部门;
		
		private string _原职务;
		
		private string _新部门;
		
		private string _新职务;
		
		private System.DateTime _调度时间;
		
		public P_DiaoDuByStaffnameResult()
		{
		}
		
		[Column(Storage="_编号", DbType="Int NOT NULL")]
		public int 编号
		{
			get
			{
				return this._编号;
			}
			set
			{
				if ((this._编号 != value))
				{
					this._编号 = value;
				}
			}
		}
		
		[Column(Storage="_员工编号", DbType="Int NOT NULL")]
		public int 员工编号
		{
			get
			{
				return this._员工编号;
			}
			set
			{
				if ((this._员工编号 != value))
				{
					this._员工编号 = value;
				}
			}
		}
		
		[Column(Storage="_员工名", DbType="NVarChar(50) NOT NULL", CanBeNull=false)]
		public string 员工名
		{
			get
			{
				return this._员工名;
			}
			set
			{
				if ((this._员工名 != value))
				{
					this._员工名 = value;
				}
			}
		}
		
		[Column(Storage="_原部门", DbType="NVarChar(20) NOT NULL", CanBeNull=false)]
		public string 原部门
		{
			get
			{
				return this._原部门;
			}
			set
			{
				if ((this._原部门 != value))
				{
					this._原部门 = value;
				}
			}
		}
		
		[Column(Storage="_原职务", DbType="NVarChar(20) NOT NULL", CanBeNull=false)]
		public string 原职务
		{
			get
			{
				return this._原职务;
			}
			set
			{
				if ((this._原职务 != value))
				{
					this._原职务 = value;
				}
			}
		}
		
		[Column(Storage="_新部门", DbType="NVarChar(20) NOT NULL", CanBeNull=false)]
		public string 新部门
		{
			get
			{
				return this._新部门;
			}
			set
			{
				if ((this._新部门 != value))
				{
					this._新部门 = value;
				}
			}
		}
		
		[Column(Storage="_新职务", DbType="NVarChar(20) NOT NULL", CanBeNull=false)]
		public string 新职务
		{
			get
			{
				return this._新职务;
			}
			set
			{
				if ((this._新职务 != value))
				{
					this._新职务 = value;
				}
			}
		}
		
		[Column(Storage="_调度时间", DbType="DateTime NOT NULL")]
		public System.DateTime 调度时间
		{
			get
			{
				return this._调度时间;
			}
			set
			{
				if ((this._调度时间 != value))
				{
					this._调度时间 = value;
				}
			}
		}
	}
	
	public partial class P_DiaoDuByStaffTimeResult
	{
		
		private int _员工编号;
		
		private string _员工名;
		
		private string _原部门;
		
		private string _原职务;
		
		private string _新部门;
		
		private string _新职务;
		
		private System.DateTime _调度时间;
		
		public P_DiaoDuByStaffTimeResult()
		{
		}
		
		[Column(Storage="_员工编号", DbType="Int NOT NULL")]
		public int 员工编号
		{
			get
			{
				return this._员工编号;
			}
			set
			{
				if ((this._员工编号 != value))
				{
					this._员工编号 = value;
				}
			}
		}
		
		[Column(Storage="_员工名", DbType="NVarChar(50) NOT NULL", CanBeNull=false)]
		public string 员工名
		{
			get
			{
				return this._员工名;
			}
			set
			{
				if ((this._员工名 != value))
				{
					this._员工名 = value;
				}
			}
		}
		
		[Column(Storage="_原部门", DbType="NVarChar(20) NOT NULL", CanBeNull=false)]
		public string 原部门
		{
			get
			{
				return this._原部门;
			}
			set
			{
				if ((this._原部门 != value))
				{
					this._原部门 = value;
				}
			}
		}
		
		[Column(Storage="_原职务", DbType="NVarChar(20) NOT NULL", CanBeNull=false)]
		public string 原职务
		{
			get
			{
				return this._原职务;
			}
			set
			{
				if ((this._原职务 != value))
				{
					this._原职务 = value;
				}
			}
		}
		
		[Column(Storage="_新部门", DbType="NVarChar(20) NOT NULL", CanBeNull=false)]
		public string 新部门
		{
			get
			{
				return this._新部门;
			}
			set
			{
				if ((this._新部门 != value))
				{
					this._新部门 = value;
				}
			}
		}
		
		[Column(Storage="_新职务", DbType="NVarChar(20) NOT NULL", CanBeNull=false)]
		public string 新职务
		{
			get
			{
				return this._新职务;
			}
			set
			{
				if ((this._新职务 != value))
				{
					this._新职务 = value;
				}
			}
		}
		
		[Column(Storage="_调度时间", DbType="DateTime NOT NULL")]
		public System.DateTime 调度时间
		{
			get
			{
				return this._调度时间;
			}
			set
			{
				if ((this._调度时间 != value))
				{
					this._调度时间 = value;
				}
			}
		}
	}
	
	public partial class P_jcResult
	{
		
		private int _JC_ID;
		
		private string _Staff_Name;
		
		private string _Depart_Name;
		
		private string _Job_Name;
		
		private System.Nullable<bool> _AwardORpunish;
		
		private System.Nullable<System.DateTime> _JC_Time;
		
		private decimal _JC_Money;
		
		private string _JC_Cause;
		
		public P_jcResult()
		{
		}
		
		[Column(Storage="_JC_ID", DbType="Int NOT NULL")]
		public int JC_ID
		{
			get
			{
				return this._JC_ID;
			}
			set
			{
				if ((this._JC_ID != value))
				{
					this._JC_ID = value;
				}
			}
		}
		
		[Column(Storage="_Staff_Name", DbType="NVarChar(50) NOT NULL", CanBeNull=false)]
		public string Staff_Name
		{
			get
			{
				return this._Staff_Name;
			}
			set
			{
				if ((this._Staff_Name != value))
				{
					this._Staff_Name = value;
				}
			}
		}
		
		[Column(Storage="_Depart_Name", DbType="NVarChar(20) NOT NULL", CanBeNull=false)]
		public string Depart_Name
		{
			get
			{
				return this._Depart_Name;
			}
			set
			{
				if ((this._Depart_Name != value))
				{
					this._Depart_Name = value;
				}
			}
		}
		
		[Column(Storage="_Job_Name", DbType="NVarChar(20) NOT NULL", CanBeNull=false)]
		public string Job_Name
		{
			get
			{
				return this._Job_Name;
			}
			set
			{
				if ((this._Job_Name != value))
				{
					this._Job_Name = value;
				}
			}
		}
		
		[Column(Storage="_AwardORpunish", DbType="Bit")]
		public System.Nullable<bool> AwardORpunish
		{
			get
			{
				return this._AwardORpunish;
			}
			set
			{
				if ((this._AwardORpunish != value))
				{
					this._AwardORpunish = value;
				}
			}
		}
		
		[Column(Storage="_JC_Time", DbType="DateTime")]
		public System.Nullable<System.DateTime> JC_Time
		{
			get
			{
				return this._JC_Time;
			}
			set
			{
				if ((this._JC_Time != value))
				{
					this._JC_Time = value;
				}
			}
		}
		
		[Column(Storage="_JC_Money", DbType="Money NOT NULL")]
		public decimal JC_Money
		{
			get
			{
				return this._JC_Money;
			}
			set
			{
				if ((this._JC_Money != value))
				{
					this._JC_Money = value;
				}
			}
		}
		
		[Column(Storage="_JC_Cause", DbType="NVarChar(50)")]
		public string JC_Cause
		{
			get
			{
				return this._JC_Cause;
			}
			set
			{
				if ((this._JC_Cause != value))
				{
					this._JC_Cause = value;
				}
			}
		}
	}
	
	public partial class P_JiangChengOfStaffResult
	{
		
		private int _员工编号;
		
		private string _员工姓名;
		
		private string _部门;
		
		private string _职务;
		
		private System.Nullable<bool> _奖_罚;
		
		private System.Nullable<System.DateTime> _奖_罚时间;
		
		private string _奖_罚原因;
		
		private decimal _奖_罚金额;
		
		public P_JiangChengOfStaffResult()
		{
		}
		
		[Column(Storage="_员工编号", DbType="Int NOT NULL")]
		public int 员工编号
		{
			get
			{
				return this._员工编号;
			}
			set
			{
				if ((this._员工编号 != value))
				{
					this._员工编号 = value;
				}
			}
		}
		
		[Column(Storage="_员工姓名", DbType="NVarChar(50) NOT NULL", CanBeNull=false)]
		public string 员工姓名
		{
			get
			{
				return this._员工姓名;
			}
			set
			{
				if ((this._员工姓名 != value))
				{
					this._员工姓名 = value;
				}
			}
		}
		
		[Column(Storage="_部门", DbType="NVarChar(20) NOT NULL", CanBeNull=false)]
		public string 部门
		{
			get
			{
				return this._部门;
			}
			set
			{
				if ((this._部门 != value))
				{
					this._部门 = value;
				}
			}
		}
		
		[Column(Storage="_职务", DbType="NVarChar(20) NOT NULL", CanBeNull=false)]
		public string 职务
		{
			get
			{
				return this._职务;
			}
			set
			{
				if ((this._职务 != value))
				{
					this._职务 = value;
				}
			}
		}
		
		[Column(Name="[奖\\罚]", Storage="_奖_罚", DbType="Bit")]
		public System.Nullable<bool> 奖_罚
		{
			get
			{
				return this._奖_罚;
			}
			set
			{
				if ((this._奖_罚 != value))
				{
					this._奖_罚 = value;
				}
			}
		}
		
		[Column(Name="[奖\\罚时间]", Storage="_奖_罚时间", DbType="DateTime")]
		public System.Nullable<System.DateTime> 奖_罚时间
		{
			get
			{
				return this._奖_罚时间;
			}
			set
			{
				if ((this._奖_罚时间 != value))
				{
					this._奖_罚时间 = value;
				}
			}
		}
		
		[Column(Name="[奖\\罚原因]", Storage="_奖_罚原因", DbType="NVarChar(50)")]
		public string 奖_罚原因
		{
			get
			{
				return this._奖_罚原因;
			}
			set
			{
				if ((this._奖_罚原因 != value))
				{
					this._奖_罚原因 = value;
				}
			}
		}
		
		[Column(Name="[奖\\罚金额]", Storage="_奖_罚金额", DbType="Money NOT NULL")]
		public decimal 奖_罚金额
		{
			get
			{
				return this._奖_罚金额;
			}
			set
			{
				if ((this._奖_罚金额 != value))
				{
					this._奖_罚金额 = value;
				}
			}
		}
	}
	
	public partial class P_KaoPingOfStaffResult
	{
		
		private int _员工编号;
		
		private string _员工姓名;
		
		private string _部门;
		
		private string _职务;
		
		private System.DateTime _考评时间;
		
		private string _考评内容;
		
		private string _考评结果;
		
		private double _考评成绩;
		
		public P_KaoPingOfStaffResult()
		{
		}
		
		[Column(Storage="_员工编号", DbType="Int NOT NULL")]
		public int 员工编号
		{
			get
			{
				return this._员工编号;
			}
			set
			{
				if ((this._员工编号 != value))
				{
					this._员工编号 = value;
				}
			}
		}
		
		[Column(Storage="_员工姓名", DbType="NVarChar(50) NOT NULL", CanBeNull=false)]
		public string 员工姓名
		{
			get
			{
				return this._员工姓名;
			}
			set
			{
				if ((this._员工姓名 != value))
				{
					this._员工姓名 = value;
				}
			}
		}
		
		[Column(Storage="_部门", DbType="NVarChar(20) NOT NULL", CanBeNull=false)]
		public string 部门
		{
			get
			{
				return this._部门;
			}
			set
			{
				if ((this._部门 != value))
				{
					this._部门 = value;
				}
			}
		}
		
		[Column(Storage="_职务", DbType="NVarChar(20) NOT NULL", CanBeNull=false)]
		public string 职务
		{
			get
			{
				return this._职务;
			}
			set
			{
				if ((this._职务 != value))
				{
					this._职务 = value;
				}
			}
		}
		
		[Column(Storage="_考评时间", DbType="DateTime NOT NULL")]
		public System.DateTime 考评时间
		{
			get
			{
				return this._考评时间;
			}
			set
			{
				if ((this._考评时间 != value))
				{
					this._考评时间 = value;
				}
			}
		}
		
		[Column(Storage="_考评内容", DbType="NVarChar(50) NOT NULL", CanBeNull=false)]
		public string 考评内容
		{
			get
			{
				return this._考评内容;
			}
			set
			{
				if ((this._考评内容 != value))
				{
					this._考评内容 = value;
				}
			}
		}
		
		[Column(Storage="_考评结果", DbType="NVarChar(500) NOT NULL", CanBeNull=false)]
		public string 考评结果
		{
			get
			{
				return this._考评结果;
			}
			set
			{
				if ((this._考评结果 != value))
				{
					this._考评结果 = value;
				}
			}
		}
		
		[Column(Storage="_考评成绩", DbType="Float NOT NULL")]
		public double 考评成绩
		{
			get
			{
				return this._考评成绩;
			}
			set
			{
				if ((this._考评成绩 != value))
				{
					this._考评成绩 = value;
				}
			}
		}
	}
	
	public partial class P_StaffByTypeResult
	{
		
		private int _员工编号;
		
		private string _员工姓名;
		
		private bool _性别;
		
		private string _民族;
		
		private string _学历;
		
		private string _部门;
		
		private string _职务;
		
		private string _职称;
		
		private string _员工类别;
		
		private string _身份证号;
		
		private string _手机;
		
		private string _固话;
		
		private string _邮箱;
		
		private string _地址;
		
		public P_StaffByTypeResult()
		{
		}
		
		[Column(Storage="_员工编号", DbType="Int NOT NULL")]
		public int 员工编号
		{
			get
			{
				return this._员工编号;
			}
			set
			{
				if ((this._员工编号 != value))
				{
					this._员工编号 = value;
				}
			}
		}
		
		[Column(Storage="_员工姓名", DbType="NVarChar(50) NOT NULL", CanBeNull=false)]
		public string 员工姓名
		{
			get
			{
				return this._员工姓名;
			}
			set
			{
				if ((this._员工姓名 != value))
				{
					this._员工姓名 = value;
				}
			}
		}
		
		[Column(Storage="_性别", DbType="Bit NOT NULL")]
		public bool 性别
		{
			get
			{
				return this._性别;
			}
			set
			{
				if ((this._性别 != value))
				{
					this._性别 = value;
				}
			}
		}
		
		[Column(Storage="_民族", DbType="VarChar(20) NOT NULL", CanBeNull=false)]
		public string 民族
		{
			get
			{
				return this._民族;
			}
			set
			{
				if ((this._民族 != value))
				{
					this._民族 = value;
				}
			}
		}
		
		[Column(Storage="_学历", DbType="NVarChar(20) NOT NULL", CanBeNull=false)]
		public string 学历
		{
			get
			{
				return this._学历;
			}
			set
			{
				if ((this._学历 != value))
				{
					this._学历 = value;
				}
			}
		}
		
		[Column(Storage="_部门", DbType="NVarChar(20) NOT NULL", CanBeNull=false)]
		public string 部门
		{
			get
			{
				return this._部门;
			}
			set
			{
				if ((this._部门 != value))
				{
					this._部门 = value;
				}
			}
		}
		
		[Column(Storage="_职务", DbType="NVarChar(20) NOT NULL", CanBeNull=false)]
		public string 职务
		{
			get
			{
				return this._职务;
			}
			set
			{
				if ((this._职务 != value))
				{
					this._职务 = value;
				}
			}
		}
		
		[Column(Storage="_职称", DbType="VarChar(20) NOT NULL", CanBeNull=false)]
		public string 职称
		{
			get
			{
				return this._职称;
			}
			set
			{
				if ((this._职称 != value))
				{
					this._职称 = value;
				}
			}
		}
		
		[Column(Storage="_员工类别", DbType="NVarChar(20) NOT NULL", CanBeNull=false)]
		public string 员工类别
		{
			get
			{
				return this._员工类别;
			}
			set
			{
				if ((this._员工类别 != value))
				{
					this._员工类别 = value;
				}
			}
		}
		
		[Column(Storage="_身份证号", DbType="NVarChar(18) NOT NULL", CanBeNull=false)]
		public string 身份证号
		{
			get
			{
				return this._身份证号;
			}
			set
			{
				if ((this._身份证号 != value))
				{
					this._身份证号 = value;
				}
			}
		}
		
		[Column(Storage="_手机", DbType="NVarChar(11) NOT NULL", CanBeNull=false)]
		public string 手机
		{
			get
			{
				return this._手机;
			}
			set
			{
				if ((this._手机 != value))
				{
					this._手机 = value;
				}
			}
		}
		
		[Column(Storage="_固话", DbType="NVarChar(15)")]
		public string 固话
		{
			get
			{
				return this._固话;
			}
			set
			{
				if ((this._固话 != value))
				{
					this._固话 = value;
				}
			}
		}
		
		[Column(Storage="_邮箱", DbType="NVarChar(50) NOT NULL", CanBeNull=false)]
		public string 邮箱
		{
			get
			{
				return this._邮箱;
			}
			set
			{
				if ((this._邮箱 != value))
				{
					this._邮箱 = value;
				}
			}
		}
		
		[Column(Storage="_地址", DbType="NVarChar(50)")]
		public string 地址
		{
			get
			{
				return this._地址;
			}
			set
			{
				if ((this._地址 != value))
				{
					this._地址 = value;
				}
			}
		}
	}
	
	public partial class P_TrainByTimeResult
	{
		
		private int _员工编号;
		
		private string _员工姓名;
		
		private System.DateTime _开始时间;
		
		private System.DateTime _结束时间;
		
		private string _培训地点;
		
		private string _培训内容;
		
		private int _培训分数;
		
		public P_TrainByTimeResult()
		{
		}
		
		[Column(Storage="_员工编号", DbType="Int NOT NULL")]
		public int 员工编号
		{
			get
			{
				return this._员工编号;
			}
			set
			{
				if ((this._员工编号 != value))
				{
					this._员工编号 = value;
				}
			}
		}
		
		[Column(Storage="_员工姓名", DbType="NVarChar(50) NOT NULL", CanBeNull=false)]
		public string 员工姓名
		{
			get
			{
				return this._员工姓名;
			}
			set
			{
				if ((this._员工姓名 != value))
				{
					this._员工姓名 = value;
				}
			}
		}
		
		[Column(Storage="_开始时间", DbType="DateTime NOT NULL")]
		public System.DateTime 开始时间
		{
			get
			{
				return this._开始时间;
			}
			set
			{
				if ((this._开始时间 != value))
				{
					this._开始时间 = value;
				}
			}
		}
		
		[Column(Storage="_结束时间", DbType="DateTime NOT NULL")]
		public System.DateTime 结束时间
		{
			get
			{
				return this._结束时间;
			}
			set
			{
				if ((this._结束时间 != value))
				{
					this._结束时间 = value;
				}
			}
		}
		
		[Column(Storage="_培训地点", DbType="NVarChar(50) NOT NULL", CanBeNull=false)]
		public string 培训地点
		{
			get
			{
				return this._培训地点;
			}
			set
			{
				if ((this._培训地点 != value))
				{
					this._培训地点 = value;
				}
			}
		}
		
		[Column(Storage="_培训内容", DbType="NVarChar(100) NOT NULL", CanBeNull=false)]
		public string 培训内容
		{
			get
			{
				return this._培训内容;
			}
			set
			{
				if ((this._培训内容 != value))
				{
					this._培训内容 = value;
				}
			}
		}
		
		[Column(Storage="_培训分数", DbType="Int NOT NULL")]
		public int 培训分数
		{
			get
			{
				return this._培训分数;
			}
			set
			{
				if ((this._培训分数 != value))
				{
					this._培训分数 = value;
				}
			}
		}
	}
}
#pragma warning restore 1591
