本文整理匯總了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; });
}
}