新增文章
文章标题
分类
C#
云星空
K3 BOS
K3 功能
用友
Oracle
python
SQL
MySql
PHP
HTML
script
windows
Access
影视后期
财务
服务
生活
内容
#region| 添加:要显示的 新字段 | public override ReportHeader GetReportHeaders(IRptParams filter) { var aHeader = base.GetReportHeaders(filter); ListHeader aField = aGetHeader("F_OrgId", aHeader); if (aField != null){ aField.Caption = new LocaleValue("费用承担公司", this.Context.UserLocale.LCID); } // 修改字段名称 else{ aHeader.AddChild("F_OrgId", new LocaleValue("费用承担公司", this.Context.UserLocale.LCID) ); } // 添加字段 aField = aGetHeader("F_PurposeId", aHeader); if (aField != null) { aField.Caption = new LocaleValue("收付款用途", this.Context.UserLocale.LCID); } else { aHeader.AddChild("F_PurposeId", new LocaleValue("收付款用途", this.Context.UserLocale.LCID)); } aField = aGetHeader("F_CashFlow", aHeader); if (aField != null) { aField.Caption = new LocaleValue("现金流量", this.Context.UserLocale.LCID); } else { aHeader.AddChild("F_CashFlow", new LocaleValue("现金流量", this.Context.UserLocale.LCID)); } return aHeader; } #endregion #region| 取得:字段信息 aGetHeader | private ListHeader aGetHeader(string aKey, ReportHeader aHeader) { foreach (var aRow1 in aHeader.GetChilds()) { if (aRow1.GetChildCount() == 0) { if (aRow1.FieldName == aKey) { return aRow1; } } else { foreach (var aRow2 in aRow1.GetChilds()) { if (aRow2.FieldName == aKey) { return aRow1; } } } } return null; } #endregion
返回
保存