private void btnTruKho_Click(object sender, RoutedEventArgs e) { ChiTietClient = new ChiTietPhieuNhapKhoSVCClient(); ChiTietClient.ChiTietPhieuNhapKho_GetItemsCompleted += new EventHandler<ChiTietPhieuNhapKho_GetItemsCompletedEventArgs>(ChiTietClient_ChiTietPhieuNhapKho_GetItemsCompleted); ChiTietClient.ChiTietPhieuNhapKho_GetItemsAsync(PhieuNhapID); PhieuNhapKhoClient = new PhieuNhapKhoSVCClient(); PhieuNhapKhoClient.PhieuNhapKho_DeleteCompleted += new EventHandler<System.ComponentModel.AsyncCompletedEventArgs>(PhieuNhapKhoClient_PhieuNhapKho_DeleteCompleted); PhieuNhapKhoClient.PhieuNhapKho_DeleteAsync(PhieuNhapID, User.UserID, DateTime.Now.ToString("MM/dd/yyyy")); }
public void PhieuNhapKhoEdit_Load(int _PhieuNhapKhoID) { rdpNgayNhap.SelectedDate = DateTime.Now.Date; if (_PhieuNhapKhoID != 0) { LoadingPanel.IsBusy = true; btnThemPhieuNhap.Content = "Cập nhật phiếu nhập"; btnAddDichVu.IsEnabled = true; PhieuNhapKhoID = _PhieuNhapKhoID; PhieuNhapKhoClient = new PhieuNhapKhoSVCClient(); PhieuNhapKhoClient.PhieuNhapKho_GetItemCompleted += new EventHandler<PhieuNhapKho_GetItemCompletedEventArgs>(PhieuNhapKhoClient_PhieuNhapKho_GetItemCompleted); PhieuNhapKhoClient.PhieuNhapKho_GetItemAsync(PhieuNhapKhoID); ChiTietClient = new ChiTietPhieuNhapKhoSVCClient(); ChiTietClient.ChiTietPhieuNhapKho_GetItemsCompleted += new EventHandler<ChiTietPhieuNhapKho_GetItemsCompletedEventArgs>(ChiTietClient_ChiTietPhieuNhapKho_GetItemsCompleted); ChiTietClient.ChiTietPhieuNhapKho_GetItemsAsync(PhieuNhapKhoID); } }
void PhieuNhapKho_ChiTiet_Closed(object sender, EventArgs e) { frmPhieuNhapKho_ChiTiet PhieuNhapKho_ChiTiet = sender as frmPhieuNhapKho_ChiTiet; if (PhieuNhapKho_ChiTiet.DialogResult == true) { ChiTietClient = new ChiTietPhieuNhapKhoSVCClient(); ChiTietClient.ChiTietPhieuNhapKho_GetItemsCompleted += new EventHandler<ChiTietPhieuNhapKho_GetItemsCompletedEventArgs>(ChiTietClient_ChiTietPhieuNhapKho_GetItemsCompleted); ChiTietClient.ChiTietPhieuNhapKho_GetItemsAsync(PhieuNhapKhoID); } }