private void _clientQuanHuyen_QUAN_HUYEN_LstCompleted(object sender, QUAN_HUYEN_LstCompletedEventArgs e)
 {
     try
     {
         DataItemQuanHuyen.Clear();
         foreach (var item in e.Result)
             DataItemQuanHuyen.Add(item);
         OnPropertyChanged("CurrentItem");
     }
     catch { MessagePop.SetError(CommonResource.ServerConnectError); }
 }
Пример #2
0
        private void client_QUAN_HUYEN_LstCompleted(object sender, QUAN_HUYEN_LstCompletedEventArgs e)
        {
            try
            {
                if (e.Result != null)
                {
                    dataItem.Clear();

                    foreach (var item in e.Result)
                        dataItem.Add(new QUAN_HUYEN_EX()
                        {
                            ItemContent = new QUAN_HUYEN_SearchResult()
                            {
                                maQuan_Huyen=item.maQuan_Huyen,
                                maTinh_TP=item.maTinh_TP,
                                maXQuan_Huyen=item.maXQuan_Huyen,
                                maXTinh_TP=item.maXTinh_TP,
                                tenQuan_Huyen=item.tenQuan_Huyen,
                                tenTinh_TP=item.tenTinh_TP,
                                
                                maNguoiDuyet = item.maNguoiDuyet,
                                maNguoiLap = item.maNguoiLap,
                                maTrangThaiDuyet = item.maTrangThaiDuyet,
                                thoiGianDuyet = item.thoiGianDuyet,
                                thoiGianLap = item.thoiGianLap,
                                trangThaiDuLieu = item.trangThaiDuLieu,
                                TENNGUOIDUYET = item.TENNGUOIDUYET,
                                TENNGUOILAP = item.TENNGUOILAP,
                                tenTrangThaiDuyet = item.tenTrangThaiDuyet
                            }
                        });
                    dataItem.Refesh();
                    OnPropertyChanged("DataItem");
                }
            }
            catch (Exception ex)
            {
                MessagePop.SetError(CommonResource.ServerConnectError + "\n" + ex.Message);
            }
        }