コード例 #1
0
        public void Load()
        {
            try
            {
                CurrentItem = new QUAN_HUYEN_SearchResult();
                client = new QUAN_HUYENClient();
                clientTP = new TINH_TPClient();
                DataItemTinhTP = new ObservableExpandCollection<TINH_TP_SearchResult>();

                client.QUAN_HUYEN_UpdCompleted += _client_QUAN_HUYEN_UpdCompleted;
                client.QUAN_HUYEN_InsCompleted += client_QUAN_HUYEN_InsCompleted;
                client.QUAN_HUYEN_ApprCompleted += _client_QUAN_HUYEN_ApprCompleted;
                
                clientTP.TINH_TP_SearchCompleted+=clientTP_TINH_TP_SearchCompleted;

                clientTP.TINH_TP_SearchAsync(new TINH_TP_SearchResult()
                {
                    maTrangThaiDuyet = "A",
                    trangThaiDuLieu = "1"
                }, 0);
            }
            catch (Exception)
            {
                MessagePop.SetError(CommonResource.ServerConnectError); 
            }
        }
コード例 #2
0
        public override void Load()
        {
            _client = new HINH_THUC_TUYEN_SINHClient();
            _client.HINH_THUC_TUYEN_SINH_LstAsync();
            _client.HINH_THUC_TUYEN_SINH_LstCompleted += _client_HINH_THUC_TUYEN_SINH_LstCompleted;
            _client.HINH_THUC_TUYEN_SINH_UpdCompleted += _client_HINH_THUC_TUYEN_SINH_UpdCompleted;

            _dataItem = new ObservableExpandCollection();
        }
コード例 #3
0
        public override void Load()
        {
            _client = new NHAN_SUClient();
            _client.NHAN_SU_LstAsync();
            _client.NHAN_SU_LstCompleted += _client_NHAN_SU_LstCompleted;
            _client.NHAN_SU_UpdCompleted+=_client_NHAN_SU_UpdCompleted;

            _dataItem = new ObservableExpandCollection();
        }
コード例 #4
0
 public override void Load()
 {
     _client = new DOI_TUONG_UU_TIENClient();
     _client.DOI_TUONG_UU_TIEN_LstAsync();
     _client.DOI_TUONG_UU_TIEN_LstCompleted+=_client_DOI_TUONG_UU_TIEN_LstCompleted;
     _client.DOI_TUONG_UU_TIEN_UpdCompleted+=_client_DOI_TUONG_UU_TIEN_UpdCompleted;
     
     _dataItem = new ObservableExpandCollection();
 }
コード例 #5
0
        public override void Load()
        {
            _client = new HOI_DONG_THIClient();
            _client.HOI_DONG_THI_LstAsync();
            _client.HOI_DONG_THI_LstCompleted += _client_HOI_DONG_THI_LstCompleted;
            _client.HOI_DONG_THI_UpdCompleted += _client_HOI_DONG_THI_UpdCompleted;

            _dataItem = new ObservableExpandCollection();
        }
コード例 #6
0
        public override void Load()
        {
            _client = new NGUYEN_VONGClient();
            _client.NGUYEN_VONG_LstAsync();
            _client.NGUYEN_VONG_LstCompleted += _client_NGUYEN_VONG_LstCompleted;
            _client.NGUYEN_VONG_UpdCompleted += _client_NGUYEN_VONG_UpdCompleted;

            _dataItem = new ObservableExpandCollection();
        }
コード例 #7
0
ファイル: vm_Region.cs プロジェクト: CanhNguyenVan/ooad-dev
        public override void Load()
        {
            _client = new KHU_VUCClient();
            _client.KHU_VUC_SearchAsync(new KHU_VUC_SearchResult(), null);
            _client.KHU_VUC_SearchCompleted +=_client_KHU_VUC_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 KHU_VUC_SearchResult();
            DataItemTrangThaiDuyet = new ObservableExpandCollection<TRANG_THAI_DUYET_LstResult>();
        }
