db.config.js 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. window.Partials = $.extend(true, window.Partials, {
  2. "config": {
  3. "endpoints": {
  4. "db": {
  5. "local": "http://211.233.4.66:9086/DataService.svc/",
  6. "production": "http://211.233.4.66:9086/DataService.svc/"
  7. },
  8. "odata": {
  9. "local": "http://211.233.4.66:9086/odata",
  10. "production": "http://211.233.4.66:9086/odata"
  11. },
  12. "api": {
  13. "local": "http://211.233.4.66:9086/api",
  14. "production": "http://211.233.4.66:9086/api"
  15. }
  16. },
  17. "services": {
  18. "db": {
  19. "entities": {
  20. "CmSite": {
  21. "key": "SiteId",
  22. "keyType": "Int32"
  23. },
  24. "CmBuilding": {
  25. "key": ["SiteId", "BuildingId"],
  26. "keyType": { "SiteId": "Int32", "BuildingId": "Int32" }
  27. },
  28. "CmUser": {
  29. "key": ["SiteId", "UserId"],
  30. "keyType": { "SiteId": "Int32", "UserId": "String" }
  31. },
  32. "BemsWeatherHourly": {
  33. "key": ["SiteId", "CreatedDate"],
  34. "keyType": { "SiteId": "Int32", "CreatedDate": "DateTime" }
  35. },
  36. "BemsEnergyGoalDaily": {
  37. "key": ["SiteId", "BuildingId", "CreatedDate"],
  38. "keyType": { "SiteId": "Int32", "BuildingId": "Int32", "CreatedDate": "DateTime" }
  39. },
  40. "BemsZone": {
  41. "key": ["SiteId", "BuildingId", "ZoneId"],
  42. "keyType": { "SiteId": "Int32", "BuildingId": "Int32", "ZoneId": "Int32" }
  43. },
  44. "BemsZoneActivate": {
  45. "key": ["SiteId", "BuildingId", "ZoneId", "ServiceTypeId"],
  46. "keyType": { "SiteId": "Int32", "BuildingId": "Int32", "ZoneId": "Int32", "ServiceTypeId": "Int32" }
  47. },
  48. "BemsZoneActivateDaily": {
  49. "key": ["SiteId", "BuildingId", "ZoneId", "ServiceTypeId", "CreatedDate"],
  50. "keyType": { "SiteId": "Int32", "BuildingId": "Int32", "ZoneId": "Int32", "ServiceTypeId": "Int32", "CreatedDate": "DateTime" }
  51. },
  52. "BemsDevice": {
  53. "key": ["SiteId", "BuildingId", "DeviceId"],
  54. "keyType": { "SiteId": "Int32", "BuildingId": "Int32", "DeviceId": "Int32" }
  55. },
  56. "BemsDeviceType": {
  57. "key": ["DeviceTypeId"],
  58. "keyType": { "DeviceTypeId": "Int32" }
  59. },
  60. "BemsDeviceRunHourly": {
  61. "key": ["SiteId", "BuildingId", "ServiceTypeId", "RunDate"],
  62. "keyType": { "SiteId": "Int32", "BuildingId": "Int32", "ServiceTypeId": "Int32", "RunDate": "DateTime" }
  63. },
  64. "BemsNoticePrice": {
  65. "key": ["SiteId", "FuelTypeId", "ApplyDate"],
  66. "keyType": { "SiteId": "Int32", "FuelTypeId": "Int32", "ApplyDate": "DateTime" }
  67. },
  68. "BemsNoticePriceContractType": {
  69. "key": ["FuelTypeId", "ContractType"],
  70. "keyType": { "FuelTypeId": "Int32", "ContractType": "Int32" }
  71. },
  72. "BemsNoticePriceBase": {
  73. "key": ["SiteId", "FuelTypeId", "ApplyDate", "ContractType"],
  74. "keyType": { "SiteId": "Int32", "FuelTypeId": "Int32", "ApplyDate": "DateTime", "ContractType": "Int32" }
  75. },
  76. "BemsNoticePriceDetail": {
  77. "key": ["SiteId", "FuelTypeId", "ApplyDate", "ContractType", "DataId" ],
  78. "keyType": { "SiteId": "Int32", "FuelTypeId": "Int32", "ApplyDate": "DateTime", "ContractType": "Int32", "DataId": "Int32" }
  79. },
  80. "BemsDeviceRunHistory": {
  81. "key": ["SiteId", "BuildingId", "ServiceTypeId", "RunDate", "DeviceId"],
  82. "keyType": { "SiteId": "Int32", "BuildingId": "Int32", "ServiceTypeId": "Int32", "RunDate": "DateTime", "DeviceId": "Int32" }
  83. }
  84. }
  85. },
  86. "odata": {
  87. "entities": {
  88. "ConsumeDaily": {
  89. "key": ["SiteId", "BuildingId", "Year", "Month", "Day" ],
  90. "keyType": { "SiteId": "Int32", "BuildingId": "Int32", "Year": "Int32", "Month": "Int32", "Day": "Int32" }
  91. },
  92. "ConsumeMonthly": {
  93. "key": ["SiteId", "BuildingId", "Year", "Month" ],
  94. "keyType": { "SiteId": "Int32", "BuildingId": "Int32", "Year": "Int32", "Month": "Int32" }
  95. },
  96. "LoadsHourly": {
  97. "key": ["SiteId", "BuildingId", "ServiceTypeId", "Year", "Month", "Hour"],
  98. "keyType": { "SiteId": "Int32", "BuildingId": "Int32", "ServiceTypeId": "Int32", "Year": "Int32", "Hour": "Int32" }
  99. },
  100. "RunCoolerHourly": {
  101. "key": ["SiteId", "BuildingId", "Year", "Month", "Hour"],
  102. "keyType": { "SiteId": "Int32", "BuildingId": "Int32", "Year": "Int32", "Hour": "Int32" }
  103. },
  104. "DeviceRunHistoryGroup": {
  105. "key": ["SiteId", "BuildingId", "ServiceTypeId", "Year", "Month", "Day"],
  106. "keyType": { "SiteId": "Int32", "BuildingId": "Int32", "ServiceTypeId": "Int32", "Year": "Int32", "Month":"Int32", "Day":"Int32" }
  107. }
  108. }
  109. },
  110. "api": {
  111. "entities": {
  112. "BemsNoticePrice": {
  113. "key": ["SiteId", "FuelTypeId", "ApplyDate"],
  114. "keyType": { "SiteId": "Int32", "FuelTypeId": "int32", "ApplyDate": "DateTime" }
  115. },
  116. "ExecuteLoadsHourly": {
  117. "key": ["SiteId", "CreatedDate"],
  118. "keyType": { "SiteId": "Int32", "CreatedDate": "DateTime" }
  119. },
  120. "OptimalDeviceRunHourly": {
  121. "key": ["SiteId", "BuildingId", "ServiceTypeId", "RunDate"],
  122. "keyType": { "SiteId": "Int32", "BuildingId": "Int32", "ServiceTypeId": "Int32", "RunDate": "DateTime" }
  123. },
  124. "RetrofitMonthly": {
  125. "key": ["SiteId", "BuildingId", "Year"],
  126. "keyType": { "SiteId": "Int32", "BuildingId": "Int32", "Year": "Int32" }
  127. },
  128. "RScript": {
  129. "key": ["Name", "Args"],
  130. "keyType": { "Name": "string", "Args": "string" }
  131. }
  132. }
  133. },
  134. }
  135. }
  136. });