本文整理汇总了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; });
}
开发者ID:feloy,项目名称:var,代码行数:8,代码来源:table_details.ts
示例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; });
}
开发者ID:feloy,项目名称:var,代码行数:9,代码来源:enum_details.ts
示例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; });
}
开发者ID:feloy,项目名称:var,代码行数:11,代码来源:type_details.ts
示例4: ngOnInit
ngOnInit() {
if (this.param.prm_type == 'topic') {
this.pgService.pgcache('portal', 'topics_list')
.then(data => this.topics = data)
.catch(err => { });
}
}
开发者ID:feloy,项目名称:var,代码行数:7,代码来源:portal-config-element.ts
示例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 => { });
}
开发者ID:feloy,项目名称:var,代码行数:8,代码来源:portal-config-element.ts
示例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; });
}
开发者ID:feloy,项目名称:var,代码行数:17,代码来源:function_details.ts
示例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 => { });
}
开发者ID:feloy,项目名称:var,代码行数:8,代码来源:portal-config-element.ts
示例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')); });
}
开发者ID:feloy,项目名称:var,代码行数:9,代码来源:mainview.ts
示例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; });
});
开发者ID:feloy,项目名称:var,代码行数:9,代码来源:function_details.ts
示例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; });
}
}
开发者ID:feloy,项目名称:var,代码行数:10,代码来源:mainview.ts
注:本文中的ng2-postgresql-procedures/ng2-postgresql-procedures.PgService类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论