/// <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)); } }
/// <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)); } }
/// <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)); } }
/// <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)); } }
/// <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)); } }