SVN r620
SVN-Revision: r620
This commit is contained in:
@@ -61,6 +61,11 @@ namespace Lskj.Control
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public partial class GridControlEx : UserControl
|
public partial class GridControlEx : UserControl
|
||||||
{
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// <para>说明:缓存计划行</para>
|
||||||
|
/// <para>时间:2024-5-22</para>
|
||||||
|
/// </summary>
|
||||||
|
public DataRow jhrowitem = null;
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// <para>说明:第一列获取合计</para>
|
/// <para>说明:第一列获取合计</para>
|
||||||
/// <para>时间:2022-5-7</para>
|
/// <para>时间:2022-5-7</para>
|
||||||
@@ -5807,11 +5812,19 @@ namespace Lskj.Control
|
|||||||
|
|
||||||
this.lblTotal.Text = string.Format(ResourceKeys.GridTotalDisplayText, count, Math.Round(sum, 2), Math.Round(avg, 2), Math.Round(max, 2), Math.Round(min, 2));
|
this.lblTotal.Text = string.Format(ResourceKeys.GridTotalDisplayText, count, Math.Round(sum, 2), Math.Round(avg, 2), Math.Round(max, 2), Math.Round(min, 2));
|
||||||
if (!string.IsNullOrWhiteSpace(dataFormat))
|
if (!string.IsNullOrWhiteSpace(dataFormat))
|
||||||
|
{
|
||||||
|
if (dataFormat.StartsWith("{0:"))
|
||||||
|
{
|
||||||
|
this.lblTotal.Text = string.Format(ResourceKeys.GridTotalDisplayText, count, string.Format(dataFormat, Convert.ToDecimal(sum)), string.Format(dataFormat, Convert.ToDecimal(avg)), string.Format(dataFormat, Convert.ToDecimal(max)), string.Format(dataFormat, Convert.ToDecimal(min)));
|
||||||
|
}
|
||||||
|
else
|
||||||
{
|
{
|
||||||
this.lblTotal.Text = string.Format(ResourceKeys.GridTotalDisplayText, count, string.Format("{0:" + dataFormat + "}", Convert.ToDecimal(sum)), string.Format("{0:" + dataFormat + "}", Convert.ToDecimal(avg)), string.Format("{0:" + dataFormat + "}", Convert.ToDecimal(max)), string.Format("{0:" + dataFormat + "}", Convert.ToDecimal(min)));
|
this.lblTotal.Text = string.Format(ResourceKeys.GridTotalDisplayText, count, string.Format("{0:" + dataFormat + "}", Convert.ToDecimal(sum)), string.Format("{0:" + dataFormat + "}", Convert.ToDecimal(avg)), string.Format("{0:" + dataFormat + "}", Convert.ToDecimal(max)), string.Format("{0:" + dataFormat + "}", Convert.ToDecimal(min)));
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
@@ -8327,7 +8340,11 @@ namespace Lskj.Control
|
|||||||
|
|
||||||
if (gridColumn.Summary.ActiveCount > 0)
|
if (gridColumn.Summary.ActiveCount > 0)
|
||||||
{
|
{
|
||||||
if (gridColumn.Summary.ActiveCount == 1 && dataRow == null) continue;
|
if (gridColumn.Summary.ActiveCount == 1 && dataRow == null)
|
||||||
|
{
|
||||||
|
jhrowitem = null;
|
||||||
|
continue;
|
||||||
|
}
|
||||||
GridColumnSummaryItem sumItem = new GridColumnSummaryItem();
|
GridColumnSummaryItem sumItem = new GridColumnSummaryItem();
|
||||||
if (gridColumn.Summary.ActiveCount == 1)
|
if (gridColumn.Summary.ActiveCount == 1)
|
||||||
{
|
{
|
||||||
@@ -8342,4 +8359,4 @@ namespace Lskj.Control
|
|||||||
//新建汇总
|
//新建汇总
|
||||||
if (dataRow != null)
|
if (dataRow != null)
|
||||||
{
|
{
|
||||||
|
GridColum
|
||||||
Reference in New Issue
Block a user