private void simpleButton2_Click(object sender, EventArgs e) { if (lookUpEmployeeId.Text == "" || lookupEmployeeName.Text == "" || cmbDutyDate.Text == "") { return; } Model.Employee _empployee = employeeManager.Get(lookUpEmployeeId.EditValue.ToString()); DateTime date = new DateTime(); if (cmbDutyDate.Text != "") { date = DateTime.Parse(cmbDutyDate.Text.ToString()); } DataSet ds = _hrManager.SelectByEmpMonth(_empployee, date); if (ds.Tables[0].Rows.Count == 0) { return; } AttenreporCrystalForm form = new AttenreporCrystalForm(_empployee, date, ds); form.Show(); }
//打印异常报表 private void sbtn_print_Click(object sender, EventArgs e) { AttenreporCrystalForm acf = new AttenreporCrystalForm(this.mPrintDs, this.dateEdit1.DateTime); acf.Show(); }