Ejemplo n.º 1
0
        private void BtnXuatBaoCao_Click(object sender, EventArgs e)
        {
            xrpBangLuong rpt = new xrpBangLuong();

            rpt.lblThang.Text = dateTimePicker1.Value.Month.ToString();
            rpt.lblNam.Text   = dateTimePicker1.Value.Year.ToString();
            rpt.DataSource    = TinhLuongBUL.TinhLuongTatCaNhanVien(dateTimePicker1.Value.Month, dateTimePicker1.Value.Year, double.Parse(txtLuongCoBan.Text), double.Parse(txtLuongTangCa.Text));
            rpt.BindData();
            ReportPrintTool print = new ReportPrintTool(rpt);

            print.ShowPreviewDialog();
        }
Ejemplo n.º 2
0
 private void BtnTinhLuong_Click(object sender, EventArgs e)
 {
     lstTinhLuong = TinhLuongBUL.TinhLuongTatCaNhanVien(dateTimePicker1.Value.Month, dateTimePicker1.Value.Year, Convert.ToDouble(txtLuongCoBan.Text), Convert.ToDouble(txtLuongTangCa.Text));
     ReloadDataGridView();
 }