408 Typescript Classes for the First View of ABP framework - chempkovsky/CS82ANGULAR GitHub Wiki

Note

  • Repeat all the steps of the article

  • UI List properties is as follows:

Click to show the picture

project structure

  • UI Form properties is as follows:
Click to show the picture

project structure

Instead of

  • 01400-WebApiService.json
  • 01420-SForm.json
  • 01420-SForm.module.service.json
  • 01500-Vform.json
  • 01550-Vform.module.service.json
  • 01502-Aform.json
  • 01552-Aform.module.service.json
  • 01504-Uform.json
  • 01554-Uform.module.service.json
  • 01506-Dform.json
  • 01556-Dform.module.service.json
  • 01600-Lform.json
  • 01600-Lform.module.service.json

You should use

  • 01400-AbpWebApiService.json
  • 01420-SForm.abp.json
  • 01420-SForm.module.service.bootstrap.json (bootstrap!!!)
  • 01500-Vform.abp.json
  • 01550-Vform.module.service.bootstrap.json (bootstrap!!!)
  • 01502-Aform.abp.json
  • 01552-Aform.module.service.bootstrap.json (bootstrap!!!)
  • 01504-Uform.abp.json
  • 01554-Uform.module.service.bootstrap.json (bootstrap!!!)
  • 01506-Dform.abp.json
  • 01556-Dform.module.service.bootstrap.json (bootstrap!!!)
  • 01600-Lform.abp.json do not generate this component!!!
  • 01600-Lform.module.service.abp.json do not generate this component!!!

Localization

Localization SForm

  • After 01420-SForm.abp.json-batch, close batch dialog and
    • select 01421-SForm.abp.json and click next
    • select SearchFormForView.abp.json.t4 and click next
    • Do not save the generated content, but copy the content in the clipboard
//
// Do not save this file. But copy the content and paste into abp translation file.eng
//
    "firstapp::PhbkPhoneTypeDto:PluralTitle": "Phone Types",
    "firstapp::PhbkPhoneTypeDto:Id": "Phone Type Id",
    "firstapp::PhbkPhoneTypeDto:PhoneTypeName": "Phone Type Name",
    "firstapp::PhbkPhoneTypeDto:PhoneTypeDesc": "Phone Type Description",
    "firstapp::PhbkPhoneTypeDto:ConcurrencyStamp": "Concurrency Stamp",
    "CmSt::FullScan": "full scan",
    "firstapp::PhbkPhoneTypeDto:ScanByPrimary": "filter by Primary",
    "CmSt::FltNtAppl": "Could not apply filter as not all attributes are set",
  • In the lines above remove firstapp::-prefix and copy them in Localization\firstapp\en.json-file of the rupbes.firstapp.Domain.Shared.csproj-project. Here is a result:
    "PhbkPhoneTypeDto:PluralTitle": "Phone Types",
    "PhbkPhoneTypeDto:Id": "Phone Type Id",
    "PhbkPhoneTypeDto:PhoneTypeName": "Phone Type Name",
    "PhbkPhoneTypeDto:PhoneTypeDesc": "Phone Type Description",
    "PhbkPhoneTypeDto:ConcurrencyStamp": "Concurrency Stamp",
    "PhbkPhoneTypeDto:ScanByPrimary": "filter by Primary",
  • Translate phrases, and insert translation in the file Localization\firstapp\ru.json

  • In the lines above remove CmSt::-prefix and copy them in Localization\CmSt\en.json-file of the rupbes.firstapp.Domain.Shared.csproj-project. Here is a result:

    "FullScan": "full scan",
    "FltNtAppl": "Could not apply filter as not all attributes are set",
  • Translate phrases, and insert translation in the file Localization\CmSt\ru.json

Localization Vform

  • After 01500-Vform.abp.json-batch, close batch dialog and
    • select 01501-Vform.abp.json and click next
    • select ViewFormForView.abp.json.t4 and click next
    • Do not save the generated content, but copy the content in the clipboard
    • repeat the steps as describes for Sform

Localization Aform

  • After 01502-Aform.abp.json-batch, close batch dialog and
    • select 01503-Aform.abp.json and click next
    • select AddFormForView.abp.json.t4 and click next
    • Do not save the generated content, but copy the content in the clipboard
    • repeat the steps as describes for Sform

Localization Uform

  • After 01504-Uform.abp.json-batch, close batch dialog and
    • select 01505-Uform.abp.json and click next
    • select UpdFormForView.abp.json.t4 and click next
    • Do not save the generated content, but copy the content in the clipboard
    • repeat the steps as describes for Sform

Localization Dform

  • After 01506-Dform.abp.json-batch, close batch dialog and
    • select 01507-Dform.abp.json and click next
    • select DelFormForView.abp.json.t4 and click next
    • Do not save the generated content, but copy the content in the clipboard
    • repeat the steps as describes for Sform
⚠️ **GitHub.com Fallback** ⚠️