/// <summary> /// 生成带薪假 /// </summary> /// <param name="strCompanyID"></param> private void GenerateFreedays(string strCompanyID) { string strOrgType = "1"; clientAtt.CalculateEmployeeLevelDayCountByOrgID(strOrgType, strCompanyID); log.Debug(DateTime.Now.ToString() + ",调用考勤服务,生成(CompanyID:" + strCompanyID + ")带薪假成功"); }
private void btnGenerVacation_Click(object sender, EventArgs e) { DialogResult MsgBoxResult = MessageBox.Show("确认是否继续操作?生成带薪假需要有生效的主岗位,有生效的考勤方案,并且员工状态为在职状态。", "提示", MessageBoxButtons.YesNo, MessageBoxIcon.Exclamation, MessageBoxDefaultButton.Button2); if (MsgBoxResult == DialogResult.Yes)//如果对话框的返回值是YES(按"Y"按钮) { txtMessagebox.Text = "开始生成带薪假:" + System.Environment.NewLine + txtMessagebox.Text; AttRdSvcClient.CalculateEmployeeLevelDayCountByOrgID("1", txtCompanyid.Text); txtMessagebox.Text = "生成带薪假完成:" + System.Environment.NewLine + txtMessagebox.Text; MessageBox.Show("生成带薪年假完成!"); } }
/// <summary> /// 生成&更新带薪假记录(调休除外) /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void btnUpdateFreeLeaveRd_Click(object sender, EventArgs e) { if (Session["LOGINUSER"] == null) { plLogin.Visible = true; plManage.Visible = false; return; } ltlMsg.Text = string.Empty; string strOrgType = string.Empty, strOrgID = string.Empty; strOrgID = txtFLOrgID.Text; strOrgType = txtFLOrgType.Text; AttRdSvc.CalculateEmployeeLevelDayCountByOrgID(strOrgType, strOrgID); ltlMsg.Text = "更新带薪假记录完毕"; }
/// <summary> /// 生成带薪假 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void btnUpdateFreeLeaveRd_Click(object sender, EventArgs e) { //机构类型 1表示公司 4表示员工 string txtFLOrgType = this.txtFLOrgType.Text; //机构ID string txtFLOrgID = this.txtFLOrgID.Text; if (string.IsNullOrEmpty(txtFLOrgType) || string.IsNullOrEmpty(txtFLOrgID)) { this.TextBox1.Text = "机构类型/机构ID请正确填写"; return; } AttendanceServiceClient client = new AttendanceServiceClient(); //生成带薪假期 client.CalculateEmployeeLevelDayCountByOrgID(txtFLOrgType, txtFLOrgID); this.TextBox1.Text = "生成带薪假完毕!"; }
/// <summary> /// 生成带薪假 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void btnUpdateFreeLeaveRd_Click(object sender, EventArgs e) { //机构类型 1表示公司 4表示员工 string txtFLOrgType = this.txtFLOrgType.Text; //机构ID string txtFLOrgID = this.txtFLOrgID.Text; if (string.IsNullOrEmpty(txtFLOrgType) || string.IsNullOrEmpty(txtFLOrgID)) { this.TextBox1.Text = "机构类型/机构ID请正确填写"; return; } AttendanceServiceClient client = new AttendanceServiceClient(); //生成带薪假期 client.CalculateEmployeeLevelDayCountByOrgID(txtFLOrgType,txtFLOrgID); this.TextBox1.Text = "生成带薪假完毕!"; }