123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161 |
- {
- "$schema": "http://json-schema.org/draft-04/schema",
- "title": "主配置",
- "type": "object",
- "required": [
- "UITemplateVersion",
- "id",
- "username",
- "password",
- "authServiceBaseUrl",
- "accountServiceBaseUrl",
- "accountServiceRelativeUrl",
- "deviceSN",
- "scanInterval",
- "fuelMappingArr",
- "retryCount",
- "enableSync",
- "excludeCurrentSite",
- "syncInterval",
- "checkVersionRelativeUrl",
- "syncDataRelativeUrl",
- "connectionString"
- ],
- "format": "table",
- "properties": {
- "UITemplateVersion": {
- "type": "string",
- "readOnly": true,
- "default": "1.0",
- "format": "hidden",
- "options": {
- "compact": true
- }
- },
- "id": {
- "type": "integer",
- "title": "lang-zh-ch:POS编号lang-en-us:Id of SPS Data Courier App instance",
- "default": 1
- },
- "username": {
- "type": "string",
- "title": "lang-zh-ch:云端用户名lang-en-us:Login User name of cloud",
- "default": "888"
- },
- "password": {
- "type": "string",
- "title": "lang-zh-ch:云端用户密码lang-en-us:Login User password of cloud.",
- "default": "999999"
- },
- "authServiceBaseUrl": {
- "type": "string",
- "title": "lang-zh-ch:认证服务基础URL lang-en-us:Base URL of Authorization Service",
- "default": "http://localhost:8698/"
- },
- "accountServiceBaseUrl": {
- "type": "string",
- "title": "lang-zh-ch:账户服务基础URL lang-en-us:Base URL of Accounting Service",
- "default": "http://localhost:8698/"
- },
- "accountServiceRelativeUrl": {
- "type": "string",
- "title": "lang-zh-ch:账户服务的相对URL lang-en-us:Relateive url of accounting service",
- "default": "accountinfo/fc/offlineAccount"
- },
- "deviceSN": {
- "type": "string",
- "title": "lang-zh-ch:虚拟设备编号(GUID)lang-en-us:Device SN (GUID) of Sps Data Courier instance",
- "default": "1F30394A-C902-4953-9E68-9E7AD201A091"
- },
- "scanInterval": {
- "type": "integer",
- "title": "lang-zh-ch:检查未上传数据的间隔(单位为秒)lang-en-us:Interval (in seconds) for checking records not uploaded",
- "default": 5
- },
- "fuelMappingArr": {
- "type": "array",
- "minItems": 1,
- "format": "tabs",
- "uniqueItems": true,
- "title": "lang-zh-ch:油品映射lang-en-us:Fuel barcode and product code mapping for Sps",
- "items": {
- "type": "object",
- "title": "lang-zh-ch:油品编码映射lang-en-us:Fuel Mapping",
- "headerTemplate": "{{ self.Barcode }} <-> {{ self.FuelNo }}",
- "required": [ "Barcode", "FuelNo" ],
- "properties": {
- "Barcode": {
- "type": "integer",
- "title": "lang-zh-ch:油品编号lang-en-us:Fuel barcode"
- },
- "FuelNo": {
- "type": "string",
- "title": "lang-zh-ch:后台油品lang-en-us:Fuel product code(e.g. 2001, 1021, 1040, 1090)"
- }
- }
- }
- },
- "retryCount": {
- "type": "integer",
- "title": "lang-zh-ch:上传不成功时的重试次数lang-en-us:Number of retries in case of unsuccessful upload",
- "default": 3
- },
- "enableSync": {
- "type": "boolean",
- "title": "lang-zh-ch:是否启用数据同步(单站一律不启用)lang-en-us:Whether or not to enable data synchroization (Disabled for standalone sites)",
- "default": false
- },
- "excludeCurrentSite": {
- "type": "boolean",
- "title": "lang-zh-ch:同步时,是否排除本站数据lang-en-us:Whether or not to exclude data from current site during synchronization.",
- "default": false
- },
- "syncInterval": {
- "type": "integer",
- "title": "lang-zh-ch:数据同步间隔(单位为秒)lang-en-us:Interval (in seconds) for data synchronization",
- "default": 30
- },
- "checkVersionRelativeUrl": {
- "type": "string",
- "title": "lang-zh-ch:检查数据版本的相对URLlang-en-us:Relateive url of Data Version",
- "default": "changehistory/latest"
- },
- "syncDataRelativeUrl": {
- "type": "string",
- "title": "lang-zh-ch:数据同步的相对URLlang-en-us:Relateive url of Data Synchronization",
- "default": "changehistory/syncFromVersion"
- },
- "connectionString": {
- "type": "object",
- "title": "lang-zh-ch:后台数据库连接字符串lang-en-us:Connection string against SPS Database",
- "required": [
- "Server",
- "Port",
- "Username",
- "Password"
- ],
- "properties": {
- "Server": {
- "type": "string",
- "title": "lang-zh-ch:服务器地址lang-en-us:Database Server IP Address",
- "default": "localhost"
- },
- "Port": {
- "type": "integer",
- "title": "lang-zh-ch:服务器端口lang-en-us:Database Server Port",
- "default": 3306
- },
- "Username": {
- "type": "string",
- "title": "lang-zh-ch:登录用户名lang-en-us:Database login user name",
- "default": "root"
- },
- "Password": {
- "type": "string",
- "title": "lang-zh-ch:登录密码lang-en-us:Database login password",
- "default": "******"
- }
- }
- }
- }
- }
|