Esempio n. 1
0
        //reload data from database
        private void Reload()
        {
            try
            {
                this.loThuocClient   = new ZOO_LoThuocClient();
                this.DANHSACHLOTHUOC = new ObservableCollection <ZOO_LOTHUOC>();
                ketQuaTimKiem        = new ObservableCollection <ZOO_LOTHUOC_SearchResult>();

                this.loThuocClient.TimLoThuocCompleted += new EventHandler <TimLoThuocCompletedEventArgs>(searchCompleted);
                //this.phieuNhapThuocClient.DeleteTLSYSROLECompleted += new EventHandler<DeleteTLSYSROLECompletedEventArgs>(deleteCurrencyCompleted);
            }
            catch (Exception)
            {
                this.messagePop.SetSingleError(CommonResource.errorCannotConnectServer);
            }
        }
Esempio n. 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);
            }
        }
Esempio n. 4
0
        //reload data from database
        private void Reload()
        {
            try
            {
                this.loThuocClient = new ZOO_LoThuocClient();
                this.DANHSACHLOTHUOC = new ObservableCollection<ZOO_LOTHUOC>();
                ketQuaTimKiem = new ObservableCollection<ZOO_LOTHUOC_SearchResult>();

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