Example #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!Page.IsPostBack)
     {
         RenderSelectCourse();
     }
     YearPlansGrid.DataSource = null;
     YearPlansGrid.DataSource = GetgridDataYearPlans();
     YearPlansGrid.DataBind();
 }
Example #2
0
 private void ReloadData(string result)
 {
     if (result == "e5")
     {
         //reload grid
         YearPlansGrid.DataSource = null;
         YearPlansGrid.DataSource = GetgridDataYearPlans();
         YearPlansGrid.DataBind();
     }
     else if (result == "e2")
     {
         MessageBox.swalModal(this.Page, "warning", "e2:ບໍ່ສາມາດເຊື່ອມຕໍ່ຖານຂໍ້ມູນໄດ້.", "");
     }
     else if (result == "e1")
     {
         MessageBox.swalModal(this.Page, "info", "e1:ບໍ່ມີຂໍ້ມູນທີ່ຈະສະແດງ.", "");
     }
     else if (result == "e0")
     {
         MessageBox.swalModal(this.Page, "error", "e0:ລະບົບຂັດຂ້ອງຕິດຕໍ່ຜູ້ເບີ່ງແຍ່ງດ່ວນ.", "");
     }
 }