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

            if (frm.ShowDialog() == DialogResult.OK)
            {
                grcDanhSach.DataSource = DeNghiNhapTieuHaoProvider.GetListDeNghiXuatTieuHao();
            }
        }
Example #2
0
 private void frm_DanhSachPhieuDeNghiNhapTH_Load(object sender, EventArgs e)
 {
     grcDanhSach.DataSource = DeNghiNhapTieuHaoProvider.GetListDeNghiXuatTieuHao();
     btnMoPhieu.Enabled     = true;
     btnXoaPhieu.Enabled    = IsSupperUser();
     btnMoPhieu.Text        = Resources.btnInfor;
     btnThemPhieu.Text      = Resources.btnAdd;
     btnXoaPhieu.Text       = Resources.btnDelete;
     btnDong.Text           = Resources.btnClose;
     LoadTrangThai();
 }
Example #3
0
        //nếu click dòng mà có cột trạng thái là đã duyệt thì ẩn các nút trên form Phiếu đề nghị
        //còn nếu click dòng mà có cột trạng thái là chưa duyệt thì để nguyên các nút trên form phiếu đề nghị
        private void btnMoPhieu_Click(object sender, EventArgs e)
        {
            if (grvDanhSach.FocusedRowHandle < 0)
            {
                return;
            }
            ChungTuDeNghiXuatTieuHaoInfornew info = ((ChungTuDeNghiXuatTieuHaoInfornew)grvDanhSach.GetRow(grvDanhSach.FocusedRowHandle));
            frm_PhieuDeNghiNhapTieuHao       frm  = new frm_PhieuDeNghiNhapTieuHao(info.IdChungTu, info.SoChungTu, info.NgayLap.ToString(), "", info.TrangThai, info.GhiChu, info.HoTen,
                                                                                   info.TenTrungTam, info.TenKho, info.IdTrungTam, info.IdKho, info.IdNhanVien, info.LoaiChungTu, info.SoChungTuGoc, info.IdNguoiQuanLy, info.NguoiQuanLy);

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