コード例 #8
0
        private void Load()
        {
            client = new QUAN_HUYENClient();

            dataItem = new ObservableExpandCollection();
            CurrentSearch = new QUAN_HUYEN_SearchResult();
            SelectedItem = new QUAN_HUYEN_EX();
            
            client.QUAN_HUYEN_SearchCompleted += client_QUAN_HUYEN_SearchCompleted;
            client.QUAN_HUYEN_DelCompleted += client_QUAN_HUYEN_DelCompleted;
            client.QUAN_HUYEN_LstCompleted += client_QUAN_HUYEN_LstCompleted;

            client.QUAN_HUYEN_LstAsync();
        }
コード例 #9
0
        public override void Load()
        {
            _client = new NGANHClient();
            _client.NGANH_LstAsync();
            _client.NGANH_LstCompleted+=_client_NGANH_LstCompleted;
            _client.NGANH_UpdCompleted+=_client_NGANH_UpdCompleted;
            
            _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();
            DataItemLoaiHinhDaoTao = new ObservableExpandCollection<LOAI_HINH_DAO_TAO_LstResult>();
        }
コード例 #10
0
 private   void _client_HOI_DONG_THI_SearchCompleted(object sender, HOI_DONG_THI_SearchCompletedEventArgs e)
    {
        try
        {
            if (e.Result != null)
            {
                _dataItem = new ObservableExpandCollection();
                foreach (var item in e.Result)
                    _dataItem.Add(new HOI_DONG_THI_EX() { ItemContent = item });
                _dataItem.Refesh();
                OnPropertyChanged("DataItem");
            }
        }
        catch (Exception ex)
        {
            MessagePop.SetError(ex.Message);
        }
    }
コード例 #11
0
        private void Load()
        {
            _dataItem = new ObservableExpandCollection();
            _currentSelectedItem = new THI_SINH_EX();
            CurrentSearch = new THI_SINH_SearchResult();
            CurrentSelectedItem = new THI_SINH_EX();
            DataItemThongTinTuyenSinh = new ObservableExpandCollection<THONG_TIN_TUYEN_SINH_LstNamTuyenSinhResult>();

            _client = new THI_SINHClient();
            _client.THI_SINH_SearchAsync(_currentSelectedItem.ItemContent, null);
            _client.THI_SINH_SearchCompleted+=_client_THI_SINH_SearchCompleted;
            _client.THI_SINH_DelCompleted+=_client_THI_SINH_DelCompleted;

            _clientThongTinTuyenSinh = new THONG_TIN_TUYEN_SINHClient();
            _clientThongTinTuyenSinh.THONG_TIN_TUYEN_SINH_LstNamTuyenSinhAsync();
            _clientThongTinTuyenSinh.THONG_TIN_TUYEN_SINH_LstNamTuyenSinhCompleted+=_clientThongTinTuyenSinh_THONG_TIN_TUYEN_SINH_LstNamTuyenSinhCompleted;

        }
コード例 #12
0
        public override void Load()
        {
            _client = new CHUYEN_NGANHClient();
            _client.CHUYEN_NGANH_SearchAsync(new CHUYEN_NGANH_SearchResult(), null);
            _client.CHUYEN_NGANH_SearchCompleted += _client_CHUYEN_NGANH_SearchCompleted;

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

            _clientNganh = new NGANHClient();
            _clientNganh.NGANH_LstAsync();
            _clientNganh.NGANH_LstCompleted += _clientNganh_NGANH_LstCompleted;

            _dataItem = new ObservableExpandCollection();
            SearchItem = new CHUYEN_NGANH_SearchResult();
            DataItemTrangThaiDuyet = new ObservableExpandCollection<TRANG_THAI_DUYET_LstResult>();
            DataItemNganh = new ObservableExpandCollection<NGANH_LstResult>();
        }
コード例 #13
0
ファイル: vm_Room.cs プロジェクト: CanhNguyenVan/ooad-dev
        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>();
        }
