{
  "aggMode" : "NONE",
  "codeName" : "Main",
  "columnEnableFilter" : 2,
  "columnEnableLink" : 2,
  "controlType" : "GRID",
  "dynaModelFilePath" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/Reginfo/PSGRIDS/Main.json",
  "getFetchPSControlAction" : {
    "modelref" : true,
    "id" : "fetch",
    "actionType" : "DEDATASET",
    "name" : "fetch",
    "getPSAppDEMethod" : {
      "modelref" : true,
      "id" : "FetchDefault"
    },
    "getPSAppDataEntity" : {
      "modelref" : true,
      "path" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/Reginfo.json"
    }
  },
  "groupMode" : "NONE",
  "hookEventNames" : [ "ONLOADSUCCESS", "SELECTIONCHANGE", "LOAD" ],
  "logicName" : "主表格",
  "getNavPSAppView" : {
    "modelref" : true,
    "path" : "PSSYSAPPS/Web/PSAPPDEVIEWS/ReginfoUsr0423209603EditView.json",
    "viewType" : "DEEDITVIEW"
  },
  "getPSAppDataEntity" : {
    "modelref" : true,
    "path" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/Reginfo.json"
  },
  "getPSControlAttributes" : [ {
    "attrName" : "spanMethod",
    "attrValue" : "({\r\n    row,\r\n    column,\r\n    rowIndex,\r\n    columnIndex,\r\n  }) => {\r\n    console.log('测试合并');\r\n    const { property } = column;\r\n    const rowspankeys = ['department','age'];\r\n    const tableData = ctrl.state.rows;\r\n    // 合并行\r\n    if (rowspankeys.length > 0 && rowspankeys.includes(property)) {\r\n      // 只有第一列或有值时才和并\r\n      const allow = columnIndex === 0 || row[property];\r\n      // 第二行开始合并\r\n      if (\r\n        rowIndex > 0 &&\r\n        allow &&\r\n        row[property] === tableData[rowIndex - 1].data[property]\r\n      ) {\r\n        return {\r\n          rowspan: 0,\r\n          colspan: 0,\r\n        };\r\n      }\r\n      // 第一行计算出合并长度\r\n      let rowspan = 1;\r\n      for (let i = rowIndex + 1; i < tableData.length; i++) {\r\n        if (allow && tableData[i].data[property] === row[property]) {\r\n          rowspan += 1;\r\n        } else {\r\n          break;\r\n        }\r\n      }\r\n      return {\r\n        rowspan,\r\n        colspan: 1,\r\n      };\r\n    }\r\n}",
    "name" : "logic"
  } ],
  "getPSControlLogics" : [ {
    "eventNames" : "onLoadSuccess",
    "logicTag" : "gridexpbar_grid",
    "logicType" : "SCRIPT",
    "name" : "test",
    "scriptCode" : "setTimeout(() => {\r\n    console.log('测试1231321')\r\n\tconst rows = ctrl.state.rows;\r\n\tif (rows && rows.length > 0) {\r\n\trows.forEach(row => {\r\n\t\tconst titleColumn = row.uiActionGroupStates.reginfoname;\r\n\t\tconst name = row.data.name;\r\n\t\tif (titleColumn && Object.values(titleColumn).length > 0) {\r\n\t\tObject.values(titleColumn).forEach(action => {\r\n\t\t\t// 百度\r\n\t\t\tif (action.uiActionId === 'openbaidu') {\r\n\t\t\taction.visible = name ? name.includes('q') : true;\r\n\t\t\t}\r\n\t\t});\r\n\t\t}\r\n\t});\r\n\t}\r\n}, 1000);"
  }, {
    "eventNames" : "SELECTIONCHANGE",
    "logicTag" : "gridexpbar_grid",
    "logicType" : "CUSTOM",
    "name" : "gridexpbar_selectionchange"
  }, {
    "eventNames" : "LOAD",
    "logicTag" : "gridexpbar_grid",
    "logicType" : "CUSTOM",
    "name" : "gridexpbar_load"
  } ],
  "getPSControlRenders" : [ {
    "name" : "emptypanel",
    "getPSLayoutPanel" : {
      "codeName" : "Usr0115540780",
      "controlType" : "PANEL",
      "dynaModelFilePath" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/Reginfo/PSPANELS/Usr0115540780.json",
      "layoutMode" : "Flex",
      "logicName" : "NoData20250115",
      "getPSAppDataEntity" : {
        "modelref" : true,
        "path" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/Reginfo.json"
      },
      "getPSControlParam" : { },
      "getPSLayout" : {
        "layout" : "FLEX"
      },
      "getRootPSPanelItems" : [ {
        "itemStyle" : "DEFAULT",
        "itemType" : "CONTAINER",
        "name" : "page_container",
        "getPSLayout" : {
          "dir" : "column",
          "layout" : "FLEX"
        },
        "getPSLayoutPos" : {
          "grow" : -1,
          "layout" : "FLEX"
        },
        "getPSPanelItems" : [ {
          "caption" : "图片",
          "contentType" : "IMAGE",
          "itemStyle" : "DEFAULT",
          "itemType" : "RAWITEM",
          "name" : "static_image",
          "getPSLayoutPos" : {
            "grow" : -1,
            "layout" : "FLEX"
          },
          "getPSRawItem" : {
            "contentType" : "IMAGE",
            "name" : "static_image",
            "getPSSysImage" : {
              "glyph" : "xf228@FontAwesome",
              "cssClass" : "fa fa-venus-mars"
            },
            "predefinedType" : "STATIC_IMAGE"
          },
          "getPSSysImage" : {
            "glyph" : "xf228@FontAwesome",
            "cssClass" : "fa fa-venus-mars"
          },
          "showCaption" : true
        }, {
          "caption" : "文本",
          "contentType" : "RAW",
          "itemStyle" : "DEFAULT",
          "itemType" : "RAWITEM",
          "name" : "static_text",
          "getPSLayoutPos" : {
            "grow" : -1,
            "layout" : "FLEX"
          },
          "getPSRawItem" : {
            "caption" : "无数据",
            "contentType" : "RAW",
            "name" : "static_text",
            "predefinedType" : "STATIC_TEXT",
            "renderMode" : "TEXT"
          },
          "rawContent" : "无数据",
          "showCaption" : true
        } ]
      } ],
      "layoutPanel" : true,
      "name" : "emptypanel",
      "modelid" : "F36C4945-F71F-4642-B528-3DE879E30F60",
      "modeltype" : "PSSYSVIEWPANEL"
    },
    "renderType" : "LAYOUTPANEL"
  }, {
    "layoutPanelModel" : "return '测试内容'",
    "name" : "logic6",
    "renderType" : "LAYOUTPANEL_MODEL"
  } ],
  "getPSDEGridColumns" : [ {
    "align" : "LEFT",
    "cLConvertMode" : "NONE",
    "caption" : "学员登记信息名称",
    "codeName" : "reginfoname",
    "columnType" : "DEFGRIDCOLUMN",
    "dataItemName" : "reginfoname",
    "excelCaption" : "学员登记信息名称",
    "name" : "reginfoname",
    "noPrivDisplayMode" : 1,
    "getPSAppDEField" : {
      "name" : "REGINFONAME",
      "codeName" : "ReginfoName"
    },
    "getPSControlRenders" : [ {
      "name" : "layout",
      "getPSLayoutPanel" : {
        "getAllPSPanelFields" : [ {
          "id" : "reginfoname",
          "viewFieldName" : "reginfoname"
        } ],
        "codeName" : "Usr0713899315",
        "controlType" : "PANEL",
        "dynaModelFilePath" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/Reginfo/PSPANELS/Usr0713899315.json",
        "layoutMode" : "Flex",
        "logicName" : "表格列绘制器",
        "getPSAppDataEntity" : {
          "modelref" : true,
          "path" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/Reginfo.json"
        },
        "getPSControlParam" : { },
        "getPSLayout" : {
          "layout" : "FLEX"
        },
        "getRootPSPanelItems" : [ {
          "itemStyle" : "DEFAULT",
          "itemType" : "CONTAINER",
          "name" : "page_container",
          "getPSLayout" : {
            "dir" : "column",
            "layout" : "FLEX"
          },
          "getPSLayoutPos" : {
            "grow" : -1,
            "layout" : "FLEX"
          },
          "getPSPanelItems" : [ {
            "caption" : "文本(动态)",
            "itemStyle" : "DEFAULT",
            "itemType" : "FIELD",
            "name" : "reginfoname",
            "getPSEditor" : {
              "editorType" : "SPAN",
              "name" : "reginfoname",
              "predefinedType" : "FIELD_TEXT_DYNAMIC",
              "renderMode" : "TEXT_DYNAMIC",
              "enableLinkView" : false
            },
            "getPSLayoutPos" : {
              "grow" : -1,
              "layout" : "FLEX"
            },
            "viewFieldName" : "reginfoname"
          } ]
        } ],
        "layoutPanel" : true,
        "name" : "layout",
        "modelid" : "BA395E21-F170-4780-A9A6-94C9BBCBB580",
        "modeltype" : "PSSYSVIEWPANEL"
      },
      "renderType" : "LAYOUTPANEL"
    } ],
    "getPSDEUIActionGroup" : {
      "codeName" : "Usr0412090031",
      "name" : "列行为组",
      "getPSAppDataEntity" : {
        "modelref" : true,
        "path" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/Reginfo.json"
      },
      "getPSUIActionGroupDetails" : [ {
        "actionLevel" : 250,
        "buttonStyle" : "SUCCESS",
        "caption" : "百度",
        "detailType" : "DEUIACTION",
        "name" : "ue718d5e",
        "getPSUIAction" : {
          "actionTarget" : "NONE",
          "buttonStyle" : "SUCCESS",
          "caption" : "百度",
          "codeName" : "openBaidu",
          "counterId" : "openBaidu",
          "frontProcessType" : "OPENHTMLPAGE",
          "fullCodeName" : "openBaidu",
          "htmlPageUrl" : "https://www.baidu.com/",
          "name" : "百度",
          "getPSAppCounter" : {
            "modelref" : true,
            "path" : "PSSYSAPPS/Web/PSAPPCOUNTERS/UIActionCounter.json"
          },
          "uIActionMode" : "FRONT",
          "uIActionTag" : "openBaidu",
          "uIActionType" : "DEUIACTION"
        },
        "addSeparator" : false,
        "showCaption" : true,
        "showIcon" : true
      } ],
      "uniqueTag" : "Reginfo__Usr0412090031"
    },
    "width" : 250,
    "widthUnit" : "PX",
    "enableSort" : true
  }, {
    "align" : "CENTER",
    "cLConvertMode" : "NONE",
    "caption" : "单位",
    "codeName" : "department",
    "columnType" : "DEFGRIDCOLUMN",
    "dataItemName" : "department",
    "excelCaption" : "单位",
    "name" : "department",
    "noPrivDisplayMode" : 1,
    "getPSAppDEField" : {
      "name" : "DEPARTMENT",
      "codeName" : "DepartMent"
    },
    "width" : 250,
    "widthUnit" : "PX",
    "enableRowEdit" : true,
    "enableSort" : true
  }, {
    "align" : "RIGHT",
    "cLConvertMode" : "NONE",
    "caption" : "家庭住址",
    "codeName" : "address",
    "columnType" : "DEFGRIDCOLUMN",
    "dataItemName" : "address",
    "excelCaption" : "家庭住址",
    "name" : "address",
    "noPrivDisplayMode" : 1,
    "getPSAppDEField" : {
      "name" : "ADDRESS",
      "codeName" : "Address"
    },
    "width" : 250,
    "widthUnit" : "PX",
    "enableSort" : true
  }, {
    "align" : "LEFT",
    "cLConvertMode" : "NONE",
    "caption" : "年龄",
    "codeName" : "age",
    "columnType" : "DEFGRIDCOLUMN",
    "dataItemName" : "age",
    "excelCaption" : "年龄",
    "name" : "age",
    "noPrivDisplayMode" : 1,
    "getPSAppDEField" : {
      "name" : "AGE",
      "codeName" : "Age"
    },
    "width" : 250,
    "widthUnit" : "PX",
    "enableRowEdit" : true,
    "enableSort" : true
  }, {
    "align" : "RIGHT",
    "caption" : "操作",
    "codeName" : "uagridcolumn1",
    "columnType" : "UAGRIDCOLUMN",
    "name" : "uagridcolumn1",
    "noPrivDisplayMode" : 1,
    "getPSDEUIActionGroup" : {
      "codeName" : "A046596b6afb50f9e5b",
      "name" : "操作列",
      "getPSAppDataEntity" : {
        "modelref" : true,
        "path" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/Reginfo.json"
      },
      "getPSUIActionGroupDetails" : [ {
        "buttonStyle" : "DANGER",
        "getCapPSLanguageRes" : {
          "lanResTag" : "TBB.TEXT.*.EDIT"
        },
        "caption" : "编辑",
        "detailType" : "DEUIACTION",
        "name" : "u479f517",
        "getPSSysImage" : {
          "imagePath" : "view/caption.svg"
        },
        "getPSUIAction" : {
          "actionTarget" : "SINGLEKEY",
          "buttonStyle" : "DANGER",
          "getCapPSLanguageRes" : {
            "lanResTag" : "TBB.TEXT.*.EDIT"
          },
          "caption" : "编辑",
          "codeName" : "Edit",
          "fullCodeName" : "Edit",
          "name" : "表格界面_编辑操作",
          "getPSSysImage" : {
            "glyph" : "xf044@FontAwesome",
            "cssClass" : "fa fa-edit"
          },
          "predefinedType" : "GRIDVIEW_EDITACTION",
          "timeout" : 60000,
          "getTooltipPSLanguageRes" : {
            "lanResTag" : "TBB.TOOLTIP.*.EDIT"
          },
          "uIActionMode" : "SYS",
          "uIActionTag" : "Edit",
          "uIActionType" : "DEUIACTION"
        },
        "getTooltipPSLanguageRes" : {
          "lanResTag" : "TBB.TOOLTIP.*.EDIT"
        },
        "addSeparator" : true,
        "showCaption" : true,
        "showIcon" : true
      }, {
        "caption" : "行编辑",
        "detailType" : "DEUIACTION",
        "name" : "ua98d563",
        "getPSSysImage" : {
          "glyph" : "xf0f1@FontAwesome",
          "cssClass" : "fa fa-stethoscope"
        },
        "getPSUIAction" : {
          "caption" : "行编辑",
          "codeName" : "ToggleRowEdit",
          "fullCodeName" : "ToggleRowEdit",
          "name" : "表格界面_行编辑开关操作",
          "getPSSysImage" : {
            "glyph" : "xf0ce@FontAwesome",
            "cssClass" : "fa fa-table"
          },
          "predefinedType" : "GRIDVIEW_ROWEDITACTION",
          "timeout" : 60000,
          "uIActionMode" : "SYS",
          "uIActionTag" : "ToggleRowEdit",
          "uIActionType" : "DEUIACTION",
          "enableToggleMode" : true
        },
        "addSeparator" : false,
        "showCaption" : true,
        "showIcon" : false
      } ],
      "uniqueTag" : "Reginfo__A046596b6afb50f9e5b"
    },
    "width" : 100,
    "widthUnit" : "STAR",
    "enableSort" : false
  } ],
  "getPSDEGridDataItems" : [ {
    "dataType" : 25,
    "name" : "reginfoname",
    "getPSAppDEField" : {
      "name" : "REGINFONAME",
      "codeName" : "ReginfoName"
    }
  }, {
    "dataType" : 25,
    "name" : "department",
    "getPSAppDEField" : {
      "name" : "DEPARTMENT",
      "codeName" : "DepartMent"
    }
  }, {
    "dataType" : 25,
    "name" : "address",
    "getPSAppDEField" : {
      "name" : "ADDRESS",
      "codeName" : "Address"
    }
  }, {
    "dataType" : 9,
    "name" : "age",
    "getPSAppDEField" : {
      "name" : "AGE",
      "codeName" : "Age"
    }
  }, {
    "dataType" : 25,
    "name" : "srfkey",
    "getPSAppDEField" : {
      "name" : "REGINFOID",
      "codeName" : "ReginfoId"
    }
  }, {
    "dataType" : 25,
    "name" : "srfdataaccaction",
    "getPSAppDEField" : {
      "name" : "REGINFOID",
      "codeName" : "ReginfoId"
    },
    "dataAccessAction" : true
  }, {
    "dataType" : 25,
    "name" : "studentid",
    "getPSAppDEField" : {
      "name" : "STUDENTID",
      "codeName" : "StudentId"
    }
  }, {
    "dataType" : 25,
    "name" : "preginfoid",
    "getPSAppDEField" : {
      "name" : "PREGINFOID",
      "codeName" : "Preginfoid"
    }
  }, {
    "dataType" : 25,
    "name" : "preginfoid2",
    "getPSAppDEField" : {
      "name" : "PREGINFOID2",
      "codeName" : "Preginfoid2"
    }
  }, {
    "dataType" : 25,
    "name" : "srfmajortext",
    "getPSAppDEField" : {
      "name" : "REGINFONAME",
      "codeName" : "ReginfoName"
    }
  } ],
  "getPSDEGridEditItemVRs" : [ {
    "checkMode" : 3,
    "name" : "编辑项值规则",
    "getPSDEGridEditItemName" : "age",
    "getPSSysValueRule" : {
      "codeName" : "ValueRule4",
      "dynaModelFilePath" : "PSSYSVALUERULES/ValueRule4.json",
      "name" : "正整数",
      "regExCode" : "[0-9]*[1-9][0-9]*",
      "ruleInfo" : "内容必须为正整数",
      "ruleType" : "REG",
      "uniqueTag" : "ValueRule4",
      "enableBackend" : true,
      "enableFront" : true
    },
    "valueRuleType" : "SYSVALUERULE"
  } ],
  "getPSDEGridEditItems" : [ {
    "caption" : "单位",
    "codeName" : "department",
    "enableCond" : 2,
    "ignoreInput" : 0,
    "name" : "department",
    "getPSAppDEField" : {
      "name" : "DEPARTMENT",
      "codeName" : "DepartMent"
    },
    "getPSEditor" : {
      "editorParams" : {
        "autosize" : "{\"minRows\":2,\"maxRows\":6}"
      },
      "editorType" : "TEXTAREA",
      "maxLength" : 100,
      "name" : "department",
      "showMaxLength" : true
    },
    "allowEmpty" : true
  }, {
    "caption" : "年龄",
    "codeName" : "age",
    "enableCond" : 3,
    "ignoreInput" : 0,
    "name" : "age",
    "getPSAppDEField" : {
      "name" : "AGE",
      "codeName" : "Age"
    },
    "getPSEditor" : {
      "editorType" : "NUMBER",
      "name" : "age"
    },
    "allowEmpty" : true
  }, {
    "caption" : "学员登记信息标识",
    "codeName" : "srfkey",
    "enableCond" : 3,
    "ignoreInput" : 0,
    "name" : "srfkey",
    "getPSAppDEField" : {
      "name" : "REGINFOID",
      "codeName" : "ReginfoId"
    },
    "getPSEditor" : {
      "editorType" : "HIDDEN",
      "name" : "srfkey"
    },
    "allowEmpty" : true
  } ],
  "getPSNavigateContexts" : [ {
    "key" : "FORMITEM",
    "name" : "FORMITEM",
    "value" : "32123",
    "rawValue" : true
  }, {
    "key" : "FORMITEM1",
    "name" : "FORMITEM1",
    "value" : "reginfoname",
    "rawValue" : false
  }, {
    "key" : "EMPTY",
    "name" : "EMPTY",
    "rawValue" : true
  } ],
  "getPSNavigateParams" : [ {
    "key" : "formitem5",
    "name" : "formitem5",
    "value" : "age",
    "rawValue" : false
  }, {
    "key" : "formitem3",
    "name" : "formitem3",
    "value" : "21332513",
    "rawValue" : true
  }, {
    "key" : "empty",
    "name" : "empty",
    "rawValue" : true
  } ],
  "pagingMode" : 3,
  "pagingSize" : 20,
  "getRemovePSControlAction" : {
    "actionName" : "Remove",
    "actionType" : "DEACTION",
    "dataAccessAction" : "DELETE",
    "name" : "remove",
    "getPSAppDEMethod" : {
      "modelref" : true,
      "id" : "Remove"
    },
    "getPSAppDataEntity" : {
      "modelref" : true,
      "path" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/Reginfo.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" : "79298f0344beee0b6f745936bb3a2fcd",
  "modeltype" : "PSDEGRID"
}