    {{formDetail.codeName}}: {
      caption: '{{formDetail.caption}}',
      name: '{{formDetail.name}}',
      disabled: false, 
      visible: true,
      detailStyle: '{{formDetail.detailStyle}}',
      detailType: '{{formDetail.detailType}}',
      showCaption: {{#if formDetail.showCaption}}true{{else}}false{{/if}},
      {{#if formDetail.valueFormat}}
      valueFormat: '{{formDetail.valueFormat}}',
      {{else if (formDetail.psAppDEField)}}
      valueFormat: '{{formDetail.psAppDEField.valueFormat}}',
      {{/if}}
      {{#if (eq formDetail.detailType "FORMITEM")}}
      dataType: '{{formDetail.dataType}}',
      required: {{#if formDetail.allowEmpty}}false{{else}}true{{/if}},
      enableCond: {{formDetail.enableCond}},
      {{#if formDetail.psDEFormItemUpdate}}
      formItemUpdate: {
        {{#if formDetail.psDEFormItemUpdate.customCode}}
        customCode: {{formDetail.psDEFormItemUpdate.customCode}},
        scriptCode: `{{formDetail.psDEFormItemUpdate.scriptCode}}`,
        {{else}}
        showBusyIndicator: "{{formDetail.psDEFormItemUpdate.showBusyIndicator}}",
        appDEMethod: "{{formDetail.psDEFormItemUpdate.psAppDEMethod}}",
        updateDetails: [
        {{#each formDetail.psDEFormItemUpdate.psDEFIUpdateDetails as | updateDetails | }}
        "{{updateDetails.codeName}}",
        {{/each}}
        ],
        {{/if}}
      },
      {{/if}}
      {{#if formDetail.createDVT}}
      createDVT: "{{formDetail.createDVT}}",
      createDV: "{{formDetail.createDV}}",
      {{/if}}
      {{#if formDetail.updateDVT}}
      updateDVT: "{{formDetail.updateDVT}}",
      updateDV: "{{formDetail.updateDV}}",
      {{/if}}
      {{#if formDetail.resetItemName}}
      resetItemName: '{{formDetail.resetItemName}}',
      {{/if}}
      {{#if formDetail.valueItemName}}
      valueItemName: '{{formDetail.valueItemName}}',
      {{/if}}
      {{/if}}
      {{#if (and (eq formDetail.detailType "BUTTON") (formDetail.psUIAction))}}
      uIActionTag: '{{formDetail.psUIAction.uIActionTag}}',
      {{/if}}
      {{#if (and (eq formDetail.detailType "GROUPPANEL") (formDetail.psUIActionGroup))}}
      uIActionGroup: {
        extractMode: '{{formDetail.psUIActionGroup.actionGroupExtractMode}}',
        caption: '{{formDetail.psUIActionGroup.name}}',
        details: [
        {{#each formDetail.psUIActionGroup.psUIActionGroupDetails as | detail | }}
        { caption: '{{detail.psUIAction.caption}}', disabled: false, visible: true, uIActionTag: '{{detail.psUIAction.uIActionTag}}', showCaption: {{detail.showCaption}}, showIcon: {{detail.showIcon}}, {{#if detail.psUIAction.psSysImage}}{{#if detail.psUIAction.psSysImage.imagePath}} imgPath: "{{detail.psUIAction.psSysImage.imagePath}}",{{/if}}{{#if detail.psUIAction.psSysImage.cssClass}} iconClass: "{{detail.psUIAction.psSysImage.cssClass}}",{{/if}}{{/if}} },
        {{/each}}
        ],
      },
      {{/if}}
      {{#if formDetail.psDEFDGroupLogics}}
      groupLogics: [
        {{#each formDetail.psDEFDGroupLogics as | groupLogic |}}
        {
          name: '{{groupLogic.name}}',
          groupOP: '{{groupLogic.groupOP}}',
          relatedDetailNames: '{{groupLogic.relatedDetailNames}}',
          logicCat: '{{groupLogic.logicCat}}',
          logicType: '{{groupLogic.logicType}}',
          notMode: '{{groupLogic.notMode}}',
          logics: [
          {{#each groupLogic.psDEFDLogics as | logic |}}
          {condOP: '{{logic.condOP}}',dEFDName: '{{logic.dEFDName}}',logicType: '{{logic.logicType}}',name: '{{logic.name}}',value:'{{logic.value}}'},
          {{/each}}
          ],
        },
        {{/each}}
      ],
      {{/if}}
    },
{{#if formDetail.psDEFormDetails}}
  {{#each formDetail.psDEFormDetails as | tempDetail |}}
    {{>(lookup 'FORMDETAILSMODEL') formDetail=tempDetail}}
  {{/each}}
{{/if}}