コード例 #14
0
        public override void Load()
        {
            _clientBienBanThi = new BIEN_BAN_CHAM_THIClient();
            _clientBienBanThi.BIEN_BAN_CHAM_THI_SearchCompleted+=_clientPhucKhao_BIEN_BAN_CHAM_THI_SearchCompleted;
            _clientBienBanThi.BIEN_BAN_CHAM_THI_DelCompleted+=_clientBienBanThi_BIEN_BAN_CHAM_THI_DelCompleted;

            _clientMon = new MONClient();
            _clientMon.MON_LstAsync();
            _clientMon.MON_LstCompleted+=_clientMon_MON_LstCompleted;

            _clientThongTinTuyenSinh = new THONG_TIN_TUYEN_SINHClient();
            _clientThongTinTuyenSinh.THONG_TIN_TUYEN_SINH_LstNamTuyenSinhAsync();
            _clientThongTinTuyenSinh.THONG_TIN_TUYEN_SINH_LstNamTuyenSinhCompleted+=_clientThongTinTuyenSinh_THONG_TIN_TUYEN_SINH_LstNamTuyenSinhCompleted;

            _dataItemPhucKhao = new ObservableExpandCollection();
            DataItemMon = new ObservableExpandCollection<MON_LstResult>();
            DataItemThongTinTuyenSinh = new ObservableExpandCollection<THONG_TIN_TUYEN_SINH_LstNamTuyenSinhResult>();
            CurrentSearch = new BIEN_BAN_CHAM_THI_SearchResult();
        }
コード例 #15
0
ファイル: vm_Faculty.cs プロジェクト: CanhNguyenVan/ooad-dev
        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>();
        }
コード例 #16
0
ファイル: vm_RoomEdit.cs プロジェクト: CanhNguyenVan/ooad-dev
        public override void Load()
        {
            _client = new PHONGClient();
            _client.PHONG_LstAsync();
            _client.PHONG_LstCompleted += _client_PHONG_LstCompleted;
            _client.PHONG_UpdCompleted += _client_PHONG_UpdCompleted;

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

            _dataItem = new ObservableExpandCollection();
            DataItemHoiDongThi = new ObservableExpandCollection<HOI_DONG_THI_LstResult>();
            MaHoiDongThi = string.Empty;
        }
コード例 #17
0
ファイル: vm_RoomList.cs プロジェクト: CanhNguyenVan/ooad-dev
 private void _clientKhoi_KHOI_LstCompleted(object sender, KHOI_LstCompletedEventArgs e)
 {
     try
     {
         if (e.Result.Count > 0)
         {
             DataItemKhoi = new ObservableExpandCollection<KHOI_LstResult>(e.Result);
             OnPropertyChanged("DataItemKhoi");
         }
     }
     catch (Exception ex)
     {
         MessagePop.SetError(ex.Message);
     }
 }
コード例 #18
0
 public void AddRow()
 {
     if (_dataItem == null)
         _dataItem = new ObservableExpandCollection();
     var newRow = new NGANH_EX();
     if(_dataItem.Count>0)
         newRow.ItemContent.maXNganh = Helper.GenerateCode((_dataItem[_dataItem.Count - 1] as NGANH_EX).ItemContent.maXNganh);
     newRow.ItemContent.maNguoiLap = CurrentSystemInfo.CurrentUser.userID;
     newRow.ItemContent.thoiGianLap = DateTime.Now;
     newRow.ItemContent.maTrangThaiDuyet = "U";
     newRow.ItemContent.trangThaiDuLieu = "1";
     _dataItem.Add(newRow);
     _dataItem.Refesh();
     OnPropertyChanged("DataItem");
 }
コード例 #19
0
 public void DeleteRow()
 {
     if (_dataItem == null)
         _dataItem = new ObservableExpandCollection();
     _dataItem = new ObservableExpandCollection(_dataItem.Where(o => !o.IsSelected));
     _dataItem.Refesh();
     OnPropertyChanged("DataItem");
     IsAllSelected = false;
 }
