SVN r300
SVN-Revision: r300
This commit is contained in:
@@ -107,7 +107,7 @@ namespace Lskj.ProductiSched
|
|||||||
bandGcTop.SetEditColumns(DataModel.TopGridColumns, GridCustomColumnStruct.BaseMainGridView + DataModel.TopModuleModel.FormKey);
|
bandGcTop.SetEditColumns(DataModel.TopGridColumns, GridCustomColumnStruct.BaseMainGridView + DataModel.TopModuleModel.FormKey);
|
||||||
bandGcTop.SetGridRightMenus(BaseModuleImpl.GetBaseGridRightMenus(DataModel.TopModuleModel.FormKey), DataModel.TopSysModel);
|
bandGcTop.SetGridRightMenus(BaseModuleImpl.GetBaseGridRightMenus(DataModel.TopModuleModel.FormKey), DataModel.TopSysModel);
|
||||||
bandGcTop.SetGridRowColors(BaseModuleImpl.GetBaseGridRowColors(DataModel.TopModuleModel.FormKey));
|
bandGcTop.SetGridRowColors(BaseModuleImpl.GetBaseGridRowColors(DataModel.TopModuleModel.FormKey));
|
||||||
AddDataColumns(bandGcTop, true);
|
AddDataColumns(bandGcTop);
|
||||||
//下方表格
|
//下方表格
|
||||||
if (!string.IsNullOrEmpty(DataModel.BottomSysModel.ModuleCode))
|
if (!string.IsNullOrEmpty(DataModel.BottomSysModel.ModuleCode))
|
||||||
{
|
{
|
||||||
@@ -331,8 +331,12 @@ namespace Lskj.ProductiSched
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// 添加虚拟日期列
|
/// 添加虚拟日期列
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private void AddDataColumns(BandedGridControlEx bandedGridControlEx, bool canSum = false)
|
private void AddDataColumns(BandedGridControlEx bandedGridControlEx)
|
||||||
{
|
{
|
||||||
|
if (bandedGridControlEx == bandGcTop)
|
||||||
|
{
|
||||||
|
bandedGridControlEx.BandedView.OptionsView.ShowFooter = true;
|
||||||
|
}
|
||||||
foreach (GridBand gridBand in bandedGridControlEx.BandedView.Bands)
|
foreach (GridBand gridBand in bandedGridControlEx.BandedView.Bands)
|
||||||
{
|
{
|
||||||
gridBand.Fixed = FixedStyle.Left;
|
gridBand.Fixed = FixedStyle.Left;
|
||||||
@@ -348,7 +352,7 @@ namespace Lskj.ProductiSched
|
|||||||
gridBand.AppearanceHeader.Font = new Font("宋体", 9, FontStyle.Bold);
|
gridBand.AppearanceHeader.Font = new Font("宋体", 9, FontStyle.Bold);
|
||||||
gridBand.AppearanceHeader.Options.UseTextOptions = true;
|
gridBand.AppearanceHeader.Options.UseTextOptions = true;
|
||||||
gridBand.AppearanceHeader.TextOptions.HAlignment = HorzAlignment.Center;
|
gridBand.AppearanceHeader.TextOptions.HAlignment = HorzAlignment.Center;
|
||||||
bandedGridControlEx.BandedView.Bands.AddRange(new GridBand[] { gridBand });
|
bandedGridControlEx.BandedView.Bands.Add(gridBand);
|
||||||
BandedGridColumn gridColumn = new BandedGridColumn();
|
BandedGridColumn gridColumn = new BandedGridColumn();
|
||||||
gridColumn.AppearanceCell.Options.UseTextOptions = true;
|
gridColumn.AppearanceCell.Options.UseTextOptions = true;
|
||||||
gridColumn.AppearanceCell.TextOptions.HAlignment = HorzAlignment.Center;
|
gridColumn.AppearanceCell.TextOptions.HAlignment = HorzAlignment.Center;
|
||||||
@@ -359,17 +363,14 @@ namespace Lskj.ProductiSched
|
|||||||
gridColumn.DisplayFormat.FormatType = FormatType.Numeric;
|
gridColumn.DisplayFormat.FormatType = FormatType.Numeric;
|
||||||
gridColumn.DisplayFormat.FormatString = "{0:#,##0.####}";
|
gridColumn.DisplayFormat.FormatString = "{0:#,##0.####}";
|
||||||
gridColumn.Visible = false;
|
gridColumn.Visible = false;
|
||||||
gridBand.Columns.Add(gridColumn);
|
if (bandedGridControlEx == bandGcTop)
|
||||||
if (canSum)
|
|
||||||
{
|
{
|
||||||
gridColumn.Summary.AddRange(new GridSummaryItem[] { new GridColumnSummaryItem(SummaryItemType.Sum, gridColumn.FieldName, "{0:#,##0.####}") });
|
GridColumnSummaryItem gridColumnSummaryItem = gridColumn.Summary.Add();
|
||||||
bandGcTop.BandedView.GroupSummary.Add(new GridGroupSummaryItem(SummaryItemType.Sum, gridColumn.FieldName, gridColumn, "{0:#,##0.####}"));
|
gridColumnSummaryItem.FieldName = gridColumn.FieldName;
|
||||||
bandGcTop.BandedView.OptionsView.GroupFooterShowMode = DevExpress.XtraGrid.Views.Grid.GroupFooterShowMode.VisibleAlways;
|
gridColumnSummaryItem.DisplayFormat = "{0:#,##0.####}";
|
||||||
|
gridColumnSummaryItem.SummaryType = SummaryItemType.Sum;
|
||||||
}
|
}
|
||||||
}
|
gridBand.Columns.Add(gridColumn);
|
||||||
if (canSum)
|
|
||||||
{
|
|
||||||
bandedGridControlEx.BandedView.OptionsView.ShowFooter = true;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
Reference in New Issue
Block a user