Пример #1
0
        public override void Load()
        {
            _client = new PHONGClient();
            _client.PHONG_SearchAsync(new PHONG_SearchResult(), null);
            _client.PHONG_SearchCompleted+=_client_PHONG_SearchCompleted;

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

            _clientHoiDongThi = new HOI_DONG_THIClient();
            _clientHoiDongThi.HOI_DONG_THI_LstAsync();
            _clientHoiDongThi.HOI_DONG_THI_LstCompleted += _clientHoiDongThi_HOI_DONG_THI_LstCompleted;

            _dataItem = new ObservableExpandCollection();
            SearchItem = new PHONG_SearchResult();
            DataItemTrangThaiDuyet = new ObservableExpandCollection<TRANG_THAI_DUYET_LstResult>();
            DataItemHoiDongThi = new ObservableExpandCollection<HOI_DONG_THI_LstResult>();
        }
Пример #2
0
 public IEnumerable<PHONG_SearchResult> PHONG_Search(PHONG_SearchResult data, int? top)
 {
     try
     {
         using (var db = new OOAD_EDUManagementDataContext())
         {
             return db.PHONG_Search(data.maPhong,
                                   data.maXPhong,
                                   data.maHoiDongThi,
                                   data.tenPhong,
                                   data.sucChua,
                                   data.tinhTrang,
                                   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; }
 }
Пример #3
0
 public PHONG_EX()
 {
     ItemContent = new PHONG_SearchResult();
 }