Example #1
0
 public bool ThemChiTietDanhGia(ChiTietDanhGia ct)
 {
     try
     {
         var kq = TimChiTietDanhGia(ct.MaCTDG);
         if (kq != null)
         {
             throw new Exception();
         }
         dc.ChiTietDanhGias.InsertOnSubmit(ct);
         return(true);
     }
     catch
     {
         return(false);
     }
 }
Example #2
0
    public bool SuaChiTietDanhGia(ChiTietDanhGia ct)
    {
        try
        {
            var kq = TimChiTietDanhGia(ct.MaCTDG);
            if (kq == null)
            {
                throw new Exception();
            }

            //kq.MaTC = ct.MaTC;
            kq.MaCDTheoTC = ct.MaCDTheoTC;
            kq.MaKQDG     = ct.MaKQDG;

            return(true);
        }
        catch
        {
            return(false);
        }
    }