Пример #1
0
 public VinDetailForm(string startTime, string endTime, CafcService.FuelCAFCDetails fuelDetail)
     : this()
 {
     // 统计开始时间和结束时间,用于反查VIN时确定时间范围
     this.startTime  = startTime;
     this.endTime    = endTime;
     this.FuelDetail = fuelDetail;
 }
Пример #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
        /// <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)
            {
            }
        }