コード例 #20
0
ファイル: vm_PutBag.cs プロジェクト: CanhNguyenVan/ooad-dev
 private void _clientDotTuyenSinh_DOT_TUYEN_SINH_LstCompleted(object sender, DOT_TUYEN_SINH_LstCompletedEventArgs e)
 {
     try
     {
         if (e.Result.Count > 0)
         {
             DataItemDotTuyenSinh = new ObservableExpandCollection<DOT_TUYEN_SINH_LstResult>(e.Result);
             OnPropertyChanged("DataItemDotTuyenSinh");
         }
     }
     catch (Exception ex)
     {
         MessagePop.SetError(ex.Message);
     }
 }
コード例 #21
0
 private void _client_NGANH_LstCompleted(object sender, NGANH_LstCompletedEventArgs e)
 {
     if (e.Result != null)
     {
         _dataItem = new ObservableExpandCollection();
         foreach (var item in e.Result)
             _dataItem.Add(new NGANH_EX() { ItemContent = item });
         _dataItem.Refesh();
         OnPropertyChanged("DataItem");
     }
 }
コード例 #22
0
 public void AddRow()
 {
     if (_dataItemBienBanChamThi == null)
         _dataItemBienBanChamThi = new ObservableExpandCollection();
     var newRow = new BIEN_BAN_CHAM_THI_EX();
     newRow.ChangeTesterId += (s, e) =>
     {
         if (DataItemNhanSu.Count > 0)
         newRow.ItemContent.tenGiamKhao = DataItemNhanSu.Where(p => p.maNhanSu == newRow.MaGiamKhao).FirstOrDefault().hoVaTen;
     };
     if (_dataItemBienBanChamThi.Count > 0)
         newRow.ItemContent.maXBienBanChamThi = Helper.GenerateCode((_dataItemBienBanChamThi[_dataItemBienBanChamThi.Count - 1] as BIEN_BAN_CHAM_THI_EX).ItemContent.maXBienBanChamThi);
     newRow.ItemContent.maNguoiLap = CurrentSystemInfo.CurrentUser.userID;
     newRow.ItemContent.thoiGianLap = DateTime.Now;
     newRow.ItemContent.maTrangThaiDuyet = "U";
     newRow.ItemContent.trangThaiDuLieu = "1";
     newRow.ItemContent.maKetQuaThi = CurrentSelectedItemKetQuaThi.ItemContent.maKetQuaThi;
     _dataItemBienBanChamThi.Add(newRow);
     _dataItemBienBanChamThi.Refesh();
     OnPropertyChanged("DataItemBienBanChamThi");
 }
コード例 #23
0
        public override void Load()
        {
            _clientBienBanThi = new BIEN_BAN_CHAM_THIClient();
            _clientBienBanThi.BIEN_BAN_CHAM_THI_UpdCompleted += _clientBienBanThi_BIEN_BAN_CHAM_THI_UpdCompleted;
            _clientBienBanThi.BIEN_BAN_CHAM_THI_SearchCompleted += _clientBienBanThi_BIEN_BAN_CHAM_THI_SearchCompleted;

            _clientKetQuaThi = new KET_QUA_THIClient();
            _clientKetQuaThi.KET_QUA_THI_SearchCompleted += _clientBienBanThi_KET_QUA_THI_SearchCompleted;
            _clientKetQuaThi.KET_QUA_THI_UpdOnMaThiSinhCompleted += _clientBienBanThi_KET_QUA_THI_UpdOnMaThiSinhCompleted;

            _clientNhanSu = new NHAN_SUClient();
            _clientNhanSu.NHAN_SU_LstAsync();
            _clientNhanSu.NHAN_SU_LstCompleted += _clientNhanSu_NHAN_SU_LstCompleted;

            _clientThiSinh = new THI_SINHClient();
            _clientThiSinh.THI_SINH_LstExamAsync();
            _clientThiSinh.THI_SINH_LstExamCompleted += _clientThiSinh_THI_SINH_LstExamCompleted;

            CurrentItem = new THI_SINH_LstExamResult();
            CurrentSelectedItemKetQuaThi = new KET_QUA_THI_EX();
            DataItemNhanSu = new ObservableExpandCollection<NHAN_SU_LstResult>();
            DataItemThiSinh = new ObservableExpandCollection<THI_SINH_LstExamResult>();
            _dataItemBienBanChamThi = new ObservableExpandCollection();
            _dataItemKetQuaThi = new ObservableExpandCollection();

        }
