private void grdDetail_CustomDrawRowIndicator(object sender, DevExpress.XtraGrid.Views.Grid.RowIndicatorCustomDrawEventArgs e)
 {
     setRowNumber(sender, e);
 }
Exemple #2
0
 /// <summary>
 /// 绘制行号
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void gridView1_CustomDrawRowIndicator(object sender, DevExpress.XtraGrid.Views.Grid.RowIndicatorCustomDrawEventArgs e)
 {
 }
 /// <summary>
 /// 确定行号
 /// </summary>
 private void gridViewProjectTaskType_CustomDrawRowIndicator(object sender, DevExpress.XtraGrid.Views.Grid.RowIndicatorCustomDrawEventArgs e)
 {
     ControlHandler.GridView_CustomDrawRowIndicator(e);
 }
Exemple #4
0
 /// <summary>
 /// 确定行号
 /// </summary>
 private void repSearchCodeFileNameView_CustomDrawRowIndicator(object sender, DevExpress.XtraGrid.Views.Grid.RowIndicatorCustomDrawEventArgs e)
 {
     ControlHandler.GridView_CustomDrawRowIndicator(e);
 }
Exemple #5
0
 /// <summary>
 /// 确定行号 
 /// </summary>
 private void gridViewQuotationBaseInfo_CustomDrawRowIndicator(object sender, DevExpress.XtraGrid.Views.Grid.RowIndicatorCustomDrawEventArgs e)
 {
     ControlHandler.GridView_CustomDrawRowIndicator(e);
 }
Exemple #6
0
 private void grvQuaTrinhKhenThuong_CustomDrawRowIndicator(object sender, DevExpress.XtraGrid.Views.Grid.RowIndicatorCustomDrawEventArgs e)
 {
     ShowIndicator(e);
 }
 /// <summary>
 /// 确定行号
 /// </summary>
 private void searchLookUpMaterialView_CustomDrawRowIndicator(object sender, DevExpress.XtraGrid.Views.Grid.RowIndicatorCustomDrawEventArgs e)
 {
     ControlHandler.GridView_CustomDrawRowIndicator(e);
 }
Exemple #8
0
 private void gvStockProfit_CustomDrawRowIndicator(object sender, DevExpress.XtraGrid.Views.Grid.RowIndicatorCustomDrawEventArgs e)
 {
     gvStockProfit.DrawRowIndicator(e);
 }
Exemple #9
0
 private void gvPosition_CustomDrawRowIndicator(object sender, DevExpress.XtraGrid.Views.Grid.RowIndicatorCustomDrawEventArgs e)
 {
     gvPosition.DrawRowIndicator(e);
 }
Exemple #10
0
 private void bandedGridView_MeghdariVRiali_CustomDrawRowIndicator(object sender, DevExpress.XtraGrid.Views.Grid.RowIndicatorCustomDrawEventArgs e)
 {
     if (e.Info.IsRowIndicator && e.RowHandle >= 0)
     {
         e.Info.DisplayText = (e.RowHandle + 1).ToString();
     }
 }
Exemple #11
0
 /// <summary>
 /// 确定行号
 /// </summary>
 private void gridViewStnModuleListInfo_CustomDrawRowIndicator(object sender, DevExpress.XtraGrid.Views.Grid.RowIndicatorCustomDrawEventArgs e)
 {
     ControlHandler.GridView_CustomDrawRowIndicator(e);
 }
Exemple #12
0
 private void grvQuaTrinhBoNhiemChucVu_CustomDrawRowIndicator(object sender, DevExpress.XtraGrid.Views.Grid.RowIndicatorCustomDrawEventArgs e)
 {
     ShowIndicator(e);
 }
