private void PhieuXuat_Click(object sender, EventArgs e)
        {
            if (grvBCNhanChuyenKho.FocusedRowHandle < 0)
            {
                return;
            }
            ChungTuDieuChuyenInfor info = DeNghiDieuChuyenDataProvider.Instance.GetInforDNDCByIdChungTu(
                ((BCTongHopHangChuyenKhoInfo)grvBCNhanChuyenKho.GetRow(grvBCNhanChuyenKho.FocusedRowHandle)).
                IdPhieuXuat);
            frm_PhieuDieuChuyenCungTT frm = new frm_PhieuDieuChuyenCungTT(info);

            if (frm.ShowDialog() == DialogResult.OK)
            {
                //grcBCNhanChuyenKho.DataSource = XuatDieuChuyenDataProvider.Instance.GetBCTongHopChuyenKho(MaTrungTam, MaKho, Convert.ToDateTime(deFrom.EditValue), Convert.ToDateTime(deTo.EditValue));
            }
        }
Beispiel #2
0
        private void btnMoPhieu_Click(object sender, EventArgs e)
        {
            if (grvDanhSach.FocusedRowHandle < 0)
            {
                return;
            }
            ChungTuDieuChuyenInfor    info = ((ChungTuDieuChuyenInfor)grvDanhSach.GetRow(grvDanhSach.FocusedRowHandle));
            frm_PhieuDieuChuyenCungTT frm  = new frm_PhieuDieuChuyenCungTT(info);

            foreach (DMKhoCBOLoadInfo nguoiDungInfor in ((NguoiDungInfor)Declare.USER_INFOR).KhoNguoiDung)
            {
                IdKho += nguoiDungInfor.IdKho + ",";
            }
            if (frm.ShowDialog() == DialogResult.OK)
            {
                liDM = DieuChuyenDataProvider.Instance.GetListXuatDieuChuyen(IdKho);
                grcDanhSach.DataSource = liDM;
            }
        }