Exemplo n.º 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); 
            }
        }
Exemplo n.º 2
0
        public override void Load()
        {
            _client = new TINH_TPClient();
            _client.TINH_TP_SearchAsync(new TINH_TP_SearchResult(), null);
            _client.TINH_TP_SearchCompleted+=_client_TINH_TP_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 TINH_TP_SearchResult();
            DataItemTrangThaiDuyet = new ObservableExpandCollection<TRANG_THAI_DUYET_LstResult>();
        }