本文整理汇总了TypeScript中ng2-postgresql-procedures/ng2-postgresql-procedures.PgService.pgcall方法的典型用法代码示例。如果您正苦于以下问题:TypeScript PgService.pgcall方法的具体用法?TypeScript PgService.pgcall怎么用?TypeScript PgService.pgcall使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ng2-postgresql-procedures/ng2-postgresql-procedures.PgService
的用法示例。
在下文中一共展示了PgService.pgcall方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: reloadData
reloadData() {
this.pgService
.pgcall('pgdoc', 'table_description', { prm_schema: this.schema, prm_table: this.id })
.then((data: string) => { this.description = data.length > 0 ? data : null; });
this.pgService.pgcall('pgdoc', 'table_columns', { prm_schema: this.schema, prm_table: this.id })
.then(data => { this.columns = data; });
}
示例2: reloadData
reloadData() {
this.pgService.pgcall('pgdoc', 'enum_description', {prm_schema: this.schema, prm_enum: this.id})
.then((data: string) => {
this.description = data.length > 0 ? data : null;
});
this.pgService.pgcall('pgdoc', 'enum_values', {prm_schema: this.schema, prm_enum: this.id})
.then(data => { this.values = data; });
}
示例3: reloadData
reloadData() {
this.pgService.pgcall('pgdoc', 'type_description', {prm_schema: this.schema, prm_type: this.id})
.then((data: string) => { this.description = data.length > 0 ? data : null; });
this.pgService.pgcall('pgdoc', 'type_columns', {prm_schema: this.schema, prm_type: this.id})
.then(data => { this.columns = data; });
this.pgService
.pgcall('pgdoc', 'functions_returning_type', {prm_schema: this.schema, prm_type: this.id})
.then(data => { this.functionsReturningType = data; });
}
示例4: reloadData
reloadData() {
this.pgService
.pgcall('pgdoc', 'function_details', { prm_schema: this.schema, prm_function: this.id })
.then(data => {
this.details = data;
this.pgService
.pgcall(
'pgdoc', 'type_columns',
{ prm_schema: this.details.rettype_schema, prm_type: this.details.rettype_name })
.then(data2 => { this.retColumns = data2; });
});
this.pgService
.pgcall('pgdoc', 'function_arguments', { prm_schema: this.schema, prm_function: this.id })
.then(data => { this.args = data; });
}
示例5: loadTopicValue
loadTopicValue() {
this.pgService.pgcall('portal', 'param_value_get_topic', {
prm_por_id: this.myPorId,
prm_param: this.param.prm_val
})
.then((data: string) => this.topicValue = data)
.catch(err => { });
}
示例6: loadBoolValue
loadBoolValue() {
this.pgService.pgcall('portal', 'param_value_get_bool', {
prm_por_id: this.myPorId,
prm_param: this.param.prm_val
})
.then((data: boolean) => this.boolValue = data)
.catch(err => { });
}
示例7: loadPatientViews
loadPatientViews() {
this.pgService.pgcall('portal', 'personview_details_list', {
prm_entity: 'patient', prm_por_id: this.porId
})
.then((data: any) => {
this.patientViews = (new Groupby).transform(data, 'pse_name');
})
.catch(err => { this.alerts.danger(this.i18n.t('portal.alerts.error_loading_mainview')); });
}
示例8:
.then(data => {
this.details = data;
this.pgService
.pgcall(
'pgdoc', 'type_columns',
{ prm_schema: this.details.rettype_schema, prm_type: this.details.rettype_name })
.then(data2 => { this.retColumns = data2; });
});
示例9: loadAssociatedPersonview
loadAssociatedPersonview() {
if (this.mainview.pme_id_associated != 0) {
this.pgService
.pgcall(
'portal', 'personview_get',
{ prm_entity: 'patient', prm_pme_id: this.mainview.pme_id_associated })
.then(data => { this.personviewAssociated = data; })
.catch(err => { this.personviewAssociated = null; });
}
}
示例10: delete
delete() {
this.pgService.pgcall('portal', 'mainview_delete', { prm_mme_id: this.myMme })
.then(data => {
this.alerts.success(this.i18n.t('portal.alerts.mainview_deleted'));
this.mainview = null;
this.prepareEdition();
})
.catch(
err => { this.alerts.danger(this.i18n.t('portal.alerts.error_deleting_mainview')); });
}