{
  "aggMode" : "NONE",
  "codeName" : "Usr04160196GridView_Grid",
  "columnEnableFilter" : 2,
  "columnEnableLink" : 2,
  "controlType" : "GRID",
  "dynaModelFilePath" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/Book/PSGRIDS/Usr04160196GridView_Grid.json",
  "getFetchPSControlAction" : {
    "modelref" : true,
    "id" : "fetch",
    "actionType" : "DEDATASET",
    "name" : "fetch",
    "getPSAppDEMethod" : {
      "modelref" : true,
      "id" : "FetchDefault"
    },
    "getPSAppDataEntity" : {
      "modelref" : true,
      "path" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/Book.json"
    }
  },
  "groupMode" : "NONE",
  "logicName" : "表格脚本2_表格",
  "getPSAppDataEntity" : {
    "modelref" : true,
    "path" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/Book.json"
  },
  "getPSControlRenders" : [ {
    "layoutPanelModel" : "const items = ctrl.state.items;\r\nlet htmlArr = '';\r\nif (items && items.length > 0){\r\n    htmlArr = `<div class='custom-grid'>\r\n    <div class='grid-header' style=\"display:flex;gap:16px\">\r\n    <div style=\"width:150px\">书名</div>\r\n    <div style=\"width:27px\"></div>\r\n    <div style=\"width:150px;flex:1\">简介</div>\r\n    </div>\r\n    ${items.map((item, index) => {\r\n        const {bookname,field} = item\r\n        let name;\r\n        let tempname;\r\n        try{\r\n            name = JSON.parse(bookname)\r\n        }catch{\r\n            name = bookname;\r\n        }\r\n        tempname = name\r\n        if(Array.isArray(name)){\r\n            tempname = name.map(item => item.name).join('、');\r\n        }\r\n        const row = `<div class=\"grid-row\" data-index=\"${index}\" style=\"display:flex;gap:16px\">\r\n            <div style=\"width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap\" title=\"${tempname}\">${tempname}</div>\r\n            <span>==></span>\r\n            <div style=\"width:150px;flex:1\">${field}</div>\r\n        </div>`;\r\n        return row;\r\n    }).join('')}\r\n    </div>`\r\n}else{\r\n    htmlArr = '<div class=\"no-data\">暂无数据</div>';\r\n}\r\nreturn htmlArr;",
    "name" : "logic1",
    "renderType" : "LAYOUTPANEL_MODEL"
  } ],
  "getPSDEGridColumns" : [ {
    "align" : "LEFT",
    "cLConvertMode" : "NONE",
    "caption" : "书名称",
    "codeName" : "bookname",
    "columnType" : "DEFGRIDCOLUMN",
    "dataItemName" : "bookname",
    "excelCaption" : "书名称",
    "name" : "bookname",
    "noPrivDisplayMode" : 1,
    "getPSAppDEField" : {
      "name" : "BOOKNAME",
      "codeName" : "BookName"
    },
    "width" : 150,
    "widthUnit" : "PX",
    "enableSort" : true
  }, {
    "align" : "LEFT",
    "cLConvertMode" : "NONE",
    "caption" : "属性",
    "codeName" : "field",
    "columnType" : "DEFGRIDCOLUMN",
    "dataItemName" : "field",
    "excelCaption" : "属性",
    "name" : "field",
    "noPrivDisplayMode" : 1,
    "getPSAppDEField" : {
      "name" : "FIELD",
      "codeName" : "Field"
    },
    "width" : 100,
    "widthUnit" : "PX",
    "enableSort" : true
  }, {
    "align" : "LEFT",
    "cLConvertMode" : "FRONT",
    "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"
    },
    "width" : 150,
    "widthUnit" : "PX",
    "enableSort" : true
  }, {
    "align" : "LEFT",
    "cLConvertMode" : "NONE",
    "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" : 150,
    "widthUnit" : "STAR",
    "enableSort" : true
  } ],
  "getPSDEGridDataItems" : [ {
    "dataType" : 25,
    "name" : "bookname",
    "getPSAppDEField" : {
      "name" : "BOOKNAME",
      "codeName" : "BookName"
    }
  }, {
    "dataType" : 25,
    "name" : "field",
    "getPSAppDEField" : {
      "name" : "FIELD",
      "codeName" : "Field"
    }
  }, {
    "dataType" : 25,
    "name" : "updateman",
    "getPSAppDEField" : {
      "name" : "UPDATEMAN",
      "codeName" : "UpdateMan"
    }
  }, {
    "format" : "YYYY-MM-DD HH:mm:ss",
    "dataType" : 5,
    "name" : "updatedate",
    "getPSAppDEField" : {
      "name" : "UPDATEDATE",
      "codeName" : "UpdateDate"
    }
  }, {
    "dataType" : 25,
    "name" : "srfkey",
    "getPSAppDEField" : {
      "name" : "BOOKID",
      "codeName" : "BookId"
    }
  }, {
    "dataType" : 25,
    "name" : "srfdataaccaction",
    "getPSAppDEField" : {
      "name" : "BOOKID",
      "codeName" : "BookId"
    },
    "dataAccessAction" : true
  }, {
    "dataType" : 25,
    "name" : "phoneid",
    "getPSAppDEField" : {
      "name" : "PHONEID",
      "codeName" : "PhoneId"
    }
  }, {
    "dataType" : 25,
    "name" : "pbookid",
    "getPSAppDEField" : {
      "name" : "PBOOKID",
      "codeName" : "Pbookid"
    }
  }, {
    "dataType" : 25,
    "name" : "srfmajortext",
    "getPSAppDEField" : {
      "name" : "BOOKNAME",
      "codeName" : "BookName"
    }
  } ],
  "getPSDEGridEditItems" : [ {
    "caption" : "书标识",
    "codeName" : "srfkey",
    "enableCond" : 3,
    "ignoreInput" : 0,
    "name" : "srfkey",
    "getPSAppDEField" : {
      "name" : "BOOKID",
      "codeName" : "BookId"
    },
    "getPSEditor" : {
      "editorType" : "HIDDEN",
      "name" : "srfkey"
    },
    "allowEmpty" : true
  } ],
  "pagingMode" : 1,
  "pagingSize" : 20,
  "getRemovePSControlAction" : {
    "actionName" : "Remove",
    "actionType" : "DEACTION",
    "dataAccessAction" : "DELETE",
    "name" : "remove",
    "getPSAppDEMethod" : {
      "modelref" : true,
      "id" : "Remove"
    },
    "getPSAppDataEntity" : {
      "modelref" : true,
      "path" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/Book.json"
    }
  },
  "sortMode" : "REMOTE",
  "hasWFDataItems" : false,
  "enableColFilter" : false,
  "enableCustomized" : true,
  "enableGroup" : false,
  "enablePagingBar" : true,
  "enableRowEdit" : false,
  "enableRowEditOrder" : false,
  "enableRowNew" : false,
  "forceFit" : false,
  "hideHeader" : false,
  "noSort" : false,
  "singleSelect" : false,
  "modelid" : "70FCC946-2B5F-45FB-8059-ECD10F20753B",
  "modeltype" : "PSDEGRID"
}