Exemple #1
0
        /// <summary>
        /// 保存
        /// </summary>
        /// <returns></returns>
        private bool Save()
        {
            bool flag = false;

            flag = CheckAndSubmitTabForm(ref entAttendanceSolution, ref entAttendanceSolutionDeducts, ref entAttendFreeLeaves);

            if (!flag)
            {
                return(false);
            }

            if (FormType == FormTypes.New)
            {
                AttendanceSolutionID = entAttendanceSolution.ATTENDANCESOLUTIONID;
                clientAtt.AddAttendanceSolutionAndCreateRelationAsync(entAttendanceSolution, entAttendanceSolutionDeducts, entAttendFreeLeaves);
            }
            else
            {
                clientAtt.ModifyAttendanceSolutionAndChangeRelationAsync(entAttendanceSolution, entAttendanceSolutionDeducts, entAttendFreeLeaves);
            }

            return(flag);
        }