Пример #1
0
        private void btn_PrintSelected_Click(object sender, EventArgs e)
        {
            CalCrystalReportForm1Randomcode f;

            this.gridView2.PostEditor();
            this.gridView2.UpdateCurrentRow();
            IList <Model.Employee> list = this._emplist.Where(d => d.IsChecked == true).ToList();

            if (list == null || list.Count == 0)
            {
                MessageBox.Show("至少選擇一位員工!", this.Text, MessageBoxButtons.OK);
                return;
            }
            else
            {
                f = new CalCrystalReportForm1Randomcode(list, this.hryear, this.hrmonth);
                f.Show();
            }
        }
Пример #2
0
        private void btn_PrintTotal_Click(object sender, EventArgs e)
        {
            CalCrystalReportForm1Randomcode f = new CalCrystalReportForm1Randomcode(this._emplist, this.hryear, this.hrmonth);

            f.Show();
        }