/// <summary> /// 根据相关条件,获取月度考勤批量审核信息 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> void clientAtt_GetAttendMonthlyBatchBalanceByMultSearchCompleted(object sender, GetAttendMonthlyBatchBalanceByMultSearchCompletedEventArgs e) { if (e.Error == null) { AttendMonthlyBatchBalance = e.Result; if (AttendMonthlyBatchBalance == null) { AttendMonthlyBatchBalance = new T_HR_ATTENDMONTHLYBATCHBALANCE(); AttendMonthlyBatchBalance.MONTHLYBATCHID = System.Guid.NewGuid().ToString().ToUpper(); AttendMonthlyBatchBalance.BALANCEYEAR = decimal.Parse(txtBalanceYear.Text); AttendMonthlyBatchBalance.BALANCEMONTH = decimal.Parse(nudBalanceMonth.Value.ToString()); AttendMonthlyBatchBalance.BALANCEDATE = DateTime.Now; AttendMonthlyBatchBalance.BALANCEOBJECTTYPE = BalanceObjectType; AttendMonthlyBatchBalance.BALANCEOBJECTID = BalanceObjectValue; AttendMonthlyBatchBalance.BALANCEOBJECTNAME = string.Empty; AttendMonthlyBatchBalance.CHECKSTATE = Utility.GetCheckState(CheckStates.UnSubmit); AttendMonthlyBatchBalance.EDITSTATE = Convert.ToInt32(EditStates.UnActived).ToString(); AttendMonthlyBatchBalance.OWNERCOMPANYID = SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.UserPosts[0].CompanyID; AttendMonthlyBatchBalance.OWNERDEPARTMENTID = SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.UserPosts[0].DepartmentID; AttendMonthlyBatchBalance.OWNERPOSTID = SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.UserPosts[0].PostID; AttendMonthlyBatchBalance.OWNERID = SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.EmployeeID; AttendMonthlyBatchBalance.CREATEPOSTID = SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.UserPosts[0].PostID; AttendMonthlyBatchBalance.CREATEDEPARTMENTID = SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.UserPosts[0].DepartmentID; AttendMonthlyBatchBalance.CREATECOMPANYID = SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.UserPosts[0].CompanyID; AttendMonthlyBatchBalance.CREATEUSERID = SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.EmployeeID; AttendMonthlyBatchBalance.CREATEDATE = DateTime.Now; AttendMonthlyBatchBalance.REMARK = string.Empty; AttendMonthlyBatchBalance.UPDATEUSERID = SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.EmployeeID; AttendMonthlyBatchBalance.UPDATEDATE = DateTime.Now; } this.DataContext = AttendMonthlyBatchBalance; SetBalanceObject(); } 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_GetAttendMonthlyBatchBalanceByMultSearchCompleted(object sender, GetAttendMonthlyBatchBalanceByMultSearchCompletedEventArgs e) { if (e.Error == null) { AttendMonthlyBatchBalance = e.Result; if (AttendMonthlyBatchBalance == null) { AttendMonthlyBatchBalance = new T_HR_ATTENDMONTHLYBATCHBALANCE(); AttendMonthlyBatchBalance.MONTHLYBATCHID = System.Guid.NewGuid().ToString().ToUpper(); AttendMonthlyBatchBalance.BALANCEYEAR = decimal.Parse(txtBalanceYear.Text); AttendMonthlyBatchBalance.BALANCEMONTH = decimal.Parse(nudBalanceMonth.Value.ToString()); AttendMonthlyBatchBalance.BALANCEDATE = DateTime.Now; AttendMonthlyBatchBalance.BALANCEOBJECTTYPE = BalanceObjectType; AttendMonthlyBatchBalance.BALANCEOBJECTID = BalanceObjectValue; AttendMonthlyBatchBalance.BALANCEOBJECTNAME = string.Empty; AttendMonthlyBatchBalance.CHECKSTATE = Utility.GetCheckState(CheckStates.UnSubmit); AttendMonthlyBatchBalance.EDITSTATE = Convert.ToInt32(EditStates.UnActived).ToString(); AttendMonthlyBatchBalance.OWNERCOMPANYID = SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.UserPosts[0].CompanyID; AttendMonthlyBatchBalance.OWNERDEPARTMENTID = SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.UserPosts[0].DepartmentID; AttendMonthlyBatchBalance.OWNERPOSTID = SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.UserPosts[0].PostID; AttendMonthlyBatchBalance.OWNERID = SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.EmployeeID; AttendMonthlyBatchBalance.CREATEPOSTID = SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.UserPosts[0].PostID; AttendMonthlyBatchBalance.CREATEDEPARTMENTID = SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.UserPosts[0].DepartmentID; AttendMonthlyBatchBalance.CREATECOMPANYID = SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.UserPosts[0].CompanyID; AttendMonthlyBatchBalance.CREATEUSERID = SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.EmployeeID; AttendMonthlyBatchBalance.CREATEDATE = DateTime.Now; AttendMonthlyBatchBalance.REMARK = string.Empty; AttendMonthlyBatchBalance.UPDATEUSERID = SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.EmployeeID; AttendMonthlyBatchBalance.UPDATEDATE = DateTime.Now; } this.DataContext = AttendMonthlyBatchBalance; SetBalanceObject(); } else { Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr(e.Error.Message)); } }