示例#1
0
        //reload data from database
        private void Reload()
        {
            try
            {
                this.phieuNhapThuocClient = new ZOO_PhieuNhapThuocClient();
                this.DANHSACHPHIEUNHAP    = new ObservableCollection <ZOO_PHIEUNHAPTHUOC>();
                ketQuaTimKiem             = new ObservableCollection <ZOO_PHIEUNHAPTHUOC_SearchResult>();

                this.phieuNhapThuocClient.TimPhieuNhapCompleted += new EventHandler <TimPhieuNhapCompletedEventArgs>(searchCompleted);
                //this.phieuNhapThuocClient.DeleteTLSYSROLECompleted += new EventHandler<DeleteTLSYSROLECompletedEventArgs>(deleteCurrencyCompleted);
            }
            catch (Exception)
            {
                this.messagePop.SetSingleError(CommonResource.errorCannotConnectServer);
            }
        }
示例#2
0
        private void Load()
        {
            try
            {
                this.phieuNhapClient = new ZOO_PhieuNhapThuocClient();
                this.loThuocClient   = new ZOO_LoThuocClient();

                this.phieuNhapClient.DanhSachThuocAsync();
                this.phieuNhapClient.DanhSachThuocCompleted += (s, e) =>
                {
                    this.thuocCombobox = e.Result;
                    this.OnPropertyChanged("ThuocCombobox");
                };

                this.loThuocClient.ThemLoThuocMoiCompleted  += new EventHandler <ThemLoThuocMoiCompletedEventArgs>(insertCurrencyCompleted);
                this.loThuocClient.ChinhSuaLoThuocCompleted += new EventHandler <ChinhSuaLoThuocCompletedEventArgs>(updateCurrencyCompleted);
                //this.menuClient.ApproveCMAGENTCompleted += new EventHandler<ApproveCMAGENTCompletedEventArgs>(approveComplete);
            }
            catch (Exception)
            {
                this.messagePop.SetSingleError(CommonResource.errorCannotConnectServer);
            }
        }
        private void Load()
        {
            try
            {
                this.phieuNhapClient = new ZOO_PhieuNhapThuocClient();
                this.loThuocClient = new ZOO_LoThuocClient();

                this.phieuNhapClient.DanhSachThuocAsync();
                this.phieuNhapClient.DanhSachThuocCompleted += (s, e) =>
                {
                    this.thuocCombobox = e.Result;
                    this.OnPropertyChanged("ThuocCombobox");
                };

                this.loThuocClient.ThemLoThuocMoiCompleted += new EventHandler<ThemLoThuocMoiCompletedEventArgs>(insertCurrencyCompleted);
                this.loThuocClient.ChinhSuaLoThuocCompleted += new EventHandler<ChinhSuaLoThuocCompletedEventArgs>(updateCurrencyCompleted);
                //this.menuClient.ApproveCMAGENTCompleted += new EventHandler<ApproveCMAGENTCompletedEventArgs>(approveComplete);
                                
            }
            catch (Exception)
            {
                this.messagePop.SetSingleError(CommonResource.errorCannotConnectServer);
            }
        }
        //reload data from database
        private void Reload()
        {
            try
            {
                this.phieuNhapThuocClient = new ZOO_PhieuNhapThuocClient();
                this.DANHSACHPHIEUNHAP = new ObservableCollection<ZOO_PHIEUNHAPTHUOC>();
                ketQuaTimKiem = new ObservableCollection<ZOO_PHIEUNHAPTHUOC_SearchResult>();

                this.phieuNhapThuocClient.TimPhieuNhapCompleted += new EventHandler<TimPhieuNhapCompletedEventArgs>(searchCompleted);
                //this.phieuNhapThuocClient.DeleteTLSYSROLECompleted += new EventHandler<DeleteTLSYSROLECompletedEventArgs>(deleteCurrencyCompleted);
            }
            catch (Exception)
            {
                this.messagePop.SetSingleError(CommonResource.errorCannotConnectServer);
            }
        }