/// <summary> /// 显示VIN数据 /// </summary> private void GetLinkedVins() { try { ColumnView cv = (ColumnView)gcStatistic.FocusedView; CafcService.StatisticsData statData = (CafcService.StatisticsData)cv.GetFocusedRow(); if (statData != null) { VinDetailForm vinFrm = new VinDetailForm(statData); vinFrm.ShowDialog(); } } catch (Exception) { } }
//得到焦点处的油耗明细 private void rhlVin_Click(object sender, EventArgs e) { try { string startTime = this.dtStartTime.Text.Trim(); string endTime = this.dtEndTime.Text.Trim(); ColumnView cv = (ColumnView)gcDetail.FocusedView; CafcService.FuelCAFCDetails fuelDetail = (CafcService.FuelCAFCDetails)cv.GetFocusedRow(); if (fuelDetail != null) { using (VinDetailForm vinFrm = new VinDetailForm(startTime, endTime, fuelDetail)) { vinFrm.ShowDialog(); } } } catch (Exception ex) { MessageBox.Show(ex.Message, "异常", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
/// <summary> /// 显示VIN数据 /// </summary> private void GetLinkedVins() { try { string startTime = this.dtStartTime.Text.Trim(); string endTime = this.dtEndTime.Text.Trim(); ColumnView cv = (ColumnView)gcDetail.FocusedView; CafcService.FuelCAFCDetails fuelDetail = (CafcService.FuelCAFCDetails)cv.GetFocusedRow(); if (fuelDetail != null) { using (VinDetailForm vinFrm = new VinDetailForm(startTime, endTime, fuelDetail)) { vinFrm.ShowDialog(); } } } catch (Exception) { } }
private void gcDetail_MouseDoubleClick(object sender, MouseEventArgs e) { VinDetailForm vinForm = new VinDetailForm(); vinForm.ShowDialog(); }