Exemple #13
0
        private void gridView1_CustomDrawRowIndicator(object sender, DevExpress.XtraGrid.Views.Grid.RowIndicatorCustomDrawEventArgs e)
        {
            bool m_isUpsideDown = true;

            if (e.RowHandle >= 0)
            {
                try
                {
                    switch (m_viewtype)
                    {
                    case InjectionType.Normal:

                        if (fuel_map_y_axis.Length > 0)
                        {
                            if (fuel_map_y_axis.Length > e.RowHandle)
                            {
                                string yvalue = fuel_map_y_axis.GetValue((fuel_map_y_axis.Length - 1) - e.RowHandle).ToString();
                                if (!m_isUpsideDown)
                                {
                                    // dan andere waarde nemen
                                    yvalue = fuel_map_y_axis.GetValue(e.RowHandle).ToString();
                                }

                                Rectangle r = new Rectangle(e.Bounds.X + 1, e.Bounds.Y + 1, e.Bounds.Width - 2, e.Bounds.Height - 2);
                                e.Graphics.DrawRectangle(Pens.LightSteelBlue, r);
                                System.Drawing.Drawing2D.LinearGradientBrush gb = new System.Drawing.Drawing2D.LinearGradientBrush(e.Bounds, e.Appearance.BackColor2, e.Appearance.BackColor2, System.Drawing.Drawing2D.LinearGradientMode.Horizontal);
                                e.Graphics.FillRectangle(gb, e.Bounds);
                                e.Graphics.DrawString(yvalue, this.Font, Brushes.MidnightBlue, new PointF(e.Bounds.X + 4, e.Bounds.Y + 1 + (e.Bounds.Height - 12) / 2));
                                e.Handled = true;
                            }
                        }
                        break;

                    case InjectionType.Knocking:

                        if (fuel_knock_map_y_axis.Length > 0)
                        {
                            if (fuel_knock_map_y_axis.Length > e.RowHandle)
                            {
                                string yvalue = fuel_knock_map_y_axis.GetValue((fuel_knock_map_y_axis.Length - 1) - e.RowHandle).ToString();
                                if (!m_isUpsideDown)
                                {
                                    // dan andere waarde nemen
                                    yvalue = fuel_knock_map_y_axis.GetValue(e.RowHandle).ToString();
                                }

                                Rectangle r = new Rectangle(e.Bounds.X + 1, e.Bounds.Y + 1, e.Bounds.Width - 2, e.Bounds.Height - 2);
                                e.Graphics.DrawRectangle(Pens.LightSteelBlue, r);
                                System.Drawing.Drawing2D.LinearGradientBrush gb = new System.Drawing.Drawing2D.LinearGradientBrush(e.Bounds, e.Appearance.BackColor2, e.Appearance.BackColor2, System.Drawing.Drawing2D.LinearGradientMode.Horizontal);
                                e.Graphics.FillRectangle(gb, e.Bounds);
                                e.Graphics.DrawString(yvalue, this.Font, Brushes.MidnightBlue, new PointF(e.Bounds.X + 4, e.Bounds.Y + 1 + (e.Bounds.Height - 12) / 2));
                                e.Handled = true;
                            }
                        }
                        break;

                    case InjectionType.Idle:

                        if (idle_fuel_y_axis.Length > 0)
                        {
                            if (idle_fuel_y_axis.Length > e.RowHandle)
                            {
                                string yvalue = idle_fuel_y_axis.GetValue((idle_fuel_y_axis.Length - 1) - e.RowHandle).ToString();
                                if (!m_isUpsideDown)
                                {
                                    // dan andere waarde nemen
                                    yvalue = idle_fuel_y_axis.GetValue(e.RowHandle).ToString();
                                }

                                Rectangle r = new Rectangle(e.Bounds.X + 1, e.Bounds.Y + 1, e.Bounds.Width - 2, e.Bounds.Height - 2);
                                e.Graphics.DrawRectangle(Pens.LightSteelBlue, r);
                                System.Drawing.Drawing2D.LinearGradientBrush gb = new System.Drawing.Drawing2D.LinearGradientBrush(e.Bounds, e.Appearance.BackColor2, e.Appearance.BackColor2, System.Drawing.Drawing2D.LinearGradientMode.Horizontal);
                                e.Graphics.FillRectangle(gb, e.Bounds);
                                e.Graphics.DrawString(yvalue, this.Font, Brushes.MidnightBlue, new PointF(e.Bounds.X + 4, e.Bounds.Y + 1 + (e.Bounds.Height - 12) / 2));
                                e.Handled = true;
                            }
                        }
                        break;
                    }
                }
                catch (Exception E)
                {
                    Console.WriteLine(E.Message);
                }
            }
        }
Exemple #14
0
 private void gridViewDiagnosisDestination_CustomDrawRowIndicator_1(object sender, DevExpress.XtraGrid.Views.Grid.RowIndicatorCustomDrawEventArgs e)
 {
     try
     {
         DS_Common.AutoIndex(e);
     }
     catch (Exception ex)
     {
         DrectSoft.Common.Ctrs.DLG.MyMessageBox.Show(1, ex);
     }
 }
 private void gridView1_BenhNhanKhamTrongNgay_CustomDrawRowIndicator(object sender, DevExpress.XtraGrid.Views.Grid.RowIndicatorCustomDrawEventArgs e)
 {
     function.CustomDrawRowIndicator(sender, e);
 }
