appCtorParamsJsonSchema.json 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  1. {
  2. "$schema": "http://json-schema.org/draft-04/schema",
  3. "title": "主配置",
  4. "type": "object",
  5. "required": [
  6. "UITemplateVersion",
  7. "id",
  8. "username",
  9. "password",
  10. "authServiceBaseUrl",
  11. "accountServiceBaseUrl",
  12. "accountServiceRelativeUrl",
  13. "deviceSN",
  14. "scanInterval",
  15. "fuelMappingArr",
  16. "retryCount",
  17. "enableSync",
  18. "excludeCurrentSite",
  19. "syncInterval",
  20. "checkVersionRelativeUrl",
  21. "syncDataRelativeUrl",
  22. "connectionString"
  23. ],
  24. "format": "table",
  25. "properties": {
  26. "UITemplateVersion": {
  27. "type": "string",
  28. "readOnly": true,
  29. "default": "1.0",
  30. "format": "hidden",
  31. "options": {
  32. "compact": true
  33. }
  34. },
  35. "id": {
  36. "type": "integer",
  37. "title": "lang-zh-ch:POS编号lang-en-us:Id of SPS Data Courier App instance",
  38. "default": 1
  39. },
  40. "username": {
  41. "type": "string",
  42. "title": "lang-zh-ch:云端用户名lang-en-us:Login User name of cloud",
  43. "default": "888"
  44. },
  45. "password": {
  46. "type": "string",
  47. "title": "lang-zh-ch:云端用户密码lang-en-us:Login User password of cloud.",
  48. "default": "999999"
  49. },
  50. "authServiceBaseUrl": {
  51. "type": "string",
  52. "title": "lang-zh-ch:认证服务基础URL lang-en-us:Base URL of Authorization Service",
  53. "default": "http://localhost:8698/"
  54. },
  55. "accountServiceBaseUrl": {
  56. "type": "string",
  57. "title": "lang-zh-ch:账户服务基础URL lang-en-us:Base URL of Accounting Service",
  58. "default": "http://localhost:8698/"
  59. },
  60. "accountServiceRelativeUrl": {
  61. "type": "string",
  62. "title": "lang-zh-ch:账户服务的相对URL lang-en-us:Relateive url of accounting service",
  63. "default": "accountinfo/fc/offlineAccount"
  64. },
  65. "deviceSN": {
  66. "type": "string",
  67. "title": "lang-zh-ch:虚拟设备编号(GUID)lang-en-us:Device SN (GUID) of Sps Data Courier instance",
  68. "default": "1F30394A-C902-4953-9E68-9E7AD201A091"
  69. },
  70. "scanInterval": {
  71. "type": "integer",
  72. "title": "lang-zh-ch:检查未上传数据的间隔(单位为秒)lang-en-us:Interval (in seconds) for checking records not uploaded",
  73. "default": 5
  74. },
  75. "fuelMappingArr": {
  76. "type": "array",
  77. "minItems": 1,
  78. "format": "tabs",
  79. "uniqueItems": true,
  80. "title": "lang-zh-ch:油品映射lang-en-us:Fuel barcode and product code mapping for Sps",
  81. "items": {
  82. "type": "object",
  83. "title": "lang-zh-ch:油品编码映射lang-en-us:Fuel Mapping",
  84. "headerTemplate": "{{ self.Barcode }} <-> {{ self.FuelNo }}",
  85. "required": [ "Barcode", "FuelNo" ],
  86. "properties": {
  87. "Barcode": {
  88. "type": "integer",
  89. "title": "lang-zh-ch:油品编号lang-en-us:Fuel barcode"
  90. },
  91. "FuelNo": {
  92. "type": "string",
  93. "title": "lang-zh-ch:后台油品lang-en-us:Fuel product code(e.g. 2001, 1021, 1040, 1090)"
  94. }
  95. }
  96. }
  97. },
  98. "retryCount": {
  99. "type": "integer",
  100. "title": "lang-zh-ch:上传不成功时的重试次数lang-en-us:Number of retries in case of unsuccessful upload",
  101. "default": 3
  102. },
  103. "enableSync": {
  104. "type": "boolean",
  105. "title": "lang-zh-ch:是否启用数据同步(单站一律不启用)lang-en-us:Whether or not to enable data synchroization (Disabled for standalone sites)",
  106. "default": false
  107. },
  108. "excludeCurrentSite": {
  109. "type": "boolean",
  110. "title": "lang-zh-ch:同步时,是否排除本站数据lang-en-us:Whether or not to exclude data from current site during synchronization.",
  111. "default": false
  112. },
  113. "syncInterval": {
  114. "type": "integer",
  115. "title": "lang-zh-ch:数据同步间隔(单位为秒)lang-en-us:Interval (in seconds) for data synchronization",
  116. "default": 30
  117. },
  118. "checkVersionRelativeUrl": {
  119. "type": "string",
  120. "title": "lang-zh-ch:检查数据版本的相对URLlang-en-us:Relateive url of Data Version",
  121. "default": "changehistory/latest"
  122. },
  123. "syncDataRelativeUrl": {
  124. "type": "string",
  125. "title": "lang-zh-ch:数据同步的相对URLlang-en-us:Relateive url of Data Synchronization",
  126. "default": "changehistory/syncFromVersion"
  127. },
  128. "connectionString": {
  129. "type": "object",
  130. "title": "lang-zh-ch:后台数据库连接字符串lang-en-us:Connection string against SPS Database",
  131. "required": [
  132. "Server",
  133. "Port",
  134. "Username",
  135. "Password"
  136. ],
  137. "properties": {
  138. "Server": {
  139. "type": "string",
  140. "title": "lang-zh-ch:服务器地址lang-en-us:Database Server IP Address",
  141. "default": "localhost"
  142. },
  143. "Port": {
  144. "type": "integer",
  145. "title": "lang-zh-ch:服务器端口lang-en-us:Database Server Port",
  146. "default": 3306
  147. },
  148. "Username": {
  149. "type": "string",
  150. "title": "lang-zh-ch:登录用户名lang-en-us:Database login user name",
  151. "default": "root"
  152. },
  153. "Password": {
  154. "type": "string",
  155. "title": "lang-zh-ch:登录密码lang-en-us:Database login password",
  156. "default": "******"
  157. }
  158. }
  159. }
  160. }
  161. }