예제 #1
0
        /// <summary>
        /// 根据主键索引,获得指定的考勤异常扣款明细记录以便查看编辑
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        void clientAtt_GetAttendanceDeductDetailByIDCompleted(object sender, GetAttendanceDeductDetailByIDCompletedEventArgs e)
        {
            if (e.Error == null)
            {
                AttendanceDeductDetail = e.Result;
                this.DataContext       = AttendanceDeductDetail;
                AttendanceDeductMaster = AttendanceDeductDetail.T_HR_ATTENDANCEDEDUCTMASTER;

                if (AttendanceDeductMaster != null)
                {
                    InitMasterInfo();
                    InitDetailInfo();
                }

                SetToolBar();
            }
            else
            {
                Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr(e.Error.Message));
            }
        }
예제 #2
0
        /// <summary>
        /// 根据主键索引,获得指定的考勤异常扣款明细记录以便查看编辑
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        void clientAtt_GetAttendanceDeductDetailByIDCompleted(object sender, GetAttendanceDeductDetailByIDCompletedEventArgs e)
        {
            if (e.Error == null)
            {
                AttendanceDeductDetail = e.Result;
                this.DataContext = AttendanceDeductDetail;
                AttendanceDeductMaster = AttendanceDeductDetail.T_HR_ATTENDANCEDEDUCTMASTER;

                if (AttendanceDeductMaster != null)
                {
                    InitMasterInfo();
                    InitDetailInfo();
                }

                SetToolBar();
            }
            else
            {
                Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr(e.Error.Message));
            }
        }