Exemple #16
0
 private void grvQuaTrinhThamGiaTCCTXH_CustomDrawRowIndicator(object sender, DevExpress.XtraGrid.Views.Grid.RowIndicatorCustomDrawEventArgs e)
 {
     ShowIndicator(e);
 }
 /// <summary>
 /// 确定行号
 /// </summary>
 private void searchParentMenuNameView_CustomDrawRowIndicator(object sender, DevExpress.XtraGrid.Views.Grid.RowIndicatorCustomDrawEventArgs e)
 {
     ControlHandler.GridView_CustomDrawRowIndicator(e);
 }
 private void grvTrinhDoQuanLyHCNN_CustomDrawRowIndicator(object sender, DevExpress.XtraGrid.Views.Grid.RowIndicatorCustomDrawEventArgs e)
 {
     ShowIndicator(e);
 }
 private void grvXepLoaiChungChi_CustomDrawRowIndicator(object sender, DevExpress.XtraGrid.Views.Grid.RowIndicatorCustomDrawEventArgs e)
 {
     ShowIndicator(e);
 }
Exemple #20
0
 private void gridViewInpatientFail_CustomDrawRowIndicator(object sender, DevExpress.XtraGrid.Views.Grid.RowIndicatorCustomDrawEventArgs e)
 {
     DrectSoft.Common.DS_Common.AutoIndex(e);
 }
Exemple #21
0
 private void gridView_DanhSachBenhNhan_CustomDrawRowIndicator(object sender, DevExpress.XtraGrid.Views.Grid.RowIndicatorCustomDrawEventArgs e)
 {
     function.CustomDrawRowIndicator(sender, e);
 }
 private void gridViewOrderStatusHistory_CustomDrawRowIndicator(object sender, DevExpress.XtraGrid.Views.Grid.RowIndicatorCustomDrawEventArgs e)
 {
     if (e.RowHandle >= 0)
     {
         e.Info.DisplayText = (e.RowHandle + 1).ToString();
     }
 }
Exemple #23
0
 private void gvProcess_CustomDrawRowIndicator(object sender, DevExpress.XtraGrid.Views.Grid.RowIndicatorCustomDrawEventArgs e)
 {
     //if (e.Info.IsRowIndicator && e.RowHandle >= 0)
     //    e.Info.DisplayText = (e.RowHandle + 1).ToString();
 }
Exemple #24
0
 private void grvSinhVien_QuanHeGiaDinh_CustomDrawRowIndicator(object sender, DevExpress.XtraGrid.Views.Grid.RowIndicatorCustomDrawEventArgs e)
 {
     ShowIndicator(e);
 }
Exemple #25
0
 /// <summary>
 /// 确定行号
 /// </summary>
 private void gridViewSettlementHead_CustomDrawRowIndicator(object sender, DevExpress.XtraGrid.Views.Grid.RowIndicatorCustomDrawEventArgs e)
 {
     ControlHandler.GridView_CustomDrawRowIndicator(e);
 }
 private void bgvBangLuong_CustomDrawRowIndicator(object sender, DevExpress.XtraGrid.Views.Grid.RowIndicatorCustomDrawEventArgs e)
 {
     ShowIndicator(e);
 }
Exemple #27
0
 /// <summary>
 /// 确定行号
 /// </summary>
 private void gridViewRegisterSchedule_CustomDrawRowIndicator(object sender, DevExpress.XtraGrid.Views.Grid.RowIndicatorCustomDrawEventArgs e)
 {
     ControlHandler.GridView_CustomDrawRowIndicator(e);
 }
Exemple #28
0
 private void grvDanhSachSinhVien_CustomDrawRowIndicator(object sender, DevExpress.XtraGrid.Views.Grid.RowIndicatorCustomDrawEventArgs e)
 {
     ShowIndicator(e);
 }
Exemple #29
0
 private void grvMonHoc_CustomDrawRowIndicator(object sender, DevExpress.XtraGrid.Views.Grid.RowIndicatorCustomDrawEventArgs e)
 {
     ShowIndicator(e);
 }
Exemple #30
0
 private void gridViewSkip_CustomDrawRowIndicator(object sender, DevExpress.XtraGrid.Views.Grid.RowIndicatorCustomDrawEventArgs e)
 {
     (sender as DevExpress.XtraGrid.Views.Grid.GridView).DrawRowIndicator(e);
 }