getThirdZzytip function

dynamic getThirdZzytip(
  1. dynamic dbData
)

Implementation

getThirdZzytip(dbData) {
  dynamic data = dbData;
  if (isNull(data)) {
    data = [
      {
        gId: "${appParam['$gTip$gId']}12",
        "tip": '12',
        "isdefault": "false",
        "entryid": appParam[gTargetid],
        "entrytime": "1702946550591"
      },
      {
        "id": "${appParam['$gTip$gId']}15",
        "tip": '15',
        "isdefault": "false",
        "entryid": appParam[gTargetid],
        "entrytime": "1702946561380"
      },
      {
        "id": "${appParam['$gTip$gId']}20",
        "tip": '20',
        "isdefault": "true",
        "entryid": appParam[gTargetid],
        "entrytime": "1702946580415"
      },
      {
        "id": "${appParam['$gTip$gId']}25",
        "tip": '25',
        "isdefault": "false",
        "entryid": appParam[gTargetid],
        "entrytime": "1702946586503"
      }
    ];
  }
  return [
    {
      "action": "processTab",
      "data": [
        {
          "colorIndex": -16121,
          "label": "Tip setup",
          "type": "table",
          "actionid": "Zzytip",
          "param0": "hometab",
          "where": "",
          "transpass": null,
          "body": {
            "Zzytip": {
              "timestamp": 1703011158688,
              "attr": {
                "canInsert": true,
                "canEdit": true,
                "canDelete": true,
                "label": "Tip setup",
                "parenttab": "Business",
                "isCommon": false,
                "needCache": false,
                "inheritData": false,
                "icon": "62262",
                "orderby": "tip asc",
                "namereal": null
              },
              "columns": [
                {
                  "id": "id",
                  "dbid": "id",
                  "type": "hidden",
                  "label": "id",
                  "defaultValue": "",
                  "required": false,
                  "minLength": 0,
                  "length": 255,
                  "hash": false,
                  "unit": "character",
                  "prefixIcon": null,
                  "inputType": "hidden",
                  "fontSize": null,
                  "letterSpacing": 0.0,
                  "isPrimary": false,
                  "isKeyword": false,
                  "droplist": "",
                  "uniqueKey": "",
                  "isUnique": false,
                  "colType": "java.lang.String",
                  "isFile": false,
                  "seq": 10,
                  "canshow": true,
                  "fromsource": "",
                  "isFrozen": false,
                  "addNewCheck": false,
                  "isWholePage": false,
                  "after": "",
                  "showrange": "",
                },
                {
                  "id": "tip",
                  "dbid": "tip",
                  "type": "number",
                  "label": "Tip",
                  "defaultValue": "",
                  "required": true,
                  "minLength": 0,
                  "length": 2,
                  "hash": false,
                  "unit": "character",
                  "prefixIcon": null,
                  "inputType": "number",
                  "fontSize": null,
                  "letterSpacing": 0.0,
                  "isPrimary": true,
                  "isKeyword": true,
                  "droplist": "",
                  "uniqueKey": "",
                  "isUnique": true,
                  "colType": "java.lang.Integer",
                  "isFile": false,
                  "seq": 20,
                  "canshow": true,
                  "fromsource": "",
                  "isFrozen": true,
                  "addNewCheck": false,
                  "isWholePage": false,
                  "after": "",
                  "showrange": ""
                },
                {
                  "id": "isdefault",
                  "dbid": "isdefault",
                  "type": "hidden", //'drop',
                  "label": "Is Default",
                  "defaultValue": "",
                  "required": true,
                  "minLength": 0,
                  "length": 255,
                  "hash": false,
                  "unit": "character",
                  "prefixIcon": null,
                  "inputType": "hidden",
                  "fontSize": null,
                  "letterSpacing": 0.0,
                  "isPrimary": true,
                  "isKeyword": false,
                  "droplist": '', //"Zzytrueorfalse",
                  "uniqueKey": "",
                  "isUnique": false,
                  "colType": "java.lang.String",
                  "isFile": false,
                  "seq": 30,
                  "canshow": true,
                  "fromsource": "",
                  "isFrozen": false,
                  "addNewCheck": false,
                  "isWholePage": false,
                  "after": "", "showrange": ""
                },
                {
                  "id": "entryid",
                  "dbid": "entryid",
                  "type": "label",
                  "label": "entryid",
                  "defaultValue": "",
                  "required": false,
                  "minLength": 0,
                  "length": 50,
                  "hash": false,
                  "unit": "character",
                  "prefixIcon": null,
                  "inputType": "hidden",
                  "fontSize": null,
                  "letterSpacing": 0.0,
                  "isPrimary": false,
                  "isKeyword": false,
                  "droplist": "Zzyuser",
                  "uniqueKey": "",
                  "isUnique": false,
                  "colType": "java.lang.String",
                  "isFile": false,
                  "seq": 40,
                  "canshow": true,
                  "fromsource": "",
                  "isFrozen": false,
                  "addNewCheck": false,
                  "isWholePage": false,
                  "after": "",
                  "showrange": ""
                },
                {
                  "id": "entrytime",
                  "dbid": "entrytime",
                  "type": "label",
                  "label": "entrytime",
                  "defaultValue": "",
                  "required": false,
                  "minLength": 0,
                  "length": 255,
                  "hash": false,
                  "unit": "character",
                  "prefixIcon": null,
                  "inputType": "datetime",
                  "fontSize": null,
                  "letterSpacing": 0.0,
                  "isPrimary": false,
                  "isKeyword": false,
                  "droplist": "",
                  "uniqueKey": "",
                  "isUnique": false,
                  "colType": "java.lang.Long",
                  "isFile": false,
                  "seq": 50,
                  "canshow": true,
                  "fromsource": "",
                  "isFrozen": false,
                  "addNewCheck": false,
                  "isWholePage": false,
                  "after": "",
                  "showrange": "table"
                }
              ],
              "data": data
            }
          }
        }
      ]
    }
  ];
}