Commit 8d883515 authored by neo's avatar neo

[Bugfix] set report datasource name

parent d55bdc11
......@@ -77,13 +77,14 @@ public class PSUM extends FunctionBase implements FreeRefFunction {
ReportCellDataSourceDto dto = new ReportCellDataSourceDto();
dto.fixedWithGroup(cellTemplateData);
dto.setAmount(cellValue);
dto.setName(DataSourceName.ReportDataSource);
dto.setPeriod(formulaContext.getPeriod());
dto.setProjectId(formulaContext.getProjectId());
dto.setRowIndex(pCell.rowIndex-1);
dto.setColumnIndex(pCell.columnIndex-1);
dto.setColumnName((pCell.columnIndex-1)+"列");
dto.setRowName((pCell.rowIndex-1)+"行");
dto.setReportName(DataSourceName.ReportDataSource);
dto.setReportName(ec.getWorkbook().getSheetName(ec.getSheetIndex()));
dto.setType( FormulaDataSourceType.Report.getCode());
dataSource.add(dto);
......
......@@ -48,6 +48,7 @@ commonModule
var formula = _.findWhere(formulaList, { code: formulaName });
if (formula) {
rtn = formula.name + '(';
if(formulaName=='PSUM') return rtn +formulaParams;
var paramInfo = getParamsFromStr(formulaParams); // 括号内输入的参数
var knownParams = angular.copy(formula.params || []); // 公式已知的参数(数据库中与该公式关联的参数)
knownParams.forEach(function (p) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment