void gvSpecialSparepartDetail_FocusedRowChanged(object sender, DevExpress.XtraGrid.Views.Base.FocusedRowChangedEventArgs e) { _selectedSSpd = gvSpecialSparepartDetail.GetFocusedRow() as SpecialSparepartDetailViewModel; }
private void bgwMain_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e) { if (e.Result is Exception) { this.ShowError("Proses memuat data gagal!"); } if (gvSpecialSparepartDetail.RowCount > 0) { this._selectedSSpd = gvSpecialSparepartDetail.GetRow(0) as SpecialSparepartDetailViewModel; } FormHelpers.CurrentMainForm.UpdateStatusInformation("Memuat data ban detail selesai", true); }
public SpecialSparepartDetailViewModel GetWheelDetailById(int wheelDetailId) { SpecialSparepartDetail result = _specialSparepartDetailRepository.GetById(wheelDetailId); SpecialSparepartDetailViewModel mappedResult = new SpecialSparepartDetailViewModel(); return Map(result, mappedResult); }
public override void RefreshDataView() { if (!bgwMain.IsBusy) { this._selectedSSpd = null; MethodBase.GetCurrentMethod().Info("Fecthing specialSparepart detail data..."); FormHelpers.CurrentMainForm.UpdateStatusInformation("Memuat data ban detail...", false); bgwMain.RunWorkerAsync(); } }
public SpecialSparepartDetailViewModel SearchBySerialNumber(string serialNumber) { SpecialSparepartDetail result = _specialSparepartDetailRepository.GetMany(ssd => ssd.SerialNumber.ToLower() == serialNumber.ToLower() && ssd.Status != (int) DbConstant.WheelDetailStatus.Deleted).FirstOrDefault(); SpecialSparepartDetailViewModel mappedResult = new SpecialSparepartDetailViewModel(); return Map(result, mappedResult); }