本文整理汇总了TypeScript中ng2-postgresql-procedures/ng2-postgresql-procedures.PgService类的典型用法代码示例。如果您正苦于以下问题:TypeScript PgService类的具体用法?TypeScript PgService怎么用?TypeScript PgService使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了PgService类的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: ngOnInit
ngOnInit() {
if (this.param.prm_type == 'topic') {
this.pgService.pgcache('portal', 'topics_list')
.then(data => this.topics = data)
.catch(err => { });
}
}
示例5: 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 => { });
}
示例6: 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; });
}
示例7: 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 => { });
}
示例8: 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')); });
}
示例9:
.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; });
});
示例10: 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; });
}
}