예제 #1
0
        private void btnThem_Click(object sender, System.EventArgs e)
        {
            GlobalVariables.m_Flag = 0;
            frmPhieuXuat_ChiTiet frm = new frmPhieuXuat_ChiTiet();

            frm.ShowDialog();
            Loadfg();
        }
예제 #2
0
        private void LoadChiTiet(string title)
        {
            int                  IDPX         = int.Parse(fgQDX[fgQDX.Row, "ID_PhieuXuat"].ToString());
            string               TenPX        = fgQDX[fgQDX.Row, "So_PhieuXuat"].ToString();
            int                  IDKho        = int.Parse(fgQDX[fgQDX.Row, "ID_Kho"].ToString());
            string               TenKho       = fgQDX[fgQDX.Row, "Ten_Kho"].ToString();
            DateTime             NgayXuat     = (DateTime)fgQDX[fgQDX.Row, "Ngay_XuatKho"];
            DateTime             NgayHachToan = (DateTime)fgQDX[fgQDX.Row, "Ngay_HachToan"];
            int                  TrangThai    = int.Parse(fgQDX[fgQDX.Row, "TrangThai"].ToString());
            frmPhieuXuat_ChiTiet frm          = new frmPhieuXuat_ChiTiet(IDPX, TenPX, IDKho, TenKho, NgayXuat, NgayHachToan, TrangThai);

            frm.Text = title;
            frm.ShowDialog();
            //LoadfgChiTiet(int.Parse(fgQDX.GetDataDisplay(fgQDX.Row, "ID_PhieuXuat")));
        }