コード例 #1
0
        /// <summary>
        /// 根据主键索引,获得指定的假期记录以便查看编辑
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        void clientAtt_GetAttendanceSolutionByIDCompleted(object sender, GetAttendanceSolutionByIDCompletedEventArgs e)
        {
            if (e.Error == null)
            {
                entAttendanceSolution = e.Result;
                this.DataContext      = entAttendanceSolution;

                cbIsExpired.IsChecked      = false;
                cbYouthIsExpired.IsChecked = false;
                if (entAttendanceSolution.ISEXPIRED == (Convert.ToInt32(IsChecked.Yes)).ToString())
                {
                    cbIsExpired.IsChecked = true;
                    tbAdjustExpiredValueTitle.Visibility = Visibility.Visible;
                    nudAdjustExpiredValue.Visibility     = Visibility.Visible;
                }
                if (entAttendanceSolution.YOUTHEXTEND == (Convert.ToInt32(IsChecked.Yes)).ToString())
                {
                    cbYouthIsExpired.IsChecked = true;
                    tbYouthAdjustExpiredValueTitle.Visibility = Visibility.Visible;
                    nudYouthAdjustExpiredValue.Visibility     = Visibility.Visible;
                }
            }
            else
            {
                Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr(e.Error.Message));
            }
        }
コード例 #2
0
ファイル: AttSolRdForm.xaml.cs プロジェクト: jjg0519/OA
        /// <summary>
        /// 根据主键索引,获得指定的假期记录以便查看编辑
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        void clientAtt_GetAttendanceSolutionByIDCompleted(object sender, GetAttendanceSolutionByIDCompletedEventArgs e)
        {
            if (e.Error == null)
            {
                entAttendanceSolution = e.Result;
                if (FormType == FormTypes.Resubmit)
                {
                    entAttendanceSolution.CHECKSTATE = Convert.ToInt32(CheckStates.UnSubmit).ToString();
                }

                entAttendanceSolution.UPDATEDATE   = DateTime.Now;
                entAttendanceSolution.UPDATEUSERID = SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.EmployeeID;

                this.DataContext = entAttendanceSolution;

                cbIsCurrentMonth.IsChecked = false;
                if (entAttendanceSolution.ISCURRENTMONTH == (Convert.ToInt32(IsChecked.Yes) + 1).ToString())
                {
                    cbIsCurrentMonth.IsChecked = true;
                }
                //结算岗位
                if (!string.IsNullOrWhiteSpace(entAttendanceSolution.LEFTOFFICERECEIVEPOSTNAME))
                {
                    lkBalancePost.TxtLookUp.Text = entAttendanceSolution.LEFTOFFICERECEIVEPOSTNAME;
                }
                //如果ISAUTOIMPORTPUNCH=0 表示不自动导入; =1表示自动导入
                if (entAttendanceSolution.ISAUTOIMPORTPUNCH == "0")
                {
                    this.RadN.IsChecked = true;
                }
                else
                {
                    this.RadY.IsChecked = true;
                }

                if (entAttendanceSolution.CHECKSTATE != Convert.ToInt32(CheckStates.UnSubmit).ToString())
                {
                    UnEnableFormControl();
                    this.ucOTReward.IsEnabled = false;
                    this.ucDeduct.IsEnabled   = false;
                    //this.ucDef.IsEnabled = false;
                    //this.ucDef.dgSEList.IsEnabled = true;
                    //this.ucDef.cbxkSchedulingCircleType.IsEnabled = false;
                    //this.ucDef.lkSchedulingTemplateMaster.IsEnabled = false;
                    //this.ucDef.txtRemark.IsEnabled = false;
                    this.ucLeave.IsEnabled = false;
                }

                RefreshUI(RefreshedTypes.AuditInfo);
                SetToolBar();
            }
            else
            {
                Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr(e.Error.Message));
            }
        }
コード例 #3
0
ファイル: AttSolRdBasicSet.xaml.cs プロジェクト: jjg0519/OA
        /// <summary>
        /// 根据主键索引,获得指定的假期记录以便查看编辑
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        void clientAtt_GetAttendanceSolutionByIDCompleted(object sender, GetAttendanceSolutionByIDCompletedEventArgs e)
        {
            if (e.Error == null)
            {
                entAttendanceSolution = e.Result;

                entAttendanceSolution.UPDATEDATE   = DateTime.Now;
                entAttendanceSolution.UPDATEUSERID = SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.EmployeeID;

                this.DataContext = entAttendanceSolution;
            }
            else
            {
                Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr(e.Error.Message));
            }
        }
コード例 #4
0
ファイル: AttSolRdOTSet.xaml.cs プロジェクト: jjg0519/OA
        /// <summary>
        /// 根据主键索引,获得指定的假期记录以便查看编辑
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        void clientAtt_GetAttendanceSolutionByIDCompleted(object sender, GetAttendanceSolutionByIDCompletedEventArgs e)
        {
            if (e.Error == null)
            {
                entAttendanceSolution = e.Result;

                this.DataContext = entAttendanceSolution;

                cbOTTimeCheck.IsChecked = false;
                if (entAttendanceSolution.OVERTIMECHECK == (Convert.ToInt32(IsChecked.Yes) + 1).ToString())
                {
                    cbOTTimeCheck.IsChecked = true;
                }

                CheckNeedEnterOTTimePay();
            }
            else
            {
                Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr(e.Error.Message));
            }
        }
