{
  "accUserMode" : 2,
  "getCapPSLanguageRes" : {
    "lanResTag" : "DE.LNAME.BXD2"
  },
  "caption" : "报销单2",
  "codeName" : "BXD2GridExpView_Test",
  "dynaModelFilePath" : "PSSYSAPPS/Web/PSAPPDEVIEWS/BXD2GridExpView_Test.json",
  "name" : "BXD2GridExpView_Test",
  "getPSAppDataEntity" : {
    "modelref" : true,
    "path" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/BXD2.json"
  },
  "getPSAppModule" : {
    "modelref" : true,
    "path" : "PSSYSAPPS/Web/PSAPPMODULES/Test.json"
  },
  "getPSAppViewEngines" : [ {
    "engineCat" : "VIEW",
    "engineType" : "GridExpView",
    "name" : "engine"
  } ],
  "getPSAppViewLogics" : [ {
    "logicTrigger" : "CUSTOM",
    "logicType" : "APPUILOGIC",
    "name" : "newdata",
    "getPSAppUILogic" : {
      "actionAfterWizard" : "DEFAULT",
      "logicType" : "PREDEFINED",
      "name" : "新建数据",
      "viewLogicType" : "APP_NEWDATA",
      "batchAddOnly" : false,
      "enableBatchAdd" : false,
      "enableWizardAdd" : false
    }
  }, {
    "logicTrigger" : "CUSTOM",
    "logicType" : "APPUILOGIC",
    "name" : "opendata",
    "getPSAppUILogic" : {
      "logicType" : "PREDEFINED",
      "name" : "打开数据",
      "viewLogicType" : "APP_OPENDATA",
      "editMode" : true
    }
  } ],
  "getPSControls" : [ {
    "codeName" : "GridExpView_Testgridexpbar",
    "controlType" : "GRIDEXPBAR",
    "name" : "gridexpbar",
    "getPSAppDataEntity" : {
      "modelref" : true,
      "path" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/BXD2.json"
    },
    "getPSAppViewRefs" : [ {
      "name" : "EXPITEM:DEFAULT",
      "realTitle" : "报销单2编辑视图",
      "getRealTitlePSLanguageRes" : {
        "lanResTag" : "PAGE.TITLE.BXD2.EDITVIEW"
      },
      "getRefPSAppView" : {
        "modelref" : true,
        "path" : "PSSYSAPPS/Web/PSAPPDEVIEWS/BXD2EditView.json",
        "viewType" : "DEEDITVIEW"
      }
    } ],
    "getPSControlHandler" : {
      "enableDEFieldPrivilege" : false,
      "id" : "gridexpbar"
    },
    "getPSControlParam" : {
      "autoLoad" : true,
      "showBusyIndicator" : true,
      "id" : "GRIDEXPBAR"
    },
    "getPSControls" : [ {
      "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"
      },
      "getPSControlHandler" : {
        "getPSHandlerActions" : [ {
          "actionName" : "Get",
          "actionType" : "DEACTION",
          "dataAccessAction" : "READ",
          "name" : "load",
          "getPSAppDEMethod" : {
            "modelref" : true,
            "id" : "Get"
          },
          "getPSAppDataEntity" : {
            "modelref" : true,
            "path" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/BXD2.json"
          }
        }, {
          "actionName" : "Create",
          "actionType" : "DEACTION",
          "dataAccessAction" : "CREATE",
          "name" : "create",
          "getPSAppDEMethod" : {
            "modelref" : true,
            "id" : "Create"
          },
          "getPSAppDataEntity" : {
            "modelref" : true,
            "path" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/BXD2.json"
          }
        }, {
          "actionName" : "Update",
          "actionType" : "DEACTION",
          "dataAccessAction" : "UPDATE",
          "name" : "update",
          "getPSAppDEMethod" : {
            "modelref" : true,
            "id" : "Update"
          },
          "getPSAppDataEntity" : {
            "modelref" : true,
            "path" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/BXD2.json"
          }
        }, {
          "actionName" : "Remove",
          "actionType" : "DEACTION",
          "dataAccessAction" : "DELETE",
          "name" : "remove",
          "getPSAppDEMethod" : {
            "modelref" : true,
            "id" : "Remove"
          },
          "getPSAppDataEntity" : {
            "modelref" : true,
            "path" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/BXD2.json"
          }
        }, {
          "actionName" : "GetDraft",
          "actionType" : "DEACTION",
          "dataAccessAction" : "CREATE",
          "name" : "loaddraft",
          "getPSAppDEMethod" : {
            "modelref" : true,
            "id" : "GetDraft"
          },
          "getPSAppDataEntity" : {
            "modelref" : true,
            "path" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/BXD2.json"
          }
        }, {
          "actionType" : "DEDATASET",
          "name" : "fetch",
          "getPSAppDEMethod" : {
            "modelref" : true,
            "id" : "FetchDefault"
          },
          "getPSAppDataEntity" : {
            "modelref" : true,
            "path" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/BXD2.json"
          }
        } ],
        "userDRAction" : "READ",
        "enableDEFieldPrivilege" : false,
        "id" : "数据表格处理器"
      },
      "getPSControlLogics" : [ {
        "eventNames" : "SELECTIONCHANGE",
        "logicTag" : "gridexpbar_grid",
        "logicType" : "CUSTOM",
        "name" : "gridexpbar_selectionchange"
      }, {
        "eventNames" : "LOAD",
        "logicTag" : "gridexpbar_grid",
        "logicType" : "CUSTOM",
        "name" : "gridexpbar_load"
      } ],
      "getPSControlParam" : {
        "autoLoad" : true,
        "showBusyIndicator" : true,
        "id" : "gridexpbar_grid"
      },
      "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,
      "name" : "gridexpbar_grid",
      "modelid" : "7BD44682-F3FC-4F2C-9884-751A9786ACFC",
      "modeltype" : "PSDEGRID"
    } ],
    "xDataControlName" : "gridexpbar_grid",
    "enableCounter" : true,
    "enableSearch" : false,
    "showTitleBar" : true,
    "modelid" : "0c6b21473b6e1f7226c8b03d030c3b23_gridexpbar",
    "modeltype" : "PSEXPBAR"
  }, {
    "controlType" : "SEARCHBAR",
    "name" : "searchbar",
    "getPSAppDataEntity" : {
      "modelref" : true,
      "path" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/BXD2.json"
    },
    "getPSControlParam" : {
      "id" : "searchbar"
    },
    "quickGroupCount" : -1,
    "quickSearchMode" : 1,
    "quickSearchWidth" : 0,
    "enableFilter" : false,
    "enableGroup" : false,
    "enableQuickSearch" : true,
    "mobileSearchBar" : false
  }, {
    "getCapPSLanguageRes" : {
      "lanResTag" : "DE.LNAME.BXD2"
    },
    "caption" : "报销单2",
    "codeName" : "GridExpView_Testcaptionbar",
    "controlType" : "CAPTIONBAR",
    "name" : "captionbar",
    "getPSAppDataEntity" : {
      "modelref" : true,
      "path" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/BXD2.json"
    },
    "getPSControlParam" : { }
  } ],
  "getPSDEViewCodeName" : "GridExpView_Test",
  "getPSDEViewId" : "4972696B-62E0-4156-BC04-E5F2516B78A6",
  "getPSViewLayoutPanel" : {
    "codeName" : "Layoutpanel",
    "controlStyle" : "APPDEGRIDEXPVIEW",
    "controlType" : "VIEWLAYOUTPANEL",
    "name" : "layoutpanel",
    "getPSAppDataEntity" : {
      "modelref" : true,
      "path" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/BXD2.json"
    },
    "getPSControlParam" : { },
    "layoutBodyOnly" : true,
    "layoutPanel" : true,
    "useDefaultLayout" : true
  },
  "sideBarLayout" : "LEFT",
  "title" : "报销单2导航",
  "viewStyle" : "DEFAULT",
  "viewType" : "DEGRIDEXPVIEW",
  "enableDP" : true,
  "enableFilter" : true,
  "enableQuickSearch" : true,
  "enableSearch" : true,
  "showDataInfoBar" : true,
  "modelid" : "0c6b21473b6e1f7226c8b03d030c3b23",
  "modeltype" : "PSAPPDEVIEW"
}