コード例 #1
0
 public int Delete(clsKetQuaThi_DTO kqtDTO)
 {
     try
     {
         ListDictionary _list = new ListDictionary();
         _list.Add("SoDeThi", kqtDTO.SoDeThi);
         int iReturn = obj.ExcSql("Delete_KetQuaThi", _list, CommandType.StoredProcedure);
         return iReturn;
     }
     catch (Exception)
     {
         //return ex.Message;
         return -1111;
     }
 }
コード例 #2
0
 public int Delete(clsKetQuaThi_DTO kqtDTO)
 {
     try
     {
         ListDictionary _list = new ListDictionary();
         _list.Add("SoDeThi", kqtDTO.SoDeThi);
         int iReturn = obj.ExcSql("Delete_KetQuaThi", _list, CommandType.StoredProcedure);
         return(iReturn);
     }
     catch (Exception)
     {
         //return ex.Message;
         return(-1111);
     }
 }
コード例 #3
0
 public DataTable getKetQuaThi(clsKetQuaThi_DTO kqtDTO)
 {
     ListDictionary _list = new ListDictionary();
     _list.Add("SoDeThi", kqtDTO.SoDeThi);
     _list.Add("MaTS", kqtDTO.MaTS);
     _list.Add("DiemDanh", kqtDTO.DiemDanh);
     _list.Add("KetQuaThi", kqtDTO.KetQuaThi);
     DataTable dt = new DataTable();
     try
     {
         dt = obj.GetDataTable("Select_Ket_Qua_Thi", _list, CommandType.StoredProcedure);
     }
     catch
     {
         dt = null;
     }
     return dt;
 }
コード例 #4
0
 public int InsertUpdate(clsKetQuaThi_DTO kqtDTO)
 {
     try
     {
         ListDictionary _list = new ListDictionary();
         _list.Add("old_id", kqtDTO.OldID);
         _list.Add("SoDeThi", kqtDTO.SoDeThi);
         _list.Add("MaTS", kqtDTO.MaTS);
         _list.Add("DiemDanh", kqtDTO.DiemDanh);
         _list.Add("KetQuaThi", kqtDTO.KetQuaThi);
         int iReturn = obj.ExcSql("Insert_Update_KetQuaThi", _list, CommandType.StoredProcedure);
         return iReturn;
     }
     catch (Exception)
     {
         //return ex.Message;
         return -1111; // Đặt số này làm ngoại lệ ko lường trước được. ở StoredProcedure không được return có số này tránh trường hợp trùng
     }
 }
コード例 #5
0
 public int InsertUpdate(clsKetQuaThi_DTO kqtDTO)
 {
     try
     {
         ListDictionary _list = new ListDictionary();
         _list.Add("old_id", kqtDTO.OldID);
         _list.Add("SoDeThi", kqtDTO.SoDeThi);
         _list.Add("MaTS", kqtDTO.MaTS);
         _list.Add("DiemDanh", kqtDTO.DiemDanh);
         _list.Add("KetQuaThi", kqtDTO.KetQuaThi);
         int iReturn = obj.ExcSql("Insert_Update_KetQuaThi", _list, CommandType.StoredProcedure);
         return(iReturn);
     }
     catch (Exception)
     {
         //return ex.Message;
         return(-1111); // Đặt số này làm ngoại lệ ko lường trước được. ở StoredProcedure không được return có số này tránh trường hợp trùng
     }
 }
コード例 #6
0
    public DataTable getKetQuaThi(clsKetQuaThi_DTO kqtDTO)
    {
        ListDictionary _list = new ListDictionary();

        _list.Add("SoDeThi", kqtDTO.SoDeThi);
        _list.Add("MaTS", kqtDTO.MaTS);
        _list.Add("DiemDanh", kqtDTO.DiemDanh);
        _list.Add("KetQuaThi", kqtDTO.KetQuaThi);
        DataTable dt = new DataTable();

        try
        {
            dt = obj.GetDataTable("Select_Ket_Qua_Thi", _list, CommandType.StoredProcedure);
        }
        catch
        {
            dt = null;
        }
        return(dt);
    }
コード例 #7
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Convert.ToString(Session["TenDangNhap"]) == "")
        {
            Response.Redirect("~/dangnhap.aspx");
        }
        kqtDAL = new clsKetQuaThi_DAL();
        kqtDTO = new clsKetQuaThi_DTO();

        thisinhDAL = new clsThiSinh_DAL();
        thisinhDTO = new clsThiSinh_DTO();

        cmn = new clsCommon();
        if (!IsPostBack || !IsCallback)
        {
        }
        if (!Page.IsPostBack)
        {
        }
        loadMasterData();
        gvKetQuaThi.DataSource = loadDataToUI();
        gvKetQuaThi.DataBind();
    }
コード例 #8
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Convert.ToString(Session["TenDangNhap"]) == "")
            Response.Redirect("~/dangnhap.aspx");
        kqtDAL = new clsKetQuaThi_DAL();
        kqtDTO = new clsKetQuaThi_DTO();

        thisinhDAL = new clsThiSinh_DAL();
        thisinhDTO = new clsThiSinh_DTO();

        cmn = new clsCommon();
        if (!IsPostBack || !IsCallback)
        {

        }
        if (!Page.IsPostBack)
        {

        }
        loadMasterData();
        gvKetQuaThi.DataSource = loadDataToUI();
        gvKetQuaThi.DataBind();
    }