예제 #1
0
 private void LoadData()
 {
     dtGioGiang = oBGG_CongViecGiaoVien.GetByHocKy(Program.IDNamHoc, Program.HocKy,
                                                   cmbDonVi.EditValue == null ? 0 : int.Parse(cmbDonVi.EditValue.ToString()));
     foreach (DataRow dr in dtGioGiang.Rows)
     {
         TinhGioChuan(dr);
     }
     grdGioGiang.DataSource = dtGioGiang;
 }
        private void LoadData()
        {
            dtGioGiang = oBGG_CongViecGiaoVien.GetByHocKy(Program.IDNamHoc, Program.HocKy,
                                                          cmbDonVi.EditValue == null ? 0 : int.Parse(cmbDonVi.EditValue.ToString()));
            DataView dv = new DataView(dtGioGiang);

            dv.Sort    = "NS_GiaoVienID, wTYPE DESC";
            dtGioGiang = dv.ToTable();
            foreach (DataRow dr in dtGioGiang.Rows)
            {
                TinhGioChuan(dr);
            }
            grdGioGiang.DataSource = dtGioGiang;
        }