Ejemplo n.º 1
0
        public override void Load()
        {
            _client = new NGANHClient();
            _client.NGANH_SearchAsync(new NGANH_SearchResult(), null);
            _client.NGANH_SearchCompleted+=_client_NGANH_SearchCompleted;

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

            _clientLoaiHinhDaoTao = new LOAI_HINH_DAO_TAOClient();
            _clientLoaiHinhDaoTao.LOAI_HINH_DAO_TAO_LstAsync();
            _clientLoaiHinhDaoTao.LOAI_HINH_DAO_TAO_LstCompleted += _clientLoaiHinhDaoTao_LOAI_HINH_DAO_TAO_LstCompleted;

            _dataItem = new ObservableExpandCollection();
            SearchItem = new NGANH_SearchResult();
            DataItemTrangThaiDuyet = new ObservableExpandCollection<TRANG_THAI_DUYET_LstResult>();
            DataItemLoaiHinhDaoTao = new ObservableExpandCollection<LOAI_HINH_DAO_TAO_LstResult>();
        }
Ejemplo n.º 2
0
 public NGANH_EX()
 {
     ItemContent = new NGANH_SearchResult();
 }
Ejemplo n.º 3
0
 public IEnumerable<NGANH_SearchResult> NGANH_Search(NGANH_SearchResult data, int? top)
 {
     try
     {
         using (var db = new OOAD_EDUManagementDataContext())
         {
             return db.NGANH_Search(data.maNganh,
                                   data.maXNganh,
                                   data.maLoaiHinhDaoTao,
                                   data.tenNganh,
                                   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; }
 }