Esempio n. 1
0
        /// <summary>
        /// Put the actual work detail list to database
        /// </summary>
        /// <param name="dataListMemberActualWorkDetail"></param>
        /// <param name="dataMemberActualWork"></param>
        /// <param name="dataAttendanceRecord"></param>
        /// <param name="isExceedMaximumActualWorkTime">out param</param>
        /// <returns>bool</returns>
        public bool PutActualWorkDetailListNew(IList <MemberActualWorkDetail> dataListMemberActualWorkDetail,
                                               MemberActualWork dataMemberActualWork,
                                               AttendanceRecord dataAttendanceRecord, out bool isExceedMaximumActualWorkTime)
        {
            var result = false;

            using (var trans = new TransactionScope())
            {
                result = repository.PutActualWorkDetailListNew(dataListMemberActualWorkDetail, dataMemberActualWork, dataAttendanceRecord, out isExceedMaximumActualWorkTime);
                if (result)
                {
                    trans.Complete();
                }
            }
            return(result);
        }
Esempio n. 2
0
        /// <summary>
        /// Put the Actual work detail list to database
        /// </summary>
        /// <param name="data">data</param>
        /// <returns>bool : true/false</returns>
        public bool PutActualWorkDetailList(
            IList <MemberActualWorkDetail> dataListMemberActualWorkDetail,
            MemberActualWork dataMemberActualWork,
            IList <AttendanceRecord> dataListAttendanceRecord)
        {
            var result = false;

            using (var trans = new TransactionScope())
            {
                result = repository.PutActualWorkDetailList(dataListMemberActualWorkDetail, dataMemberActualWork, dataListAttendanceRecord);
                if (result)
                {
                    trans.Complete();
                }
            }
            return(result);
        }
Esempio n. 3
0
 /// <summary>
 /// Check Data valid
 /// </summary>
 /// <param name="dataMemberActualWork">dataMemberActualWork</param>
 /// <returns>bool : true/false</returns>
 public bool CheckDataValid(MemberActualWork dataMemberActualWork)
 {
     return(repository.CheckDataValid(dataMemberActualWork));
 }