SVN-Revision: r626
This commit is contained in:
tdx
2025-05-22 13:41:01 +00:00
parent 8ff9758901
commit 7acac9db1a
+2 -31
View File
@@ -5381,6 +5381,7 @@ namespace Lskj.PubBill
{ {
} }
} }
gcMain.RefreshHeaderColor();
this.gcMain.GridControl.DataSource = null; this.gcMain.GridControl.DataSource = null;
this.gcMain.GridControl.DataSource = dataTable; this.gcMain.GridControl.DataSource = dataTable;
} }
@@ -8248,34 +8249,4 @@ namespace Lskj.PubBill
/// </summary> /// </summary>
/// <param name="cond">The cond.</param> /// <param name="cond">The cond.</param>
/// <param name="dataRow">The data row.</param> /// <param name="dataRow">The data row.</param>
/// <returns><c>true</c> if XXXX, <c>false</c> otherwise.</returns> /// <returns><c>true</c> if X
private bool ValidateCond(string cond, DataRow dataRow)
{
bool result = false;
string condition = cond;
try
{
if (string.IsNullOrWhiteSpace(cond)) return true;//如果值是空格或者空行,默认正确
cond = ReplaceHelper.ReplaceRowParam(dataRow, cond);
if (cond.StartsWith("@") || cond.StartsWith("!"))
{
result = "1".Equals(BaseImpl.GetDefaultValue(cond));
}
else if (dataRow == null)
{
result = ReplaceHelper.EvalCond(cond);
}
else
{
result = ReplaceHelper.ReplaceRowParamCond(dataRow, cond);
}
return result;
}
catch (Exception ex)
{
}
return result;
}
}
}