public SalesReturnViewModel GetSalesReturn(int invoiceID) { SalesReturn salesReturn = _salesReturnRepository.GetMany(x => x.InvoiceId == invoiceID && x.Status == (int)DbConstant.DefaultDataStatus.Active).FirstOrDefault(); SalesReturnViewModel viewModel = new SalesReturnViewModel(); return(Map(salesReturn, viewModel)); }
public override void RefreshDataView() { if (!bgwMain.IsBusy) { MethodBase.GetCurrentMethod().Info("Fecthing SalesReturn data..."); _selectedSalesReturn = null; FormHelpers.CurrentMainForm.UpdateStatusInformation("Memuat data penjualan...", false); bgwMain.RunWorkerAsync(); } }
private void bgwMain_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e) { if (e.Result is Exception) { this.ShowError("Proses memuat data gagal!"); } if (gvInvoice.RowCount > 0) { SelectedSalesReturn = gvInvoice.GetRow(0) as SalesReturnViewModel; if (this.SelectedSalesReturn != null) { _presenter.GetReturnList(); } } FormHelpers.CurrentMainForm.UpdateStatusInformation("Memuat data pembelian selesai", true); }
public SalesReturnAdd() { InitializeComponent(); _SalesReturnModel = new SalesReturnViewModel(); this.DataContext = _SalesReturnModel; BussLocation.Text = ""; BussReff = BussLocation; invoice.Text = ""; InvoiceReff = invoice; dataGrid1.ItemsSource = ListGrid; ListGridRef = dataGrid1; GodownSalesReturn.Text = ""; GodownReff = GodownSalesReturn; tot.Text = ""; TotalReff = tot; grandtot.Text = ""; GrandReff = grandtot; cus.Text = ""; CusReff = cus; qty.Text = ""; QtyReff = qty; totitem.Text = ""; TotitemReff = totitem; slno.Text = ""; SlNo = slno; }
public SalesReturnView() { InitializeComponent(); _SalesReturnModel = new SalesReturnViewModel(); this.DataContext = _SalesReturnModel; }