當前位置: 首頁>>代碼示例>>TypeScript>>正文


TypeScript ng2-postgresql-procedures.PgService類代碼示例

本文整理匯總了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;未經允許,請勿轉載。