コード例 #1
0
        /// <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)
            {
            }
        }
コード例 #2
0
 //得到焦点处的油耗明细
 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);
     }
 }
コード例 #3
0
ファイル: AvgFuelDetailForm.cs プロジェクト: sishui198/C-
        /// <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)
            {
            }
        }
コード例 #4
0
ファイル: AvgFuelDetailForm.cs プロジェクト: sishui198/C-
        private void gcDetail_MouseDoubleClick(object sender, MouseEventArgs e)
        {
            VinDetailForm vinForm = new VinDetailForm();

            vinForm.ShowDialog();
        }