コード例 #5
0
ファイル: AttSolRdLeaveSet.xaml.cs プロジェクト: JuRogn/OA
        /// <summary>
        /// 根据主键索引,获得指定的假期记录以便查看编辑
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        void clientAtt_GetAttendanceSolutionByIDCompleted(object sender, GetAttendanceSolutionByIDCompletedEventArgs e)
        {
            if (e.Error == null)
            {
                entAttendanceSolution = e.Result;
                this.DataContext = entAttendanceSolution;

                cbIsExpired.IsChecked = false;
                cbYouthIsExpired.IsChecked = false;
                if (entAttendanceSolution.ISEXPIRED == (Convert.ToInt32(IsChecked.Yes)).ToString())
                {
                    cbIsExpired.IsChecked = true;
                    tbAdjustExpiredValueTitle.Visibility = Visibility.Visible;
                    nudAdjustExpiredValue.Visibility = Visibility.Visible;
                }
                if (entAttendanceSolution.YOUTHEXTEND == (Convert.ToInt32(IsChecked.Yes)).ToString())
                {
                    cbYouthIsExpired.IsChecked = true;
                    tbYouthAdjustExpiredValueTitle.Visibility = Visibility.Visible;
                    nudYouthAdjustExpiredValue.Visibility = Visibility.Visible;
                }
            }
            else
            {
                Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr(e.Error.Message));
            }
        }
コード例 #6
0
ファイル: AttSolRdForm.xaml.cs プロジェクト: JuRogn/OA
        /// <summary>
        /// 根据主键索引,获得指定的假期记录以便查看编辑
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        void clientAtt_GetAttendanceSolutionByIDCompleted(object sender, GetAttendanceSolutionByIDCompletedEventArgs e)
        {
            if (e.Error == null)
            {
                entAttendanceSolution = e.Result;
                if (FormType == FormTypes.Resubmit)
                {
                    entAttendanceSolution.CHECKSTATE = Convert.ToInt32(CheckStates.UnSubmit).ToString();
                }

                entAttendanceSolution.UPDATEDATE = DateTime.Now;
                entAttendanceSolution.UPDATEUSERID = SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.EmployeeID;

                this.DataContext = entAttendanceSolution;

                cbIsCurrentMonth.IsChecked = false;
                if (entAttendanceSolution.ISCURRENTMONTH == (Convert.ToInt32(IsChecked.Yes) + 1).ToString())
                {
                    cbIsCurrentMonth.IsChecked = true;
                }

                //如果ISAUTOIMPORTPUNCH=0 表示不自动导入; =1表示自动导入
                if (entAttendanceSolution.ISAUTOIMPORTPUNCH=="0")
                {
                    this.RadN.IsChecked = true;
                }
                else
                {
                    this.RadY.IsChecked = true;
                }

                if (entAttendanceSolution.CHECKSTATE != Convert.ToInt32(CheckStates.UnSubmit).ToString())
                {
                    UnEnableFormControl();
                    this.ucOTReward.IsEnabled = false;
                    this.ucDeduct.IsEnabled = false;
                    this.ucDef.IsEnabled = false;
                    this.ucLeave.IsEnabled = false;
                }

                RefreshUI(RefreshedTypes.AuditInfo);
                SetToolBar();
            }
            else
            {
                Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr(e.Error.Message));
            }
        }
コード例 #7
0
ファイル: AttSolRdOTSet.xaml.cs プロジェクト: JuRogn/OA
        /// <summary>
        /// 根据主键索引,获得指定的假期记录以便查看编辑
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        void clientAtt_GetAttendanceSolutionByIDCompleted(object sender, GetAttendanceSolutionByIDCompletedEventArgs e)
        {
            if (e.Error == null)
            {
                entAttendanceSolution = e.Result;

                this.DataContext = entAttendanceSolution;

                cbOTTimeCheck.IsChecked = false;
                if (entAttendanceSolution.OVERTIMECHECK == (Convert.ToInt32(IsChecked.Yes) + 1).ToString())
                {
                    cbOTTimeCheck.IsChecked = true;
                }

                CheckNeedEnterOTTimePay();
            }
            else
            {
                Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr(e.Error.Message));
            }
        }
コード例 #8
0
ファイル: AttSolRdBasicSet.xaml.cs プロジェクト: JuRogn/OA
        /// <summary>
        /// 根据主键索引,获得指定的假期记录以便查看编辑
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        void clientAtt_GetAttendanceSolutionByIDCompleted(object sender, GetAttendanceSolutionByIDCompletedEventArgs e)
        {
            if (e.Error == null)
            {
                entAttendanceSolution = e.Result;

                entAttendanceSolution.UPDATEDATE = DateTime.Now;
                entAttendanceSolution.UPDATEUSERID = SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.EmployeeID;

                this.DataContext = entAttendanceSolution;
            }
            else
            {
                Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr(e.Error.Message));
            }
        }