Exemplo n.º 1
0
 public void Load()
 {
     try
     {
         CurrentItem = new DON_VI_DKDT_SearchResult();
         client = new DON_VI_DKDTClient();
         client.DON_VI_DKDT_UpdCompleted += client_DON_VI_DKDT_UpdCompleted;
         client.DON_VI_DKDT_InsCompleted += client_DON_VI_DKDT_InsCompleted;
         client.DON_VI_DKDT_ApprCompleted += client_DON_VI_DKDT_ApprCompleted;
     }
     catch (Exception)
     {
         MessagePop.SetError(CommonResource.ServerConnectError); 
     }
 }
        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>();
        }