예제 #1
0
        private void btnNV_manv_Click(object sender, EventArgs e)
        {
            int id;

            if (int.TryParse(tbxNV_manv.Text, out id))
            {
                Helper_GUI.Load_LocalReport(rp_Nhanvien, ReporterBUL.Instance.UPD_LayThongTinNhanVien(id));
            }
        }
예제 #2
0
        private void btnDT_theothang_Click(object sender, EventArgs e)
        {
            int        month = cbxDT_thang.SelectedIndex;
            Report_DTO src   = null;

            switch (month)
            {
            case 0:
                src = ReporterBUL.Instance.UPD_DoanhThuTheoNam((int)cbxDT_nam.SelectedValue);
                break;

            default:
                src = ReporterBUL.Instance.UPD_DoanhThuTheoThang(month, (int)cbxDT_nam.SelectedValue);
                break;
            }
            Helper_GUI.Load_LocalReport(rp_Doanhthu, src);
        }
예제 #3
0
        private void btnXem_Hoadon_Click(object sender, EventArgs e)
        {
            int index = cbxHoadon.SelectedIndex;

            switch (index)
            {
            case 0:
                Helper_GUI.Load_LocalReport(rp_Hoadon, ReporterBUL.Instance.UDP_ReportHoaDonByRangeDate(timeStart.Value, timeEnd.Value));
                break;

            case 1:
                //Helper_GUI.Load_LocalReport(rp_Hoadon, ReporterBUL.Instance.up);
                break;

            case 2:
                break;
            }
        }
예제 #4
0
        private void btnDT_theongay_Click(object sender, EventArgs e)
        {
            Report_DTO src = ReporterBUL.Instance.UDP_DoanhThuTheoNgay(dpDT_start.Value, dpDT_end.Value);

            Helper_GUI.Load_LocalReport(rp_Doanhthu, src);
        }
예제 #5
0
 private void btnNV_chucvu_Click(object sender, EventArgs e)
 {
     Helper_GUI.Load_LocalReport(rp_Nhanvien, ReporterBUL.Instance.UPD_LayDanhSachNhanVien_ChucVu(cbxNV_chucvu.SelectedItem as ChucVu_DTO));
 }