Exemplo n.º 1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            QLSinhVienEntities dbContext  = new QLSinhVienEntities();
            LopHocDAP          dapLopHoc  = new LopHocDAP(dbContext);
            HocSinhDAP         dapHocSinh = new HocSinhDAP(dbContext);

            tbl_LopHocs.AddRange(dapLopHoc.getData());
            tbl_HocSinhs.AddRange(dapHocSinh.getData());
        }
Exemplo n.º 2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            QLSinhVienEntities dbContext  = new QLSinhVienEntities();
            HocSinhDAP         dapHocSinh = new HocSinhDAP(dbContext);
            LopHocDAP          dapLopHoc  = new LopHocDAP(dbContext);

            doAction = !string.IsNullOrEmpty(Request["do"]) ? Request["do"].ToString() : "";
            itemID   = !string.IsNullOrEmpty(Request["itemid"]) ? Convert.ToInt32(Request["itemid"]) : 0;
            if (itemID != 0)
            {
                hs = dapHocSinh.getByID(itemID);
            }
            tbl_lopHocs.AddRange(dapLopHoc.getData());
            tbl_HocSinhs.AddRange(dapHocSinh.getData());
        }