コード例 #1
0
        private void LoadLuong(int t)
        {
            DateTime thoiGian    = dtpThoiGian.Value;
            DateTime ngayKetThuc = new DateTime(thoiGian.Year, thoiGian.Month, 1);

            ngayKetThuc = ngayKetThuc.AddMonths(1);
            BindingList <LUONG> list = Luong.LayBangLuong(thoiGian);

            dgvBangLuong.DataSource = list;
            ShowInfo();
        }
コード例 #2
0
        private void LoadLuong()
        {
            DateTime thoiGian    = dtpThoiGian.Value;
            DateTime ngayKetThuc = new DateTime(thoiGian.Year, thoiGian.Month, 1);

            ngayKetThuc = ngayKetThuc.AddMonths(1);
            BindingList <LUONG> list = Luong.LayBangLuong(thoiGian);

            if (list.Count == 0 && Util.CompareTime(ngayKetThuc, DateTime.Now))
            {
                FormYeuCauTinhLuong formYeuCauTinhLuong = new FormYeuCauTinhLuong(thoiGian);
                formYeuCauTinhLuong.ShowDialog();
                LoadLuong(0);
                return;
            }
            dgvBangLuong.DataSource = list;
            ShowInfo();
        }