コード例 #24
0
 private void _clientPhucKhao_BIEN_BAN_CHAM_THI_SearchCompleted(object sender, BIEN_BAN_CHAM_THI_SearchCompletedEventArgs e)
 {
     try
     {
         if (e.Result != null)
         {
             _dataItemPhucKhao = new ObservableExpandCollection();
             foreach (var item in e.Result)
                 _dataItemPhucKhao.Add(new BIEN_BAN_CHAM_THI_EX() { ItemContent = item });
             _dataItemPhucKhao.Refesh();
             OnPropertyChanged("DataItemPhucKhao");
             if (_dataItemPhucKhao.Count == 0)
                 ActionMenuService.SetAction(ActionCommand, null, null, ActionCommand, null, null, null);
             else
                 ActionMenuService.SetAction(ActionCommand, null, ActionCommand, ActionCommand, ActionCommand, ActionCommand, null);
         }
     }
     catch (Exception ex) { MessagePop.SetError(ex.Message); }
     finally
     {
         PopupService.Free();
     }
 }
コード例 #25
0
        public override void Load()
        {
            _client = new CHUYEN_NGANHClient();
            _client.CHUYEN_NGANH_LstAsync();
            _client.CHUYEN_NGANH_LstCompleted +=_client_CHUYEN_NGANH_LstCompleted;
            _client.CHUYEN_NGANH_UpdCompleted +=_client_CHUYEN_NGANH_UpdCompleted;

            _clientNganh = new NGANHClient();
            _clientNganh.NGANH_LstAsync();
            _clientNganh.NGANH_LstCompleted +=_clientNganh_NGANH_LstCompleted;

            _dataItem = new ObservableExpandCollection();
            DataItemNganh = new ObservableExpandCollection<NGANH_LstResult>();
            MaNganh = string.Empty;
        }
コード例 #26
0
 private void _clientTruong_TRUONG_LstCompleted(object sender, TRUONG_LstCompletedEventArgs e)
 {
     try
     {
         PopupService.Free();
         if (e.Result.Count> 0 )
         {
             DataItemTruong = new ObservableExpandCollection<TRUONG_LstResult>(e.Result);
             DataItemTruongThi = new ObservableExpandCollection<TRUONG_LstResult>(DataItemTruong.Where(p => p.laTruongTHPT == false).ToList());
             OnPropertyChanged("DataItemTruongThi");
         }
         else
             MessagePop.SetError(e.Error.Message);
     }
     catch { MessagePop.SetError(CommonResource.ServerConnectError); }
 }
コード例 #27
0
 private void _clientThongTinTuyenSinh_THONG_TIN_TUYEN_SINH_LstNamTuyenSinhCompleted(object sender, THONG_TIN_TUYEN_SINH_LstNamTuyenSinhCompletedEventArgs e)
 {
     try
     {
         PopupService.Free();
         if (e.Result.Count > 0)
         {
             DataItemThongTinTuyenSinh = new ObservableExpandCollection<THONG_TIN_TUYEN_SINH_LstNamTuyenSinhResult>(e.Result);
             OnPropertyChanged("DataItemThongTinTuyenSinh");
         }
         else
             MessagePop.SetError(e.Error.Message);
     }
     catch { MessagePop.SetError(CommonResource.ServerConnectError); }
 }
コード例 #28
0
 private void _clientDotTuyenSinh_DOT_TUYEN_SINH_SearchCompleted(object sender, DOT_TUYEN_SINH_SearchCompletedEventArgs e)
 {
     try
     {
         PopupService.Free();
         if (e.Result.Count > 0)
         {
             DataItemDotTuyenSinh = new ObservableExpandCollection<DOT_TUYEN_SINH_SearchResult>(e.Result);
             OnPropertyChanged("DataItemDotTuyenSinh");
         }
         else
             MessagePop.SetError(e.Error.Message);
     }
     catch { MessagePop.SetError(CommonResource.ServerConnectError); }
 }
