Ejemplo n.º 1
0
        /// <summary>
        /// 更改员工制度奖惩情况信息
        /// </summary>
        /// <param name="New_WorkRAP">新的员工制度奖惩情况实体</param>
        /// <returns></returns>
        public bool UpdateWorkRAP(User_WorkRAP TempWorkRAP)
        {
            User_WorkRAP OldWorkRAP = DB_WorkRAP.Select(P => P.WorkRAP_ID == TempWorkRAP.WorkRAP_ID).Single();
            User_WorkRAP NewWorkRAP = OldWorkRAP;

            NewWorkRAP.WorkRAP_Time = TempWorkRAP.WorkRAP_Time;
            NewWorkRAP.WorkRAP_Type = TempWorkRAP.WorkRAP_Type;
            NewWorkRAP.WorkRAP_User = TempWorkRAP.WorkRAP_User;
            return(DB_WorkRAP.Update(OldWorkRAP, NewWorkRAP));
        }
Ejemplo n.º 2
0
        /// <summary>
        /// 删除员工制度奖惩情况信息
        /// </summary>
        /// <param name="WorkRAP">要删除的员工制度奖惩情况实体</param>
        /// <returns></returns>
        public bool DeleteWorkRAP(int WorkRAPID)
        {
            User_WorkRAP WRAP = DB_WorkRAP.Select(P => P.WorkRAP_ID == WorkRAPID).Single();

            return(DB_WorkRAP.Delete(WRAP));
        }
Ejemplo n.º 3
0
 /// <summary>
 /// 新增员工制度奖惩情况信息
 /// </summary>
 /// <param name="WorkRAP">要增加的员工制度奖惩情况实体</param>
 /// <returns></returns>
 public bool AddWorkRAP(User_WorkRAP WorkRAP)
 {
     return(DB_WorkRAP.Insert(WorkRAP));
 }