{
  "aggMode" : "NONE",
  "codeName" : "Test",
  "columnEnableFilter" : 2,
  "columnEnableLink" : 2,
  "controlType" : "GRID",
  "dynaModelFilePath" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/BXD2/PSGRIDS/Test.json",
  "getFetchPSControlAction" : {
    "modelref" : true,
    "id" : "fetch",
    "actionType" : "DEDATASET",
    "name" : "fetch",
    "getPSAppDEMethod" : {
      "modelref" : true,
      "id" : "FetchDefault"
    },
    "getPSAppDataEntity" : {
      "modelref" : true,
      "path" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/BXD2.json"
    }
  },
  "groupMode" : "NONE",
  "hookEventNames" : [ "SELECTIONCHANGE", "LOAD" ],
  "logicName" : "Test",
  "getNavPSAppView" : {
    "modelref" : true,
    "path" : "PSSYSAPPS/Web/PSAPPDEVIEWS/BXD2EditView.json",
    "viewType" : "DEEDITVIEW"
  },
  "getPSAppDataEntity" : {
    "modelref" : true,
    "path" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/BXD2.json"
  },
  "getPSControlLogics" : [ {
    "eventNames" : "SELECTIONCHANGE",
    "logicTag" : "gridexpbar_grid",
    "logicType" : "CUSTOM",
    "name" : "gridexpbar_selectionchange"
  }, {
    "eventNames" : "LOAD",
    "logicTag" : "gridexpbar_grid",
    "logicType" : "CUSTOM",
    "name" : "gridexpbar_load"
  } ],
  "getPSDEDataImport" : {
    "modelref" : true,
    "id" : "DataImportTest"
  },
  "getPSDEGridColumns" : [ {
    "align" : "LEFT",
    "cLConvertMode" : "FRONT",
    "caption" : "报销类型",
    "codeName" : "type",
    "columnType" : "DEFGRIDCOLUMN",
    "dataItemName" : "type",
    "excelCaption" : "报销类型",
    "name" : "type",
    "noPrivDisplayMode" : 1,
    "getPSAppCodeList" : {
      "modelref" : true,
      "path" : "PSSYSAPPS/Web/PSAPPCODELISTS/Test__UsrCodeList1225197182.json"
    },
    "getPSAppDEField" : {
      "name" : "TYPE",
      "codeName" : "Type"
    },
    "width" : 100,
    "widthUnit" : "PX",
    "enableSort" : true
  }, {
    "align" : "LEFT",
    "cLConvertMode" : "NONE",
    "getCapPSLanguageRes" : {
      "lanResTag" : "DEF.LNAME.MXCOUNT"
    },
    "caption" : "属性",
    "codeName" : "mxcount",
    "columnType" : "DEFGRIDCOLUMN",
    "dataItemName" : "mxcount",
    "excelCaption" : "属性",
    "name" : "mxcount",
    "noPrivDisplayMode" : 1,
    "getPSAppDEField" : {
      "name" : "MXCOUNT",
      "codeName" : "MXcount"
    },
    "width" : 100,
    "widthUnit" : "PX",
    "enableSort" : true
  }, {
    "align" : "LEFT",
    "cLConvertMode" : "NONE",
    "getCapPSLanguageRes" : {
      "lanResTag" : "DEF.LNAME.BXD2ID"
    },
    "caption" : "报销单2标识",
    "codeName" : "bxd2id",
    "columnType" : "DEFGRIDCOLUMN",
    "dataItemName" : "bxd2id",
    "excelCaption" : "报销单2标识",
    "name" : "bxd2id",
    "noPrivDisplayMode" : 1,
    "getPSAppDEField" : {
      "name" : "BXD2ID",
      "codeName" : "BXD2Id"
    },
    "width" : 100,
    "widthUnit" : "PX",
    "enableSort" : true
  }, {
    "align" : "LEFT",
    "cLConvertMode" : "NONE",
    "getCapPSLanguageRes" : {
      "lanResTag" : "DEF.LNAME.UPDATEDATE"
    },
    "caption" : "更新时间",
    "codeName" : "updatedate",
    "columnType" : "DEFGRIDCOLUMN",
    "dataItemName" : "updatedate",
    "excelCaption" : "更新时间",
    "name" : "updatedate",
    "noPrivDisplayMode" : 1,
    "getPSAppDEField" : {
      "name" : "UPDATEDATE",
      "codeName" : "UpdateDate"
    },
    "valueFormat" : "YYYY-MM-DD HH:mm:ss",
    "width" : 100,
    "widthUnit" : "PX",
    "enableSort" : true
  }, {
    "align" : "LEFT",
    "cLConvertMode" : "NONE",
    "getCapPSLanguageRes" : {
      "lanResTag" : "DEF.LNAME.BXD2NAME"
    },
    "caption" : "报销单2名称",
    "codeName" : "bxd2name",
    "columnType" : "DEFGRIDCOLUMN",
    "dataItemName" : "bxd2name",
    "excelCaption" : "报销单2名称",
    "name" : "bxd2name",
    "noPrivDisplayMode" : 1,
    "getPSAppDEField" : {
      "name" : "BXD2NAME",
      "codeName" : "BXD2Name"
    },
    "width" : 100,
    "widthUnit" : "PX",
    "enableSort" : false
  }, {
    "align" : "LEFT",
    "cLConvertMode" : "FRONT",
    "getCapPSLanguageRes" : {
      "lanResTag" : "DEF.LNAME.CREATEMAN"
    },
    "caption" : "建立人",
    "codeName" : "createman",
    "columnType" : "DEFGRIDCOLUMN",
    "dataItemName" : "createman",
    "excelCaption" : "建立人",
    "name" : "createman",
    "noPrivDisplayMode" : 1,
    "getPSAppCodeList" : {
      "modelref" : true,
      "path" : "PSSYSAPPS/Web/PSAPPCODELISTS/SysOperator.json"
    },
    "getPSAppDEField" : {
      "name" : "CREATEMAN",
      "codeName" : "CreateMan"
    },
    "width" : 100,
    "widthUnit" : "PX",
    "enableSort" : true
  }, {
    "align" : "LEFT",
    "cLConvertMode" : "FRONT",
    "getCapPSLanguageRes" : {
      "lanResTag" : "DEF.LNAME.UPDATEMAN"
    },
    "caption" : "更新人",
    "codeName" : "updateman",
    "columnType" : "DEFGRIDCOLUMN",
    "dataItemName" : "updateman",
    "excelCaption" : "更新人",
    "name" : "updateman",
    "noPrivDisplayMode" : 1,
    "getPSAppCodeList" : {
      "modelref" : true,
      "path" : "PSSYSAPPS/Web/PSAPPCODELISTS/SysOperator.json"
    },
    "getPSAppDEField" : {
      "name" : "UPDATEMAN",
      "codeName" : "UpdateMan"
    },
    "getPSControlRenders" : [ {
      "layoutPanelModel" : "const userid = '';\r\nconst usertext = data[controller.fieldName] || '';\r\nconst app = await ibiz.hub.getApp(context.srfappid);\r\nconst dataItems = await app.codeList.get(\r\n    'SysOperator',\r\n    context,\r\n    params,\r\n)\r\nif (!dataItems || dataItems.length === 0) {\r\n    return '';\r\n}\r\nlet operator = {};\r\nlet avatarContent = '';\r\nlet avatarBg = ibiz.util.text.stringToHexColor(usertext);\r\ndataItems.find((items) => {\r\n    const item = items[1] || {};\r\n    if ((item.value && userid && item.value === userid) || (item.text && usertext && item.text === usertext)) {\r\n        operator = item;\r\n        return true;\r\n    }\r\n    return false;\r\n});\r\nif (operator.data && operator.data.iconurl) {\r\n    // return operator.data.iconurl;\r\n    // 如果存在\r\n    avatarContent = `<img class=\"ibiz-picker-dropdown-select-modal__personel-list--avatar\" style=\"width:100%; height:100%; object-fit:cover; border-radius:50%;\"\r\n            src=\"${operator.data.iconurl}\" alt=\"\">`;\r\n} else {\r\n    avatarContent = ibiz.util.text.abbreviation(usertext) || '';\r\n}\r\nreturn `\r\n<div\r\n    class=\"ibiz-picker-dropdown-select-value is-readonly\"\r\n    style=\"overflow:hidden; width:max-content; display:flex; gap: 8px; align-items:center; height:var(--ibiz-height-control-default);\"\r\n    title=\"\"\r\n>\r\n    <div \r\n        class=\"ibiz-picker-dropdown-select-value__textimg\"\r\n        style=\"width:var(--ibiz-height-control-default); min-width:var(--ibiz-height-control-default); height:var(--ibiz-height-control-default); overflow:hidden; font-size:12px; line-height:var(--ibiz-height-control-default); color:var(--ibiz-color-primary-active-text); text-align:center; border-radius:50%;background-color: ${avatarBg};\"\r\n    >\r\n    ${avatarContent}\r\n    </div>\r\n    <div\r\n        class=\"ibiz-picker-dropdown-select-value__text\"\r\n        style=\"display:flex; align-items:center; justify-content:left; height:var(--ibiz-height-control-default); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;\"\r\n    >\r\n        ${usertext}\r\n    </div>\r\n</div>\r\n`;",
      "name" : "logic",
      "renderType" : "LAYOUTPANEL_MODEL"
    } ],
    "width" : 100,
    "widthUnit" : "PX",
    "enableSort" : true
  }, {
    "align" : "LEFT",
    "cLConvertMode" : "NONE",
    "getCapPSLanguageRes" : {
      "lanResTag" : "DEF.LNAME.CREATEDATE"
    },
    "caption" : "建立时间",
    "codeName" : "createdate",
    "columnType" : "DEFGRIDCOLUMN",
    "dataItemName" : "createdate",
    "excelCaption" : "建立时间",
    "name" : "createdate",
    "noPrivDisplayMode" : 1,
    "getPSAppDEField" : {
      "name" : "CREATEDATE",
      "codeName" : "CreateDate"
    },
    "valueFormat" : "YYYY-MM-DD HH:mm:ss",
    "width" : 100,
    "widthUnit" : "PX",
    "enableSort" : true
  } ],
  "getPSDEGridDataItems" : [ {
    "dataType" : 25,
    "name" : "type",
    "getPSAppDEField" : {
      "name" : "TYPE",
      "codeName" : "Type"
    }
  }, {
    "dataType" : 25,
    "name" : "mxcount",
    "getPSAppDEField" : {
      "name" : "MXCOUNT",
      "codeName" : "MXcount"
    }
  }, {
    "dataType" : 25,
    "name" : "bxd2id",
    "getPSAppDEField" : {
      "name" : "BXD2ID",
      "codeName" : "BXD2Id"
    }
  }, {
    "format" : "YYYY-MM-DD HH:mm:ss",
    "dataType" : 5,
    "name" : "updatedate",
    "getPSAppDEField" : {
      "name" : "UPDATEDATE",
      "codeName" : "UpdateDate"
    }
  }, {
    "dataType" : 21,
    "name" : "bxd2name",
    "getPSAppDEField" : {
      "name" : "BXD2NAME",
      "codeName" : "BXD2Name"
    }
  }, {
    "dataType" : 25,
    "name" : "createman",
    "getPSAppDEField" : {
      "name" : "CREATEMAN",
      "codeName" : "CreateMan"
    }
  }, {
    "dataType" : 25,
    "name" : "updateman",
    "getPSAppDEField" : {
      "name" : "UPDATEMAN",
      "codeName" : "UpdateMan"
    },
    "customCode" : true
  }, {
    "format" : "YYYY-MM-DD HH:mm:ss",
    "dataType" : 5,
    "name" : "createdate",
    "getPSAppDEField" : {
      "name" : "CREATEDATE",
      "codeName" : "CreateDate"
    }
  }, {
    "dataType" : 25,
    "name" : "srfkey",
    "getPSAppDEField" : {
      "name" : "BXD2ID",
      "codeName" : "BXD2Id"
    }
  }, {
    "dataType" : 25,
    "name" : "srfdataaccaction",
    "getPSAppDEField" : {
      "name" : "BXD2ID",
      "codeName" : "BXD2Id"
    },
    "dataAccessAction" : true
  }, {
    "dataType" : 21,
    "name" : "srfmajortext",
    "getPSAppDEField" : {
      "name" : "BXD2NAME",
      "codeName" : "BXD2Name"
    }
  } ],
  "getPSDEGridEditItems" : [ {
    "caption" : "报销单2标识",
    "codeName" : "srfkey",
    "enableCond" : 3,
    "ignoreInput" : 0,
    "name" : "srfkey",
    "getPSAppDEField" : {
      "name" : "BXD2ID",
      "codeName" : "BXD2Id"
    },
    "getPSEditor" : {
      "editorType" : "HIDDEN",
      "name" : "srfkey"
    },
    "allowEmpty" : true
  } ],
  "pagingSize" : 20,
  "getRemovePSControlAction" : {
    "actionName" : "Remove",
    "actionType" : "DEACTION",
    "dataAccessAction" : "DELETE",
    "name" : "remove",
    "getPSAppDEMethod" : {
      "modelref" : true,
      "id" : "Remove"
    },
    "getPSAppDataEntity" : {
      "modelref" : true,
      "path" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/BXD2.json"
    }
  },
  "sortMode" : "REMOTE",
  "hasWFDataItems" : false,
  "enableColFilter" : false,
  "enableCustomized" : true,
  "enableGroup" : false,
  "enablePagingBar" : false,
  "enableRowEdit" : false,
  "enableRowEditOrder" : false,
  "enableRowNew" : false,
  "forceFit" : false,
  "hideHeader" : false,
  "noSort" : false,
  "singleSelect" : false,
  "modelid" : "7BD44682-F3FC-4F2C-9884-751A9786ACFC",
  "modeltype" : "PSDEGRID"
}