Exemplo n.º 1
0
        protected void ASPxGridView1_CustomButtonCallback(object sender, DevExpress.Web.ASPxGridView.ASPxGridViewCustomButtonCallbackEventArgs e)
        {
            if (e.ButtonID != "btnCusPrintDT")
            {
                return;
            }
            ASPxGridView grid = sender as ASPxGridView;
            //Lấy thông tin mã kỳ thi
            int kthiid = (int)grid.GetRowValues(e.VisibleIndex, "MAKYTHI");
            //Từ mã kỳ thi xác định các đề thi và in ra file doc
            ArrayList dsdethi = dethiBus.GetMadtFromKythi(kthiid);

            //Tạo arraylist đề thi
            foreach (DETHI item in dsdethi)
            {
                chBus = new CauHoiBUS();
                ArrayList dsch = chBus.GetDSCauHoiDT(item.MADETHI);
            }
        }