示例#1
0
        /// <summary>
        /// 通过薪酬单的主键id获取所有的StaffPayment,即每个员工的在指定薪酬单上的个人薪酬
        /// </summary>
        /// <param name="id">主键id</param>
        /// <returns>返回符合条件的员工个人薪酬单</returns>
        public List <StaffPayment> GetAllStaffPaymentByPaymentId(int id)
        {
            //throw new NotImplementedException();

            IStaffPaymentDAL dAL = new StaffPaymentDAL();

            return(dAL.GetAllStaffPaymentByPaymentId(id));
        }
示例#2
0
        /// <summary>
        /// 通过id更新StaffPayment的Odd以及Minus
        /// </summary>
        /// <param name="id">StaffPayment的主键id</param>
        /// <param name="odd">OddAmout</param>
        /// <param name="minus">MinusAmout</param>
        /// <returns>是否成功</returns>
        public bool UpdateStaffPayOddAndMinus(int id, decimal odd, decimal minus)
        {
            //throw new NotImplementedException();

            IStaffPaymentDAL dAL = new StaffPaymentDAL();

            if (dAL.UpdateStaffPayOddAndMinus(id, odd, minus) > 0)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }