コード例 #1
0
        private void gridView1_CustomRowCellEditForEditing(object sender, DevExpress.XtraGrid.Views.Grid.CustomRowCellEditEventArgs e)
        {
            // lấy mã phiếu nhập
            Temp.Temp_PhieuNhapHangID = gridView1.GetRowCellValue(e.RowHandle, "MaPhieuNhap").ToString();
            Temp.Temp_PhieuNoID       = gridView1.GetRowCellValue(e.RowHandle, "STT_No").ToString();
            Form_ChiTietPhieuNo dlg2 = new Form_ChiTietPhieuNo();

            dlg2.ShowDialog();
        }
コード例 #2
0
        private void gridView1_CustomRowCellEditForEditing(object sender, DevExpress.XtraGrid.Views.Grid.CustomRowCellEditEventArgs e)
        {
            /// load chi tiết phiếu nợ

            /// mã  stt nợ
            Temp.Temp_PhieuNoID = gridView1.GetRowCellValue(e.RowHandle, "STT_No").ToString();
            // lấy mã phiếu nhập
            DataTable bangno = SQL_CongNo.Display_PhieuNo();

            for (int i = 0; i < bangno.Rows.Count; i++)
            {
                if (Temp.Temp_PhieuNoID == bangno.Rows[i][0].ToString())
                {
                    Temp.Temp_PhieuNhapHangID = bangno.Rows[i][1].ToString();
                }
            }
            Form_ChiTietPhieuNo dlg2 = new Form_ChiTietPhieuNo();

            dlg2.ShowDialog();
        }