Exemple #1
0
        private void btnThemPhieu_Click(object sender, EventArgs e)
        {
            frm_PhieuDeNghiXuatTieuHao frm = new frm_PhieuDeNghiXuatTieuHao();

            if (frm.ShowDialog() == DialogResult.OK)
            {
                grcDanhSach.DataSource = DeNghiXuatTieuHaoProvider.GetListDeNghiXuatTieuHao();
            }
        }
Exemple #2
0
        private void btnMoPhieu_Click(object sender, EventArgs e)
        {
            if (grvDanhSach.FocusedRowHandle < 0)
            {
                return;
            }
            ChungTuDeNghiXuatTieuHaoInfor info = ((ChungTuDeNghiXuatTieuHaoInfor)grvDanhSach.GetRow(grvDanhSach.FocusedRowHandle));
            frm_PhieuDeNghiXuatTieuHao    frm  = new frm_PhieuDeNghiXuatTieuHao(info.IdChungTu, info.SoChungTu, info.NgayLap.ToString(), "", info.TrangThai, info.GhiChu, info.HoTen, info.IdChiPhi, info.IdPhongBan);

            if (frm.ShowDialog() == DialogResult.OK)
            {
                grcDanhSach.DataSource = DeNghiXuatTieuHaoProvider.GetListDeNghiXuatTieuHao();
            }
        }