public override void Load()
        {
            _client = new DOI_TUONG_UU_TIENClient();
            _client.DOI_TUONG_UU_TIEN_SearchAsync(new DOI_TUONG_UU_TIEN_SearchResult(), null);
            _client.DOI_TUONG_UU_TIEN_SearchCompleted+=_client_DOI_TUONG_UU_TIEN_SearchCompleted;

            _clientTrangThaiDuyet = new TRANG_THAI_DUYETClient();
            _clientTrangThaiDuyet.TRANG_THAI_DUYET_LstAsync();
            _clientTrangThaiDuyet.TRANG_THAI_DUYET_LstCompleted+=_clientTrangThaiDuyet_TRANG_THAI_DUYET_LstCompleted;

            _dataItem = new ObservableExpandCollection();
            SearchItem = new DOI_TUONG_UU_TIEN_SearchResult();
            DataItemTrangThaiDuyet = new ObservableExpandCollection<TRANG_THAI_DUYET_LstResult>();
        }
 public DOI_TUONG_UU_TIEN_EX()
 {
     ItemContent = new DOI_TUONG_UU_TIEN_SearchResult();
 }
 public IEnumerable<DOI_TUONG_UU_TIEN_SearchResult> DOI_TUONG_UU_TIEN_Search(DOI_TUONG_UU_TIEN_SearchResult data, int? top)
 {
     try
     {
         using (var db = new OOAD_EDUManagementDataContext())
         {
             return db.DOI_TUONG_UU_TIEN_Search(data.maDoiTuongUuTien,
                                               data.maXDoiTuongUuTien,
                                               data.tenDoiTuongUuTien,
                                               data.diemCong,
                                               data.noiDung,
                                               data.maNguoiLap,
                                               data.thoiGianLap == null ? "" : data.thoiGianLap.Value.ToString(Constants.FormatDate),
                                               data.maNguoiDuyet,
                                               data.thoiGianDuyet == null ? "" : data.thoiGianDuyet.Value.ToString(Constants.FormatDate),
                                               data.maTrangThaiDuyet,
                                               data.trangThaiDuLieu,
                                               top).ToList();
         }
     }
     catch (Exception e) { return null; }
 }