コード例 #29
0
        public override void Load()
        {
            _clientThiSinh = new THI_SINHClient();
            _clientThiSinh.THI_SINH_UpdCompleted+=_clientThiSinh_THI_SINH_UpdCompleted;
            _clientThiSinh.THI_SINH_InsCompleted+=_clientThiSinh_THI_SINH_InsCompleted;

            base.Load();
            List<int> _dataItemNam = new List<int>();
            for (int i = DateTime.Now.Year; i > DateTime.Now.Year - 10; i--)
                _dataItemNam.Add(i);
            DataItemNam = new ObservableExpandCollection<int>(_dataItemNam);

            _clientThongTinTuyenSinh = new THONG_TIN_TUYEN_SINHClient();
            _clientThongTinTuyenSinh.THONG_TIN_TUYEN_SINH_LstNamTuyenSinhAsync();
            _clientThongTinTuyenSinh.THONG_TIN_TUYEN_SINH_LstNamTuyenSinhCompleted+=_clientThongTinTuyenSinh_THONG_TIN_TUYEN_SINH_LstNamTuyenSinhCompleted;
            DataItemThongTinTuyenSinh = new ObservableExpandCollection<THONG_TIN_TUYEN_SINH_LstNamTuyenSinhResult>();

            _clientDotTuyenSinh = new DOT_TUYEN_SINHClient();
           _clientDotTuyenSinh.DOT_TUYEN_SINH_SearchCompleted+=_clientDotTuyenSinh_DOT_TUYEN_SINH_SearchCompleted;
           DataItemDotTuyenSinh = new ObservableExpandCollection<DOT_TUYEN_SINH_SearchResult>();

            _clientKhuVucUuTien = new KHU_VUCClient();
            _clientKhuVucUuTien.KHU_VUC_LstAsync();
            _clientKhuVucUuTien.KHU_VUC_LstCompleted += _clientKhuVucUuTien_KHU_VUC_LstCompleted;
            DataItemKhuVucUuTien = new ObservableExpandCollection<KHU_VUC_LstResult>();

            _clientTinh = new TINH_TPClient();
            _clientTinh.TINH_TP_LstAsync();
            _clientTinh.TINH_TP_LstCompleted += _clientTinh_TINH_TP_LstCompleted;
            DataItemTinh = new ObservableExpandCollection<TINH_TP_LstResult>();

            _clientQuanHuyen = new QUAN_HUYENClient();
            _clientQuanHuyen.QUAN_HUYEN_LstAsync();
            _clientQuanHuyen.QUAN_HUYEN_LstCompleted += _clientQuanHuyen_QUAN_HUYEN_LstCompleted;
            DataItemQuanHuyen = new ObservableExpandCollection<QUAN_HUYEN_LstResult>();

            _clientTruong = new TRUONGClient();
            _clientTruong.TRUONG_LstAsync();
            _clientTruong.TRUONG_LstCompleted+=_clientTruong_TRUONG_LstCompleted;
            DataItemTruongLop10 = new ObservableExpandCollection<TRUONG_LstResult>();
            DataItemTruongLop11 = new ObservableExpandCollection<TRUONG_LstResult>();
            DataItemTruongLop12 = new ObservableExpandCollection<TRUONG_LstResult>();
            DataItemTruongThi = new ObservableExpandCollection<TRUONG_LstResult>();
            DataItemTruong = new ObservableExpandCollection<TRUONG_LstResult>();

            _clientDoiTuongUuTien = new DOI_TUONG_UU_TIENClient();
            _clientDoiTuongUuTien.DOI_TUONG_UU_TIEN_LstAsync();
            _clientDoiTuongUuTien.DOI_TUONG_UU_TIEN_LstCompleted+=_clientDoiTuongUuTien_DOI_TUONG_UU_TIEN_LstCompleted;
            DataItemDoiTuongUuTien = new ObservableExpandCollection<DOI_TUONG_UU_TIEN_LstResult>();

            _clientDanToc = new DAN_TOCClient();
            _clientDanToc.DAN_TOC_LstAsync();
            _clientDanToc.DAN_TOC_LstCompleted+=_clientDanToc_DAN_TOC_LstCompleted;
            DataItemDanToc = new ObservableExpandCollection<DAN_TOC_LstResult>();

            _clientGioiTinh = new GIOI_TINHClient();
            _clientGioiTinh.GIOI_TINH_LstAsync();
            _clientGioiTinh.GIOI_TINH_LstCompleted+=_clientGioiTinh_GIOI_TINH_LstCompleted;
            DataItemGioiTinh = new ObservableExpandCollection<GIOI_TINH_LstResult>();

            _clientKhoi = new KHOIClient();
            _clientKhoi.KHOI_LstAsync();
            _clientKhoi.KHOI_LstCompleted+=_clientKhoi_KHOI_LstCompleted;
            DataItemKhoi = new ObservableExpandCollection<KHOI_LstResult>();

            _clientNganh = new NGANHClient();
            _clientNganh.NGANH_LstAsync();
            _clientNganh.NGANH_LstCompleted+=_clientNganh_NGANH_LstCompleted;
            DataItemNganh = new ObservableExpandCollection<NGANH_LstResult>();

            _clientChuyenNganh = new CHUYEN_NGANHClient();
            _clientChuyenNganh.CHUYEN_NGANH_LstAsync();
            _clientChuyenNganh.CHUYEN_NGANH_LstCompleted+=_clientChuyenNganh_CHUYEN_NGANH_LstCompleted;
            DataItemChuyenNganh = new ObservableExpandCollection<CHUYEN_NGANH_LstResult>();

            _clientCumThi = new CUM_THIClient();
            _clientCumThi.CUM_THI_LstAsync();
            _clientCumThi.CUM_THI_LstCompleted+=_clientCumThi_CUM_THI_LstCompleted;
            DataItemCumThi = new ObservableExpandCollection<CUM_THI_LstResult>();

            _clientDonViDKDT = new DON_VI_DKDTClient();
            _clientDonViDKDT.DON_VI_DKDT_LstAsync();
            _clientDonViDKDT.DON_VI_DKDT_LstCompleted+=_clientDonViDKDT_DON_VI_DKDT_LstCompleted;
            DataItemDonviDKDT = new ObservableExpandCollection<DON_VI_DKDT_LstResult>();
        }
