Пример #1
0
        /// <summary>
        /// RowCellStyle
        /// </summary>
        /// <param name="e"></param>
        internal void RowCellStyle(DevExpress.XtraGrid.Views.Grid.GridView gv, DevExpress.XtraGrid.Views.Grid.RowCellStyleEventArgs e)
        {
            if (e.Column == gv.FocusedColumn && e.RowHandle == gv.FocusedRowHandle)
            {
                e.Appearance.BackColor  = Color.FromArgb(251, 165, 8);
                e.Appearance.BackColor2 = Color.White;
            }
            else
            {
            }

            int hand = e.RowHandle;

            if (hand < 0)
            {
                return;
            }
            EntityPatUpload vo = gv.GetRow(hand) as EntityPatUpload;

            if (vo.SZ == "已上传")
            {
                e.Appearance.ForeColor = Color.FromArgb(0, 0, 156);
            }

            gv.Invalidate();
        }
Пример #2
0
        /// <summary>
        /// RowCellStyle
        /// </summary>
        /// <param name="e"></param>
        internal void RowCellStyle(DevExpress.XtraGrid.Views.Grid.GridView gv, DevExpress.XtraGrid.Views.Grid.RowCellStyleEventArgs e)
        {
            if (e.Column == gv.FocusedColumn && e.RowHandle == gv.FocusedRowHandle)
            {
                e.Appearance.BackColor  = Color.FromArgb(251, 165, 8);
                e.Appearance.BackColor2 = Color.White;
            }
            else
            {
                e.Appearance.ForeColor = Color.FromArgb(0, 92, 156);
            }

            int hand = e.RowHandle;

            if (hand < 0)
            {
                return;
            }
            EntityZrbbgDisplay vo = gv.GetRow(hand) as EntityZrbbgDisplay;

            if (vo.printFlg == 1)
            {
                e.Appearance.ForeColor = Color.Red;
            }

            gv.Invalidate();
        }
Пример #3
0
 /// <summary>
 /// RowCellStyle
 /// </summary>
 /// <param name="e"></param>
 internal void RowCellStyle(DevExpress.XtraGrid.Views.Grid.GridView gv, DevExpress.XtraGrid.Views.Grid.RowCellStyleEventArgs e)
 {
     if (e.Column == gv.FocusedColumn && e.RowHandle == gv.FocusedRowHandle)
     {
         e.Appearance.BackColor  = Color.FromArgb(251, 165, 8);
         e.Appearance.BackColor2 = Color.White;
     }
     gv.Invalidate();
 }
Пример #4
0
        /// <summary>
        /// RowCellStyle
        /// </summary>
        /// <param name="e"></param>
        internal void RowCellStyle(DevExpress.XtraGrid.Views.Grid.GridView gv, DevExpress.XtraGrid.Views.Grid.RowCellStyleEventArgs e)
        {
            if (e.Column == gv.FocusedColumn && e.RowHandle == gv.FocusedRowHandle)
            {
                e.Appearance.BackColor  = Color.FromArgb(251, 165, 8);
                e.Appearance.BackColor2 = Color.White;
            }
            else
            {
                if (GetFieldValueStr(gv, e.RowHandle, EntityEventDisplay.Columns.reportType) == "跟踪报告")
                {
                    e.Appearance.ForeColor = Color.Crimson;
                }
                else if (Viewer.EventId == "19" || Viewer.EventId == "20" || Viewer.EventId == "21")
                {
                    e.Appearance.ForeColor = Color.FromArgb(0, 0, 0);
                }
                else
                {
                    e.Appearance.ForeColor = Color.FromArgb(0, 92, 156);
                }
            }

            int hand = e.RowHandle;

            if (hand < 0)
            {
                return;
            }
            EntityEventDisplay vo = gv.GetRow(hand) as EntityEventDisplay;

            //护理安全表单审核
            if (vo.HLQM != "" && (Viewer.EventId == "19" || Viewer.EventId == "20" || Viewer.EventId == "21"))
            {
                e.Appearance.ForeColor = Color.Green;
            }
            else if (vo.XZQM != "" && (Viewer.EventId == "19" || Viewer.EventId == "20" || Viewer.EventId == "21"))
            {
                e.Appearance.ForeColor = Color.Purple;
            }
            else if (vo.HCQM != "" && (Viewer.EventId == "19" || Viewer.EventId == "20" || Viewer.EventId == "21"))
            {
                e.Appearance.ForeColor = Color.FromArgb(0, 0, 156);
            }

            gv.Invalidate();
        }
Пример #5
0
 /// <summary>
 /// RowCellStyle
 /// </summary>
 /// <param name="e"></param>
 internal void RowCellStyle(DevExpress.XtraGrid.Views.Grid.GridView gv, DevExpress.XtraGrid.Views.Grid.RowCellStyleEventArgs e)
 {
     if (e.Column == gv.FocusedColumn && e.RowHandle == gv.FocusedRowHandle)
     {
         e.Appearance.BackColor  = Color.FromArgb(251, 165, 8);
         e.Appearance.BackColor2 = Color.White;
     }
     else
     {
         //if (GetFieldValueStr(gv, e.RowHandle, EntityEventDisplay.Columns.reportType) == "跟踪报告")
         //{
         //    e.Appearance.ForeColor = Color.Crimson;
         //}
         //else
         //{
         //    e.Appearance.ForeColor = Color.FromArgb(0, 92, 156);
         //}
     }
     gv.Invalidate();
 }