报表开发数据右对齐
金蝶云社区-135xxxx7462
135xxxx7462
0人赞赏了该文章 1511次浏览 未经作者许可,禁止转载编辑于2015年10月08日 23:53:43

目前数据问题暂不考虑,显示有问题。上面数据是左对齐,下面数据是右对齐的,这样看起来很不方便,怎样使之全部右对齐?

附部分代码和图

///


/// 报表列
///

///
///
public override ReportHeader GetReportHeaders(IRptParams filter)
{
int width = 70;
ReportHeader header = new ReportHeader();
header.AddChild("FNumber", new LocaleValue(Kingdee.BOS.Resource.ResManager.LoadKDString("车间编码", "", Kingdee.BOS.Resource.SubSystemType.BOS), this.Context.UserLocale.LCID)).Width = width;
header.AddChild("FDept", new LocaleValue(Kingdee.BOS.Resource.ResManager.LoadKDString("车间", "", Kingdee.BOS.Resource.SubSystemType.BOS), this.Context.UserLocale.LCID)).Width = 100;
header.AddChild("FInRepairQty", new LocaleValue(Kingdee.BOS.Resource.ResManager.LoadKDString("在修件数量", "", Kingdee.BOS.Resource.SubSystemType.BOS), this.Context.UserLocale.LCID)).Width = width;
header.AddChild("FInRepPeriodQty", new LocaleValue(Kingdee.BOS.Resource.ResManager.LoadKDString("维修周期内", "", Kingdee.BOS.Resource.SubSystemType.BOS), this.Context.UserLocale.LCID)).Width = width;
header.AddChild("FUnPayQty", new LocaleValue(Kingdee.BOS.Resource.ResManager.LoadKDString("未交付首件", "", Kingdee.BOS.Resource.SubSystemType.BOS), this.Context.UserLocale.LCID)).Width = width;
header.AddChild("FUnPayDemQty", new LocaleValue(Kingdee.BOS.Resource.ResManager.LoadKDString("未交付索赔", "", Kingdee.BOS.Resource.SubSystemType.BOS), this.Context.UserLocale.LCID)).Width = width;
header.AddChild("FStayAirMatQty", new LocaleValue(Kingdee.BOS.Resource.ResManager.LoadKDString("待航材", "", Kingdee.BOS.Resource.SubSystemType.BOS), this.Context.UserLocale.LCID)).Width = width;
header.AddChild("FStayToolQty", new LocaleValue(Kingdee.BOS.Resource.ResManager.LoadKDString("待工装", "", Kingdee.BOS.Resource.SubSystemType.BOS), this.Context.UserLocale.LCID)).Width = width;
header.AddChild("FStayWithInQty", new LocaleValue(Kingdee.BOS.Resource.ResManager.LoadKDString("待内委", "", Kingdee.BOS.Resource.SubSystemType.BOS), this.Context.UserLocale.LCID)).Width = width;
header.AddChild("FStayOutQty", new LocaleValue(Kingdee.BOS.Resource.ResManager.LoadKDString("待外委", "", Kingdee.BOS.Resource.SubSystemType.BOS), this.Context.UserLocale.LCID)).Width = width;
header.AddChild("FStayRepairQty", new LocaleValue(Kingdee.BOS.Resource.ResManager.LoadKDString("待修理", "", Kingdee.BOS.Resource.SubSystemType.BOS), this.Context.UserLocale.LCID)).Width = width;
header.AddChild("FStayDataQty", new LocaleValue(Kingdee.BOS.Resource.ResManager.LoadKDString("待资料", "", Kingdee.BOS.Resource.SubSystemType.BOS), this.Context.UserLocale.LCID)).Width = width;
header.AddChild("FStayRRLQty", new LocaleValue(Kingdee.BOS.Resource.ResManager.LoadKDString("待RRL", "", Kingdee.BOS.Resource.SubSystemType.BOS), this.Context.UserLocale.LCID)).Width = width;
header.AddChild("FStayAbaleQty", new LocaleValue(Kingdee.BOS.Resource.ResManager.LoadKDString("待维修能力", "", Kingdee.BOS.Resource.SubSystemType.BOS), this.Context.UserLocale.LCID)).Width = width;
header.AddChild("FStayConfirmQty", new LocaleValue(Kingdee.BOS.Resource.ResManager.LoadKDString("待客户确认", "", Kingdee.BOS.Resource.SubSystemType.BOS), this.Context.UserLocale.LCID)).Width = width;
header.AddChild("FStayChemicalQty", new LocaleValue(Kingdee.BOS.Resource.ResManager.LoadKDString("待化工品", "", Kingdee.BOS.Resource.SubSystemType.BOS), this.Context.UserLocale.LCID)).Width = width;
header.AddChild("FStayCustomerQty", new LocaleValue(Kingdee.BOS.Resource.ResManager.LoadKDString("待客户供器材", "", Kingdee.BOS.Resource.SubSystemType.BOS), this.Context.UserLocale.LCID)).Width = width;
header.AddChild("FOtherQty", new LocaleValue(Kingdee.BOS.Resource.ResManager.LoadKDString("其他", "", Kingdee.BOS.Resource.SubSystemType.BOS), this.Context.UserLocale.LCID)).Width = width;
header.AddChild("FOverdue1Qty", new LocaleValue(Kingdee.BOS.Resource.ResManager.LoadKDString("周期(0-3个月)", "", Kingdee.BOS.Resource.SubSystemType.BOS), this.Context.UserLocale.LCID)).Width = width;
header.AddChild("FOverdue2Qty", new LocaleValue(Kingdee.BOS.Resource.ResManager.LoadKDString("周期(3-6个月)", "", Kingdee.BOS.Resource.SubSystemType.BOS), this.Context.UserLocale.LCID)).Width = width;
header.AddChild("FOverdue3Qty", new LocaleValue(Kingdee.BOS.Resource.ResManager.LoadKDString("周期(6个月以上)", "", Kingdee.BOS.Resource.SubSystemType.BOS), this.Context.UserLocale.LCID)).Width = width;
header.AddChild("FPayPlanQty", new LocaleValue(Kingdee.BOS.Resource.ResManager.LoadKDString("计划交付(7天内)", "", Kingdee.BOS.Resource.SubSystemType.BOS), this.Context.UserLocale.LCID)).Width = width;

return header;
}