コード例 #30
0
ファイル: vm_RoomList.cs プロジェクト: CanhNguyenVan/ooad-dev
        public override void Load()
        {
            _clientHoiDongThi = new HOI_DONG_THIClient();
            _clientHoiDongThi.HOI_DONG_THI_SearchCompleted += _clientHoiDongThi_HOI_DONG_THI_SearchCompleted;

            _clientKhoi = new KHOIClient();
            _clientKhoi.KHOI_LstAsync();
            _clientKhoi.KHOI_LstCompleted += _clientKhoi_KHOI_LstCompleted;

            _clientMon = new MONClient();
            _clientMon.MON_LstAsync();
            _clientMon.MON_LstCompleted += _clientMon_MON_LstCompleted;

            _clientDotTuyenSinh = new DOT_TUYEN_SINHClient();
            _clientDotTuyenSinh.DOT_TUYEN_SINH_LstAsync();
            _clientDotTuyenSinh.DOT_TUYEN_SINH_LstCompleted += _clientDotTuyenSinh_DOT_TUYEN_SINH_LstCompleted;

            DataItemMon = new ObservableExpandCollection<MON_LstResult>();
            DataItemKhoi = new ObservableExpandCollection<KHOI_LstResult>();
            DataItemHoiDongThi = new ObservableExpandCollection<HOI_DONG_THI_SearchResult>();
        }