提交当前本机整理版本
This commit is contained in:
@@ -567,4 +567,30 @@ namespace Lskj.Control
|
||||
/// <para>说明:行颜色</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期: </para>
|
||||
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="sender">The sender.</param>
|
||||
/// <param name="e">The <see cref="DevExpress.XtraGrid.Views.Grid.RowCellStyleEventArgs"/> instance containing the event data.</param>
|
||||
void GridView_RowStyle(object sender, DevExpress.XtraGrid.Views.Grid.RowStyleEventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
DataRow rowItem = this.gcMain.GridView.GetDataRow(e.RowHandle);
|
||||
|
||||
double total = Convert.ToDouble(rowItem[KcAmountField]);
|
||||
double fpAmount = Convert.ToDouble(rowItem[AmountField]);
|
||||
|
||||
if (fpAmount > 0)
|
||||
{
|
||||
e.Appearance.BackColor = total - fpAmount <= 0 ? Color.Green : Color.Red;
|
||||
}
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user