本文整理汇总了TypeScript中common/query/services/rs-query-service.rsQuery函数的典型用法代码示例。如果您正苦于以下问题:TypeScript rsQuery函数的具体用法?TypeScript rsQuery怎么用?TypeScript rsQuery使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了rsQuery函数的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: getFieldFunctions
getFieldFunctions(field, functionPurpose) {
if (!angular.isObject(field))
throw 'Field should be object';
let parameters: any = null;
const typeGroup = this.getCurrentTypeGroup(field);
if (functionPurpose === 'subtotal') {
// available functions for subtotals
parameters = {
'cmd': 'GetOptionsByPath',
'p': 'FunctionList',
'type': field.sqlType,
'typeGroup': typeGroup,
'includeBlank': 'true',
'includeGroupBy': 'false',
'forSubtotals': 'true',
'extraFunction': 'false',
'forDundasMap': 'false',
'onlyNumericResults': 'false',
'resultType': 'json'
};
} else if (functionPurpose === 'field') {
// available functions for column
parameters = {
'cmd': 'GetOptionsByPath',
'p': 'FunctionList',
'type': field.sqlType,
'typeGroup': typeGroup,
'includeBlank': 'true',
'includeGroupBy': 'true',
'forSubtotals': 'false',
'extraFunction': 'false',
'forDundasMap': 'false',
'onlyNumericResults': 'false',
'resultType': 'json'
};
} else if (functionPurpose === 'pivotField') {
parameters = {
'cmd': 'GetOptionsByPath',
'p': 'FunctionList',
'type': field.sqlType,
'typeGroup': typeGroup,
'includeBlank': 'true',
'includeGroupBy': 'true',
'forSubtotals': 'false',
'extraFunction': 'true',
'forDundasMap': 'false',
'onlyNumericResults': 'false',
'resultType': 'json'
};
}
return this.$izendaRsQueryService.rsQuery(parameters, {
dataType: 'json',
cache: true
}, {
handler: fieldParam => `Failed to get function list info for field ${fieldParam.sysname}`,
params: [field]
});
}
示例2: getVgStyles
getVgStyles() {
return this.$izendaRsQueryService.rsQuery({
'cmd': 'GetOptionsByPath',
'p': 'VgStyleList',
'resultType': 'json'
}, {
dataType: 'json',
cache: true
}, {
handler: () => 'Failed to get available visual group styles.',
params: []
});
}
示例3: getSubreports
getSubreports() {
return this.$izendaRsQueryService.rsQuery({
'cmd': 'GetOptionsByPath',
'p': 'SubreportsList',
'resultType': 'json'
}, {
dataType: 'json',
cache: true
}, {
handler: () => 'Failed to get subreports.',
params: []
});
}
示例4: getExpressionTypes
getExpressionTypes() {
return this.$izendaRsQueryService.rsQuery({
'cmd': 'GetOptionsByPath',
'p': 'ExpressionTypeList',
'resultType': 'json'
}, {
dataType: 'json',
cache: true
}, {
handler: () => 'Failed to get expression types.',
params: []
});
}
示例5: getDrillDownStyles
getDrillDownStyles() {
return this.$izendaRsQueryService.rsQuery({
'cmd': 'GetOptionsByPath',
'p': 'DrillDownStyleList',
'resultType': 'json'
}, {
dataType: 'json',
cache: true
}, {
handler: () => 'Failed to get drilldown styles.',
params: []
});
}
示例6: getPeriodList
getPeriodList() {
return this.$izendaRsQueryService.rsQuery({
'cmd': 'GetOptionsByPath',
'p': 'PeriodList',
'resultType': 'json'
}, {
dataType: 'json',
cache: true
}, {
handler: () => 'Failed to get period list.',
params: []
});
};
示例7: getExistentPopupValuesList
getExistentPopupValuesList(field, table) {
return this.$izendaRsQueryService.rsQuery({
'cmd': 'GetOptionsByPath',
'p': 'ExistentPopupValuesList',
'columnName': field.sysname,
'tbl0': table.sysname,
'ta0': '',
'resultType': 'json'
}, {
dataType: 'json',
cache: true
}, {
handler: () => 'Failed to get custom popups styles.',
params: []
});
};
示例8: getFieldFormats
getFieldFormats(field, dataTypeGroup?) {
if (!angular.isObject(field))
throw 'Field should be object';
const typeGroup = this.getCurrentTypeGroup(field, dataTypeGroup);
return this.$izendaRsQueryService.rsQuery({
'cmd': 'GetOptionsByPath',
'p': 'FormatList',
'typeGroup': typeGroup,
'resultType': 'json'
}, {
dataType: 'json',
cache: true
}, {
handler: fieldParam => `Failed to get format list info for field ${fieldParam.sysname}`,
params: [field]
});
}
示例9: getFieldOperatorList
getFieldOperatorList(field, tablesString, dataTypeGroup?) {
if (!angular.isObject(field))
throw 'Field should be object.';
const typeGroup = this.getCurrentTypeGroup(field, dataTypeGroup);
return this.$izendaRsQueryService.rsQuery({
'cmd': 'GetOptionsByPath',
'p': 'OperatorList',
'typeGroup': typeGroup,
'tables': tablesString,
'colFullName': field.sysname,
'resultType': 'json'
}, {
dataType: 'json',
cache: true
}, {
handler: fieldParam => `Failed to get operator list for field ${fieldParam.sysname}`,
params: [field]
});
}
示例10: getFilterFormats
getFilterFormats(filter) {
if (!angular.isObject(filter) || !angular.isObject(filter.field))
throw 'filter and filter.field should be objects.';
const typeGroup = this.getCurrentTypeGroup(filter.field);
return this.$izendaRsQueryService.rsQuery({
'cmd': 'GetOptionsByPath',
'p': 'FormatList',
'typeGroup': typeGroup,
'onlySimple': 'true',
'forceSimple': 'true',
'resultType': 'json'
}, {
dataType: 'json',
cache: true
}, {
handler: filterParam => `Failed to get format list info for filter ${filterParam.field.sysname}`,
params: [filter]
});
}