Browse Source

Modify config_data page

Kanggu Park 4 years ago
parent
commit
acf3d3fc94
33 changed files with 44085 additions and 88 deletions
  1. 8984 0
      .svn/pristine/01/01969c6160fddb1acf87261d635aa7e767bbd0be.svn-base
  2. 8026 0
      .svn/pristine/07/0790fed0b4d51a126ddba809872f95553ddd19be.svn-base
  3. BIN
      .svn/pristine/0a/0aaa18d746764b1b9ec42039769fb1f5a9bf619d.svn-base
  4. BIN
      .svn/pristine/0d/0d3195fb46f483563ff756e30e74bb59ed5ab4be.svn-base
  5. BIN
      .svn/pristine/15/1567cb874e30f00f415e54a886342ee26d53416d.svn-base
  6. 489 0
      .svn/pristine/19/192a0998c4fea9d23a9de450a9f3b90be4d0a838.svn-base
  7. 201 0
      .svn/pristine/30/304fa41f7d655b3c9f6460a77b64657db10d2633.svn-base
  8. BIN
      .svn/pristine/31/3105d7b6f6367ca5ae2d7dd169174749b04b622f.svn-base
  9. 32 0
      .svn/pristine/36/363d4f92126d9c0d8d862adad19bdba29c26b168.svn-base
  10. 46 0
      .svn/pristine/3d/3d5b6b0ac8841d4ef74ed06c1832e10ae828a7a5.svn-base
  11. 2077 0
      .svn/pristine/5a/5aeedc55d15b9ad5355a9c749e7135449aa6706d.svn-base
  12. BIN
      .svn/pristine/5e/5e4ac2c058eea319a9219daed8e5ce627c59efa4.svn-base
  13. 10 0
      .svn/pristine/80/80668b097b91d57cc90342dc1c171604dea26a4f.svn-base
  14. 59 0
      .svn/pristine/c7/c707354b8d40f17ce777d8af66065f5d58715a35.svn-base
  15. BIN
      .svn/pristine/ce/ce11b95706f7ee531e433331632415f262380bc1.svn-base
  16. 27 0
      .svn/pristine/d7/d7cd543e41f0993b95c2571d5f59f463adb9607c.svn-base
  17. 2726 0
      .svn/pristine/d8/d886d4fdebb11bda101bfab8993b2d4d77c6a5ec.svn-base
  18. 1486 0
      .svn/pristine/db/dbbfabdc83fa1acc65eac008eec951d3be4516de.svn-base
  19. BIN
      .svn/pristine/ed/ed1a82d3b010cfe01906d7d2c56bf4bde1dbd596.svn-base
  20. 19770 0
      .svn/pristine/f2/f266bce421f3d4c8344a1baba22960d6a42dd325.svn-base
  21. 105 0
      .svn/pristine/f4/f4a52a85f939fe84974e2a231f8b7812c8034130.svn-base
  22. BIN
      .svn/pristine/fe/fed46509dee0a3db1d00a9d8025a0b7b98d578f3.svn-base
  23. BIN
      .svn/wc.db
  24. 0 25
      BemsWebApplication.Desktop/views/02_configuration/28_config_data/config_data-popup.dxview
  25. 9 8
      BemsWebApplication.Desktop/views/02_configuration/28_config_data/config_data.js
  26. 1 1
      BemsWebApplication.Desktop/views/09_energy_control/simulator_ice_storage/simulator_ice_storage.js
  27. 1 10
      BemsWebApplication.Shared/data/bemsconfigdata-view-model.js
  28. 0 3
      iBemsDataService/Model/BemsConfigData.cs
  29. 1 0
      iBemsDataService/Model/CmPosition.cs
  30. 1 1
      iBemsDataService/Model/DataModel.Context.cs
  31. 1 1
      iBemsDataService/Model/DataModel.Designer.cs
  32. 32 38
      iBemsDataService/Model/DataModel.edmx
  33. 1 1
      iBemsDataService/Model/DataModel.edmx.diagram

+ 8984 - 0
.svn/pristine/01/01969c6160fddb1acf87261d635aa7e767bbd0be.svn-base

@@ -0,0 +1,8984 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Schema Namespace="iBemsModel" Alias="Self" annotation:UseStrongSpatialTypes="false" xmlns:annotation="http://schemas.microsoft.com/ado/2009/02/edm/annotation" xmlns="http://schemas.microsoft.com/ado/2009/11/edm">
+  <EntityType Name="BemsAnalysisType">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="AnalysisType" />
+    </Key>
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="AnalysisType" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+    <Property Name="Name" Type="String" MaxLength="48" FixedLength="false" Unicode="true" />
+    <NavigationProperty Name="BemsMonitoringPointToAnlaysisType" Relationship="Self.FK__BemsMonitoringPo__1372D2FE" FromRole="BemsAnalysisType" ToRole="BemsMonitoringPointToAnlaysisType" />
+  </EntityType>
+  <EntityType Name="BemsControlPointHistory">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="FacilityCode" />
+      <PropertyRef Name="PropertyId" />
+      <PropertyRef Name="CreateDateTime" />
+    </Key>
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
+    <Property Name="FacilityCode" Type="Int32" Nullable="false" />
+    <Property Name="PropertyId" Type="Int32" Nullable="false" />
+    <Property Name="CreateDateTime" Type="DateTime" Nullable="false" Precision="3" />
+    <Property Name="ControlValue" Type="Double" Nullable="false" />
+    <Property Name="WriteServiceName" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
+    <Property Name="ActionDateTime" Type="DateTime" Precision="3" />
+    <NavigationProperty Name="BemsFacilityType" Relationship="Self.FK_BemsControlPointHistory_BemsFacilityType" FromRole="BemsControlPointHistory" ToRole="BemsFacilityType" />
+    <NavigationProperty Name="BemsMonitoringPoint" Relationship="Self.FK_BemsControlPointHistory_BemsMonitoringPoint" FromRole="BemsControlPointHistory" ToRole="BemsMonitoringPoint" />
+  </EntityType>
+  <EntityType Name="BemsFacilityType">
+    <Key>
+      <PropertyRef Name="FacilityTypeId" />
+    </Key>
+    <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
+    <Property Name="Name" Type="String" MaxLength="48" FixedLength="false" Unicode="true" />
+    <NavigationProperty Name="BemsControlPointHistory" Relationship="Self.FK_BemsControlPointHistory_BemsFacilityType" FromRole="BemsFacilityType" ToRole="BemsControlPointHistory" />
+    <NavigationProperty Name="BemsMonitoringPointBaseData" Relationship="Self.FK__BemsMonitoringPointBaseData__BemsFacilityType" FromRole="BemsFacilityType" ToRole="BemsMonitoringPointBaseData" />
+    <NavigationProperty Name="BemsMonitoringPointHistory15min" Relationship="Self.FK__BemsMonitoringPointHistory15min__BemsFacilityType" FromRole="BemsFacilityType" ToRole="BemsMonitoringPointHistory15min" />
+    <NavigationProperty Name="BemsMonitoringPointHistoryDaily" Relationship="Self.FK__BemsMonitoringPointHistoryDaily__BemsFacilityType" FromRole="BemsFacilityType" ToRole="BemsMonitoringPointHistoryDaily" />
+    <NavigationProperty Name="BemsMonitoringPointHistoryHourly" Relationship="Self.FK__BemsMonitoringPointHistoryHourly__BemsFacilityType" FromRole="BemsFacilityType" ToRole="BemsMonitoringPointHistoryHourly" />
+    <NavigationProperty Name="BemsMonitoringPointToAnlaysisType" Relationship="Self.FK__BemsMonitoringPointToAnlaysisType__BemsFacilityType" FromRole="BemsFacilityType" ToRole="BemsMonitoringPointToAnlaysisType" />
+    <NavigationProperty Name="BemsMonitoringPoint" Relationship="Self.FK_BemsMonitoringPoint_BemsFacilityType" FromRole="BemsFacilityType" ToRole="BemsMonitoringPoint" />
+    <NavigationProperty Name="BemsChartInfo" Relationship="iBemsModel.FK_BemsChartInfo_BemsFacilityType" FromRole="BemsFacilityType" ToRole="BemsChartInfo" />
+    <NavigationProperty Name="BemsMonitoringPointConfig" Relationship="iBemsModel.FK_BemsMonitoringPointConfig_BemsFacilityType1" FromRole="BemsFacilityType" ToRole="BemsMonitoringPointConfig" />
+    <NavigationProperty Name="BemsAlarmSetting" Relationship="iBemsModel.FK_BemsAlarmSetting_BemsFacilityType" FromRole="BemsFacilityType" ToRole="BemsAlarmSetting" />
+    <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK__CmFacility__BemsFacilityType" FromRole="BemsFacilityType" ToRole="CmFacility" />
+    <NavigationProperty Name="BemsMonitoringPointHistory15minRawData" Relationship="iBemsModel.FK__BemsMonitoringPointHistory15minRawData__BemsFacilityType" FromRole="BemsFacilityType" ToRole="BemsMonitoringPointHistory15minRawData" />
+  </EntityType>
+  <EntityType Name="BemsFactorCo2">
+    <Key>
+      <PropertyRef Name="FuelTypeId" />
+    </Key>
+    <Property Name="FuelTypeId" Type="Int16" Nullable="false" />
+    <Property Name="Factor" Type="Double" Nullable="false" />
+    <NavigationProperty Name="BemsFuelType" Relationship="iBemsModel.FK__BemsFactorCo2__BemsFuelType" FromRole="BemsFactorCo2" ToRole="BemsFuelType" />
+  </EntityType>
+  <EntityType Name="BemsFactorToe">
+    <Key>
+      <PropertyRef Name="FuelTypeId" />
+    </Key>
+    <Property Name="FuelTypeId" Type="Int16" Nullable="false" />
+    <Property Name="TotalFactor" Type="Double" Nullable="false" />
+    <Property Name="PureFactor" Type="Double" Nullable="false" />
+    <Property Name="kcal" Type="Double" />
+    <NavigationProperty Name="BemsFuelType" Relationship="iBemsModel.FK__BemsFactorToe__BemsFuelType" FromRole="BemsFactorToe" ToRole="BemsFuelType" />
+  </EntityType>
+  <EntityType Name="BemsFormula">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="FacilityTypeId" />
+      <PropertyRef Name="FacilityCode" />
+      <PropertyRef Name="FormulaId" />
+    </Key>
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
+    <Property Name="FacilityCode" Type="Int32" Nullable="false" />
+    <Property Name="FormulaId" Type="Int32" Nullable="false" />
+    <Property Name="Formula" Type="String" MaxLength="120" FixedLength="false" Unicode="true" Nullable="false" />
+    <NavigationProperty Name="BemsFormulaBase" Relationship="Self.FK__BemsFormula__BemsFormulaBase" FromRole="BemsFormula" ToRole="BemsFormulaBase" />
+    <NavigationProperty Name="BemsFormulaParameter" Relationship="Self.FK__BemsFormulaParameter__BemsFormula" FromRole="BemsFormula" ToRole="BemsFormulaParameter" />
+    <NavigationProperty Name="BemsPriceFormula" Relationship="iBemsModel.FK_BemsPriceFormula_BemsFormula" FromRole="BemsFormula" ToRole="BemsPriceFormula" />
+  </EntityType>
+  <EntityType Name="BemsFormulaBase">
+    <Key>
+      <PropertyRef Name="FacilityTypeId" />
+      <PropertyRef Name="FormulaId" />
+    </Key>
+    <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
+    <Property Name="FormulaId" Type="Int32" Nullable="false" />
+    <Property Name="Name" Type="String" MaxLength="32" FixedLength="false" Unicode="true" Nullable="false" />
+    <NavigationProperty Name="BemsFormula" Relationship="Self.FK__BemsFormula__BemsFormulaBase" FromRole="BemsFormulaBase" ToRole="BemsFormula" />
+  </EntityType>
+  <EntityType Name="BemsFormulaParameter">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="FacilityCode" />
+      <PropertyRef Name="FormulaId" />
+      <PropertyRef Name="ParameterId" />
+    </Key>
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
+    <Property Name="FacilityCode" Type="Int32" Nullable="false" />
+    <Property Name="FormulaId" Type="Int32" Nullable="false" />
+    <Property Name="ParameterId" Type="String" MaxLength="1" FixedLength="true" Unicode="true" Nullable="false" />
+    <Property Name="ParameterFacilityCode" Type="Int32" Nullable="false" />
+    <Property Name="ParameterPropertyId" Type="Int32" Nullable="false" />
+    <NavigationProperty Name="BemsFormula" Relationship="Self.FK__BemsFormulaParameter__BemsFormula" FromRole="BemsFormulaParameter" ToRole="BemsFormula" />
+    <NavigationProperty Name="BemsMonitoringPoint" Relationship="Self.FK__BemsFormulaParameter__BemsMonitoringPoint" FromRole="BemsFormulaParameter" ToRole="BemsMonitoringPoint" />
+    <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK_BemsFormulaParameter_CmFacility" FromRole="BemsFormulaParameter" ToRole="CmFacility" />
+  </EntityType>
+  <EntityType Name="BemsFormulaTable">
+    <Key>
+      <PropertyRef Name="TableId" />
+    </Key>
+    <Property Name="TableId" Type="Int32" Nullable="false" />
+    <Property Name="FunctionName" Type="String" MaxLength="20" FixedLength="false" Unicode="true" Nullable="false" />
+    <Property Name="Description" Type="String" MaxLength="80" FixedLength="false" Unicode="true" Nullable="false" />
+    <NavigationProperty Name="BemsFormulaTableValue" Relationship="Self.FK__BemsFormulaTableValue__BemsFormulaTable" FromRole="BemsFormulaTable" ToRole="BemsFormulaTableValue" />
+  </EntityType>
+  <EntityType Name="BemsFormulaTableValue">
+    <Key>
+      <PropertyRef Name="TableId" />
+      <PropertyRef Name="XValue" />
+    </Key>
+    <Property Name="TableId" Type="Int32" Nullable="false" />
+    <Property Name="XValue" Type="Double" Nullable="false" />
+    <Property Name="YValue" Type="Double" Nullable="false" />
+    <NavigationProperty Name="BemsFormulaTable" Relationship="Self.FK__BemsFormulaTableValue__BemsFormulaTable" FromRole="BemsFormulaTableValue" ToRole="BemsFormulaTable" />
+  </EntityType>
+  <EntityType Name="BemsMonitoringPoint">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="FacilityCode" />
+      <PropertyRef Name="PropertyId" />
+    </Key>
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
+    <Property Name="FacilityCode" Type="Int32" Nullable="false" />
+    <Property Name="PropertyId" Type="Int32" Nullable="false" />
+    <Property Name="ValueType" Type="Int32" Nullable="false" />
+    <Property Name="ServiceTypeId" Type="Int16" />
+    <Property Name="FuelTypeId" Type="Int16" />
+    <Property Name="Name" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
+    <Property Name="Description" Type="String" MaxLength="256" FixedLength="false" Unicode="true" />
+    <Property Name="BuildingId" Type="Int32" />
+    <Property Name="FloorId" Type="Int32" />
+    <Property Name="ZoneId" Type="Int32" />
+    <NavigationProperty Name="BemsControlPointHistory" Relationship="Self.FK_BemsControlPointHistory_BemsMonitoringPoint" FromRole="BemsMonitoringPoint" ToRole="BemsControlPointHistory" />
+    <NavigationProperty Name="BemsFacilityType" Relationship="Self.FK_BemsMonitoringPoint_BemsFacilityType" FromRole="BemsMonitoringPoint" ToRole="BemsFacilityType" />
+    <NavigationProperty Name="BemsFormulaParameter" Relationship="Self.FK__BemsFormulaParameter__BemsMonitoringPoint" FromRole="BemsMonitoringPoint" ToRole="BemsFormulaParameter" />
+    <NavigationProperty Name="BemsMonitoringPointToAnlaysisType" Relationship="Self.FK__BemsMonitoringPo__155B1B70" FromRole="BemsMonitoringPoint" ToRole="BemsMonitoringPointToAnlaysisType" />
+    <NavigationProperty Name="BemsServiceType" Relationship="Self.FK__BemsMonitoringPoint__BemsServiceType" FromRole="BemsMonitoringPoint" ToRole="BemsServiceType" />
+    <NavigationProperty Name="CmBuilding" Relationship="Self.FK__BemsMonitoringPoint__CmBuilding" FromRole="BemsMonitoringPoint" ToRole="CmBuilding" />
+    <NavigationProperty Name="CmFloor" Relationship="Self.FK__BemsMonitoringPoint__CmFloor" FromRole="BemsMonitoringPoint" ToRole="CmFloor" />
+    <NavigationProperty Name="CmZone" Relationship="Self.FK__BemsMonitoringPoint__CmZone" FromRole="BemsMonitoringPoint" ToRole="CmZone" />
+    <NavigationProperty Name="BemsMonitoringPointHistory15min" Relationship="Self.FK__BemsMonitoringPointHistory15min__BemsMonitoringPoint" FromRole="BemsMonitoringPoint" ToRole="BemsMonitoringPointHistory15min" />
+    <NavigationProperty Name="BemsMonitoringPointHistoryDaily" Relationship="Self.FK__BemsMonitoringPointHistoryDaily__BemsMonitoringPoint" FromRole="BemsMonitoringPoint" ToRole="BemsMonitoringPointHistoryDaily" />
+    <NavigationProperty Name="BemsMonitoringPointHistoryHourly" Relationship="Self.FK__BemsMonitoringPointHistoryHourly__BemsMonitoringPoint" FromRole="BemsMonitoringPoint" ToRole="BemsMonitoringPointHistoryHourly" />
+    <NavigationProperty Name="BemsMonitoringPointConfig" Relationship="iBemsModel.FK_BemsMonitoringPointConfig_BemsMonitoringPoint" FromRole="BemsMonitoringPoint" ToRole="BemsMonitoringPointConfig" />
+    <NavigationProperty Name="BemsFuelType" Relationship="iBemsModel.FK__BemsMonitoringPoint__BemsFuelType" FromRole="BemsMonitoringPoint" ToRole="BemsFuelType" />
+    <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK_BemsMonitoringPoint_CmFacility" FromRole="BemsMonitoringPoint" ToRole="CmFacility" />
+    <NavigationProperty Name="BemsMonitoringPointHistory15minRawData" Relationship="iBemsModel.FK__BemsMonitoringPointHistory15minRawData__BemsMonitoringPoint" FromRole="BemsMonitoringPoint" ToRole="BemsMonitoringPointHistory15minRawData" />
+  </EntityType>
+  <EntityType Name="BemsMonitoringPointBaseData">
+    <Key>
+      <PropertyRef Name="FacilityTypeId" />
+      <PropertyRef Name="PropertyId" />
+    </Key>
+    <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
+    <Property Name="PropertyId" Type="Int32" Nullable="false" />
+    <Property Name="ValueType" Type="Int32" Nullable="false" />
+    <Property Name="IsAccumulated" Type="Boolean" Nullable="false" />
+    <Property Name="ServiceTypeId" Type="Int16" />
+    <Property Name="FuelTypeId" Type="Int16" />
+    <Property Name="Name" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
+    <Property Name="Description" Type="String" MaxLength="256" FixedLength="false" Unicode="true" />
+    <Property Name="IsSampled" Type="Boolean" />
+    <NavigationProperty Name="BemsFacilityType" Relationship="Self.FK__BemsMonitoringPointBaseData__BemsFacilityType" FromRole="BemsMonitoringPointBaseData" ToRole="BemsFacilityType" />
+    <NavigationProperty Name="BemsServiceType" Relationship="Self.FK__BemsMonitoringPointBaseData__BemsServiceType" FromRole="BemsMonitoringPointBaseData" ToRole="BemsServiceType" />
+    <Property Name="IsConverted" Type="Boolean" />
+    <NavigationProperty Name="BemsFuelType" Relationship="iBemsModel.FK__BemsMonitoringPointBaseData__BemsFuelType" FromRole="BemsMonitoringPointBaseData" ToRole="BemsFuelType" />
+  </EntityType>
+  <EntityType Name="BemsMonitoringPointHistory15min">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="FacilityCode" />
+      <PropertyRef Name="PropertyId" />
+      <PropertyRef Name="CreatedDateTime" />
+    </Key>
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
+    <Property Name="FacilityCode" Type="Int32" Nullable="false" />
+    <Property Name="PropertyId" Type="Int32" Nullable="false" />
+    <Property Name="CreatedDateTime" Type="DateTime" Nullable="false" Precision="3" />
+    <Property Name="CurrentValue" Type="Double" Nullable="false" />
+    <NavigationProperty Name="BemsFacilityType" Relationship="Self.FK__BemsMonitoringPointHistory15min__BemsFacilityType" FromRole="BemsMonitoringPointHistory15min" ToRole="BemsFacilityType" />
+    <NavigationProperty Name="BemsMonitoringPoint" Relationship="Self.FK__BemsMonitoringPointHistory15min__BemsMonitoringPoint" FromRole="BemsMonitoringPointHistory15min" ToRole="BemsMonitoringPoint" />
+  </EntityType>
+  <EntityType Name="BemsMonitoringPointHistoryDaily">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="FacilityCode" />
+      <PropertyRef Name="PropertyId" />
+      <PropertyRef Name="CreatedDateTime" />
+    </Key>
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
+    <Property Name="FacilityCode" Type="Int32" Nullable="false" />
+    <Property Name="PropertyId" Type="Int32" Nullable="false" />
+    <Property Name="CreatedDateTime" Type="DateTime" Nullable="false" Precision="3" />
+    <Property Name="DailyValue" Type="Double" Nullable="false" />
+    <Property Name="MaxValue" Type="Double" />
+    <Property Name="MinValue" Type="Double" />
+    <NavigationProperty Name="BemsFacilityType" Relationship="Self.FK__BemsMonitoringPointHistoryDaily__BemsFacilityType" FromRole="BemsMonitoringPointHistoryDaily" ToRole="BemsFacilityType" />
+    <NavigationProperty Name="BemsMonitoringPoint" Relationship="Self.FK__BemsMonitoringPointHistoryDaily__BemsMonitoringPoint" FromRole="BemsMonitoringPointHistoryDaily" ToRole="BemsMonitoringPoint" />
+  </EntityType>
+  <EntityType Name="BemsMonitoringPointHistoryHourly">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="FacilityCode" />
+      <PropertyRef Name="PropertyId" />
+      <PropertyRef Name="CreatedDateTime" />
+    </Key>
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
+    <Property Name="FacilityCode" Type="Int32" Nullable="false" />
+    <Property Name="PropertyId" Type="Int32" Nullable="false" />
+    <Property Name="CreatedDateTime" Type="DateTime" Nullable="false" Precision="3" />
+    <Property Name="CurrentValue" Type="Double" Nullable="false" />
+    <NavigationProperty Name="BemsFacilityType" Relationship="Self.FK__BemsMonitoringPointHistoryHourly__BemsFacilityType" FromRole="BemsMonitoringPointHistoryHourly" ToRole="BemsFacilityType" />
+    <NavigationProperty Name="BemsMonitoringPoint" Relationship="Self.FK__BemsMonitoringPointHistoryHourly__BemsMonitoringPoint" FromRole="BemsMonitoringPointHistoryHourly" ToRole="BemsMonitoringPoint" />
+  </EntityType>
+  <EntityType Name="BemsMonitoringPointToAnlaysisType">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="FacilityTypeId" />
+      <PropertyRef Name="FacilityCode" />
+      <PropertyRef Name="PropertyId" />
+      <PropertyRef Name="AnalysisType" />
+    </Key>
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
+    <Property Name="FacilityCode" Type="Int32" Nullable="false" />
+    <Property Name="PropertyId" Type="Int32" Nullable="false" />
+    <Property Name="AnalysisType" Type="Int32" Nullable="false" />
+    <NavigationProperty Name="BemsAnalysisType" Relationship="Self.FK__BemsMonitoringPo__1372D2FE" FromRole="BemsMonitoringPointToAnlaysisType" ToRole="BemsAnalysisType" />
+    <NavigationProperty Name="BemsFacilityType" Relationship="Self.FK__BemsMonitoringPointToAnlaysisType__BemsFacilityType" FromRole="BemsMonitoringPointToAnlaysisType" ToRole="BemsFacilityType" />
+    <NavigationProperty Name="BemsMonitoringPoint" Relationship="Self.FK__BemsMonitoringPo__155B1B70" FromRole="BemsMonitoringPointToAnlaysisType" ToRole="BemsMonitoringPoint" />
+  </EntityType>
+  <EntityType Name="BemsServiceType">
+    <Key>
+      <PropertyRef Name="ServiceTypeId" />
+    </Key>
+    <Property Name="ServiceTypeId" Type="Int16" Nullable="false" />
+    <Property Name="Name" Type="String" MaxLength="48" FixedLength="false" Unicode="true" />
+    <NavigationProperty Name="BemsMonitoringPoint" Relationship="Self.FK__BemsMonitoringPoint__BemsServiceType" FromRole="BemsServiceType" ToRole="BemsMonitoringPoint" />
+    <NavigationProperty Name="BemsMonitoringPointBaseData" Relationship="Self.FK__BemsMonitoringPointBaseData__BemsServiceType" FromRole="BemsServiceType" ToRole="BemsMonitoringPointBaseData" />
+    <NavigationProperty Name="BemsEnergyDaily" Relationship="iBemsModel.FK__BemsEnergyDaily__BemsServiceType" FromRole="BemsServiceType" ToRole="BemsEnergyDaily" />
+  </EntityType>
+  <EntityType Name="CmAnnouncement">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="AnnouncementId" />
+    </Key>
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="AnnouncementId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+    <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
+    <Property Name="Title" Type="String" MaxLength="128" FixedLength="false" Unicode="true" Nullable="false" />
+    <Property Name="Contents" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" Nullable="false" />
+    <Property Name="RegisterUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
+    <Property Name="FileId" Type="Int32" />
+    <Property Name="AddDate" Type="DateTime" Nullable="false" Precision="3" />
+    <Property Name="UpdateDate" Type="DateTime" Nullable="false" Precision="3" />
+    <Property Name="IsUse" Type="Boolean" />
+    <Property Name="ReadCount" Type="Int32" Nullable="false" />
+    <NavigationProperty Name="CmBusinessField" Relationship="Self.FK_CmAnnouncement_CmBusinessField" FromRole="CmAnnouncement" ToRole="CmBusinessField" />
+    <NavigationProperty Name="CmFile" Relationship="Self.FK_CmAnnouncement_CmFile" FromRole="CmAnnouncement" ToRole="CmFile" />
+    <NavigationProperty Name="CmUser" Relationship="Self.FK_CmAnnouncement_CmUser" FromRole="CmAnnouncement" ToRole="CmUser" />
+  </EntityType>
+  <EntityType Name="CmBuilding">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="BuildingId" />
+    </Key>
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="BuildingId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+    <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
+    <NavigationProperty Name="BemsMonitoringPoint" Relationship="Self.FK__BemsMonitoringPoint__CmBuilding" FromRole="CmBuilding" ToRole="BemsMonitoringPoint" />
+    <NavigationProperty Name="CmFloor" Relationship="Self.FK__CmFloor__3CF40B7E" FromRole="CmBuilding" ToRole="CmFloor" />
+    <NavigationProperty Name="CmZone" Relationship="Self.FK__CmZone__CmBuilding" FromRole="CmBuilding" ToRole="CmZone" />
+    <NavigationProperty Name="CmZoneTempHumiSet" Relationship="Self.FK_CmZoneTempHumiSet_CmBuilding" FromRole="CmBuilding" ToRole="CmZoneTempHumiSet" />
+    <Property Name="FileId" Type="Int32" />
+    <Property Name="IsUse" Type="Boolean" />
+    <Property Name="SortOrderNo" Type="Int32" />
+    <NavigationProperty Name="CmPatrolPos" Relationship="iBemsModel.FK_CmPatrolPos_CmBuilding" FromRole="CmBuilding" ToRole="CmPatrolPos" />
+    <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__CmBuildin__SiteI__3BFFE745" FromRole="CmBuilding" ToRole="CmSite" />
+    <NavigationProperty Name="BemsEnergyDaily" Relationship="iBemsModel.FK__BemsEnergyDaily__CmBuilding" FromRole="CmBuilding" ToRole="BemsEnergyDaily" />
+    <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK__CmFacility__CmBuilding" FromRole="CmBuilding" ToRole="CmFacility" />
+  </EntityType>
+  <EntityType Name="CmBusinessField">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="BusinessFieldId" />
+    </Key>
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="BusinessFieldId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+    <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
+    <Property Name="IsUse" Type="Boolean" />
+    <NavigationProperty Name="CmAnnouncement" Relationship="Self.FK_CmAnnouncement_CmBusinessField" FromRole="CmBusinessField" ToRole="CmAnnouncement" />
+    <NavigationProperty Name="FmsFacilityManual" Relationship="Self.FK__CmFacilityManual__7BE56230" FromRole="CmBusinessField" ToRole="FmsFacilityManual" />
+    <NavigationProperty Name="FmsLicense" Relationship="Self.FK__FmsLicense__CmBusinessField" FromRole="CmBusinessField" ToRole="FmsLicense" />
+    <NavigationProperty Name="FmsMaterialCarriedForward" Relationship="Self.FK__FmsMaterialCarriedForward__CmBusinessField" FromRole="CmBusinessField" ToRole="FmsMaterialCarriedForward" />
+    <NavigationProperty Name="FmsMaterialCodeLocation" Relationship="Self.FK__FmsMaterialCodeLocation__CmBusinessField" FromRole="CmBusinessField" ToRole="FmsMaterialCodeLocation" />
+    <NavigationProperty Name="FmsMaterialPurchaseOrder" Relationship="Self.FK__FmsMaterialOrder__CmBusinessField" FromRole="CmBusinessField" ToRole="FmsMaterialPurchaseOrder" />
+    <NavigationProperty Name="FmsMaterialPurchaseRequest" Relationship="Self.FK__FmsMaterialPurchasingRequest__CmBusinessField" FromRole="CmBusinessField" ToRole="FmsMaterialPurchaseRequest" />
+    <NavigationProperty Name="FmsMaterialStored" Relationship="Self.FK__FmsMaterialStored__CmBusinessField" FromRole="CmBusinessField" ToRole="FmsMaterialStored" />
+    <NavigationProperty Name="FmsMaterialWarehouse" Relationship="Self.FK__FmsMaterialWarehouse__CmBusinessField" FromRole="CmBusinessField" ToRole="FmsMaterialWarehouse" />
+    <NavigationProperty Name="FmsWorkOrder" Relationship="Self.FK__FmsWorkOrder__CmBusinessField" FromRole="CmBusinessField" ToRole="FmsWorkOrder" />
+    <NavigationProperty Name="FmsWorkRequest" Relationship="Self.FK__FmsWorkRequest__CmBusinessField" FromRole="CmBusinessField" ToRole="FmsWorkRequest" />
+    <NavigationProperty Name="FmsWorkSchedule" Relationship="Self.FK__FmsWorkSchedule__CmBusinessField" FromRole="CmBusinessField" ToRole="FmsWorkSchedule" />
+    <NavigationProperty Name="CmUser" Relationship="Self.FK_CmUser_CmBusinessField" FromRole="CmBusinessField" ToRole="CmUser" />
+    <NavigationProperty Name="FmsMaterial" Relationship="iBemsModel.FK_FmsMaterial_CmBusinessField" FromRole="CmBusinessField" ToRole="FmsMaterial" />
+    <NavigationProperty Name="FmsMaterialRelease" Relationship="iBemsModel.FK_FmsMaterialRelease_CmBusinessField" FromRole="CmBusinessField" ToRole="FmsMaterialRelease" />
+    <NavigationProperty Name="FmsReport" Relationship="iBemsModel.FK_FmsReport_CmBusinessField" FromRole="CmBusinessField" ToRole="FmsReport" />
+    <NavigationProperty Name="FmsDailyReport" Relationship="iBemsModel.FK_FmsDailyReport_CmBusinessField" FromRole="CmBusinessField" ToRole="FmsDailyReport" />
+  </EntityType>
+  <EntityType Name="CmCompany">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="CompanyId" />
+    </Key>
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="CompanyId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+    <Property Name="CompanyTypeId" Type="Int32" Nullable="false" />
+    <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
+    <Property Name="PhoneNo" Type="String" MaxLength="20" FixedLength="false" Unicode="true" Nullable="false" />
+    <Property Name="FaxNo" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
+    <Property Name="RepresentativeName" Type="String" MaxLength="20" FixedLength="false" Unicode="true" Nullable="false" />
+    <Property Name="SalesName" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
+    <Property Name="SalesPhoneNo" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
+    <Property Name="AddressZip1" Type="String" MaxLength="5" FixedLength="true" Unicode="true" />
+    <Property Name="AddressZip2" Type="String" MaxLength="3" FixedLength="true" Unicode="true" />
+    <Property Name="Address1" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
+    <Property Name="Adderss2" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
+    <Property Name="Homepage" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
+    <Property Name="Comment" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
+    <Property Name="IsUse" Type="Boolean" />
+    <NavigationProperty Name="CmCompanyType" Relationship="Self.FK__CmCompany__345EC57D" FromRole="CmCompany" ToRole="CmCompanyType" />
+    <NavigationProperty Name="CmDepartment" Relationship="Self.FK__CmDepartment__3552E9B6" FromRole="CmCompany" ToRole="CmDepartment" />
+    <NavigationProperty Name="CmUser" Relationship="Self.FK_CmUser_CmCompany" FromRole="CmCompany" ToRole="CmUser" />
+    <NavigationProperty Name="FmsAccident" Relationship="iBemsModel.FK_FmsAccident_CmCompany" FromRole="CmCompany" ToRole="FmsAccident" />
+    <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__CmCompany__SiteI__336AA144" FromRole="CmCompany" ToRole="CmSite" />
+  </EntityType>
+  <EntityType Name="CmCompanyType">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="CompanyTypeId" />
+    </Key>
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="CompanyTypeId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+    <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
+    <Property Name="IsUse" Type="Boolean" />
+    <NavigationProperty Name="CmCompany" Relationship="Self.FK__CmCompany__345EC57D" FromRole="CmCompanyType" ToRole="CmCompany" />
+  </EntityType>
+  <EntityType Name="CmDepartment">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="CompanyId" />
+      <PropertyRef Name="DepartmentId" />
+    </Key>
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="CompanyId" Type="Int32" Nullable="false" />
+    <Property Name="DepartmentId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+    <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
+    <Property Name="ShortName" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
+    <Property Name="FaxNo" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
+    <Property Name="PhoneNo" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
+    <Property Name="Comment" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
+    <Property Name="IsUse" Type="Boolean" />
+    <NavigationProperty Name="CmCompany" Relationship="Self.FK__CmDepartment__3552E9B6" FromRole="CmDepartment" ToRole="CmCompany" />
+    <NavigationProperty Name="CmUser" Relationship="Self.FK_CmUser_CmDepartment" FromRole="CmDepartment" ToRole="CmUser" />
+    <NavigationProperty Name="FmsAccident" Relationship="Self.FK_FmsAccident_CmDepartment" FromRole="CmDepartment" ToRole="FmsAccident" />
+  </EntityType>
+  <EntityType Name="CmFacilityFile">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="FileId" />
+    </Key>
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="FileId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+    <Property Name="FacilityCode" Type="Int32" Nullable="false" />
+    <Property Name="InsertedDate" Type="DateTime" Precision="3" />
+    <Property Name="InsertedUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
+    <Property Name="UpdatedDate" Type="DateTime" Precision="3" />
+    <Property Name="UpdatedUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
+    <NavigationProperty Name="CmFile" Relationship="Self.FK__CmFacilityFile__CmFile" FromRole="CmFacilityFile" ToRole="CmFile" />
+    <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK__CmFacilityFile__7720AD13" FromRole="CmFacilityFile" ToRole="CmFacility" />
+  </EntityType>
+  <EntityType Name="CmFacilityTempSet">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="FacilityCode" />
+    </Key>
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="FacilityCode" Type="Int32" Nullable="false" />
+    <Property Name="T1" Type="Double" Nullable="false" />
+    <Property Name="T2" Type="Double" Nullable="false" />
+    <Property Name="T3" Type="Double" Nullable="false" />
+    <Property Name="T4" Type="Double" Nullable="false" />
+    <Property Name="T5" Type="Double" Nullable="false" />
+    <Property Name="T6" Type="Double" Nullable="false" />
+    <Property Name="T7" Type="Double" Nullable="false" />
+    <Property Name="T8" Type="Double" Nullable="false" />
+    <Property Name="T9" Type="Double" Nullable="false" />
+    <Property Name="T10" Type="Double" Nullable="false" />
+    <Property Name="T11" Type="Double" Nullable="false" />
+    <Property Name="T12" Type="Double" Nullable="false" />
+    <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_CmFacilityTempSet_CmSite" FromRole="CmFacilityTempSet" ToRole="CmSite" />
+    <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK_CmFacilityTempSet_CmFacility" FromRole="CmFacilityTempSet" ToRole="CmFacility" />
+  </EntityType>
+  <EntityType Name="CmFile" m:HasStream="true" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="FileId" />
+    </Key>
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="FileId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+    <Property Name="FileCategoryId" Type="Int32" Nullable="false" />
+    <Property Name="Name" Type="String" MaxLength="256" FixedLength="false" Unicode="true" Nullable="false" />
+    <Property Name="FileSize" Type="Int32" />
+    <Property Name="CreatedDate" Type="DateTime" Precision="3" />
+    <Property Name="ContentType" Type="String" MaxLength="128" FixedLength="false" Unicode="true" />
+    <NavigationProperty Name="CmAnnouncement" Relationship="Self.FK_CmAnnouncement_CmFile" FromRole="CmFile" ToRole="CmAnnouncement" />
+    <NavigationProperty Name="CmFacilityFile" Relationship="Self.FK__CmFacilityFile__CmFile" FromRole="CmFile" ToRole="CmFacilityFile" />
+    <NavigationProperty Name="CmFileCategory" Relationship="Self.FK__CmFile__CmFileCategory" FromRole="CmFile" ToRole="CmFileCategory" />
+    <NavigationProperty Name="FmsDrawingHistory" Relationship="Self.FK__FmsDrawingHistor__04DA9AE4" FromRole="CmFile" ToRole="FmsDrawingHistory" />
+    <NavigationProperty Name="FmsMaterialPurchaseOrder" Relationship="Self.FK__FmsMaterialPurchaseOrder__CmFile" FromRole="CmFile" ToRole="FmsMaterialPurchaseOrder" />
+    <NavigationProperty Name="FmsWorkResultFile" Relationship="Self.FK__FmsWorkResultFile__CmFile" FromRole="CmFile" ToRole="FmsWorkResultFile" />
+    <NavigationProperty Name="FmsAccident" Relationship="Self.FK_FmsAccident_CmFile1" FromRole="CmFile" ToRole="FmsAccident" />
+    <NavigationProperty Name="FmsAccident1" Relationship="Self.FK_FmsAccident_CmFile2" FromRole="CmFile" ToRole="FmsAccident" />
+    <NavigationProperty Name="FmsAccident2" Relationship="Self.FK_FmsAccident_CmFile3" FromRole="CmFile" ToRole="FmsAccident" />
+    <NavigationProperty Name="FmsConstruction" Relationship="Self.FK_FmsConstruction_CmFile1" FromRole="CmFile" ToRole="FmsConstruction" />
+    <NavigationProperty Name="FmsConstruction1" Relationship="Self.FK_FmsConstruction_CmFile2" FromRole="CmFile" ToRole="FmsConstruction" />
+    <NavigationProperty Name="FmsConstruction2" Relationship="Self.FK_FmsConstruction_CmFile3" FromRole="CmFile" ToRole="FmsConstruction" />
+    <NavigationProperty Name="FmsManualHistory" Relationship="Self.FK_FmsManualHistory_CmFile" FromRole="CmFile" ToRole="FmsManualHistory" />
+    <NavigationProperty Name="FmsMaterial" Relationship="iBemsModel.FK_FmsMaterial_CmFile" FromRole="CmFile" ToRole="FmsMaterial" />
+    <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__CmFile__SiteId__2759D01A" FromRole="CmFile" ToRole="CmSite" />
+    <NavigationProperty Name="FmsReport" Relationship="iBemsModel.FK_FmsReport_CmFile" FromRole="CmFile" ToRole="FmsReport" />
+    <NavigationProperty Name="FmsWorkResultCheckItem" Relationship="iBemsModel.FK_FmsWorkResultCheckItem_CmFile" FromRole="CmFile" ToRole="FmsWorkResultCheckItem" />
+    <NavigationProperty Name="FmsWorkResultCheckItem1" Relationship="iBemsModel.FK_FmsWorkResultCheckItem_CmFile1" FromRole="CmFile" ToRole="FmsWorkResultCheckItem" />
+    <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK__CmFacility__CmFile" FromRole="CmFile" ToRole="CmFacility" />
+  </EntityType>
+  <EntityType Name="CmFileCategory">
+    <Key>
+      <PropertyRef Name="FileCategoryId" />
+    </Key>
+    <Property Name="FileCategoryId" Type="Int32" Nullable="false" />
+    <Property Name="Name" Type="String" MaxLength="32" FixedLength="false" Unicode="true" Nullable="false" />
+    <NavigationProperty Name="CmFile" Relationship="Self.FK__CmFile__CmFileCategory" FromRole="CmFileCategory" ToRole="CmFile" />
+  </EntityType>
+  <EntityType Name="CmFloor">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="BuildingId" />
+      <PropertyRef Name="FloorId" />
+    </Key>
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="BuildingId" Type="Int32" Nullable="false" />
+    <Property Name="FloorId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+    <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
+    <NavigationProperty Name="BemsMonitoringPoint" Relationship="Self.FK__BemsMonitoringPoint__CmFloor" FromRole="CmFloor" ToRole="BemsMonitoringPoint" />
+    <NavigationProperty Name="CmBuilding" Relationship="Self.FK__CmFloor__3CF40B7E" FromRole="CmFloor" ToRole="CmBuilding" />
+    <NavigationProperty Name="CmZone" Relationship="Self.FK__CmLocation__3DE82FB7" FromRole="CmFloor" ToRole="CmZone" />
+    <NavigationProperty Name="CmZoneTempHumiSet" Relationship="Self.FK_CmZoneTempHumiSet_CmFloor" FromRole="CmFloor" ToRole="CmZoneTempHumiSet" />
+    <NavigationProperty Name="CmPatrolPos" Relationship="iBemsModel.FK_CmPatrolPos_CmFloor" FromRole="CmFloor" ToRole="CmPatrolPos" />
+    <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK__CmFacility__74444068" FromRole="CmFloor" ToRole="CmFacility" />
+  </EntityType>
+  <EntityType Name="CmHoliday">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="HolidayMonth" />
+      <PropertyRef Name="HolidayDay" />
+      <PropertyRef Name="IsLunar" />
+    </Key>
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="HolidayMonth" Type="Int16" Nullable="false" />
+    <Property Name="HolidayDay" Type="Int16" Nullable="false" />
+    <Property Name="IsLunar" Type="Boolean" Nullable="false" />
+    <Property Name="Name" Type="String" MaxLength="16" FixedLength="false" Unicode="true" Nullable="false" />
+    <Property Name="IsUse" Type="Boolean" />
+    <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__CmHoliday__SiteI__0BB1B5A5" FromRole="CmHoliday" ToRole="CmSite" />
+    <NavigationProperty Name="CmSite1" Relationship="iBemsModel.FK__CmHoliday__SiteI__65AC084E" FromRole="CmHoliday" ToRole="CmSite" />
+  </EntityType>
+  <EntityType Name="CmHolidayCustom">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="HolidayDate" />
+    </Key>
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="HolidayDate" Type="DateTime" Nullable="false" Precision="3" />
+    <Property Name="Name" Type="String" MaxLength="16" FixedLength="false" Unicode="true" Nullable="false" />
+    <Property Name="IsUse" Type="Boolean" />
+    <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__CmHoliday__SiteI__10766AC2" FromRole="CmHolidayCustom" ToRole="CmSite" />
+    <NavigationProperty Name="CmSite1" Relationship="iBemsModel.FK__CmHoliday__SiteI__66A02C87" FromRole="CmHolidayCustom" ToRole="CmSite" />
+  </EntityType>
+  <EntityType Name="CmPosition">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="PositionId" />
+    </Key>
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="PositionId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+    <Property Name="Name" Type="String" MaxLength="40" FixedLength="false" Unicode="true" Nullable="false" />
+    <Property Name="IsUse" Type="Boolean" />
+    <NavigationProperty Name="CmUser" Relationship="Self.FK_CmUser_CmPosition" FromRole="CmPosition" ToRole="CmUser" />
+    <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__CmPositio__SiteI__6A70BD6B" FromRole="CmPosition" ToRole="CmSite" />
+    <NavigationProperty Name="CmSite1" Relationship="iBemsModel.FK__CmUserPos__SiteI__44952D46" FromRole="CmPosition" ToRole="CmSite" />
+    <Property Name="Position" Type="Int32" />
+  </EntityType>
+  <EntityType Name="CmUser">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="UserId" />
+    </Key>
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="UserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
+    <Property Name="CompanyId" Type="Int32" />
+    <Property Name="DepartmentId" Type="Int32" />
+    <Property Name="PositionId" Type="Int32" />
+    <Property Name="BusinessFieldId" Type="Int32" />
+    <Property Name="UserGroupId" Type="Int32" />
+    <Property Name="Name" Type="String" MaxLength="30" FixedLength="false" Unicode="true" Nullable="false" />
+    <Property Name="Passwd" Type="String" MaxLength="30" FixedLength="false" Unicode="true" Nullable="false" />
+    <Property Name="Birthday" Type="DateTime" Precision="3" />
+    <Property Name="Lunar" Type="Boolean" />
+    <Property Name="StateId" Type="Int32" />
+    <Property Name="EmploymentType" Type="Int32" />
+    <Property Name="EmploymentStatus" Type="Int32" />
+    <Property Name="OfficePhoneNo" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
+    <Property Name="HomePhoneNo" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
+    <Property Name="MobilePhoneNo" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
+    <Property Name="HomeZip1" Type="String" MaxLength="3" FixedLength="true" Unicode="false" />
+    <Property Name="HomeZip2" Type="String" MaxLength="3" FixedLength="true" Unicode="false" />
+    <Property Name="HomeAddress1" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
+    <Property Name="HomeAdderss2" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
+    <Property Name="Email" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
+    <Property Name="EnterDate" Type="DateTime" Precision="3" />
+    <Property Name="RetireDate" Type="DateTime" Precision="3" />
+    <Property Name="Comment" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
+    <Property Name="Rfcsn" Type="String" MaxLength="30" FixedLength="false" Unicode="true" />
+    <Property Name="PasswordUpdatedDate" Type="DateTime" Precision="3" />
+    <Property Name="FileId" Type="Int32" />
+    <Property Name="IsBems" Type="Boolean" />
+    <Property Name="IsUse" Type="Boolean" />
+    <Property Name="Certificated" Type="String" MaxLength="512" FixedLength="false" Unicode="true" />
+    <NavigationProperty Name="CmAnnouncement" Relationship="Self.FK_CmAnnouncement_CmUser" FromRole="CmUser" ToRole="CmAnnouncement" />
+    <NavigationProperty Name="CmBusinessField" Relationship="Self.FK_CmUser_CmBusinessField" FromRole="CmUser" ToRole="CmBusinessField" />
+    <NavigationProperty Name="CmCompany" Relationship="Self.FK_CmUser_CmCompany" FromRole="CmUser" ToRole="CmCompany" />
+    <NavigationProperty Name="CmDepartment" Relationship="Self.FK_CmUser_CmDepartment" FromRole="CmUser" ToRole="CmDepartment" />
+    <NavigationProperty Name="CmPosition" Relationship="Self.FK_CmUser_CmPosition" FromRole="CmUser" ToRole="CmPosition" />
+    <NavigationProperty Name="CmUserToLicense" Relationship="Self.FK__CmUserToLicense__CmUser" FromRole="CmUser" ToRole="CmUserToLicense" />
+    <NavigationProperty Name="FmsDrawingHistory" Relationship="Self.FK__FmsDrawingHistory__CmUser" FromRole="CmUser" ToRole="FmsDrawingHistory" />
+    <NavigationProperty Name="FmsMaterialPurchaseOrder" Relationship="Self.FK__FmsMaterialOrder__CmUser" FromRole="CmUser" ToRole="FmsMaterialPurchaseOrder" />
+    <NavigationProperty Name="FmsMaterialPurchaseRequest" Relationship="Self.FK__FmsMaterialPurchaseRequest__CmUser_AsRequestUserId" FromRole="CmUser" ToRole="FmsMaterialPurchaseRequest" />
+    <NavigationProperty Name="FmsMaterialPurchaseRequest1" Relationship="Self.FK__FmsMaterialPurchaseRequest__CmUser1_AsApprovalUserId" FromRole="CmUser" ToRole="FmsMaterialPurchaseRequest" />
+    <NavigationProperty Name="FmsMaterialStored" Relationship="Self.FK__FmsMaterialStored__CmUser_AsStoredUserId" FromRole="CmUser" ToRole="FmsMaterialStored" />
+    <NavigationProperty Name="FmsMaterialStored1" Relationship="Self.FK__FmsMaterialStored__CmUser1_AsApprovalUserId" FromRole="CmUser" ToRole="FmsMaterialStored" />
+    <NavigationProperty Name="FmsWorkOrder" Relationship="Self.FK__FmsWorkOrder__CmUser" FromRole="CmUser" ToRole="FmsWorkOrder" />
+    <NavigationProperty Name="FmsWorkRequest" Relationship="Self.FK__FmsWorkRequest__CmUser_AsRequestUserId" FromRole="CmUser" ToRole="FmsWorkRequest" />
+    <NavigationProperty Name="FmsWorkRequest1" Relationship="Self.FK__FmsWorkRequest__CmUser1_AsRejectUserId" FromRole="CmUser" ToRole="FmsWorkRequest" />
+    <NavigationProperty Name="FmsWorkResult" Relationship="Self.FK__FmsWorkResult__CmUser_AsWorkerUserId" FromRole="CmUser" ToRole="FmsWorkResult" />
+    <NavigationProperty Name="FmsWorkResult1" Relationship="Self.FK__FmsWorkResult__CmUser1_AsConfirmedUserId" FromRole="CmUser" ToRole="FmsWorkResult" />
+    <NavigationProperty Name="FmsWorkSchedule" Relationship="Self.FK__FmsWorkSchedule__CmUser" FromRole="CmUser" ToRole="FmsWorkSchedule" />
+    <NavigationProperty Name="CmUserGroup" Relationship="Self.FK_CmUser_CmUserGroup" FromRole="CmUser" ToRole="CmUserGroup" />
+    <NavigationProperty Name="CmUserLoginHistory" Relationship="Self.FK_CmUserLoginHistory_CmUser" FromRole="CmUser" ToRole="CmUserLoginHistory" />
+    <NavigationProperty Name="FmsConstructionEstimation" Relationship="Self.FK_FmsConstructionEstimation_CmUser" FromRole="CmUser" ToRole="FmsConstructionEstimation" />
+    <NavigationProperty Name="FmsManualHistory" Relationship="Self.FK_FmsManualHistory_CmUser" FromRole="CmUser" ToRole="FmsManualHistory" />
+    <NavigationProperty Name="FmsDailyCheckReport" Relationship="iBemsModel.FK_FmsDailyCheckReport_CmUser" FromRole="CmUser" ToRole="FmsDailyCheckReport" />
+    <NavigationProperty Name="FmsFacilityOperationReport" Relationship="iBemsModel.FK_FmsFacilityOperationReport_CmUser" FromRole="CmUser" ToRole="FmsFacilityOperationReport" />
+    <Property Name="IsScheduleUser" Type="Boolean" />
+    <NavigationProperty Name="FmsMonthlyReport" Relationship="iBemsModel.FK_FmsMonthlyReport_CmUser" FromRole="CmUser" ToRole="FmsMonthlyReport" />
+    <NavigationProperty Name="FmsMaterialRelease" Relationship="iBemsModel.FK_FmsMaterialRelease_CmUser" FromRole="CmUser" ToRole="FmsMaterialRelease" />
+    <NavigationProperty Name="FmsMaterialRelease1" Relationship="iBemsModel.FK_FmsMaterialRelease_CmUser1" FromRole="CmUser" ToRole="FmsMaterialRelease" />
+    <Property Name="IsSI" Type="Boolean" Nullable="true" />
+    <Property Name="IsMobile" Type="Boolean" Nullable="true" />
+    <NavigationProperty Name="CmPatrolGroupUser" Relationship="iBemsModel.FK_CmPatrolGroupUser_CmUser" FromRole="CmUser" ToRole="CmPatrolGroupUser" />
+    <NavigationProperty Name="FmsReport" Relationship="iBemsModel.FK_FmsReport_CmUser" FromRole="CmUser" ToRole="FmsReport" />
+    <NavigationProperty Name="FmsReport1" Relationship="iBemsModel.FK_FmsReport_CmUser1" FromRole="CmUser" ToRole="FmsReport" />
+    <NavigationProperty Name="FmsReport2" Relationship="iBemsModel.FK_FmsReport_CmUser2" FromRole="CmUser" ToRole="FmsReport" />
+    <Property Name="Devicetoken" Type="String" MaxLength="500" FixedLength="false" Unicode="true" />
+    <NavigationProperty Name="FmsEquipmentRentInfo" Relationship="iBemsModel.FK_FmsEquipmentRentInfo_CmUser" FromRole="CmUser" ToRole="FmsEquipmentRentInfo" />
+    <NavigationProperty Name="FmsEquipmentRentInfo1" Relationship="iBemsModel.FK_FmsEquipmentRentInfo_CmUser1" FromRole="CmUser" ToRole="FmsEquipmentRentInfo" />
+    <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK__CmFacility__753864A1" FromRole="CmUser" ToRole="CmFacility" />
+    <NavigationProperty Name="CmFacility1" Relationship="iBemsModel.FK__CmFacility__762C88DA" FromRole="CmUser" ToRole="CmFacility" />
+    <NavigationProperty Name="CmFacility2" Relationship="iBemsModel.FK_CmFacility_CmUser" FromRole="CmUser" ToRole="CmFacility" />
+    <NavigationProperty Name="CmFacility3" Relationship="iBemsModel.FK_CmFacility_CmUser1" FromRole="CmUser" ToRole="CmFacility" />
+    <NavigationProperty Name="FmsDailyReport" Relationship="iBemsModel.FK_FmsDailyReport_CmUser" FromRole="CmUser" ToRole="FmsDailyReport" />
+    <NavigationProperty Name="FmsEquipment" Relationship="iBemsModel.FK_FmsEquipment_CmUser" FromRole="CmUser" ToRole="FmsEquipment" />
+  </EntityType>
+  <EntityType Name="CmUserGroup">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="UserGroupId" />
+    </Key>
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="UserGroupId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+    <Property Name="Name" Type="String" MaxLength="32" FixedLength="false" Unicode="true" Nullable="false" />
+    <NavigationProperty Name="CmUser" Relationship="Self.FK_CmUser_CmUserGroup" FromRole="CmUserGroup" ToRole="CmUser" />
+    <NavigationProperty Name="CmUserGroupPermission" Relationship="Self.FK__CmUserGroupPermission__CmUserGroup" FromRole="CmUserGroup" ToRole="CmUserGroupPermission" />
+    <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__CmUserGro__SiteI__53D770D6" FromRole="CmUserGroup" ToRole="CmSite" />
+  </EntityType>
+  <EntityType Name="CmUserGroupPermission">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="UserGroupId" />
+      <PropertyRef Name="MenuId" />
+    </Key>
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="UserGroupId" Type="Int32" Nullable="false" />
+    <Property Name="MenuId" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
+    <Property Name="MenuPermission" Type="Int16" />
+    <NavigationProperty Name="CmUserGroup" Relationship="Self.FK__CmUserGroupPermission__CmUserGroup" FromRole="CmUserGroupPermission" ToRole="CmUserGroup" />
+  </EntityType>
+  <EntityType Name="CmUserLoginHistory">
+    <Key>
+      <PropertyRef Name="LoginHistoryId" />
+    </Key>
+    <Property Name="LoginHistoryId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="UserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
+    <Property Name="Type" Type="String" MaxLength="10" FixedLength="false" Unicode="true" Nullable="false" />
+    <Property Name="TraceTime" Type="DateTime" Nullable="false" Precision="3" />
+    <Property Name="IpAddress" Type="String" MaxLength="16" FixedLength="false" Unicode="true" />
+    <NavigationProperty Name="CmUser" Relationship="Self.FK_CmUserLoginHistory_CmUser" FromRole="CmUserLoginHistory" ToRole="CmUser" />
+  </EntityType>
+  <EntityType Name="CmUserToLicense">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="UserId" />
+      <PropertyRef Name="LicenseId" />
+    </Key>
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="UserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
+    <Property Name="LicenseId" Type="Int32" Nullable="false" />
+    <NavigationProperty Name="CmUser" Relationship="Self.FK__CmUserToLicense__CmUser" FromRole="CmUserToLicense" ToRole="CmUser" />
+    <NavigationProperty Name="FmsLicense" Relationship="Self.FK__CmUserToLicense__FmsLicense" FromRole="CmUserToLicense" ToRole="FmsLicense" />
+  </EntityType>
+  <EntityType Name="CmZone">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="BuildingId" />
+      <PropertyRef Name="FloorId" />
+      <PropertyRef Name="ZoneId" />
+    </Key>
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="BuildingId" Type="Int32" Nullable="false" />
+    <Property Name="FloorId" Type="Int32" Nullable="false" />
+    <Property Name="ZoneId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+    <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
+    <Property Name="Target_temperature" Type="Double" />
+    <Property Name="Target_humidity" Type="Int16" />
+    <NavigationProperty Name="BemsMonitoringPoint" Relationship="Self.FK__BemsMonitoringPoint__CmZone" FromRole="CmZone" ToRole="BemsMonitoringPoint" />
+    <NavigationProperty Name="CmBuilding" Relationship="Self.FK__CmZone__CmBuilding" FromRole="CmZone" ToRole="CmBuilding" />
+    <NavigationProperty Name="CmFloor" Relationship="Self.FK__CmLocation__3DE82FB7" FromRole="CmZone" ToRole="CmFloor" />
+    <NavigationProperty Name="CmZoneTempHumiSet" Relationship="Self.FK_CmZoneTempHumiSet_CmZone" FromRole="CmZone" ToRole="CmZoneTempHumiSet" />
+    <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK__CmFacility__CmZone" FromRole="CmZone" ToRole="CmFacility" />
+  </EntityType>
+  <EntityType Name="CmZoneTempHumiSet">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="BuildingId" />
+      <PropertyRef Name="FloorId" />
+      <PropertyRef Name="ZoneId" />
+    </Key>
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="BuildingId" Type="Int32" Nullable="false" />
+    <Property Name="FloorId" Type="Int32" Nullable="false" />
+    <Property Name="ZoneId" Type="Int32" Nullable="false" />
+    <Property Name="T1" Type="Double" Nullable="false" />
+    <Property Name="T2" Type="Double" Nullable="false" />
+    <Property Name="T3" Type="Double" Nullable="false" />
+    <Property Name="T4" Type="Double" Nullable="false" />
+    <Property Name="T5" Type="Double" Nullable="false" />
+    <Property Name="T6" Type="Double" Nullable="false" />
+    <Property Name="T7" Type="Double" Nullable="false" />
+    <Property Name="T8" Type="Double" Nullable="false" />
+    <Property Name="T9" Type="Double" Nullable="false" />
+    <Property Name="T10" Type="Double" Nullable="false" />
+    <Property Name="T11" Type="Double" Nullable="false" />
+    <Property Name="T12" Type="Double" Nullable="false" />
+    <Property Name="H1" Type="Int16" Nullable="false" />
+    <Property Name="H2" Type="Int16" Nullable="false" />
+    <Property Name="H3" Type="Int16" Nullable="false" />
+    <Property Name="H4" Type="Int16" Nullable="false" />
+    <Property Name="H5" Type="Int16" Nullable="false" />
+    <Property Name="H6" Type="Int16" Nullable="false" />
+    <Property Name="H7" Type="Int16" Nullable="false" />
+    <Property Name="H8" Type="Int16" Nullable="false" />
+    <Property Name="H9" Type="Int16" Nullable="false" />
+    <Property Name="H10" Type="Int16" Nullable="false" />
+    <Property Name="H11" Type="Int16" Nullable="false" />
+    <Property Name="H12" Type="Int16" Nullable="false" />
+    <NavigationProperty Name="CmBuilding" Relationship="Self.FK_CmZoneTempHumiSet_CmBuilding" FromRole="CmZoneTempHumiSet" ToRole="CmBuilding" />
+    <NavigationProperty Name="CmFloor" Relationship="Self.FK_CmZoneTempHumiSet_CmFloor" FromRole="CmZoneTempHumiSet" ToRole="CmFloor" />
+    <NavigationProperty Name="CmZone" Relationship="Self.FK_CmZoneTempHumiSet_CmZone" FromRole="CmZoneTempHumiSet" ToRole="CmZone" />
+    <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_CmZoneTempHumiSet_CmSite" FromRole="CmZoneTempHumiSet" ToRole="CmSite" />
+  </EntityType>
+  <EntityType Name="FmsAccident">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="AccidentId" />
+    </Key>
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="AccidentId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+    <Property Name="Name" Type="String" MaxLength="256" FixedLength="false" Unicode="true" Nullable="false" />
+    <Property Name="StartDate" Type="DateTime" Precision="3" />
+    <Property Name="EndDate" Type="DateTime" Precision="3" />
+    <Property Name="AccidentTypeId" Type="Int32" Nullable="false" />
+    <Property Name="DepartmentId" Type="Int32" />
+    <Property Name="AccidentLocation" Type="String" MaxLength="256" FixedLength="false" Unicode="true" />
+    <Property Name="Reason" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
+    <Property Name="Action" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
+    <Property Name="Damage" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
+    <Property Name="Measurement" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
+    <Property Name="FileId1" Type="Int32" />
+    <Property Name="FileId2" Type="Int32" />
+    <Property Name="FileId3" Type="Int32" />
+    <Property Name="CompanyId" Type="Int32" />
+    <NavigationProperty Name="CmDepartment" Relationship="Self.FK_FmsAccident_CmDepartment" FromRole="FmsAccident" ToRole="CmDepartment" />
+    <NavigationProperty Name="CmFile" Relationship="Self.FK_FmsAccident_CmFile1" FromRole="FmsAccident" ToRole="CmFile" />
+    <NavigationProperty Name="CmFile1" Relationship="Self.FK_FmsAccident_CmFile2" FromRole="FmsAccident" ToRole="CmFile" />
+    <NavigationProperty Name="CmFile2" Relationship="Self.FK_FmsAccident_CmFile3" FromRole="FmsAccident" ToRole="CmFile" />
+    <NavigationProperty Name="FmsAccidentCodeType" Relationship="Self.FK_FmsAccident_FmsAccidentCodeType" FromRole="FmsAccident" ToRole="FmsAccidentCodeType" />
+    <NavigationProperty Name="CmCompany" Relationship="iBemsModel.FK_FmsAccident_CmCompany" FromRole="FmsAccident" ToRole="CmCompany" />
+  </EntityType>
+  <EntityType Name="FmsAccidentCodeType">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="AccidentTypeId" />
+    </Key>
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="AccidentTypeId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+    <Property Name="Name" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
+    <Property Name="IsUse" Type="Boolean" Nullable="false" />
+    <NavigationProperty Name="FmsAccident" Relationship="Self.FK_FmsAccident_FmsAccidentCodeType" FromRole="FmsAccidentCodeType" ToRole="FmsAccident" />
+  </EntityType>
+  <EntityType Name="FmsBudget">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="Year" />
+    </Key>
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="Year" Type="Int32" Nullable="false" />
+    <NavigationProperty Name="FmsBudgetDetail" Relationship="iBemsModel.FK_FmsBudgetDetail_FmsBudget" FromRole="FmsBudget" ToRole="FmsBudgetDetail" />
+  </EntityType>
+  <EntityType Name="FmsBudgetCodeClass">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="BudgetClassId" />
+    </Key>
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="BudgetClassId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+    <Property Name="BudgetSeq" Type="String" MaxLength="6" FixedLength="false" Unicode="true" Nullable="false" />
+    <Property Name="ParentBudgetClassId" Type="Int32" />
+    <Property Name="Depth" Type="Int32" Nullable="false" />
+    <Property Name="Name" Type="String" MaxLength="32" FixedLength="false" Unicode="true" Nullable="false" />
+    <Property Name="Abbreviation" Type="String" MaxLength="16" FixedLength="false" Unicode="true" />
+    <Property Name="IsUse" Type="Boolean" />
+    <Property Name="YearlyBudget" Type="Double" />
+    <Property Name="MonthlyBudget" Type="Double" />
+    <NavigationProperty Name="FmsBudgetDetail" Relationship="iBemsModel.FK_FmsBudgetDetail_FmsBudgetCodeClass" FromRole="FmsBudgetCodeClass" ToRole="FmsBudgetDetail" />
+    <Property Name="RootBudgetClassId" Type="Int32" />
+  </EntityType>
+  <EntityType Name="FmsCompanyEstimationCodeClass">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="CompanyEstimationClassId" />
+    </Key>
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="CompanyEstimationClassId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+    <Property Name="Name" Type="String" MaxLength="32" FixedLength="false" Unicode="true" Nullable="false" />
+    <Property Name="IsUse" Type="Boolean" />
+  </EntityType>
+  <EntityType Name="FmsConstruction">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="ConstructionId" />
+    </Key>
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="ConstructionId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+    <Property Name="Name" Type="String" MaxLength="256" FixedLength="false" Unicode="true" Nullable="false" />
+    <Property Name="ConstructionTypeId" Type="Int32" Nullable="false" />
+    <Property Name="StartDate" Type="DateTime" Nullable="false" Precision="3" />
+    <Property Name="EndDate" Type="DateTime" Nullable="false" Precision="3" />
+    <Property Name="PartnerId" Type="Int32" Nullable="false" />
+    <Property Name="ConstructLocation" Type="String" MaxLength="256" FixedLength="false" Unicode="true" Nullable="false" />
+    <Property Name="OwnerShipName" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
+    <Property Name="CommitmentMan" Type="Int16" />
+    <Property Name="OwnerShipPhoneNo" Type="String" MaxLength="20" FixedLength="false" Unicode="true" Nullable="false" />
+    <Property Name="WeldWorkStartTime" Type="DateTime" Precision="3" />
+    <Property Name="WeldWorkEndTime" Type="DateTime" Precision="3" />
+    <Property Name="GasWorkStartTime" Type="DateTime" Precision="3" />
+    <Property Name="GasWorkEndTime" Type="DateTime" Precision="3" />
+    <Property Name="PaintWorkStartTime" Type="DateTime" Precision="3" />
+    <Property Name="PaintWorkEndTime" Type="DateTime" Precision="3" />
+    <Property Name="Comment" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
+    <Property Name="ProgressId" Type="Int16" Nullable="false" />
+    <Property Name="AddDate" Type="DateTime" Nullable="false" Precision="3" />
+    <Property Name="UpdateDate" Type="DateTime" Nullable="false" Precision="3" />
+    <Property Name="ConstructionDetail" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
+    <Property Name="InOutStockName" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
+    <Property Name="FileId1" Type="Int32" />
+    <Property Name="FileId2" Type="Int32" />
+    <Property Name="FileId3" Type="Int32" />
+    <NavigationProperty Name="CmFile" Relationship="Self.FK_FmsConstruction_CmFile1" FromRole="FmsConstruction" ToRole="CmFile" />
+    <NavigationProperty Name="CmFile1" Relationship="Self.FK_FmsConstruction_CmFile2" FromRole="FmsConstruction" ToRole="CmFile" />
+    <NavigationProperty Name="CmFile2" Relationship="Self.FK_FmsConstruction_CmFile3" FromRole="FmsConstruction" ToRole="CmFile" />
+    <NavigationProperty Name="FmsConstructionCodeProgress" Relationship="Self.FK_FmsConstruction_FmsConstructionCodeProgress" FromRole="FmsConstruction" ToRole="FmsConstructionCodeProgress" />
+    <NavigationProperty Name="FmsConstructionCodeType" Relationship="Self.FK_FmsConstruction_FmsConstructionCodeType" FromRole="FmsConstruction" ToRole="FmsConstructionCodeType" />
+    <NavigationProperty Name="FmsConstructionEstimation" Relationship="Self.FK_FmsConstructionEstimation_FmsConstruction" FromRole="FmsConstruction" ToRole="FmsConstructionEstimation" />
+    <NavigationProperty Name="CmPartner" Relationship="iBemsModel.FK_FmsConstruction_CmPartner" FromRole="FmsConstruction" ToRole="CmPartner" />
+  </EntityType>
+  <EntityType Name="FmsConstructionCodeProgress">
+    <Key>
+      <PropertyRef Name="ProgressId" />
+    </Key>
+    <Property Name="ProgressId" Type="Int16" Nullable="false" />
+    <Property Name="Name" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
+    <Property Name="Description" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
+    <NavigationProperty Name="FmsConstruction" Relationship="Self.FK_FmsConstruction_FmsConstructionCodeProgress" FromRole="FmsConstructionCodeProgress" ToRole="FmsConstruction" />
+  </EntityType>
+  <EntityType Name="FmsConstructionCodeType">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="ConstructionTypeId" />
+    </Key>
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="ConstructionTypeId" Type="Int32" Nullable="false" />
+    <Property Name="Name" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
+    <Property Name="IsUse" Type="Boolean" Nullable="false" />
+    <NavigationProperty Name="FmsConstruction" Relationship="Self.FK_FmsConstruction_FmsConstructionCodeType" FromRole="FmsConstructionCodeType" ToRole="FmsConstruction" />
+  </EntityType>
+  <EntityType Name="FmsConstructionEstimation">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="ConstructionId" />
+    </Key>
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="ConstructionId" Type="Int32" Nullable="false" />
+    <Property Name="EstimateDate" Type="DateTime" Nullable="false" Precision="3" />
+    <Property Name="EstimateUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
+    <Property Name="Safety01_CleanUp" Type="Boolean" />
+    <Property Name="Safety02_PersonalProtection" Type="Boolean" />
+    <Property Name="Safety03_FireExtinguisher" Type="Boolean" />
+    <Property Name="Safety04_HighPlaceWork" Type="Boolean" />
+    <Property Name="Safety05_Weld" Type="Boolean" />
+    <Property Name="Safety06_SurroundingCleanUp" Type="Boolean" />
+    <Property Name="Safety07_SurroundingHealthy" Type="Boolean" />
+    <Property Name="Safety08_Noise" Type="Boolean" />
+    <Property Name="Safety09_FacilityProtection" Type="Boolean" />
+    <Property Name="Safety10_Waste" Type="Boolean" />
+    <Property Name="Safety11_Execution" Type="Boolean" />
+    <Property Name="Safety12_Announcement" Type="Boolean" />
+    <Property Name="Ability01_Compliance" Type="Boolean" />
+    <Property Name="Ability02_Fault" Type="Boolean" />
+    <Property Name="Ability03_SkillLevel" Type="Boolean" />
+    <Property Name="Ability04_ProcessManagement" Type="Boolean" />
+    <Property Name="Ability05_Collaboration" Type="Boolean" />
+    <Property Name="Service01_Compliance" Type="Boolean" />
+    <Property Name="Service02_SkillLevel" Type="Boolean" />
+    <Property Name="Comment" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
+    <Property Name="TotalEstimateScore" Type="Double" />
+    <Property Name="SafetyScore" Type="Double" />
+    <Property Name="AbilityScore" Type="Double" />
+    <Property Name="ServiceScore" Type="Double" />
+    <NavigationProperty Name="CmUser" Relationship="Self.FK_FmsConstructionEstimation_CmUser" FromRole="FmsConstructionEstimation" ToRole="CmUser" />
+    <NavigationProperty Name="FmsConstruction" Relationship="Self.FK_FmsConstructionEstimation_FmsConstruction" FromRole="FmsConstructionEstimation" ToRole="FmsConstruction" />
+  </EntityType>
+  <EntityType Name="FmsContractClass">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="ContractClassId" />
+    </Key>
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="ContractClassId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+    <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
+    <Property Name="IsUse" Type="Boolean" />
+    <NavigationProperty Name="FmsContract" Relationship="iBemsModel.FK_FmsContract_FmsContractClass" FromRole="FmsContractClass" ToRole="FmsContract" />
+  </EntityType>
+  <EntityType Name="FmsContractMethod">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="ContractMethodId" />
+    </Key>
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="ContractMethodId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+    <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
+    <Property Name="IsUse" Type="Boolean" />
+    <NavigationProperty Name="FmsContract" Relationship="iBemsModel.FK_FmsContract_FmsContractMethod" FromRole="FmsContractMethod" ToRole="FmsContract" />
+  </EntityType>
+  <EntityType Name="FmsContractType">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="ContractTypeId" />
+    </Key>
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="ContractTypeId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+    <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
+    <Property Name="IsUse" Type="Boolean" />
+    <NavigationProperty Name="FmsContract" Relationship="iBemsModel.FK_FmsContract_FmsContractType" FromRole="FmsContractType" ToRole="FmsContract" />
+  </EntityType>
+  <EntityType Name="FmsDrawing">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="DrawingId" />
+    </Key>
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="DrawingId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+    <Property Name="DrawingNo" Type="String" MaxLength="20" FixedLength="false" Unicode="true" Nullable="false" />
+    <Property Name="DrawingGroupId" Type="Int32" Nullable="false" />
+    <Property Name="DrawingTypeId" Type="Int32" Nullable="false" />
+    <Property Name="Name" Type="String" MaxLength="200" FixedLength="false" Unicode="true" Nullable="false" />
+    <Property Name="Description" Type="String" MaxLength="2000" FixedLength="false" Unicode="true" />
+    <NavigationProperty Name="FmsDrawingCodeGroup" Relationship="Self.FK__FmsDrawing__6E565CE8" FromRole="FmsDrawing" ToRole="FmsDrawingCodeGroup" />
+    <NavigationProperty Name="FmsDrawingCodeType" Relationship="Self.FK__FmsDrawing__6F4A8121" FromRole="FmsDrawing" ToRole="FmsDrawingCodeType" />
+    <NavigationProperty Name="FmsDrawingHistory" Relationship="Self.FK__FmsDrawingHistor__7132C993" FromRole="FmsDrawing" ToRole="FmsDrawingHistory" />
+    <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsDrawin__SiteI__6D6238AF" FromRole="FmsDrawing" ToRole="CmSite" />
+  </EntityType>
+  <EntityType Name="FmsDrawingCodeGroup">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="DrawingGroupId" />
+    </Key>
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="DrawingGroupId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+    <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
+    <Property Name="IsUse" Type="Boolean" />
+    <NavigationProperty Name="FmsDrawing" Relationship="Self.FK__FmsDrawing__6E565CE8" FromRole="FmsDrawingCodeGroup" ToRole="FmsDrawing" />
+    <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsDrawin__SiteI__6B79F03D" FromRole="FmsDrawingCodeGroup" ToRole="CmSite" />
+    <NavigationProperty Name="CmSite1" Relationship="iBemsModel.FK__FmsDrawin__SiteI__6F357288" FromRole="FmsDrawingCodeGroup" ToRole="CmSite" />
+  </EntityType>
+  <EntityType Name="FmsDrawingCodeType">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="DrawingTypeId" />
+    </Key>
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="DrawingTypeId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+    <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
+    <Property Name="IsUse" Type="Boolean" />
+    <NavigationProperty Name="FmsDrawing" Relationship="Self.FK__FmsDrawing__6F4A8121" FromRole="FmsDrawingCodeType" ToRole="FmsDrawing" />
+    <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsDrawin__SiteI__6C6E1476" FromRole="FmsDrawingCodeType" ToRole="CmSite" />
+    <NavigationProperty Name="CmSite1" Relationship="iBemsModel.FK__FmsDrawin__SiteI__702996C1" FromRole="FmsDrawingCodeType" ToRole="CmSite" />
+  </EntityType>
+  <EntityType Name="FmsDrawingHistory">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="DrawingId" />
+      <PropertyRef Name="HistoryId" />
+    </Key>
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="DrawingId" Type="Int32" Nullable="false" />
+    <Property Name="HistoryId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+    <Property Name="RevisionNo" Type="Int32" />
+    <Property Name="FileId" Type="Int32" />
+    <Property Name="Description" Type="String" MaxLength="2000" FixedLength="false" Unicode="true" />
+    <Property Name="UpdatedDate" Type="DateTime" Precision="3" />
+    <Property Name="UpdatedUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
+    <NavigationProperty Name="CmFile" Relationship="Self.FK__FmsDrawingHistor__04DA9AE4" FromRole="FmsDrawingHistory" ToRole="CmFile" />
+    <NavigationProperty Name="CmUser" Relationship="Self.FK__FmsDrawingHistory__CmUser" FromRole="FmsDrawingHistory" ToRole="CmUser" />
+    <NavigationProperty Name="FmsDrawing" Relationship="Self.FK__FmsDrawingHistor__7132C993" FromRole="FmsDrawingHistory" ToRole="FmsDrawing" />
+  </EntityType>
+  <EntityType Name="FmsEquipmentCodeStateType">
+    <Key>
+      <PropertyRef Name="EquipmentStateTypeId" />
+    </Key>
+    <Property Name="EquipmentStateTypeId" Type="Int16" Nullable="false" />
+    <Property Name="Name" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
+    <Property Name="Comment" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
+    <NavigationProperty Name="FmsEquipmentHistory" Relationship="Self.FK_FmsEquipmentHistory_FmsEquipmentCodeStateType" FromRole="FmsEquipmentCodeStateType" ToRole="FmsEquipmentHistory" />
+    <NavigationProperty Name="FmsEquipmentRentInfo" Relationship="iBemsModel.FK_FmsEquipmentRentInfo_FmsEquipmentCodeStateType" FromRole="FmsEquipmentCodeStateType" ToRole="FmsEquipmentRentInfo" />
+  </EntityType>
+  <EntityType Name="FmsEquipmentCodeType">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="EquipmentTypeId" />
+    </Key>
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="EquipmentTypeId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+    <Property Name="Name" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
+    <Property Name="IsUse" Type="Boolean" Nullable="false" />
+    <Property Name="Description" Type="String" MaxLength="255" FixedLength="false" Unicode="true" />
+    <NavigationProperty Name="FmsEquipment" Relationship="iBemsModel.FK_FmsEquipment_FmsEquipmentCodeType" FromRole="FmsEquipmentCodeType" ToRole="FmsEquipment" />
+  </EntityType>
+  <EntityType Name="FmsEquipmentHistory">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="EquipmentHistoryId" />
+      <PropertyRef Name="EquipmentId" />
+    </Key>
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="EquipmentHistoryId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+    <Property Name="EquipmentId" Type="Int32" Nullable="false" />
+    <Property Name="TotalStockCount" Type="Int32" />
+    <Property Name="CurrentStockCount" Type="Int32" />
+    <Property Name="RentCount" Type="Int32" />
+    <Property Name="CurrentRentCount" Type="Int32" />
+    <Property Name="ReturnCount" Type="Int32" />
+    <Property Name="LossCount" Type="Int32" />
+    <Property Name="StoredCount" Type="Int32" />
+    <Property Name="EquipmentRentId" Type="Int32" />
+    <Property Name="EquipmentStateTypeId" Type="Int16" />
+    <Property Name="AddDate" Type="DateTime" Precision="3" />
+    <Property Name="UpdateDate" Type="DateTime" Precision="3" />
+    <Property Name="IsReturned" Type="Boolean" />
+    <NavigationProperty Name="FmsEquipmentCodeStateType" Relationship="Self.FK_FmsEquipmentHistory_FmsEquipmentCodeStateType" FromRole="FmsEquipmentHistory" ToRole="FmsEquipmentCodeStateType" />
+    <NavigationProperty Name="FmsEquipmentRentInfo" Relationship="iBemsModel.FK_FmsEquipmentHistory_FmsEquipmentRentInfo" FromRole="FmsEquipmentHistory" ToRole="FmsEquipmentRentInfo" />
+    <NavigationProperty Name="FmsEquipment" Relationship="iBemsModel.FK_FmsEquipmentHistory_FmsEquipment" FromRole="FmsEquipmentHistory" ToRole="FmsEquipment" />
+  </EntityType>
+  <EntityType Name="FmsFacilityCheckItem">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="FacilityCode" />
+      <PropertyRef Name="CheckItemId" />
+    </Key>
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="FacilityCode" Type="Int32" Nullable="false" />
+    <Property Name="CheckItemId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+    <Property Name="WorkTypeId" Type="Int32" Nullable="false" />
+    <Property Name="CycleUnitId" Type="Int32" Nullable="false" />
+    <Property Name="Name" Type="String" MaxLength="100" FixedLength="false" Unicode="true" Nullable="false" />
+    <Property Name="IsYesNoResult" Type="Boolean" Nullable="false" />
+    <Property Name="IsUse" Type="Boolean" />
+    <NavigationProperty Name="FmsWorkCodeCycleUnit" Relationship="Self.FK__FmsFacilityCheckItem__FmsWorkCodeCycleUnit" FromRole="FmsFacilityCheckItem" ToRole="FmsWorkCodeCycleUnit" />
+    <NavigationProperty Name="FmsWorkCodeType" Relationship="Self.FK__FmsFacilityCheckItem__FmsWorkCodeWorkType" FromRole="FmsFacilityCheckItem" ToRole="FmsWorkCodeType" />
+    <NavigationProperty Name="FmsWorkResultCheckItem" Relationship="Self.FK__FmsWorkResultCheckItem__FmsFacilityCheckItem" FromRole="FmsFacilityCheckItem" ToRole="FmsWorkResultCheckItem" />
+  </EntityType>
+  <EntityType Name="FmsFacilityCodeClass">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="FacilityClassId" />
+    </Key>
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="FacilityClassId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+    <Property Name="ParentFacilityClassId" Type="Int32" />
+    <Property Name="Depth" Type="Int32" Nullable="false" />
+    <Property Name="Name" Type="String" MaxLength="80" FixedLength="false" Unicode="true" Nullable="false" />
+    <Property Name="Abbreviation" Type="String" MaxLength="40" FixedLength="false" Unicode="true" />
+    <Property Name="IsUse" Type="Boolean" />
+    <NavigationProperty Name="FmsFacilityCodeClass1" Relationship="Self.FK__FmsFacilityCodeClass__FmsFacilityCodeClass" FromRole="FmsFacilityCodeClass" ToRole="FmsFacilityCodeClass1" />
+    <NavigationProperty Name="FmsFacilityCodeClass2" Relationship="Self.FK__FmsFacilityCodeClass__FmsFacilityCodeClass" FromRole="FmsFacilityCodeClass1" ToRole="FmsFacilityCodeClass" />
+    <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsFacilityCodeClass__CmSite" FromRole="FmsFacilityCodeClass" ToRole="CmSite" />
+    <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK__CmFacility__FmsFacilityCodeClassAsFirst" FromRole="FmsFacilityCodeClass" ToRole="CmFacility" />
+    <NavigationProperty Name="CmFacility1" Relationship="iBemsModel.FK__CmFacility__FmsFacilityCodeClassAsSecond" FromRole="FmsFacilityCodeClass" ToRole="CmFacility" />
+    <NavigationProperty Name="CmFacility2" Relationship="iBemsModel.FK__CmFacility__FmsFacilityCodeClassAsThird" FromRole="FmsFacilityCodeClass" ToRole="CmFacility" />
+  </EntityType>
+  <EntityType Name="FmsFacilityManual">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="FacilityCode" />
+      <PropertyRef Name="ManualId" />
+    </Key>
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="FacilityCode" Type="Int32" Nullable="false" />
+    <Property Name="ManualId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+    <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
+    <Property Name="Name" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
+    <Property Name="Description" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
+    <Property Name="Keyword" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
+    <Property Name="FileId" Type="Int32" />
+    <Property Name="IsUse" Type="Boolean" />
+    <NavigationProperty Name="CmBusinessField" Relationship="Self.FK__CmFacilityManual__7BE56230" FromRole="FmsFacilityManual" ToRole="CmBusinessField" />
+    <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK__CmFacilityManual__79FD19BE" FromRole="FmsFacilityManual" ToRole="CmFacility" />
+  </EntityType>
+  <EntityType Name="FmsFacilityOperationItem">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="ItemId" />
+    </Key>
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="FacilityCode" Type="Int32" Nullable="false" />
+    <Property Name="ItemId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+    <Property Name="Name" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
+    <Property Name="ResultUnit" Type="String" MaxLength="10" FixedLength="false" Unicode="true" Nullable="false" />
+    <Property Name="PointId" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
+    <Property Name="SystemId" Type="Int32" />
+    <Property Name="EnergyCode" Type="Boolean" />
+    <Property Name="IsUse" Type="Boolean" />
+    <Property Name="SortOrderNo" Type="Int32" />
+    <Property Name="InsertedDate" Type="DateTime" Precision="3" />
+    <Property Name="InsertedUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
+    <Property Name="UpdatedDate" Type="DateTime" Precision="3" />
+    <Property Name="UpdatedUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
+    <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK__FmsFacilityOpera__725BF7F6" FromRole="FmsFacilityOperationItem" ToRole="CmFacility" />
+  </EntityType>
+  <EntityType Name="FmsLicense">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="LicenseId" />
+    </Key>
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="LicenseId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+    <Property Name="Name" Type="String" MaxLength="52" FixedLength="false" Unicode="true" Nullable="false" />
+    <Property Name="IssuingOffice" Type="String" MaxLength="52" FixedLength="false" Unicode="true" Nullable="false" />
+    <Property Name="BusinessFieldId" Type="Int32" />
+    <Property Name="EducationalInstitute" Type="String" MaxLength="52" FixedLength="false" Unicode="true" />
+    <Property Name="Note" Type="String" MaxLength="256" FixedLength="false" Unicode="true" />
+    <Property Name="IsUse" Type="Boolean" />
+    <NavigationProperty Name="CmBusinessField" Relationship="Self.FK__FmsLicense__CmBusinessField" FromRole="FmsLicense" ToRole="CmBusinessField" />
+    <NavigationProperty Name="CmUserToLicense" Relationship="Self.FK__CmUserToLicense__FmsLicense" FromRole="FmsLicense" ToRole="CmUserToLicense" />
+    <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsLicense__CmSite" FromRole="FmsLicense" ToRole="CmSite" />
+  </EntityType>
+  <EntityType Name="FmsManual">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="ManualId" />
+    </Key>
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="ManualId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+    <Property Name="ManualNo" Type="String" MaxLength="20" FixedLength="false" Unicode="true" Nullable="false" />
+    <Property Name="ManualTypeId" Type="Int32" Nullable="false" />
+    <Property Name="Name" Type="String" MaxLength="200" FixedLength="false" Unicode="true" Nullable="false" />
+    <Property Name="Description" Type="String" MaxLength="2000" FixedLength="false" Unicode="true" />
+    <NavigationProperty Name="FmsManualType" Relationship="Self.FK_FmsManual_FmsManualType" FromRole="FmsManual" ToRole="FmsManualType" />
+    <NavigationProperty Name="FmsManualHistory" Relationship="Self.FK_FmsManualHistory_FmsManual" FromRole="FmsManual" ToRole="FmsManualHistory" />
+  </EntityType>
+  <EntityType Name="FmsManualHistory">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="ManualId" />
+      <PropertyRef Name="HistoryId" />
+    </Key>
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="ManualId" Type="Int32" Nullable="false" />
+    <Property Name="HistoryId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+    <Property Name="RevisionNo" Type="Int32" />
+    <Property Name="FileId" Type="Int32" />
+    <Property Name="Description" Type="String" MaxLength="2000" FixedLength="false" Unicode="true" />
+    <Property Name="UpdatedDate" Type="DateTime" Precision="3" />
+    <Property Name="UpdatedUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
+    <NavigationProperty Name="CmFile" Relationship="Self.FK_FmsManualHistory_CmFile" FromRole="FmsManualHistory" ToRole="CmFile" />
+    <NavigationProperty Name="CmUser" Relationship="Self.FK_FmsManualHistory_CmUser" FromRole="FmsManualHistory" ToRole="CmUser" />
+    <NavigationProperty Name="FmsManual" Relationship="Self.FK_FmsManualHistory_FmsManual" FromRole="FmsManualHistory" ToRole="FmsManual" />
+  </EntityType>
+  <EntityType Name="FmsManualType">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="ManualTypeId" />
+    </Key>
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="ManualTypeId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+    <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
+    <Property Name="IsUse" Type="Boolean" />
+    <NavigationProperty Name="FmsManual" Relationship="Self.FK_FmsManual_FmsManualType" FromRole="FmsManualType" ToRole="FmsManual" />
+  </EntityType>
+  <EntityType Name="FmsMaterialCarriedForward">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="ClosedDate" />
+      <PropertyRef Name="BusinessFieldId" />
+      <PropertyRef Name="WarehouseId" />
+      <PropertyRef Name="MaterialId" />
+    </Key>
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="ClosedDate" Type="DateTime" Nullable="false" Precision="3" />
+    <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
+    <Property Name="WarehouseId" Type="Int32" Nullable="false" />
+    <Property Name="MaterialId" Type="Int32" Nullable="false" />
+    <Property Name="StockCount" Type="Int32" Nullable="false" />
+    <Property Name="StockTotalCost" Type="Int32" Nullable="false" />
+    <NavigationProperty Name="CmBusinessField" Relationship="Self.FK__FmsMaterialCarriedForward__CmBusinessField" FromRole="FmsMaterialCarriedForward" ToRole="CmBusinessField" />
+    <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsMaterialCarriedForward__CmSite" FromRole="FmsMaterialCarriedForward" ToRole="CmSite" />
+  </EntityType>
+  <EntityType Name="FmsMaterialCodeAdjustmentType">
+    <Key>
+      <PropertyRef Name="AdjustmentTypeId" />
+    </Key>
+    <Property Name="AdjustmentTypeId" Type="Int16" Nullable="false" />
+    <Property Name="Name" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
+    <Property Name="Comment" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
+    <NavigationProperty Name="FmsMaterialRelease" Relationship="iBemsModel.FK_FmsMaterialRelease_FmsMaterialCodeAdjustmentType" FromRole="FmsMaterialCodeAdjustmentType" ToRole="FmsMaterialRelease" />
+  </EntityType>
+  <EntityType Name="FmsMaterialCodeClass">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="MaterialClassId" />
+    </Key>
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="MaterialClassId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+    <Property Name="ParentMaterialClassId" Type="Int32" />
+    <Property Name="Depth" Type="Int32" Nullable="false" />
+    <Property Name="Name" Type="String" MaxLength="32" FixedLength="false" Unicode="true" Nullable="false" />
+    <Property Name="Abbreviation" Type="String" MaxLength="16" FixedLength="false" Unicode="true" />
+    <Property Name="IsUse" Type="Boolean" />
+    <NavigationProperty Name="FmsMaterialCodeClass1" Relationship="Self.FK__FmsMaterialCodeClass__FmsMaterialCodeClass" FromRole="FmsMaterialCodeClass" ToRole="FmsMaterialCodeClass1" />
+    <NavigationProperty Name="FmsMaterialCodeClass2" Relationship="Self.FK__FmsMaterialCodeClass__FmsMaterialCodeClass" FromRole="FmsMaterialCodeClass1" ToRole="FmsMaterialCodeClass" />
+    <NavigationProperty Name="FmsMaterial" Relationship="iBemsModel.FK__FmsMaterial__FmsMaterialCodeClass_AsFirstClassId" FromRole="FmsMaterialCodeClass" ToRole="FmsMaterial" />
+    <NavigationProperty Name="FmsMaterial1" Relationship="iBemsModel.FK__FmsMaterial__FmsMaterialCodeClass_AsSecondClassId" FromRole="FmsMaterialCodeClass" ToRole="FmsMaterial" />
+    <NavigationProperty Name="FmsMaterial2" Relationship="iBemsModel.FK__FmsMaterial__FmsMaterialCodeClass_AsThirdClassId" FromRole="FmsMaterialCodeClass" ToRole="FmsMaterial" />
+    <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsMaterialCodeClass__CmSite" FromRole="FmsMaterialCodeClass" ToRole="CmSite" />
+  </EntityType>
+  <EntityType Name="FmsMaterialCodeLocation">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="LocationId" />
+    </Key>
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="LocationId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+    <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
+    <Property Name="Name" Type="String" MaxLength="48" FixedLength="false" Unicode="true" Nullable="false" />
+    <Property Name="IsUse" Type="Boolean" Nullable="false" />
+    <NavigationProperty Name="CmBusinessField" Relationship="Self.FK__FmsMaterialCodeLocation__CmBusinessField" FromRole="FmsMaterialCodeLocation" ToRole="CmBusinessField" />
+    <NavigationProperty Name="FmsMaterial" Relationship="iBemsModel.FK_FmsMaterial_FmsMaterialCodeLocation" FromRole="FmsMaterialCodeLocation" ToRole="FmsMaterial" />
+    <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsMaterialCodeLocation__CmSite" FromRole="FmsMaterialCodeLocation" ToRole="CmSite" />
+  </EntityType>
+  <EntityType Name="FmsMaterialCodeProgress">
+    <Key>
+      <PropertyRef Name="ProgressId" />
+    </Key>
+    <Property Name="ProgressId" Type="Int16" Nullable="false" />
+    <Property Name="Name" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
+    <Property Name="Description" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
+    <NavigationProperty Name="FmsMaterialPurchaseRequest" Relationship="Self.FK__FmsMaterialPurchasingRequest__FmsMaterialCodeProcess" FromRole="FmsMaterialCodeProgress" ToRole="FmsMaterialPurchaseRequest" />
+  </EntityType>
+  <EntityType Name="FmsMaterialCodePurchaseType">
+    <Key>
+      <PropertyRef Name="PurchaseTypeId" />
+    </Key>
+    <Property Name="PurchaseTypeId" Type="Int16" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+    <Property Name="Name" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
+    <Property Name="Comment" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
+    <NavigationProperty Name="FmsMaterialPurchaseRequest" Relationship="Self.FK_FmsMaterialPurchaseRequest_FmsMaterialCodePurchaseType" FromRole="FmsMaterialCodePurchaseType" ToRole="FmsMaterialPurchaseRequest" />
+  </EntityType>
+  <EntityType Name="FmsMaterialCodeReleaseType">
+    <Key>
+      <PropertyRef Name="ReleaseTypeId" />
+    </Key>
+    <Property Name="ReleaseTypeId" Type="Int16" Nullable="false" />
+    <Property Name="Name" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
+    <Property Name="Description" Type="String" MaxLength="255" FixedLength="false" Unicode="true" />
+    <NavigationProperty Name="FmsMaterialRelease" Relationship="iBemsModel.FK_FmsMaterialRelease_FmsMaterialCodeReleaseType" FromRole="FmsMaterialCodeReleaseType" ToRole="FmsMaterialRelease" />
+  </EntityType>
+  <EntityType Name="FmsMaterialCodeType">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="MaterialTypeId" />
+    </Key>
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="MaterialTypeId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+    <Property Name="Name" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
+    <Property Name="Nickname" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
+    <Property Name="IsUse" Type="Boolean" Nullable="false" />
+    <NavigationProperty Name="FmsMaterial" Relationship="iBemsModel.FK_FmsMaterial_FmsMaterialCodeType" FromRole="FmsMaterialCodeType" ToRole="FmsMaterial" />
+    <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsMaterialCodeType__CmSite" FromRole="FmsMaterialCodeType" ToRole="CmSite" />
+  </EntityType>
+  <EntityType Name="FmsMaterialPurchaseOrder">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="PurchaseOrderId" />
+    </Key>
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
+    <Property Name="PurchaseOrderId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+    <Property Name="PurchaseRequestId" Type="Int32" Nullable="false" />
+    <Property Name="TradeCompanyId" Type="Int32" />
+    <Property Name="OrderDate" Type="DateTime" Nullable="false" Precision="3" />
+    <Property Name="OrderUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
+    <Property Name="Title" Type="String" MaxLength="256" FixedLength="false" Unicode="true" Nullable="false" />
+    <Property Name="Reason" Type="String" MaxLength="2000" FixedLength="false" Unicode="true" />
+    <Property Name="StoredDueDate" Type="DateTime" Precision="3" />
+    <Property Name="FileId" Type="Int32" />
+    <NavigationProperty Name="CmBusinessField" Relationship="Self.FK__FmsMaterialOrder__CmBusinessField" FromRole="FmsMaterialPurchaseOrder" ToRole="CmBusinessField" />
+    <NavigationProperty Name="CmFile" Relationship="Self.FK__FmsMaterialPurchaseOrder__CmFile" FromRole="FmsMaterialPurchaseOrder" ToRole="CmFile" />
+    <NavigationProperty Name="CmUser" Relationship="Self.FK__FmsMaterialOrder__CmUser" FromRole="FmsMaterialPurchaseOrder" ToRole="CmUser" />
+    <NavigationProperty Name="FmsMaterialTradeCompany" Relationship="Self.FK__FmsMaterialPurchaseOrder__FmsMaterialTradeCompany" FromRole="FmsMaterialPurchaseOrder" ToRole="FmsMaterialTradeCompany" />
+    <NavigationProperty Name="FmsMaterialPurchaseRequest" Relationship="Self.FK_FmsMaterialPurchaseOrder_FmsMaterialPurchaseRequest" FromRole="FmsMaterialPurchaseOrder" ToRole="FmsMaterialPurchaseRequest" />
+    <NavigationProperty Name="FmsMaterialPurchaseOrderMaterial" Relationship="Self.FK_FmsMaterialPurchaseOrderMaterial_FmsMaterialPurchaseOrder" FromRole="FmsMaterialPurchaseOrder" ToRole="FmsMaterialPurchaseOrderMaterial" />
+    <NavigationProperty Name="FmsMaterialStored" Relationship="Self.FK_FmsMaterialStored_FmsMaterialPurchaseOrder" FromRole="FmsMaterialPurchaseOrder" ToRole="FmsMaterialStored" />
+    <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsMaterialOrder__CmSite" FromRole="FmsMaterialPurchaseOrder" ToRole="CmSite" />
+  </EntityType>
+  <EntityType Name="FmsMaterialPurchaseOrderMaterial">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="PurchaseOrderId" />
+      <PropertyRef Name="MaterialId" />
+    </Key>
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
+    <Property Name="PurchaseOrderId" Type="Int32" Nullable="false" />
+    <Property Name="MaterialId" Type="Int32" Nullable="false" />
+    <Property Name="MaterialCount" Type="Int32" Nullable="false" />
+    <Property Name="UnitCost" Type="Int32" Nullable="false" />
+    <NavigationProperty Name="FmsMaterialPurchaseOrder" Relationship="Self.FK_FmsMaterialPurchaseOrderMaterial_FmsMaterialPurchaseOrder" FromRole="FmsMaterialPurchaseOrderMaterial" ToRole="FmsMaterialPurchaseOrder" />
+    <NavigationProperty Name="FmsMaterial" Relationship="iBemsModel.FK_FmsMaterialPurchaseOrderMaterial_FmsMaterial" FromRole="FmsMaterialPurchaseOrderMaterial" ToRole="FmsMaterial" />
+  </EntityType>
+  <EntityType Name="FmsMaterialPurchaseRequest">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="PurchaseRequestId" />
+    </Key>
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
+    <Property Name="PurchaseRequestId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+    <Property Name="PurchaseTypeId" Type="Int16" Nullable="false" />
+    <Property Name="RequestDate" Type="DateTime" Nullable="false" Precision="3" />
+    <Property Name="RequestUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
+    <Property Name="PurchaseHopeDate" Type="DateTime" Precision="3" />
+    <Property Name="Title" Type="String" MaxLength="256" FixedLength="false" Unicode="true" Nullable="false" />
+    <Property Name="Reason" Type="String" MaxLength="2000" FixedLength="false" Unicode="true" Nullable="false" />
+    <Property Name="ProgressId" Type="Int16" Nullable="false" />
+    <Property Name="ApprovalDate" Type="DateTime" Precision="3" />
+    <Property Name="ApprovalUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
+    <NavigationProperty Name="CmBusinessField" Relationship="Self.FK__FmsMaterialPurchasingRequest__CmBusinessField" FromRole="FmsMaterialPurchaseRequest" ToRole="CmBusinessField" />
+    <NavigationProperty Name="CmUser" Relationship="Self.FK__FmsMaterialPurchaseRequest__CmUser_AsRequestUserId" FromRole="FmsMaterialPurchaseRequest" ToRole="CmUser" />
+    <NavigationProperty Name="CmUser1" Relationship="Self.FK__FmsMaterialPurchaseRequest__CmUser1_AsApprovalUserId" FromRole="FmsMaterialPurchaseRequest" ToRole="CmUser" />
+    <NavigationProperty Name="FmsMaterialCodeProgress" Relationship="Self.FK__FmsMaterialPurchasingRequest__FmsMaterialCodeProcess" FromRole="FmsMaterialPurchaseRequest" ToRole="FmsMaterialCodeProgress" />
+    <NavigationProperty Name="FmsMaterialCodePurchaseType" Relationship="Self.FK_FmsMaterialPurchaseRequest_FmsMaterialCodePurchaseType" FromRole="FmsMaterialPurchaseRequest" ToRole="FmsMaterialCodePurchaseType" />
+    <NavigationProperty Name="FmsMaterialPurchaseOrder" Relationship="Self.FK_FmsMaterialPurchaseOrder_FmsMaterialPurchaseRequest" FromRole="FmsMaterialPurchaseRequest" ToRole="FmsMaterialPurchaseOrder" />
+    <NavigationProperty Name="FmsMaterialPurchaseRequestMaterial" Relationship="Self.FK_FmsMaterialPurchaseRequestMaterial_FmsMaterialPurchaseRequest" FromRole="FmsMaterialPurchaseRequest" ToRole="FmsMaterialPurchaseRequestMaterial" />
+    <Property Name="bSameOrder" Type="Boolean" />
+    <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsMaterialPurchasingRequest__CmSite" FromRole="FmsMaterialPurchaseRequest" ToRole="CmSite" />
+  </EntityType>
+  <EntityType Name="FmsMaterialPurchaseRequestMaterial">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="PurchaseRequestId" />
+      <PropertyRef Name="MaterialId" />
+    </Key>
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
+    <Property Name="PurchaseRequestId" Type="Int32" Nullable="false" />
+    <Property Name="MaterialId" Type="Int32" Nullable="false" />
+    <Property Name="MaterialCount" Type="Int32" Nullable="false" />
+    <NavigationProperty Name="FmsMaterialPurchaseRequest" Relationship="Self.FK_FmsMaterialPurchaseRequestMaterial_FmsMaterialPurchaseRequest" FromRole="FmsMaterialPurchaseRequestMaterial" ToRole="FmsMaterialPurchaseRequest" />
+    <NavigationProperty Name="FmsMaterial" Relationship="iBemsModel.FK_FmsMaterialPurchaseRequestMaterial_FmsMaterial" FromRole="FmsMaterialPurchaseRequestMaterial" ToRole="FmsMaterial" />
+  </EntityType>
+  <EntityType Name="FmsMaterialStored">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="MaterialStoredId" />
+    </Key>
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
+    <Property Name="StoredDate" Type="DateTime" Nullable="false" Precision="3" />
+    <Property Name="MaterialStoredId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+    <Property Name="PurchaseOrderId" Type="Int32" />
+    <Property Name="WarehouseId" Type="Int32" Nullable="false" />
+    <Property Name="MaterialId" Type="Int32" Nullable="false" />
+    <Property Name="StoredCount" Type="Int32" Nullable="false" />
+    <Property Name="RemainStoredCount" Type="Int32" Nullable="false" />
+    <Property Name="UnitCost" Type="Int32" Nullable="false" />
+    <Property Name="StockCount" Type="Int32" Nullable="false" />
+    <Property Name="Note" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
+    <Property Name="StoredUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
+    <Property Name="ApprovalDate" Type="DateTime" Precision="3" />
+    <Property Name="ApprovalUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
+    <Property Name="IsApproval" Type="Boolean" Nullable="false" />
+    <Property Name="LocationInWarehouse" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
+    <NavigationProperty Name="CmBusinessField" Relationship="Self.FK__FmsMaterialStored__CmBusinessField" FromRole="FmsMaterialStored" ToRole="CmBusinessField" />
+    <NavigationProperty Name="CmUser" Relationship="Self.FK__FmsMaterialStored__CmUser_AsStoredUserId" FromRole="FmsMaterialStored" ToRole="CmUser" />
+    <NavigationProperty Name="CmUser1" Relationship="Self.FK__FmsMaterialStored__CmUser1_AsApprovalUserId" FromRole="FmsMaterialStored" ToRole="CmUser" />
+    <NavigationProperty Name="FmsMaterialPurchaseOrder" Relationship="Self.FK_FmsMaterialStored_FmsMaterialPurchaseOrder" FromRole="FmsMaterialStored" ToRole="FmsMaterialPurchaseOrder" />
+    <NavigationProperty Name="FmsMaterialWarehouse" Relationship="Self.FK_FmsMaterialStored_FmsMaterialWarehouse" FromRole="FmsMaterialStored" ToRole="FmsMaterialWarehouse" />
+    <NavigationProperty Name="FmsMaterial" Relationship="iBemsModel.FK_FmsMaterialStored_FmsMaterial" FromRole="FmsMaterialStored" ToRole="FmsMaterial" />
+    <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsMaterialStored__CmSite" FromRole="FmsMaterialStored" ToRole="CmSite" />
+  </EntityType>
+  <EntityType Name="FmsMaterialTradeCompany">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="TradeCompanyId" />
+    </Key>
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="TradeCompanyId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+    <Property Name="Name" Type="String" MaxLength="48" FixedLength="false" Unicode="true" Nullable="false" />
+    <Property Name="RegistrationNo" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
+    <Property Name="RepresentativeName" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
+    <Property Name="PhoneNo" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
+    <Property Name="FaxNo" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
+    <Property Name="SalesName" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
+    <Property Name="SalesPhoneNo" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
+    <Property Name="AddressZip1" Type="String" MaxLength="5" FixedLength="true" Unicode="true" />
+    <Property Name="AddressZip2" Type="String" MaxLength="3" FixedLength="true" Unicode="true" />
+    <Property Name="Address1" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
+    <Property Name="Adderss2" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
+    <Property Name="HomepageUri" Type="String" MaxLength="200" FixedLength="false" Unicode="true" />
+    <Property Name="Note" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
+    <Property Name="IsUse" Type="Boolean" Nullable="false" />
+    <NavigationProperty Name="FmsMaterialPurchaseOrder" Relationship="Self.FK__FmsMaterialPurchaseOrder__FmsMaterialTradeCompany" FromRole="FmsMaterialTradeCompany" ToRole="FmsMaterialPurchaseOrder" />
+    <NavigationProperty Name="FmsMaterial" Relationship="iBemsModel.FK_FmsMaterial_FmsMaterialTradeCompany" FromRole="FmsMaterialTradeCompany" ToRole="FmsMaterial" />
+    <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsMaterialTradeCompany__CmSite" FromRole="FmsMaterialTradeCompany" ToRole="CmSite" />
+  </EntityType>
+  <EntityType Name="FmsMaterialWarehouse">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="WarehouseId" />
+    </Key>
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
+    <Property Name="WarehouseId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+    <Property Name="Name" Type="String" MaxLength="48" FixedLength="false" Unicode="true" Nullable="false" />
+    <Property Name="IsUse" Type="Boolean" Nullable="false" />
+    <NavigationProperty Name="CmBusinessField" Relationship="Self.FK__FmsMaterialWarehouse__CmBusinessField" FromRole="FmsMaterialWarehouse" ToRole="CmBusinessField" />
+    <NavigationProperty Name="FmsMaterialStored" Relationship="Self.FK_FmsMaterialStored_FmsMaterialWarehouse" FromRole="FmsMaterialWarehouse" ToRole="FmsMaterialStored" />
+    <NavigationProperty Name="FmsMaterial" Relationship="iBemsModel.FK_FmsMaterial_FmsMaterialWarehouse" FromRole="FmsMaterialWarehouse" ToRole="FmsMaterial" />
+    <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsMaterialWarehouse__CmSite" FromRole="FmsMaterialWarehouse" ToRole="CmSite" />
+    <NavigationProperty Name="FmsEquipment" Relationship="iBemsModel.FK_FmsEquipment_FmsMaterialWarehouse" FromRole="FmsMaterialWarehouse" ToRole="FmsEquipment" />
+  </EntityType>
+  <EntityType Name="FmsPaymentType">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="PaymentTypeId" />
+    </Key>
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="PaymentTypeId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+    <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
+    <Property Name="IsUse" Type="Boolean" />
+    <NavigationProperty Name="FmsContract" Relationship="iBemsModel.FK_FmsContract_FmsPaymentType" FromRole="FmsPaymentType" ToRole="FmsContract" />
+  </EntityType>
+  <EntityType Name="FmsWorkCodeCauseClass">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="CauseClassId" />
+    </Key>
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="CauseClassId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+    <Property Name="ParentId" Type="Int32" Nullable="false" />
+    <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
+    <Property Name="IsUse" Type="Boolean" />
+    <NavigationProperty Name="FmsWorkResult" Relationship="Self.FK__FmsWorkResult__FmsWorkCodeCauseClass" FromRole="FmsWorkCodeCauseClass" ToRole="FmsWorkResult" />
+    <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsWorkCodeCauseClass__CmSite" FromRole="FmsWorkCodeCauseClass" ToRole="CmSite" />
+  </EntityType>
+  <EntityType Name="FmsWorkCodeCycleUnit">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="CycleUnitId" />
+    </Key>
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="CycleUnitId" Type="Int32" Nullable="false" />
+    <Property Name="Name" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
+    <Property Name="Description" Type="String" MaxLength="200" FixedLength="false" Unicode="true" />
+    <NavigationProperty Name="FmsFacilityCheckItem" Relationship="Self.FK__FmsFacilityCheckItem__FmsWorkCodeCycleUnit" FromRole="FmsWorkCodeCycleUnit" ToRole="FmsFacilityCheckItem" />
+    <NavigationProperty Name="FmsWorkSchedule" Relationship="Self.FK__FmsWorkSchedule__FmsWorkCodeCycleUnit" FromRole="FmsWorkCodeCycleUnit" ToRole="FmsWorkSchedule" />
+    <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsWorkCodeCycleUnit__CmSite" FromRole="FmsWorkCodeCycleUnit" ToRole="CmSite" />
+  </EntityType>
+  <EntityType Name="FmsWorkCodeEmergency">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="EmergencyId" />
+    </Key>
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="EmergencyId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+    <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
+    <Property Name="IsUse" Type="Boolean" />
+    <NavigationProperty Name="FmsWorkOrder" Relationship="Self.FK__FmsWorkOrder__FmsWorkCodeEmergency" FromRole="FmsWorkCodeEmergency" ToRole="FmsWorkOrder" />
+    <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsWorkCodeEmergency__CmSite" FromRole="FmsWorkCodeEmergency" ToRole="CmSite" />
+  </EntityType>
+  <EntityType Name="FmsWorkCodeHolidayWorkType">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="HolidayWorkTypeId" />
+    </Key>
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="HolidayWorkTypeId" Type="Int32" Nullable="false" />
+    <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
+    <Property Name="IsUse" Type="Boolean" />
+    <NavigationProperty Name="FmsWorkSchedule" Relationship="Self.FK__FmsWorkSchedule__FmsWorkCodeHolidayWorkType" FromRole="FmsWorkCodeHolidayWorkType" ToRole="FmsWorkSchedule" />
+    <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsWorkCodeHolidayWorkType__CmSite" FromRole="FmsWorkCodeHolidayWorkType" ToRole="CmSite" />
+  </EntityType>
+  <EntityType Name="FmsWorkCodeLegalInspectionAgency">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="InspectionAgencyId" />
+    </Key>
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="InspectionAgencyId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+    <Property Name="Name" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
+    <Property Name="IsUse" Type="Boolean" />
+    <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsWorkCodeLegalInspectionAgency__CmSite" FromRole="FmsWorkCodeLegalInspectionAgency" ToRole="CmSite" />
+  </EntityType>
+  <EntityType Name="FmsWorkCodeProgress">
+    <Key>
+      <PropertyRef Name="WorkProgressId" />
+    </Key>
+    <Property Name="WorkProgressId" Type="Int32" Nullable="false" />
+    <Property Name="Name" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
+    <Property Name="Description" Type="String" MaxLength="512" FixedLength="false" Unicode="true" />
+    <NavigationProperty Name="FmsWorkRequest" Relationship="Self.FK__FmsWorkRequest__FmsWorkCodeProgress" FromRole="FmsWorkCodeProgress" ToRole="FmsWorkRequest" />
+  </EntityType>
+  <EntityType Name="FmsWorkCodeType">
+    <Key>
+      <PropertyRef Name="WorkTypeId" />
+    </Key>
+    <Property Name="WorkTypeId" Type="Int32" Nullable="false" />
+    <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
+    <Property Name="Description" Type="String" MaxLength="512" FixedLength="false" Unicode="true" />
+    <NavigationProperty Name="FmsFacilityCheckItem" Relationship="Self.FK__FmsFacilityCheckItem__FmsWorkCodeWorkType" FromRole="FmsWorkCodeType" ToRole="FmsFacilityCheckItem" />
+    <NavigationProperty Name="FmsWorkRequest" Relationship="Self.FK__FmsWorkRequest__FmsWorkCodeWorkType" FromRole="FmsWorkCodeType" ToRole="FmsWorkRequest" />
+    <NavigationProperty Name="FmsWorkSchedule" Relationship="Self.FK__FmsWorkSchedule__FmsWorkCodeWorkType" FromRole="FmsWorkCodeType" ToRole="FmsWorkSchedule" />
+  </EntityType>
+  <EntityType Name="FmsWorkOrder">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="WorkRequestId" />
+    </Key>
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="WorkRequestId" Type="Int32" Nullable="false" />
+    <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
+    <Property Name="EmergencyId" Type="Int32" />
+    <Property Name="OrderUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
+    <Property Name="OrderDate" Type="DateTime" Nullable="false" Precision="3" />
+    <Property Name="StartWorkDate" Type="DateTime" Nullable="false" Precision="3" />
+    <Property Name="Title" Type="String" MaxLength="200" FixedLength="false" Unicode="true" Nullable="false" />
+    <Property Name="Content" Type="String" MaxLength="2000" FixedLength="false" Unicode="true" />
+    <NavigationProperty Name="CmBusinessField" Relationship="Self.FK__FmsWorkOrder__CmBusinessField" FromRole="FmsWorkOrder" ToRole="CmBusinessField" />
+    <NavigationProperty Name="CmUser" Relationship="Self.FK__FmsWorkOrder__CmUser" FromRole="FmsWorkOrder" ToRole="CmUser" />
+    <NavigationProperty Name="FmsWorkCodeEmergency" Relationship="Self.FK__FmsWorkOrder__FmsWorkCodeEmergency" FromRole="FmsWorkOrder" ToRole="FmsWorkCodeEmergency" />
+    <NavigationProperty Name="FmsWorkRequest" Relationship="Self.FK__FmsWorkOrder__FmsWorkRequest" FromRole="FmsWorkOrder" ToRole="FmsWorkRequest" />
+    <NavigationProperty Name="FmsWorkOrderToFacility" Relationship="Self.FK__FmsWorkOrderToFacility__FmsWorkOrder" FromRole="FmsWorkOrder" ToRole="FmsWorkOrderToFacility" />
+    <NavigationProperty Name="FmsWorkResult" Relationship="Self.FK__FmsWorkResult__FmsWorkOrder" FromRole="FmsWorkOrder" ToRole="FmsWorkResult" />
+    <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsWorkOrder__CmSite" FromRole="FmsWorkOrder" ToRole="CmSite" />
+  </EntityType>
+  <EntityType Name="FmsWorkOrderToFacility">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="WorkRequestId" />
+      <PropertyRef Name="FacilityCode" />
+    </Key>
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="WorkRequestId" Type="Int32" Nullable="false" />
+    <Property Name="FacilityCode" Type="Int32" Nullable="false" />
+    <NavigationProperty Name="FmsWorkOrder" Relationship="Self.FK__FmsWorkOrderToFacility__FmsWorkOrder" FromRole="FmsWorkOrderToFacility" ToRole="FmsWorkOrder" />
+    <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK_FmsWorkOrderToFacility_CmFacility" FromRole="FmsWorkOrderToFacility" ToRole="CmFacility" />
+  </EntityType>
+  <EntityType Name="FmsWorkRequest">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="WorkRequestId" />
+    </Key>
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="WorkRequestId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+    <Property Name="WorkTypeId" Type="Int32" Nullable="false" />
+    <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
+    <Property Name="WorkScheduleId" Type="Int32" />
+    <Property Name="WorkProgressId" Type="Int32" Nullable="false" />
+    <Property Name="Title" Type="String" MaxLength="200" FixedLength="false" Unicode="true" Nullable="false" />
+    <Property Name="Content" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
+    <Property Name="RequestUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
+    <Property Name="RequestDate" Type="DateTime" Nullable="false" Precision="3" />
+    <Property Name="StartWorkDate" Type="DateTime" Nullable="false" Precision="3" />
+    <Property Name="RejectUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
+    <Property Name="RejectDate" Type="DateTime" Precision="3" />
+    <Property Name="RejectReason" Type="String" MaxLength="512" FixedLength="false" Unicode="true" />
+    <Property Name="InspectionAgencyId" Type="Int32" />
+    <NavigationProperty Name="CmBusinessField" Relationship="Self.FK__FmsWorkRequest__CmBusinessField" FromRole="FmsWorkRequest" ToRole="CmBusinessField" />
+    <NavigationProperty Name="CmUser" Relationship="Self.FK__FmsWorkRequest__CmUser_AsRequestUserId" FromRole="FmsWorkRequest" ToRole="CmUser" />
+    <NavigationProperty Name="CmUser1" Relationship="Self.FK__FmsWorkRequest__CmUser1_AsRejectUserId" FromRole="FmsWorkRequest" ToRole="CmUser" />
+    <NavigationProperty Name="FmsWorkCodeProgress" Relationship="Self.FK__FmsWorkRequest__FmsWorkCodeProgress" FromRole="FmsWorkRequest" ToRole="FmsWorkCodeProgress" />
+    <NavigationProperty Name="FmsWorkCodeType" Relationship="Self.FK__FmsWorkRequest__FmsWorkCodeWorkType" FromRole="FmsWorkRequest" ToRole="FmsWorkCodeType" />
+    <NavigationProperty Name="FmsWorkOrder" Relationship="Self.FK__FmsWorkOrder__FmsWorkRequest" FromRole="FmsWorkRequest" ToRole="FmsWorkOrder" />
+    <NavigationProperty Name="FmsWorkSchedule" Relationship="Self.FK__FmsWorkRequest__FmsWorkSchedule" FromRole="FmsWorkRequest" ToRole="FmsWorkSchedule" />
+    <NavigationProperty Name="FmsWorkRequestToFacility" Relationship="Self.FK__FmsWorkRequestToFacility__FmsWorkRequest" FromRole="FmsWorkRequest" ToRole="FmsWorkRequestToFacility" />
+    <NavigationProperty Name="FmsWorkResult" Relationship="Self.FK__FmsWorkResult__FmsWorkRequest" FromRole="FmsWorkRequest" ToRole="FmsWorkResult" />
+    <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsWorkRequest__CmSite" FromRole="FmsWorkRequest" ToRole="CmSite" />
+    <NavigationProperty Name="CmPartner" Relationship="iBemsModel.FK_FmsWorkRequest_CmPartner" FromRole="FmsWorkRequest" ToRole="CmPartner" />
+  </EntityType>
+  <EntityType Name="FmsWorkRequestToFacility">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="WorkRequestId" />
+      <PropertyRef Name="FacilityCode" />
+    </Key>
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="WorkRequestId" Type="Int32" Nullable="false" />
+    <Property Name="FacilityCode" Type="Int32" Nullable="false" />
+    <NavigationProperty Name="FmsWorkRequest" Relationship="Self.FK__FmsWorkRequestToFacility__FmsWorkRequest" FromRole="FmsWorkRequestToFacility" ToRole="FmsWorkRequest" />
+    <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK_FmsWorkRequestToFacility_CmFacility" FromRole="FmsWorkRequestToFacility" ToRole="CmFacility" />
+  </EntityType>
+  <EntityType Name="FmsWorkResult">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="WorkRequestId" />
+    </Key>
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="WorkRequestId" Type="Int32" Nullable="false" />
+    <Property Name="WorkerUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
+    <Property Name="StartDate" Type="DateTime" Nullable="false" Precision="3" />
+    <Property Name="EndDate" Type="DateTime" Nullable="false" Precision="3" />
+    <Property Name="CauseClassId" Type="Int32" />
+    <Property Name="Content" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
+    <Property Name="ConfirmedDate" Type="DateTime" Precision="3" />
+    <Property Name="ConfirmedUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
+    <Property Name="IsConfirmed" Type="Boolean" Nullable="false" />
+    <NavigationProperty Name="CmUser" Relationship="Self.FK__FmsWorkResult__CmUser_AsWorkerUserId" FromRole="FmsWorkResult" ToRole="CmUser" />
+    <NavigationProperty Name="CmUser1" Relationship="Self.FK__FmsWorkResult__CmUser1_AsConfirmedUserId" FromRole="FmsWorkResult" ToRole="CmUser" />
+    <NavigationProperty Name="FmsWorkCodeCauseClass" Relationship="Self.FK__FmsWorkResult__FmsWorkCodeCauseClass" FromRole="FmsWorkResult" ToRole="FmsWorkCodeCauseClass" />
+    <NavigationProperty Name="FmsWorkOrder" Relationship="Self.FK__FmsWorkResult__FmsWorkOrder" FromRole="FmsWorkResult" ToRole="FmsWorkOrder" />
+    <NavigationProperty Name="FmsWorkRequest" Relationship="Self.FK__FmsWorkResult__FmsWorkRequest" FromRole="FmsWorkResult" ToRole="FmsWorkRequest" />
+    <NavigationProperty Name="FmsWorkResultCheckItem" Relationship="Self.FK__FmsWorkResultCheckItem__FmsWorkResult" FromRole="FmsWorkResult" ToRole="FmsWorkResultCheckItem" />
+    <NavigationProperty Name="FmsWorkResultFile" Relationship="Self.FK__FmsWorkResultFile__FmsWorkResult" FromRole="FmsWorkResult" ToRole="FmsWorkResultFile" />
+    <NavigationProperty Name="FmsWorkResultLaw" Relationship="Self.FK__FmsWorkResultLaw__FmsWorkResult" FromRole="FmsWorkResult" ToRole="FmsWorkResultLaw" />
+    <NavigationProperty Name="FmsWorkResultToFacility" Relationship="Self.FK__FmsWorkResultToFacility__FmsWorkOrder" FromRole="FmsWorkResult" ToRole="FmsWorkResultToFacility" />
+    <NavigationProperty Name="FmsMaterialRelease" Relationship="iBemsModel.FK_FmsMaterialRelease_FmsWorkResult" FromRole="FmsWorkResult" ToRole="FmsMaterialRelease" />
+    <NavigationProperty Name="FmsWorkResultCheckItemMaterial" Relationship="iBemsModel.FK_FmsWorkResultCheckItemMaterial_FmsWorkResult" FromRole="FmsWorkResult" ToRole="FmsWorkResultCheckItemMaterial" />
+    <Property Name="ConfirmDesc" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
+  </EntityType>
+  <EntityType Name="FmsWorkResultCheckItem">
+    <Key>
+      <PropertyRef Name="CheckItemId" />
+    </Key>
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="WorkRequestId" Type="Int32" Nullable="false" />
+    <Property Name="FacilityCode" Type="Int32" />
+    <Property Name="CheckItemId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+    <Property Name="BoolResult" Type="Boolean" />
+    <Property Name="TextResult" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
+    <Property Name="CheckDate" Type="DateTime" Nullable="false" Precision="3" />
+    <NavigationProperty Name="FmsFacilityCheckItem" Relationship="Self.FK__FmsWorkResultCheckItem__FmsFacilityCheckItem" FromRole="FmsWorkResultCheckItem" ToRole="FmsFacilityCheckItem" />
+    <NavigationProperty Name="FmsWorkResult" Relationship="Self.FK__FmsWorkResultCheckItem__FmsWorkResult" FromRole="FmsWorkResultCheckItem" ToRole="FmsWorkResult" />
+    <NavigationProperty Name="FmsWorkResultCheckItemMaterial" Relationship="Self.FK_FmsWorkResultCheckItemMaterial_FmsWorkResultCheckItem" FromRole="FmsWorkResultCheckItem" ToRole="FmsWorkResultCheckItemMaterial" />
+    <Property Name="FileId1" Type="Int32" />
+    <Property Name="FileId2" Type="Int32" />
+    <NavigationProperty Name="CmFile" Relationship="iBemsModel.FK_FmsWorkResultCheckItem_CmFile" FromRole="FmsWorkResultCheckItem" ToRole="CmFile" />
+    <NavigationProperty Name="CmFile1" Relationship="iBemsModel.FK_FmsWorkResultCheckItem_CmFile1" FromRole="FmsWorkResultCheckItem" ToRole="CmFile" />
+    <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK__FmsWorkResultCheckItem__CmFacility" FromRole="FmsWorkResultCheckItem" ToRole="CmFacility" />
+  </EntityType>
+  <EntityType Name="FmsWorkResultCheckItemMaterial">
+    <Key>
+      <PropertyRef Name="CheckItemMaterialId" />
+    </Key>
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="WorkRequestId" Type="Int32" Nullable="false" />
+    <Property Name="CheckItemId" Type="Int32" Nullable="false" />
+    <Property Name="CheckItemMaterialId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+    <Property Name="MaterialId" Type="Int32" Nullable="false" />
+    <Property Name="MaterialCount" Type="Int32" Nullable="false" />
+    <Property Name="MaterialCode" Type="String" MaxLength="48" FixedLength="false" Unicode="true" />
+    <Property Name="Name" Type="String" MaxLength="48" FixedLength="false" Unicode="true" />
+    <NavigationProperty Name="FmsWorkResultCheckItem" Relationship="Self.FK_FmsWorkResultCheckItemMaterial_FmsWorkResultCheckItem" FromRole="FmsWorkResultCheckItemMaterial" ToRole="FmsWorkResultCheckItem" />
+    <NavigationProperty Name="FmsMaterial" Relationship="iBemsModel.FK_FmsWorkResultCheckItemMaterial_FmsMaterial" FromRole="FmsWorkResultCheckItemMaterial" ToRole="FmsMaterial" />
+    <NavigationProperty Name="FmsWorkResult" Relationship="iBemsModel.FK_FmsWorkResultCheckItemMaterial_FmsWorkResult" FromRole="FmsWorkResultCheckItemMaterial" ToRole="FmsWorkResult" />
+  </EntityType>
+  <EntityType Name="FmsWorkResultFile">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="WorkRequestId" />
+    </Key>
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="WorkRequestId" Type="Int32" Nullable="false" />
+    <Property Name="FileId" Type="Int32" Nullable="false" />
+    <NavigationProperty Name="CmFile" Relationship="Self.FK__FmsWorkResultFile__CmFile" FromRole="FmsWorkResultFile" ToRole="CmFile" />
+    <NavigationProperty Name="FmsWorkResult" Relationship="Self.FK__FmsWorkResultFile__FmsWorkResult" FromRole="FmsWorkResultFile" ToRole="FmsWorkResult" />
+  </EntityType>
+  <EntityType Name="FmsWorkResultLaw">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="WorkRequestId" />
+    </Key>
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="WorkRequestId" Type="Int32" Nullable="false" />
+    <Property Name="CertificationNo" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
+    <Property Name="CheckCommission" Type="Decimal" Precision="10" Scale="0" />
+    <Property Name="CheckResult" Type="Boolean" />
+    <NavigationProperty Name="FmsWorkResult" Relationship="Self.FK__FmsWorkResultLaw__FmsWorkResult" FromRole="FmsWorkResultLaw" ToRole="FmsWorkResult" />
+  </EntityType>
+  <EntityType Name="FmsWorkResultToFacility">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="WorkRequestId" />
+      <PropertyRef Name="FacilityCode" />
+    </Key>
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="WorkRequestId" Type="Int32" Nullable="false" />
+    <Property Name="FacilityCode" Type="Int32" Nullable="false" />
+    <NavigationProperty Name="FmsWorkResult" Relationship="Self.FK__FmsWorkResultToFacility__FmsWorkOrder" FromRole="FmsWorkResultToFacility" ToRole="FmsWorkResult" />
+    <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK__FmsWorkResultToFacility__CmFacility" FromRole="FmsWorkResultToFacility" ToRole="CmFacility" />
+  </EntityType>
+  <EntityType Name="FmsWorkScheduleToFacility">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="WorkScheduleId" />
+      <PropertyRef Name="FacilityCode" />
+    </Key>
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="WorkScheduleId" Type="Int32" Nullable="false" />
+    <Property Name="FacilityCode" Type="Int32" Nullable="false" />
+    <NavigationProperty Name="FmsWorkSchedule" Relationship="Self.FK__FmsWorkScheduleToFacility__FmsWorkSchedule" FromRole="FmsWorkScheduleToFacility" ToRole="FmsWorkSchedule" />
+    <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK_FmsWorkScheduleToFacility_CmFacility" FromRole="FmsWorkScheduleToFacility" ToRole="CmFacility" />
+  </EntityType>
+  <EntityType Name="sysdiagrams">
+    <Key>
+      <PropertyRef Name="diagram_id" />
+    </Key>
+    <Property Name="name" Type="String" MaxLength="128" FixedLength="false" Unicode="true" Nullable="false" />
+    <Property Name="principal_id" Type="Int32" Nullable="false" />
+    <Property Name="diagram_id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+    <Property Name="version" Type="Int32" />
+    <Property Name="definition" Type="Binary" MaxLength="Max" FixedLength="false" />
+  </EntityType>
+  <Association Name="FK__BemsMonitoringPo__1372D2FE">
+    <End Role="BemsAnalysisType" Type="Self.BemsAnalysisType" Multiplicity="1" />
+    <End Role="BemsMonitoringPointToAnlaysisType" Type="Self.BemsMonitoringPointToAnlaysisType" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="BemsAnalysisType">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="AnalysisType" />
+      </Principal>
+      <Dependent Role="BemsMonitoringPointToAnlaysisType">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="AnalysisType" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_BemsControlPointHistory_BemsFacilityType">
+    <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
+    <End Role="BemsControlPointHistory" Type="Self.BemsControlPointHistory" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="BemsFacilityType">
+        <PropertyRef Name="FacilityTypeId" />
+      </Principal>
+      <Dependent Role="BemsControlPointHistory">
+        <PropertyRef Name="FacilityTypeId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_BemsControlPointHistory_BemsMonitoringPoint">
+    <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="1" />
+    <End Role="BemsControlPointHistory" Type="Self.BemsControlPointHistory" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="BemsMonitoringPoint">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FacilityCode" />
+        <PropertyRef Name="PropertyId" />
+      </Principal>
+      <Dependent Role="BemsControlPointHistory">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FacilityCode" />
+        <PropertyRef Name="PropertyId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__BemsMonitoringPointBaseData__BemsFacilityType">
+    <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
+    <End Role="BemsMonitoringPointBaseData" Type="Self.BemsMonitoringPointBaseData" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="BemsFacilityType">
+        <PropertyRef Name="FacilityTypeId" />
+      </Principal>
+      <Dependent Role="BemsMonitoringPointBaseData">
+        <PropertyRef Name="FacilityTypeId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__BemsMonitoringPointHistory15min__BemsFacilityType">
+    <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
+    <End Role="BemsMonitoringPointHistory15min" Type="Self.BemsMonitoringPointHistory15min" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="BemsFacilityType">
+        <PropertyRef Name="FacilityTypeId" />
+      </Principal>
+      <Dependent Role="BemsMonitoringPointHistory15min">
+        <PropertyRef Name="FacilityTypeId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__BemsMonitoringPointHistoryDaily__BemsFacilityType">
+    <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
+    <End Role="BemsMonitoringPointHistoryDaily" Type="Self.BemsMonitoringPointHistoryDaily" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="BemsFacilityType">
+        <PropertyRef Name="FacilityTypeId" />
+      </Principal>
+      <Dependent Role="BemsMonitoringPointHistoryDaily">
+        <PropertyRef Name="FacilityTypeId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__BemsMonitoringPointHistoryHourly__BemsFacilityType">
+    <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
+    <End Role="BemsMonitoringPointHistoryHourly" Type="Self.BemsMonitoringPointHistoryHourly" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="BemsFacilityType">
+        <PropertyRef Name="FacilityTypeId" />
+      </Principal>
+      <Dependent Role="BemsMonitoringPointHistoryHourly">
+        <PropertyRef Name="FacilityTypeId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__BemsMonitoringPointToAnlaysisType__BemsFacilityType">
+    <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
+    <End Role="BemsMonitoringPointToAnlaysisType" Type="Self.BemsMonitoringPointToAnlaysisType" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="BemsFacilityType">
+        <PropertyRef Name="FacilityTypeId" />
+      </Principal>
+      <Dependent Role="BemsMonitoringPointToAnlaysisType">
+        <PropertyRef Name="FacilityTypeId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_BemsMonitoringPoint_BemsFacilityType">
+    <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
+    <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="BemsFacilityType">
+        <PropertyRef Name="FacilityTypeId" />
+      </Principal>
+      <Dependent Role="BemsMonitoringPoint">
+        <PropertyRef Name="FacilityTypeId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__BemsFormula__BemsFormulaBase">
+    <End Role="BemsFormulaBase" Type="Self.BemsFormulaBase" Multiplicity="1" />
+    <End Role="BemsFormula" Type="Self.BemsFormula" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="BemsFormulaBase">
+        <PropertyRef Name="FacilityTypeId" />
+        <PropertyRef Name="FormulaId" />
+      </Principal>
+      <Dependent Role="BemsFormula">
+        <PropertyRef Name="FacilityTypeId" />
+        <PropertyRef Name="FormulaId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__BemsFormulaParameter__BemsFormula">
+    <End Role="BemsFormula" Type="Self.BemsFormula" Multiplicity="1" />
+    <End Role="BemsFormulaParameter" Type="Self.BemsFormulaParameter" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="BemsFormula">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FacilityTypeId" />
+        <PropertyRef Name="FacilityCode" />
+        <PropertyRef Name="FormulaId" />
+      </Principal>
+      <Dependent Role="BemsFormulaParameter">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FacilityTypeId" />
+        <PropertyRef Name="FacilityCode" />
+        <PropertyRef Name="FormulaId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__BemsFormulaParameter__BemsMonitoringPoint">
+    <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="1" />
+    <End Role="BemsFormulaParameter" Type="Self.BemsFormulaParameter" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="BemsMonitoringPoint">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FacilityCode" />
+        <PropertyRef Name="PropertyId" />
+      </Principal>
+      <Dependent Role="BemsFormulaParameter">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="ParameterFacilityCode" />
+        <PropertyRef Name="ParameterPropertyId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__BemsFormulaTableValue__BemsFormulaTable">
+    <End Role="BemsFormulaTable" Type="Self.BemsFormulaTable" Multiplicity="1" />
+    <End Role="BemsFormulaTableValue" Type="Self.BemsFormulaTableValue" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="BemsFormulaTable">
+        <PropertyRef Name="TableId" />
+      </Principal>
+      <Dependent Role="BemsFormulaTableValue">
+        <PropertyRef Name="TableId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__BemsMonitoringPo__155B1B70">
+    <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="1" />
+    <End Role="BemsMonitoringPointToAnlaysisType" Type="Self.BemsMonitoringPointToAnlaysisType" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="BemsMonitoringPoint">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FacilityCode" />
+        <PropertyRef Name="PropertyId" />
+      </Principal>
+      <Dependent Role="BemsMonitoringPointToAnlaysisType">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FacilityCode" />
+        <PropertyRef Name="PropertyId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__BemsMonitoringPoint__BemsServiceType">
+    <End Role="BemsServiceType" Type="Self.BemsServiceType" Multiplicity="0..1" />
+    <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="BemsServiceType">
+        <PropertyRef Name="ServiceTypeId" />
+      </Principal>
+      <Dependent Role="BemsMonitoringPoint">
+        <PropertyRef Name="ServiceTypeId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__BemsMonitoringPoint__CmBuilding">
+    <End Role="CmBuilding" Type="Self.CmBuilding" Multiplicity="0..1" />
+    <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmBuilding">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="BuildingId" />
+      </Principal>
+      <Dependent Role="BemsMonitoringPoint">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="BuildingId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__BemsMonitoringPoint__CmFloor">
+    <End Role="CmFloor" Type="Self.CmFloor" Multiplicity="0..1" />
+    <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmFloor">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="BuildingId" />
+        <PropertyRef Name="FloorId" />
+      </Principal>
+      <Dependent Role="BemsMonitoringPoint">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="BuildingId" />
+        <PropertyRef Name="FloorId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__BemsMonitoringPoint__CmZone">
+    <End Role="CmZone" Type="Self.CmZone" Multiplicity="0..1" />
+    <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmZone">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="BuildingId" />
+        <PropertyRef Name="FloorId" />
+        <PropertyRef Name="ZoneId" />
+      </Principal>
+      <Dependent Role="BemsMonitoringPoint">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="BuildingId" />
+        <PropertyRef Name="FloorId" />
+        <PropertyRef Name="ZoneId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__BemsMonitoringPointHistory15min__BemsMonitoringPoint">
+    <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="1" />
+    <End Role="BemsMonitoringPointHistory15min" Type="Self.BemsMonitoringPointHistory15min" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="BemsMonitoringPoint">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FacilityCode" />
+        <PropertyRef Name="PropertyId" />
+      </Principal>
+      <Dependent Role="BemsMonitoringPointHistory15min">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FacilityCode" />
+        <PropertyRef Name="PropertyId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__BemsMonitoringPointHistoryDaily__BemsMonitoringPoint">
+    <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="1" />
+    <End Role="BemsMonitoringPointHistoryDaily" Type="Self.BemsMonitoringPointHistoryDaily" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="BemsMonitoringPoint">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FacilityCode" />
+        <PropertyRef Name="PropertyId" />
+      </Principal>
+      <Dependent Role="BemsMonitoringPointHistoryDaily">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FacilityCode" />
+        <PropertyRef Name="PropertyId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__BemsMonitoringPointHistoryHourly__BemsMonitoringPoint">
+    <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="1" />
+    <End Role="BemsMonitoringPointHistoryHourly" Type="Self.BemsMonitoringPointHistoryHourly" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="BemsMonitoringPoint">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FacilityCode" />
+        <PropertyRef Name="PropertyId" />
+      </Principal>
+      <Dependent Role="BemsMonitoringPointHistoryHourly">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FacilityCode" />
+        <PropertyRef Name="PropertyId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__BemsMonitoringPointBaseData__BemsServiceType">
+    <End Role="BemsServiceType" Type="Self.BemsServiceType" Multiplicity="0..1" />
+    <End Role="BemsMonitoringPointBaseData" Type="Self.BemsMonitoringPointBaseData" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="BemsServiceType">
+        <PropertyRef Name="ServiceTypeId" />
+      </Principal>
+      <Dependent Role="BemsMonitoringPointBaseData">
+        <PropertyRef Name="ServiceTypeId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_CmAnnouncement_CmBusinessField">
+    <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
+    <End Role="CmAnnouncement" Type="Self.CmAnnouncement" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmBusinessField">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="BusinessFieldId" />
+      </Principal>
+      <Dependent Role="CmAnnouncement">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="BusinessFieldId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_CmAnnouncement_CmFile">
+    <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
+    <End Role="CmAnnouncement" Type="Self.CmAnnouncement" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmFile">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FileId" />
+      </Principal>
+      <Dependent Role="CmAnnouncement">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FileId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_CmAnnouncement_CmUser">
+    <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
+    <End Role="CmAnnouncement" Type="Self.CmAnnouncement" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmUser">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="UserId" />
+      </Principal>
+      <Dependent Role="CmAnnouncement">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="RegisterUserId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__CmFloor__3CF40B7E">
+    <End Role="CmBuilding" Type="Self.CmBuilding" Multiplicity="1" />
+    <End Role="CmFloor" Type="Self.CmFloor" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmBuilding">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="BuildingId" />
+      </Principal>
+      <Dependent Role="CmFloor">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="BuildingId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__CmZone__CmBuilding">
+    <End Role="CmBuilding" Type="Self.CmBuilding" Multiplicity="1" />
+    <End Role="CmZone" Type="Self.CmZone" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmBuilding">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="BuildingId" />
+      </Principal>
+      <Dependent Role="CmZone">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="BuildingId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_CmZoneTempHumiSet_CmBuilding">
+    <End Role="CmBuilding" Type="Self.CmBuilding" Multiplicity="1" />
+    <End Role="CmZoneTempHumiSet" Type="Self.CmZoneTempHumiSet" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmBuilding">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="BuildingId" />
+      </Principal>
+      <Dependent Role="CmZoneTempHumiSet">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="BuildingId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__CmFacilityManual__7BE56230">
+    <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
+    <End Role="FmsFacilityManual" Type="Self.FmsFacilityManual" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmBusinessField">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="BusinessFieldId" />
+      </Principal>
+      <Dependent Role="FmsFacilityManual">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="BusinessFieldId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsLicense__CmBusinessField">
+    <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="0..1" />
+    <End Role="FmsLicense" Type="Self.FmsLicense" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmBusinessField">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="BusinessFieldId" />
+      </Principal>
+      <Dependent Role="FmsLicense">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="BusinessFieldId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsMaterialCarriedForward__CmBusinessField">
+    <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
+    <End Role="FmsMaterialCarriedForward" Type="Self.FmsMaterialCarriedForward" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmBusinessField">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="BusinessFieldId" />
+      </Principal>
+      <Dependent Role="FmsMaterialCarriedForward">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="BusinessFieldId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsMaterialCodeLocation__CmBusinessField">
+    <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
+    <End Role="FmsMaterialCodeLocation" Type="Self.FmsMaterialCodeLocation" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmBusinessField">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="BusinessFieldId" />
+      </Principal>
+      <Dependent Role="FmsMaterialCodeLocation">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="BusinessFieldId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsMaterialOrder__CmBusinessField">
+    <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
+    <End Role="FmsMaterialPurchaseOrder" Type="Self.FmsMaterialPurchaseOrder" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmBusinessField">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="BusinessFieldId" />
+      </Principal>
+      <Dependent Role="FmsMaterialPurchaseOrder">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="BusinessFieldId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsMaterialPurchasingRequest__CmBusinessField">
+    <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
+    <End Role="FmsMaterialPurchaseRequest" Type="Self.FmsMaterialPurchaseRequest" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmBusinessField">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="BusinessFieldId" />
+      </Principal>
+      <Dependent Role="FmsMaterialPurchaseRequest">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="BusinessFieldId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsMaterialStored__CmBusinessField">
+    <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
+    <End Role="FmsMaterialStored" Type="Self.FmsMaterialStored" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmBusinessField">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="BusinessFieldId" />
+      </Principal>
+      <Dependent Role="FmsMaterialStored">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="BusinessFieldId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsMaterialWarehouse__CmBusinessField">
+    <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
+    <End Role="FmsMaterialWarehouse" Type="Self.FmsMaterialWarehouse" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmBusinessField">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="BusinessFieldId" />
+      </Principal>
+      <Dependent Role="FmsMaterialWarehouse">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="BusinessFieldId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsWorkOrder__CmBusinessField">
+    <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
+    <End Role="FmsWorkOrder" Type="Self.FmsWorkOrder" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmBusinessField">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="BusinessFieldId" />
+      </Principal>
+      <Dependent Role="FmsWorkOrder">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="BusinessFieldId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsWorkRequest__CmBusinessField">
+    <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
+    <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmBusinessField">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="BusinessFieldId" />
+      </Principal>
+      <Dependent Role="FmsWorkRequest">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="BusinessFieldId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_CmUser_CmBusinessField">
+    <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="0..1" />
+    <End Role="CmUser" Type="Self.CmUser" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmBusinessField">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="BusinessFieldId" />
+      </Principal>
+      <Dependent Role="CmUser">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="BusinessFieldId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__CmCompany__345EC57D">
+    <End Role="CmCompanyType" Type="Self.CmCompanyType" Multiplicity="1" />
+    <End Role="CmCompany" Type="Self.CmCompany" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmCompanyType">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="CompanyTypeId" />
+      </Principal>
+      <Dependent Role="CmCompany">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="CompanyTypeId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__CmDepartment__3552E9B6">
+    <End Role="CmCompany" Type="Self.CmCompany" Multiplicity="1" />
+    <End Role="CmDepartment" Type="Self.CmDepartment" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmCompany">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="CompanyId" />
+      </Principal>
+      <Dependent Role="CmDepartment">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="CompanyId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_CmUser_CmCompany">
+    <End Role="CmCompany" Type="Self.CmCompany" Multiplicity="0..1" />
+    <End Role="CmUser" Type="Self.CmUser" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmCompany">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="CompanyId" />
+      </Principal>
+      <Dependent Role="CmUser">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="CompanyId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_CmUser_CmDepartment">
+    <End Role="CmDepartment" Type="Self.CmDepartment" Multiplicity="0..1" />
+    <End Role="CmUser" Type="Self.CmUser" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmDepartment">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="CompanyId" />
+        <PropertyRef Name="DepartmentId" />
+      </Principal>
+      <Dependent Role="CmUser">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="CompanyId" />
+        <PropertyRef Name="DepartmentId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsAccident_CmDepartment">
+    <End Role="CmDepartment" Type="Self.CmDepartment" Multiplicity="0..1" />
+    <End Role="FmsAccident" Type="Self.FmsAccident" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmDepartment">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="CompanyId" />
+        <PropertyRef Name="DepartmentId" />
+      </Principal>
+      <Dependent Role="FmsAccident">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="CompanyId" />
+        <PropertyRef Name="DepartmentId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__CmFacilityFile__CmFile">
+    <End Role="CmFile" Type="Self.CmFile" Multiplicity="1" />
+    <End Role="CmFacilityFile" Type="Self.CmFacilityFile" Multiplicity="0..1" />
+    <ReferentialConstraint>
+      <Principal Role="CmFile">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FileId" />
+      </Principal>
+      <Dependent Role="CmFacilityFile">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FileId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__CmFile__CmFileCategory">
+    <End Role="CmFileCategory" Type="Self.CmFileCategory" Multiplicity="1" />
+    <End Role="CmFile" Type="Self.CmFile" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmFileCategory">
+        <PropertyRef Name="FileCategoryId" />
+      </Principal>
+      <Dependent Role="CmFile">
+        <PropertyRef Name="FileCategoryId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsDrawingHistor__04DA9AE4">
+    <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
+    <End Role="FmsDrawingHistory" Type="Self.FmsDrawingHistory" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmFile">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FileId" />
+      </Principal>
+      <Dependent Role="FmsDrawingHistory">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FileId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsMaterialPurchaseOrder__CmFile">
+    <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
+    <End Role="FmsMaterialPurchaseOrder" Type="Self.FmsMaterialPurchaseOrder" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmFile">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FileId" />
+      </Principal>
+      <Dependent Role="FmsMaterialPurchaseOrder">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FileId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsWorkResultFile__CmFile">
+    <End Role="CmFile" Type="Self.CmFile" Multiplicity="1" />
+    <End Role="FmsWorkResultFile" Type="Self.FmsWorkResultFile" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmFile">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FileId" />
+      </Principal>
+      <Dependent Role="FmsWorkResultFile">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FileId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsAccident_CmFile1">
+    <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
+    <End Role="FmsAccident" Type="Self.FmsAccident" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmFile">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FileId" />
+      </Principal>
+      <Dependent Role="FmsAccident">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FileId1" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsAccident_CmFile2">
+    <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
+    <End Role="FmsAccident" Type="Self.FmsAccident" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmFile">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FileId" />
+      </Principal>
+      <Dependent Role="FmsAccident">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FileId2" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsAccident_CmFile3">
+    <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
+    <End Role="FmsAccident" Type="Self.FmsAccident" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmFile">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FileId" />
+      </Principal>
+      <Dependent Role="FmsAccident">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FileId3" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsConstruction_CmFile1">
+    <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
+    <End Role="FmsConstruction" Type="Self.FmsConstruction" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmFile">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FileId" />
+      </Principal>
+      <Dependent Role="FmsConstruction">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FileId1" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsConstruction_CmFile2">
+    <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
+    <End Role="FmsConstruction" Type="Self.FmsConstruction" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmFile">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FileId" />
+      </Principal>
+      <Dependent Role="FmsConstruction">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FileId2" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsConstruction_CmFile3">
+    <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
+    <End Role="FmsConstruction" Type="Self.FmsConstruction" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmFile">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FileId" />
+      </Principal>
+      <Dependent Role="FmsConstruction">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FileId3" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsManualHistory_CmFile">
+    <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
+    <End Role="FmsManualHistory" Type="Self.FmsManualHistory" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmFile">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FileId" />
+      </Principal>
+      <Dependent Role="FmsManualHistory">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FileId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__CmLocation__3DE82FB7">
+    <End Role="CmFloor" Type="Self.CmFloor" Multiplicity="1" />
+    <End Role="CmZone" Type="Self.CmZone" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmFloor">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="BuildingId" />
+        <PropertyRef Name="FloorId" />
+      </Principal>
+      <Dependent Role="CmZone">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="BuildingId" />
+        <PropertyRef Name="FloorId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_CmZoneTempHumiSet_CmFloor">
+    <End Role="CmFloor" Type="Self.CmFloor" Multiplicity="1" />
+    <End Role="CmZoneTempHumiSet" Type="Self.CmZoneTempHumiSet" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmFloor">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="BuildingId" />
+        <PropertyRef Name="FloorId" />
+      </Principal>
+      <Dependent Role="CmZoneTempHumiSet">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="BuildingId" />
+        <PropertyRef Name="FloorId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_CmUser_CmPosition">
+    <End Role="CmPosition" Type="Self.CmPosition" Multiplicity="0..1" />
+    <End Role="CmUser" Type="Self.CmUser" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmPosition">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="PositionId" />
+      </Principal>
+      <Dependent Role="CmUser">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="PositionId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__CmUserToLicense__CmUser">
+    <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
+    <End Role="CmUserToLicense" Type="Self.CmUserToLicense" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmUser">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="UserId" />
+      </Principal>
+      <Dependent Role="CmUserToLicense">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="UserId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsDrawingHistory__CmUser">
+    <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
+    <End Role="FmsDrawingHistory" Type="Self.FmsDrawingHistory" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmUser">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="UserId" />
+      </Principal>
+      <Dependent Role="FmsDrawingHistory">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="UpdatedUserId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsMaterialOrder__CmUser">
+    <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
+    <End Role="FmsMaterialPurchaseOrder" Type="Self.FmsMaterialPurchaseOrder" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmUser">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="UserId" />
+      </Principal>
+      <Dependent Role="FmsMaterialPurchaseOrder">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="OrderUserId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsMaterialPurchaseRequest__CmUser_AsRequestUserId">
+    <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
+    <End Role="FmsMaterialPurchaseRequest" Type="Self.FmsMaterialPurchaseRequest" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmUser">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="UserId" />
+      </Principal>
+      <Dependent Role="FmsMaterialPurchaseRequest">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="RequestUserId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsMaterialPurchaseRequest__CmUser1_AsApprovalUserId">
+    <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
+    <End Role="FmsMaterialPurchaseRequest" Type="Self.FmsMaterialPurchaseRequest" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmUser">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="UserId" />
+      </Principal>
+      <Dependent Role="FmsMaterialPurchaseRequest">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="ApprovalUserId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsMaterialStored__CmUser_AsStoredUserId">
+    <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
+    <End Role="FmsMaterialStored" Type="Self.FmsMaterialStored" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmUser">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="UserId" />
+      </Principal>
+      <Dependent Role="FmsMaterialStored">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="StoredUserId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsMaterialStored__CmUser1_AsApprovalUserId">
+    <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
+    <End Role="FmsMaterialStored" Type="Self.FmsMaterialStored" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmUser">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="UserId" />
+      </Principal>
+      <Dependent Role="FmsMaterialStored">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="ApprovalUserId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsWorkOrder__CmUser">
+    <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
+    <End Role="FmsWorkOrder" Type="Self.FmsWorkOrder" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmUser">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="UserId" />
+      </Principal>
+      <Dependent Role="FmsWorkOrder">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="OrderUserId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsWorkRequest__CmUser_AsRequestUserId">
+    <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
+    <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmUser">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="UserId" />
+      </Principal>
+      <Dependent Role="FmsWorkRequest">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="RequestUserId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsWorkRequest__CmUser1_AsRejectUserId">
+    <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
+    <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmUser">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="UserId" />
+      </Principal>
+      <Dependent Role="FmsWorkRequest">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="RejectUserId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsWorkResult__CmUser_AsWorkerUserId">
+    <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
+    <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmUser">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="UserId" />
+      </Principal>
+      <Dependent Role="FmsWorkResult">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="WorkerUserId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsWorkResult__CmUser1_AsConfirmedUserId">
+    <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
+    <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmUser">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="UserId" />
+      </Principal>
+      <Dependent Role="FmsWorkResult">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="ConfirmedUserId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_CmUser_CmUserGroup">
+    <End Role="CmUserGroup" Type="Self.CmUserGroup" Multiplicity="0..1" />
+    <End Role="CmUser" Type="Self.CmUser" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmUserGroup">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="UserGroupId" />
+      </Principal>
+      <Dependent Role="CmUser">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="UserGroupId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_CmUserLoginHistory_CmUser">
+    <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
+    <End Role="CmUserLoginHistory" Type="Self.CmUserLoginHistory" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmUser">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="UserId" />
+      </Principal>
+      <Dependent Role="CmUserLoginHistory">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="UserId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsConstructionEstimation_CmUser">
+    <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
+    <End Role="FmsConstructionEstimation" Type="Self.FmsConstructionEstimation" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmUser">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="UserId" />
+      </Principal>
+      <Dependent Role="FmsConstructionEstimation">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="EstimateUserId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsManualHistory_CmUser">
+    <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
+    <End Role="FmsManualHistory" Type="Self.FmsManualHistory" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmUser">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="UserId" />
+      </Principal>
+      <Dependent Role="FmsManualHistory">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="UpdatedUserId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__CmUserGroupPermission__CmUserGroup">
+    <End Role="CmUserGroup" Type="Self.CmUserGroup" Multiplicity="1">
+      <OnDelete Action="Cascade" />
+    </End>
+    <End Role="CmUserGroupPermission" Type="Self.CmUserGroupPermission" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmUserGroup">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="UserGroupId" />
+      </Principal>
+      <Dependent Role="CmUserGroupPermission">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="UserGroupId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__CmUserToLicense__FmsLicense">
+    <End Role="FmsLicense" Type="Self.FmsLicense" Multiplicity="1" />
+    <End Role="CmUserToLicense" Type="Self.CmUserToLicense" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="FmsLicense">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="LicenseId" />
+      </Principal>
+      <Dependent Role="CmUserToLicense">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="LicenseId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_CmZoneTempHumiSet_CmZone">
+    <End Role="CmZone" Type="Self.CmZone" Multiplicity="1" />
+    <End Role="CmZoneTempHumiSet" Type="Self.CmZoneTempHumiSet" Multiplicity="0..1" />
+    <ReferentialConstraint>
+      <Principal Role="CmZone">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="BuildingId" />
+        <PropertyRef Name="FloorId" />
+        <PropertyRef Name="ZoneId" />
+      </Principal>
+      <Dependent Role="CmZoneTempHumiSet">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="BuildingId" />
+        <PropertyRef Name="FloorId" />
+        <PropertyRef Name="ZoneId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsAccident_FmsAccidentCodeType">
+    <End Role="FmsAccidentCodeType" Type="Self.FmsAccidentCodeType" Multiplicity="1" />
+    <End Role="FmsAccident" Type="Self.FmsAccident" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="FmsAccidentCodeType">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="AccidentTypeId" />
+      </Principal>
+      <Dependent Role="FmsAccident">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="AccidentTypeId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsConstruction_FmsConstructionCodeProgress">
+    <End Role="FmsConstructionCodeProgress" Type="Self.FmsConstructionCodeProgress" Multiplicity="1" />
+    <End Role="FmsConstruction" Type="Self.FmsConstruction" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="FmsConstructionCodeProgress">
+        <PropertyRef Name="ProgressId" />
+      </Principal>
+      <Dependent Role="FmsConstruction">
+        <PropertyRef Name="ProgressId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsConstruction_FmsConstructionCodeType">
+    <End Role="FmsConstructionCodeType" Type="Self.FmsConstructionCodeType" Multiplicity="1" />
+    <End Role="FmsConstruction" Type="Self.FmsConstruction" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="FmsConstructionCodeType">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="ConstructionTypeId" />
+      </Principal>
+      <Dependent Role="FmsConstruction">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="ConstructionTypeId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsConstructionEstimation_FmsConstruction">
+    <End Role="FmsConstruction" Type="Self.FmsConstruction" Multiplicity="1" />
+    <End Role="FmsConstructionEstimation" Type="Self.FmsConstructionEstimation" Multiplicity="0..1" />
+    <ReferentialConstraint>
+      <Principal Role="FmsConstruction">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="ConstructionId" />
+      </Principal>
+      <Dependent Role="FmsConstructionEstimation">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="ConstructionId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsDrawing__6E565CE8">
+    <End Role="FmsDrawingCodeGroup" Type="Self.FmsDrawingCodeGroup" Multiplicity="1" />
+    <End Role="FmsDrawing" Type="Self.FmsDrawing" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="FmsDrawingCodeGroup">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="DrawingGroupId" />
+      </Principal>
+      <Dependent Role="FmsDrawing">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="DrawingGroupId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsDrawing__6F4A8121">
+    <End Role="FmsDrawingCodeType" Type="Self.FmsDrawingCodeType" Multiplicity="1" />
+    <End Role="FmsDrawing" Type="Self.FmsDrawing" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="FmsDrawingCodeType">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="DrawingTypeId" />
+      </Principal>
+      <Dependent Role="FmsDrawing">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="DrawingTypeId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsDrawingHistor__7132C993">
+    <End Role="FmsDrawing" Type="Self.FmsDrawing" Multiplicity="1" />
+    <End Role="FmsDrawingHistory" Type="Self.FmsDrawingHistory" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="FmsDrawing">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="DrawingId" />
+      </Principal>
+      <Dependent Role="FmsDrawingHistory">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="DrawingId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsEquipmentHistory_FmsEquipmentCodeStateType">
+    <End Role="FmsEquipmentCodeStateType" Type="Self.FmsEquipmentCodeStateType" Multiplicity="0..1" />
+    <End Role="FmsEquipmentHistory" Type="Self.FmsEquipmentHistory" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="FmsEquipmentCodeStateType">
+        <PropertyRef Name="EquipmentStateTypeId" />
+      </Principal>
+      <Dependent Role="FmsEquipmentHistory">
+        <PropertyRef Name="EquipmentStateTypeId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsFacilityCheckItem__FmsWorkCodeCycleUnit">
+    <End Role="FmsWorkCodeCycleUnit" Type="Self.FmsWorkCodeCycleUnit" Multiplicity="1" />
+    <End Role="FmsFacilityCheckItem" Type="Self.FmsFacilityCheckItem" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="FmsWorkCodeCycleUnit">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="CycleUnitId" />
+      </Principal>
+      <Dependent Role="FmsFacilityCheckItem">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="CycleUnitId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsFacilityCheckItem__FmsWorkCodeWorkType">
+    <End Role="FmsWorkCodeType" Type="Self.FmsWorkCodeType" Multiplicity="1" />
+    <End Role="FmsFacilityCheckItem" Type="Self.FmsFacilityCheckItem" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="FmsWorkCodeType">
+        <PropertyRef Name="WorkTypeId" />
+      </Principal>
+      <Dependent Role="FmsFacilityCheckItem">
+        <PropertyRef Name="WorkTypeId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsWorkResultCheckItem__FmsFacilityCheckItem">
+    <End Role="FmsFacilityCheckItem" Type="Self.FmsFacilityCheckItem" Multiplicity="0..1" />
+    <End Role="FmsWorkResultCheckItem" Type="Self.FmsWorkResultCheckItem" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="FmsFacilityCheckItem">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FacilityCode" />
+        <PropertyRef Name="CheckItemId" />
+      </Principal>
+      <Dependent Role="FmsWorkResultCheckItem">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FacilityCode" />
+        <PropertyRef Name="CheckItemId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsFacilityCodeClass__FmsFacilityCodeClass">
+    <End Role="FmsFacilityCodeClass" Type="Self.FmsFacilityCodeClass" Multiplicity="0..1" />
+    <End Role="FmsFacilityCodeClass1" Type="Self.FmsFacilityCodeClass" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="FmsFacilityCodeClass">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FacilityClassId" />
+      </Principal>
+      <Dependent Role="FmsFacilityCodeClass1">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="ParentFacilityClassId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsManual_FmsManualType">
+    <End Role="FmsManualType" Type="Self.FmsManualType" Multiplicity="1" />
+    <End Role="FmsManual" Type="Self.FmsManual" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="FmsManualType">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="ManualTypeId" />
+      </Principal>
+      <Dependent Role="FmsManual">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="ManualTypeId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsManualHistory_FmsManual">
+    <End Role="FmsManual" Type="Self.FmsManual" Multiplicity="1" />
+    <End Role="FmsManualHistory" Type="Self.FmsManualHistory" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="FmsManual">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="ManualId" />
+      </Principal>
+      <Dependent Role="FmsManualHistory">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="ManualId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsMaterialCodeClass__FmsMaterialCodeClass">
+    <End Role="FmsMaterialCodeClass" Type="Self.FmsMaterialCodeClass" Multiplicity="0..1" />
+    <End Role="FmsMaterialCodeClass1" Type="Self.FmsMaterialCodeClass" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="FmsMaterialCodeClass">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="MaterialClassId" />
+      </Principal>
+      <Dependent Role="FmsMaterialCodeClass1">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="ParentMaterialClassId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsMaterialPurchasingRequest__FmsMaterialCodeProcess">
+    <End Role="FmsMaterialCodeProgress" Type="Self.FmsMaterialCodeProgress" Multiplicity="1" />
+    <End Role="FmsMaterialPurchaseRequest" Type="Self.FmsMaterialPurchaseRequest" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="FmsMaterialCodeProgress">
+        <PropertyRef Name="ProgressId" />
+      </Principal>
+      <Dependent Role="FmsMaterialPurchaseRequest">
+        <PropertyRef Name="ProgressId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsMaterialPurchaseRequest_FmsMaterialCodePurchaseType">
+    <End Role="FmsMaterialCodePurchaseType" Type="Self.FmsMaterialCodePurchaseType" Multiplicity="1" />
+    <End Role="FmsMaterialPurchaseRequest" Type="Self.FmsMaterialPurchaseRequest" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="FmsMaterialCodePurchaseType">
+        <PropertyRef Name="PurchaseTypeId" />
+      </Principal>
+      <Dependent Role="FmsMaterialPurchaseRequest">
+        <PropertyRef Name="PurchaseTypeId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsMaterialPurchaseOrder__FmsMaterialTradeCompany">
+    <End Role="FmsMaterialTradeCompany" Type="Self.FmsMaterialTradeCompany" Multiplicity="0..1" />
+    <End Role="FmsMaterialPurchaseOrder" Type="Self.FmsMaterialPurchaseOrder" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="FmsMaterialTradeCompany">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="TradeCompanyId" />
+      </Principal>
+      <Dependent Role="FmsMaterialPurchaseOrder">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="TradeCompanyId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsMaterialPurchaseOrder_FmsMaterialPurchaseRequest">
+    <End Role="FmsMaterialPurchaseRequest" Type="Self.FmsMaterialPurchaseRequest" Multiplicity="1" />
+    <End Role="FmsMaterialPurchaseOrder" Type="Self.FmsMaterialPurchaseOrder" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="FmsMaterialPurchaseRequest">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="PurchaseRequestId" />
+      </Principal>
+      <Dependent Role="FmsMaterialPurchaseOrder">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="PurchaseRequestId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsMaterialPurchaseOrderMaterial_FmsMaterialPurchaseOrder">
+    <End Role="FmsMaterialPurchaseOrder" Type="Self.FmsMaterialPurchaseOrder" Multiplicity="1">
+      <OnDelete Action="Cascade" />
+    </End>
+    <End Role="FmsMaterialPurchaseOrderMaterial" Type="Self.FmsMaterialPurchaseOrderMaterial" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="FmsMaterialPurchaseOrder">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="PurchaseOrderId" />
+      </Principal>
+      <Dependent Role="FmsMaterialPurchaseOrderMaterial">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="PurchaseOrderId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsMaterialStored_FmsMaterialPurchaseOrder">
+    <End Role="FmsMaterialPurchaseOrder" Type="Self.FmsMaterialPurchaseOrder" Multiplicity="0..1" />
+    <End Role="FmsMaterialStored" Type="Self.FmsMaterialStored" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="FmsMaterialPurchaseOrder">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="PurchaseOrderId" />
+      </Principal>
+      <Dependent Role="FmsMaterialStored">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="PurchaseOrderId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsMaterialPurchaseRequestMaterial_FmsMaterialPurchaseRequest">
+    <End Role="FmsMaterialPurchaseRequest" Type="Self.FmsMaterialPurchaseRequest" Multiplicity="1">
+      <OnDelete Action="Cascade" />
+    </End>
+    <End Role="FmsMaterialPurchaseRequestMaterial" Type="Self.FmsMaterialPurchaseRequestMaterial" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="FmsMaterialPurchaseRequest">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="PurchaseRequestId" />
+      </Principal>
+      <Dependent Role="FmsMaterialPurchaseRequestMaterial">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="PurchaseRequestId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsMaterialStored_FmsMaterialWarehouse">
+    <End Role="FmsMaterialWarehouse" Type="Self.FmsMaterialWarehouse" Multiplicity="1" />
+    <End Role="FmsMaterialStored" Type="Self.FmsMaterialStored" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="FmsMaterialWarehouse">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="WarehouseId" />
+      </Principal>
+      <Dependent Role="FmsMaterialStored">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="WarehouseId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsWorkResult__FmsWorkCodeCauseClass">
+    <End Role="FmsWorkCodeCauseClass" Type="Self.FmsWorkCodeCauseClass" Multiplicity="0..1" />
+    <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="FmsWorkCodeCauseClass">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="CauseClassId" />
+      </Principal>
+      <Dependent Role="FmsWorkResult">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="CauseClassId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsWorkOrder__FmsWorkCodeEmergency">
+    <End Role="FmsWorkCodeEmergency" Type="Self.FmsWorkCodeEmergency" Multiplicity="0..1" />
+    <End Role="FmsWorkOrder" Type="Self.FmsWorkOrder" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="FmsWorkCodeEmergency">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="EmergencyId" />
+      </Principal>
+      <Dependent Role="FmsWorkOrder">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="EmergencyId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsWorkRequest__FmsWorkCodeProgress">
+    <End Role="FmsWorkCodeProgress" Type="Self.FmsWorkCodeProgress" Multiplicity="1" />
+    <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="FmsWorkCodeProgress">
+        <PropertyRef Name="WorkProgressId" />
+      </Principal>
+      <Dependent Role="FmsWorkRequest">
+        <PropertyRef Name="WorkProgressId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsWorkRequest__FmsWorkCodeWorkType">
+    <End Role="FmsWorkCodeType" Type="Self.FmsWorkCodeType" Multiplicity="1" />
+    <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="FmsWorkCodeType">
+        <PropertyRef Name="WorkTypeId" />
+      </Principal>
+      <Dependent Role="FmsWorkRequest">
+        <PropertyRef Name="WorkTypeId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsWorkOrder__FmsWorkRequest">
+    <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="1" />
+    <End Role="FmsWorkOrder" Type="Self.FmsWorkOrder" Multiplicity="0..1" />
+    <ReferentialConstraint>
+      <Principal Role="FmsWorkRequest">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="WorkRequestId" />
+      </Principal>
+      <Dependent Role="FmsWorkOrder">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="WorkRequestId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsWorkOrderToFacility__FmsWorkOrder">
+    <End Role="FmsWorkOrder" Type="Self.FmsWorkOrder" Multiplicity="1">
+      <OnDelete Action="Cascade" />
+    </End>
+    <End Role="FmsWorkOrderToFacility" Type="Self.FmsWorkOrderToFacility" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="FmsWorkOrder">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="WorkRequestId" />
+      </Principal>
+      <Dependent Role="FmsWorkOrderToFacility">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="WorkRequestId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsWorkResult__FmsWorkOrder">
+    <End Role="FmsWorkOrder" Type="Self.FmsWorkOrder" Multiplicity="1" />
+    <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="0..1" />
+    <ReferentialConstraint>
+      <Principal Role="FmsWorkOrder">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="WorkRequestId" />
+      </Principal>
+      <Dependent Role="FmsWorkResult">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="WorkRequestId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsWorkRequestToFacility__FmsWorkRequest">
+    <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="1">
+      <OnDelete Action="Cascade" />
+    </End>
+    <End Role="FmsWorkRequestToFacility" Type="Self.FmsWorkRequestToFacility" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="FmsWorkRequest">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="WorkRequestId" />
+      </Principal>
+      <Dependent Role="FmsWorkRequestToFacility">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="WorkRequestId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsWorkResult__FmsWorkRequest">
+    <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="1" />
+    <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="0..1" />
+    <ReferentialConstraint>
+      <Principal Role="FmsWorkRequest">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="WorkRequestId" />
+      </Principal>
+      <Dependent Role="FmsWorkResult">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="WorkRequestId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsWorkResultCheckItem__FmsWorkResult">
+    <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="1">
+      <OnDelete Action="Cascade" />
+    </End>
+    <End Role="FmsWorkResultCheckItem" Type="Self.FmsWorkResultCheckItem" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="FmsWorkResult">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="WorkRequestId" />
+      </Principal>
+      <Dependent Role="FmsWorkResultCheckItem">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="WorkRequestId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsWorkResultFile__FmsWorkResult">
+    <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="1" />
+    <End Role="FmsWorkResultFile" Type="Self.FmsWorkResultFile" Multiplicity="0..1" />
+    <ReferentialConstraint>
+      <Principal Role="FmsWorkResult">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="WorkRequestId" />
+      </Principal>
+      <Dependent Role="FmsWorkResultFile">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="WorkRequestId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsWorkResultLaw__FmsWorkResult">
+    <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="1" />
+    <End Role="FmsWorkResultLaw" Type="Self.FmsWorkResultLaw" Multiplicity="0..1" />
+    <ReferentialConstraint>
+      <Principal Role="FmsWorkResult">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="WorkRequestId" />
+      </Principal>
+      <Dependent Role="FmsWorkResultLaw">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="WorkRequestId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsWorkResultToFacility__FmsWorkOrder">
+    <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="1">
+      <OnDelete Action="Cascade" />
+    </End>
+    <End Role="FmsWorkResultToFacility" Type="Self.FmsWorkResultToFacility" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="FmsWorkResult">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="WorkRequestId" />
+      </Principal>
+      <Dependent Role="FmsWorkResultToFacility">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="WorkRequestId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsWorkResultCheckItemMaterial_FmsWorkResultCheckItem">
+    <End Role="FmsWorkResultCheckItem" Type="Self.FmsWorkResultCheckItem" Multiplicity="1">
+      <OnDelete Action="Cascade" />
+    </End>
+    <End Role="FmsWorkResultCheckItemMaterial" Type="Self.FmsWorkResultCheckItemMaterial" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="FmsWorkResultCheckItem">
+        <PropertyRef Name="CheckItemId" />
+      </Principal>
+      <Dependent Role="FmsWorkResultCheckItemMaterial">
+        <PropertyRef Name="CheckItemId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <EntityContainer Name="iBemsEntities" annotation:LazyLoadingEnabled="true">
+    <EntitySet Name="BemsAnalysisType" EntityType="Self.BemsAnalysisType" />
+    <EntitySet Name="BemsControlPointHistory" EntityType="Self.BemsControlPointHistory" />
+    <EntitySet Name="BemsFacilityType" EntityType="Self.BemsFacilityType" />
+    <EntitySet Name="BemsFactorCo2" EntityType="Self.BemsFactorCo2" />
+    <EntitySet Name="BemsFactorToe" EntityType="Self.BemsFactorToe" />
+    <EntitySet Name="BemsFormula" EntityType="Self.BemsFormula" />
+    <EntitySet Name="BemsFormulaBase" EntityType="Self.BemsFormulaBase" />
+    <EntitySet Name="BemsFormulaParameter" EntityType="Self.BemsFormulaParameter" />
+    <EntitySet Name="BemsFormulaTable" EntityType="Self.BemsFormulaTable" />
+    <EntitySet Name="BemsFormulaTableValue" EntityType="Self.BemsFormulaTableValue" />
+    <EntitySet Name="BemsMonitoringPoint" EntityType="Self.BemsMonitoringPoint" />
+    <EntitySet Name="BemsMonitoringPointBaseData" EntityType="Self.BemsMonitoringPointBaseData" />
+    <EntitySet Name="BemsMonitoringPointHistory15min" EntityType="Self.BemsMonitoringPointHistory15min" />
+    <EntitySet Name="BemsMonitoringPointHistoryDaily" EntityType="Self.BemsMonitoringPointHistoryDaily" />
+    <EntitySet Name="BemsMonitoringPointHistoryHourly" EntityType="Self.BemsMonitoringPointHistoryHourly" />
+    <EntitySet Name="BemsMonitoringPointToAnlaysisType" EntityType="Self.BemsMonitoringPointToAnlaysisType" />
+    <EntitySet Name="BemsServiceType" EntityType="Self.BemsServiceType" />
+    <EntitySet Name="CmAnnouncement" EntityType="Self.CmAnnouncement" />
+    <EntitySet Name="CmBuilding" EntityType="Self.CmBuilding" />
+    <EntitySet Name="CmBusinessField" EntityType="Self.CmBusinessField" />
+    <EntitySet Name="CmCompany" EntityType="Self.CmCompany" />
+    <EntitySet Name="CmCompanyType" EntityType="Self.CmCompanyType" />
+    <EntitySet Name="CmDepartment" EntityType="Self.CmDepartment" />
+    <EntitySet Name="CmFacilityFile" EntityType="Self.CmFacilityFile" />
+    <EntitySet Name="CmFacilityTempSet" EntityType="Self.CmFacilityTempSet" />
+    <EntitySet Name="CmFile" EntityType="Self.CmFile" />
+    <EntitySet Name="CmFileCategory" EntityType="Self.CmFileCategory" />
+    <EntitySet Name="CmFloor" EntityType="Self.CmFloor" />
+    <EntitySet Name="CmHoliday" EntityType="Self.CmHoliday" />
+    <EntitySet Name="CmHolidayCustom" EntityType="Self.CmHolidayCustom" />
+    <EntitySet Name="CmPosition" EntityType="Self.CmPosition" />
+    <EntitySet Name="CmUser" EntityType="Self.CmUser" />
+    <EntitySet Name="CmUserGroup" EntityType="Self.CmUserGroup" />
+    <EntitySet Name="CmUserGroupPermission" EntityType="Self.CmUserGroupPermission" />
+    <EntitySet Name="CmUserLoginHistory" EntityType="Self.CmUserLoginHistory" />
+    <EntitySet Name="CmUserToLicense" EntityType="Self.CmUserToLicense" />
+    <EntitySet Name="CmZone" EntityType="Self.CmZone" />
+    <EntitySet Name="CmZoneTempHumiSet" EntityType="Self.CmZoneTempHumiSet" />
+    <EntitySet Name="FmsAccident" EntityType="Self.FmsAccident" />
+    <EntitySet Name="FmsAccidentCodeType" EntityType="Self.FmsAccidentCodeType" />
+    <EntitySet Name="FmsBudget" EntityType="Self.FmsBudget" />
+    <EntitySet Name="FmsBudgetCodeClass" EntityType="Self.FmsBudgetCodeClass" />
+    <EntitySet Name="FmsCompanyEstimationCodeClass" EntityType="Self.FmsCompanyEstimationCodeClass" />
+    <EntitySet Name="FmsConstruction" EntityType="Self.FmsConstruction" />
+    <EntitySet Name="FmsConstructionCodeProgress" EntityType="Self.FmsConstructionCodeProgress" />
+    <EntitySet Name="FmsConstructionCodeType" EntityType="Self.FmsConstructionCodeType" />
+    <EntitySet Name="FmsConstructionEstimation" EntityType="Self.FmsConstructionEstimation" />
+    <EntitySet Name="FmsContractClass" EntityType="Self.FmsContractClass" />
+    <EntitySet Name="FmsContractMethod" EntityType="Self.FmsContractMethod" />
+    <EntitySet Name="FmsContractType" EntityType="Self.FmsContractType" />
+    <EntitySet Name="FmsDrawing" EntityType="Self.FmsDrawing" />
+    <EntitySet Name="FmsDrawingCodeGroup" EntityType="Self.FmsDrawingCodeGroup" />
+    <EntitySet Name="FmsDrawingCodeType" EntityType="Self.FmsDrawingCodeType" />
+    <EntitySet Name="FmsDrawingHistory" EntityType="Self.FmsDrawingHistory" />
+    <EntitySet Name="FmsEquipmentCodeStateType" EntityType="Self.FmsEquipmentCodeStateType" />
+    <EntitySet Name="FmsEquipmentCodeType" EntityType="Self.FmsEquipmentCodeType" />
+    <EntitySet Name="FmsEquipmentHistory" EntityType="Self.FmsEquipmentHistory" />
+    <EntitySet Name="FmsFacilityCheckItem" EntityType="Self.FmsFacilityCheckItem" />
+    <EntitySet Name="FmsFacilityCodeClass" EntityType="Self.FmsFacilityCodeClass" />
+    <EntitySet Name="FmsFacilityManual" EntityType="Self.FmsFacilityManual" />
+    <EntitySet Name="FmsFacilityOperationItem" EntityType="Self.FmsFacilityOperationItem" />
+    <EntitySet Name="FmsLicense" EntityType="Self.FmsLicense" />
+    <EntitySet Name="FmsManual" EntityType="Self.FmsManual" />
+    <EntitySet Name="FmsManualHistory" EntityType="Self.FmsManualHistory" />
+    <EntitySet Name="FmsManualType" EntityType="Self.FmsManualType" />
+    <EntitySet Name="FmsMaterialCarriedForward" EntityType="Self.FmsMaterialCarriedForward" />
+    <EntitySet Name="FmsMaterialCodeAdjustmentType" EntityType="Self.FmsMaterialCodeAdjustmentType" />
+    <EntitySet Name="FmsMaterialCodeClass" EntityType="Self.FmsMaterialCodeClass" />
+    <EntitySet Name="FmsMaterialCodeLocation" EntityType="Self.FmsMaterialCodeLocation" />
+    <EntitySet Name="FmsMaterialCodeProgress" EntityType="Self.FmsMaterialCodeProgress" />
+    <EntitySet Name="FmsMaterialCodePurchaseType" EntityType="Self.FmsMaterialCodePurchaseType" />
+    <EntitySet Name="FmsMaterialCodeReleaseType" EntityType="Self.FmsMaterialCodeReleaseType" />
+    <EntitySet Name="FmsMaterialCodeType" EntityType="Self.FmsMaterialCodeType" />
+    <EntitySet Name="FmsMaterialPurchaseOrder" EntityType="Self.FmsMaterialPurchaseOrder" />
+    <EntitySet Name="FmsMaterialPurchaseOrderMaterial" EntityType="Self.FmsMaterialPurchaseOrderMaterial" />
+    <EntitySet Name="FmsMaterialPurchaseRequest" EntityType="Self.FmsMaterialPurchaseRequest" />
+    <EntitySet Name="FmsMaterialPurchaseRequestMaterial" EntityType="Self.FmsMaterialPurchaseRequestMaterial" />
+    <EntitySet Name="FmsMaterialStored" EntityType="Self.FmsMaterialStored" />
+    <EntitySet Name="FmsMaterialTradeCompany" EntityType="Self.FmsMaterialTradeCompany" />
+    <EntitySet Name="FmsMaterialWarehouse" EntityType="Self.FmsMaterialWarehouse" />
+    <EntitySet Name="FmsPaymentType" EntityType="Self.FmsPaymentType" />
+    <EntitySet Name="FmsWorkCodeCauseClass" EntityType="Self.FmsWorkCodeCauseClass" />
+    <EntitySet Name="FmsWorkCodeCycleUnit" EntityType="Self.FmsWorkCodeCycleUnit" />
+    <EntitySet Name="FmsWorkCodeEmergency" EntityType="Self.FmsWorkCodeEmergency" />
+    <EntitySet Name="FmsWorkCodeHolidayWorkType" EntityType="Self.FmsWorkCodeHolidayWorkType" />
+    <EntitySet Name="FmsWorkCodeLegalInspectionAgency" EntityType="Self.FmsWorkCodeLegalInspectionAgency" />
+    <EntitySet Name="FmsWorkCodeProgress" EntityType="Self.FmsWorkCodeProgress" />
+    <EntitySet Name="FmsWorkCodeType" EntityType="Self.FmsWorkCodeType" />
+    <EntitySet Name="FmsWorkOrder" EntityType="Self.FmsWorkOrder" />
+    <EntitySet Name="FmsWorkOrderToFacility" EntityType="Self.FmsWorkOrderToFacility" />
+    <EntitySet Name="FmsWorkRequest" EntityType="Self.FmsWorkRequest" />
+    <EntitySet Name="FmsWorkRequestToFacility" EntityType="Self.FmsWorkRequestToFacility" />
+    <EntitySet Name="FmsWorkResult" EntityType="Self.FmsWorkResult" />
+    <EntitySet Name="FmsWorkResultCheckItem" EntityType="Self.FmsWorkResultCheckItem" />
+    <EntitySet Name="FmsWorkResultCheckItemMaterial" EntityType="Self.FmsWorkResultCheckItemMaterial" />
+    <EntitySet Name="FmsWorkResultFile" EntityType="Self.FmsWorkResultFile" />
+    <EntitySet Name="FmsWorkResultLaw" EntityType="Self.FmsWorkResultLaw" />
+    <EntitySet Name="FmsWorkResultToFacility" EntityType="Self.FmsWorkResultToFacility" />
+    <EntitySet Name="FmsWorkScheduleToFacility" EntityType="Self.FmsWorkScheduleToFacility" />
+    <EntitySet Name="sysdiagrams" EntityType="Self.sysdiagrams" />
+    <AssociationSet Name="FK__BemsMonitoringPo__1372D2FE" Association="Self.FK__BemsMonitoringPo__1372D2FE">
+      <End Role="BemsAnalysisType" EntitySet="BemsAnalysisType" />
+      <End Role="BemsMonitoringPointToAnlaysisType" EntitySet="BemsMonitoringPointToAnlaysisType" />
+    </AssociationSet>
+    <AssociationSet Name="FK_BemsControlPointHistory_BemsFacilityType" Association="Self.FK_BemsControlPointHistory_BemsFacilityType">
+      <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
+      <End Role="BemsControlPointHistory" EntitySet="BemsControlPointHistory" />
+    </AssociationSet>
+    <AssociationSet Name="FK_BemsControlPointHistory_BemsMonitoringPoint" Association="Self.FK_BemsControlPointHistory_BemsMonitoringPoint">
+      <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
+      <End Role="BemsControlPointHistory" EntitySet="BemsControlPointHistory" />
+    </AssociationSet>
+    <AssociationSet Name="FK__BemsMonitoringPointBaseData__BemsFacilityType" Association="Self.FK__BemsMonitoringPointBaseData__BemsFacilityType">
+      <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
+      <End Role="BemsMonitoringPointBaseData" EntitySet="BemsMonitoringPointBaseData" />
+    </AssociationSet>
+    <AssociationSet Name="FK__BemsMonitoringPointHistory15min__BemsFacilityType" Association="Self.FK__BemsMonitoringPointHistory15min__BemsFacilityType">
+      <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
+      <End Role="BemsMonitoringPointHistory15min" EntitySet="BemsMonitoringPointHistory15min" />
+    </AssociationSet>
+    <AssociationSet Name="FK__BemsMonitoringPointHistoryDaily__BemsFacilityType" Association="Self.FK__BemsMonitoringPointHistoryDaily__BemsFacilityType">
+      <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
+      <End Role="BemsMonitoringPointHistoryDaily" EntitySet="BemsMonitoringPointHistoryDaily" />
+    </AssociationSet>
+    <AssociationSet Name="FK__BemsMonitoringPointHistoryHourly__BemsFacilityType" Association="Self.FK__BemsMonitoringPointHistoryHourly__BemsFacilityType">
+      <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
+      <End Role="BemsMonitoringPointHistoryHourly" EntitySet="BemsMonitoringPointHistoryHourly" />
+    </AssociationSet>
+    <AssociationSet Name="FK__BemsMonitoringPointToAnlaysisType__BemsFacilityType" Association="Self.FK__BemsMonitoringPointToAnlaysisType__BemsFacilityType">
+      <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
+      <End Role="BemsMonitoringPointToAnlaysisType" EntitySet="BemsMonitoringPointToAnlaysisType" />
+    </AssociationSet>
+    <AssociationSet Name="FK_BemsMonitoringPoint_BemsFacilityType" Association="Self.FK_BemsMonitoringPoint_BemsFacilityType">
+      <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
+      <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
+    </AssociationSet>
+    <AssociationSet Name="FK__BemsFormula__BemsFormulaBase" Association="Self.FK__BemsFormula__BemsFormulaBase">
+      <End Role="BemsFormulaBase" EntitySet="BemsFormulaBase" />
+      <End Role="BemsFormula" EntitySet="BemsFormula" />
+    </AssociationSet>
+    <AssociationSet Name="FK__BemsFormulaParameter__BemsFormula" Association="Self.FK__BemsFormulaParameter__BemsFormula">
+      <End Role="BemsFormula" EntitySet="BemsFormula" />
+      <End Role="BemsFormulaParameter" EntitySet="BemsFormulaParameter" />
+    </AssociationSet>
+    <AssociationSet Name="FK__BemsFormulaParameter__BemsMonitoringPoint" Association="Self.FK__BemsFormulaParameter__BemsMonitoringPoint">
+      <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
+      <End Role="BemsFormulaParameter" EntitySet="BemsFormulaParameter" />
+    </AssociationSet>
+    <AssociationSet Name="FK__BemsFormulaTableValue__BemsFormulaTable" Association="Self.FK__BemsFormulaTableValue__BemsFormulaTable">
+      <End Role="BemsFormulaTable" EntitySet="BemsFormulaTable" />
+      <End Role="BemsFormulaTableValue" EntitySet="BemsFormulaTableValue" />
+    </AssociationSet>
+    <AssociationSet Name="FK__BemsMonitoringPo__155B1B70" Association="Self.FK__BemsMonitoringPo__155B1B70">
+      <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
+      <End Role="BemsMonitoringPointToAnlaysisType" EntitySet="BemsMonitoringPointToAnlaysisType" />
+    </AssociationSet>
+    <AssociationSet Name="FK__BemsMonitoringPoint__BemsServiceType" Association="Self.FK__BemsMonitoringPoint__BemsServiceType">
+      <End Role="BemsServiceType" EntitySet="BemsServiceType" />
+      <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
+    </AssociationSet>
+    <AssociationSet Name="FK__BemsMonitoringPoint__CmBuilding" Association="Self.FK__BemsMonitoringPoint__CmBuilding">
+      <End Role="CmBuilding" EntitySet="CmBuilding" />
+      <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
+    </AssociationSet>
+    <AssociationSet Name="FK__BemsMonitoringPoint__CmFloor" Association="Self.FK__BemsMonitoringPoint__CmFloor">
+      <End Role="CmFloor" EntitySet="CmFloor" />
+      <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
+    </AssociationSet>
+    <AssociationSet Name="FK__BemsMonitoringPoint__CmZone" Association="Self.FK__BemsMonitoringPoint__CmZone">
+      <End Role="CmZone" EntitySet="CmZone" />
+      <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
+    </AssociationSet>
+    <AssociationSet Name="FK__BemsMonitoringPointHistory15min__BemsMonitoringPoint" Association="Self.FK__BemsMonitoringPointHistory15min__BemsMonitoringPoint">
+      <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
+      <End Role="BemsMonitoringPointHistory15min" EntitySet="BemsMonitoringPointHistory15min" />
+    </AssociationSet>
+    <AssociationSet Name="FK__BemsMonitoringPointHistoryDaily__BemsMonitoringPoint" Association="Self.FK__BemsMonitoringPointHistoryDaily__BemsMonitoringPoint">
+      <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
+      <End Role="BemsMonitoringPointHistoryDaily" EntitySet="BemsMonitoringPointHistoryDaily" />
+    </AssociationSet>
+    <AssociationSet Name="FK__BemsMonitoringPointHistoryHourly__BemsMonitoringPoint" Association="Self.FK__BemsMonitoringPointHistoryHourly__BemsMonitoringPoint">
+      <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
+      <End Role="BemsMonitoringPointHistoryHourly" EntitySet="BemsMonitoringPointHistoryHourly" />
+    </AssociationSet>
+    <AssociationSet Name="FK__BemsMonitoringPointBaseData__BemsServiceType" Association="Self.FK__BemsMonitoringPointBaseData__BemsServiceType">
+      <End Role="BemsServiceType" EntitySet="BemsServiceType" />
+      <End Role="BemsMonitoringPointBaseData" EntitySet="BemsMonitoringPointBaseData" />
+    </AssociationSet>
+    <AssociationSet Name="FK_CmAnnouncement_CmBusinessField" Association="Self.FK_CmAnnouncement_CmBusinessField">
+      <End Role="CmBusinessField" EntitySet="CmBusinessField" />
+      <End Role="CmAnnouncement" EntitySet="CmAnnouncement" />
+    </AssociationSet>
+    <AssociationSet Name="FK_CmAnnouncement_CmFile" Association="Self.FK_CmAnnouncement_CmFile">
+      <End Role="CmFile" EntitySet="CmFile" />
+      <End Role="CmAnnouncement" EntitySet="CmAnnouncement" />
+    </AssociationSet>
+    <AssociationSet Name="FK_CmAnnouncement_CmUser" Association="Self.FK_CmAnnouncement_CmUser">
+      <End Role="CmUser" EntitySet="CmUser" />
+      <End Role="CmAnnouncement" EntitySet="CmAnnouncement" />
+    </AssociationSet>
+    <AssociationSet Name="FK__CmFloor__3CF40B7E" Association="Self.FK__CmFloor__3CF40B7E">
+      <End Role="CmBuilding" EntitySet="CmBuilding" />
+      <End Role="CmFloor" EntitySet="CmFloor" />
+    </AssociationSet>
+    <AssociationSet Name="FK__CmZone__CmBuilding" Association="Self.FK__CmZone__CmBuilding">
+      <End Role="CmBuilding" EntitySet="CmBuilding" />
+      <End Role="CmZone" EntitySet="CmZone" />
+    </AssociationSet>
+    <AssociationSet Name="FK_CmZoneTempHumiSet_CmBuilding" Association="Self.FK_CmZoneTempHumiSet_CmBuilding">
+      <End Role="CmBuilding" EntitySet="CmBuilding" />
+      <End Role="CmZoneTempHumiSet" EntitySet="CmZoneTempHumiSet" />
+    </AssociationSet>
+    <AssociationSet Name="FK__CmFacilityManual__7BE56230" Association="Self.FK__CmFacilityManual__7BE56230">
+      <End Role="CmBusinessField" EntitySet="CmBusinessField" />
+      <End Role="FmsFacilityManual" EntitySet="FmsFacilityManual" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsLicense__CmBusinessField" Association="Self.FK__FmsLicense__CmBusinessField">
+      <End Role="CmBusinessField" EntitySet="CmBusinessField" />
+      <End Role="FmsLicense" EntitySet="FmsLicense" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsMaterialCarriedForward__CmBusinessField" Association="Self.FK__FmsMaterialCarriedForward__CmBusinessField">
+      <End Role="CmBusinessField" EntitySet="CmBusinessField" />
+      <End Role="FmsMaterialCarriedForward" EntitySet="FmsMaterialCarriedForward" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsMaterialCodeLocation__CmBusinessField" Association="Self.FK__FmsMaterialCodeLocation__CmBusinessField">
+      <End Role="CmBusinessField" EntitySet="CmBusinessField" />
+      <End Role="FmsMaterialCodeLocation" EntitySet="FmsMaterialCodeLocation" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsMaterialOrder__CmBusinessField" Association="Self.FK__FmsMaterialOrder__CmBusinessField">
+      <End Role="CmBusinessField" EntitySet="CmBusinessField" />
+      <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsMaterialPurchasingRequest__CmBusinessField" Association="Self.FK__FmsMaterialPurchasingRequest__CmBusinessField">
+      <End Role="CmBusinessField" EntitySet="CmBusinessField" />
+      <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsMaterialStored__CmBusinessField" Association="Self.FK__FmsMaterialStored__CmBusinessField">
+      <End Role="CmBusinessField" EntitySet="CmBusinessField" />
+      <End Role="FmsMaterialStored" EntitySet="FmsMaterialStored" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsMaterialWarehouse__CmBusinessField" Association="Self.FK__FmsMaterialWarehouse__CmBusinessField">
+      <End Role="CmBusinessField" EntitySet="CmBusinessField" />
+      <End Role="FmsMaterialWarehouse" EntitySet="FmsMaterialWarehouse" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsWorkOrder__CmBusinessField" Association="Self.FK__FmsWorkOrder__CmBusinessField">
+      <End Role="CmBusinessField" EntitySet="CmBusinessField" />
+      <End Role="FmsWorkOrder" EntitySet="FmsWorkOrder" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsWorkRequest__CmBusinessField" Association="Self.FK__FmsWorkRequest__CmBusinessField">
+      <End Role="CmBusinessField" EntitySet="CmBusinessField" />
+      <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
+    </AssociationSet>
+    <AssociationSet Name="FK_CmUser_CmBusinessField" Association="Self.FK_CmUser_CmBusinessField">
+      <End Role="CmBusinessField" EntitySet="CmBusinessField" />
+      <End Role="CmUser" EntitySet="CmUser" />
+    </AssociationSet>
+    <AssociationSet Name="FK__CmCompany__345EC57D" Association="Self.FK__CmCompany__345EC57D">
+      <End Role="CmCompanyType" EntitySet="CmCompanyType" />
+      <End Role="CmCompany" EntitySet="CmCompany" />
+    </AssociationSet>
+    <AssociationSet Name="FK__CmDepartment__3552E9B6" Association="Self.FK__CmDepartment__3552E9B6">
+      <End Role="CmCompany" EntitySet="CmCompany" />
+      <End Role="CmDepartment" EntitySet="CmDepartment" />
+    </AssociationSet>
+    <AssociationSet Name="FK_CmUser_CmCompany" Association="Self.FK_CmUser_CmCompany">
+      <End Role="CmCompany" EntitySet="CmCompany" />
+      <End Role="CmUser" EntitySet="CmUser" />
+    </AssociationSet>
+    <AssociationSet Name="FK_CmUser_CmDepartment" Association="Self.FK_CmUser_CmDepartment">
+      <End Role="CmDepartment" EntitySet="CmDepartment" />
+      <End Role="CmUser" EntitySet="CmUser" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsAccident_CmDepartment" Association="Self.FK_FmsAccident_CmDepartment">
+      <End Role="CmDepartment" EntitySet="CmDepartment" />
+      <End Role="FmsAccident" EntitySet="FmsAccident" />
+    </AssociationSet>
+    <AssociationSet Name="FK__CmFacilityFile__CmFile" Association="Self.FK__CmFacilityFile__CmFile">
+      <End Role="CmFile" EntitySet="CmFile" />
+      <End Role="CmFacilityFile" EntitySet="CmFacilityFile" />
+    </AssociationSet>
+    <AssociationSet Name="FK__CmFile__CmFileCategory" Association="Self.FK__CmFile__CmFileCategory">
+      <End Role="CmFileCategory" EntitySet="CmFileCategory" />
+      <End Role="CmFile" EntitySet="CmFile" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsDrawingHistor__04DA9AE4" Association="Self.FK__FmsDrawingHistor__04DA9AE4">
+      <End Role="CmFile" EntitySet="CmFile" />
+      <End Role="FmsDrawingHistory" EntitySet="FmsDrawingHistory" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsMaterialPurchaseOrder__CmFile" Association="Self.FK__FmsMaterialPurchaseOrder__CmFile">
+      <End Role="CmFile" EntitySet="CmFile" />
+      <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsWorkResultFile__CmFile" Association="Self.FK__FmsWorkResultFile__CmFile">
+      <End Role="CmFile" EntitySet="CmFile" />
+      <End Role="FmsWorkResultFile" EntitySet="FmsWorkResultFile" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsAccident_CmFile1" Association="Self.FK_FmsAccident_CmFile1">
+      <End Role="CmFile" EntitySet="CmFile" />
+      <End Role="FmsAccident" EntitySet="FmsAccident" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsAccident_CmFile2" Association="Self.FK_FmsAccident_CmFile2">
+      <End Role="CmFile" EntitySet="CmFile" />
+      <End Role="FmsAccident" EntitySet="FmsAccident" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsAccident_CmFile3" Association="Self.FK_FmsAccident_CmFile3">
+      <End Role="CmFile" EntitySet="CmFile" />
+      <End Role="FmsAccident" EntitySet="FmsAccident" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsConstruction_CmFile1" Association="Self.FK_FmsConstruction_CmFile1">
+      <End Role="CmFile" EntitySet="CmFile" />
+      <End Role="FmsConstruction" EntitySet="FmsConstruction" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsConstruction_CmFile2" Association="Self.FK_FmsConstruction_CmFile2">
+      <End Role="CmFile" EntitySet="CmFile" />
+      <End Role="FmsConstruction" EntitySet="FmsConstruction" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsConstruction_CmFile3" Association="Self.FK_FmsConstruction_CmFile3">
+      <End Role="CmFile" EntitySet="CmFile" />
+      <End Role="FmsConstruction" EntitySet="FmsConstruction" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsManualHistory_CmFile" Association="Self.FK_FmsManualHistory_CmFile">
+      <End Role="CmFile" EntitySet="CmFile" />
+      <End Role="FmsManualHistory" EntitySet="FmsManualHistory" />
+    </AssociationSet>
+    <AssociationSet Name="FK__CmLocation__3DE82FB7" Association="Self.FK__CmLocation__3DE82FB7">
+      <End Role="CmFloor" EntitySet="CmFloor" />
+      <End Role="CmZone" EntitySet="CmZone" />
+    </AssociationSet>
+    <AssociationSet Name="FK_CmZoneTempHumiSet_CmFloor" Association="Self.FK_CmZoneTempHumiSet_CmFloor">
+      <End Role="CmFloor" EntitySet="CmFloor" />
+      <End Role="CmZoneTempHumiSet" EntitySet="CmZoneTempHumiSet" />
+    </AssociationSet>
+    <AssociationSet Name="FK_CmUser_CmPosition" Association="Self.FK_CmUser_CmPosition">
+      <End Role="CmPosition" EntitySet="CmPosition" />
+      <End Role="CmUser" EntitySet="CmUser" />
+    </AssociationSet>
+    <AssociationSet Name="FK__CmUserToLicense__CmUser" Association="Self.FK__CmUserToLicense__CmUser">
+      <End Role="CmUser" EntitySet="CmUser" />
+      <End Role="CmUserToLicense" EntitySet="CmUserToLicense" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsDrawingHistory__CmUser" Association="Self.FK__FmsDrawingHistory__CmUser">
+      <End Role="CmUser" EntitySet="CmUser" />
+      <End Role="FmsDrawingHistory" EntitySet="FmsDrawingHistory" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsMaterialOrder__CmUser" Association="Self.FK__FmsMaterialOrder__CmUser">
+      <End Role="CmUser" EntitySet="CmUser" />
+      <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsMaterialPurchaseRequest__CmUser_AsRequestUserId" Association="Self.FK__FmsMaterialPurchaseRequest__CmUser_AsRequestUserId">
+      <End Role="CmUser" EntitySet="CmUser" />
+      <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsMaterialPurchaseRequest__CmUser1_AsApprovalUserId" Association="Self.FK__FmsMaterialPurchaseRequest__CmUser1_AsApprovalUserId">
+      <End Role="CmUser" EntitySet="CmUser" />
+      <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsMaterialStored__CmUser_AsStoredUserId" Association="Self.FK__FmsMaterialStored__CmUser_AsStoredUserId">
+      <End Role="CmUser" EntitySet="CmUser" />
+      <End Role="FmsMaterialStored" EntitySet="FmsMaterialStored" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsMaterialStored__CmUser1_AsApprovalUserId" Association="Self.FK__FmsMaterialStored__CmUser1_AsApprovalUserId">
+      <End Role="CmUser" EntitySet="CmUser" />
+      <End Role="FmsMaterialStored" EntitySet="FmsMaterialStored" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsWorkOrder__CmUser" Association="Self.FK__FmsWorkOrder__CmUser">
+      <End Role="CmUser" EntitySet="CmUser" />
+      <End Role="FmsWorkOrder" EntitySet="FmsWorkOrder" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsWorkRequest__CmUser_AsRequestUserId" Association="Self.FK__FmsWorkRequest__CmUser_AsRequestUserId">
+      <End Role="CmUser" EntitySet="CmUser" />
+      <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsWorkRequest__CmUser1_AsRejectUserId" Association="Self.FK__FmsWorkRequest__CmUser1_AsRejectUserId">
+      <End Role="CmUser" EntitySet="CmUser" />
+      <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsWorkResult__CmUser_AsWorkerUserId" Association="Self.FK__FmsWorkResult__CmUser_AsWorkerUserId">
+      <End Role="CmUser" EntitySet="CmUser" />
+      <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsWorkResult__CmUser1_AsConfirmedUserId" Association="Self.FK__FmsWorkResult__CmUser1_AsConfirmedUserId">
+      <End Role="CmUser" EntitySet="CmUser" />
+      <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
+    </AssociationSet>
+    <AssociationSet Name="FK_CmUser_CmUserGroup" Association="Self.FK_CmUser_CmUserGroup">
+      <End Role="CmUserGroup" EntitySet="CmUserGroup" />
+      <End Role="CmUser" EntitySet="CmUser" />
+    </AssociationSet>
+    <AssociationSet Name="FK_CmUserLoginHistory_CmUser" Association="Self.FK_CmUserLoginHistory_CmUser">
+      <End Role="CmUser" EntitySet="CmUser" />
+      <End Role="CmUserLoginHistory" EntitySet="CmUserLoginHistory" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsConstructionEstimation_CmUser" Association="Self.FK_FmsConstructionEstimation_CmUser">
+      <End Role="CmUser" EntitySet="CmUser" />
+      <End Role="FmsConstructionEstimation" EntitySet="FmsConstructionEstimation" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsManualHistory_CmUser" Association="Self.FK_FmsManualHistory_CmUser">
+      <End Role="CmUser" EntitySet="CmUser" />
+      <End Role="FmsManualHistory" EntitySet="FmsManualHistory" />
+    </AssociationSet>
+    <AssociationSet Name="FK__CmUserGroupPermission__CmUserGroup" Association="Self.FK__CmUserGroupPermission__CmUserGroup">
+      <End Role="CmUserGroup" EntitySet="CmUserGroup" />
+      <End Role="CmUserGroupPermission" EntitySet="CmUserGroupPermission" />
+    </AssociationSet>
+    <AssociationSet Name="FK__CmUserToLicense__FmsLicense" Association="Self.FK__CmUserToLicense__FmsLicense">
+      <End Role="FmsLicense" EntitySet="FmsLicense" />
+      <End Role="CmUserToLicense" EntitySet="CmUserToLicense" />
+    </AssociationSet>
+    <AssociationSet Name="FK_CmZoneTempHumiSet_CmZone" Association="Self.FK_CmZoneTempHumiSet_CmZone">
+      <End Role="CmZone" EntitySet="CmZone" />
+      <End Role="CmZoneTempHumiSet" EntitySet="CmZoneTempHumiSet" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsAccident_FmsAccidentCodeType" Association="Self.FK_FmsAccident_FmsAccidentCodeType">
+      <End Role="FmsAccidentCodeType" EntitySet="FmsAccidentCodeType" />
+      <End Role="FmsAccident" EntitySet="FmsAccident" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsConstruction_FmsConstructionCodeProgress" Association="Self.FK_FmsConstruction_FmsConstructionCodeProgress">
+      <End Role="FmsConstructionCodeProgress" EntitySet="FmsConstructionCodeProgress" />
+      <End Role="FmsConstruction" EntitySet="FmsConstruction" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsConstruction_FmsConstructionCodeType" Association="Self.FK_FmsConstruction_FmsConstructionCodeType">
+      <End Role="FmsConstructionCodeType" EntitySet="FmsConstructionCodeType" />
+      <End Role="FmsConstruction" EntitySet="FmsConstruction" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsConstructionEstimation_FmsConstruction" Association="Self.FK_FmsConstructionEstimation_FmsConstruction">
+      <End Role="FmsConstruction" EntitySet="FmsConstruction" />
+      <End Role="FmsConstructionEstimation" EntitySet="FmsConstructionEstimation" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsDrawing__6E565CE8" Association="Self.FK__FmsDrawing__6E565CE8">
+      <End Role="FmsDrawingCodeGroup" EntitySet="FmsDrawingCodeGroup" />
+      <End Role="FmsDrawing" EntitySet="FmsDrawing" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsDrawing__6F4A8121" Association="Self.FK__FmsDrawing__6F4A8121">
+      <End Role="FmsDrawingCodeType" EntitySet="FmsDrawingCodeType" />
+      <End Role="FmsDrawing" EntitySet="FmsDrawing" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsDrawingHistor__7132C993" Association="Self.FK__FmsDrawingHistor__7132C993">
+      <End Role="FmsDrawing" EntitySet="FmsDrawing" />
+      <End Role="FmsDrawingHistory" EntitySet="FmsDrawingHistory" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsEquipmentHistory_FmsEquipmentCodeStateType" Association="Self.FK_FmsEquipmentHistory_FmsEquipmentCodeStateType">
+      <End Role="FmsEquipmentCodeStateType" EntitySet="FmsEquipmentCodeStateType" />
+      <End Role="FmsEquipmentHistory" EntitySet="FmsEquipmentHistory" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsFacilityCheckItem__FmsWorkCodeCycleUnit" Association="Self.FK__FmsFacilityCheckItem__FmsWorkCodeCycleUnit">
+      <End Role="FmsWorkCodeCycleUnit" EntitySet="FmsWorkCodeCycleUnit" />
+      <End Role="FmsFacilityCheckItem" EntitySet="FmsFacilityCheckItem" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsFacilityCheckItem__FmsWorkCodeWorkType" Association="Self.FK__FmsFacilityCheckItem__FmsWorkCodeWorkType">
+      <End Role="FmsWorkCodeType" EntitySet="FmsWorkCodeType" />
+      <End Role="FmsFacilityCheckItem" EntitySet="FmsFacilityCheckItem" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsWorkResultCheckItem__FmsFacilityCheckItem" Association="Self.FK__FmsWorkResultCheckItem__FmsFacilityCheckItem">
+      <End Role="FmsFacilityCheckItem" EntitySet="FmsFacilityCheckItem" />
+      <End Role="FmsWorkResultCheckItem" EntitySet="FmsWorkResultCheckItem" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsFacilityCodeClass__FmsFacilityCodeClass" Association="Self.FK__FmsFacilityCodeClass__FmsFacilityCodeClass">
+      <End Role="FmsFacilityCodeClass" EntitySet="FmsFacilityCodeClass" />
+      <End Role="FmsFacilityCodeClass1" EntitySet="FmsFacilityCodeClass" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsManual_FmsManualType" Association="Self.FK_FmsManual_FmsManualType">
+      <End Role="FmsManualType" EntitySet="FmsManualType" />
+      <End Role="FmsManual" EntitySet="FmsManual" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsManualHistory_FmsManual" Association="Self.FK_FmsManualHistory_FmsManual">
+      <End Role="FmsManual" EntitySet="FmsManual" />
+      <End Role="FmsManualHistory" EntitySet="FmsManualHistory" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsMaterialCodeClass__FmsMaterialCodeClass" Association="Self.FK__FmsMaterialCodeClass__FmsMaterialCodeClass">
+      <End Role="FmsMaterialCodeClass" EntitySet="FmsMaterialCodeClass" />
+      <End Role="FmsMaterialCodeClass1" EntitySet="FmsMaterialCodeClass" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsMaterialPurchasingRequest__FmsMaterialCodeProcess" Association="Self.FK__FmsMaterialPurchasingRequest__FmsMaterialCodeProcess">
+      <End Role="FmsMaterialCodeProgress" EntitySet="FmsMaterialCodeProgress" />
+      <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsMaterialPurchaseRequest_FmsMaterialCodePurchaseType" Association="Self.FK_FmsMaterialPurchaseRequest_FmsMaterialCodePurchaseType">
+      <End Role="FmsMaterialCodePurchaseType" EntitySet="FmsMaterialCodePurchaseType" />
+      <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsMaterialPurchaseOrder__FmsMaterialTradeCompany" Association="Self.FK__FmsMaterialPurchaseOrder__FmsMaterialTradeCompany">
+      <End Role="FmsMaterialTradeCompany" EntitySet="FmsMaterialTradeCompany" />
+      <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsMaterialPurchaseOrder_FmsMaterialPurchaseRequest" Association="Self.FK_FmsMaterialPurchaseOrder_FmsMaterialPurchaseRequest">
+      <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
+      <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsMaterialPurchaseOrderMaterial_FmsMaterialPurchaseOrder" Association="Self.FK_FmsMaterialPurchaseOrderMaterial_FmsMaterialPurchaseOrder">
+      <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
+      <End Role="FmsMaterialPurchaseOrderMaterial" EntitySet="FmsMaterialPurchaseOrderMaterial" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsMaterialStored_FmsMaterialPurchaseOrder" Association="Self.FK_FmsMaterialStored_FmsMaterialPurchaseOrder">
+      <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
+      <End Role="FmsMaterialStored" EntitySet="FmsMaterialStored" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsMaterialPurchaseRequestMaterial_FmsMaterialPurchaseRequest" Association="Self.FK_FmsMaterialPurchaseRequestMaterial_FmsMaterialPurchaseRequest">
+      <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
+      <End Role="FmsMaterialPurchaseRequestMaterial" EntitySet="FmsMaterialPurchaseRequestMaterial" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsMaterialStored_FmsMaterialWarehouse" Association="Self.FK_FmsMaterialStored_FmsMaterialWarehouse">
+      <End Role="FmsMaterialWarehouse" EntitySet="FmsMaterialWarehouse" />
+      <End Role="FmsMaterialStored" EntitySet="FmsMaterialStored" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsWorkResult__FmsWorkCodeCauseClass" Association="Self.FK__FmsWorkResult__FmsWorkCodeCauseClass">
+      <End Role="FmsWorkCodeCauseClass" EntitySet="FmsWorkCodeCauseClass" />
+      <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsWorkOrder__FmsWorkCodeEmergency" Association="Self.FK__FmsWorkOrder__FmsWorkCodeEmergency">
+      <End Role="FmsWorkCodeEmergency" EntitySet="FmsWorkCodeEmergency" />
+      <End Role="FmsWorkOrder" EntitySet="FmsWorkOrder" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsWorkRequest__FmsWorkCodeProgress" Association="Self.FK__FmsWorkRequest__FmsWorkCodeProgress">
+      <End Role="FmsWorkCodeProgress" EntitySet="FmsWorkCodeProgress" />
+      <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsWorkRequest__FmsWorkCodeWorkType" Association="Self.FK__FmsWorkRequest__FmsWorkCodeWorkType">
+      <End Role="FmsWorkCodeType" EntitySet="FmsWorkCodeType" />
+      <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsWorkOrder__FmsWorkRequest" Association="Self.FK__FmsWorkOrder__FmsWorkRequest">
+      <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
+      <End Role="FmsWorkOrder" EntitySet="FmsWorkOrder" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsWorkOrderToFacility__FmsWorkOrder" Association="Self.FK__FmsWorkOrderToFacility__FmsWorkOrder">
+      <End Role="FmsWorkOrder" EntitySet="FmsWorkOrder" />
+      <End Role="FmsWorkOrderToFacility" EntitySet="FmsWorkOrderToFacility" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsWorkResult__FmsWorkOrder" Association="Self.FK__FmsWorkResult__FmsWorkOrder">
+      <End Role="FmsWorkOrder" EntitySet="FmsWorkOrder" />
+      <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsWorkRequestToFacility__FmsWorkRequest" Association="Self.FK__FmsWorkRequestToFacility__FmsWorkRequest">
+      <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
+      <End Role="FmsWorkRequestToFacility" EntitySet="FmsWorkRequestToFacility" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsWorkResult__FmsWorkRequest" Association="Self.FK__FmsWorkResult__FmsWorkRequest">
+      <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
+      <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsWorkResultCheckItem__FmsWorkResult" Association="Self.FK__FmsWorkResultCheckItem__FmsWorkResult">
+      <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
+      <End Role="FmsWorkResultCheckItem" EntitySet="FmsWorkResultCheckItem" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsWorkResultFile__FmsWorkResult" Association="Self.FK__FmsWorkResultFile__FmsWorkResult">
+      <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
+      <End Role="FmsWorkResultFile" EntitySet="FmsWorkResultFile" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsWorkResultLaw__FmsWorkResult" Association="Self.FK__FmsWorkResultLaw__FmsWorkResult">
+      <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
+      <End Role="FmsWorkResultLaw" EntitySet="FmsWorkResultLaw" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsWorkResultToFacility__FmsWorkOrder" Association="Self.FK__FmsWorkResultToFacility__FmsWorkOrder">
+      <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
+      <End Role="FmsWorkResultToFacility" EntitySet="FmsWorkResultToFacility" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsWorkResultCheckItemMaterial_FmsWorkResultCheckItem" Association="Self.FK_FmsWorkResultCheckItemMaterial_FmsWorkResultCheckItem">
+      <End Role="FmsWorkResultCheckItem" EntitySet="FmsWorkResultCheckItem" />
+      <End Role="FmsWorkResultCheckItemMaterial" EntitySet="FmsWorkResultCheckItemMaterial" />
+    </AssociationSet>
+    <EntitySet Name="FmsDailyCheckReport" EntityType="iBemsModel.FmsDailyCheckReport" />
+    <EntitySet Name="FmsFacilityOperationReport" EntityType="iBemsModel.FmsFacilityOperationReport" />
+    <AssociationSet Name="FK_FmsDailyCheckReport_CmUser" Association="iBemsModel.FK_FmsDailyCheckReport_CmUser">
+      <End Role="CmUser" EntitySet="CmUser" />
+      <End Role="FmsDailyCheckReport" EntitySet="FmsDailyCheckReport" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsFacilityOperationReport_CmUser" Association="iBemsModel.FK_FmsFacilityOperationReport_CmUser">
+      <End Role="CmUser" EntitySet="CmUser" />
+      <End Role="FmsFacilityOperationReport" EntitySet="FmsFacilityOperationReport" />
+    </AssociationSet>
+    <EntitySet Name="FmsBudgetDetail" EntityType="iBemsModel.FmsBudgetDetail" />
+    <EntitySet Name="FmsBudgetDetailExecution" EntityType="iBemsModel.FmsBudgetDetailExecution" />
+    <AssociationSet Name="FK_FmsBudgetDetail_FmsBudget" Association="iBemsModel.FK_FmsBudgetDetail_FmsBudget">
+      <End Role="FmsBudget" EntitySet="FmsBudget" />
+      <End Role="FmsBudgetDetail" EntitySet="FmsBudgetDetail" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsBudgetDetail_FmsBudgetCodeClass" Association="iBemsModel.FK_FmsBudgetDetail_FmsBudgetCodeClass">
+      <End Role="FmsBudgetCodeClass" EntitySet="FmsBudgetCodeClass" />
+      <End Role="FmsBudgetDetail" EntitySet="FmsBudgetDetail" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsBudgetDetailExecution_FmsBudgetDetail" Association="iBemsModel.FK_FmsBudgetDetailExecution_FmsBudgetDetail">
+      <End Role="FmsBudgetDetail" EntitySet="FmsBudgetDetail" />
+      <End Role="FmsBudgetDetailExecution" EntitySet="FmsBudgetDetailExecution" />
+    </AssociationSet>
+    <EntitySet Name="FmsMonthlyReport" EntityType="iBemsModel.FmsMonthlyReport" />
+    <AssociationSet Name="FK_FmsMonthlyReport_CmUser" Association="iBemsModel.FK_FmsMonthlyReport_CmUser">
+      <End Role="CmUser" EntitySet="CmUser" />
+      <End Role="FmsMonthlyReport" EntitySet="FmsMonthlyReport" />
+    </AssociationSet>
+    <EntitySet Name="FmsInvestmentCost" EntityType="iBemsModel.FmsInvestmentCost" />
+    <EntitySet Name="CmHolidayWeekend" EntityType="iBemsModel.CmHolidayWeekend" />
+    <AssociationSet Name="FK_FmsAccident_CmCompany" Association="iBemsModel.FK_FmsAccident_CmCompany">
+      <End Role="CmCompany" EntitySet="CmCompany" />
+      <End Role="FmsAccident" EntitySet="FmsAccident" />
+    </AssociationSet>
+    <EntitySet Name="FmsMaterial" EntityType="iBemsModel.FmsMaterial" />
+    <EntitySet Name="FmsMaterialRelease" EntityType="iBemsModel.FmsMaterialRelease" />
+    <AssociationSet Name="FK_FmsMaterial_CmBusinessField" Association="iBemsModel.FK_FmsMaterial_CmBusinessField">
+      <End Role="CmBusinessField" EntitySet="CmBusinessField" />
+      <End Role="FmsMaterial" EntitySet="FmsMaterial" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsMaterialRelease_CmBusinessField" Association="iBemsModel.FK_FmsMaterialRelease_CmBusinessField">
+      <End Role="CmBusinessField" EntitySet="CmBusinessField" />
+      <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsMaterial_CmFile" Association="iBemsModel.FK_FmsMaterial_CmFile">
+      <End Role="CmFile" EntitySet="CmFile" />
+      <End Role="FmsMaterial" EntitySet="FmsMaterial" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsMaterialRelease_CmUser" Association="iBemsModel.FK_FmsMaterialRelease_CmUser">
+      <End Role="CmUser" EntitySet="CmUser" />
+      <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsMaterialRelease_CmUser1" Association="iBemsModel.FK_FmsMaterialRelease_CmUser1">
+      <End Role="CmUser" EntitySet="CmUser" />
+      <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsMaterial__FmsMaterialCodeClass_AsFirstClassId" Association="iBemsModel.FK__FmsMaterial__FmsMaterialCodeClass_AsFirstClassId">
+      <End Role="FmsMaterialCodeClass" EntitySet="FmsMaterialCodeClass" />
+      <End Role="FmsMaterial" EntitySet="FmsMaterial" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsMaterial__FmsMaterialCodeClass_AsSecondClassId" Association="iBemsModel.FK__FmsMaterial__FmsMaterialCodeClass_AsSecondClassId">
+      <End Role="FmsMaterialCodeClass" EntitySet="FmsMaterialCodeClass" />
+      <End Role="FmsMaterial" EntitySet="FmsMaterial" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsMaterial__FmsMaterialCodeClass_AsThirdClassId" Association="iBemsModel.FK__FmsMaterial__FmsMaterialCodeClass_AsThirdClassId">
+      <End Role="FmsMaterialCodeClass" EntitySet="FmsMaterialCodeClass" />
+      <End Role="FmsMaterial" EntitySet="FmsMaterial" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsMaterial_FmsMaterialCodeLocation" Association="iBemsModel.FK_FmsMaterial_FmsMaterialCodeLocation">
+      <End Role="FmsMaterialCodeLocation" EntitySet="FmsMaterialCodeLocation" />
+      <End Role="FmsMaterial" EntitySet="FmsMaterial" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsMaterial_FmsMaterialCodeType" Association="iBemsModel.FK_FmsMaterial_FmsMaterialCodeType">
+      <End Role="FmsMaterialCodeType" EntitySet="FmsMaterialCodeType" />
+      <End Role="FmsMaterial" EntitySet="FmsMaterial" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsMaterial_FmsMaterialTradeCompany" Association="iBemsModel.FK_FmsMaterial_FmsMaterialTradeCompany">
+      <End Role="FmsMaterialTradeCompany" EntitySet="FmsMaterialTradeCompany" />
+      <End Role="FmsMaterial" EntitySet="FmsMaterial" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsMaterial_FmsMaterialWarehouse" Association="iBemsModel.FK_FmsMaterial_FmsMaterialWarehouse">
+      <End Role="FmsMaterialWarehouse" EntitySet="FmsMaterialWarehouse" />
+      <End Role="FmsMaterial" EntitySet="FmsMaterial" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsMaterialPurchaseOrderMaterial_FmsMaterial" Association="iBemsModel.FK_FmsMaterialPurchaseOrderMaterial_FmsMaterial">
+      <End Role="FmsMaterial" EntitySet="FmsMaterial" />
+      <End Role="FmsMaterialPurchaseOrderMaterial" EntitySet="FmsMaterialPurchaseOrderMaterial" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsMaterialPurchaseRequestMaterial_FmsMaterial" Association="iBemsModel.FK_FmsMaterialPurchaseRequestMaterial_FmsMaterial">
+      <End Role="FmsMaterial" EntitySet="FmsMaterial" />
+      <End Role="FmsMaterialPurchaseRequestMaterial" EntitySet="FmsMaterialPurchaseRequestMaterial" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsMaterialRelease_FmsMaterial" Association="iBemsModel.FK_FmsMaterialRelease_FmsMaterial">
+      <End Role="FmsMaterial" EntitySet="FmsMaterial" />
+      <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsMaterialStored_FmsMaterial" Association="iBemsModel.FK_FmsMaterialStored_FmsMaterial">
+      <End Role="FmsMaterial" EntitySet="FmsMaterial" />
+      <End Role="FmsMaterialStored" EntitySet="FmsMaterialStored" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsWorkResultCheckItemMaterial_FmsMaterial" Association="iBemsModel.FK_FmsWorkResultCheckItemMaterial_FmsMaterial">
+      <End Role="FmsMaterial" EntitySet="FmsMaterial" />
+      <End Role="FmsWorkResultCheckItemMaterial" EntitySet="FmsWorkResultCheckItemMaterial" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsMaterialRelease_FmsMaterialCodeAdjustmentType" Association="iBemsModel.FK_FmsMaterialRelease_FmsMaterialCodeAdjustmentType">
+      <End Role="FmsMaterialCodeAdjustmentType" EntitySet="FmsMaterialCodeAdjustmentType" />
+      <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsMaterialRelease_FmsMaterialCodeReleaseType" Association="iBemsModel.FK_FmsMaterialRelease_FmsMaterialCodeReleaseType">
+      <End Role="FmsMaterialCodeReleaseType" EntitySet="FmsMaterialCodeReleaseType" />
+      <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsMaterialRelease_FmsWorkResult" Association="iBemsModel.FK_FmsMaterialRelease_FmsWorkResult">
+      <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
+      <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsWorkResultCheckItemMaterial_FmsWorkResult" Association="iBemsModel.FK_FmsWorkResultCheckItemMaterial_FmsWorkResult">
+      <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
+      <End Role="FmsWorkResultCheckItemMaterial" EntitySet="FmsWorkResultCheckItemMaterial" />
+    </AssociationSet>
+    <EntitySet Name="CmPatrolType" EntityType="iBemsModel.CmPatrolType" />
+    <EntitySet Name="CmPatrolGroup" EntityType="iBemsModel.CmPatrolGroup" />
+    <EntitySet Name="CmPatrolGroupUser" EntityType="iBemsModel.CmPatrolGroupUser" />
+    <AssociationSet Name="FK_CmPatrolGroupUser_CmPatrolGroup" Association="iBemsModel.FK_CmPatrolGroupUser_CmPatrolGroup">
+      <End Role="CmPatrolGroup" EntitySet="CmPatrolGroup" />
+      <End Role="CmPatrolGroupUser" EntitySet="CmPatrolGroupUser" />
+    </AssociationSet>
+    <AssociationSet Name="FK_CmPatrolGroupUser_CmUser" Association="iBemsModel.FK_CmPatrolGroupUser_CmUser">
+      <End Role="CmUser" EntitySet="CmUser" />
+      <End Role="CmPatrolGroupUser" EntitySet="CmPatrolGroupUser" />
+    </AssociationSet>
+    <EntitySet Name="CmPatrolPos" EntityType="iBemsModel.CmPatrolPos" />
+    <AssociationSet Name="FK_CmPatrolPos_CmBuilding" Association="iBemsModel.FK_CmPatrolPos_CmBuilding">
+      <End Role="CmBuilding" EntitySet="CmBuilding" />
+      <End Role="CmPatrolPos" EntitySet="CmPatrolPos" />
+    </AssociationSet>
+    <AssociationSet Name="FK_CmPatrolPos_CmFloor" Association="iBemsModel.FK_CmPatrolPos_CmFloor">
+      <End Role="CmFloor" EntitySet="CmFloor" />
+      <End Role="CmPatrolPos" EntitySet="CmPatrolPos" />
+    </AssociationSet>
+    <EntitySet Name="CmPatrolCourse" EntityType="iBemsModel.CmPatrolCourse" />
+    <EntitySet Name="CmPatrolCoursePos" EntityType="iBemsModel.CmPatrolCoursePos" />
+    <AssociationSet Name="FK_CmPatrolCoursePos_CmPatrolCourse" Association="iBemsModel.FK_CmPatrolCoursePos_CmPatrolCourse">
+      <End Role="CmPatrolCourse" EntitySet="CmPatrolCourse" />
+      <End Role="CmPatrolCoursePos" EntitySet="CmPatrolCoursePos" />
+    </AssociationSet>
+    <AssociationSet Name="FK_CmPatrolCoursePos_CmPatrolPos" Association="iBemsModel.FK_CmPatrolCoursePos_CmPatrolPos">
+      <End Role="CmPatrolPos" EntitySet="CmPatrolPos" />
+      <End Role="CmPatrolCoursePos" EntitySet="CmPatrolCoursePos" />
+    </AssociationSet>
+    <EntitySet Name="CmPatrolPlan" EntityType="iBemsModel.CmPatrolPlan" />
+    <AssociationSet Name="FK_CmPatrolPlan_CmPatrolCourse" Association="iBemsModel.FK_CmPatrolPlan_CmPatrolCourse">
+      <End Role="CmPatrolCourse" EntitySet="CmPatrolCourse" />
+      <End Role="CmPatrolPlan" EntitySet="CmPatrolPlan" />
+    </AssociationSet>
+    <AssociationSet Name="FK_CmPatrolPlan_CmPatrolGroup" Association="iBemsModel.FK_CmPatrolPlan_CmPatrolGroup">
+      <End Role="CmPatrolGroup" EntitySet="CmPatrolGroup" />
+      <End Role="CmPatrolPlan" EntitySet="CmPatrolPlan" />
+    </AssociationSet>
+    <EntitySet Name="CmPatrolHistoryPos" EntityType="iBemsModel.CmPatrolHistoryPos" />
+    <AssociationSet Name="FK_CmPatrolHistoryPos_CmPatrolPos" Association="iBemsModel.FK_CmPatrolHistoryPos_CmPatrolPos">
+      <End Role="CmPatrolPos" EntitySet="CmPatrolPos" />
+      <End Role="CmPatrolHistoryPos" EntitySet="CmPatrolHistoryPos" />
+    </AssociationSet>
+    <AssociationSet Name="FK_CmPatrolHistoryPos_CmPatrolType" Association="iBemsModel.FK_CmPatrolHistoryPos_CmPatrolType">
+      <End Role="CmPatrolType" EntitySet="CmPatrolType" />
+      <End Role="CmPatrolHistoryPos" EntitySet="CmPatrolHistoryPos" />
+    </AssociationSet>
+    <EntitySet Name="BemsPeakInfo" EntityType="iBemsModel.BemsPeakInfo" />
+    <EntitySet Name="BemsPeakHistory" EntityType="iBemsModel.BemsPeakHistory" />
+    <EntitySet Name="CmPatrolSchedule" EntityType="iBemsModel.CmPatrolSchedule" />
+    <AssociationSet Name="FK_CmPatrolSchedule_CmPatrolPlan" Association="iBemsModel.FK_CmPatrolSchedule_CmPatrolPlan">
+      <End Role="CmPatrolPlan" EntitySet="CmPatrolPlan" />
+      <End Role="CmPatrolSchedule" EntitySet="CmPatrolSchedule" />
+    </AssociationSet>
+    <EntitySet Name="BemsNoticePriceBase" EntityType="iBemsModel.BemsNoticePriceBase" />
+    <EntitySet Name="BemsNoticePriceContractType" EntityType="iBemsModel.BemsNoticePriceContractType" />
+    <EntitySet Name="BemsNoticePriceDetail" EntityType="iBemsModel.BemsNoticePriceDetail" />
+    <AssociationSet Name="FK__BemsNoticePriceBase__BemsNoticePriceContractType" Association="iBemsModel.FK__BemsNoticePriceBase__BemsNoticePriceContractType">
+      <End Role="BemsNoticePriceContractType" EntitySet="BemsNoticePriceContractType" />
+      <End Role="BemsNoticePriceBase" EntitySet="BemsNoticePriceBase" />
+    </AssociationSet>
+    <AssociationSet Name="FK__BemsNoticePriceDetail__BemsNoticePriceBase" Association="iBemsModel.FK__BemsNoticePriceDetail__BemsNoticePriceBase">
+      <End Role="BemsNoticePriceBase" EntitySet="BemsNoticePriceBase" />
+      <End Role="BemsNoticePriceDetail" EntitySet="BemsNoticePriceDetail" />
+    </AssociationSet>
+    <EntitySet Name="BemsPeakFacility" EntityType="iBemsModel.BemsPeakFacility" />
+    <EntitySet Name="CmSite" EntityType="iBemsModel.CmSite" />
+    <AssociationSet Name="FK_BemsPeakHIstory_CmSite" Association="iBemsModel.FK_BemsPeakHIstory_CmSite">
+      <End Role="CmSite" EntitySet="CmSite" />
+      <End Role="BemsPeakHistory" EntitySet="BemsPeakHistory" />
+    </AssociationSet>
+    <AssociationSet Name="FK_BemsPeakInfo_CmSite" Association="iBemsModel.FK_BemsPeakInfo_CmSite">
+      <End Role="CmSite" EntitySet="CmSite" />
+      <End Role="BemsPeakInfo" EntitySet="BemsPeakInfo" />
+    </AssociationSet>
+    <AssociationSet Name="FK__CmBuildin__SiteI__3BFFE745" Association="iBemsModel.FK__CmBuildin__SiteI__3BFFE745">
+      <End Role="CmSite" EntitySet="CmSite" />
+      <End Role="CmBuilding" EntitySet="CmBuilding" />
+    </AssociationSet>
+    <AssociationSet Name="FK__CmCompany__SiteI__336AA144" Association="iBemsModel.FK__CmCompany__SiteI__336AA144">
+      <End Role="CmSite" EntitySet="CmSite" />
+      <End Role="CmCompany" EntitySet="CmCompany" />
+    </AssociationSet>
+    <AssociationSet Name="FK_CmFacilityTempSet_CmSite" Association="iBemsModel.FK_CmFacilityTempSet_CmSite">
+      <End Role="CmSite" EntitySet="CmSite" />
+      <End Role="CmFacilityTempSet" EntitySet="CmFacilityTempSet" />
+    </AssociationSet>
+    <AssociationSet Name="FK__CmFile__SiteId__2759D01A" Association="iBemsModel.FK__CmFile__SiteId__2759D01A">
+      <End Role="CmSite" EntitySet="CmSite" />
+      <End Role="CmFile" EntitySet="CmFile" />
+    </AssociationSet>
+    <AssociationSet Name="FK__CmHoliday__SiteI__0BB1B5A5" Association="iBemsModel.FK__CmHoliday__SiteI__0BB1B5A5">
+      <End Role="CmSite" EntitySet="CmSite" />
+      <End Role="CmHoliday" EntitySet="CmHoliday" />
+    </AssociationSet>
+    <AssociationSet Name="FK__CmHoliday__SiteI__65AC084E" Association="iBemsModel.FK__CmHoliday__SiteI__65AC084E">
+      <End Role="CmSite" EntitySet="CmSite" />
+      <End Role="CmHoliday" EntitySet="CmHoliday" />
+    </AssociationSet>
+    <AssociationSet Name="FK__CmHoliday__SiteI__10766AC2" Association="iBemsModel.FK__CmHoliday__SiteI__10766AC2">
+      <End Role="CmSite" EntitySet="CmSite" />
+      <End Role="CmHolidayCustom" EntitySet="CmHolidayCustom" />
+    </AssociationSet>
+    <AssociationSet Name="FK__CmHoliday__SiteI__66A02C87" Association="iBemsModel.FK__CmHoliday__SiteI__66A02C87">
+      <End Role="CmSite" EntitySet="CmSite" />
+      <End Role="CmHolidayCustom" EntitySet="CmHolidayCustom" />
+    </AssociationSet>
+    <AssociationSet Name="FK__CmHoliday__SiteI__0D99FE17" Association="iBemsModel.FK__CmHoliday__SiteI__0D99FE17">
+      <End Role="CmSite" EntitySet="CmSite" />
+      <End Role="CmHolidayWeekend" EntitySet="CmHolidayWeekend" />
+    </AssociationSet>
+    <AssociationSet Name="FK_CmPatrolCourse_CmSite" Association="iBemsModel.FK_CmPatrolCourse_CmSite">
+      <End Role="CmSite" EntitySet="CmSite" />
+      <End Role="CmPatrolCourse" EntitySet="CmPatrolCourse" />
+    </AssociationSet>
+    <AssociationSet Name="FK_CmPatrolCoursePos_CmSite" Association="iBemsModel.FK_CmPatrolCoursePos_CmSite">
+      <End Role="CmSite" EntitySet="CmSite" />
+      <End Role="CmPatrolCoursePos" EntitySet="CmPatrolCoursePos" />
+    </AssociationSet>
+    <AssociationSet Name="FK_CmPatrolGroup_CmSite" Association="iBemsModel.FK_CmPatrolGroup_CmSite">
+      <End Role="CmSite" EntitySet="CmSite" />
+      <End Role="CmPatrolGroup" EntitySet="CmPatrolGroup" />
+    </AssociationSet>
+    <AssociationSet Name="FK_CmPatrolHistoryPos_CmSite" Association="iBemsModel.FK_CmPatrolHistoryPos_CmSite">
+      <End Role="CmSite" EntitySet="CmSite" />
+      <End Role="CmPatrolHistoryPos" EntitySet="CmPatrolHistoryPos" />
+    </AssociationSet>
+    <AssociationSet Name="FK_CmPatrolPlan_CmSite" Association="iBemsModel.FK_CmPatrolPlan_CmSite">
+      <End Role="CmSite" EntitySet="CmSite" />
+      <End Role="CmPatrolPlan" EntitySet="CmPatrolPlan" />
+    </AssociationSet>
+    <AssociationSet Name="FK_CmPatrolPos_CmSite" Association="iBemsModel.FK_CmPatrolPos_CmSite">
+      <End Role="CmSite" EntitySet="CmSite" />
+      <End Role="CmPatrolPos" EntitySet="CmPatrolPos" />
+    </AssociationSet>
+    <AssociationSet Name="FK_CmPatrolSchedule_CmSite" Association="iBemsModel.FK_CmPatrolSchedule_CmSite">
+      <End Role="CmSite" EntitySet="CmSite" />
+      <End Role="CmPatrolSchedule" EntitySet="CmPatrolSchedule" />
+    </AssociationSet>
+    <AssociationSet Name="FK_CmPatrolType_CmSite" Association="iBemsModel.FK_CmPatrolType_CmSite">
+      <End Role="CmSite" EntitySet="CmSite" />
+      <End Role="CmPatrolType" EntitySet="CmPatrolType" />
+    </AssociationSet>
+    <AssociationSet Name="FK__CmPositio__SiteI__6A70BD6B" Association="iBemsModel.FK__CmPositio__SiteI__6A70BD6B">
+      <End Role="CmSite" EntitySet="CmSite" />
+      <End Role="CmPosition" EntitySet="CmPosition" />
+    </AssociationSet>
+    <AssociationSet Name="FK__CmUserPos__SiteI__44952D46" Association="iBemsModel.FK__CmUserPos__SiteI__44952D46">
+      <End Role="CmSite" EntitySet="CmSite" />
+      <End Role="CmPosition" EntitySet="CmPosition" />
+    </AssociationSet>
+    <AssociationSet Name="FK__CmUserGro__SiteI__53D770D6" Association="iBemsModel.FK__CmUserGro__SiteI__53D770D6">
+      <End Role="CmSite" EntitySet="CmSite" />
+      <End Role="CmUserGroup" EntitySet="CmUserGroup" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsDrawin__SiteI__6B79F03D" Association="iBemsModel.FK__FmsDrawin__SiteI__6B79F03D">
+      <End Role="CmSite" EntitySet="CmSite" />
+      <End Role="FmsDrawingCodeGroup" EntitySet="FmsDrawingCodeGroup" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsDrawin__SiteI__6C6E1476" Association="iBemsModel.FK__FmsDrawin__SiteI__6C6E1476">
+      <End Role="CmSite" EntitySet="CmSite" />
+      <End Role="FmsDrawingCodeType" EntitySet="FmsDrawingCodeType" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsDrawin__SiteI__6D6238AF" Association="iBemsModel.FK__FmsDrawin__SiteI__6D6238AF">
+      <End Role="CmSite" EntitySet="CmSite" />
+      <End Role="FmsDrawing" EntitySet="FmsDrawing" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsDrawin__SiteI__6F357288" Association="iBemsModel.FK__FmsDrawin__SiteI__6F357288">
+      <End Role="CmSite" EntitySet="CmSite" />
+      <End Role="FmsDrawingCodeGroup" EntitySet="FmsDrawingCodeGroup" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsDrawin__SiteI__702996C1" Association="iBemsModel.FK__FmsDrawin__SiteI__702996C1">
+      <End Role="CmSite" EntitySet="CmSite" />
+      <End Role="FmsDrawingCodeType" EntitySet="FmsDrawingCodeType" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsFacilityCodeClass__CmSite" Association="iBemsModel.FK__FmsFacilityCodeClass__CmSite">
+      <End Role="CmSite" EntitySet="CmSite" />
+      <End Role="FmsFacilityCodeClass" EntitySet="FmsFacilityCodeClass" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsLicense__CmSite" Association="iBemsModel.FK__FmsLicense__CmSite">
+      <End Role="CmSite" EntitySet="CmSite" />
+      <End Role="FmsLicense" EntitySet="FmsLicense" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsMaterialCarriedForward__CmSite" Association="iBemsModel.FK__FmsMaterialCarriedForward__CmSite">
+      <End Role="CmSite" EntitySet="CmSite" />
+      <End Role="FmsMaterialCarriedForward" EntitySet="FmsMaterialCarriedForward" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsMaterialCodeClass__CmSite" Association="iBemsModel.FK__FmsMaterialCodeClass__CmSite">
+      <End Role="CmSite" EntitySet="CmSite" />
+      <End Role="FmsMaterialCodeClass" EntitySet="FmsMaterialCodeClass" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsMaterialCodeLocation__CmSite" Association="iBemsModel.FK__FmsMaterialCodeLocation__CmSite">
+      <End Role="CmSite" EntitySet="CmSite" />
+      <End Role="FmsMaterialCodeLocation" EntitySet="FmsMaterialCodeLocation" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsMaterialCodeType__CmSite" Association="iBemsModel.FK__FmsMaterialCodeType__CmSite">
+      <End Role="CmSite" EntitySet="CmSite" />
+      <End Role="FmsMaterialCodeType" EntitySet="FmsMaterialCodeType" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsMaterialOrder__CmSite" Association="iBemsModel.FK__FmsMaterialOrder__CmSite">
+      <End Role="CmSite" EntitySet="CmSite" />
+      <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsMaterialPurchasingRequest__CmSite" Association="iBemsModel.FK__FmsMaterialPurchasingRequest__CmSite">
+      <End Role="CmSite" EntitySet="CmSite" />
+      <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsMaterialStored__CmSite" Association="iBemsModel.FK__FmsMaterialStored__CmSite">
+      <End Role="CmSite" EntitySet="CmSite" />
+      <End Role="FmsMaterialStored" EntitySet="FmsMaterialStored" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsMaterialTradeCompany__CmSite" Association="iBemsModel.FK__FmsMaterialTradeCompany__CmSite">
+      <End Role="CmSite" EntitySet="CmSite" />
+      <End Role="FmsMaterialTradeCompany" EntitySet="FmsMaterialTradeCompany" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsMaterialWarehouse__CmSite" Association="iBemsModel.FK__FmsMaterialWarehouse__CmSite">
+      <End Role="CmSite" EntitySet="CmSite" />
+      <End Role="FmsMaterialWarehouse" EntitySet="FmsMaterialWarehouse" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsWorkCodeCauseClass__CmSite" Association="iBemsModel.FK__FmsWorkCodeCauseClass__CmSite">
+      <End Role="CmSite" EntitySet="CmSite" />
+      <End Role="FmsWorkCodeCauseClass" EntitySet="FmsWorkCodeCauseClass" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsWorkCodeCycleUnit__CmSite" Association="iBemsModel.FK__FmsWorkCodeCycleUnit__CmSite">
+      <End Role="CmSite" EntitySet="CmSite" />
+      <End Role="FmsWorkCodeCycleUnit" EntitySet="FmsWorkCodeCycleUnit" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsWorkCodeEmergency__CmSite" Association="iBemsModel.FK__FmsWorkCodeEmergency__CmSite">
+      <End Role="CmSite" EntitySet="CmSite" />
+      <End Role="FmsWorkCodeEmergency" EntitySet="FmsWorkCodeEmergency" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsWorkCodeHolidayWorkType__CmSite" Association="iBemsModel.FK__FmsWorkCodeHolidayWorkType__CmSite">
+      <End Role="CmSite" EntitySet="CmSite" />
+      <End Role="FmsWorkCodeHolidayWorkType" EntitySet="FmsWorkCodeHolidayWorkType" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsWorkCodeLegalInspectionAgency__CmSite" Association="iBemsModel.FK__FmsWorkCodeLegalInspectionAgency__CmSite">
+      <End Role="CmSite" EntitySet="CmSite" />
+      <End Role="FmsWorkCodeLegalInspectionAgency" EntitySet="FmsWorkCodeLegalInspectionAgency" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsWorkOrder__CmSite" Association="iBemsModel.FK__FmsWorkOrder__CmSite">
+      <End Role="CmSite" EntitySet="CmSite" />
+      <End Role="FmsWorkOrder" EntitySet="FmsWorkOrder" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsWorkRequest__CmSite" Association="iBemsModel.FK__FmsWorkRequest__CmSite">
+      <End Role="CmSite" EntitySet="CmSite" />
+      <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
+    </AssociationSet>
+    <AssociationSet Name="FK_CmZoneTempHumiSet_CmSite" Association="iBemsModel.FK_CmZoneTempHumiSet_CmSite">
+      <End Role="CmSite" EntitySet="CmSite" />
+      <End Role="CmZoneTempHumiSet" EntitySet="CmZoneTempHumiSet" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsMaterial_CmSite" Association="iBemsModel.FK_FmsMaterial_CmSite">
+      <End Role="CmSite" EntitySet="CmSite" />
+      <End Role="FmsMaterial" EntitySet="FmsMaterial" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsMaterialRelease_CmSite" Association="iBemsModel.FK_FmsMaterialRelease_CmSite">
+      <End Role="CmSite" EntitySet="CmSite" />
+      <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
+    </AssociationSet>
+    <EntitySet Name="FmsReport" EntityType="iBemsModel.FmsReport" />
+    <AssociationSet Name="FK_FmsReport_CmBusinessField" Association="iBemsModel.FK_FmsReport_CmBusinessField">
+      <End Role="CmBusinessField" EntitySet="CmBusinessField" />
+      <End Role="FmsReport" EntitySet="FmsReport" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsReport_CmFile" Association="iBemsModel.FK_FmsReport_CmFile">
+      <End Role="CmFile" EntitySet="CmFile" />
+      <End Role="FmsReport" EntitySet="FmsReport" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsReport_CmSite" Association="iBemsModel.FK_FmsReport_CmSite">
+      <End Role="CmSite" EntitySet="CmSite" />
+      <End Role="FmsReport" EntitySet="FmsReport" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsReport_CmUser" Association="iBemsModel.FK_FmsReport_CmUser">
+      <End Role="CmUser" EntitySet="CmUser" />
+      <End Role="FmsReport" EntitySet="FmsReport" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsReport_CmUser1" Association="iBemsModel.FK_FmsReport_CmUser1">
+      <End Role="CmUser" EntitySet="CmUser" />
+      <End Role="FmsReport" EntitySet="FmsReport" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsReport_CmUser2" Association="iBemsModel.FK_FmsReport_CmUser2">
+      <End Role="CmUser" EntitySet="CmUser" />
+      <End Role="FmsReport" EntitySet="FmsReport" />
+    </AssociationSet>
+    <EntitySet Name="CmServiceEnergyCalcMonth" EntityType="iBemsModel.CmServiceEnergyCalcMonth" />
+    <EntitySet Name="CmServiceEnergyCalcDay" EntityType="iBemsModel.CmServiceEnergyCalcDay" />
+    <EntitySet Name="CmPatrolHistory" EntityType="iBemsModel.CmPatrolHistory" />
+    <AssociationSet Name="FK_CmPatrolHistory_CmPatrolSchedule" Association="iBemsModel.FK_CmPatrolHistory_CmPatrolSchedule">
+      <End Role="CmPatrolSchedule" EntitySet="CmPatrolSchedule" />
+      <End Role="CmPatrolHistory" EntitySet="CmPatrolHistory" />
+    </AssociationSet>
+    <AssociationSet Name="FK_CmPatrolHistory_CmPatrolType" Association="iBemsModel.FK_CmPatrolHistory_CmPatrolType">
+      <End Role="CmPatrolType" EntitySet="CmPatrolType" />
+      <End Role="CmPatrolHistory" EntitySet="CmPatrolHistory" />
+    </AssociationSet>
+    <AssociationSet Name="FK_CmPatrolHistory_CmSite" Association="iBemsModel.FK_CmPatrolHistory_CmSite">
+      <End Role="CmSite" EntitySet="CmSite" />
+      <End Role="CmPatrolHistory" EntitySet="CmPatrolHistory" />
+    </AssociationSet>
+    <EntitySet Name="CmMenu" EntityType="iBemsModel.CmMenu" />
+    <EntitySet Name="BemsChartInfo" EntityType="iBemsModel.BemsChartInfo" />
+    <EntitySet Name="BemsReportFormat" EntityType="iBemsModel.BemsReportFormat" />
+    <EntitySet Name="FmsWorkSchedule" EntityType="iBemsModel.FmsWorkSchedule" />
+    <AssociationSet Name="FK_CmMenu_CmSite" Association="iBemsModel.FK_CmMenu_CmSite">
+      <End Role="CmSite" EntitySet="CmSite" />
+      <End Role="CmMenu" EntitySet="CmMenu" />
+    </AssociationSet>
+    <AssociationSet Name="FK_BemsChartInfo_BemsFacilityType" Association="iBemsModel.FK_BemsChartInfo_BemsFacilityType">
+      <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
+      <End Role="BemsChartInfo" EntitySet="BemsChartInfo" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsWorkSchedule__CmBusinessField" Association="iBemsModel.FK__FmsWorkSchedule__CmBusinessField">
+      <End Role="CmBusinessField" EntitySet="CmBusinessField" />
+      <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsWorkSchedule__CmUser" Association="iBemsModel.FK__FmsWorkSchedule__CmUser">
+      <End Role="CmUser" EntitySet="CmUser" />
+      <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsWorkSchedule__FmsWorkCodeCycleUnit" Association="iBemsModel.FK__FmsWorkSchedule__FmsWorkCodeCycleUnit">
+      <End Role="FmsWorkCodeCycleUnit" EntitySet="FmsWorkCodeCycleUnit" />
+      <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsWorkSchedule__FmsWorkCodeHolidayWorkType" Association="iBemsModel.FK__FmsWorkSchedule__FmsWorkCodeHolidayWorkType">
+      <End Role="FmsWorkCodeHolidayWorkType" EntitySet="FmsWorkCodeHolidayWorkType" />
+      <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsWorkSchedule__FmsWorkCodeWorkType" Association="iBemsModel.FK__FmsWorkSchedule__FmsWorkCodeWorkType">
+      <End Role="FmsWorkCodeType" EntitySet="FmsWorkCodeType" />
+      <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsWorkRequest__FmsWorkSchedule" Association="iBemsModel.FK__FmsWorkRequest__FmsWorkSchedule">
+      <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
+      <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsWorkScheduleToFacility__FmsWorkSchedule" Association="iBemsModel.FK__FmsWorkScheduleToFacility__FmsWorkSchedule">
+      <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
+      <End Role="FmsWorkScheduleToFacility" EntitySet="FmsWorkScheduleToFacility" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsWorkResultCheckItem_CmFile" Association="iBemsModel.FK_FmsWorkResultCheckItem_CmFile">
+      <End Role="CmFile" EntitySet="CmFile" />
+      <End Role="FmsWorkResultCheckItem" EntitySet="FmsWorkResultCheckItem" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsWorkResultCheckItem_CmFile1" Association="iBemsModel.FK_FmsWorkResultCheckItem_CmFile1">
+      <End Role="CmFile" EntitySet="CmFile" />
+      <End Role="FmsWorkResultCheckItem" EntitySet="FmsWorkResultCheckItem" />
+    </AssociationSet>
+    <AssociationSet Name="FK_BemsChartInfo_CmSite" Association="iBemsModel.FK_BemsChartInfo_CmSite">
+      <End Role="CmSite" EntitySet="CmSite" />
+      <End Role="BemsChartInfo" EntitySet="BemsChartInfo" />
+    </AssociationSet>
+    <EntitySet Name="BemsPeopleIncrease" EntityType="iBemsModel.BemsPeopleIncrease" />
+    <EntitySet Name="BemsPriceCode" EntityType="iBemsModel.BemsPriceCode" />
+    <EntitySet Name="BemsPriceFormula" EntityType="iBemsModel.BemsPriceFormula" />
+    <EntitySet Name="BemsPriceMeta" EntityType="iBemsModel.BemsPriceMeta" />
+    <EntitySet Name="BemsPriceType" EntityType="iBemsModel.BemsPriceType" />
+    <EntitySet Name="BemsRentalRate" EntityType="iBemsModel.BemsRentalRate" />
+    <EntitySet Name="BemsSitePrice" EntityType="iBemsModel.BemsSitePrice" />
+    <EntitySet Name="BemsSitePriceHistory" EntityType="iBemsModel.BemsSitePriceHistory" />
+    <AssociationSet Name="FK_BemsPriceFormula_BemsFormula" Association="iBemsModel.FK_BemsPriceFormula_BemsFormula">
+      <End Role="BemsFormula" EntitySet="BemsFormula" />
+      <End Role="BemsPriceFormula" EntitySet="BemsPriceFormula" />
+    </AssociationSet>
+    <AssociationSet Name="FK_BemsPeopleIncrease_CmSite" Association="iBemsModel.FK_BemsPeopleIncrease_CmSite">
+      <End Role="CmSite" EntitySet="CmSite" />
+      <End Role="BemsPeopleIncrease" EntitySet="BemsPeopleIncrease" />
+    </AssociationSet>
+    <AssociationSet Name="FK_BemsSitePrice_BemsPriceCode" Association="iBemsModel.FK_BemsSitePrice_BemsPriceCode">
+      <End Role="BemsPriceCode" EntitySet="BemsPriceCode" />
+      <End Role="BemsSitePrice" EntitySet="BemsSitePrice" />
+    </AssociationSet>
+    <AssociationSet Name="FK_BemsSitePriceHistory_BemsPriceCode" Association="iBemsModel.FK_BemsSitePriceHistory_BemsPriceCode">
+      <End Role="BemsPriceCode" EntitySet="BemsPriceCode" />
+      <End Role="BemsSitePriceHistory" EntitySet="BemsSitePriceHistory" />
+    </AssociationSet>
+    <AssociationSet Name="FK_BemsPriceFormula_BemsPriceType" Association="iBemsModel.FK_BemsPriceFormula_BemsPriceType">
+      <End Role="BemsPriceType" EntitySet="BemsPriceType" />
+      <End Role="BemsPriceFormula" EntitySet="BemsPriceFormula" />
+    </AssociationSet>
+    <AssociationSet Name="FK_BemsPriceMeta_BemsPriceType" Association="iBemsModel.FK_BemsPriceMeta_BemsPriceType">
+      <End Role="BemsPriceType" EntitySet="BemsPriceType" />
+      <End Role="BemsPriceMeta" EntitySet="BemsPriceMeta" />
+    </AssociationSet>
+    <AssociationSet Name="FK_BemsSitePriceHistory_BemsPriceType" Association="iBemsModel.FK_BemsSitePriceHistory_BemsPriceType">
+      <End Role="BemsPriceType" EntitySet="BemsPriceType" />
+      <End Role="BemsSitePriceHistory" EntitySet="BemsSitePriceHistory" />
+    </AssociationSet>
+    <AssociationSet Name="FK_BemsRentalRate_CmSite" Association="iBemsModel.FK_BemsRentalRate_CmSite">
+      <End Role="CmSite" EntitySet="CmSite" />
+      <End Role="BemsRentalRate" EntitySet="BemsRentalRate" />
+    </AssociationSet>
+    <AssociationSet Name="FK_BemsSitePrice_CmSite1" Association="iBemsModel.FK_BemsSitePrice_CmSite1">
+      <End Role="CmSite" EntitySet="CmSite" />
+      <End Role="BemsSitePrice" EntitySet="BemsSitePrice" />
+    </AssociationSet>
+    <AssociationSet Name="FK_BemsSitePriceHistory_CmSite" Association="iBemsModel.FK_BemsSitePriceHistory_CmSite">
+      <End Role="CmSite" EntitySet="CmSite" />
+      <End Role="BemsSitePriceHistory" EntitySet="BemsSitePriceHistory" />
+    </AssociationSet>
+    <AssociationSet Name="FK_BemsSitePrice_BemsPriceType" Association="iBemsModel.FK_BemsSitePrice_BemsPriceType">
+      <End Role="BemsPriceType" EntitySet="BemsPriceType" />
+      <End Role="BemsSitePrice" EntitySet="BemsSitePrice" />
+    </AssociationSet>
+    <EntitySet Name="BemsMonitoringPointConfig" EntityType="iBemsModel.BemsMonitoringPointConfig" />
+    <AssociationSet Name="FK_BemsMonitoringPointConfig_BemsFacilityType1" Association="iBemsModel.FK_BemsMonitoringPointConfig_BemsFacilityType1">
+      <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
+      <End Role="BemsMonitoringPointConfig" EntitySet="BemsMonitoringPointConfig" />
+    </AssociationSet>
+    <AssociationSet Name="FK_BemsMonitoringPointConfig_BemsMonitoringPoint" Association="iBemsModel.FK_BemsMonitoringPointConfig_BemsMonitoringPoint">
+      <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
+      <End Role="BemsMonitoringPointConfig" EntitySet="BemsMonitoringPointConfig" />
+    </AssociationSet>
+    <EntitySet Name="BemsAlarmSetting" EntityType="iBemsModel.BemsAlarmSetting" />
+    <AssociationSet Name="FK_BemsAlarmSetting_BemsFacilityType" Association="iBemsModel.FK_BemsAlarmSetting_BemsFacilityType">
+      <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
+      <End Role="BemsAlarmSetting" EntitySet="BemsAlarmSetting" />
+    </AssociationSet>
+    <AssociationSet Name="FK_BemsAlarmSetting_CmSite1" Association="iBemsModel.FK_BemsAlarmSetting_CmSite1">
+      <End Role="CmSite" EntitySet="CmSite" />
+      <End Role="BemsAlarmSetting" EntitySet="BemsAlarmSetting" />
+    </AssociationSet>
+    <EntitySet Name="BemsAlarmLog" EntityType="iBemsModel.BemsAlarmLog" />
+    <AssociationSet Name="FK_BemsAlarmLog_BemsAlarmSetting" Association="iBemsModel.FK_BemsAlarmLog_BemsAlarmSetting">
+      <End Role="BemsAlarmSetting" EntitySet="BemsAlarmSetting" />
+      <End Role="BemsAlarmLog" EntitySet="BemsAlarmLog" />
+    </AssociationSet>
+    <EntitySet Name="BemsAlarmGroup" EntityType="iBemsModel.BemsAlarmGroup" />
+    <EntitySet Name="BemsAlarmGroupUser" EntityType="iBemsModel.BemsAlarmGroupUser" />
+    <EntitySet Name="BemsEnergyCost" EntityType="iBemsModel.BemsEnergyCost" />
+    <EntitySet Name="BemsEnergyConfigPercentMonth" EntityType="iBemsModel.BemsEnergyConfigPercentMonth" />
+    <EntitySet Name="BemsEnergyConfigPercentWeek" EntityType="iBemsModel.BemsEnergyConfigPercentWeek" />
+    <AssociationSet Name="FK__BemsEnerg__SiteI__7954A4F6" Association="iBemsModel.FK__BemsEnerg__SiteI__7954A4F6">
+      <End Role="CmSite" EntitySet="CmSite" />
+      <End Role="BemsEnergyConfigPercentMonth" EntitySet="BemsEnergyConfigPercentMonth" />
+    </AssociationSet>
+    <AssociationSet Name="FK__BemsEnerg__SiteI__7C3111A1" Association="iBemsModel.FK__BemsEnerg__SiteI__7C3111A1">
+      <End Role="CmSite" EntitySet="CmSite" />
+      <End Role="BemsEnergyConfigPercentWeek" EntitySet="BemsEnergyConfigPercentWeek" />
+    </AssociationSet>
+    <EntitySet Name="BemsEnergyDaily" EntityType="iBemsModel.BemsEnergyDaily" />
+    <AssociationSet Name="FK__BemsEnergyDaily__BemsServiceType" Association="iBemsModel.FK__BemsEnergyDaily__BemsServiceType">
+      <End Role="BemsServiceType" EntitySet="BemsServiceType" />
+      <End Role="BemsEnergyDaily" EntitySet="BemsEnergyDaily" />
+    </AssociationSet>
+    <AssociationSet Name="FK__BemsEnergyDaily__CmBuilding" Association="iBemsModel.FK__BemsEnergyDaily__CmBuilding">
+      <End Role="CmBuilding" EntitySet="CmBuilding" />
+      <End Role="BemsEnergyDaily" EntitySet="BemsEnergyDaily" />
+    </AssociationSet>
+    <EntitySet Name="BemsEnergyDailyRegression" EntityType="iBemsModel.BemsEnergyDailyRegression" />
+    <AssociationSet Name="FK_BemsEnergyDailyRegression_CmSite" Association="iBemsModel.FK_BemsEnergyDailyRegression_CmSite">
+      <End Role="CmSite" EntitySet="CmSite" />
+      <End Role="BemsEnergyDailyRegression" EntitySet="BemsEnergyDailyRegression" />
+    </AssociationSet>
+    <EntitySet Name="WeatherDongNaeForecast" EntityType="iBemsModel.WeatherDongNaeForecast" />
+    <EntitySet Name="FmsEquipmentRentInfo" EntityType="iBemsModel.FmsEquipmentRentInfo" />
+    <AssociationSet Name="FK_FmsEquipmentRentInfo_CmUser" Association="iBemsModel.FK_FmsEquipmentRentInfo_CmUser">
+      <End Role="CmUser" EntitySet="CmUser" />
+      <End Role="FmsEquipmentRentInfo" EntitySet="FmsEquipmentRentInfo" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsEquipmentRentInfo_CmUser1" Association="iBemsModel.FK_FmsEquipmentRentInfo_CmUser1">
+      <End Role="CmUser" EntitySet="CmUser" />
+      <End Role="FmsEquipmentRentInfo" EntitySet="FmsEquipmentRentInfo" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsEquipmentRentInfo_FmsEquipmentCodeStateType" Association="iBemsModel.FK_FmsEquipmentRentInfo_FmsEquipmentCodeStateType">
+      <End Role="FmsEquipmentCodeStateType" EntitySet="FmsEquipmentCodeStateType" />
+      <End Role="FmsEquipmentRentInfo" EntitySet="FmsEquipmentRentInfo" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsEquipmentHistory_FmsEquipmentRentInfo" Association="iBemsModel.FK_FmsEquipmentHistory_FmsEquipmentRentInfo">
+      <End Role="FmsEquipmentRentInfo" EntitySet="FmsEquipmentRentInfo" />
+      <End Role="FmsEquipmentHistory" EntitySet="FmsEquipmentHistory" />
+    </AssociationSet>
+    <EntitySet Name="BemsControlAHUTempConfig" EntityType="iBemsModel.BemsControlAHUTempConfig" />
+    <EntitySet Name="BemsFuelType" EntityType="iBemsModel.BemsFuelType" />
+    <AssociationSet Name="FK__BemsEnergyDaily__BemsFuelType" Association="iBemsModel.FK__BemsEnergyDaily__BemsFuelType">
+      <End Role="BemsFuelType" EntitySet="BemsFuelType" />
+      <End Role="BemsEnergyDaily" EntitySet="BemsEnergyDaily" />
+    </AssociationSet>
+    <AssociationSet Name="FK__BemsFactorCo2__BemsFuelType" Association="iBemsModel.FK__BemsFactorCo2__BemsFuelType">
+      <End Role="BemsFuelType" EntitySet="BemsFuelType" />
+      <End Role="BemsFactorCo2" EntitySet="BemsFactorCo2" />
+    </AssociationSet>
+    <AssociationSet Name="FK__BemsFactorToe__BemsFuelType" Association="iBemsModel.FK__BemsFactorToe__BemsFuelType">
+      <End Role="BemsFuelType" EntitySet="BemsFuelType" />
+      <End Role="BemsFactorToe" EntitySet="BemsFactorToe" />
+    </AssociationSet>
+    <AssociationSet Name="FK__BemsMonitoringPoint__BemsFuelType" Association="iBemsModel.FK__BemsMonitoringPoint__BemsFuelType">
+      <End Role="BemsFuelType" EntitySet="BemsFuelType" />
+      <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
+    </AssociationSet>
+    <AssociationSet Name="FK__BemsMonitoringPointBaseData__BemsFuelType" Association="iBemsModel.FK__BemsMonitoringPointBaseData__BemsFuelType">
+      <End Role="BemsFuelType" EntitySet="BemsFuelType" />
+      <End Role="BemsMonitoringPointBaseData" EntitySet="BemsMonitoringPointBaseData" />
+    </AssociationSet>
+    <AssociationSet Name="FK__BemsNoticePriceContractType__BemsFuelType" Association="iBemsModel.FK__BemsNoticePriceContractType__BemsFuelType">
+      <End Role="BemsFuelType" EntitySet="BemsFuelType" />
+      <End Role="BemsNoticePriceContractType" EntitySet="BemsNoticePriceContractType" />
+    </AssociationSet>
+    <AssociationSet Name="FK_BemsPriceCode_BemsFuelType" Association="iBemsModel.FK_BemsPriceCode_BemsFuelType">
+      <End Role="BemsFuelType" EntitySet="BemsFuelType" />
+      <End Role="BemsPriceCode" EntitySet="BemsPriceCode" />
+    </AssociationSet>
+    <AssociationSet Name="FK_BemsPriceType_BemsFuelType1" Association="iBemsModel.FK_BemsPriceType_BemsFuelType1">
+      <End Role="BemsFuelType" EntitySet="BemsFuelType" />
+      <End Role="BemsPriceType" EntitySet="BemsPriceType" />
+    </AssociationSet>
+    <AssociationSet Name="FK_BemsSitePrice_BemsFuelType" Association="iBemsModel.FK_BemsSitePrice_BemsFuelType">
+      <End Role="BemsFuelType" EntitySet="BemsFuelType" />
+      <End Role="BemsSitePrice" EntitySet="BemsSitePrice" />
+    </AssociationSet>
+    <AssociationSet Name="FK_BemsSitePriceHistory_BemsFuelType" Association="iBemsModel.FK_BemsSitePriceHistory_BemsFuelType">
+      <End Role="BemsFuelType" EntitySet="BemsFuelType" />
+      <End Role="BemsSitePriceHistory" EntitySet="BemsSitePriceHistory" />
+    </AssociationSet>
+    <EntitySet Name="CmFacility" EntityType="iBemsModel.CmFacility" />
+    <AssociationSet Name="FK_BemsAlarmSetting_CmFacility" Association="iBemsModel.FK_BemsAlarmSetting_CmFacility">
+      <End Role="CmFacility" EntitySet="CmFacility" />
+      <End Role="BemsAlarmSetting" EntitySet="BemsAlarmSetting" />
+    </AssociationSet>
+    <AssociationSet Name="FK_BemsEnergyCost_CmFacility" Association="iBemsModel.FK_BemsEnergyCost_CmFacility">
+      <End Role="CmFacility" EntitySet="CmFacility" />
+      <End Role="BemsEnergyCost" EntitySet="BemsEnergyCost" />
+    </AssociationSet>
+    <AssociationSet Name="FK__CmFacility__BemsFacilityType" Association="iBemsModel.FK__CmFacility__BemsFacilityType">
+      <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
+      <End Role="CmFacility" EntitySet="CmFacility" />
+    </AssociationSet>
+    <AssociationSet Name="FK_BemsFormulaParameter_CmFacility" Association="iBemsModel.FK_BemsFormulaParameter_CmFacility">
+      <End Role="CmFacility" EntitySet="CmFacility" />
+      <End Role="BemsFormulaParameter" EntitySet="BemsFormulaParameter" />
+    </AssociationSet>
+    <AssociationSet Name="FK_CmFacility_BemsFuelType" Association="iBemsModel.FK_CmFacility_BemsFuelType">
+      <End Role="BemsFuelType" EntitySet="BemsFuelType" />
+      <End Role="CmFacility" EntitySet="CmFacility" />
+    </AssociationSet>
+    <AssociationSet Name="FK_BemsMonitoringPoint_CmFacility" Association="iBemsModel.FK_BemsMonitoringPoint_CmFacility">
+      <End Role="CmFacility" EntitySet="CmFacility" />
+      <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
+    </AssociationSet>
+    <AssociationSet Name="FK_CmFacility_BemsNoticePriceContractType" Association="iBemsModel.FK_CmFacility_BemsNoticePriceContractType">
+      <End Role="BemsNoticePriceContractType" EntitySet="BemsNoticePriceContractType" />
+      <End Role="CmFacility" EntitySet="CmFacility" />
+    </AssociationSet>
+    <AssociationSet Name="FK_BemsPeakFacility_CmFacility" Association="iBemsModel.FK_BemsPeakFacility_CmFacility">
+      <End Role="CmFacility" EntitySet="CmFacility" />
+      <End Role="BemsPeakFacility" EntitySet="BemsPeakFacility" />
+    </AssociationSet>
+    <AssociationSet Name="FK__CmFacility__CmBuilding" Association="iBemsModel.FK__CmFacility__CmBuilding">
+      <End Role="CmBuilding" EntitySet="CmBuilding" />
+      <End Role="CmFacility" EntitySet="CmFacility" />
+    </AssociationSet>
+    <AssociationSet Name="FK__CmFacility__74444068" Association="iBemsModel.FK__CmFacility__74444068">
+      <End Role="CmFloor" EntitySet="CmFloor" />
+      <End Role="CmFacility" EntitySet="CmFacility" />
+    </AssociationSet>
+    <AssociationSet Name="FK__CmFacility__753864A1" Association="iBemsModel.FK__CmFacility__753864A1">
+      <End Role="CmUser" EntitySet="CmUser" />
+      <End Role="CmFacility" EntitySet="CmFacility" />
+    </AssociationSet>
+    <AssociationSet Name="FK__CmFacility__762C88DA" Association="iBemsModel.FK__CmFacility__762C88DA">
+      <End Role="CmUser" EntitySet="CmUser" />
+      <End Role="CmFacility" EntitySet="CmFacility" />
+    </AssociationSet>
+    <AssociationSet Name="FK__CmFacility__CmFacility" Association="iBemsModel.FK__CmFacility__CmFacility">
+      <End Role="CmFacility" EntitySet="CmFacility" />
+      <End Role="CmFacility1" EntitySet="CmFacility" />
+    </AssociationSet>
+    <AssociationSet Name="FK__CmFacility__CmFile" Association="iBemsModel.FK__CmFacility__CmFile">
+      <End Role="CmFile" EntitySet="CmFile" />
+      <End Role="CmFacility" EntitySet="CmFacility" />
+    </AssociationSet>
+    <AssociationSet Name="FK__CmFacility__CmZone" Association="iBemsModel.FK__CmFacility__CmZone">
+      <End Role="CmZone" EntitySet="CmZone" />
+      <End Role="CmFacility" EntitySet="CmFacility" />
+    </AssociationSet>
+    <AssociationSet Name="FK__CmFacility__FmsFacilityCodeClassAsFirst" Association="iBemsModel.FK__CmFacility__FmsFacilityCodeClassAsFirst">
+      <End Role="FmsFacilityCodeClass" EntitySet="FmsFacilityCodeClass" />
+      <End Role="CmFacility" EntitySet="CmFacility" />
+    </AssociationSet>
+    <AssociationSet Name="FK__CmFacility__FmsFacilityCodeClassAsSecond" Association="iBemsModel.FK__CmFacility__FmsFacilityCodeClassAsSecond">
+      <End Role="FmsFacilityCodeClass" EntitySet="FmsFacilityCodeClass" />
+      <End Role="CmFacility" EntitySet="CmFacility" />
+    </AssociationSet>
+    <AssociationSet Name="FK__CmFacility__FmsFacilityCodeClassAsThird" Association="iBemsModel.FK__CmFacility__FmsFacilityCodeClassAsThird">
+      <End Role="FmsFacilityCodeClass" EntitySet="FmsFacilityCodeClass" />
+      <End Role="CmFacility" EntitySet="CmFacility" />
+    </AssociationSet>
+    <AssociationSet Name="FK__CmFacilityFile__7720AD13" Association="iBemsModel.FK__CmFacilityFile__7720AD13">
+      <End Role="CmFacility" EntitySet="CmFacility" />
+      <End Role="CmFacilityFile" EntitySet="CmFacilityFile" />
+    </AssociationSet>
+    <AssociationSet Name="FK__CmFacilityManual__79FD19BE" Association="iBemsModel.FK__CmFacilityManual__79FD19BE">
+      <End Role="CmFacility" EntitySet="CmFacility" />
+      <End Role="FmsFacilityManual" EntitySet="FmsFacilityManual" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsFacilityOpera__725BF7F6" Association="iBemsModel.FK__FmsFacilityOpera__725BF7F6">
+      <End Role="CmFacility" EntitySet="CmFacility" />
+      <End Role="FmsFacilityOperationItem" EntitySet="FmsFacilityOperationItem" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsWorkResultCheckItem__CmFacility" Association="iBemsModel.FK__FmsWorkResultCheckItem__CmFacility">
+      <End Role="CmFacility" EntitySet="CmFacility" />
+      <End Role="FmsWorkResultCheckItem" EntitySet="FmsWorkResultCheckItem" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsWorkResultToFacility__CmFacility" Association="iBemsModel.FK__FmsWorkResultToFacility__CmFacility">
+      <End Role="CmFacility" EntitySet="CmFacility" />
+      <End Role="FmsWorkResultToFacility" EntitySet="FmsWorkResultToFacility" />
+    </AssociationSet>
+    <AssociationSet Name="FK_CmFacility_CmUser" Association="iBemsModel.FK_CmFacility_CmUser">
+      <End Role="CmUser" EntitySet="CmUser" />
+      <End Role="CmFacility" EntitySet="CmFacility" />
+    </AssociationSet>
+    <AssociationSet Name="FK_CmFacility_CmUser1" Association="iBemsModel.FK_CmFacility_CmUser1">
+      <End Role="CmUser" EntitySet="CmUser" />
+      <End Role="CmFacility" EntitySet="CmFacility" />
+    </AssociationSet>
+    <AssociationSet Name="FK_CmFacilityTempSet_CmFacility" Association="iBemsModel.FK_CmFacilityTempSet_CmFacility">
+      <End Role="CmFacility" EntitySet="CmFacility" />
+      <End Role="CmFacilityTempSet" EntitySet="CmFacilityTempSet" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsWorkOrderToFacility_CmFacility" Association="iBemsModel.FK_FmsWorkOrderToFacility_CmFacility">
+      <End Role="CmFacility" EntitySet="CmFacility" />
+      <End Role="FmsWorkOrderToFacility" EntitySet="FmsWorkOrderToFacility" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsWorkRequestToFacility_CmFacility" Association="iBemsModel.FK_FmsWorkRequestToFacility_CmFacility">
+      <End Role="CmFacility" EntitySet="CmFacility" />
+      <End Role="FmsWorkRequestToFacility" EntitySet="FmsWorkRequestToFacility" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsWorkScheduleToFacility_CmFacility" Association="iBemsModel.FK_FmsWorkScheduleToFacility_CmFacility">
+      <End Role="CmFacility" EntitySet="CmFacility" />
+      <End Role="FmsWorkScheduleToFacility" EntitySet="FmsWorkScheduleToFacility" />
+    </AssociationSet>
+    <EntitySet Name="BemsMonitoringPointHistory15minRawData" EntityType="iBemsModel.BemsMonitoringPointHistory15minRawData" />
+    <AssociationSet Name="FK__BemsMonitoringPointHistory15minRawData__BemsFacilityType" Association="iBemsModel.FK__BemsMonitoringPointHistory15minRawData__BemsFacilityType">
+      <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
+      <End Role="BemsMonitoringPointHistory15minRawData" EntitySet="BemsMonitoringPointHistory15minRawData" />
+    </AssociationSet>
+    <AssociationSet Name="FK__BemsMonitoringPointHistory15minRawData__BemsMonitoringPoint" Association="iBemsModel.FK__BemsMonitoringPointHistory15minRawData__BemsMonitoringPoint">
+      <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
+      <End Role="BemsMonitoringPointHistory15minRawData" EntitySet="BemsMonitoringPointHistory15minRawData" />
+    </AssociationSet>
+    <EntitySet Name="FmsDailyReport" EntityType="iBemsModel.FmsDailyReport" />
+    <AssociationSet Name="FK_FmsDailyReport_CmBusinessField" Association="iBemsModel.FK_FmsDailyReport_CmBusinessField">
+      <End Role="CmBusinessField" EntitySet="CmBusinessField" />
+      <End Role="FmsDailyReport" EntitySet="FmsDailyReport" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsDailyReport_CmUser" Association="iBemsModel.FK_FmsDailyReport_CmUser">
+      <End Role="CmUser" EntitySet="CmUser" />
+      <End Role="FmsDailyReport" EntitySet="FmsDailyReport" />
+    </AssociationSet>
+    <EntitySet Name="BemsPeakHistoryDaily" EntityType="iBemsModel.BemsPeakHistoryDaily" />
+    <EntitySet Name="FmsEquipment" EntityType="iBemsModel.FmsEquipment" />
+    <AssociationSet Name="FK_FmsEquipment_CmUser" Association="iBemsModel.FK_FmsEquipment_CmUser">
+      <End Role="CmUser" EntitySet="CmUser" />
+      <End Role="FmsEquipment" EntitySet="FmsEquipment" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsEquipment_FmsEquipmentCodeType" Association="iBemsModel.FK_FmsEquipment_FmsEquipmentCodeType">
+      <End Role="FmsEquipmentCodeType" EntitySet="FmsEquipmentCodeType" />
+      <End Role="FmsEquipment" EntitySet="FmsEquipment" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsEquipment_FmsMaterialWarehouse" Association="iBemsModel.FK_FmsEquipment_FmsMaterialWarehouse">
+      <End Role="FmsMaterialWarehouse" EntitySet="FmsMaterialWarehouse" />
+      <End Role="FmsEquipment" EntitySet="FmsEquipment" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsEquipmentHistory_FmsEquipment" Association="iBemsModel.FK_FmsEquipmentHistory_FmsEquipment">
+      <End Role="FmsEquipment" EntitySet="FmsEquipment" />
+      <End Role="FmsEquipmentHistory" EntitySet="FmsEquipmentHistory" />
+    </AssociationSet>
+    <EntitySet Name="CmAlarmAdmin" EntityType="iBemsModel.CmAlarmAdmin" />
+    <EntitySet Name="BemsFloorStatus" EntityType="iBemsModel.BemsFloorStatus" />
+    <EntitySet Name="BemsReportHistory" EntityType="iBemsModel.BemsReportHistory" />
+    <EntitySet Name="CmPartner" EntityType="iBemsModel.CmPartner" />
+    <EntitySet Name="CmPartnerType" EntityType="iBemsModel.CmPartnerType" />
+    <AssociationSet Name="FK_CmPartnerType_CmPartner" Association="iBemsModel.FK_CmPartnerType_CmPartner">
+      <End Role="CmPartnerType" EntitySet="CmPartnerType" />
+      <End Role="CmPartner" EntitySet="CmPartner" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsConstruction_CmPartner" Association="iBemsModel.FK_FmsConstruction_CmPartner">
+      <End Role="CmPartner" EntitySet="CmPartner" />
+      <End Role="FmsConstruction" EntitySet="FmsConstruction" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsWorkRequest_CmPartner" Association="iBemsModel.FK_FmsWorkRequest_CmPartner">
+      <End Role="CmPartner" EntitySet="CmPartner" />
+      <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsWorkSchedule_CmPartner" Association="iBemsModel.FK_FmsWorkSchedule_CmPartner">
+      <End Role="CmPartner" EntitySet="CmPartner" />
+      <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
+    </AssociationSet>
+    <EntitySet Name="FmsContract" EntityType="iBemsModel.FmsContract" />
+    <AssociationSet Name="FK_FmsContract_CmPartner" Association="iBemsModel.FK_FmsContract_CmPartner">
+      <End Role="CmPartner" EntitySet="CmPartner" />
+      <End Role="FmsContract" EntitySet="FmsContract" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsContract_CmPartnerType" Association="iBemsModel.FK_FmsContract_CmPartnerType">
+      <End Role="CmPartnerType" EntitySet="CmPartnerType" />
+      <End Role="FmsContract" EntitySet="FmsContract" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsContract_FmsContractClass" Association="iBemsModel.FK_FmsContract_FmsContractClass">
+      <End Role="FmsContractClass" EntitySet="FmsContractClass" />
+      <End Role="FmsContract" EntitySet="FmsContract" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsContract_FmsContractMethod" Association="iBemsModel.FK_FmsContract_FmsContractMethod">
+      <End Role="FmsContractMethod" EntitySet="FmsContractMethod" />
+      <End Role="FmsContract" EntitySet="FmsContract" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsContract_FmsContractType" Association="iBemsModel.FK_FmsContract_FmsContractType">
+      <End Role="FmsContractType" EntitySet="FmsContractType" />
+      <End Role="FmsContract" EntitySet="FmsContract" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsContract_FmsPaymentType" Association="iBemsModel.FK_FmsContract_FmsPaymentType">
+      <End Role="FmsPaymentType" EntitySet="FmsPaymentType" />
+      <End Role="FmsContract" EntitySet="FmsContract" />
+    </AssociationSet>
+    <EntitySet Name="BemsMonitoringPointForecastingDayAhead" EntityType="iBemsModel.BemsMonitoringPointForecastingDayAhead" />
+    <EntitySet Name="BemsMonitoringPointForecastingHourAhead" EntityType="iBemsModel.BemsMonitoringPointForecastingHourAhead" />
+    <EntitySet Name="BemsFloorPlan" EntityType="iBemsModel.BemsFloorPlan" />
+    <EntitySet Name="BemsMonitoringPointWeatherForecasted" EntityType="iBemsModel.BemsMonitoringPointWeatherForecasted" />
+    <EntitySet Name="BemsIceThermalStorageSimulation" EntityType="iBemsModel.BemsIceThermalStorageSimulation" />
+    <EntitySet Name="BemsConfigData" EntityType="iBemsModel.BemsConfigData" />
+  </EntityContainer>
+  <EntityType Name="FmsDailyCheckReport">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="DailyCheckReportId" />
+    </Key>
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="DailyCheckReportId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+    <Property Name="Name" Type="String" Nullable="false" MaxLength="128" FixedLength="false" Unicode="true" />
+    <Property Name="Contents" Type="String" Nullable="false" MaxLength="1024" FixedLength="false" Unicode="true" />
+    <Property Name="RegisterUserId" Type="String" Nullable="false" MaxLength="24" FixedLength="false" Unicode="true" />
+    <Property Name="AddDate" Type="DateTime" Nullable="false" Precision="3" />
+    <NavigationProperty Name="CmUser" Relationship="iBemsModel.FK_FmsDailyCheckReport_CmUser" FromRole="FmsDailyCheckReport" ToRole="CmUser" />
+  </EntityType>
+  <EntityType Name="FmsFacilityOperationReport">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="FacilityOperationReportId" />
+    </Key>
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="FacilityOperationReportId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+    <Property Name="Name" Type="String" Nullable="false" MaxLength="128" FixedLength="false" Unicode="true" />
+    <Property Name="Contents" Type="String" Nullable="false" MaxLength="1024" FixedLength="false" Unicode="true" />
+    <Property Name="RegisterUserId" Type="String" Nullable="false" MaxLength="24" FixedLength="false" Unicode="true" />
+    <Property Name="AddDate" Type="DateTime" Nullable="false" Precision="3" />
+    <NavigationProperty Name="CmUser" Relationship="iBemsModel.FK_FmsFacilityOperationReport_CmUser" FromRole="FmsFacilityOperationReport" ToRole="CmUser" />
+  </EntityType>
+  <Association Name="FK_FmsDailyCheckReport_CmUser">
+    <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="1" />
+    <End Type="iBemsModel.FmsDailyCheckReport" Role="FmsDailyCheckReport" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmUser">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="UserId" />
+      </Principal>
+      <Dependent Role="FmsDailyCheckReport">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="RegisterUserId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsFacilityOperationReport_CmUser">
+    <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="1" />
+    <End Type="iBemsModel.FmsFacilityOperationReport" Role="FmsFacilityOperationReport" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmUser">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="UserId" />
+      </Principal>
+      <Dependent Role="FmsFacilityOperationReport">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="RegisterUserId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <EntityType Name="FmsBudgetDetail">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="Year" />
+      <PropertyRef Name="BudgetClassId" />
+      <PropertyRef Name="ParentBudgetClassId" />
+    </Key>
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="Year" Type="Int32" Nullable="false" />
+    <Property Name="BudgetClassId" Type="Int32" Nullable="false" />
+    <Property Name="BudgetSeq" Type="String" Nullable="false" MaxLength="6" FixedLength="false" Unicode="true" />
+    <Property Name="ParentBudgetClassId" Type="Int32" Nullable="false" />
+    <Property Name="Depth" Type="Int32" Nullable="false" />
+    <Property Name="Name" Type="String" Nullable="false" MaxLength="32" FixedLength="false" Unicode="true" />
+    <Property Name="Abbreviation" Type="String" MaxLength="16" FixedLength="false" Unicode="true" />
+    <Property Name="IsUse" Type="Boolean" />
+    <Property Name="YearlyBudget" Type="Double" Nullable="false" />
+    <Property Name="MonthlyBudget" Type="Double" Nullable="false" />
+    <NavigationProperty Name="FmsBudget" Relationship="iBemsModel.FK_FmsBudgetDetail_FmsBudget" FromRole="FmsBudgetDetail" ToRole="FmsBudget" />
+    <NavigationProperty Name="FmsBudgetCodeClass" Relationship="iBemsModel.FK_FmsBudgetDetail_FmsBudgetCodeClass" FromRole="FmsBudgetDetail" ToRole="FmsBudgetCodeClass" />
+    <NavigationProperty Name="FmsBudgetDetailExecution" Relationship="iBemsModel.FK_FmsBudgetDetailExecution_FmsBudgetDetail" FromRole="FmsBudgetDetail" ToRole="FmsBudgetDetailExecution" />
+    <Property Name="RootBudgetClassId" Type="Int32" />
+  </EntityType>
+  <EntityType Name="FmsBudgetDetailExecution">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="Year" />
+      <PropertyRef Name="BudgetClassId" />
+      <PropertyRef Name="ParentBudgetClassId" />
+      <PropertyRef Name="Month" />
+    </Key>
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="Year" Type="Int32" Nullable="false" />
+    <Property Name="BudgetClassId" Type="Int32" Nullable="false" />
+    <Property Name="ParentBudgetClassId" Type="Int32" Nullable="false" />
+    <Property Name="MonthlyExecution" Type="Double" Nullable="false" />
+    <Property Name="Month" Type="Int32" Nullable="false" />
+    <NavigationProperty Name="FmsBudgetDetail" Relationship="iBemsModel.FK_FmsBudgetDetailExecution_FmsBudgetDetail" FromRole="FmsBudgetDetailExecution" ToRole="FmsBudgetDetail" />
+    <Property Name="YearlyBudget" Type="Double" Nullable="false" />
+    <Property Name="MonthlyBudget" Type="Double" Nullable="false" />
+    <Property Name="YearlyExecution" Type="Double" Nullable="false" />
+    <Property Name="RootBudgetClassId" Type="Int32" />
+  </EntityType>
+  <Association Name="FK_FmsBudgetDetail_FmsBudget">
+    <End Type="iBemsModel.FmsBudget" Role="FmsBudget" Multiplicity="1">
+      <OnDelete Action="Cascade" />
+    </End>
+    <End Type="iBemsModel.FmsBudgetDetail" Role="FmsBudgetDetail" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="FmsBudget">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="Year" />
+      </Principal>
+      <Dependent Role="FmsBudgetDetail">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="Year" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsBudgetDetail_FmsBudgetCodeClass">
+    <End Type="iBemsModel.FmsBudgetCodeClass" Role="FmsBudgetCodeClass" Multiplicity="1" />
+    <End Type="iBemsModel.FmsBudgetDetail" Role="FmsBudgetDetail" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="FmsBudgetCodeClass">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="BudgetClassId" />
+      </Principal>
+      <Dependent Role="FmsBudgetDetail">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="BudgetClassId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsBudgetDetailExecution_FmsBudgetDetail">
+    <End Type="iBemsModel.FmsBudgetDetail" Role="FmsBudgetDetail" Multiplicity="1" />
+    <End Type="iBemsModel.FmsBudgetDetailExecution" Role="FmsBudgetDetailExecution" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="FmsBudgetDetail">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="Year" />
+        <PropertyRef Name="BudgetClassId" />
+        <PropertyRef Name="ParentBudgetClassId" />
+      </Principal>
+      <Dependent Role="FmsBudgetDetailExecution">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="Year" />
+        <PropertyRef Name="BudgetClassId" />
+        <PropertyRef Name="ParentBudgetClassId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <EntityType Name="FmsMonthlyReport">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="MonthlyReportId" />
+    </Key>
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="MonthlyReportId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+    <Property Name="Name" Type="String" Nullable="false" MaxLength="128" FixedLength="false" Unicode="true" />
+    <Property Name="Contents" Type="String" Nullable="false" MaxLength="1024" FixedLength="false" Unicode="true" />
+    <Property Name="RegisterUserId" Type="String" Nullable="false" MaxLength="24" FixedLength="false" Unicode="true" />
+    <Property Name="AddDate" Type="DateTime" Nullable="false" Precision="3" />
+    <NavigationProperty Name="CmUser" Relationship="iBemsModel.FK_FmsMonthlyReport_CmUser" FromRole="FmsMonthlyReport" ToRole="CmUser" />
+  </EntityType>
+  <Association Name="FK_FmsMonthlyReport_CmUser">
+    <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="1" />
+    <End Type="iBemsModel.FmsMonthlyReport" Role="FmsMonthlyReport" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmUser">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="UserId" />
+      </Principal>
+      <Dependent Role="FmsMonthlyReport">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="RegisterUserId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <EntityType Name="FmsInvestmentCost">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="InsvestmentCostId" />
+    </Key>
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="InsvestmentCostId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+    <Property Name="Name" Type="String" Nullable="false" MaxLength="32" FixedLength="false" Unicode="true" />
+    <Property Name="Comment" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
+    <Property Name="InsvestmentCost" Type="Double" Nullable="false" />
+  </EntityType>
+  <EntityType Name="CmHolidayWeekend">
+    <Key>
+      <PropertyRef Name="SiteId" />
+    </Key>
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="Saturday" Type="Boolean" Nullable="false" />
+    <Property Name="Sunday" Type="Boolean" Nullable="false" />
+    <Property Name="IsUse" Type="Boolean" />
+    <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__CmHoliday__SiteI__0D99FE17" FromRole="CmHolidayWeekend" ToRole="CmSite" />
+  </EntityType>
+  <Association Name="FK_FmsAccident_CmCompany">
+    <End Type="iBemsModel.CmCompany" Role="CmCompany" Multiplicity="0..1" />
+    <End Type="iBemsModel.FmsAccident" Role="FmsAccident" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmCompany">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="CompanyId" />
+      </Principal>
+      <Dependent Role="FmsAccident">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="CompanyId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <EntityType Name="FmsMaterial">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="MaterialId" />
+    </Key>
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
+    <Property Name="MaterialId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+    <Property Name="MaterialCode" Type="String" Nullable="false" MaxLength="48" FixedLength="false" Unicode="true" />
+    <Property Name="Name" Type="String" Nullable="false" MaxLength="48" FixedLength="false" Unicode="true" />
+    <Property Name="FirstClassId" Type="Int32" />
+    <Property Name="SecondClassId" Type="Int32" />
+    <Property Name="ThirdClassId" Type="Int32" />
+    <Property Name="LocationId" Type="Int32" />
+    <Property Name="MaterialTypeId" Type="Int32" />
+    <Property Name="WarehouseId" Type="Int32" />
+    <Property Name="TradeCompanyId" Type="Int32" />
+    <Property Name="Rfid" Type="String" MaxLength="52" FixedLength="false" Unicode="true" />
+    <Property Name="Unit" Type="String" MaxLength="12" FixedLength="false" Unicode="true" />
+    <Property Name="DurableYears" Type="Int16" />
+    <Property Name="ReasonableStockCount" Type="Int16" />
+    <Property Name="Manufacturer" Type="String" MaxLength="40" FixedLength="false" Unicode="true" />
+    <Property Name="Standard" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
+    <Property Name="FinalPrice" Type="Int32" />
+    <Property Name="ImageFileId" Type="Int32" />
+    <Property Name="Note" Type="String" MaxLength="512" FixedLength="false" Unicode="true" />
+    <Property Name="IsDiscontinued" Type="Boolean" />
+    <Property Name="IsUse" Type="Boolean" Nullable="false" />
+    <Property Name="FinalStockCount" Type="Int32" Nullable="false" />
+    <Property Name="FinalTotalStockAmount" Type="Int32" Nullable="false" />
+    <NavigationProperty Name="CmBusinessField" Relationship="iBemsModel.FK_FmsMaterial_CmBusinessField" FromRole="FmsMaterial" ToRole="CmBusinessField" />
+    <NavigationProperty Name="CmFile" Relationship="iBemsModel.FK_FmsMaterial_CmFile" FromRole="FmsMaterial" ToRole="CmFile" />
+    <NavigationProperty Name="FmsMaterialCodeClass" Relationship="iBemsModel.FK__FmsMaterial__FmsMaterialCodeClass_AsFirstClassId" FromRole="FmsMaterial" ToRole="FmsMaterialCodeClass" />
+    <NavigationProperty Name="FmsMaterialCodeClass1" Relationship="iBemsModel.FK__FmsMaterial__FmsMaterialCodeClass_AsSecondClassId" FromRole="FmsMaterial" ToRole="FmsMaterialCodeClass" />
+    <NavigationProperty Name="FmsMaterialCodeClass2" Relationship="iBemsModel.FK__FmsMaterial__FmsMaterialCodeClass_AsThirdClassId" FromRole="FmsMaterial" ToRole="FmsMaterialCodeClass" />
+    <NavigationProperty Name="FmsMaterialCodeLocation" Relationship="iBemsModel.FK_FmsMaterial_FmsMaterialCodeLocation" FromRole="FmsMaterial" ToRole="FmsMaterialCodeLocation" />
+    <NavigationProperty Name="FmsMaterialCodeType" Relationship="iBemsModel.FK_FmsMaterial_FmsMaterialCodeType" FromRole="FmsMaterial" ToRole="FmsMaterialCodeType" />
+    <NavigationProperty Name="FmsMaterialTradeCompany" Relationship="iBemsModel.FK_FmsMaterial_FmsMaterialTradeCompany" FromRole="FmsMaterial" ToRole="FmsMaterialTradeCompany" />
+    <NavigationProperty Name="FmsMaterialWarehouse" Relationship="iBemsModel.FK_FmsMaterial_FmsMaterialWarehouse" FromRole="FmsMaterial" ToRole="FmsMaterialWarehouse" />
+    <NavigationProperty Name="FmsMaterialPurchaseOrderMaterial" Relationship="iBemsModel.FK_FmsMaterialPurchaseOrderMaterial_FmsMaterial" FromRole="FmsMaterial" ToRole="FmsMaterialPurchaseOrderMaterial" />
+    <NavigationProperty Name="FmsMaterialPurchaseRequestMaterial" Relationship="iBemsModel.FK_FmsMaterialPurchaseRequestMaterial_FmsMaterial" FromRole="FmsMaterial" ToRole="FmsMaterialPurchaseRequestMaterial" />
+    <NavigationProperty Name="FmsMaterialRelease" Relationship="iBemsModel.FK_FmsMaterialRelease_FmsMaterial" FromRole="FmsMaterial" ToRole="FmsMaterialRelease" />
+    <NavigationProperty Name="FmsMaterialStored" Relationship="iBemsModel.FK_FmsMaterialStored_FmsMaterial" FromRole="FmsMaterial" ToRole="FmsMaterialStored" />
+    <NavigationProperty Name="FmsWorkResultCheckItemMaterial" Relationship="iBemsModel.FK_FmsWorkResultCheckItemMaterial_FmsMaterial" FromRole="FmsMaterial" ToRole="FmsWorkResultCheckItemMaterial" />
+    <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_FmsMaterial_CmSite" FromRole="FmsMaterial" ToRole="CmSite" />
+  </EntityType>
+  <EntityType Name="FmsMaterialRelease">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="MaterialReleaseId" />
+    </Key>
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
+    <Property Name="ReleaseDate" Type="DateTime" Nullable="false" Precision="3" />
+    <Property Name="MaterialReleaseId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+    <Property Name="ReleaseTypeId" Type="Int16" Nullable="false" />
+    <Property Name="WorkRequestId" Type="Int32" />
+    <Property Name="WarehouseId" Type="Int32" />
+    <Property Name="MaterialId" Type="Int32" />
+    <Property Name="MaterialCount" Type="Int32" />
+    <Property Name="ReleaseTotalCost" Type="Int32" />
+    <Property Name="AdjustmentTypeId" Type="Int16" Nullable="false" />
+    <Property Name="AdjustmentUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
+    <Property Name="ConfirmedUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
+    <Property Name="ConfirmedDate" Type="DateTime" Precision="3" />
+    <Property Name="IsConfirmed" Type="Boolean" Nullable="false" />
+    <Property Name="Comment" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
+    <NavigationProperty Name="CmBusinessField" Relationship="iBemsModel.FK_FmsMaterialRelease_CmBusinessField" FromRole="FmsMaterialRelease" ToRole="CmBusinessField" />
+    <NavigationProperty Name="CmUser" Relationship="iBemsModel.FK_FmsMaterialRelease_CmUser" FromRole="FmsMaterialRelease" ToRole="CmUser" />
+    <NavigationProperty Name="CmUser1" Relationship="iBemsModel.FK_FmsMaterialRelease_CmUser1" FromRole="FmsMaterialRelease" ToRole="CmUser" />
+    <NavigationProperty Name="FmsMaterial" Relationship="iBemsModel.FK_FmsMaterialRelease_FmsMaterial" FromRole="FmsMaterialRelease" ToRole="FmsMaterial" />
+    <NavigationProperty Name="FmsMaterialCodeAdjustmentType" Relationship="iBemsModel.FK_FmsMaterialRelease_FmsMaterialCodeAdjustmentType" FromRole="FmsMaterialRelease" ToRole="FmsMaterialCodeAdjustmentType" />
+    <NavigationProperty Name="FmsMaterialCodeReleaseType" Relationship="iBemsModel.FK_FmsMaterialRelease_FmsMaterialCodeReleaseType" FromRole="FmsMaterialRelease" ToRole="FmsMaterialCodeReleaseType" />
+    <NavigationProperty Name="FmsWorkResult" Relationship="iBemsModel.FK_FmsMaterialRelease_FmsWorkResult" FromRole="FmsMaterialRelease" ToRole="FmsWorkResult" />
+    <Property Name="StockCountByPoint" Type="Int32" />
+    <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_FmsMaterialRelease_CmSite" FromRole="FmsMaterialRelease" ToRole="CmSite" />
+  </EntityType>
+  <Association Name="FK_FmsMaterial_CmBusinessField">
+    <End Type="iBemsModel.CmBusinessField" Role="CmBusinessField" Multiplicity="1" />
+    <End Type="iBemsModel.FmsMaterial" Role="FmsMaterial" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmBusinessField">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="BusinessFieldId" />
+      </Principal>
+      <Dependent Role="FmsMaterial">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="BusinessFieldId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsMaterialRelease_CmBusinessField">
+    <End Type="iBemsModel.CmBusinessField" Role="CmBusinessField" Multiplicity="1" />
+    <End Type="iBemsModel.FmsMaterialRelease" Role="FmsMaterialRelease" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmBusinessField">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="BusinessFieldId" />
+      </Principal>
+      <Dependent Role="FmsMaterialRelease">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="BusinessFieldId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsMaterial_CmFile">
+    <End Type="iBemsModel.CmFile" Role="CmFile" Multiplicity="0..1" />
+    <End Type="iBemsModel.FmsMaterial" Role="FmsMaterial" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmFile">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FileId" />
+      </Principal>
+      <Dependent Role="FmsMaterial">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="ImageFileId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsMaterialRelease_CmUser">
+    <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="0..1" />
+    <End Type="iBemsModel.FmsMaterialRelease" Role="FmsMaterialRelease" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmUser">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="UserId" />
+      </Principal>
+      <Dependent Role="FmsMaterialRelease">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="ConfirmedUserId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsMaterialRelease_CmUser1">
+    <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="0..1" />
+    <End Type="iBemsModel.FmsMaterialRelease" Role="FmsMaterialRelease" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmUser">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="UserId" />
+      </Principal>
+      <Dependent Role="FmsMaterialRelease">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="AdjustmentUserId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsMaterial__FmsMaterialCodeClass_AsFirstClassId">
+    <End Type="iBemsModel.FmsMaterialCodeClass" Role="FmsMaterialCodeClass" Multiplicity="0..1" />
+    <End Type="iBemsModel.FmsMaterial" Role="FmsMaterial" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="FmsMaterialCodeClass">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="MaterialClassId" />
+      </Principal>
+      <Dependent Role="FmsMaterial">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FirstClassId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsMaterial__FmsMaterialCodeClass_AsSecondClassId">
+    <End Type="iBemsModel.FmsMaterialCodeClass" Role="FmsMaterialCodeClass" Multiplicity="0..1" />
+    <End Type="iBemsModel.FmsMaterial" Role="FmsMaterial" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="FmsMaterialCodeClass">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="MaterialClassId" />
+      </Principal>
+      <Dependent Role="FmsMaterial">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="SecondClassId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsMaterial__FmsMaterialCodeClass_AsThirdClassId">
+    <End Type="iBemsModel.FmsMaterialCodeClass" Role="FmsMaterialCodeClass" Multiplicity="0..1" />
+    <End Type="iBemsModel.FmsMaterial" Role="FmsMaterial" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="FmsMaterialCodeClass">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="MaterialClassId" />
+      </Principal>
+      <Dependent Role="FmsMaterial">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="ThirdClassId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsMaterial_FmsMaterialCodeLocation">
+    <End Type="iBemsModel.FmsMaterialCodeLocation" Role="FmsMaterialCodeLocation" Multiplicity="0..1" />
+    <End Type="iBemsModel.FmsMaterial" Role="FmsMaterial" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="FmsMaterialCodeLocation">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="LocationId" />
+      </Principal>
+      <Dependent Role="FmsMaterial">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="LocationId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsMaterial_FmsMaterialCodeType">
+    <End Type="iBemsModel.FmsMaterialCodeType" Role="FmsMaterialCodeType" Multiplicity="0..1" />
+    <End Type="iBemsModel.FmsMaterial" Role="FmsMaterial" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="FmsMaterialCodeType">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="MaterialTypeId" />
+      </Principal>
+      <Dependent Role="FmsMaterial">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="MaterialTypeId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsMaterial_FmsMaterialTradeCompany">
+    <End Type="iBemsModel.FmsMaterialTradeCompany" Role="FmsMaterialTradeCompany" Multiplicity="0..1" />
+    <End Type="iBemsModel.FmsMaterial" Role="FmsMaterial" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="FmsMaterialTradeCompany">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="TradeCompanyId" />
+      </Principal>
+      <Dependent Role="FmsMaterial">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="TradeCompanyId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsMaterial_FmsMaterialWarehouse">
+    <End Type="iBemsModel.FmsMaterialWarehouse" Role="FmsMaterialWarehouse" Multiplicity="0..1" />
+    <End Type="iBemsModel.FmsMaterial" Role="FmsMaterial" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="FmsMaterialWarehouse">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="WarehouseId" />
+      </Principal>
+      <Dependent Role="FmsMaterial">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="WarehouseId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsMaterialPurchaseOrderMaterial_FmsMaterial">
+    <End Type="iBemsModel.FmsMaterial" Role="FmsMaterial" Multiplicity="1" />
+    <End Type="iBemsModel.FmsMaterialPurchaseOrderMaterial" Role="FmsMaterialPurchaseOrderMaterial" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="FmsMaterial">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="MaterialId" />
+      </Principal>
+      <Dependent Role="FmsMaterialPurchaseOrderMaterial">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="MaterialId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsMaterialPurchaseRequestMaterial_FmsMaterial">
+    <End Type="iBemsModel.FmsMaterial" Role="FmsMaterial" Multiplicity="1" />
+    <End Type="iBemsModel.FmsMaterialPurchaseRequestMaterial" Role="FmsMaterialPurchaseRequestMaterial" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="FmsMaterial">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="MaterialId" />
+      </Principal>
+      <Dependent Role="FmsMaterialPurchaseRequestMaterial">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="MaterialId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsMaterialRelease_FmsMaterial">
+    <End Type="iBemsModel.FmsMaterial" Role="FmsMaterial" Multiplicity="1" />
+    <End Type="iBemsModel.FmsMaterialRelease" Role="FmsMaterialRelease" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="FmsMaterial">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="MaterialId" />
+      </Principal>
+      <Dependent Role="FmsMaterialRelease">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="MaterialId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsMaterialStored_FmsMaterial">
+    <End Type="iBemsModel.FmsMaterial" Role="FmsMaterial" Multiplicity="1" />
+    <End Type="iBemsModel.FmsMaterialStored" Role="FmsMaterialStored" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="FmsMaterial">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="MaterialId" />
+      </Principal>
+      <Dependent Role="FmsMaterialStored">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="MaterialId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsWorkResultCheckItemMaterial_FmsMaterial">
+    <End Type="iBemsModel.FmsMaterial" Role="FmsMaterial" Multiplicity="1" />
+    <End Type="iBemsModel.FmsWorkResultCheckItemMaterial" Role="FmsWorkResultCheckItemMaterial" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="FmsMaterial">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="MaterialId" />
+      </Principal>
+      <Dependent Role="FmsWorkResultCheckItemMaterial">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="MaterialId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsMaterialRelease_FmsMaterialCodeAdjustmentType">
+    <End Type="iBemsModel.FmsMaterialCodeAdjustmentType" Role="FmsMaterialCodeAdjustmentType" Multiplicity="1" />
+    <End Type="iBemsModel.FmsMaterialRelease" Role="FmsMaterialRelease" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="FmsMaterialCodeAdjustmentType">
+        <PropertyRef Name="AdjustmentTypeId" />
+      </Principal>
+      <Dependent Role="FmsMaterialRelease">
+        <PropertyRef Name="AdjustmentTypeId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsMaterialRelease_FmsMaterialCodeReleaseType">
+    <End Type="iBemsModel.FmsMaterialCodeReleaseType" Role="FmsMaterialCodeReleaseType" Multiplicity="1" />
+    <End Type="iBemsModel.FmsMaterialRelease" Role="FmsMaterialRelease" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="FmsMaterialCodeReleaseType">
+        <PropertyRef Name="ReleaseTypeId" />
+      </Principal>
+      <Dependent Role="FmsMaterialRelease">
+        <PropertyRef Name="ReleaseTypeId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsMaterialRelease_FmsWorkResult">
+    <End Type="iBemsModel.FmsWorkResult" Role="FmsWorkResult" Multiplicity="0..1" />
+    <End Type="iBemsModel.FmsMaterialRelease" Role="FmsMaterialRelease" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="FmsWorkResult">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="WorkRequestId" />
+      </Principal>
+      <Dependent Role="FmsMaterialRelease">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="WorkRequestId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsWorkResultCheckItemMaterial_FmsWorkResult">
+    <End Type="iBemsModel.FmsWorkResult" Role="FmsWorkResult" Multiplicity="1" />
+    <End Type="iBemsModel.FmsWorkResultCheckItemMaterial" Role="FmsWorkResultCheckItemMaterial" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="FmsWorkResult">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="WorkRequestId" />
+      </Principal>
+      <Dependent Role="FmsWorkResultCheckItemMaterial">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="WorkRequestId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <EntityType Name="CmPatrolType">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="PatrolTypeId" />
+    </Key>
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="PatrolTypeId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+    <Property Name="Name" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
+    <Property Name="IsUse" Type="Boolean" />
+    <NavigationProperty Name="CmPatrolHistoryPos" Relationship="iBemsModel.FK_CmPatrolHistoryPos_CmPatrolType" FromRole="CmPatrolType" ToRole="CmPatrolHistoryPos" />
+    <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_CmPatrolType_CmSite" FromRole="CmPatrolType" ToRole="CmSite" />
+    <NavigationProperty Name="CmPatrolHistory" Relationship="iBemsModel.FK_CmPatrolHistory_CmPatrolType" FromRole="CmPatrolType" ToRole="CmPatrolHistory" />
+  </EntityType>
+  <EntityType Name="CmPatrolGroup">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="PatrolGroupId" />
+    </Key>
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="PatrolGroupId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+    <Property Name="Name" Type="String" Nullable="false" MaxLength="48" FixedLength="false" Unicode="true" />
+    <NavigationProperty Name="CmPatrolGroupUser" Relationship="iBemsModel.FK_CmPatrolGroupUser_CmPatrolGroup" FromRole="CmPatrolGroup" ToRole="CmPatrolGroupUser" />
+    <NavigationProperty Name="CmPatrolPlan" Relationship="iBemsModel.FK_CmPatrolPlan_CmPatrolGroup" FromRole="CmPatrolGroup" ToRole="CmPatrolPlan" />
+    <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_CmPatrolGroup_CmSite" FromRole="CmPatrolGroup" ToRole="CmSite" />
+  </EntityType>
+  <EntityType Name="CmPatrolGroupUser">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="PatrolGroupId" />
+      <PropertyRef Name="UserId" />
+    </Key>
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="PatrolGroupId" Type="Int32" Nullable="false" />
+    <Property Name="UserId" Type="String" Nullable="false" MaxLength="24" FixedLength="false" Unicode="true" />
+    <NavigationProperty Name="CmPatrolGroup" Relationship="iBemsModel.FK_CmPatrolGroupUser_CmPatrolGroup" FromRole="CmPatrolGroupUser" ToRole="CmPatrolGroup" />
+    <NavigationProperty Name="CmUser" Relationship="iBemsModel.FK_CmPatrolGroupUser_CmUser" FromRole="CmPatrolGroupUser" ToRole="CmUser" />
+  </EntityType>
+  <Association Name="FK_CmPatrolGroupUser_CmPatrolGroup">
+    <End Type="iBemsModel.CmPatrolGroup" Role="CmPatrolGroup" Multiplicity="1" />
+    <End Type="iBemsModel.CmPatrolGroupUser" Role="CmPatrolGroupUser" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmPatrolGroup">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="PatrolGroupId" />
+      </Principal>
+      <Dependent Role="CmPatrolGroupUser">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="PatrolGroupId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_CmPatrolGroupUser_CmUser">
+    <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="1" />
+    <End Type="iBemsModel.CmPatrolGroupUser" Role="CmPatrolGroupUser" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmUser">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="UserId" />
+      </Principal>
+      <Dependent Role="CmPatrolGroupUser">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="UserId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <EntityType Name="CmPatrolPos">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="PosId" />
+    </Key>
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="BuildingId" Type="Int32" Nullable="false" />
+    <Property Name="FloorId" Type="Int32" Nullable="false" />
+    <Property Name="PosId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+    <Property Name="Name" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
+    <Property Name="TagId" Type="String" MaxLength="32" FixedLength="false" Unicode="true" />
+    <Property Name="PosDesc" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
+    <NavigationProperty Name="CmBuilding" Relationship="iBemsModel.FK_CmPatrolPos_CmBuilding" FromRole="CmPatrolPos" ToRole="CmBuilding" />
+    <NavigationProperty Name="CmFloor" Relationship="iBemsModel.FK_CmPatrolPos_CmFloor" FromRole="CmPatrolPos" ToRole="CmFloor" />
+    <NavigationProperty Name="CmPatrolCoursePos" Relationship="iBemsModel.FK_CmPatrolCoursePos_CmPatrolPos" FromRole="CmPatrolPos" ToRole="CmPatrolCoursePos" />
+    <NavigationProperty Name="CmPatrolHistoryPos" Relationship="iBemsModel.FK_CmPatrolHistoryPos_CmPatrolPos" FromRole="CmPatrolPos" ToRole="CmPatrolHistoryPos" />
+    <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_CmPatrolPos_CmSite" FromRole="CmPatrolPos" ToRole="CmSite" />
+  </EntityType>
+  <Association Name="FK_CmPatrolPos_CmBuilding">
+    <End Type="iBemsModel.CmBuilding" Role="CmBuilding" Multiplicity="1" />
+    <End Type="iBemsModel.CmPatrolPos" Role="CmPatrolPos" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmBuilding">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="BuildingId" />
+      </Principal>
+      <Dependent Role="CmPatrolPos">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="BuildingId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_CmPatrolPos_CmFloor">
+    <End Type="iBemsModel.CmFloor" Role="CmFloor" Multiplicity="1" />
+    <End Type="iBemsModel.CmPatrolPos" Role="CmPatrolPos" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmFloor">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="BuildingId" />
+        <PropertyRef Name="FloorId" />
+      </Principal>
+      <Dependent Role="CmPatrolPos">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="BuildingId" />
+        <PropertyRef Name="FloorId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <EntityType Name="CmPatrolCourse">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="PatrolCourseId" />
+    </Key>
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="PatrolCourseId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+    <Property Name="Name" Type="String" Nullable="false" MaxLength="48" FixedLength="false" Unicode="true" />
+    <NavigationProperty Name="CmPatrolCoursePos" Relationship="iBemsModel.FK_CmPatrolCoursePos_CmPatrolCourse" FromRole="CmPatrolCourse" ToRole="CmPatrolCoursePos" />
+    <NavigationProperty Name="CmPatrolPlan" Relationship="iBemsModel.FK_CmPatrolPlan_CmPatrolCourse" FromRole="CmPatrolCourse" ToRole="CmPatrolPlan" />
+    <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_CmPatrolCourse_CmSite" FromRole="CmPatrolCourse" ToRole="CmSite" />
+  </EntityType>
+  <EntityType Name="CmPatrolCoursePos">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="PatrolCourseId" />
+      <PropertyRef Name="PosId" />
+      <PropertyRef Name="BuildingId" />
+      <PropertyRef Name="FloorId" />
+    </Key>
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="PatrolCourseId" Type="Int32" Nullable="false" />
+    <Property Name="PosId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="None" />
+    <Property Name="CourseOrder" Type="Int32" Nullable="false" />
+    <NavigationProperty Name="CmPatrolCourse" Relationship="iBemsModel.FK_CmPatrolCoursePos_CmPatrolCourse" FromRole="CmPatrolCoursePos" ToRole="CmPatrolCourse" />
+    <Property Name="BuildingId" Type="Int32" Nullable="false" />
+    <Property Name="FloorId" Type="Int32" Nullable="false" />
+    <NavigationProperty Name="CmPatrolPos" Relationship="iBemsModel.FK_CmPatrolCoursePos_CmPatrolPos" FromRole="CmPatrolCoursePos" ToRole="CmPatrolPos" />
+    <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_CmPatrolCoursePos_CmSite" FromRole="CmPatrolCoursePos" ToRole="CmSite" />
+  </EntityType>
+  <Association Name="FK_CmPatrolCoursePos_CmPatrolCourse">
+    <End Type="iBemsModel.CmPatrolCourse" Role="CmPatrolCourse" Multiplicity="1" />
+    <End Type="iBemsModel.CmPatrolCoursePos" Role="CmPatrolCoursePos" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmPatrolCourse">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="PatrolCourseId" />
+      </Principal>
+      <Dependent Role="CmPatrolCoursePos">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="PatrolCourseId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_CmPatrolCoursePos_CmPatrolPos">
+    <End Type="iBemsModel.CmPatrolPos" Role="CmPatrolPos" Multiplicity="1" />
+    <End Type="iBemsModel.CmPatrolCoursePos" Role="CmPatrolCoursePos" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmPatrolPos">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="PosId" />
+      </Principal>
+      <Dependent Role="CmPatrolCoursePos">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="PosId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <EntityType Name="CmPatrolPlan">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="PatrolPlanId" />
+    </Key>
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="PatrolPlanId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+    <Property Name="GroupId" Type="Int32" Nullable="false" />
+    <Property Name="CourseId" Type="Int32" Nullable="false" />
+    <Property Name="Name" Type="String" Nullable="false" MaxLength="48" FixedLength="false" Unicode="false" />
+    <Property Name="PlanDesc" Type="String" MaxLength="1024" FixedLength="false" Unicode="false" />
+    <Property Name="term" Type="Int32" Nullable="false" />
+    <NavigationProperty Name="CmPatrolCourse" Relationship="iBemsModel.FK_CmPatrolPlan_CmPatrolCourse" FromRole="CmPatrolPlan" ToRole="CmPatrolCourse" />
+    <NavigationProperty Name="CmPatrolGroup" Relationship="iBemsModel.FK_CmPatrolPlan_CmPatrolGroup" FromRole="CmPatrolPlan" ToRole="CmPatrolGroup" />
+    <Property Name="inDate" Type="DateTime" Precision="3" />
+    <NavigationProperty Name="CmPatrolSchedule" Relationship="iBemsModel.FK_CmPatrolSchedule_CmPatrolPlan" FromRole="CmPatrolPlan" ToRole="CmPatrolSchedule" />
+    <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_CmPatrolPlan_CmSite" FromRole="CmPatrolPlan" ToRole="CmSite" />
+  </EntityType>
+  <Association Name="FK_CmPatrolPlan_CmPatrolCourse">
+    <End Type="iBemsModel.CmPatrolCourse" Role="CmPatrolCourse" Multiplicity="1" />
+    <End Type="iBemsModel.CmPatrolPlan" Role="CmPatrolPlan" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmPatrolCourse">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="PatrolCourseId" />
+      </Principal>
+      <Dependent Role="CmPatrolPlan">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="CourseId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_CmPatrolPlan_CmPatrolGroup">
+    <End Type="iBemsModel.CmPatrolGroup" Role="CmPatrolGroup" Multiplicity="1" />
+    <End Type="iBemsModel.CmPatrolPlan" Role="CmPatrolPlan" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmPatrolGroup">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="PatrolGroupId" />
+      </Principal>
+      <Dependent Role="CmPatrolPlan">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="GroupId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <EntityType Name="CmPatrolHistoryPos">
+    <Key>
+      <PropertyRef Name="mId" />
+    </Key>
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="PatrolHistoryId" Type="Int32" Nullable="false" />
+    <Property Name="PosId" Type="Int32" Nullable="false" />
+    <Property Name="PatrolTime" Type="DateTime" Nullable="false" Precision="3" />
+    <Property Name="term" Type="Int32" />
+    <Property Name="resultType" Type="Int32" Nullable="false" />
+    <Property Name="mId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+    <NavigationProperty Name="CmPatrolPos" Relationship="iBemsModel.FK_CmPatrolHistoryPos_CmPatrolPos" FromRole="CmPatrolHistoryPos" ToRole="CmPatrolPos" />
+    <NavigationProperty Name="CmPatrolType" Relationship="iBemsModel.FK_CmPatrolHistoryPos_CmPatrolType" FromRole="CmPatrolHistoryPos" ToRole="CmPatrolType" />
+    <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_CmPatrolHistoryPos_CmSite" FromRole="CmPatrolHistoryPos" ToRole="CmSite" />
+  </EntityType>
+  <Association Name="FK_CmPatrolHistoryPos_CmPatrolPos">
+    <End Type="iBemsModel.CmPatrolPos" Role="CmPatrolPos" Multiplicity="1" />
+    <End Type="iBemsModel.CmPatrolHistoryPos" Role="CmPatrolHistoryPos" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmPatrolPos">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="PosId" />
+      </Principal>
+      <Dependent Role="CmPatrolHistoryPos">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="PosId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_CmPatrolHistoryPos_CmPatrolType">
+    <End Type="iBemsModel.CmPatrolType" Role="CmPatrolType" Multiplicity="1" />
+    <End Type="iBemsModel.CmPatrolHistoryPos" Role="CmPatrolHistoryPos" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmPatrolType">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="PatrolTypeId" />
+      </Principal>
+      <Dependent Role="CmPatrolHistoryPos">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="resultType" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <EntityType Name="BemsPeakInfo">
+    <Key>
+      <PropertyRef Name="SiteId" />
+    </Key>
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="MaxDateTime" Type="DateTime" Nullable="false" Precision="3" />
+    <Property Name="MaxPeakValue" Type="Double" Nullable="false" />
+    <Property Name="MinDateTime" Type="DateTime" Nullable="false" Precision="3" />
+    <Property Name="MinPeakValue" Type="Double" Nullable="false" />
+    <Property Name="todayMaxPeakValue" Type="Double" Nullable="false" />
+    <Property Name="todayMinPeakValue" Type="Double" Nullable="false" />
+    <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_BemsPeakInfo_CmSite" FromRole="BemsPeakInfo" ToRole="CmSite" />
+  </EntityType>
+  <EntityType Name="BemsPeakHistory">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="CreatedDateTime" />
+    </Key>
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="CreatedDateTime" Type="DateTime" Nullable="false" Precision="3" />
+    <Property Name="CurrentValue" Type="Double" Nullable="false" />
+    <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_BemsPeakHIstory_CmSite" FromRole="BemsPeakHistory" ToRole="CmSite" />
+  </EntityType>
+  <EntityType Name="CmPatrolSchedule">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="ScheduleId" />
+    </Key>
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="ScheduleId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+    <Property Name="PlanId" Type="Int32" Nullable="false" />
+    <Property Name="Name" Type="String" Nullable="false" MaxLength="48" FixedLength="false" Unicode="false" />
+    <Property Name="ScheduleDesc" Type="String" MaxLength="128" FixedLength="false" Unicode="false" />
+    <Property Name="inDate" Type="DateTime" Precision="3" />
+    <Property Name="patrolDateTime" Type="DateTime" Nullable="false" Precision="3" />
+    <NavigationProperty Name="CmPatrolPlan" Relationship="iBemsModel.FK_CmPatrolSchedule_CmPatrolPlan" FromRole="CmPatrolSchedule" ToRole="CmPatrolPlan" />
+    <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_CmPatrolSchedule_CmSite" FromRole="CmPatrolSchedule" ToRole="CmSite" />
+    <NavigationProperty Name="CmPatrolHistory" Relationship="iBemsModel.FK_CmPatrolHistory_CmPatrolSchedule" FromRole="CmPatrolSchedule" ToRole="CmPatrolHistory" />
+  </EntityType>
+  <Association Name="FK_CmPatrolSchedule_CmPatrolPlan">
+    <End Type="iBemsModel.CmPatrolPlan" Role="CmPatrolPlan" Multiplicity="1" />
+    <End Type="iBemsModel.CmPatrolSchedule" Role="CmPatrolSchedule" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmPatrolPlan">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="PatrolPlanId" />
+      </Principal>
+      <Dependent Role="CmPatrolSchedule">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="PlanId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <EntityType Name="BemsNoticePriceBase">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="FuelTypeId" />
+      <PropertyRef Name="ApplyDate" />
+      <PropertyRef Name="ContractType" />
+    </Key>
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="FuelTypeId" Type="Int16" Nullable="false" />
+    <Property Name="ApplyDate" Type="DateTime" Nullable="false" Precision="0" />
+    <Property Name="ContractType" Type="Int16" Nullable="false" />
+    <Property Name="PrimaryPrice" Type="Int32" />
+    <Property Name="SecondaryPrice" Type="Int32" />
+    <NavigationProperty Name="BemsNoticePriceContractType" Relationship="iBemsModel.FK__BemsNoticePriceBase__BemsNoticePriceContractType" FromRole="BemsNoticePriceBase" ToRole="BemsNoticePriceContractType" />
+    <NavigationProperty Name="BemsNoticePriceDetail" Relationship="iBemsModel.FK__BemsNoticePriceDetail__BemsNoticePriceBase" FromRole="BemsNoticePriceBase" ToRole="BemsNoticePriceDetail" />
+  </EntityType>
+  <EntityType Name="BemsNoticePriceContractType">
+    <Key>
+      <PropertyRef Name="FuelTypeId" />
+      <PropertyRef Name="ContractType" />
+    </Key>
+    <Property Name="FuelTypeId" Type="Int16" Nullable="false" />
+    <Property Name="ContractType" Type="Int16" Nullable="false" />
+    <Property Name="Name" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="false" />
+    <NavigationProperty Name="BemsNoticePriceBase" Relationship="iBemsModel.FK__BemsNoticePriceBase__BemsNoticePriceContractType" FromRole="BemsNoticePriceContractType" ToRole="BemsNoticePriceBase" />
+    <NavigationProperty Name="BemsFuelType" Relationship="iBemsModel.FK__BemsNoticePriceContractType__BemsFuelType" FromRole="BemsNoticePriceContractType" ToRole="BemsFuelType" />
+    <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK_CmFacility_BemsNoticePriceContractType" FromRole="BemsNoticePriceContractType" ToRole="CmFacility" />
+  </EntityType>
+  <EntityType Name="BemsNoticePriceDetail">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="FuelTypeId" />
+      <PropertyRef Name="ApplyDate" />
+      <PropertyRef Name="ContractType" />
+      <PropertyRef Name="DataId" />
+    </Key>
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="FuelTypeId" Type="Int16" Nullable="false" />
+    <Property Name="ApplyDate" Type="DateTime" Nullable="false" Precision="0" />
+    <Property Name="ContractType" Type="Int16" Nullable="false" />
+    <Property Name="DataId" Type="Int16" Nullable="false" />
+    <Property Name="P01" Type="Double" />
+    <Property Name="P02" Type="Double" />
+    <Property Name="P03" Type="Double" />
+    <Property Name="P04" Type="Double" />
+    <Property Name="P05" Type="Double" />
+    <Property Name="P06" Type="Double" />
+    <Property Name="P07" Type="Double" />
+    <Property Name="P08" Type="Double" />
+    <Property Name="P09" Type="Double" />
+    <Property Name="P10" Type="Double" />
+    <Property Name="P11" Type="Double" />
+    <Property Name="P12" Type="Double" />
+    <NavigationProperty Name="BemsNoticePriceBase" Relationship="iBemsModel.FK__BemsNoticePriceDetail__BemsNoticePriceBase" FromRole="BemsNoticePriceDetail" ToRole="BemsNoticePriceBase" />
+  </EntityType>
+  <Association Name="FK__BemsNoticePriceBase__BemsNoticePriceContractType">
+    <End Type="iBemsModel.BemsNoticePriceContractType" Role="BemsNoticePriceContractType" Multiplicity="1" />
+    <End Type="iBemsModel.BemsNoticePriceBase" Role="BemsNoticePriceBase" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="BemsNoticePriceContractType">
+        <PropertyRef Name="FuelTypeId" />
+        <PropertyRef Name="ContractType" />
+      </Principal>
+      <Dependent Role="BemsNoticePriceBase">
+        <PropertyRef Name="FuelTypeId" />
+        <PropertyRef Name="ContractType" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__BemsNoticePriceDetail__BemsNoticePriceBase">
+    <End Type="iBemsModel.BemsNoticePriceBase" Role="BemsNoticePriceBase" Multiplicity="1" />
+    <End Type="iBemsModel.BemsNoticePriceDetail" Role="BemsNoticePriceDetail" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="BemsNoticePriceBase">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FuelTypeId" />
+        <PropertyRef Name="ApplyDate" />
+        <PropertyRef Name="ContractType" />
+      </Principal>
+      <Dependent Role="BemsNoticePriceDetail">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FuelTypeId" />
+        <PropertyRef Name="ApplyDate" />
+        <PropertyRef Name="ContractType" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <EntityType Name="BemsPeakFacility">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="MaxDateTime" />
+      <PropertyRef Name="FacilityCode" />
+    </Key>
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="MaxDateTime" Type="DateTime" Nullable="false" Precision="3" />
+    <Property Name="FacilityCode" Type="Int32" Nullable="false" />
+    <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK_BemsPeakFacility_CmFacility" FromRole="BemsPeakFacility" ToRole="CmFacility" />
+  </EntityType>
+  <EntityType Name="CmSite">
+    <Key>
+      <PropertyRef Name="SiteId" />
+    </Key>
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="Name" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
+    <Property Name="AddressZip1" Type="String" MaxLength="5" FixedLength="true" Unicode="true" />
+    <Property Name="AddressZip2" Type="String" MaxLength="3" FixedLength="true" Unicode="true" />
+    <Property Name="Address1" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
+    <Property Name="Adderss2" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
+    <Property Name="PhoneNo" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
+    <Property Name="URL" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
+    <Property Name="Comment" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
+    <Property Name="IsUse" Type="Boolean" />
+    <Property Name="SortOrderNo" Type="Int32" />
+    <Property Name="InsertedDate" Type="DateTime" Precision="3" />
+    <Property Name="InsertedUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
+    <Property Name="UpdatedDate" Type="DateTime" Precision="3" />
+    <Property Name="UpdatedUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
+    <Property Name="IsControlSchedule" Type="Boolean" />
+    <Property Name="ScheduleCheckHour" Type="Int32" />
+    <Property Name="MaxPeak" Type="Double" />
+    <Property Name="lat" Type="Double" />
+    <Property Name="lng" Type="Double" />
+    <NavigationProperty Name="BemsPeakHistory" Relationship="iBemsModel.FK_BemsPeakHIstory_CmSite" FromRole="CmSite" ToRole="BemsPeakHistory" />
+    <NavigationProperty Name="BemsPeakInfo" Relationship="iBemsModel.FK_BemsPeakInfo_CmSite" FromRole="CmSite" ToRole="BemsPeakInfo" />
+    <NavigationProperty Name="CmBuilding" Relationship="iBemsModel.FK__CmBuildin__SiteI__3BFFE745" FromRole="CmSite" ToRole="CmBuilding" />
+    <NavigationProperty Name="CmCompany" Relationship="iBemsModel.FK__CmCompany__SiteI__336AA144" FromRole="CmSite" ToRole="CmCompany" />
+    <NavigationProperty Name="CmFacilityTempSet" Relationship="iBemsModel.FK_CmFacilityTempSet_CmSite" FromRole="CmSite" ToRole="CmFacilityTempSet" />
+    <NavigationProperty Name="CmFile" Relationship="iBemsModel.FK__CmFile__SiteId__2759D01A" FromRole="CmSite" ToRole="CmFile" />
+    <NavigationProperty Name="CmHoliday" Relationship="iBemsModel.FK__CmHoliday__SiteI__0BB1B5A5" FromRole="CmSite" ToRole="CmHoliday" />
+    <NavigationProperty Name="CmHoliday1" Relationship="iBemsModel.FK__CmHoliday__SiteI__65AC084E" FromRole="CmSite" ToRole="CmHoliday" />
+    <NavigationProperty Name="CmHolidayCustom" Relationship="iBemsModel.FK__CmHoliday__SiteI__10766AC2" FromRole="CmSite" ToRole="CmHolidayCustom" />
+    <NavigationProperty Name="CmHolidayCustom1" Relationship="iBemsModel.FK__CmHoliday__SiteI__66A02C87" FromRole="CmSite" ToRole="CmHolidayCustom" />
+    <NavigationProperty Name="CmHolidayWeekend" Relationship="iBemsModel.FK__CmHoliday__SiteI__0D99FE17" FromRole="CmSite" ToRole="CmHolidayWeekend" />
+    <NavigationProperty Name="CmPatrolCourse" Relationship="iBemsModel.FK_CmPatrolCourse_CmSite" FromRole="CmSite" ToRole="CmPatrolCourse" />
+    <NavigationProperty Name="CmPatrolCoursePos" Relationship="iBemsModel.FK_CmPatrolCoursePos_CmSite" FromRole="CmSite" ToRole="CmPatrolCoursePos" />
+    <NavigationProperty Name="CmPatrolGroup" Relationship="iBemsModel.FK_CmPatrolGroup_CmSite" FromRole="CmSite" ToRole="CmPatrolGroup" />
+    <NavigationProperty Name="CmPatrolHistoryPos" Relationship="iBemsModel.FK_CmPatrolHistoryPos_CmSite" FromRole="CmSite" ToRole="CmPatrolHistoryPos" />
+    <NavigationProperty Name="CmPatrolPlan" Relationship="iBemsModel.FK_CmPatrolPlan_CmSite" FromRole="CmSite" ToRole="CmPatrolPlan" />
+    <NavigationProperty Name="CmPatrolPos" Relationship="iBemsModel.FK_CmPatrolPos_CmSite" FromRole="CmSite" ToRole="CmPatrolPos" />
+    <NavigationProperty Name="CmPatrolSchedule" Relationship="iBemsModel.FK_CmPatrolSchedule_CmSite" FromRole="CmSite" ToRole="CmPatrolSchedule" />
+    <NavigationProperty Name="CmPatrolType" Relationship="iBemsModel.FK_CmPatrolType_CmSite" FromRole="CmSite" ToRole="CmPatrolType" />
+    <NavigationProperty Name="CmPosition" Relationship="iBemsModel.FK__CmPositio__SiteI__6A70BD6B" FromRole="CmSite" ToRole="CmPosition" />
+    <NavigationProperty Name="CmPosition1" Relationship="iBemsModel.FK__CmUserPos__SiteI__44952D46" FromRole="CmSite" ToRole="CmPosition" />
+    <NavigationProperty Name="CmUserGroup" Relationship="iBemsModel.FK__CmUserGro__SiteI__53D770D6" FromRole="CmSite" ToRole="CmUserGroup" />
+    <NavigationProperty Name="FmsDrawingCodeGroup" Relationship="iBemsModel.FK__FmsDrawin__SiteI__6B79F03D" FromRole="CmSite" ToRole="FmsDrawingCodeGroup" />
+    <NavigationProperty Name="FmsDrawingCodeType" Relationship="iBemsModel.FK__FmsDrawin__SiteI__6C6E1476" FromRole="CmSite" ToRole="FmsDrawingCodeType" />
+    <NavigationProperty Name="FmsDrawing" Relationship="iBemsModel.FK__FmsDrawin__SiteI__6D6238AF" FromRole="CmSite" ToRole="FmsDrawing" />
+    <NavigationProperty Name="FmsDrawingCodeGroup1" Relationship="iBemsModel.FK__FmsDrawin__SiteI__6F357288" FromRole="CmSite" ToRole="FmsDrawingCodeGroup" />
+    <NavigationProperty Name="FmsDrawingCodeType1" Relationship="iBemsModel.FK__FmsDrawin__SiteI__702996C1" FromRole="CmSite" ToRole="FmsDrawingCodeType" />
+    <NavigationProperty Name="FmsFacilityCodeClass" Relationship="iBemsModel.FK__FmsFacilityCodeClass__CmSite" FromRole="CmSite" ToRole="FmsFacilityCodeClass" />
+    <NavigationProperty Name="FmsLicense" Relationship="iBemsModel.FK__FmsLicense__CmSite" FromRole="CmSite" ToRole="FmsLicense" />
+    <NavigationProperty Name="FmsMaterialCarriedForward" Relationship="iBemsModel.FK__FmsMaterialCarriedForward__CmSite" FromRole="CmSite" ToRole="FmsMaterialCarriedForward" />
+    <NavigationProperty Name="FmsMaterialCodeClass" Relationship="iBemsModel.FK__FmsMaterialCodeClass__CmSite" FromRole="CmSite" ToRole="FmsMaterialCodeClass" />
+    <NavigationProperty Name="FmsMaterialCodeLocation" Relationship="iBemsModel.FK__FmsMaterialCodeLocation__CmSite" FromRole="CmSite" ToRole="FmsMaterialCodeLocation" />
+    <NavigationProperty Name="FmsMaterialCodeType" Relationship="iBemsModel.FK__FmsMaterialCodeType__CmSite" FromRole="CmSite" ToRole="FmsMaterialCodeType" />
+    <NavigationProperty Name="FmsMaterialPurchaseOrder" Relationship="iBemsModel.FK__FmsMaterialOrder__CmSite" FromRole="CmSite" ToRole="FmsMaterialPurchaseOrder" />
+    <NavigationProperty Name="FmsMaterialPurchaseRequest" Relationship="iBemsModel.FK__FmsMaterialPurchasingRequest__CmSite" FromRole="CmSite" ToRole="FmsMaterialPurchaseRequest" />
+    <NavigationProperty Name="FmsMaterialStored" Relationship="iBemsModel.FK__FmsMaterialStored__CmSite" FromRole="CmSite" ToRole="FmsMaterialStored" />
+    <NavigationProperty Name="FmsMaterialTradeCompany" Relationship="iBemsModel.FK__FmsMaterialTradeCompany__CmSite" FromRole="CmSite" ToRole="FmsMaterialTradeCompany" />
+    <NavigationProperty Name="FmsMaterialWarehouse" Relationship="iBemsModel.FK__FmsMaterialWarehouse__CmSite" FromRole="CmSite" ToRole="FmsMaterialWarehouse" />
+    <NavigationProperty Name="FmsWorkCodeCauseClass" Relationship="iBemsModel.FK__FmsWorkCodeCauseClass__CmSite" FromRole="CmSite" ToRole="FmsWorkCodeCauseClass" />
+    <NavigationProperty Name="FmsWorkCodeCycleUnit" Relationship="iBemsModel.FK__FmsWorkCodeCycleUnit__CmSite" FromRole="CmSite" ToRole="FmsWorkCodeCycleUnit" />
+    <NavigationProperty Name="FmsWorkCodeEmergency" Relationship="iBemsModel.FK__FmsWorkCodeEmergency__CmSite" FromRole="CmSite" ToRole="FmsWorkCodeEmergency" />
+    <NavigationProperty Name="FmsWorkCodeHolidayWorkType" Relationship="iBemsModel.FK__FmsWorkCodeHolidayWorkType__CmSite" FromRole="CmSite" ToRole="FmsWorkCodeHolidayWorkType" />
+    <NavigationProperty Name="FmsWorkCodeLegalInspectionAgency" Relationship="iBemsModel.FK__FmsWorkCodeLegalInspectionAgency__CmSite" FromRole="CmSite" ToRole="FmsWorkCodeLegalInspectionAgency" />
+    <NavigationProperty Name="FmsWorkOrder" Relationship="iBemsModel.FK__FmsWorkOrder__CmSite" FromRole="CmSite" ToRole="FmsWorkOrder" />
+    <NavigationProperty Name="FmsWorkRequest" Relationship="iBemsModel.FK__FmsWorkRequest__CmSite" FromRole="CmSite" ToRole="FmsWorkRequest" />
+    <NavigationProperty Name="CmZoneTempHumiSet" Relationship="iBemsModel.FK_CmZoneTempHumiSet_CmSite" FromRole="CmSite" ToRole="CmZoneTempHumiSet" />
+    <NavigationProperty Name="FmsMaterial" Relationship="iBemsModel.FK_FmsMaterial_CmSite" FromRole="CmSite" ToRole="FmsMaterial" />
+    <NavigationProperty Name="FmsMaterialRelease" Relationship="iBemsModel.FK_FmsMaterialRelease_CmSite" FromRole="CmSite" ToRole="FmsMaterialRelease" />
+    <NavigationProperty Name="FmsReport" Relationship="iBemsModel.FK_FmsReport_CmSite" FromRole="CmSite" ToRole="FmsReport" />
+    <NavigationProperty Name="CmPatrolHistory" Relationship="iBemsModel.FK_CmPatrolHistory_CmSite" FromRole="CmSite" ToRole="CmPatrolHistory" />
+    <Property Name="controlSchedule" Type="Boolean" />
+    <NavigationProperty Name="CmMenu" Relationship="iBemsModel.FK_CmMenu_CmSite" FromRole="CmSite" ToRole="CmMenu" />
+    <NavigationProperty Name="BemsChartInfo" Relationship="iBemsModel.FK_BemsChartInfo_CmSite" FromRole="CmSite" ToRole="BemsChartInfo" />
+    <Property Name="BuildingSize" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
+    <Property Name="GrossArea" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
+    <Property Name="BuildingArea" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
+    <Property Name="FloorAreaRatio" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
+    <Property Name="BuildingCoverageRatio" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
+    <Property Name="MainUse" Type="String" MaxLength="10" FixedLength="false" Unicode="true" />
+    <Property Name="CompletionDate" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
+    <Property Name="Standard" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
+    <Property Name="MainUseIndex" Type="Int32" />
+    <Property Name="HDD" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
+    <Property Name="CDD" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
+    <NavigationProperty Name="BemsPeopleIncrease" Relationship="iBemsModel.FK_BemsPeopleIncrease_CmSite" FromRole="CmSite" ToRole="BemsPeopleIncrease" />
+    <NavigationProperty Name="BemsRentalRate" Relationship="iBemsModel.FK_BemsRentalRate_CmSite" FromRole="CmSite" ToRole="BemsRentalRate" />
+    <NavigationProperty Name="BemsSitePrice" Relationship="iBemsModel.FK_BemsSitePrice_CmSite1" FromRole="CmSite" ToRole="BemsSitePrice" />
+    <NavigationProperty Name="BemsSitePriceHistory" Relationship="iBemsModel.FK_BemsSitePriceHistory_CmSite" FromRole="CmSite" ToRole="BemsSitePriceHistory" />
+    <NavigationProperty Name="BemsAlarmSetting" Relationship="iBemsModel.FK_BemsAlarmSetting_CmSite1" FromRole="CmSite" ToRole="BemsAlarmSetting" />
+    <NavigationProperty Name="BemsEnergyConfigPercentMonth" Relationship="iBemsModel.FK__BemsEnerg__SiteI__7954A4F6" FromRole="CmSite" ToRole="BemsEnergyConfigPercentMonth" />
+    <NavigationProperty Name="BemsEnergyConfigPercentWeek" Relationship="iBemsModel.FK__BemsEnerg__SiteI__7C3111A1" FromRole="CmSite" ToRole="BemsEnergyConfigPercentWeek" />
+    <NavigationProperty Name="BemsEnergyDailyRegression" Relationship="iBemsModel.FK_BemsEnergyDailyRegression_CmSite" FromRole="CmSite" ToRole="BemsEnergyDailyRegression" />
+  </EntityType>
+  <Association Name="FK_BemsPeakHIstory_CmSite">
+    <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
+    <End Type="iBemsModel.BemsPeakHistory" Role="BemsPeakHistory" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmSite">
+        <PropertyRef Name="SiteId" />
+      </Principal>
+      <Dependent Role="BemsPeakHistory">
+        <PropertyRef Name="SiteId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_BemsPeakInfo_CmSite">
+    <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
+    <End Type="iBemsModel.BemsPeakInfo" Role="BemsPeakInfo" Multiplicity="0..1" />
+    <ReferentialConstraint>
+      <Principal Role="CmSite">
+        <PropertyRef Name="SiteId" />
+      </Principal>
+      <Dependent Role="BemsPeakInfo">
+        <PropertyRef Name="SiteId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__CmBuildin__SiteI__3BFFE745">
+    <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
+    <End Type="iBemsModel.CmBuilding" Role="CmBuilding" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmSite">
+        <PropertyRef Name="SiteId" />
+      </Principal>
+      <Dependent Role="CmBuilding">
+        <PropertyRef Name="SiteId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__CmCompany__SiteI__336AA144">
+    <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
+    <End Type="iBemsModel.CmCompany" Role="CmCompany" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmSite">
+        <PropertyRef Name="SiteId" />
+      </Principal>
+      <Dependent Role="CmCompany">
+        <PropertyRef Name="SiteId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_CmFacilityTempSet_CmSite">
+    <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
+    <End Type="iBemsModel.CmFacilityTempSet" Role="CmFacilityTempSet" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmSite">
+        <PropertyRef Name="SiteId" />
+      </Principal>
+      <Dependent Role="CmFacilityTempSet">
+        <PropertyRef Name="SiteId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__CmFile__SiteId__2759D01A">
+    <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
+    <End Type="iBemsModel.CmFile" Role="CmFile" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmSite">
+        <PropertyRef Name="SiteId" />
+      </Principal>
+      <Dependent Role="CmFile">
+        <PropertyRef Name="SiteId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__CmHoliday__SiteI__0BB1B5A5">
+    <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
+    <End Type="iBemsModel.CmHoliday" Role="CmHoliday" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmSite">
+        <PropertyRef Name="SiteId" />
+      </Principal>
+      <Dependent Role="CmHoliday">
+        <PropertyRef Name="SiteId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__CmHoliday__SiteI__65AC084E">
+    <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
+    <End Type="iBemsModel.CmHoliday" Role="CmHoliday" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmSite">
+        <PropertyRef Name="SiteId" />
+      </Principal>
+      <Dependent Role="CmHoliday">
+        <PropertyRef Name="SiteId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__CmHoliday__SiteI__10766AC2">
+    <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
+    <End Type="iBemsModel.CmHolidayCustom" Role="CmHolidayCustom" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmSite">
+        <PropertyRef Name="SiteId" />
+      </Principal>
+      <Dependent Role="CmHolidayCustom">
+        <PropertyRef Name="SiteId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__CmHoliday__SiteI__66A02C87">
+    <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
+    <End Type="iBemsModel.CmHolidayCustom" Role="CmHolidayCustom" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmSite">
+        <PropertyRef Name="SiteId" />
+      </Principal>
+      <Dependent Role="CmHolidayCustom">
+        <PropertyRef Name="SiteId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__CmHoliday__SiteI__0D99FE17">
+    <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
+    <End Type="iBemsModel.CmHolidayWeekend" Role="CmHolidayWeekend" Multiplicity="0..1" />
+    <ReferentialConstraint>
+      <Principal Role="CmSite">
+        <PropertyRef Name="SiteId" />
+      </Principal>
+      <Dependent Role="CmHolidayWeekend">
+        <PropertyRef Name="SiteId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_CmPatrolCourse_CmSite">
+    <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
+    <End Type="iBemsModel.CmPatrolCourse" Role="CmPatrolCourse" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmSite">
+        <PropertyRef Name="SiteId" />
+      </Principal>
+      <Dependent Role="CmPatrolCourse">
+        <PropertyRef Name="SiteId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_CmPatrolCoursePos_CmSite">
+    <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
+    <End Type="iBemsModel.CmPatrolCoursePos" Role="CmPatrolCoursePos" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmSite">
+        <PropertyRef Name="SiteId" />
+      </Principal>
+      <Dependent Role="CmPatrolCoursePos">
+        <PropertyRef Name="SiteId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_CmPatrolGroup_CmSite">
+    <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
+    <End Type="iBemsModel.CmPatrolGroup" Role="CmPatrolGroup" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmSite">
+        <PropertyRef Name="SiteId" />
+      </Principal>
+      <Dependent Role="CmPatrolGroup">
+        <PropertyRef Name="SiteId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_CmPatrolHistoryPos_CmSite">
+    <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
+    <End Type="iBemsModel.CmPatrolHistoryPos" Role="CmPatrolHistoryPos" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmSite">
+        <PropertyRef Name="SiteId" />
+      </Principal>
+      <Dependent Role="CmPatrolHistoryPos">
+        <PropertyRef Name="SiteId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_CmPatrolPlan_CmSite">
+    <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
+    <End Type="iBemsModel.CmPatrolPlan" Role="CmPatrolPlan" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmSite">
+        <PropertyRef Name="SiteId" />
+      </Principal>
+      <Dependent Role="CmPatrolPlan">
+        <PropertyRef Name="SiteId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_CmPatrolPos_CmSite">
+    <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
+    <End Type="iBemsModel.CmPatrolPos" Role="CmPatrolPos" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmSite">
+        <PropertyRef Name="SiteId" />
+      </Principal>
+      <Dependent Role="CmPatrolPos">
+        <PropertyRef Name="SiteId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_CmPatrolSchedule_CmSite">
+    <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
+    <End Type="iBemsModel.CmPatrolSchedule" Role="CmPatrolSchedule" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmSite">
+        <PropertyRef Name="SiteId" />
+      </Principal>
+      <Dependent Role="CmPatrolSchedule">
+        <PropertyRef Name="SiteId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_CmPatrolType_CmSite">
+    <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
+    <End Type="iBemsModel.CmPatrolType" Role="CmPatrolType" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmSite">
+        <PropertyRef Name="SiteId" />
+      </Principal>
+      <Dependent Role="CmPatrolType">
+        <PropertyRef Name="SiteId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__CmPositio__SiteI__6A70BD6B">
+    <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
+    <End Type="iBemsModel.CmPosition" Role="CmPosition" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmSite">
+        <PropertyRef Name="SiteId" />
+      </Principal>
+      <Dependent Role="CmPosition">
+        <PropertyRef Name="SiteId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__CmUserPos__SiteI__44952D46">
+    <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
+    <End Type="iBemsModel.CmPosition" Role="CmPosition" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmSite">
+        <PropertyRef Name="SiteId" />
+      </Principal>
+      <Dependent Role="CmPosition">
+        <PropertyRef Name="SiteId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__CmUserGro__SiteI__53D770D6">
+    <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
+    <End Type="iBemsModel.CmUserGroup" Role="CmUserGroup" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmSite">
+        <PropertyRef Name="SiteId" />
+      </Principal>
+      <Dependent Role="CmUserGroup">
+        <PropertyRef Name="SiteId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsDrawin__SiteI__6B79F03D">
+    <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
+    <End Type="iBemsModel.FmsDrawingCodeGroup" Role="FmsDrawingCodeGroup" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmSite">
+        <PropertyRef Name="SiteId" />
+      </Principal>
+      <Dependent Role="FmsDrawingCodeGroup">
+        <PropertyRef Name="SiteId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsDrawin__SiteI__6C6E1476">
+    <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
+    <End Type="iBemsModel.FmsDrawingCodeType" Role="FmsDrawingCodeType" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmSite">
+        <PropertyRef Name="SiteId" />
+      </Principal>
+      <Dependent Role="FmsDrawingCodeType">
+        <PropertyRef Name="SiteId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsDrawin__SiteI__6D6238AF">
+    <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
+    <End Type="iBemsModel.FmsDrawing" Role="FmsDrawing" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmSite">
+        <PropertyRef Name="SiteId" />
+      </Principal>
+      <Dependent Role="FmsDrawing">
+        <PropertyRef Name="SiteId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsDrawin__SiteI__6F357288">
+    <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
+    <End Type="iBemsModel.FmsDrawingCodeGroup" Role="FmsDrawingCodeGroup" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmSite">
+        <PropertyRef Name="SiteId" />
+      </Principal>
+      <Dependent Role="FmsDrawingCodeGroup">
+        <PropertyRef Name="SiteId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsDrawin__SiteI__702996C1">
+    <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
+    <End Type="iBemsModel.FmsDrawingCodeType" Role="FmsDrawingCodeType" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmSite">
+        <PropertyRef Name="SiteId" />
+      </Principal>
+      <Dependent Role="FmsDrawingCodeType">
+        <PropertyRef Name="SiteId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsFacilityCodeClass__CmSite">
+    <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1">
+      <OnDelete Action="Cascade" />
+    </End>
+    <End Type="iBemsModel.FmsFacilityCodeClass" Role="FmsFacilityCodeClass" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmSite">
+        <PropertyRef Name="SiteId" />
+      </Principal>
+      <Dependent Role="FmsFacilityCodeClass">
+        <PropertyRef Name="SiteId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsLicense__CmSite">
+    <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
+    <End Type="iBemsModel.FmsLicense" Role="FmsLicense" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmSite">
+        <PropertyRef Name="SiteId" />
+      </Principal>
+      <Dependent Role="FmsLicense">
+        <PropertyRef Name="SiteId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsMaterialCarriedForward__CmSite">
+    <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
+    <End Type="iBemsModel.FmsMaterialCarriedForward" Role="FmsMaterialCarriedForward" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmSite">
+        <PropertyRef Name="SiteId" />
+      </Principal>
+      <Dependent Role="FmsMaterialCarriedForward">
+        <PropertyRef Name="SiteId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsMaterialCodeClass__CmSite">
+    <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
+    <End Type="iBemsModel.FmsMaterialCodeClass" Role="FmsMaterialCodeClass" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmSite">
+        <PropertyRef Name="SiteId" />
+      </Principal>
+      <Dependent Role="FmsMaterialCodeClass">
+        <PropertyRef Name="SiteId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsMaterialCodeLocation__CmSite">
+    <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
+    <End Type="iBemsModel.FmsMaterialCodeLocation" Role="FmsMaterialCodeLocation" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmSite">
+        <PropertyRef Name="SiteId" />
+      </Principal>
+      <Dependent Role="FmsMaterialCodeLocation">
+        <PropertyRef Name="SiteId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsMaterialCodeType__CmSite">
+    <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
+    <End Type="iBemsModel.FmsMaterialCodeType" Role="FmsMaterialCodeType" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmSite">
+        <PropertyRef Name="SiteId" />
+      </Principal>
+      <Dependent Role="FmsMaterialCodeType">
+        <PropertyRef Name="SiteId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsMaterialOrder__CmSite">
+    <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
+    <End Type="iBemsModel.FmsMaterialPurchaseOrder" Role="FmsMaterialPurchaseOrder" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmSite">
+        <PropertyRef Name="SiteId" />
+      </Principal>
+      <Dependent Role="FmsMaterialPurchaseOrder">
+        <PropertyRef Name="SiteId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsMaterialPurchasingRequest__CmSite">
+    <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
+    <End Type="iBemsModel.FmsMaterialPurchaseRequest" Role="FmsMaterialPurchaseRequest" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmSite">
+        <PropertyRef Name="SiteId" />
+      </Principal>
+      <Dependent Role="FmsMaterialPurchaseRequest">
+        <PropertyRef Name="SiteId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsMaterialStored__CmSite">
+    <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
+    <End Type="iBemsModel.FmsMaterialStored" Role="FmsMaterialStored" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmSite">
+        <PropertyRef Name="SiteId" />
+      </Principal>
+      <Dependent Role="FmsMaterialStored">
+        <PropertyRef Name="SiteId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsMaterialTradeCompany__CmSite">
+    <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
+    <End Type="iBemsModel.FmsMaterialTradeCompany" Role="FmsMaterialTradeCompany" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmSite">
+        <PropertyRef Name="SiteId" />
+      </Principal>
+      <Dependent Role="FmsMaterialTradeCompany">
+        <PropertyRef Name="SiteId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsMaterialWarehouse__CmSite">
+    <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
+    <End Type="iBemsModel.FmsMaterialWarehouse" Role="FmsMaterialWarehouse" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmSite">
+        <PropertyRef Name="SiteId" />
+      </Principal>
+      <Dependent Role="FmsMaterialWarehouse">
+        <PropertyRef Name="SiteId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsWorkCodeCauseClass__CmSite">
+    <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
+    <End Type="iBemsModel.FmsWorkCodeCauseClass" Role="FmsWorkCodeCauseClass" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmSite">
+        <PropertyRef Name="SiteId" />
+      </Principal>
+      <Dependent Role="FmsWorkCodeCauseClass">
+        <PropertyRef Name="SiteId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsWorkCodeCycleUnit__CmSite">
+    <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
+    <End Type="iBemsModel.FmsWorkCodeCycleUnit" Role="FmsWorkCodeCycleUnit" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmSite">
+        <PropertyRef Name="SiteId" />
+      </Principal>
+      <Dependent Role="FmsWorkCodeCycleUnit">
+        <PropertyRef Name="SiteId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsWorkCodeEmergency__CmSite">
+    <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
+    <End Type="iBemsModel.FmsWorkCodeEmergency" Role="FmsWorkCodeEmergency" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmSite">
+        <PropertyRef Name="SiteId" />
+      </Principal>
+      <Dependent Role="FmsWorkCodeEmergency">
+        <PropertyRef Name="SiteId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsWorkCodeHolidayWorkType__CmSite">
+    <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
+    <End Type="iBemsModel.FmsWorkCodeHolidayWorkType" Role="FmsWorkCodeHolidayWorkType" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmSite">
+        <PropertyRef Name="SiteId" />
+      </Principal>
+      <Dependent Role="FmsWorkCodeHolidayWorkType">
+        <PropertyRef Name="SiteId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsWorkCodeLegalInspectionAgency__CmSite">
+    <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
+    <End Type="iBemsModel.FmsWorkCodeLegalInspectionAgency" Role="FmsWorkCodeLegalInspectionAgency" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmSite">
+        <PropertyRef Name="SiteId" />
+      </Principal>
+      <Dependent Role="FmsWorkCodeLegalInspectionAgency">
+        <PropertyRef Name="SiteId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsWorkOrder__CmSite">
+    <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
+    <End Type="iBemsModel.FmsWorkOrder" Role="FmsWorkOrder" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmSite">
+        <PropertyRef Name="SiteId" />
+      </Principal>
+      <Dependent Role="FmsWorkOrder">
+        <PropertyRef Name="SiteId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsWorkRequest__CmSite">
+    <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
+    <End Type="iBemsModel.FmsWorkRequest" Role="FmsWorkRequest" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmSite">
+        <PropertyRef Name="SiteId" />
+      </Principal>
+      <Dependent Role="FmsWorkRequest">
+        <PropertyRef Name="SiteId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_CmZoneTempHumiSet_CmSite">
+    <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
+    <End Type="iBemsModel.CmZoneTempHumiSet" Role="CmZoneTempHumiSet" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmSite">
+        <PropertyRef Name="SiteId" />
+      </Principal>
+      <Dependent Role="CmZoneTempHumiSet">
+        <PropertyRef Name="SiteId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsMaterial_CmSite">
+    <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
+    <End Type="iBemsModel.FmsMaterial" Role="FmsMaterial" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmSite">
+        <PropertyRef Name="SiteId" />
+      </Principal>
+      <Dependent Role="FmsMaterial">
+        <PropertyRef Name="SiteId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsMaterialRelease_CmSite">
+    <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
+    <End Type="iBemsModel.FmsMaterialRelease" Role="FmsMaterialRelease" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmSite">
+        <PropertyRef Name="SiteId" />
+      </Principal>
+      <Dependent Role="FmsMaterialRelease">
+        <PropertyRef Name="SiteId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <EntityType Name="FmsReport">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="RId" />
+    </Key>
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="RId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+    <Property Name="Title" Type="String" MaxLength="128" FixedLength="false" Unicode="true" />
+    <Property Name="Contents" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
+    <Property Name="RegisterUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
+    <Property Name="FileId" Type="Int32" />
+    <Property Name="MakeDate" Type="DateTime" Nullable="false" Precision="3" />
+    <Property Name="ConfirmUserId1" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
+    <Property Name="ConfirmUserId2" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
+    <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
+    <NavigationProperty Name="CmBusinessField" Relationship="iBemsModel.FK_FmsReport_CmBusinessField" FromRole="FmsReport" ToRole="CmBusinessField" />
+    <NavigationProperty Name="CmFile" Relationship="iBemsModel.FK_FmsReport_CmFile" FromRole="FmsReport" ToRole="CmFile" />
+    <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_FmsReport_CmSite" FromRole="FmsReport" ToRole="CmSite" />
+    <NavigationProperty Name="CmUser" Relationship="iBemsModel.FK_FmsReport_CmUser" FromRole="FmsReport" ToRole="CmUser" />
+    <NavigationProperty Name="CmUser1" Relationship="iBemsModel.FK_FmsReport_CmUser1" FromRole="FmsReport" ToRole="CmUser" />
+    <NavigationProperty Name="CmUser2" Relationship="iBemsModel.FK_FmsReport_CmUser2" FromRole="FmsReport" ToRole="CmUser" />
+  </EntityType>
+  <Association Name="FK_FmsReport_CmBusinessField">
+    <End Type="iBemsModel.CmBusinessField" Role="CmBusinessField" Multiplicity="1" />
+    <End Type="iBemsModel.FmsReport" Role="FmsReport" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmBusinessField">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="BusinessFieldId" />
+      </Principal>
+      <Dependent Role="FmsReport">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="BusinessFieldId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsReport_CmFile">
+    <End Type="iBemsModel.CmFile" Role="CmFile" Multiplicity="0..1" />
+    <End Type="iBemsModel.FmsReport" Role="FmsReport" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmFile">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FileId" />
+      </Principal>
+      <Dependent Role="FmsReport">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FileId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsReport_CmSite">
+    <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
+    <End Type="iBemsModel.FmsReport" Role="FmsReport" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmSite">
+        <PropertyRef Name="SiteId" />
+      </Principal>
+      <Dependent Role="FmsReport">
+        <PropertyRef Name="SiteId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsReport_CmUser">
+    <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="0..1" />
+    <End Type="iBemsModel.FmsReport" Role="FmsReport" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmUser">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="UserId" />
+      </Principal>
+      <Dependent Role="FmsReport">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="RegisterUserId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsReport_CmUser1">
+    <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="0..1" />
+    <End Type="iBemsModel.FmsReport" Role="FmsReport" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmUser">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="UserId" />
+      </Principal>
+      <Dependent Role="FmsReport">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="ConfirmUserId1" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsReport_CmUser2">
+    <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="0..1" />
+    <End Type="iBemsModel.FmsReport" Role="FmsReport" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmUser">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="UserId" />
+      </Principal>
+      <Dependent Role="FmsReport">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="ConfirmUserId2" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <EntityType Name="CmServiceEnergyCalcMonth">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="calDate" />
+      <PropertyRef Name="ServiceTypeId" />
+    </Key>
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="calDate" Type="DateTime" Nullable="false" Precision="3" />
+    <Property Name="ServiceTypeId" Type="Int16" Nullable="false" />
+    <Property Name="Value" Type="Double" />
+  </EntityType>
+  <EntityType Name="CmServiceEnergyCalcDay">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="calDate" />
+      <PropertyRef Name="ServiceTypeId" />
+    </Key>
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="calDate" Type="DateTime" Nullable="false" Precision="3" />
+    <Property Name="ServiceTypeId" Type="Int16" Nullable="false" />
+    <Property Name="Value" Type="Double" />
+  </EntityType>
+  <EntityType Name="CmPatrolHistory">
+    <Key>
+      <PropertyRef Name="PatrolHistoryId" />
+    </Key>
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="PatrolHistoryId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+    <Property Name="ScheduleId" Type="Int32" Nullable="false" />
+    <Property Name="startDate" Type="DateTime" Nullable="false" Precision="3" />
+    <Property Name="endDate" Type="DateTime" Precision="3" />
+    <Property Name="resultTypeId" Type="Int32" Nullable="false" />
+    <Property Name="resultDesc" Type="String" MaxLength="1024" FixedLength="false" Unicode="false" />
+    <Property Name="resultPosCnt" Type="Int32" />
+    <Property Name="resultNormalCnt" Type="Int32" />
+    <Property Name="resultAbnormalCnt" Type="Int32" />
+    <NavigationProperty Name="CmPatrolSchedule" Relationship="iBemsModel.FK_CmPatrolHistory_CmPatrolSchedule" FromRole="CmPatrolHistory" ToRole="CmPatrolSchedule" />
+    <NavigationProperty Name="CmPatrolType" Relationship="iBemsModel.FK_CmPatrolHistory_CmPatrolType" FromRole="CmPatrolHistory" ToRole="CmPatrolType" />
+    <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_CmPatrolHistory_CmSite" FromRole="CmPatrolHistory" ToRole="CmSite" />
+  </EntityType>
+  <Association Name="FK_CmPatrolHistory_CmPatrolSchedule">
+    <End Type="iBemsModel.CmPatrolSchedule" Role="CmPatrolSchedule" Multiplicity="1" />
+    <End Type="iBemsModel.CmPatrolHistory" Role="CmPatrolHistory" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmPatrolSchedule">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="ScheduleId" />
+      </Principal>
+      <Dependent Role="CmPatrolHistory">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="ScheduleId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_CmPatrolHistory_CmPatrolType">
+    <End Type="iBemsModel.CmPatrolType" Role="CmPatrolType" Multiplicity="1" />
+    <End Type="iBemsModel.CmPatrolHistory" Role="CmPatrolHistory" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmPatrolType">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="PatrolTypeId" />
+      </Principal>
+      <Dependent Role="CmPatrolHistory">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="resultTypeId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_CmPatrolHistory_CmSite">
+    <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
+    <End Type="iBemsModel.CmPatrolHistory" Role="CmPatrolHistory" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmSite">
+        <PropertyRef Name="SiteId" />
+      </Principal>
+      <Dependent Role="CmPatrolHistory">
+        <PropertyRef Name="SiteId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <EntityType Name="BemsReportFormat">
+    <Key>
+      <PropertyRef Name="ReportFormatId" />
+      <PropertyRef Name="parts" />
+    </Key>
+    <Property Name="ReportFormatId" Type="Int32" Nullable="false" />
+    <Property Name="FormatName" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="false" />
+    <Property Name="Content" Type="String" MaxLength="Max" FixedLength="false" Unicode="false" />
+    <Property Name="parts" Type="Int32" Nullable="false" />
+  </EntityType>
+  <EntityType Name="FmsWorkSchedule">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="WorkScheduleId" />
+    </Key>
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="WorkScheduleId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+    <Property Name="WorkTypeId" Type="Int32" Nullable="false" />
+    <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
+    <Property Name="Name" Type="String" Nullable="false" MaxLength="100" FixedLength="false" Unicode="true" />
+    <Property Name="InspectionAgencyId" Type="Int32" />
+    <Property Name="CycleSize" Type="Int32" Nullable="false" />
+    <Property Name="CycleUnitId" Type="Int32" Nullable="false" />
+    <Property Name="HolidayWorkTypeId" Type="Int32" Nullable="false" />
+    <Property Name="WorkDueDate" Type="DateTime" Nullable="false" Precision="3" />
+    <Property Name="UpdateUserId" Type="String" Nullable="false" MaxLength="24" FixedLength="false" Unicode="true" />
+    <Property Name="IsUse" Type="Boolean" Nullable="false" />
+    <Property Name="IsAutoOrder" Type="Boolean" Nullable="false" />
+    <Property Name="Content" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
+    <NavigationProperty Name="CmBusinessField" Relationship="iBemsModel.FK__FmsWorkSchedule__CmBusinessField" FromRole="FmsWorkSchedule" ToRole="CmBusinessField" />
+    <NavigationProperty Name="CmUser" Relationship="iBemsModel.FK__FmsWorkSchedule__CmUser" FromRole="FmsWorkSchedule" ToRole="CmUser" />
+    <NavigationProperty Name="FmsWorkCodeCycleUnit" Relationship="iBemsModel.FK__FmsWorkSchedule__FmsWorkCodeCycleUnit" FromRole="FmsWorkSchedule" ToRole="FmsWorkCodeCycleUnit" />
+    <NavigationProperty Name="FmsWorkCodeHolidayWorkType" Relationship="iBemsModel.FK__FmsWorkSchedule__FmsWorkCodeHolidayWorkType" FromRole="FmsWorkSchedule" ToRole="FmsWorkCodeHolidayWorkType" />
+    <NavigationProperty Name="FmsWorkCodeType" Relationship="iBemsModel.FK__FmsWorkSchedule__FmsWorkCodeWorkType" FromRole="FmsWorkSchedule" ToRole="FmsWorkCodeType" />
+    <NavigationProperty Name="FmsWorkRequest" Relationship="iBemsModel.FK__FmsWorkRequest__FmsWorkSchedule" FromRole="FmsWorkSchedule" ToRole="FmsWorkRequest" />
+    <NavigationProperty Name="FmsWorkScheduleToFacility" Relationship="iBemsModel.FK__FmsWorkScheduleToFacility__FmsWorkSchedule" FromRole="FmsWorkSchedule" ToRole="FmsWorkScheduleToFacility" />
+    <NavigationProperty Name="CmPartner" Relationship="iBemsModel.FK_FmsWorkSchedule_CmPartner" FromRole="FmsWorkSchedule" ToRole="CmPartner" />
+  </EntityType>
+  <Association Name="FK__FmsWorkSchedule__CmBusinessField">
+    <End Type="iBemsModel.CmBusinessField" Role="CmBusinessField" Multiplicity="1" />
+    <End Type="iBemsModel.FmsWorkSchedule" Role="FmsWorkSchedule" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmBusinessField">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="BusinessFieldId" />
+      </Principal>
+      <Dependent Role="FmsWorkSchedule">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="BusinessFieldId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsWorkSchedule__CmUser">
+    <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="1" />
+    <End Type="iBemsModel.FmsWorkSchedule" Role="FmsWorkSchedule" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmUser">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="UserId" />
+      </Principal>
+      <Dependent Role="FmsWorkSchedule">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="UpdateUserId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsWorkSchedule__FmsWorkCodeCycleUnit">
+    <End Type="iBemsModel.FmsWorkCodeCycleUnit" Role="FmsWorkCodeCycleUnit" Multiplicity="1" />
+    <End Type="iBemsModel.FmsWorkSchedule" Role="FmsWorkSchedule" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="FmsWorkCodeCycleUnit">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="CycleUnitId" />
+      </Principal>
+      <Dependent Role="FmsWorkSchedule">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="CycleUnitId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsWorkSchedule__FmsWorkCodeHolidayWorkType">
+    <End Type="iBemsModel.FmsWorkCodeHolidayWorkType" Role="FmsWorkCodeHolidayWorkType" Multiplicity="1" />
+    <End Type="iBemsModel.FmsWorkSchedule" Role="FmsWorkSchedule" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="FmsWorkCodeHolidayWorkType">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="HolidayWorkTypeId" />
+      </Principal>
+      <Dependent Role="FmsWorkSchedule">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="HolidayWorkTypeId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsWorkSchedule__FmsWorkCodeWorkType">
+    <End Type="iBemsModel.FmsWorkCodeType" Role="FmsWorkCodeType" Multiplicity="1" />
+    <End Type="iBemsModel.FmsWorkSchedule" Role="FmsWorkSchedule" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="FmsWorkCodeType">
+        <PropertyRef Name="WorkTypeId" />
+      </Principal>
+      <Dependent Role="FmsWorkSchedule">
+        <PropertyRef Name="WorkTypeId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsWorkRequest__FmsWorkSchedule">
+    <End Type="iBemsModel.FmsWorkSchedule" Role="FmsWorkSchedule" Multiplicity="0..1" />
+    <End Type="iBemsModel.FmsWorkRequest" Role="FmsWorkRequest" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="FmsWorkSchedule">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="WorkScheduleId" />
+      </Principal>
+      <Dependent Role="FmsWorkRequest">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="WorkScheduleId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsWorkScheduleToFacility__FmsWorkSchedule">
+    <End Type="iBemsModel.FmsWorkSchedule" Role="FmsWorkSchedule" Multiplicity="1" />
+    <End Type="iBemsModel.FmsWorkScheduleToFacility" Role="FmsWorkScheduleToFacility" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="FmsWorkSchedule">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="WorkScheduleId" />
+      </Principal>
+      <Dependent Role="FmsWorkScheduleToFacility">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="WorkScheduleId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <EntityType Name="CmMenu">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="MenuId" />
+    </Key>
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="MenuId" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
+    <Property Name="Used" Type="Boolean" />
+    <Property Name="MenuPath" Type="String" MaxLength="255" FixedLength="false" Unicode="true" />
+    <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
+    <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_CmMenu_CmSite" FromRole="CmMenu" ToRole="CmSite" />
+  </EntityType>
+  <Association Name="FK_FmsWorkResultCheckItem_CmFile">
+    <End Type="iBemsModel.CmFile" Role="CmFile" Multiplicity="0..1" />
+    <End Type="iBemsModel.FmsWorkResultCheckItem" Role="FmsWorkResultCheckItem" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmFile">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FileId" />
+      </Principal>
+      <Dependent Role="FmsWorkResultCheckItem">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FileId1" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsWorkResultCheckItem_CmFile1">
+    <End Type="iBemsModel.CmFile" Role="CmFile" Multiplicity="0..1" />
+    <End Type="iBemsModel.FmsWorkResultCheckItem" Role="FmsWorkResultCheckItem" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmFile">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FileId" />
+      </Principal>
+      <Dependent Role="FmsWorkResultCheckItem">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FileId2" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_CmMenu_CmSite">
+    <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
+    <End Type="iBemsModel.CmMenu" Role="CmMenu" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmSite">
+        <PropertyRef Name="SiteId" />
+      </Principal>
+      <Dependent Role="CmMenu">
+        <PropertyRef Name="SiteId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <EntityType Name="BemsChartInfo">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="FacilityTypeId" />
+      <PropertyRef Name="ChartId" />
+    </Key>
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
+    <Property Name="ChartId" Type="Int32" Nullable="false" />
+    <Property Name="LAxTitle" Type="String" Nullable="false" MaxLength="64" FixedLength="false" Unicode="true" />
+    <Property Name="RAxTitle" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
+    <Property Name="XAxTitle" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
+    <Property Name="XSFmId" Type="Int32" />
+    <Property Name="XSType" Type="String" MaxLength="16" FixedLength="false" Unicode="true" />
+    <Property Name="LSFmId1" Type="Int32" Nullable="false" />
+    <Property Name="LSName1" Type="String" Nullable="false" MaxLength="64" FixedLength="false" Unicode="true" />
+    <Property Name="LSType1" Type="String" Nullable="false" MaxLength="16" FixedLength="false" Unicode="true" />
+    <Property Name="LSFmId2" Type="Int32" />
+    <Property Name="LSName2" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
+    <Property Name="LSType2" Type="String" MaxLength="16" FixedLength="false" Unicode="true" />
+    <Property Name="LSFmId3" Type="Int32" />
+    <Property Name="LSName3" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
+    <Property Name="LSType3" Type="String" MaxLength="16" FixedLength="false" Unicode="true" />
+    <Property Name="LSFmId4" Type="Int32" />
+    <Property Name="LSName4" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
+    <Property Name="LSType4" Type="String" MaxLength="16" FixedLength="false" Unicode="true" />
+    <Property Name="RSFmId1" Type="Int32" />
+    <Property Name="RSName1" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
+    <Property Name="RSType1" Type="String" MaxLength="16" FixedLength="false" Unicode="true" />
+    <Property Name="RSFmId2" Type="Int32" />
+    <Property Name="RSName2" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
+    <Property Name="RSType2" Type="String" MaxLength="16" FixedLength="false" Unicode="true" />
+    <Property Name="RSFmId3" Type="Int32" />
+    <Property Name="RSName3" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
+    <Property Name="RSType3" Type="String" MaxLength="16" FixedLength="false" Unicode="true" />
+    <Property Name="RSFmId4" Type="Int32" />
+    <Property Name="RSName4" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
+    <Property Name="RSType4" Type="String" MaxLength="16" FixedLength="false" Unicode="true" />
+    <Property Name="Title" Type="String" Nullable="false" MaxLength="64" FixedLength="false" Unicode="true" />
+    <Property Name="UseX" Type="Boolean" />
+    <Property Name="UseLAxMinMax" Type="Boolean" />
+    <Property Name="UseRAxMinMax" Type="Boolean" />
+    <Property Name="UseXAxMinMax" Type="Boolean" />
+    <Property Name="LAxMin" Type="Double" />
+    <Property Name="LAxMax" Type="Double" />
+    <Property Name="RAxMin" Type="Double" />
+    <Property Name="RAxMax" Type="Double" />
+    <Property Name="XAxMin" Type="Double" />
+    <Property Name="XAxMax" Type="Double" />
+    <Property Name="Palette" Type="String" Nullable="false" MaxLength="32" FixedLength="false" Unicode="true" />
+    <Property Name="UseChart" Type="Boolean" />
+    <Property Name="UseLCTLine" Type="Boolean" Nullable="false" />
+    <Property Name="LCTLineTitle" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
+    <Property Name="LCTLineValue" Type="Double" />
+    <Property Name="UseRCTLine" Type="Boolean" Nullable="false" />
+    <Property Name="RCTLineTitle" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
+    <Property Name="RCTLineValue" Type="Double" />
+    <NavigationProperty Name="BemsFacilityType" Relationship="iBemsModel.FK_BemsChartInfo_BemsFacilityType" FromRole="BemsChartInfo" ToRole="BemsFacilityType" />
+    <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_BemsChartInfo_CmSite" FromRole="BemsChartInfo" ToRole="CmSite" />
+  </EntityType>
+  <Association Name="FK_BemsChartInfo_BemsFacilityType">
+    <End Type="iBemsModel.BemsFacilityType" Role="BemsFacilityType" Multiplicity="1" />
+    <End Type="iBemsModel.BemsChartInfo" Role="BemsChartInfo" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="BemsFacilityType">
+        <PropertyRef Name="FacilityTypeId" />
+      </Principal>
+      <Dependent Role="BemsChartInfo">
+        <PropertyRef Name="FacilityTypeId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_BemsChartInfo_CmSite">
+    <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
+    <End Type="iBemsModel.BemsChartInfo" Role="BemsChartInfo" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmSite">
+        <PropertyRef Name="SiteId" />
+      </Principal>
+      <Dependent Role="BemsChartInfo">
+        <PropertyRef Name="SiteId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <EntityType Name="BemsPeopleIncrease">
+    <Key>
+      <PropertyRef Name="Date" />
+      <PropertyRef Name="SiteId" />
+    </Key>
+    <Property Name="Date" Type="String" Nullable="false" MaxLength="5" FixedLength="false" Unicode="true" />
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="m1" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
+    <Property Name="m2" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
+    <Property Name="m3" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
+    <Property Name="m4" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
+    <Property Name="m5" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
+    <Property Name="m6" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
+    <Property Name="m7" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
+    <Property Name="m8" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
+    <Property Name="m9" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
+    <Property Name="m10" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
+    <Property Name="m11" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
+    <Property Name="m12" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
+    <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_BemsPeopleIncrease_CmSite" FromRole="BemsPeopleIncrease" ToRole="CmSite" />
+  </EntityType>
+  <EntityType Name="BemsPriceCode">
+    <Key>
+      <PropertyRef Name="PriceCode" />
+    </Key>
+    <Property Name="PriceCode" Type="String" Nullable="false" MaxLength="20" FixedLength="false" Unicode="false" />
+    <Property Name="PriceCodeDesc" Type="String" MaxLength="200" FixedLength="false" Unicode="false" />
+    <Property Name="FuelTypeId" Type="Int16" Nullable="false" />
+    <Property Name="Unit" Type="String" MaxLength="20" FixedLength="false" Unicode="false" />
+    <NavigationProperty Name="BemsSitePrice" Relationship="iBemsModel.FK_BemsSitePrice_BemsPriceCode" FromRole="BemsPriceCode" ToRole="BemsSitePrice" />
+    <NavigationProperty Name="BemsSitePriceHistory" Relationship="iBemsModel.FK_BemsSitePriceHistory_BemsPriceCode" FromRole="BemsPriceCode" ToRole="BemsSitePriceHistory" />
+    <NavigationProperty Name="BemsFuelType" Relationship="iBemsModel.FK_BemsPriceCode_BemsFuelType" FromRole="BemsPriceCode" ToRole="BemsFuelType" />
+  </EntityType>
+  <EntityType Name="BemsPriceFormula">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="PriceTypeId" />
+      <PropertyRef Name="FacilityTypeId" />
+      <PropertyRef Name="FormulaId" />
+      <PropertyRef Name="FacilityCode" />
+    </Key>
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="PriceTypeId" Type="Int32" Nullable="false" />
+    <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
+    <Property Name="FormulaId" Type="Int32" Nullable="false" />
+    <Property Name="FacilityCode" Type="Int32" Nullable="false" />
+    <Property Name="UseYN" Type="String" Nullable="false" MaxLength="1" FixedLength="false" Unicode="true" />
+    <NavigationProperty Name="BemsFormula" Relationship="iBemsModel.FK_BemsPriceFormula_BemsFormula" FromRole="BemsPriceFormula" ToRole="BemsFormula" />
+    <NavigationProperty Name="BemsPriceType" Relationship="iBemsModel.FK_BemsPriceFormula_BemsPriceType" FromRole="BemsPriceFormula" ToRole="BemsPriceType" />
+  </EntityType>
+  <EntityType Name="BemsPriceMeta">
+    <Key>
+      <PropertyRef Name="PriceTypeId" />
+      <PropertyRef Name="PublishDate" />
+    </Key>
+    <Property Name="PriceTypeId" Type="Int32" Nullable="false" />
+    <Property Name="PublishDate" Type="DateTime" Nullable="false" Precision="3" />
+    <Property Name="BasePrice" Type="Int32" />
+    <Property Name="C01_00" Type="Double" />
+    <Property Name="C01_01" Type="Double" />
+    <Property Name="C01_02" Type="Double" />
+    <Property Name="C01_03" Type="Double" />
+    <Property Name="C01_04" Type="Double" />
+    <Property Name="C01_05" Type="Double" />
+    <Property Name="C01_06" Type="Double" />
+    <Property Name="C01_07" Type="Double" />
+    <Property Name="C01_08" Type="Double" />
+    <Property Name="C01_09" Type="Double" />
+    <Property Name="C01_10" Type="Double" />
+    <Property Name="C01_11" Type="Double" />
+    <Property Name="C01_12" Type="Double" />
+    <Property Name="C01_13" Type="Double" />
+    <Property Name="C01_14" Type="Double" />
+    <Property Name="C01_15" Type="Double" />
+    <Property Name="C01_16" Type="Double" />
+    <Property Name="C01_17" Type="Double" />
+    <Property Name="C01_18" Type="Double" />
+    <Property Name="C01_19" Type="Double" />
+    <Property Name="C01_20" Type="Double" />
+    <Property Name="C01_21" Type="Double" />
+    <Property Name="C01_22" Type="Double" />
+    <Property Name="C01_23" Type="Double" />
+    <Property Name="C02_00" Type="Double" />
+    <Property Name="C02_01" Type="Double" />
+    <Property Name="C02_02" Type="Double" />
+    <Property Name="C02_03" Type="Double" />
+    <Property Name="C02_04" Type="Double" />
+    <Property Name="C02_05" Type="Double" />
+    <Property Name="C02_06" Type="Double" />
+    <Property Name="C02_07" Type="Double" />
+    <Property Name="C02_08" Type="Double" />
+    <Property Name="C02_09" Type="Double" />
+    <Property Name="C02_10" Type="Double" />
+    <Property Name="C02_11" Type="Double" />
+    <Property Name="C02_12" Type="Double" />
+    <Property Name="C02_13" Type="Double" />
+    <Property Name="C02_14" Type="Double" />
+    <Property Name="C02_15" Type="Double" />
+    <Property Name="C02_16" Type="Double" />
+    <Property Name="C02_17" Type="Double" />
+    <Property Name="C02_18" Type="Double" />
+    <Property Name="C02_19" Type="Double" />
+    <Property Name="C02_20" Type="Double" />
+    <Property Name="C02_21" Type="Double" />
+    <Property Name="C02_22" Type="Double" />
+    <Property Name="C02_23" Type="Double" />
+    <Property Name="C03_00" Type="Double" />
+    <Property Name="C03_01" Type="Double" />
+    <Property Name="C03_02" Type="Double" />
+    <Property Name="C03_03" Type="Double" />
+    <Property Name="C03_04" Type="Double" />
+    <Property Name="C03_05" Type="Double" />
+    <Property Name="C03_06" Type="Double" />
+    <Property Name="C03_07" Type="Double" />
+    <Property Name="C03_08" Type="Double" />
+    <Property Name="C03_09" Type="Double" />
+    <Property Name="C03_10" Type="Double" />
+    <Property Name="C03_11" Type="Double" />
+    <Property Name="C03_12" Type="Double" />
+    <Property Name="C03_13" Type="Double" />
+    <Property Name="C03_14" Type="Double" />
+    <Property Name="C03_15" Type="Double" />
+    <Property Name="C03_16" Type="Double" />
+    <Property Name="C03_17" Type="Double" />
+    <Property Name="C03_18" Type="Double" />
+    <Property Name="C03_19" Type="Double" />
+    <Property Name="C03_20" Type="Double" />
+    <Property Name="C03_21" Type="Double" />
+    <Property Name="C03_22" Type="Double" />
+    <Property Name="C03_23" Type="Double" />
+    <Property Name="C04_00" Type="Double" />
+    <Property Name="C04_01" Type="Double" />
+    <Property Name="C04_02" Type="Double" />
+    <Property Name="C04_03" Type="Double" />
+    <Property Name="C04_04" Type="Double" />
+    <Property Name="C04_05" Type="Double" />
+    <Property Name="C04_06" Type="Double" />
+    <Property Name="C04_07" Type="Double" />
+    <Property Name="C04_08" Type="Double" />
+    <Property Name="C04_09" Type="Double" />
+    <Property Name="C04_10" Type="Double" />
+    <Property Name="C04_11" Type="Double" />
+    <Property Name="C04_12" Type="Double" />
+    <Property Name="C04_13" Type="Double" />
+    <Property Name="C04_14" Type="Double" />
+    <Property Name="C04_15" Type="Double" />
+    <Property Name="C04_16" Type="Double" />
+    <Property Name="C04_17" Type="Double" />
+    <Property Name="C04_18" Type="Double" />
+    <Property Name="C04_19" Type="Double" />
+    <Property Name="C04_20" Type="Double" />
+    <Property Name="C04_21" Type="Double" />
+    <Property Name="C04_22" Type="Double" />
+    <Property Name="C04_23" Type="Double" />
+    <Property Name="C05_00" Type="Double" />
+    <Property Name="C05_01" Type="Double" />
+    <Property Name="C05_02" Type="Double" />
+    <Property Name="C05_03" Type="Double" />
+    <Property Name="C05_04" Type="Double" />
+    <Property Name="C05_05" Type="Double" />
+    <Property Name="C05_06" Type="Double" />
+    <Property Name="C05_07" Type="Double" />
+    <Property Name="C05_08" Type="Double" />
+    <Property Name="C05_09" Type="Double" />
+    <Property Name="C05_10" Type="Double" />
+    <Property Name="C05_11" Type="Double" />
+    <Property Name="C05_12" Type="Double" />
+    <Property Name="C05_13" Type="Double" />
+    <Property Name="C05_14" Type="Double" />
+    <Property Name="C05_15" Type="Double" />
+    <Property Name="C05_16" Type="Double" />
+    <Property Name="C05_17" Type="Double" />
+    <Property Name="C05_18" Type="Double" />
+    <Property Name="C05_19" Type="Double" />
+    <Property Name="C05_20" Type="Double" />
+    <Property Name="C05_21" Type="Double" />
+    <Property Name="C05_22" Type="Double" />
+    <Property Name="C05_23" Type="Double" />
+    <Property Name="C06_00" Type="Double" />
+    <Property Name="C06_01" Type="Double" />
+    <Property Name="C06_02" Type="Double" />
+    <Property Name="C06_03" Type="Double" />
+    <Property Name="C06_04" Type="Double" />
+    <Property Name="C06_05" Type="Double" />
+    <Property Name="C06_06" Type="Double" />
+    <Property Name="C06_07" Type="Double" />
+    <Property Name="C06_08" Type="Double" />
+    <Property Name="C06_09" Type="Double" />
+    <Property Name="C06_10" Type="Double" />
+    <Property Name="C06_11" Type="Double" />
+    <Property Name="C06_12" Type="Double" />
+    <Property Name="C06_13" Type="Double" />
+    <Property Name="C06_14" Type="Double" />
+    <Property Name="C06_15" Type="Double" />
+    <Property Name="C06_16" Type="Double" />
+    <Property Name="C06_17" Type="Double" />
+    <Property Name="C06_18" Type="Double" />
+    <Property Name="C06_19" Type="Double" />
+    <Property Name="C06_20" Type="Double" />
+    <Property Name="C06_21" Type="Double" />
+    <Property Name="C06_22" Type="Double" />
+    <Property Name="C06_23" Type="Double" />
+    <Property Name="C07_00" Type="Double" />
+    <Property Name="C07_01" Type="Double" />
+    <Property Name="C07_02" Type="Double" />
+    <Property Name="C07_03" Type="Double" />
+    <Property Name="C07_04" Type="Double" />
+    <Property Name="C07_05" Type="Double" />
+    <Property Name="C07_06" Type="Double" />
+    <Property Name="C07_07" Type="Double" />
+    <Property Name="C07_08" Type="Double" />
+    <Property Name="C07_09" Type="Double" />
+    <Property Name="C07_10" Type="Double" />
+    <Property Name="C07_11" Type="Double" />
+    <Property Name="C07_12" Type="Double" />
+    <Property Name="C07_13" Type="Double" />
+    <Property Name="C07_14" Type="Double" />
+    <Property Name="C07_15" Type="Double" />
+    <Property Name="C07_16" Type="Double" />
+    <Property Name="C07_17" Type="Double" />
+    <Property Name="C07_18" Type="Double" />
+    <Property Name="C07_19" Type="Double" />
+    <Property Name="C07_20" Type="Double" />
+    <Property Name="C07_21" Type="Double" />
+    <Property Name="C07_22" Type="Double" />
+    <Property Name="C07_23" Type="Double" />
+    <Property Name="C08_00" Type="Double" />
+    <Property Name="C08_01" Type="Double" />
+    <Property Name="C08_02" Type="Double" />
+    <Property Name="C08_03" Type="Double" />
+    <Property Name="C08_04" Type="Double" />
+    <Property Name="C08_05" Type="Double" />
+    <Property Name="C08_06" Type="Double" />
+    <Property Name="C08_07" Type="Double" />
+    <Property Name="C08_08" Type="Double" />
+    <Property Name="C08_09" Type="Double" />
+    <Property Name="C08_10" Type="Double" />
+    <Property Name="C08_11" Type="Double" />
+    <Property Name="C08_12" Type="Double" />
+    <Property Name="C08_13" Type="Double" />
+    <Property Name="C08_14" Type="Double" />
+    <Property Name="C08_15" Type="Double" />
+    <Property Name="C08_16" Type="Double" />
+    <Property Name="C08_17" Type="Double" />
+    <Property Name="C08_18" Type="Double" />
+    <Property Name="C08_19" Type="Double" />
+    <Property Name="C08_20" Type="Double" />
+    <Property Name="C08_21" Type="Double" />
+    <Property Name="C08_22" Type="Double" />
+    <Property Name="C08_23" Type="Double" />
+    <Property Name="C09_00" Type="Double" />
+    <Property Name="C09_01" Type="Double" />
+    <Property Name="C09_02" Type="Double" />
+    <Property Name="C09_03" Type="Double" />
+    <Property Name="C09_04" Type="Double" />
+    <Property Name="C09_05" Type="Double" />
+    <Property Name="C09_06" Type="Double" />
+    <Property Name="C09_07" Type="Double" />
+    <Property Name="C09_08" Type="Double" />
+    <Property Name="C09_09" Type="Double" />
+    <Property Name="C09_10" Type="Double" />
+    <Property Name="C09_11" Type="Double" />
+    <Property Name="C09_12" Type="Double" />
+    <Property Name="C09_13" Type="Double" />
+    <Property Name="C09_14" Type="Double" />
+    <Property Name="C09_15" Type="Double" />
+    <Property Name="C09_16" Type="Double" />
+    <Property Name="C09_17" Type="Double" />
+    <Property Name="C09_18" Type="Double" />
+    <Property Name="C09_19" Type="Double" />
+    <Property Name="C09_20" Type="Double" />
+    <Property Name="C09_21" Type="Double" />
+    <Property Name="C09_22" Type="Double" />
+    <Property Name="C09_23" Type="Double" />
+    <Property Name="C10_00" Type="Double" />
+    <Property Name="C10_01" Type="Double" />
+    <Property Name="C10_02" Type="Double" />
+    <Property Name="C10_03" Type="Double" />
+    <Property Name="C10_04" Type="Double" />
+    <Property Name="C10_05" Type="Double" />
+    <Property Name="C10_06" Type="Double" />
+    <Property Name="C10_07" Type="Double" />
+    <Property Name="C10_08" Type="Double" />
+    <Property Name="C10_09" Type="Double" />
+    <Property Name="C10_10" Type="Double" />
+    <Property Name="C10_11" Type="Double" />
+    <Property Name="C10_12" Type="Double" />
+    <Property Name="C10_13" Type="Double" />
+    <Property Name="C10_14" Type="Double" />
+    <Property Name="C10_15" Type="Double" />
+    <Property Name="C10_16" Type="Double" />
+    <Property Name="C10_17" Type="Double" />
+    <Property Name="C10_18" Type="Double" />
+    <Property Name="C10_19" Type="Double" />
+    <Property Name="C10_20" Type="Double" />
+    <Property Name="C10_21" Type="Double" />
+    <Property Name="C10_22" Type="Double" />
+    <Property Name="C10_23" Type="Double" />
+    <Property Name="C11_00" Type="Double" />
+    <Property Name="C11_01" Type="Double" />
+    <Property Name="C11_02" Type="Double" />
+    <Property Name="C11_03" Type="Double" />
+    <Property Name="C11_04" Type="Double" />
+    <Property Name="C11_05" Type="Double" />
+    <Property Name="C11_06" Type="Double" />
+    <Property Name="C11_07" Type="Double" />
+    <Property Name="C11_08" Type="Double" />
+    <Property Name="C11_09" Type="Double" />
+    <Property Name="C11_10" Type="Double" />
+    <Property Name="C11_11" Type="Double" />
+    <Property Name="C11_12" Type="Double" />
+    <Property Name="C11_13" Type="Double" />
+    <Property Name="C11_14" Type="Double" />
+    <Property Name="C11_15" Type="Double" />
+    <Property Name="C11_16" Type="Double" />
+    <Property Name="C11_17" Type="Double" />
+    <Property Name="C11_18" Type="Double" />
+    <Property Name="C11_19" Type="Double" />
+    <Property Name="C11_20" Type="Double" />
+    <Property Name="C11_21" Type="Double" />
+    <Property Name="C11_22" Type="Double" />
+    <Property Name="C11_23" Type="Double" />
+    <Property Name="C12_00" Type="Double" />
+    <Property Name="C12_01" Type="Double" />
+    <Property Name="C12_02" Type="Double" />
+    <Property Name="C12_03" Type="Double" />
+    <Property Name="C12_04" Type="Double" />
+    <Property Name="C12_05" Type="Double" />
+    <Property Name="C12_06" Type="Double" />
+    <Property Name="C12_07" Type="Double" />
+    <Property Name="C12_08" Type="Double" />
+    <Property Name="C12_09" Type="Double" />
+    <Property Name="C12_10" Type="Double" />
+    <Property Name="C12_11" Type="Double" />
+    <Property Name="C12_12" Type="Double" />
+    <Property Name="C12_13" Type="Double" />
+    <Property Name="C12_14" Type="Double" />
+    <Property Name="C12_15" Type="Double" />
+    <Property Name="C12_16" Type="Double" />
+    <Property Name="C12_17" Type="Double" />
+    <Property Name="C12_18" Type="Double" />
+    <Property Name="C12_19" Type="Double" />
+    <Property Name="C12_20" Type="Double" />
+    <Property Name="C12_21" Type="Double" />
+    <Property Name="C12_22" Type="Double" />
+    <Property Name="C12_23" Type="Double" />
+    <NavigationProperty Name="BemsPriceType" Relationship="iBemsModel.FK_BemsPriceMeta_BemsPriceType" FromRole="BemsPriceMeta" ToRole="BemsPriceType" />
+  </EntityType>
+  <EntityType Name="BemsPriceType">
+    <Key>
+      <PropertyRef Name="PriceTypeId" />
+    </Key>
+    <Property Name="PriceTypeId" Type="Int32" Nullable="false" />
+    <Property Name="PriceTypeIdDesc" Type="String" MaxLength="200" FixedLength="false" Unicode="false" />
+    <Property Name="FuelTypeId" Type="Int16" Nullable="false" />
+    <NavigationProperty Name="BemsPriceFormula" Relationship="iBemsModel.FK_BemsPriceFormula_BemsPriceType" FromRole="BemsPriceType" ToRole="BemsPriceFormula" />
+    <NavigationProperty Name="BemsPriceMeta" Relationship="iBemsModel.FK_BemsPriceMeta_BemsPriceType" FromRole="BemsPriceType" ToRole="BemsPriceMeta" />
+    <NavigationProperty Name="BemsSitePriceHistory" Relationship="iBemsModel.FK_BemsSitePriceHistory_BemsPriceType" FromRole="BemsPriceType" ToRole="BemsSitePriceHistory" />
+    <NavigationProperty Name="BemsSitePrice" Relationship="iBemsModel.FK_BemsSitePrice_BemsPriceType" FromRole="BemsPriceType" ToRole="BemsSitePrice" />
+    <NavigationProperty Name="BemsFuelType" Relationship="iBemsModel.FK_BemsPriceType_BemsFuelType1" FromRole="BemsPriceType" ToRole="BemsFuelType" />
+  </EntityType>
+  <EntityType Name="BemsRentalRate">
+    <Key>
+      <PropertyRef Name="Date" />
+      <PropertyRef Name="SiteId" />
+    </Key>
+    <Property Name="Date" Type="String" Nullable="false" MaxLength="5" FixedLength="false" Unicode="true" />
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="m1" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
+    <Property Name="m2" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
+    <Property Name="m3" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
+    <Property Name="m4" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
+    <Property Name="m5" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
+    <Property Name="m6" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
+    <Property Name="m7" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
+    <Property Name="m8" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
+    <Property Name="m9" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
+    <Property Name="m10" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
+    <Property Name="m11" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
+    <Property Name="m12" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
+    <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_BemsRentalRate_CmSite" FromRole="BemsRentalRate" ToRole="CmSite" />
+  </EntityType>
+  <EntityType Name="BemsSitePrice">
+    <Key>
+      <PropertyRef Name="SiteID" />
+      <PropertyRef Name="FuelTypeId" />
+      <PropertyRef Name="PriceTypeId" />
+      <PropertyRef Name="PriceCode" />
+    </Key>
+    <Property Name="SiteID" Type="Int32" Nullable="false" />
+    <Property Name="FuelTypeId" Type="Int16" Nullable="false" />
+    <Property Name="PriceTypeId" Type="Int32" Nullable="false" />
+    <Property Name="PriceCode" Type="String" Nullable="false" MaxLength="20" FixedLength="false" Unicode="false" />
+    <Property Name="UseYN" Type="String" Nullable="false" MaxLength="1" FixedLength="false" Unicode="false" />
+    <NavigationProperty Name="BemsPriceCode" Relationship="iBemsModel.FK_BemsSitePrice_BemsPriceCode" FromRole="BemsSitePrice" ToRole="BemsPriceCode" />
+    <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_BemsSitePrice_CmSite1" FromRole="BemsSitePrice" ToRole="CmSite" />
+    <NavigationProperty Name="BemsPriceType" Relationship="iBemsModel.FK_BemsSitePrice_BemsPriceType" FromRole="BemsSitePrice" ToRole="BemsPriceType" />
+    <NavigationProperty Name="BemsFuelType" Relationship="iBemsModel.FK_BemsSitePrice_BemsFuelType" FromRole="BemsSitePrice" ToRole="BemsFuelType" />
+  </EntityType>
+  <EntityType Name="BemsSitePriceHistory">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="FuelTypeId" />
+      <PropertyRef Name="PriceTypeId" />
+      <PropertyRef Name="PriceCode" />
+      <PropertyRef Name="PayDate" />
+    </Key>
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="FuelTypeId" Type="Int16" Nullable="false" />
+    <Property Name="PriceTypeId" Type="Int32" Nullable="false" />
+    <Property Name="PriceCode" Type="String" Nullable="false" MaxLength="20" FixedLength="false" Unicode="false" />
+    <Property Name="PriceValue" Type="String" MaxLength="200" FixedLength="false" Unicode="false" />
+    <Property Name="PayDate" Type="String" Nullable="false" MaxLength="6" FixedLength="false" Unicode="false" />
+    <Property Name="StartDate" Type="DateTime" Precision="3" />
+    <Property Name="EndDate" Type="DateTime" Precision="3" />
+    <Property Name="PayCharge" Type="String" MaxLength="200" FixedLength="false" Unicode="false" />
+    <NavigationProperty Name="BemsPriceCode" Relationship="iBemsModel.FK_BemsSitePriceHistory_BemsPriceCode" FromRole="BemsSitePriceHistory" ToRole="BemsPriceCode" />
+    <NavigationProperty Name="BemsPriceType" Relationship="iBemsModel.FK_BemsSitePriceHistory_BemsPriceType" FromRole="BemsSitePriceHistory" ToRole="BemsPriceType" />
+    <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_BemsSitePriceHistory_CmSite" FromRole="BemsSitePriceHistory" ToRole="CmSite" />
+    <NavigationProperty Name="BemsFuelType" Relationship="iBemsModel.FK_BemsSitePriceHistory_BemsFuelType" FromRole="BemsSitePriceHistory" ToRole="BemsFuelType" />
+  </EntityType>
+  <Association Name="FK_BemsPriceFormula_BemsFormula">
+    <End Type="iBemsModel.BemsFormula" Role="BemsFormula" Multiplicity="1" />
+    <End Type="iBemsModel.BemsPriceFormula" Role="BemsPriceFormula" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="BemsFormula">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FacilityTypeId" />
+        <PropertyRef Name="FacilityCode" />
+        <PropertyRef Name="FormulaId" />
+      </Principal>
+      <Dependent Role="BemsPriceFormula">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FacilityTypeId" />
+        <PropertyRef Name="FacilityCode" />
+        <PropertyRef Name="FormulaId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_BemsPeopleIncrease_CmSite">
+    <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
+    <End Type="iBemsModel.BemsPeopleIncrease" Role="BemsPeopleIncrease" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmSite">
+        <PropertyRef Name="SiteId" />
+      </Principal>
+      <Dependent Role="BemsPeopleIncrease">
+        <PropertyRef Name="SiteId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_BemsSitePrice_BemsPriceCode">
+    <End Type="iBemsModel.BemsPriceCode" Role="BemsPriceCode" Multiplicity="1" />
+    <End Type="iBemsModel.BemsSitePrice" Role="BemsSitePrice" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="BemsPriceCode">
+        <PropertyRef Name="PriceCode" />
+      </Principal>
+      <Dependent Role="BemsSitePrice">
+        <PropertyRef Name="PriceCode" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_BemsSitePriceHistory_BemsPriceCode">
+    <End Type="iBemsModel.BemsPriceCode" Role="BemsPriceCode" Multiplicity="1" />
+    <End Type="iBemsModel.BemsSitePriceHistory" Role="BemsSitePriceHistory" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="BemsPriceCode">
+        <PropertyRef Name="PriceCode" />
+      </Principal>
+      <Dependent Role="BemsSitePriceHistory">
+        <PropertyRef Name="PriceCode" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_BemsPriceFormula_BemsPriceType">
+    <End Type="iBemsModel.BemsPriceType" Role="BemsPriceType" Multiplicity="1" />
+    <End Type="iBemsModel.BemsPriceFormula" Role="BemsPriceFormula" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="BemsPriceType">
+        <PropertyRef Name="PriceTypeId" />
+      </Principal>
+      <Dependent Role="BemsPriceFormula">
+        <PropertyRef Name="PriceTypeId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_BemsPriceMeta_BemsPriceType">
+    <End Type="iBemsModel.BemsPriceType" Role="BemsPriceType" Multiplicity="1" />
+    <End Type="iBemsModel.BemsPriceMeta" Role="BemsPriceMeta" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="BemsPriceType">
+        <PropertyRef Name="PriceTypeId" />
+      </Principal>
+      <Dependent Role="BemsPriceMeta">
+        <PropertyRef Name="PriceTypeId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_BemsSitePriceHistory_BemsPriceType">
+    <End Type="iBemsModel.BemsPriceType" Role="BemsPriceType" Multiplicity="1" />
+    <End Type="iBemsModel.BemsSitePriceHistory" Role="BemsSitePriceHistory" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="BemsPriceType">
+        <PropertyRef Name="PriceTypeId" />
+      </Principal>
+      <Dependent Role="BemsSitePriceHistory">
+        <PropertyRef Name="PriceTypeId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_BemsRentalRate_CmSite">
+    <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
+    <End Type="iBemsModel.BemsRentalRate" Role="BemsRentalRate" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmSite">
+        <PropertyRef Name="SiteId" />
+      </Principal>
+      <Dependent Role="BemsRentalRate">
+        <PropertyRef Name="SiteId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_BemsSitePrice_CmSite1">
+    <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
+    <End Type="iBemsModel.BemsSitePrice" Role="BemsSitePrice" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmSite">
+        <PropertyRef Name="SiteId" />
+      </Principal>
+      <Dependent Role="BemsSitePrice">
+        <PropertyRef Name="SiteID" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_BemsSitePriceHistory_CmSite">
+    <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
+    <End Type="iBemsModel.BemsSitePriceHistory" Role="BemsSitePriceHistory" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmSite">
+        <PropertyRef Name="SiteId" />
+      </Principal>
+      <Dependent Role="BemsSitePriceHistory">
+        <PropertyRef Name="SiteId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_BemsSitePrice_BemsPriceType">
+    <End Type="iBemsModel.BemsPriceType" Role="BemsPriceType" Multiplicity="1" />
+    <End Type="iBemsModel.BemsSitePrice" Role="BemsSitePrice" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="BemsPriceType">
+        <PropertyRef Name="PriceTypeId" />
+      </Principal>
+      <Dependent Role="BemsSitePrice">
+        <PropertyRef Name="PriceTypeId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <EntityType Name="BemsMonitoringPointConfig">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="FacilityCode" />
+      <PropertyRef Name="PropertyId" />
+    </Key>
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
+    <Property Name="FacilityCode" Type="Int32" Nullable="false" />
+    <Property Name="PropertyId" Type="Int32" Nullable="false" />
+    <Property Name="IsAccumulated" Type="Boolean" Nullable="false" />
+    <Property Name="IsSampled" Type="Boolean" Nullable="false" />
+    <Property Name="SaveMode" Type="Int32" Nullable="false" />
+    <Property Name="ControlPointName" Type="String" MaxLength="200" FixedLength="false" Unicode="true" />
+    <Property Name="IsConverted" Type="Boolean" />
+    <NavigationProperty Name="BemsFacilityType" Relationship="iBemsModel.FK_BemsMonitoringPointConfig_BemsFacilityType1" FromRole="BemsMonitoringPointConfig" ToRole="BemsFacilityType" />
+    <NavigationProperty Name="BemsMonitoringPoint" Relationship="iBemsModel.FK_BemsMonitoringPointConfig_BemsMonitoringPoint" FromRole="BemsMonitoringPointConfig" ToRole="BemsMonitoringPoint" />
+  </EntityType>
+  <Association Name="FK_BemsMonitoringPointConfig_BemsFacilityType1">
+    <End Type="iBemsModel.BemsFacilityType" Role="BemsFacilityType" Multiplicity="1" />
+    <End Type="iBemsModel.BemsMonitoringPointConfig" Role="BemsMonitoringPointConfig" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="BemsFacilityType">
+        <PropertyRef Name="FacilityTypeId" />
+      </Principal>
+      <Dependent Role="BemsMonitoringPointConfig">
+        <PropertyRef Name="FacilityTypeId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_BemsMonitoringPointConfig_BemsMonitoringPoint">
+    <End Type="iBemsModel.BemsMonitoringPoint" Role="BemsMonitoringPoint" Multiplicity="1" />
+    <End Type="iBemsModel.BemsMonitoringPointConfig" Role="BemsMonitoringPointConfig" Multiplicity="0..1" />
+    <ReferentialConstraint>
+      <Principal Role="BemsMonitoringPoint">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FacilityCode" />
+        <PropertyRef Name="PropertyId" />
+      </Principal>
+      <Dependent Role="BemsMonitoringPointConfig">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FacilityCode" />
+        <PropertyRef Name="PropertyId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <EntityType Name="BemsAlarmSetting">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="FacilityTypeId" />
+      <PropertyRef Name="FacilityCode" />
+      <PropertyRef Name="PropertyId" />
+      <PropertyRef Name="FormulaId" />
+    </Key>
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
+    <Property Name="FacilityCode" Type="Int32" Nullable="false" />
+    <Property Name="PropertyId" Type="Int32" Nullable="false" />
+    <Property Name="FormulaId" Type="Int32" Nullable="false" />
+    <Property Name="FacilityName" Type="String" Nullable="false" MaxLength="80" FixedLength="false" Unicode="true" />
+    <Property Name="PointName" Type="String" Nullable="false" MaxLength="64" FixedLength="false" Unicode="true" />
+    <Property Name="UseUpperLimit" Type="Boolean" Nullable="false" />
+    <Property Name="UpperLimit" Type="Double" />
+    <Property Name="UseLowerLimit" Type="Boolean" Nullable="false" />
+    <Property Name="LowerLimit" Type="Double" />
+    <Property Name="UseAlarm" Type="Boolean" Nullable="false" />
+    <Property Name="UseSMS" Type="Boolean" Nullable="false" />
+    <Property Name="UseEmail" Type="Boolean" Nullable="false" />
+    <Property Name="AlarmGroupName" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
+    <Property Name="Content" Type="String" MaxLength="1000" FixedLength="false" Unicode="true" />
+    <NavigationProperty Name="BemsFacilityType" Relationship="iBemsModel.FK_BemsAlarmSetting_BemsFacilityType" FromRole="BemsAlarmSetting" ToRole="BemsFacilityType" />
+    <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_BemsAlarmSetting_CmSite1" FromRole="BemsAlarmSetting" ToRole="CmSite" />
+    <NavigationProperty Name="BemsAlarmLog" Relationship="iBemsModel.FK_BemsAlarmLog_BemsAlarmSetting" FromRole="BemsAlarmSetting" ToRole="BemsAlarmLog" />
+    <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK_BemsAlarmSetting_CmFacility" FromRole="BemsAlarmSetting" ToRole="CmFacility" />
+  </EntityType>
+  <Association Name="FK_BemsAlarmSetting_BemsFacilityType">
+    <End Type="iBemsModel.BemsFacilityType" Role="BemsFacilityType" Multiplicity="1" />
+    <End Type="iBemsModel.BemsAlarmSetting" Role="BemsAlarmSetting" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="BemsFacilityType">
+        <PropertyRef Name="FacilityTypeId" />
+      </Principal>
+      <Dependent Role="BemsAlarmSetting">
+        <PropertyRef Name="FacilityTypeId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_BemsAlarmSetting_CmSite1">
+    <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
+    <End Type="iBemsModel.BemsAlarmSetting" Role="BemsAlarmSetting" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmSite">
+        <PropertyRef Name="SiteId" />
+      </Principal>
+      <Dependent Role="BemsAlarmSetting">
+        <PropertyRef Name="SiteId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <EntityType Name="BemsAlarmLog">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="FacilityTypeId" />
+      <PropertyRef Name="FacilityCode" />
+      <PropertyRef Name="PropertyId" />
+      <PropertyRef Name="FormulaId" />
+      <PropertyRef Name="CreatedDateTime" />
+    </Key>
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
+    <Property Name="FacilityCode" Type="Int32" Nullable="false" />
+    <Property Name="PropertyId" Type="Int32" Nullable="false" />
+    <Property Name="FormulaId" Type="Int32" Nullable="false" />
+    <Property Name="CreatedDateTime" Type="DateTime" Nullable="false" Precision="3" />
+    <Property Name="CurrentValue" Type="Double" />
+    <Property Name="SMSResult" Type="String" MaxLength="2" FixedLength="false" Unicode="true" />
+    <Property Name="EmailResult" Type="String" MaxLength="2" FixedLength="false" Unicode="true" />
+    <Property Name="Conform" Type="Boolean" />
+    <NavigationProperty Name="BemsAlarmSetting" Relationship="iBemsModel.FK_BemsAlarmLog_BemsAlarmSetting" FromRole="BemsAlarmLog" ToRole="BemsAlarmSetting" />
+  </EntityType>
+  <Association Name="FK_BemsAlarmLog_BemsAlarmSetting">
+    <End Type="iBemsModel.BemsAlarmSetting" Role="BemsAlarmSetting" Multiplicity="1" />
+    <End Type="iBemsModel.BemsAlarmLog" Role="BemsAlarmLog" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="BemsAlarmSetting">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FacilityTypeId" />
+        <PropertyRef Name="FacilityCode" />
+        <PropertyRef Name="PropertyId" />
+        <PropertyRef Name="FormulaId" />
+      </Principal>
+      <Dependent Role="BemsAlarmLog">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FacilityTypeId" />
+        <PropertyRef Name="FacilityCode" />
+        <PropertyRef Name="PropertyId" />
+        <PropertyRef Name="FormulaId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <EntityType Name="BemsAlarmGroup">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="AlarmGroupId" />
+    </Key>
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="AlarmGroupId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+    <Property Name="Name" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
+  </EntityType>
+  <EntityType Name="BemsAlarmGroupUser">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="AlarmGroupId" />
+      <PropertyRef Name="UserId" />
+    </Key>
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="AlarmGroupId" Type="Int32" Nullable="false" />
+    <Property Name="UserId" Type="String" Nullable="false" MaxLength="24" FixedLength="false" Unicode="true" />
+  </EntityType>
+  <EntityType Name="BemsEnergyCost">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="FacilityCode" />
+    </Key>
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
+    <Property Name="FacilityCode" Type="Int32" Nullable="false" />
+    <Property Name="PowerConsumption1" Type="Double" />
+    <Property Name="PowerConsumption2" Type="Double" />
+    <Property Name="GasConsumption" Type="Double" />
+    <Property Name="GasHeatQuantity" Type="Double" />
+    <Property Name="PowerPriceTypeId" Type="Int32" />
+    <Property Name="GasPriceTypeId" Type="Int32" />
+    <Property Name="IsUse" Type="Boolean" />
+    <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK_BemsEnergyCost_CmFacility" FromRole="BemsEnergyCost" ToRole="CmFacility" />
+  </EntityType>
+  <EntityType Name="BemsEnergyConfigPercentMonth">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="Year" />
+      <PropertyRef Name="Month" />
+    </Key>
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="Year" Type="Int32" Nullable="false" />
+    <Property Name="Month" Type="Int32" Nullable="false" />
+    <Property Name="Electricity" Type="Double" />
+    <Property Name="Gas" Type="Double" />
+    <Property Name="Water" Type="Double" />
+    <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__BemsEnerg__SiteI__7954A4F6" FromRole="BemsEnergyConfigPercentMonth" ToRole="CmSite" />
+  </EntityType>
+  <EntityType Name="BemsEnergyConfigPercentWeek">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="Year" />
+      <PropertyRef Name="Week" />
+    </Key>
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="Year" Type="Int32" Nullable="false" />
+    <Property Name="Week" Type="Int32" Nullable="false" />
+    <Property Name="Electricity" Type="Double" />
+    <Property Name="Gas" Type="Double" />
+    <Property Name="Water" Type="Double" />
+    <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__BemsEnerg__SiteI__7C3111A1" FromRole="BemsEnergyConfigPercentWeek" ToRole="CmSite" />
+  </EntityType>
+  <Association Name="FK__BemsEnerg__SiteI__7954A4F6">
+    <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
+    <End Type="iBemsModel.BemsEnergyConfigPercentMonth" Role="BemsEnergyConfigPercentMonth" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmSite">
+        <PropertyRef Name="SiteId" />
+      </Principal>
+      <Dependent Role="BemsEnergyConfigPercentMonth">
+        <PropertyRef Name="SiteId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__BemsEnerg__SiteI__7C3111A1">
+    <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
+    <End Type="iBemsModel.BemsEnergyConfigPercentWeek" Role="BemsEnergyConfigPercentWeek" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmSite">
+        <PropertyRef Name="SiteId" />
+      </Principal>
+      <Dependent Role="BemsEnergyConfigPercentWeek">
+        <PropertyRef Name="SiteId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <EntityType Name="BemsEnergyDaily">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="BuildingId" />
+      <PropertyRef Name="ServiceTypeId" />
+      <PropertyRef Name="FuelTypeId" />
+      <PropertyRef Name="CreatedDate" />
+    </Key>
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="BuildingId" Type="Int32" Nullable="false" />
+    <Property Name="ServiceTypeId" Type="Int16" Nullable="false" />
+    <Property Name="FuelTypeId" Type="Int16" Nullable="false" />
+    <Property Name="CreatedDate" Type="DateTime" Nullable="false" Precision="0" />
+    <Property Name="Prediction" Type="Double" />
+    <Property Name="Measurement" Type="Double" />
+    <Property Name="Goal" Type="Double" />
+    <Property Name="Prediction_Regression" Type="Double" />
+    <Property Name="MeanT" Type="Double" />
+    <Property Name="HDD" Type="Double" />
+    <Property Name="CDD" Type="Double" />
+    <NavigationProperty Name="BemsServiceType" Relationship="iBemsModel.FK__BemsEnergyDaily__BemsServiceType" FromRole="BemsEnergyDaily" ToRole="BemsServiceType" />
+    <NavigationProperty Name="CmBuilding" Relationship="iBemsModel.FK__BemsEnergyDaily__CmBuilding" FromRole="BemsEnergyDaily" ToRole="CmBuilding" />
+    <NavigationProperty Name="BemsFuelType" Relationship="iBemsModel.FK__BemsEnergyDaily__BemsFuelType" FromRole="BemsEnergyDaily" ToRole="BemsFuelType" />
+  </EntityType>
+  <Association Name="FK__BemsEnergyDaily__BemsServiceType">
+    <End Type="iBemsModel.BemsServiceType" Role="BemsServiceType" Multiplicity="1" />
+    <End Type="iBemsModel.BemsEnergyDaily" Role="BemsEnergyDaily" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="BemsServiceType">
+        <PropertyRef Name="ServiceTypeId" />
+      </Principal>
+      <Dependent Role="BemsEnergyDaily">
+        <PropertyRef Name="ServiceTypeId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__BemsEnergyDaily__CmBuilding">
+    <End Type="iBemsModel.CmBuilding" Role="CmBuilding" Multiplicity="1" />
+    <End Type="iBemsModel.BemsEnergyDaily" Role="BemsEnergyDaily" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmBuilding">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="BuildingId" />
+      </Principal>
+      <Dependent Role="BemsEnergyDaily">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="BuildingId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <EntityType Name="BemsEnergyDailyRegression">
+    <Key>
+      <PropertyRef Name="SiteId" />
+    </Key>
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="Weekday_Power" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
+    <Property Name="Weekday_Power_Temp" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
+    <Property Name="Weekday_Gas" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
+    <Property Name="Weekday_Gas_Temp" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
+    <Property Name="Weekday_Water" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
+    <Property Name="Weekday_Water_Temp" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
+    <Property Name="Holiday_Power" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
+    <Property Name="Holiday_Power_Temp" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
+    <Property Name="Holiday_Gas" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
+    <Property Name="Holiday_Gas_Temp" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
+    <Property Name="Holiday_Water" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
+    <Property Name="Holiday_Water_Temp" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
+    <Property Name="IsRegression" Type="Boolean" />
+    <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_BemsEnergyDailyRegression_CmSite" FromRole="BemsEnergyDailyRegression" ToRole="CmSite" />
+  </EntityType>
+  <Association Name="FK_BemsEnergyDailyRegression_CmSite">
+    <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
+    <End Type="iBemsModel.BemsEnergyDailyRegression" Role="BemsEnergyDailyRegression" Multiplicity="0..1" />
+    <ReferentialConstraint>
+      <Principal Role="CmSite">
+        <PropertyRef Name="SiteId" />
+      </Principal>
+      <Dependent Role="BemsEnergyDailyRegression">
+        <PropertyRef Name="SiteId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <EntityType Name="WeatherDongNaeForecast">
+    <Key>
+      <PropertyRef Name="BaseTime" />
+      <PropertyRef Name="ForecastTime" />
+    </Key>
+    <Property Name="BaseTime" Type="DateTime" Nullable="false" Precision="3" />
+    <Property Name="nx" Type="Int32" />
+    <Property Name="ny" Type="Int32" />
+    <Property Name="ForecastTime" Type="DateTime" Nullable="false" Precision="3" />
+    <Property Name="POP" Type="Double" />
+    <Property Name="PTY" Type="Double" />
+    <Property Name="R06" Type="Double" />
+    <Property Name="REH" Type="Double" />
+    <Property Name="S06" Type="Double" />
+    <Property Name="SKY" Type="Double" />
+    <Property Name="T3H" Type="Double" />
+    <Property Name="TMN" Type="Double" />
+    <Property Name="TMX" Type="Double" />
+    <Property Name="UUU" Type="Double" />
+    <Property Name="VVV" Type="Double" />
+    <Property Name="VEC" Type="Double" />
+    <Property Name="WSD" Type="Double" />
+    <Property Name="Type" Type="Int32" />
+    <Property Name="DBTime" Type="DateTime" Precision="3" />
+    <Property Name="Version" Type="Int32" />
+  </EntityType>
+  <EntityType Name="FmsEquipmentRentInfo">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="EquipmentRentId" />
+    </Key>
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="EquipmentRentId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+    <Property Name="RegisterUserId" Type="String" Nullable="false" MaxLength="24" FixedLength="false" Unicode="true" />
+    <Property Name="RentUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
+    <Property Name="RegisterDate" Type="String" MaxLength="10" FixedLength="true" Unicode="true" />
+    <Property Name="RentDate" Type="DateTime" Precision="3" />
+    <Property Name="ReturnDueDate" Type="DateTime" Precision="3" />
+    <Property Name="ReturnFixDate" Type="DateTime" Precision="3" />
+    <Property Name="EquipmentStateTypeId" Type="Int16" />
+    <Property Name="Comment" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
+    <Property Name="Title" Type="String" Nullable="false" MaxLength="128" FixedLength="false" Unicode="true" />
+    <Property Name="RentUser" Type="String" MaxLength="128" FixedLength="false" Unicode="true" />
+    <NavigationProperty Name="CmUser" Relationship="iBemsModel.FK_FmsEquipmentRentInfo_CmUser" FromRole="FmsEquipmentRentInfo" ToRole="CmUser" />
+    <NavigationProperty Name="CmUser1" Relationship="iBemsModel.FK_FmsEquipmentRentInfo_CmUser1" FromRole="FmsEquipmentRentInfo" ToRole="CmUser" />
+    <NavigationProperty Name="FmsEquipmentCodeStateType" Relationship="iBemsModel.FK_FmsEquipmentRentInfo_FmsEquipmentCodeStateType" FromRole="FmsEquipmentRentInfo" ToRole="FmsEquipmentCodeStateType" />
+    <NavigationProperty Name="FmsEquipmentHistory" Relationship="iBemsModel.FK_FmsEquipmentHistory_FmsEquipmentRentInfo" FromRole="FmsEquipmentRentInfo" ToRole="FmsEquipmentHistory" />
+  </EntityType>
+  <Association Name="FK_FmsEquipmentRentInfo_CmUser">
+    <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="1" />
+    <End Type="iBemsModel.FmsEquipmentRentInfo" Role="FmsEquipmentRentInfo" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmUser">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="UserId" />
+      </Principal>
+      <Dependent Role="FmsEquipmentRentInfo">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="RegisterUserId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsEquipmentRentInfo_CmUser1">
+    <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="0..1" />
+    <End Type="iBemsModel.FmsEquipmentRentInfo" Role="FmsEquipmentRentInfo" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmUser">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="UserId" />
+      </Principal>
+      <Dependent Role="FmsEquipmentRentInfo">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="RentUserId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsEquipmentRentInfo_FmsEquipmentCodeStateType">
+    <End Type="iBemsModel.FmsEquipmentCodeStateType" Role="FmsEquipmentCodeStateType" Multiplicity="0..1" />
+    <End Type="iBemsModel.FmsEquipmentRentInfo" Role="FmsEquipmentRentInfo" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="FmsEquipmentCodeStateType">
+        <PropertyRef Name="EquipmentStateTypeId" />
+      </Principal>
+      <Dependent Role="FmsEquipmentRentInfo">
+        <PropertyRef Name="EquipmentStateTypeId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsEquipmentHistory_FmsEquipmentRentInfo">
+    <End Type="iBemsModel.FmsEquipmentRentInfo" Role="FmsEquipmentRentInfo" Multiplicity="0..1">
+      <OnDelete Action="Cascade" />
+    </End>
+    <End Type="iBemsModel.FmsEquipmentHistory" Role="FmsEquipmentHistory" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="FmsEquipmentRentInfo">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="EquipmentRentId" />
+      </Principal>
+      <Dependent Role="FmsEquipmentHistory">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="EquipmentRentId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <EntityType Name="BemsControlAHUTempConfig">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="FacilityTypeId" />
+      <PropertyRef Name="FacilityCode" />
+    </Key>
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
+    <Property Name="FacilityCode" Type="Int32" Nullable="false" />
+    <Property Name="MaxTemperature" Type="Double" Nullable="false" />
+    <Property Name="MinTemperature" Type="Double" Nullable="false" />
+  </EntityType>
+  <EntityType Name="BemsFuelType">
+    <Key>
+      <PropertyRef Name="FuelTypeId" />
+    </Key>
+    <Property Name="FuelTypeId" Type="Int16" Nullable="false" />
+    <Property Name="Name" Type="String" MaxLength="48" FixedLength="false" Unicode="true" />
+    <NavigationProperty Name="BemsEnergyDaily" Relationship="iBemsModel.FK__BemsEnergyDaily__BemsFuelType" FromRole="BemsFuelType" ToRole="BemsEnergyDaily" />
+    <NavigationProperty Name="BemsFactorCo2" Relationship="iBemsModel.FK__BemsFactorCo2__BemsFuelType" FromRole="BemsFuelType" ToRole="BemsFactorCo2" />
+    <NavigationProperty Name="BemsFactorToe" Relationship="iBemsModel.FK__BemsFactorToe__BemsFuelType" FromRole="BemsFuelType" ToRole="BemsFactorToe" />
+    <NavigationProperty Name="BemsMonitoringPoint" Relationship="iBemsModel.FK__BemsMonitoringPoint__BemsFuelType" FromRole="BemsFuelType" ToRole="BemsMonitoringPoint" />
+    <NavigationProperty Name="BemsMonitoringPointBaseData" Relationship="iBemsModel.FK__BemsMonitoringPointBaseData__BemsFuelType" FromRole="BemsFuelType" ToRole="BemsMonitoringPointBaseData" />
+    <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK_CmFacility_BemsFuelType" FromRole="BemsFuelType" ToRole="CmFacility" />
+    <NavigationProperty Name="BemsNoticePriceContractType" Relationship="iBemsModel.FK__BemsNoticePriceContractType__BemsFuelType" FromRole="BemsFuelType" ToRole="BemsNoticePriceContractType" />
+    <NavigationProperty Name="BemsPriceCode" Relationship="iBemsModel.FK_BemsPriceCode_BemsFuelType" FromRole="BemsFuelType" ToRole="BemsPriceCode" />
+    <NavigationProperty Name="BemsPriceType" Relationship="iBemsModel.FK_BemsPriceType_BemsFuelType1" FromRole="BemsFuelType" ToRole="BemsPriceType" />
+    <NavigationProperty Name="BemsSitePrice" Relationship="iBemsModel.FK_BemsSitePrice_BemsFuelType" FromRole="BemsFuelType" ToRole="BemsSitePrice" />
+    <NavigationProperty Name="BemsSitePriceHistory" Relationship="iBemsModel.FK_BemsSitePriceHistory_BemsFuelType" FromRole="BemsFuelType" ToRole="BemsSitePriceHistory" />
+  </EntityType>
+  <Association Name="FK__BemsEnergyDaily__BemsFuelType">
+    <End Type="iBemsModel.BemsFuelType" Role="BemsFuelType" Multiplicity="1" />
+    <End Type="iBemsModel.BemsEnergyDaily" Role="BemsEnergyDaily" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="BemsFuelType">
+        <PropertyRef Name="FuelTypeId" />
+      </Principal>
+      <Dependent Role="BemsEnergyDaily">
+        <PropertyRef Name="FuelTypeId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__BemsFactorCo2__BemsFuelType">
+    <End Type="iBemsModel.BemsFuelType" Role="BemsFuelType" Multiplicity="1" />
+    <End Type="iBemsModel.BemsFactorCo2" Role="BemsFactorCo2" Multiplicity="0..1" />
+    <ReferentialConstraint>
+      <Principal Role="BemsFuelType">
+        <PropertyRef Name="FuelTypeId" />
+      </Principal>
+      <Dependent Role="BemsFactorCo2">
+        <PropertyRef Name="FuelTypeId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__BemsFactorToe__BemsFuelType">
+    <End Type="iBemsModel.BemsFuelType" Role="BemsFuelType" Multiplicity="1" />
+    <End Type="iBemsModel.BemsFactorToe" Role="BemsFactorToe" Multiplicity="0..1" />
+    <ReferentialConstraint>
+      <Principal Role="BemsFuelType">
+        <PropertyRef Name="FuelTypeId" />
+      </Principal>
+      <Dependent Role="BemsFactorToe">
+        <PropertyRef Name="FuelTypeId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__BemsMonitoringPoint__BemsFuelType">
+    <End Type="iBemsModel.BemsFuelType" Role="BemsFuelType" Multiplicity="0..1" />
+    <End Type="iBemsModel.BemsMonitoringPoint" Role="BemsMonitoringPoint" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="BemsFuelType">
+        <PropertyRef Name="FuelTypeId" />
+      </Principal>
+      <Dependent Role="BemsMonitoringPoint">
+        <PropertyRef Name="FuelTypeId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__BemsMonitoringPointBaseData__BemsFuelType">
+    <End Type="iBemsModel.BemsFuelType" Role="BemsFuelType" Multiplicity="0..1" />
+    <End Type="iBemsModel.BemsMonitoringPointBaseData" Role="BemsMonitoringPointBaseData" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="BemsFuelType">
+        <PropertyRef Name="FuelTypeId" />
+      </Principal>
+      <Dependent Role="BemsMonitoringPointBaseData">
+        <PropertyRef Name="FuelTypeId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__BemsNoticePriceContractType__BemsFuelType">
+    <End Type="iBemsModel.BemsFuelType" Role="BemsFuelType" Multiplicity="1" />
+    <End Type="iBemsModel.BemsNoticePriceContractType" Role="BemsNoticePriceContractType" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="BemsFuelType">
+        <PropertyRef Name="FuelTypeId" />
+      </Principal>
+      <Dependent Role="BemsNoticePriceContractType">
+        <PropertyRef Name="FuelTypeId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_BemsPriceCode_BemsFuelType">
+    <End Type="iBemsModel.BemsFuelType" Role="BemsFuelType" Multiplicity="1" />
+    <End Type="iBemsModel.BemsPriceCode" Role="BemsPriceCode" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="BemsFuelType">
+        <PropertyRef Name="FuelTypeId" />
+      </Principal>
+      <Dependent Role="BemsPriceCode">
+        <PropertyRef Name="FuelTypeId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_BemsPriceType_BemsFuelType1">
+    <End Type="iBemsModel.BemsFuelType" Role="BemsFuelType" Multiplicity="1" />
+    <End Type="iBemsModel.BemsPriceType" Role="BemsPriceType" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="BemsFuelType">
+        <PropertyRef Name="FuelTypeId" />
+      </Principal>
+      <Dependent Role="BemsPriceType">
+        <PropertyRef Name="FuelTypeId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_BemsSitePrice_BemsFuelType">
+    <End Type="iBemsModel.BemsFuelType" Role="BemsFuelType" Multiplicity="1" />
+    <End Type="iBemsModel.BemsSitePrice" Role="BemsSitePrice" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="BemsFuelType">
+        <PropertyRef Name="FuelTypeId" />
+      </Principal>
+      <Dependent Role="BemsSitePrice">
+        <PropertyRef Name="FuelTypeId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_BemsSitePriceHistory_BemsFuelType">
+    <End Type="iBemsModel.BemsFuelType" Role="BemsFuelType" Multiplicity="1" />
+    <End Type="iBemsModel.BemsSitePriceHistory" Role="BemsSitePriceHistory" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="BemsFuelType">
+        <PropertyRef Name="FuelTypeId" />
+      </Principal>
+      <Dependent Role="BemsSitePriceHistory">
+        <PropertyRef Name="FuelTypeId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <EntityType Name="CmFacility">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="FacilityCode" />
+    </Key>
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
+    <Property Name="FacilityCode" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+    <Property Name="FirstClassId" Type="Int32" />
+    <Property Name="SecondClassId" Type="Int32" />
+    <Property Name="ThirdClassId" Type="Int32" />
+    <Property Name="DeviceType" Type="String" MaxLength="48" FixedLength="false" Unicode="true" />
+    <Property Name="ParentFacilityCode" Type="Int32" />
+    <Property Name="Name" Type="String" Nullable="false" MaxLength="80" FixedLength="false" Unicode="true" />
+    <Property Name="Nickname" Type="String" MaxLength="40" FixedLength="false" Unicode="true" />
+    <Property Name="Rfid" Type="String" MaxLength="52" FixedLength="false" Unicode="true" />
+    <Property Name="Manufacturer" Type="String" MaxLength="40" FixedLength="false" Unicode="true" />
+    <Property Name="ManufactureDate" Type="DateTime" Precision="0" />
+    <Property Name="ManufactureSerial" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
+    <Property Name="ManufactureModel" Type="String" MaxLength="40" FixedLength="false" Unicode="true" />
+    <Property Name="Supplier" Type="String" MaxLength="40" FixedLength="false" Unicode="true" />
+    <Property Name="SupplierPhoneNo" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
+    <Property Name="BuildingId" Type="Int32" />
+    <Property Name="FloorId" Type="Int32" />
+    <Property Name="ZoneId" Type="Int32" />
+    <Property Name="InstallDate" Type="DateTime" Precision="0" />
+    <Property Name="OperationStartDate" Type="DateTime" Precision="0" />
+    <Property Name="FacilityCapacity" Type="String" MaxLength="40" FixedLength="false" Unicode="true" />
+    <Property Name="FacilityCost" Type="Int32" />
+    <Property Name="FacilityCount" Type="Int32" />
+    <Property Name="FacilitySeviceLifeYear" Type="Int32" />
+    <Property Name="FacilityUsage" Type="String" MaxLength="80" FixedLength="false" Unicode="true" />
+    <Property Name="RatedPowerConsumption" Type="String" MaxLength="40" FixedLength="false" Unicode="true" />
+    <Property Name="RatedCOP" Type="Double" />
+    <Property Name="MainContactorUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
+    <Property Name="SubContactorUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
+    <Property Name="Note" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
+    <Property Name="Reserved1" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
+    <Property Name="Reserved2" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
+    <Property Name="IsUse" Type="Boolean" />
+    <Property Name="FileId" Type="Int32" />
+    <Property Name="IsVirtualFacility" Type="Boolean" Nullable="false" />
+    <Property Name="FuelTypeId" Type="Int16" />
+    <Property Name="ContractType" Type="Int16" />
+    <NavigationProperty Name="BemsAlarmSetting" Relationship="iBemsModel.FK_BemsAlarmSetting_CmFacility" FromRole="CmFacility" ToRole="BemsAlarmSetting" />
+    <NavigationProperty Name="BemsEnergyCost" Relationship="iBemsModel.FK_BemsEnergyCost_CmFacility" FromRole="CmFacility" ToRole="BemsEnergyCost" />
+    <NavigationProperty Name="BemsFacilityType" Relationship="iBemsModel.FK__CmFacility__BemsFacilityType" FromRole="CmFacility" ToRole="BemsFacilityType" />
+    <NavigationProperty Name="BemsFormulaParameter" Relationship="iBemsModel.FK_BemsFormulaParameter_CmFacility" FromRole="CmFacility" ToRole="BemsFormulaParameter" />
+    <NavigationProperty Name="BemsFuelType" Relationship="iBemsModel.FK_CmFacility_BemsFuelType" FromRole="CmFacility" ToRole="BemsFuelType" />
+    <NavigationProperty Name="BemsMonitoringPoint" Relationship="iBemsModel.FK_BemsMonitoringPoint_CmFacility" FromRole="CmFacility" ToRole="BemsMonitoringPoint" />
+    <NavigationProperty Name="BemsNoticePriceContractType" Relationship="iBemsModel.FK_CmFacility_BemsNoticePriceContractType" FromRole="CmFacility" ToRole="BemsNoticePriceContractType" />
+    <NavigationProperty Name="BemsPeakFacility" Relationship="iBemsModel.FK_BemsPeakFacility_CmFacility" FromRole="CmFacility" ToRole="BemsPeakFacility" />
+    <NavigationProperty Name="CmBuilding" Relationship="iBemsModel.FK__CmFacility__CmBuilding" FromRole="CmFacility" ToRole="CmBuilding" />
+    <NavigationProperty Name="CmFloor" Relationship="iBemsModel.FK__CmFacility__74444068" FromRole="CmFacility" ToRole="CmFloor" />
+    <NavigationProperty Name="CmUser" Relationship="iBemsModel.FK__CmFacility__753864A1" FromRole="CmFacility" ToRole="CmUser" />
+    <NavigationProperty Name="CmUser1" Relationship="iBemsModel.FK__CmFacility__762C88DA" FromRole="CmFacility" ToRole="CmUser" />
+    <NavigationProperty Name="CmFacility1" Relationship="iBemsModel.FK__CmFacility__CmFacility" FromRole="CmFacility" ToRole="CmFacility1" />
+    <NavigationProperty Name="CmFacility2" Relationship="iBemsModel.FK__CmFacility__CmFacility" FromRole="CmFacility1" ToRole="CmFacility" />
+    <NavigationProperty Name="CmFile" Relationship="iBemsModel.FK__CmFacility__CmFile" FromRole="CmFacility" ToRole="CmFile" />
+    <NavigationProperty Name="CmZone" Relationship="iBemsModel.FK__CmFacility__CmZone" FromRole="CmFacility" ToRole="CmZone" />
+    <NavigationProperty Name="FmsFacilityCodeClass" Relationship="iBemsModel.FK__CmFacility__FmsFacilityCodeClassAsFirst" FromRole="CmFacility" ToRole="FmsFacilityCodeClass" />
+    <NavigationProperty Name="FmsFacilityCodeClass1" Relationship="iBemsModel.FK__CmFacility__FmsFacilityCodeClassAsSecond" FromRole="CmFacility" ToRole="FmsFacilityCodeClass" />
+    <NavigationProperty Name="FmsFacilityCodeClass2" Relationship="iBemsModel.FK__CmFacility__FmsFacilityCodeClassAsThird" FromRole="CmFacility" ToRole="FmsFacilityCodeClass" />
+    <NavigationProperty Name="CmFacilityFile" Relationship="iBemsModel.FK__CmFacilityFile__7720AD13" FromRole="CmFacility" ToRole="CmFacilityFile" />
+    <NavigationProperty Name="FmsFacilityManual" Relationship="iBemsModel.FK__CmFacilityManual__79FD19BE" FromRole="CmFacility" ToRole="FmsFacilityManual" />
+    <NavigationProperty Name="FmsFacilityOperationItem" Relationship="iBemsModel.FK__FmsFacilityOpera__725BF7F6" FromRole="CmFacility" ToRole="FmsFacilityOperationItem" />
+    <NavigationProperty Name="FmsWorkResultCheckItem" Relationship="iBemsModel.FK__FmsWorkResultCheckItem__CmFacility" FromRole="CmFacility" ToRole="FmsWorkResultCheckItem" />
+    <NavigationProperty Name="FmsWorkResultToFacility" Relationship="iBemsModel.FK__FmsWorkResultToFacility__CmFacility" FromRole="CmFacility" ToRole="FmsWorkResultToFacility" />
+    <NavigationProperty Name="CmUser2" Relationship="iBemsModel.FK_CmFacility_CmUser" FromRole="CmFacility" ToRole="CmUser" />
+    <NavigationProperty Name="CmUser3" Relationship="iBemsModel.FK_CmFacility_CmUser1" FromRole="CmFacility" ToRole="CmUser" />
+    <NavigationProperty Name="CmFacilityTempSet" Relationship="iBemsModel.FK_CmFacilityTempSet_CmFacility" FromRole="CmFacility" ToRole="CmFacilityTempSet" />
+    <NavigationProperty Name="FmsWorkOrderToFacility" Relationship="iBemsModel.FK_FmsWorkOrderToFacility_CmFacility" FromRole="CmFacility" ToRole="FmsWorkOrderToFacility" />
+    <NavigationProperty Name="FmsWorkRequestToFacility" Relationship="iBemsModel.FK_FmsWorkRequestToFacility_CmFacility" FromRole="CmFacility" ToRole="FmsWorkRequestToFacility" />
+    <NavigationProperty Name="FmsWorkScheduleToFacility" Relationship="iBemsModel.FK_FmsWorkScheduleToFacility_CmFacility" FromRole="CmFacility" ToRole="FmsWorkScheduleToFacility" />
+  </EntityType>
+  <Association Name="FK_BemsAlarmSetting_CmFacility">
+    <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="1" />
+    <End Type="iBemsModel.BemsAlarmSetting" Role="BemsAlarmSetting" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmFacility">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FacilityCode" />
+      </Principal>
+      <Dependent Role="BemsAlarmSetting">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FacilityCode" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_BemsEnergyCost_CmFacility">
+    <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="1" />
+    <End Type="iBemsModel.BemsEnergyCost" Role="BemsEnergyCost" Multiplicity="0..1" />
+    <ReferentialConstraint>
+      <Principal Role="CmFacility">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FacilityCode" />
+      </Principal>
+      <Dependent Role="BemsEnergyCost">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FacilityCode" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__CmFacility__BemsFacilityType">
+    <End Type="iBemsModel.BemsFacilityType" Role="BemsFacilityType" Multiplicity="1" />
+    <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="BemsFacilityType">
+        <PropertyRef Name="FacilityTypeId" />
+      </Principal>
+      <Dependent Role="CmFacility">
+        <PropertyRef Name="FacilityTypeId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_BemsFormulaParameter_CmFacility">
+    <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="1" />
+    <End Type="iBemsModel.BemsFormulaParameter" Role="BemsFormulaParameter" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmFacility">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FacilityCode" />
+      </Principal>
+      <Dependent Role="BemsFormulaParameter">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FacilityCode" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_CmFacility_BemsFuelType">
+    <End Type="iBemsModel.BemsFuelType" Role="BemsFuelType" Multiplicity="0..1" />
+    <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="BemsFuelType">
+        <PropertyRef Name="FuelTypeId" />
+      </Principal>
+      <Dependent Role="CmFacility">
+        <PropertyRef Name="FuelTypeId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_BemsMonitoringPoint_CmFacility">
+    <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="1" />
+    <End Type="iBemsModel.BemsMonitoringPoint" Role="BemsMonitoringPoint" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmFacility">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FacilityCode" />
+      </Principal>
+      <Dependent Role="BemsMonitoringPoint">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FacilityCode" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_CmFacility_BemsNoticePriceContractType">
+    <End Type="iBemsModel.BemsNoticePriceContractType" Role="BemsNoticePriceContractType" Multiplicity="0..1" />
+    <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="BemsNoticePriceContractType">
+        <PropertyRef Name="FuelTypeId" />
+        <PropertyRef Name="ContractType" />
+      </Principal>
+      <Dependent Role="CmFacility">
+        <PropertyRef Name="FuelTypeId" />
+        <PropertyRef Name="ContractType" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_BemsPeakFacility_CmFacility">
+    <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="1" />
+    <End Type="iBemsModel.BemsPeakFacility" Role="BemsPeakFacility" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmFacility">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FacilityCode" />
+      </Principal>
+      <Dependent Role="BemsPeakFacility">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FacilityCode" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__CmFacility__CmBuilding">
+    <End Type="iBemsModel.CmBuilding" Role="CmBuilding" Multiplicity="0..1" />
+    <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmBuilding">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="BuildingId" />
+      </Principal>
+      <Dependent Role="CmFacility">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="BuildingId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__CmFacility__74444068">
+    <End Type="iBemsModel.CmFloor" Role="CmFloor" Multiplicity="0..1" />
+    <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmFloor">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="BuildingId" />
+        <PropertyRef Name="FloorId" />
+      </Principal>
+      <Dependent Role="CmFacility">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="BuildingId" />
+        <PropertyRef Name="FloorId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__CmFacility__753864A1">
+    <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="0..1" />
+    <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmUser">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="UserId" />
+      </Principal>
+      <Dependent Role="CmFacility">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="MainContactorUserId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__CmFacility__762C88DA">
+    <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="0..1" />
+    <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmUser">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="UserId" />
+      </Principal>
+      <Dependent Role="CmFacility">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="SubContactorUserId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__CmFacility__CmFacility">
+    <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="0..1" />
+    <End Type="iBemsModel.CmFacility" Role="CmFacility1" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmFacility">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FacilityCode" />
+      </Principal>
+      <Dependent Role="CmFacility1">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="ParentFacilityCode" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__CmFacility__CmFile">
+    <End Type="iBemsModel.CmFile" Role="CmFile" Multiplicity="0..1" />
+    <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmFile">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FileId" />
+      </Principal>
+      <Dependent Role="CmFacility">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FileId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__CmFacility__CmZone">
+    <End Type="iBemsModel.CmZone" Role="CmZone" Multiplicity="0..1" />
+    <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmZone">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="BuildingId" />
+        <PropertyRef Name="FloorId" />
+        <PropertyRef Name="ZoneId" />
+      </Principal>
+      <Dependent Role="CmFacility">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="BuildingId" />
+        <PropertyRef Name="FloorId" />
+        <PropertyRef Name="ZoneId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__CmFacility__FmsFacilityCodeClassAsFirst">
+    <End Type="iBemsModel.FmsFacilityCodeClass" Role="FmsFacilityCodeClass" Multiplicity="0..1" />
+    <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="FmsFacilityCodeClass">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FacilityClassId" />
+      </Principal>
+      <Dependent Role="CmFacility">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FirstClassId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__CmFacility__FmsFacilityCodeClassAsSecond">
+    <End Type="iBemsModel.FmsFacilityCodeClass" Role="FmsFacilityCodeClass" Multiplicity="0..1" />
+    <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="FmsFacilityCodeClass">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FacilityClassId" />
+      </Principal>
+      <Dependent Role="CmFacility">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="SecondClassId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__CmFacility__FmsFacilityCodeClassAsThird">
+    <End Type="iBemsModel.FmsFacilityCodeClass" Role="FmsFacilityCodeClass" Multiplicity="0..1" />
+    <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="FmsFacilityCodeClass">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FacilityClassId" />
+      </Principal>
+      <Dependent Role="CmFacility">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="ThirdClassId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__CmFacilityFile__7720AD13">
+    <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="1" />
+    <End Type="iBemsModel.CmFacilityFile" Role="CmFacilityFile" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmFacility">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FacilityCode" />
+      </Principal>
+      <Dependent Role="CmFacilityFile">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FacilityCode" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__CmFacilityManual__79FD19BE">
+    <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="1" />
+    <End Type="iBemsModel.FmsFacilityManual" Role="FmsFacilityManual" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmFacility">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FacilityCode" />
+      </Principal>
+      <Dependent Role="FmsFacilityManual">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FacilityCode" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsFacilityOpera__725BF7F6">
+    <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="1" />
+    <End Type="iBemsModel.FmsFacilityOperationItem" Role="FmsFacilityOperationItem" Multiplicity="0..1" />
+    <ReferentialConstraint>
+      <Principal Role="CmFacility">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FacilityCode" />
+      </Principal>
+      <Dependent Role="FmsFacilityOperationItem">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="ItemId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsWorkResultCheckItem__CmFacility">
+    <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="0..1" />
+    <End Type="iBemsModel.FmsWorkResultCheckItem" Role="FmsWorkResultCheckItem" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmFacility">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FacilityCode" />
+      </Principal>
+      <Dependent Role="FmsWorkResultCheckItem">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FacilityCode" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsWorkResultToFacility__CmFacility">
+    <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="1" />
+    <End Type="iBemsModel.FmsWorkResultToFacility" Role="FmsWorkResultToFacility" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmFacility">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FacilityCode" />
+      </Principal>
+      <Dependent Role="FmsWorkResultToFacility">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FacilityCode" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_CmFacility_CmUser">
+    <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="0..1" />
+    <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmUser">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="UserId" />
+      </Principal>
+      <Dependent Role="CmFacility">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="MainContactorUserId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_CmFacility_CmUser1">
+    <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="0..1" />
+    <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmUser">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="UserId" />
+      </Principal>
+      <Dependent Role="CmFacility">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="SubContactorUserId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_CmFacilityTempSet_CmFacility">
+    <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="1" />
+    <End Type="iBemsModel.CmFacilityTempSet" Role="CmFacilityTempSet" Multiplicity="0..1" />
+    <ReferentialConstraint>
+      <Principal Role="CmFacility">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FacilityCode" />
+      </Principal>
+      <Dependent Role="CmFacilityTempSet">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FacilityCode" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsWorkOrderToFacility_CmFacility">
+    <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="1" />
+    <End Type="iBemsModel.FmsWorkOrderToFacility" Role="FmsWorkOrderToFacility" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmFacility">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FacilityCode" />
+      </Principal>
+      <Dependent Role="FmsWorkOrderToFacility">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FacilityCode" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsWorkRequestToFacility_CmFacility">
+    <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="1" />
+    <End Type="iBemsModel.FmsWorkRequestToFacility" Role="FmsWorkRequestToFacility" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmFacility">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FacilityCode" />
+      </Principal>
+      <Dependent Role="FmsWorkRequestToFacility">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FacilityCode" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsWorkScheduleToFacility_CmFacility">
+    <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="1" />
+    <End Type="iBemsModel.FmsWorkScheduleToFacility" Role="FmsWorkScheduleToFacility" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmFacility">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FacilityCode" />
+      </Principal>
+      <Dependent Role="FmsWorkScheduleToFacility">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FacilityCode" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <EntityType Name="BemsMonitoringPointHistory15minRawData">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="FacilityCode" />
+      <PropertyRef Name="PropertyId" />
+      <PropertyRef Name="CreatedDateTime" />
+    </Key>
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
+    <Property Name="FacilityCode" Type="Int32" Nullable="false" />
+    <Property Name="PropertyId" Type="Int32" Nullable="false" />
+    <Property Name="CreatedDateTime" Type="DateTime" Nullable="false" Precision="3" />
+    <Property Name="CurrentValue" Type="Double" Nullable="false" />
+    <NavigationProperty Name="BemsFacilityType" Relationship="iBemsModel.FK__BemsMonitoringPointHistory15minRawData__BemsFacilityType" FromRole="BemsMonitoringPointHistory15minRawData" ToRole="BemsFacilityType" />
+    <NavigationProperty Name="BemsMonitoringPoint" Relationship="iBemsModel.FK__BemsMonitoringPointHistory15minRawData__BemsMonitoringPoint" FromRole="BemsMonitoringPointHistory15minRawData" ToRole="BemsMonitoringPoint" />
+  </EntityType>
+  <Association Name="FK__BemsMonitoringPointHistory15minRawData__BemsFacilityType">
+    <End Type="iBemsModel.BemsFacilityType" Role="BemsFacilityType" Multiplicity="1" />
+    <End Type="iBemsModel.BemsMonitoringPointHistory15minRawData" Role="BemsMonitoringPointHistory15minRawData" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="BemsFacilityType">
+        <PropertyRef Name="FacilityTypeId" />
+      </Principal>
+      <Dependent Role="BemsMonitoringPointHistory15minRawData">
+        <PropertyRef Name="FacilityTypeId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__BemsMonitoringPointHistory15minRawData__BemsMonitoringPoint">
+    <End Type="iBemsModel.BemsMonitoringPoint" Role="BemsMonitoringPoint" Multiplicity="1" />
+    <End Type="iBemsModel.BemsMonitoringPointHistory15minRawData" Role="BemsMonitoringPointHistory15minRawData" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="BemsMonitoringPoint">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FacilityCode" />
+        <PropertyRef Name="PropertyId" />
+      </Principal>
+      <Dependent Role="BemsMonitoringPointHistory15minRawData">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FacilityCode" />
+        <PropertyRef Name="PropertyId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <EntityType Name="FmsDailyReport">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="AddDate" />
+      <PropertyRef Name="BusinessFieldId" />
+    </Key>
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="DailyReportId" Type="Int32" />
+    <Property Name="Name" Type="String" Nullable="false" MaxLength="128" FixedLength="false" Unicode="true" />
+    <Property Name="Contents" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
+    <Property Name="RegisterUserId" Type="String" Nullable="false" MaxLength="24" FixedLength="false" Unicode="true" />
+    <Property Name="AddDate" Type="DateTime" Nullable="false" Precision="0" />
+    <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
+    <Property Name="Datas" Type="String" MaxLength="Max" FixedLength="false" Unicode="false" />
+    <Property Name="ApproverUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
+    <Property Name="ApproveDate" Type="DateTime" Precision="0" />
+    <Property Name="RegisterDate" Type="DateTime" Precision="0" />
+    <Property Name="ApproverUserId2" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
+    <Property Name="ApproveDate2" Type="DateTime" Precision="0" />
+    <Property Name="ApproverUserId3" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
+    <Property Name="ApproveDate3" Type="DateTime" Precision="0" />
+    <Property Name="ApproverUserId4" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
+    <Property Name="ApproveDate4" Type="DateTime" Precision="0" />
+    <Property Name="ApproverUserId5" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
+    <Property Name="ApproveDate5" Type="DateTime" Precision="0" />
+    <NavigationProperty Name="CmBusinessField" Relationship="iBemsModel.FK_FmsDailyReport_CmBusinessField" FromRole="FmsDailyReport" ToRole="CmBusinessField" />
+    <NavigationProperty Name="CmUser" Relationship="iBemsModel.FK_FmsDailyReport_CmUser" FromRole="FmsDailyReport" ToRole="CmUser" />
+  </EntityType>
+  <Association Name="FK_FmsDailyReport_CmBusinessField">
+    <End Type="iBemsModel.CmBusinessField" Role="CmBusinessField" Multiplicity="1" />
+    <End Type="iBemsModel.FmsDailyReport" Role="FmsDailyReport" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmBusinessField">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="BusinessFieldId" />
+      </Principal>
+      <Dependent Role="FmsDailyReport">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="BusinessFieldId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsDailyReport_CmUser">
+    <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="1" />
+    <End Type="iBemsModel.FmsDailyReport" Role="FmsDailyReport" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmUser">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="UserId" />
+      </Principal>
+      <Dependent Role="FmsDailyReport">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="RegisterUserId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <EntityType Name="BemsPeakHistoryDaily">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="CreatedDateTime" />
+    </Key>
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="CreatedDateTime" Type="DateTime" Nullable="false" Precision="3" />
+    <Property Name="MaxPeakValue" Type="Double" />
+    <Property Name="MaxDateTime" Type="DateTime" Precision="3" />
+    <Property Name="MinPeakValue" Type="Double" />
+    <Property Name="MinDateTime" Type="DateTime" Precision="3" />
+  </EntityType>
+  <EntityType Name="FmsEquipment">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="EquipmentId" />
+    </Key>
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="EquipmentId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+    <Property Name="Name" Type="String" Nullable="false" MaxLength="48" FixedLength="false" Unicode="true" />
+    <Property Name="EquipmentTypeId" Type="Int32" Nullable="false" />
+    <Property Name="WarehouseId" Type="Int32" />
+    <Property Name="Unit" Type="String" MaxLength="12" FixedLength="false" Unicode="true" />
+    <Property Name="Standard" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
+    <Property Name="AddDate" Type="DateTime" Precision="3" />
+    <Property Name="UpdateDate" Type="DateTime" Precision="3" />
+    <Property Name="RegisterUserId" Type="String" Nullable="false" MaxLength="24" FixedLength="false" Unicode="true" />
+    <Property Name="SupplierName" Type="String" MaxLength="256" FixedLength="false" Unicode="true" />
+    <Property Name="SupplierPhoneNo" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
+    <Property Name="ImageFileId" Type="Int32" />
+    <NavigationProperty Name="CmUser" Relationship="iBemsModel.FK_FmsEquipment_CmUser" FromRole="FmsEquipment" ToRole="CmUser" />
+    <NavigationProperty Name="FmsEquipmentCodeType" Relationship="iBemsModel.FK_FmsEquipment_FmsEquipmentCodeType" FromRole="FmsEquipment" ToRole="FmsEquipmentCodeType" />
+    <NavigationProperty Name="FmsMaterialWarehouse" Relationship="iBemsModel.FK_FmsEquipment_FmsMaterialWarehouse" FromRole="FmsEquipment" ToRole="FmsMaterialWarehouse" />
+    <NavigationProperty Name="FmsEquipmentHistory" Relationship="iBemsModel.FK_FmsEquipmentHistory_FmsEquipment" FromRole="FmsEquipment" ToRole="FmsEquipmentHistory" />
+  </EntityType>
+  <Association Name="FK_FmsEquipment_CmUser">
+    <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="1" />
+    <End Type="iBemsModel.FmsEquipment" Role="FmsEquipment" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmUser">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="UserId" />
+      </Principal>
+      <Dependent Role="FmsEquipment">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="RegisterUserId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsEquipment_FmsEquipmentCodeType">
+    <End Type="iBemsModel.FmsEquipmentCodeType" Role="FmsEquipmentCodeType" Multiplicity="1" />
+    <End Type="iBemsModel.FmsEquipment" Role="FmsEquipment" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="FmsEquipmentCodeType">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="EquipmentTypeId" />
+      </Principal>
+      <Dependent Role="FmsEquipment">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="EquipmentTypeId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsEquipment_FmsMaterialWarehouse">
+    <End Type="iBemsModel.FmsMaterialWarehouse" Role="FmsMaterialWarehouse" Multiplicity="0..1" />
+    <End Type="iBemsModel.FmsEquipment" Role="FmsEquipment" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="FmsMaterialWarehouse">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="WarehouseId" />
+      </Principal>
+      <Dependent Role="FmsEquipment">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="WarehouseId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsEquipmentHistory_FmsEquipment">
+    <End Type="iBemsModel.FmsEquipment" Role="FmsEquipment" Multiplicity="1" />
+    <End Type="iBemsModel.FmsEquipmentHistory" Role="FmsEquipmentHistory" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="FmsEquipment">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="EquipmentId" />
+      </Principal>
+      <Dependent Role="FmsEquipmentHistory">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="EquipmentId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <EntityType Name="CmAlarmAdmin">
+    <Key>
+      <PropertyRef Name="SiteId" />
+    </Key>
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="UserCode" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
+    <Property Name="DeptCode" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
+    <Property Name="PhoneNo" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
+    <Property Name="EmailAddress" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
+    <Property Name="EmailPassword" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
+  </EntityType>
+  <EntityType Name="BemsFloorStatus">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="FloorId" />
+      <PropertyRef Name="FloorName" />
+      <PropertyRef Name="ImageFileId" />
+      <PropertyRef Name="Xvalue" />
+      <PropertyRef Name="Yvalue" />
+      <PropertyRef Name="PropertyId" />
+    </Key>
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="FloorId" Type="Int32" Nullable="false" />
+    <Property Name="FloorName" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
+    <Property Name="ImageFileId" Type="Int32" Nullable="false" />
+    <Property Name="Xvalue" Type="Int32" Nullable="false" />
+    <Property Name="Yvalue" Type="Int32" Nullable="false" />
+    <Property Name="ZoneId" Type="Int32" />
+    <Property Name="ServiceTypeId" Type="Int32" />
+    <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
+    <Property Name="FacilityCode" Type="Int32" Nullable="false" />
+    <Property Name="PropertyId" Type="Int32" Nullable="false" />
+    <Property Name="FacilityName" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
+  </EntityType>
+  <EntityType Name="BemsReportHistory">
+    <Key>
+      <PropertyRef Name="Seq" />
+      <PropertyRef Name="DateTime" />
+      <PropertyRef Name="ReportFormatId" />
+      <PropertyRef Name="parts" />
+    </Key>
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="Seq" Type="Int32" Nullable="false" />
+    <Property Name="DateTime" Type="DateTime" Nullable="false" Precision="3" />
+    <Property Name="ReportName" Type="String" Nullable="false" MaxLength="200" FixedLength="false" Unicode="false" />
+    <Property Name="ReportFormatId" Type="Int32" Nullable="false" />
+    <Property Name="FormatName" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="false" />
+    <Property Name="Content" Type="String" MaxLength="Max" FixedLength="false" Unicode="false" />
+    <Property Name="Writer" Type="String" MaxLength="50" FixedLength="false" Unicode="false" />
+    <Property Name="Confirm1" Type="String" MaxLength="50" FixedLength="false" Unicode="false" />
+    <Property Name="Confirm2" Type="String" MaxLength="50" FixedLength="false" Unicode="false" />
+    <Property Name="parts" Type="Int32" Nullable="false" />
+    <Property Name="FileName" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
+  </EntityType>
+  <EntityType Name="CmPartner">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="PartnerId" />
+    </Key>
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="PartnerId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+    <Property Name="PartnerTypeId" Type="Int32" Nullable="false" />
+    <Property Name="Name" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
+    <Property Name="RegistrationNo" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
+    <Property Name="RepresentativeName" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
+    <Property Name="PhoneNo" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
+    <Property Name="FaxNo" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
+    <Property Name="SalesName" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
+    <Property Name="SalesPhoneNo" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
+    <Property Name="AddressZip1" Type="String" MaxLength="3" FixedLength="true" Unicode="true" />
+    <Property Name="AddressZip2" Type="String" MaxLength="3" FixedLength="true" Unicode="true" />
+    <Property Name="Address1" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
+    <Property Name="Adderss2" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
+    <Property Name="HomepageUri" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
+    <Property Name="Note" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
+    <Property Name="IsUse" Type="Boolean" />
+    <NavigationProperty Name="CmPartnerType" Relationship="iBemsModel.FK_CmPartnerType_CmPartner" FromRole="CmPartner" ToRole="CmPartnerType" />
+    <NavigationProperty Name="FmsConstruction" Relationship="iBemsModel.FK_FmsConstruction_CmPartner" FromRole="CmPartner" ToRole="FmsConstruction" />
+    <NavigationProperty Name="FmsWorkRequest" Relationship="iBemsModel.FK_FmsWorkRequest_CmPartner" FromRole="CmPartner" ToRole="FmsWorkRequest" />
+    <NavigationProperty Name="FmsWorkSchedule" Relationship="iBemsModel.FK_FmsWorkSchedule_CmPartner" FromRole="CmPartner" ToRole="FmsWorkSchedule" />
+    <NavigationProperty Name="FmsContract" Relationship="iBemsModel.FK_FmsContract_CmPartner" FromRole="CmPartner" ToRole="FmsContract" />
+  </EntityType>
+  <EntityType Name="CmPartnerType">
+    <Key>
+      <PropertyRef Name="PartnerTypeId" />
+    </Key>
+    <Property Name="PartnerTypeId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+    <Property Name="Name" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
+    <Property Name="IsUse" Type="Boolean" />
+    <NavigationProperty Name="CmPartner" Relationship="iBemsModel.FK_CmPartnerType_CmPartner" FromRole="CmPartnerType" ToRole="CmPartner" />
+    <NavigationProperty Name="FmsContract" Relationship="iBemsModel.FK_FmsContract_CmPartnerType" FromRole="CmPartnerType" ToRole="FmsContract" />
+  </EntityType>
+  <Association Name="FK_CmPartnerType_CmPartner">
+    <End Type="iBemsModel.CmPartnerType" Role="CmPartnerType" Multiplicity="1" />
+    <End Type="iBemsModel.CmPartner" Role="CmPartner" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmPartnerType">
+        <PropertyRef Name="PartnerTypeId" />
+      </Principal>
+      <Dependent Role="CmPartner">
+        <PropertyRef Name="PartnerTypeId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsConstruction_CmPartner">
+    <End Type="iBemsModel.CmPartner" Role="CmPartner" Multiplicity="1" />
+    <End Type="iBemsModel.FmsConstruction" Role="FmsConstruction" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmPartner">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="PartnerId" />
+      </Principal>
+      <Dependent Role="FmsConstruction">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="PartnerId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsWorkRequest_CmPartner">
+    <End Type="iBemsModel.CmPartner" Role="CmPartner" Multiplicity="0..1" />
+    <End Type="iBemsModel.FmsWorkRequest" Role="FmsWorkRequest" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmPartner">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="PartnerId" />
+      </Principal>
+      <Dependent Role="FmsWorkRequest">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="InspectionAgencyId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsWorkSchedule_CmPartner">
+    <End Type="iBemsModel.CmPartner" Role="CmPartner" Multiplicity="0..1" />
+    <End Type="iBemsModel.FmsWorkSchedule" Role="FmsWorkSchedule" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmPartner">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="PartnerId" />
+      </Principal>
+      <Dependent Role="FmsWorkSchedule">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="InspectionAgencyId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <EntityType Name="FmsContract">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="ContractId" />
+    </Key>
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="ContractId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+    <Property Name="Name" Type="String" Nullable="false" MaxLength="256" FixedLength="false" Unicode="true" />
+    <Property Name="PartnerTypeId" Type="Int32" />
+    <Property Name="PartnerId" Type="Int32" />
+    <Property Name="ContractDate" Type="DateTime" Precision="3" />
+    <Property Name="StartDate" Type="DateTime" Precision="3" />
+    <Property Name="EndDate" Type="DateTime" Precision="3" />
+    <Property Name="OwnerShipName" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
+    <Property Name="OwnerShipPhoneNo" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
+    <Property Name="CommitmentMan" Type="Int16" />
+    <Property Name="Comment" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
+    <Property Name="ContractClassId" Type="Int32" />
+    <Property Name="ContractTypeId" Type="Int32" />
+    <Property Name="ContractMethodId" Type="Int32" />
+    <Property Name="PaymentTypeId" Type="Int32" />
+    <NavigationProperty Name="CmPartner" Relationship="iBemsModel.FK_FmsContract_CmPartner" FromRole="FmsContract" ToRole="CmPartner" />
+    <NavigationProperty Name="CmPartnerType" Relationship="iBemsModel.FK_FmsContract_CmPartnerType" FromRole="FmsContract" ToRole="CmPartnerType" />
+    <NavigationProperty Name="FmsContractClass" Relationship="iBemsModel.FK_FmsContract_FmsContractClass" FromRole="FmsContract" ToRole="FmsContractClass" />
+    <NavigationProperty Name="FmsContractMethod" Relationship="iBemsModel.FK_FmsContract_FmsContractMethod" FromRole="FmsContract" ToRole="FmsContractMethod" />
+    <NavigationProperty Name="FmsContractType" Relationship="iBemsModel.FK_FmsContract_FmsContractType" FromRole="FmsContract" ToRole="FmsContractType" />
+    <NavigationProperty Name="FmsPaymentType" Relationship="iBemsModel.FK_FmsContract_FmsPaymentType" FromRole="FmsContract" ToRole="FmsPaymentType" />
+  </EntityType>
+  <Association Name="FK_FmsContract_CmPartner">
+    <End Type="iBemsModel.CmPartner" Role="CmPartner" Multiplicity="0..1" />
+    <End Type="iBemsModel.FmsContract" Role="FmsContract" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmPartner">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="PartnerId" />
+      </Principal>
+      <Dependent Role="FmsContract">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="PartnerId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsContract_CmPartnerType">
+    <End Type="iBemsModel.CmPartnerType" Role="CmPartnerType" Multiplicity="0..1" />
+    <End Type="iBemsModel.FmsContract" Role="FmsContract" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmPartnerType">
+        <PropertyRef Name="PartnerTypeId" />
+      </Principal>
+      <Dependent Role="FmsContract">
+        <PropertyRef Name="PartnerTypeId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsContract_FmsContractClass">
+    <End Type="iBemsModel.FmsContractClass" Role="FmsContractClass" Multiplicity="0..1" />
+    <End Type="iBemsModel.FmsContract" Role="FmsContract" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="FmsContractClass">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="ContractClassId" />
+      </Principal>
+      <Dependent Role="FmsContract">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="ContractClassId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsContract_FmsContractMethod">
+    <End Type="iBemsModel.FmsContractMethod" Role="FmsContractMethod" Multiplicity="0..1" />
+    <End Type="iBemsModel.FmsContract" Role="FmsContract" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="FmsContractMethod">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="ContractMethodId" />
+      </Principal>
+      <Dependent Role="FmsContract">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="ContractMethodId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsContract_FmsContractType">
+    <End Type="iBemsModel.FmsContractType" Role="FmsContractType" Multiplicity="0..1" />
+    <End Type="iBemsModel.FmsContract" Role="FmsContract" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="FmsContractType">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="ContractTypeId" />
+      </Principal>
+      <Dependent Role="FmsContract">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="ContractTypeId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsContract_FmsPaymentType">
+    <End Type="iBemsModel.FmsPaymentType" Role="FmsPaymentType" Multiplicity="0..1" />
+    <End Type="iBemsModel.FmsContract" Role="FmsContract" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="FmsPaymentType">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="PaymentTypeId" />
+      </Principal>
+      <Dependent Role="FmsContract">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="PartnerTypeId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <EntityType Name="BemsMonitoringPointForecastingDayAhead">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="FacilityCode" />
+      <PropertyRef Name="PropertyId" />
+      <PropertyRef Name="CreatedDateTime" />
+      <PropertyRef Name="TargetDateTime" />
+    </Key>
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
+    <Property Name="FacilityCode" Type="Int32" Nullable="false" />
+    <Property Name="PropertyId" Type="Int32" Nullable="false" />
+    <Property Name="CreatedDateTime" Type="DateTime" Nullable="false" Precision="3" />
+    <Property Name="TargetDateTime" Type="DateTime" Nullable="false" Precision="3" />
+    <Property Name="ForecastedValue" Type="Double" Nullable="false" />
+  </EntityType>
+  <EntityType Name="BemsMonitoringPointForecastingHourAhead">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="FacilityCode" />
+      <PropertyRef Name="PropertyId" />
+      <PropertyRef Name="CreatedDateTime" />
+      <PropertyRef Name="TargetDateTime" />
+    </Key>
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
+    <Property Name="FacilityCode" Type="Int32" Nullable="false" />
+    <Property Name="PropertyId" Type="Int32" Nullable="false" />
+    <Property Name="CreatedDateTime" Type="DateTime" Nullable="false" Precision="3" />
+    <Property Name="TargetDateTime" Type="DateTime" Nullable="false" Precision="3" />
+    <Property Name="ForecastedValue" Type="Double" Nullable="false" />
+  </EntityType>
+  <EntityType Name="BemsFloorPlan">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="Name" />
+    </Key>
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="FloorId" Type="Int32" Nullable="false" />
+    <Property Name="Name" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
+    <Property Name="ImageFileId" Type="Int32" />
+  </EntityType>
+  <EntityType Name="BemsMonitoringPointWeatherForecasted">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="CreatedDateTime" />
+      <PropertyRef Name="Category" />
+      <PropertyRef Name="BaseDateTime" />
+      <PropertyRef Name="ForecastedDateTime" />
+    </Key>
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="CreatedDateTime" Type="DateTime" Nullable="false" Precision="3" />
+    <Property Name="Category" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
+    <Property Name="BaseDateTime" Type="DateTime" Nullable="false" Precision="3" />
+    <Property Name="ForecastedDateTime" Type="DateTime" Nullable="false" Precision="3" />
+    <Property Name="ForecastedValue" Type="Double" Nullable="false" />
+    <Property Name="nx" Type="Int32" Nullable="false" />
+    <Property Name="ny" Type="Int32" Nullable="false" />
+  </EntityType>
+  <EntityType Name="BemsIceThermalStorageSimulation">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="FacilityCode" />
+      <PropertyRef Name="PropertyId" />
+      <PropertyRef Name="CreatedDateTime" />
+      <PropertyRef Name="TargetDateTime" />
+      <PropertyRef Name="SimulationCase" />
+    </Key>
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
+    <Property Name="FacilityCode" Type="Int32" Nullable="false" />
+    <Property Name="PropertyId" Type="Int32" Nullable="false" />
+    <Property Name="CreatedDateTime" Type="DateTime" Nullable="false" Precision="3" />
+    <Property Name="TargetDateTime" Type="DateTime" Nullable="false" Precision="3" />
+    <Property Name="SimulationValue" Type="Double" />
+    <Property Name="SimulationCase" Type="Int32" Nullable="false" />
+  </EntityType>
+  <EntityType Name="BemsConfigData">
+    <Key>
+      <PropertyRef Name="SiteId" />
+    </Key>
+    <Property Name="SiteId" Type="Int32" Nullable="false" />
+    <Property Name="LoadDBIP" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
+    <Property Name="LoadDBUserID" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
+    <Property Name="LoadDBUserPW" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
+    <Property Name="LoadDBName" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
+    <Property Name="TargetDBIP" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
+    <Property Name="TargetDBUserID" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
+    <Property Name="TargetDBUserPW" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
+    <Property Name="TargetDBName" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
+  </EntityType>
+</Schema>

+ 8026 - 0
.svn/pristine/07/0790fed0b4d51a126ddba809872f95553ddd19be.svn-base

@@ -0,0 +1,8026 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Schema Namespace="iBemsModel.Store" Provider="System.Data.SqlClient" ProviderManifestToken="2008" Alias="Self" xmlns:store="http://schemas.microsoft.com/ado/2007/12/edm/EntityStoreSchemaGenerator" xmlns="http://schemas.microsoft.com/ado/2009/11/edm/ssdl">
+  <EntityType Name="BemsAlarmGroup">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="AlarmGroupId" />
+    </Key>
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="AlarmGroupId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+    <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
+  </EntityType>
+  <EntityType Name="BemsAlarmGroupUser">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="AlarmGroupId" />
+      <PropertyRef Name="UserId" />
+    </Key>
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="AlarmGroupId" Type="int" Nullable="false" />
+    <Property Name="UserId" Type="nvarchar" MaxLength="24" Nullable="false" />
+  </EntityType>
+  <EntityType Name="BemsAlarmLog">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="FacilityTypeId" />
+      <PropertyRef Name="FacilityCode" />
+      <PropertyRef Name="PropertyId" />
+      <PropertyRef Name="FormulaId" />
+      <PropertyRef Name="CreatedDateTime" />
+    </Key>
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="FacilityTypeId" Type="int" Nullable="false" />
+    <Property Name="FacilityCode" Type="int" Nullable="false" />
+    <Property Name="PropertyId" Type="int" Nullable="false" />
+    <Property Name="FormulaId" Type="int" Nullable="false" />
+    <Property Name="CreatedDateTime" Type="datetime" Nullable="false" />
+    <Property Name="CurrentValue" Type="float" />
+    <Property Name="SMSResult" Type="nvarchar" MaxLength="2" />
+    <Property Name="EmailResult" Type="nvarchar" MaxLength="2" />
+    <Property Name="Conform" Type="bit" />
+  </EntityType>
+  <EntityType Name="BemsAlarmSetting">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="FacilityTypeId" />
+      <PropertyRef Name="FacilityCode" />
+      <PropertyRef Name="PropertyId" />
+      <PropertyRef Name="FormulaId" />
+    </Key>
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="FacilityTypeId" Type="int" Nullable="false" />
+    <Property Name="FacilityCode" Type="int" Nullable="false" />
+    <Property Name="PropertyId" Type="int" Nullable="false" />
+    <Property Name="FormulaId" Type="int" Nullable="false" />
+    <Property Name="FacilityName" Type="nvarchar" MaxLength="80" Nullable="false" />
+    <Property Name="PointName" Type="nvarchar" MaxLength="64" Nullable="false" />
+    <Property Name="UseUpperLimit" Type="bit" Nullable="false" />
+    <Property Name="UpperLimit" Type="float" />
+    <Property Name="UseLowerLimit" Type="bit" Nullable="false" />
+    <Property Name="LowerLimit" Type="float" />
+    <Property Name="UseAlarm" Type="bit" Nullable="false" />
+    <Property Name="UseSMS" Type="bit" Nullable="false" />
+    <Property Name="UseEmail" Type="bit" Nullable="false" />
+    <Property Name="AlarmGroupName" Type="nvarchar" MaxLength="50" Nullable="false" />
+    <Property Name="Content" Type="nvarchar" MaxLength="1000" />
+  </EntityType>
+  <EntityType Name="BemsAnalysisType">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="AnalysisType" />
+    </Key>
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="AnalysisType" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+    <Property Name="Name" Type="nvarchar" MaxLength="48" />
+  </EntityType>
+  <EntityType Name="BemsChartInfo">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="FacilityTypeId" />
+      <PropertyRef Name="ChartId" />
+    </Key>
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="FacilityTypeId" Type="int" Nullable="false" />
+    <Property Name="ChartId" Type="int" Nullable="false" />
+    <Property Name="LAxTitle" Type="nvarchar" MaxLength="64" Nullable="false" />
+    <Property Name="RAxTitle" Type="nvarchar" MaxLength="64" />
+    <Property Name="XAxTitle" Type="nvarchar" MaxLength="64" />
+    <Property Name="XSFmId" Type="int" />
+    <Property Name="XSType" Type="nvarchar" MaxLength="16" />
+    <Property Name="LSFmId1" Type="int" Nullable="false" />
+    <Property Name="LSName1" Type="nvarchar" MaxLength="64" Nullable="false" />
+    <Property Name="LSType1" Type="nvarchar" MaxLength="16" Nullable="false" />
+    <Property Name="LSFmId2" Type="int" />
+    <Property Name="LSName2" Type="nvarchar" MaxLength="64" />
+    <Property Name="LSType2" Type="nvarchar" MaxLength="16" />
+    <Property Name="LSFmId3" Type="int" />
+    <Property Name="LSName3" Type="nvarchar" MaxLength="64" />
+    <Property Name="LSType3" Type="nvarchar" MaxLength="16" />
+    <Property Name="LSFmId4" Type="int" />
+    <Property Name="LSName4" Type="nvarchar" MaxLength="64" />
+    <Property Name="LSType4" Type="nvarchar" MaxLength="16" />
+    <Property Name="RSFmId1" Type="int" />
+    <Property Name="RSName1" Type="nvarchar" MaxLength="64" />
+    <Property Name="RSType1" Type="nvarchar" MaxLength="16" />
+    <Property Name="RSFmId2" Type="int" />
+    <Property Name="RSName2" Type="nvarchar" MaxLength="64" />
+    <Property Name="RSType2" Type="nvarchar" MaxLength="16" />
+    <Property Name="RSFmId3" Type="int" />
+    <Property Name="RSName3" Type="nvarchar" MaxLength="64" />
+    <Property Name="RSType3" Type="nvarchar" MaxLength="16" />
+    <Property Name="RSFmId4" Type="int" />
+    <Property Name="RSName4" Type="nvarchar" MaxLength="64" />
+    <Property Name="RSType4" Type="nvarchar" MaxLength="16" />
+    <Property Name="Title" Type="nvarchar" MaxLength="64" Nullable="false" />
+    <Property Name="UseX" Type="bit" />
+    <Property Name="UseLAxMinMax" Type="bit" />
+    <Property Name="UseRAxMinMax" Type="bit" />
+    <Property Name="UseXAxMinMax" Type="bit" />
+    <Property Name="LAxMin" Type="float" />
+    <Property Name="LAxMax" Type="float" />
+    <Property Name="RAxMin" Type="float" />
+    <Property Name="RAxMax" Type="float" />
+    <Property Name="XAxMin" Type="float" />
+    <Property Name="XAxMax" Type="float" />
+    <Property Name="Palette" Type="nvarchar" MaxLength="32" Nullable="false" />
+    <Property Name="UseChart" Type="bit" />
+    <Property Name="UseLCTLine" Type="bit" Nullable="false" />
+    <Property Name="LCTLineTitle" Type="nvarchar" MaxLength="64" />
+    <Property Name="LCTLineValue" Type="float" />
+    <Property Name="UseRCTLine" Type="bit" Nullable="false" />
+    <Property Name="RCTLineTitle" Type="nvarchar" MaxLength="64" />
+    <Property Name="RCTLineValue" Type="float" />
+  </EntityType>
+  <EntityType Name="BemsConfigData">
+    <Key>
+      <PropertyRef Name="SiteId" />
+    </Key>
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="LoadDBIP" Type="nvarchar" MaxLength="50" Nullable="false" />
+    <Property Name="LoadDBUserID" Type="nvarchar" MaxLength="50" Nullable="false" />
+    <Property Name="LoadDBUserPW" Type="nvarchar" MaxLength="50" Nullable="false" />
+    <Property Name="LoadDBName" Type="nvarchar" MaxLength="50" Nullable="false" />
+    <Property Name="TargetDBIP" Type="nvarchar" MaxLength="50" Nullable="false" />
+    <Property Name="TargetDBUserID" Type="nvarchar" MaxLength="50" Nullable="false" />
+    <Property Name="TargetDBUserPW" Type="nvarchar" MaxLength="50" Nullable="false" />
+    <Property Name="TargetDBName" Type="nvarchar" MaxLength="50" Nullable="false" />
+  </EntityType>
+  <EntityType Name="BemsControlAHUTempConfig">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="FacilityTypeId" />
+      <PropertyRef Name="FacilityCode" />
+    </Key>
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="FacilityTypeId" Type="int" Nullable="false" />
+    <Property Name="FacilityCode" Type="int" Nullable="false" />
+    <Property Name="MaxTemperature" Type="float" Nullable="false" />
+    <Property Name="MinTemperature" Type="float" Nullable="false" />
+  </EntityType>
+  <EntityType Name="BemsControlPointHistory">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="FacilityCode" />
+      <PropertyRef Name="PropertyId" />
+      <PropertyRef Name="CreateDateTime" />
+    </Key>
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="FacilityTypeId" Type="int" Nullable="false" />
+    <Property Name="FacilityCode" Type="int" Nullable="false" />
+    <Property Name="PropertyId" Type="int" Nullable="false" />
+    <Property Name="CreateDateTime" Type="datetime" Nullable="false" />
+    <Property Name="ControlValue" Type="float" Nullable="false" />
+    <Property Name="WriteServiceName" Type="nvarchar" MaxLength="64" />
+    <Property Name="ActionDateTime" Type="datetime" />
+  </EntityType>
+  <EntityType Name="BemsEnergyConfigPercentMonth">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="Year" />
+      <PropertyRef Name="Month" />
+    </Key>
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="Year" Type="int" Nullable="false" />
+    <Property Name="Month" Type="int" Nullable="false" />
+    <Property Name="Electricity" Type="float" />
+    <Property Name="Gas" Type="float" />
+    <Property Name="Water" Type="float" />
+  </EntityType>
+  <EntityType Name="BemsEnergyConfigPercentWeek">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="Year" />
+      <PropertyRef Name="Week" />
+    </Key>
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="Year" Type="int" Nullable="false" />
+    <Property Name="Week" Type="int" Nullable="false" />
+    <Property Name="Electricity" Type="float" />
+    <Property Name="Gas" Type="float" />
+    <Property Name="Water" Type="float" />
+  </EntityType>
+  <EntityType Name="BemsEnergyCost">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="FacilityCode" />
+    </Key>
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="FacilityTypeId" Type="int" Nullable="false" />
+    <Property Name="FacilityCode" Type="int" Nullable="false" />
+    <Property Name="PowerConsumption1" Type="float" />
+    <Property Name="PowerConsumption2" Type="float" />
+    <Property Name="GasConsumption" Type="float" />
+    <Property Name="GasHeatQuantity" Type="float" />
+    <Property Name="PowerPriceTypeId" Type="int" />
+    <Property Name="GasPriceTypeId" Type="int" />
+    <Property Name="IsUse" Type="bit" />
+  </EntityType>
+  <EntityType Name="BemsEnergyDaily">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="BuildingId" />
+      <PropertyRef Name="ServiceTypeId" />
+      <PropertyRef Name="FuelTypeId" />
+      <PropertyRef Name="CreatedDate" />
+    </Key>
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="BuildingId" Type="int" Nullable="false" />
+    <Property Name="ServiceTypeId" Type="smallint" Nullable="false" />
+    <Property Name="FuelTypeId" Type="smallint" Nullable="false" />
+    <Property Name="CreatedDate" Type="date" Nullable="false" />
+    <Property Name="Prediction" Type="float" />
+    <Property Name="Measurement" Type="float" />
+    <Property Name="Goal" Type="float" />
+    <Property Name="Prediction_Regression" Type="float" />
+    <Property Name="MeanT" Type="float" />
+    <Property Name="HDD" Type="float" />
+    <Property Name="CDD" Type="float" />
+  </EntityType>
+  <EntityType Name="BemsEnergyDailyRegression">
+    <Key>
+      <PropertyRef Name="SiteId" />
+    </Key>
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="Weekday_Power" Type="nvarchar" MaxLength="50" />
+    <Property Name="Weekday_Power_Temp" Type="nvarchar" MaxLength="50" />
+    <Property Name="Weekday_Gas" Type="nvarchar" MaxLength="50" />
+    <Property Name="Weekday_Gas_Temp" Type="nvarchar" MaxLength="50" />
+    <Property Name="Weekday_Water" Type="nvarchar" MaxLength="50" />
+    <Property Name="Weekday_Water_Temp" Type="nvarchar" MaxLength="50" />
+    <Property Name="Holiday_Power" Type="nvarchar" MaxLength="50" />
+    <Property Name="Holiday_Power_Temp" Type="nvarchar" MaxLength="50" />
+    <Property Name="Holiday_Gas" Type="nvarchar" MaxLength="50" />
+    <Property Name="Holiday_Gas_Temp" Type="nvarchar" MaxLength="50" />
+    <Property Name="Holiday_Water" Type="nvarchar" MaxLength="50" />
+    <Property Name="Holiday_Water_Temp" Type="nvarchar" MaxLength="50" />
+    <Property Name="IsRegression" Type="bit" />
+  </EntityType>
+  <EntityType Name="BemsFacilityType">
+    <Key>
+      <PropertyRef Name="FacilityTypeId" />
+    </Key>
+    <Property Name="FacilityTypeId" Type="int" Nullable="false" />
+    <Property Name="Name" Type="nvarchar" MaxLength="48" />
+  </EntityType>
+  <EntityType Name="BemsFactorCo2">
+    <Key>
+      <PropertyRef Name="FuelTypeId" />
+    </Key>
+    <Property Name="FuelTypeId" Type="smallint" Nullable="false" />
+    <Property Name="Factor" Type="float" Nullable="false" />
+  </EntityType>
+  <EntityType Name="BemsFactorToe">
+    <Key>
+      <PropertyRef Name="FuelTypeId" />
+    </Key>
+    <Property Name="FuelTypeId" Type="smallint" Nullable="false" />
+    <Property Name="TotalFactor" Type="float" Nullable="false" />
+    <Property Name="PureFactor" Type="float" Nullable="false" />
+    <Property Name="kcal" Type="float" />
+  </EntityType>
+  <EntityType Name="BemsFloorPlan">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="Name" />
+    </Key>
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="FloorId" Type="int" Nullable="false" />
+    <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
+    <Property Name="ImageFileId" Type="int" />
+  </EntityType>
+  <EntityType Name="BemsFloorStatus">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="FloorId" />
+      <PropertyRef Name="FloorName" />
+      <PropertyRef Name="ImageFileId" />
+      <PropertyRef Name="Xvalue" />
+      <PropertyRef Name="Yvalue" />
+      <PropertyRef Name="PropertyId" />
+    </Key>
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="FloorId" Type="int" Nullable="false" />
+    <Property Name="FloorName" Type="nvarchar" MaxLength="50" Nullable="false" />
+    <Property Name="ImageFileId" Type="int" Nullable="false" />
+    <Property Name="Xvalue" Type="int" Nullable="false" />
+    <Property Name="Yvalue" Type="int" Nullable="false" />
+    <Property Name="ZoneId" Type="int" />
+    <Property Name="ServiceTypeId" Type="int" />
+    <Property Name="FacilityTypeId" Type="int" Nullable="false" />
+    <Property Name="FacilityCode" Type="int" Nullable="false" />
+    <Property Name="PropertyId" Type="int" Nullable="false" />
+    <Property Name="FacilityName" Type="nvarchar" MaxLength="64" />
+  </EntityType>
+  <EntityType Name="BemsFormula">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="FacilityTypeId" />
+      <PropertyRef Name="FacilityCode" />
+      <PropertyRef Name="FormulaId" />
+    </Key>
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="FacilityTypeId" Type="int" Nullable="false" />
+    <Property Name="FacilityCode" Type="int" Nullable="false" />
+    <Property Name="FormulaId" Type="int" Nullable="false" />
+    <Property Name="Formula" Type="nvarchar" MaxLength="120" Nullable="false" />
+  </EntityType>
+  <EntityType Name="BemsFormulaBase">
+    <Key>
+      <PropertyRef Name="FacilityTypeId" />
+      <PropertyRef Name="FormulaId" />
+    </Key>
+    <Property Name="FacilityTypeId" Type="int" Nullable="false" />
+    <Property Name="FormulaId" Type="int" Nullable="false" />
+    <Property Name="Name" Type="nvarchar" MaxLength="32" Nullable="false" />
+  </EntityType>
+  <EntityType Name="BemsFormulaParameter">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="FacilityCode" />
+      <PropertyRef Name="FormulaId" />
+      <PropertyRef Name="ParameterId" />
+    </Key>
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="FacilityTypeId" Type="int" Nullable="false" />
+    <Property Name="FacilityCode" Type="int" Nullable="false" />
+    <Property Name="FormulaId" Type="int" Nullable="false" />
+    <Property Name="ParameterId" Type="nchar" MaxLength="1" Nullable="false" />
+    <Property Name="ParameterFacilityCode" Type="int" Nullable="false" />
+    <Property Name="ParameterPropertyId" Type="int" Nullable="false" />
+  </EntityType>
+  <EntityType Name="BemsFormulaTable">
+    <Key>
+      <PropertyRef Name="TableId" />
+    </Key>
+    <Property Name="TableId" Type="int" Nullable="false" />
+    <Property Name="FunctionName" Type="nvarchar" MaxLength="20" Nullable="false" />
+    <Property Name="Description" Type="nvarchar" MaxLength="80" Nullable="false" />
+  </EntityType>
+  <EntityType Name="BemsFormulaTableValue">
+    <Key>
+      <PropertyRef Name="TableId" />
+      <PropertyRef Name="XValue" />
+    </Key>
+    <Property Name="TableId" Type="int" Nullable="false" />
+    <Property Name="XValue" Type="float" Nullable="false" />
+    <Property Name="YValue" Type="float" Nullable="false" />
+  </EntityType>
+  <EntityType Name="BemsFuelType">
+    <Key>
+      <PropertyRef Name="FuelTypeId" />
+    </Key>
+    <Property Name="FuelTypeId" Type="smallint" Nullable="false" />
+    <Property Name="Name" Type="nvarchar" MaxLength="48" />
+  </EntityType>
+  <EntityType Name="BemsIceThermalStorageSimulation">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="FacilityCode" />
+      <PropertyRef Name="PropertyId" />
+      <PropertyRef Name="CreatedDateTime" />
+      <PropertyRef Name="TargetDateTime" />
+      <PropertyRef Name="SimulationCase" />
+    </Key>
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="FacilityTypeId" Type="int" Nullable="false" />
+    <Property Name="FacilityCode" Type="int" Nullable="false" />
+    <Property Name="PropertyId" Type="int" Nullable="false" />
+    <Property Name="CreatedDateTime" Type="datetime" Nullable="false" />
+    <Property Name="TargetDateTime" Type="datetime" Nullable="false" />
+    <Property Name="SimulationValue" Type="float" />
+    <Property Name="SimulationCase" Type="int" Nullable="false" />
+  </EntityType>
+  <EntityType Name="BemsMonitoringPoint">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="FacilityCode" />
+      <PropertyRef Name="PropertyId" />
+    </Key>
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="FacilityTypeId" Type="int" Nullable="false" />
+    <Property Name="FacilityCode" Type="int" Nullable="false" />
+    <Property Name="PropertyId" Type="int" Nullable="false" />
+    <Property Name="ValueType" Type="int" Nullable="false" />
+    <Property Name="ServiceTypeId" Type="smallint" />
+    <Property Name="FuelTypeId" Type="smallint" />
+    <Property Name="Name" Type="nvarchar" MaxLength="64" />
+    <Property Name="Description" Type="nvarchar" MaxLength="256" />
+    <Property Name="BuildingId" Type="int" />
+    <Property Name="FloorId" Type="int" />
+    <Property Name="ZoneId" Type="int" />
+  </EntityType>
+  <EntityType Name="BemsMonitoringPointBaseData">
+    <Key>
+      <PropertyRef Name="FacilityTypeId" />
+      <PropertyRef Name="PropertyId" />
+    </Key>
+    <Property Name="FacilityTypeId" Type="int" Nullable="false" />
+    <Property Name="PropertyId" Type="int" Nullable="false" />
+    <Property Name="ValueType" Type="int" Nullable="false" />
+    <Property Name="IsAccumulated" Type="bit" Nullable="false" />
+    <Property Name="ServiceTypeId" Type="smallint" />
+    <Property Name="FuelTypeId" Type="smallint" />
+    <Property Name="Name" Type="nvarchar" MaxLength="64" />
+    <Property Name="Description" Type="nvarchar" MaxLength="256" />
+    <Property Name="IsSampled" Type="bit" />
+    <Property Name="IsConverted" Type="bit" />
+  </EntityType>
+  <EntityType Name="BemsMonitoringPointConfig">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="FacilityCode" />
+      <PropertyRef Name="PropertyId" />
+    </Key>
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="FacilityTypeId" Type="int" Nullable="false" />
+    <Property Name="FacilityCode" Type="int" Nullable="false" />
+    <Property Name="PropertyId" Type="int" Nullable="false" />
+    <Property Name="IsAccumulated" Type="bit" Nullable="false" />
+    <Property Name="IsSampled" Type="bit" Nullable="false" />
+    <Property Name="SaveMode" Type="int" Nullable="false" />
+    <Property Name="ControlPointName" Type="nvarchar" MaxLength="200" />
+    <Property Name="IsConverted" Type="bit" />
+  </EntityType>
+  <EntityType Name="BemsMonitoringPointForecastingDayAhead">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="FacilityCode" />
+      <PropertyRef Name="PropertyId" />
+      <PropertyRef Name="CreatedDateTime" />
+      <PropertyRef Name="TargetDateTime" />
+    </Key>
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="FacilityTypeId" Type="int" Nullable="false" />
+    <Property Name="FacilityCode" Type="int" Nullable="false" />
+    <Property Name="PropertyId" Type="int" Nullable="false" />
+    <Property Name="CreatedDateTime" Type="datetime" Nullable="false" />
+    <Property Name="TargetDateTime" Type="datetime" Nullable="false" />
+    <Property Name="ForecastedValue" Type="float" Nullable="false" />
+  </EntityType>
+  <EntityType Name="BemsMonitoringPointForecastingHourAhead">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="FacilityCode" />
+      <PropertyRef Name="PropertyId" />
+      <PropertyRef Name="CreatedDateTime" />
+      <PropertyRef Name="TargetDateTime" />
+    </Key>
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="FacilityTypeId" Type="int" Nullable="false" />
+    <Property Name="FacilityCode" Type="int" Nullable="false" />
+    <Property Name="PropertyId" Type="int" Nullable="false" />
+    <Property Name="CreatedDateTime" Type="datetime" Nullable="false" />
+    <Property Name="TargetDateTime" Type="datetime" Nullable="false" />
+    <Property Name="ForecastedValue" Type="float" Nullable="false" />
+  </EntityType>
+  <EntityType Name="BemsMonitoringPointHistory15min">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="FacilityCode" />
+      <PropertyRef Name="PropertyId" />
+      <PropertyRef Name="CreatedDateTime" />
+    </Key>
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="FacilityTypeId" Type="int" Nullable="false" />
+    <Property Name="FacilityCode" Type="int" Nullable="false" />
+    <Property Name="PropertyId" Type="int" Nullable="false" />
+    <Property Name="CreatedDateTime" Type="datetime" Nullable="false" />
+    <Property Name="CurrentValue" Type="float" Nullable="false" />
+  </EntityType>
+  <EntityType Name="BemsMonitoringPointHistory15minRawData">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="FacilityCode" />
+      <PropertyRef Name="PropertyId" />
+      <PropertyRef Name="CreatedDateTime" />
+    </Key>
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="FacilityTypeId" Type="int" Nullable="false" />
+    <Property Name="FacilityCode" Type="int" Nullable="false" />
+    <Property Name="PropertyId" Type="int" Nullable="false" />
+    <Property Name="CreatedDateTime" Type="datetime" Nullable="false" />
+    <Property Name="CurrentValue" Type="float" Nullable="false" />
+  </EntityType>
+  <EntityType Name="BemsMonitoringPointHistoryDaily">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="FacilityCode" />
+      <PropertyRef Name="PropertyId" />
+      <PropertyRef Name="CreatedDateTime" />
+    </Key>
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="FacilityTypeId" Type="int" Nullable="false" />
+    <Property Name="FacilityCode" Type="int" Nullable="false" />
+    <Property Name="PropertyId" Type="int" Nullable="false" />
+    <Property Name="CreatedDateTime" Type="datetime" Nullable="false" />
+    <Property Name="DailyValue" Type="float" Nullable="false" />
+    <Property Name="MaxValue" Type="float" />
+    <Property Name="MinValue" Type="float" />
+  </EntityType>
+  <EntityType Name="BemsMonitoringPointHistoryHourly">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="FacilityCode" />
+      <PropertyRef Name="PropertyId" />
+      <PropertyRef Name="CreatedDateTime" />
+    </Key>
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="FacilityTypeId" Type="int" Nullable="false" />
+    <Property Name="FacilityCode" Type="int" Nullable="false" />
+    <Property Name="PropertyId" Type="int" Nullable="false" />
+    <Property Name="CreatedDateTime" Type="datetime" Nullable="false" />
+    <Property Name="CurrentValue" Type="float" Nullable="false" />
+  </EntityType>
+  <EntityType Name="BemsMonitoringPointToAnlaysisType">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="FacilityTypeId" />
+      <PropertyRef Name="FacilityCode" />
+      <PropertyRef Name="PropertyId" />
+      <PropertyRef Name="AnalysisType" />
+    </Key>
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="FacilityTypeId" Type="int" Nullable="false" />
+    <Property Name="FacilityCode" Type="int" Nullable="false" />
+    <Property Name="PropertyId" Type="int" Nullable="false" />
+    <Property Name="AnalysisType" Type="int" Nullable="false" />
+  </EntityType>
+  <EntityType Name="BemsMonitoringPointWeatherForecasted">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="CreatedDateTime" />
+      <PropertyRef Name="Category" />
+      <PropertyRef Name="BaseDateTime" />
+      <PropertyRef Name="ForecastedDateTime" />
+    </Key>
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="CreatedDateTime" Type="datetime" Nullable="false" />
+    <Property Name="Category" Type="nvarchar" MaxLength="50" Nullable="false" />
+    <Property Name="BaseDateTime" Type="datetime" Nullable="false" />
+    <Property Name="ForecastedDateTime" Type="datetime" Nullable="false" />
+    <Property Name="ForecastedValue" Type="float" Nullable="false" />
+    <Property Name="nx" Type="int" Nullable="false" />
+    <Property Name="ny" Type="int" Nullable="false" />
+  </EntityType>
+  <EntityType Name="BemsNoticePriceBase">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="FuelTypeId" />
+      <PropertyRef Name="ApplyDate" />
+      <PropertyRef Name="ContractType" />
+    </Key>
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="FuelTypeId" Type="smallint" Nullable="false" />
+    <Property Name="ApplyDate" Type="date" Nullable="false" />
+    <Property Name="ContractType" Type="smallint" Nullable="false" />
+    <Property Name="PrimaryPrice" Type="int" />
+    <Property Name="SecondaryPrice" Type="int" />
+  </EntityType>
+  <EntityType Name="BemsNoticePriceContractType">
+    <Key>
+      <PropertyRef Name="FuelTypeId" />
+      <PropertyRef Name="ContractType" />
+    </Key>
+    <Property Name="FuelTypeId" Type="smallint" Nullable="false" />
+    <Property Name="ContractType" Type="smallint" Nullable="false" />
+    <Property Name="Name" Type="varchar" MaxLength="50" Nullable="false" />
+  </EntityType>
+  <EntityType Name="BemsNoticePriceDetail">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="FuelTypeId" />
+      <PropertyRef Name="ApplyDate" />
+      <PropertyRef Name="ContractType" />
+      <PropertyRef Name="DataId" />
+    </Key>
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="FuelTypeId" Type="smallint" Nullable="false" />
+    <Property Name="ApplyDate" Type="date" Nullable="false" />
+    <Property Name="ContractType" Type="smallint" Nullable="false" />
+    <Property Name="DataId" Type="smallint" Nullable="false" />
+    <Property Name="P01" Type="float" />
+    <Property Name="P02" Type="float" />
+    <Property Name="P03" Type="float" />
+    <Property Name="P04" Type="float" />
+    <Property Name="P05" Type="float" />
+    <Property Name="P06" Type="float" />
+    <Property Name="P07" Type="float" />
+    <Property Name="P08" Type="float" />
+    <Property Name="P09" Type="float" />
+    <Property Name="P10" Type="float" />
+    <Property Name="P11" Type="float" />
+    <Property Name="P12" Type="float" />
+  </EntityType>
+  <EntityType Name="BemsPeakFacility">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="MaxDateTime" />
+      <PropertyRef Name="FacilityCode" />
+    </Key>
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="MaxDateTime" Type="datetime" Nullable="false" />
+    <Property Name="FacilityCode" Type="int" Nullable="false" />
+  </EntityType>
+  <EntityType Name="BemsPeakHistory">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="CreatedDateTime" />
+    </Key>
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="CreatedDateTime" Type="datetime" Nullable="false" />
+    <Property Name="CurrentValue" Type="float" Nullable="false" />
+  </EntityType>
+  <EntityType Name="BemsPeakHistoryDaily">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="CreatedDateTime" />
+    </Key>
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="CreatedDateTime" Type="datetime" Nullable="false" />
+    <Property Name="MaxPeakValue" Type="float" />
+    <Property Name="MaxDateTime" Type="datetime" />
+    <Property Name="MinPeakValue" Type="float" />
+    <Property Name="MinDateTime" Type="datetime" />
+  </EntityType>
+  <EntityType Name="BemsPeakInfo">
+    <Key>
+      <PropertyRef Name="SiteId" />
+    </Key>
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="MaxDateTime" Type="datetime" Nullable="false" />
+    <Property Name="MaxPeakValue" Type="float" Nullable="false" />
+    <Property Name="MinDateTime" Type="datetime" Nullable="false" />
+    <Property Name="MinPeakValue" Type="float" Nullable="false" />
+    <Property Name="todayMaxPeakValue" Type="float" Nullable="false" />
+    <Property Name="todayMinPeakValue" Type="float" Nullable="false" />
+  </EntityType>
+  <EntityType Name="BemsPeopleIncrease">
+    <Key>
+      <PropertyRef Name="Date" />
+      <PropertyRef Name="SiteId" />
+    </Key>
+    <Property Name="Date" Type="nvarchar" MaxLength="5" Nullable="false" />
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="m1" Type="nvarchar" MaxLength="50" />
+    <Property Name="m2" Type="nvarchar" MaxLength="50" />
+    <Property Name="m3" Type="nvarchar" MaxLength="50" />
+    <Property Name="m4" Type="nvarchar" MaxLength="50" />
+    <Property Name="m5" Type="nvarchar" MaxLength="50" />
+    <Property Name="m6" Type="nvarchar" MaxLength="50" />
+    <Property Name="m7" Type="nvarchar" MaxLength="50" />
+    <Property Name="m8" Type="nvarchar" MaxLength="50" />
+    <Property Name="m9" Type="nvarchar" MaxLength="50" />
+    <Property Name="m10" Type="nvarchar" MaxLength="50" />
+    <Property Name="m11" Type="nvarchar" MaxLength="50" />
+    <Property Name="m12" Type="nvarchar" MaxLength="50" />
+  </EntityType>
+  <EntityType Name="BemsPriceCode">
+    <Key>
+      <PropertyRef Name="PriceCode" />
+    </Key>
+    <Property Name="PriceCode" Type="varchar" MaxLength="20" Nullable="false" />
+    <Property Name="PriceCodeDesc" Type="varchar" MaxLength="200" />
+    <Property Name="FuelTypeId" Type="smallint" Nullable="false" />
+    <Property Name="Unit" Type="varchar" MaxLength="20" />
+  </EntityType>
+  <EntityType Name="BemsPriceFormula">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="PriceTypeId" />
+      <PropertyRef Name="FacilityTypeId" />
+      <PropertyRef Name="FormulaId" />
+      <PropertyRef Name="FacilityCode" />
+    </Key>
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="PriceTypeId" Type="int" Nullable="false" />
+    <Property Name="FacilityTypeId" Type="int" Nullable="false" />
+    <Property Name="FormulaId" Type="int" Nullable="false" />
+    <Property Name="FacilityCode" Type="int" Nullable="false" />
+    <Property Name="UseYN" Type="nvarchar" MaxLength="1" Nullable="false" />
+  </EntityType>
+  <EntityType Name="BemsPriceMeta">
+    <Key>
+      <PropertyRef Name="PriceTypeId" />
+      <PropertyRef Name="PublishDate" />
+    </Key>
+    <Property Name="PriceTypeId" Type="int" Nullable="false" />
+    <Property Name="PublishDate" Type="datetime" Nullable="false" />
+    <Property Name="BasePrice" Type="int" />
+    <Property Name="01_00" Type="float" />
+    <Property Name="01_01" Type="float" />
+    <Property Name="01_02" Type="float" />
+    <Property Name="01_03" Type="float" />
+    <Property Name="01_04" Type="float" />
+    <Property Name="01_05" Type="float" />
+    <Property Name="01_06" Type="float" />
+    <Property Name="01_07" Type="float" />
+    <Property Name="01_08" Type="float" />
+    <Property Name="01_09" Type="float" />
+    <Property Name="01_10" Type="float" />
+    <Property Name="01_11" Type="float" />
+    <Property Name="01_12" Type="float" />
+    <Property Name="01_13" Type="float" />
+    <Property Name="01_14" Type="float" />
+    <Property Name="01_15" Type="float" />
+    <Property Name="01_16" Type="float" />
+    <Property Name="01_17" Type="float" />
+    <Property Name="01_18" Type="float" />
+    <Property Name="01_19" Type="float" />
+    <Property Name="01_20" Type="float" />
+    <Property Name="01_21" Type="float" />
+    <Property Name="01_22" Type="float" />
+    <Property Name="01_23" Type="float" />
+    <Property Name="02_00" Type="float" />
+    <Property Name="02_01" Type="float" />
+    <Property Name="02_02" Type="float" />
+    <Property Name="02_03" Type="float" />
+    <Property Name="02_04" Type="float" />
+    <Property Name="02_05" Type="float" />
+    <Property Name="02_06" Type="float" />
+    <Property Name="02_07" Type="float" />
+    <Property Name="02_08" Type="float" />
+    <Property Name="02_09" Type="float" />
+    <Property Name="02_10" Type="float" />
+    <Property Name="02_11" Type="float" />
+    <Property Name="02_12" Type="float" />
+    <Property Name="02_13" Type="float" />
+    <Property Name="02_14" Type="float" />
+    <Property Name="02_15" Type="float" />
+    <Property Name="02_16" Type="float" />
+    <Property Name="02_17" Type="float" />
+    <Property Name="02_18" Type="float" />
+    <Property Name="02_19" Type="float" />
+    <Property Name="02_20" Type="float" />
+    <Property Name="02_21" Type="float" />
+    <Property Name="02_22" Type="float" />
+    <Property Name="02_23" Type="float" />
+    <Property Name="03_00" Type="float" />
+    <Property Name="03_01" Type="float" />
+    <Property Name="03_02" Type="float" />
+    <Property Name="03_03" Type="float" />
+    <Property Name="03_04" Type="float" />
+    <Property Name="03_05" Type="float" />
+    <Property Name="03_06" Type="float" />
+    <Property Name="03_07" Type="float" />
+    <Property Name="03_08" Type="float" />
+    <Property Name="03_09" Type="float" />
+    <Property Name="03_10" Type="float" />
+    <Property Name="03_11" Type="float" />
+    <Property Name="03_12" Type="float" />
+    <Property Name="03_13" Type="float" />
+    <Property Name="03_14" Type="float" />
+    <Property Name="03_15" Type="float" />
+    <Property Name="03_16" Type="float" />
+    <Property Name="03_17" Type="float" />
+    <Property Name="03_18" Type="float" />
+    <Property Name="03_19" Type="float" />
+    <Property Name="03_20" Type="float" />
+    <Property Name="03_21" Type="float" />
+    <Property Name="03_22" Type="float" />
+    <Property Name="03_23" Type="float" />
+    <Property Name="04_00" Type="float" />
+    <Property Name="04_01" Type="float" />
+    <Property Name="04_02" Type="float" />
+    <Property Name="04_03" Type="float" />
+    <Property Name="04_04" Type="float" />
+    <Property Name="04_05" Type="float" />
+    <Property Name="04_06" Type="float" />
+    <Property Name="04_07" Type="float" />
+    <Property Name="04_08" Type="float" />
+    <Property Name="04_09" Type="float" />
+    <Property Name="04_10" Type="float" />
+    <Property Name="04_11" Type="float" />
+    <Property Name="04_12" Type="float" />
+    <Property Name="04_13" Type="float" />
+    <Property Name="04_14" Type="float" />
+    <Property Name="04_15" Type="float" />
+    <Property Name="04_16" Type="float" />
+    <Property Name="04_17" Type="float" />
+    <Property Name="04_18" Type="float" />
+    <Property Name="04_19" Type="float" />
+    <Property Name="04_20" Type="float" />
+    <Property Name="04_21" Type="float" />
+    <Property Name="04_22" Type="float" />
+    <Property Name="04_23" Type="float" />
+    <Property Name="05_00" Type="float" />
+    <Property Name="05_01" Type="float" />
+    <Property Name="05_02" Type="float" />
+    <Property Name="05_03" Type="float" />
+    <Property Name="05_04" Type="float" />
+    <Property Name="05_05" Type="float" />
+    <Property Name="05_06" Type="float" />
+    <Property Name="05_07" Type="float" />
+    <Property Name="05_08" Type="float" />
+    <Property Name="05_09" Type="float" />
+    <Property Name="05_10" Type="float" />
+    <Property Name="05_11" Type="float" />
+    <Property Name="05_12" Type="float" />
+    <Property Name="05_13" Type="float" />
+    <Property Name="05_14" Type="float" />
+    <Property Name="05_15" Type="float" />
+    <Property Name="05_16" Type="float" />
+    <Property Name="05_17" Type="float" />
+    <Property Name="05_18" Type="float" />
+    <Property Name="05_19" Type="float" />
+    <Property Name="05_20" Type="float" />
+    <Property Name="05_21" Type="float" />
+    <Property Name="05_22" Type="float" />
+    <Property Name="05_23" Type="float" />
+    <Property Name="06_00" Type="float" />
+    <Property Name="06_01" Type="float" />
+    <Property Name="06_02" Type="float" />
+    <Property Name="06_03" Type="float" />
+    <Property Name="06_04" Type="float" />
+    <Property Name="06_05" Type="float" />
+    <Property Name="06_06" Type="float" />
+    <Property Name="06_07" Type="float" />
+    <Property Name="06_08" Type="float" />
+    <Property Name="06_09" Type="float" />
+    <Property Name="06_10" Type="float" />
+    <Property Name="06_11" Type="float" />
+    <Property Name="06_12" Type="float" />
+    <Property Name="06_13" Type="float" />
+    <Property Name="06_14" Type="float" />
+    <Property Name="06_15" Type="float" />
+    <Property Name="06_16" Type="float" />
+    <Property Name="06_17" Type="float" />
+    <Property Name="06_18" Type="float" />
+    <Property Name="06_19" Type="float" />
+    <Property Name="06_20" Type="float" />
+    <Property Name="06_21" Type="float" />
+    <Property Name="06_22" Type="float" />
+    <Property Name="06_23" Type="float" />
+    <Property Name="07_00" Type="float" />
+    <Property Name="07_01" Type="float" />
+    <Property Name="07_02" Type="float" />
+    <Property Name="07_03" Type="float" />
+    <Property Name="07_04" Type="float" />
+    <Property Name="07_05" Type="float" />
+    <Property Name="07_06" Type="float" />
+    <Property Name="07_07" Type="float" />
+    <Property Name="07_08" Type="float" />
+    <Property Name="07_09" Type="float" />
+    <Property Name="07_10" Type="float" />
+    <Property Name="07_11" Type="float" />
+    <Property Name="07_12" Type="float" />
+    <Property Name="07_13" Type="float" />
+    <Property Name="07_14" Type="float" />
+    <Property Name="07_15" Type="float" />
+    <Property Name="07_16" Type="float" />
+    <Property Name="07_17" Type="float" />
+    <Property Name="07_18" Type="float" />
+    <Property Name="07_19" Type="float" />
+    <Property Name="07_20" Type="float" />
+    <Property Name="07_21" Type="float" />
+    <Property Name="07_22" Type="float" />
+    <Property Name="07_23" Type="float" />
+    <Property Name="08_00" Type="float" />
+    <Property Name="08_01" Type="float" />
+    <Property Name="08_02" Type="float" />
+    <Property Name="08_03" Type="float" />
+    <Property Name="08_04" Type="float" />
+    <Property Name="08_05" Type="float" />
+    <Property Name="08_06" Type="float" />
+    <Property Name="08_07" Type="float" />
+    <Property Name="08_08" Type="float" />
+    <Property Name="08_09" Type="float" />
+    <Property Name="08_10" Type="float" />
+    <Property Name="08_11" Type="float" />
+    <Property Name="08_12" Type="float" />
+    <Property Name="08_13" Type="float" />
+    <Property Name="08_14" Type="float" />
+    <Property Name="08_15" Type="float" />
+    <Property Name="08_16" Type="float" />
+    <Property Name="08_17" Type="float" />
+    <Property Name="08_18" Type="float" />
+    <Property Name="08_19" Type="float" />
+    <Property Name="08_20" Type="float" />
+    <Property Name="08_21" Type="float" />
+    <Property Name="08_22" Type="float" />
+    <Property Name="08_23" Type="float" />
+    <Property Name="09_00" Type="float" />
+    <Property Name="09_01" Type="float" />
+    <Property Name="09_02" Type="float" />
+    <Property Name="09_03" Type="float" />
+    <Property Name="09_04" Type="float" />
+    <Property Name="09_05" Type="float" />
+    <Property Name="09_06" Type="float" />
+    <Property Name="09_07" Type="float" />
+    <Property Name="09_08" Type="float" />
+    <Property Name="09_09" Type="float" />
+    <Property Name="09_10" Type="float" />
+    <Property Name="09_11" Type="float" />
+    <Property Name="09_12" Type="float" />
+    <Property Name="09_13" Type="float" />
+    <Property Name="09_14" Type="float" />
+    <Property Name="09_15" Type="float" />
+    <Property Name="09_16" Type="float" />
+    <Property Name="09_17" Type="float" />
+    <Property Name="09_18" Type="float" />
+    <Property Name="09_19" Type="float" />
+    <Property Name="09_20" Type="float" />
+    <Property Name="09_21" Type="float" />
+    <Property Name="09_22" Type="float" />
+    <Property Name="09_23" Type="float" />
+    <Property Name="10_00" Type="float" />
+    <Property Name="10_01" Type="float" />
+    <Property Name="10_02" Type="float" />
+    <Property Name="10_03" Type="float" />
+    <Property Name="10_04" Type="float" />
+    <Property Name="10_05" Type="float" />
+    <Property Name="10_06" Type="float" />
+    <Property Name="10_07" Type="float" />
+    <Property Name="10_08" Type="float" />
+    <Property Name="10_09" Type="float" />
+    <Property Name="10_10" Type="float" />
+    <Property Name="10_11" Type="float" />
+    <Property Name="10_12" Type="float" />
+    <Property Name="10_13" Type="float" />
+    <Property Name="10_14" Type="float" />
+    <Property Name="10_15" Type="float" />
+    <Property Name="10_16" Type="float" />
+    <Property Name="10_17" Type="float" />
+    <Property Name="10_18" Type="float" />
+    <Property Name="10_19" Type="float" />
+    <Property Name="10_20" Type="float" />
+    <Property Name="10_21" Type="float" />
+    <Property Name="10_22" Type="float" />
+    <Property Name="10_23" Type="float" />
+    <Property Name="11_00" Type="float" />
+    <Property Name="11_01" Type="float" />
+    <Property Name="11_02" Type="float" />
+    <Property Name="11_03" Type="float" />
+    <Property Name="11_04" Type="float" />
+    <Property Name="11_05" Type="float" />
+    <Property Name="11_06" Type="float" />
+    <Property Name="11_07" Type="float" />
+    <Property Name="11_08" Type="float" />
+    <Property Name="11_09" Type="float" />
+    <Property Name="11_10" Type="float" />
+    <Property Name="11_11" Type="float" />
+    <Property Name="11_12" Type="float" />
+    <Property Name="11_13" Type="float" />
+    <Property Name="11_14" Type="float" />
+    <Property Name="11_15" Type="float" />
+    <Property Name="11_16" Type="float" />
+    <Property Name="11_17" Type="float" />
+    <Property Name="11_18" Type="float" />
+    <Property Name="11_19" Type="float" />
+    <Property Name="11_20" Type="float" />
+    <Property Name="11_21" Type="float" />
+    <Property Name="11_22" Type="float" />
+    <Property Name="11_23" Type="float" />
+    <Property Name="12_00" Type="float" />
+    <Property Name="12_01" Type="float" />
+    <Property Name="12_02" Type="float" />
+    <Property Name="12_03" Type="float" />
+    <Property Name="12_04" Type="float" />
+    <Property Name="12_05" Type="float" />
+    <Property Name="12_06" Type="float" />
+    <Property Name="12_07" Type="float" />
+    <Property Name="12_08" Type="float" />
+    <Property Name="12_09" Type="float" />
+    <Property Name="12_10" Type="float" />
+    <Property Name="12_11" Type="float" />
+    <Property Name="12_12" Type="float" />
+    <Property Name="12_13" Type="float" />
+    <Property Name="12_14" Type="float" />
+    <Property Name="12_15" Type="float" />
+    <Property Name="12_16" Type="float" />
+    <Property Name="12_17" Type="float" />
+    <Property Name="12_18" Type="float" />
+    <Property Name="12_19" Type="float" />
+    <Property Name="12_20" Type="float" />
+    <Property Name="12_21" Type="float" />
+    <Property Name="12_22" Type="float" />
+    <Property Name="12_23" Type="float" />
+  </EntityType>
+  <EntityType Name="BemsPriceType">
+    <Key>
+      <PropertyRef Name="PriceTypeId" />
+    </Key>
+    <Property Name="PriceTypeId" Type="int" Nullable="false" />
+    <Property Name="PriceTypeIdDesc" Type="varchar" MaxLength="200" />
+    <Property Name="FuelTypeId" Type="smallint" Nullable="false" />
+  </EntityType>
+  <EntityType Name="BemsRentalRate">
+    <Key>
+      <PropertyRef Name="Date" />
+      <PropertyRef Name="SiteId" />
+    </Key>
+    <Property Name="Date" Type="nvarchar" MaxLength="5" Nullable="false" />
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="m1" Type="nvarchar" MaxLength="50" />
+    <Property Name="m2" Type="nvarchar" MaxLength="50" />
+    <Property Name="m3" Type="nvarchar" MaxLength="50" />
+    <Property Name="m4" Type="nvarchar" MaxLength="50" />
+    <Property Name="m5" Type="nvarchar" MaxLength="50" />
+    <Property Name="m6" Type="nvarchar" MaxLength="50" />
+    <Property Name="m7" Type="nvarchar" MaxLength="50" />
+    <Property Name="m8" Type="nvarchar" MaxLength="50" />
+    <Property Name="m9" Type="nvarchar" MaxLength="50" />
+    <Property Name="m10" Type="nvarchar" MaxLength="50" />
+    <Property Name="m11" Type="nvarchar" MaxLength="50" />
+    <Property Name="m12" Type="nvarchar" MaxLength="50" />
+  </EntityType>
+  <EntityType Name="BemsReportFormat">
+    <Key>
+      <PropertyRef Name="ReportFormatId" />
+      <PropertyRef Name="parts" />
+    </Key>
+    <Property Name="ReportFormatId" Type="int" Nullable="false" />
+    <Property Name="FormatName" Type="varchar" MaxLength="50" Nullable="false" />
+    <Property Name="Content" Type="varchar(max)" />
+    <Property Name="parts" Type="int" Nullable="false" />
+  </EntityType>
+  <EntityType Name="BemsReportHistory">
+    <Key>
+      <PropertyRef Name="Seq" />
+      <PropertyRef Name="DateTime" />
+      <PropertyRef Name="ReportFormatId" />
+      <PropertyRef Name="parts" />
+    </Key>
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="Seq" Type="int" Nullable="false" />
+    <Property Name="DateTime" Type="datetime" Nullable="false" />
+    <Property Name="ReportName" Type="varchar" MaxLength="200" Nullable="false" />
+    <Property Name="ReportFormatId" Type="int" Nullable="false" />
+    <Property Name="FormatName" Type="varchar" MaxLength="50" Nullable="false" />
+    <Property Name="Content" Type="varchar(max)" />
+    <Property Name="Writer" Type="varchar" MaxLength="50" />
+    <Property Name="Confirm1" Type="varchar" MaxLength="50" />
+    <Property Name="Confirm2" Type="varchar" MaxLength="50" />
+    <Property Name="parts" Type="int" Nullable="false" />
+    <Property Name="FileName" Type="nvarchar" MaxLength="100" />
+  </EntityType>
+  <EntityType Name="BemsServiceType">
+    <Key>
+      <PropertyRef Name="ServiceTypeId" />
+    </Key>
+    <Property Name="ServiceTypeId" Type="smallint" Nullable="false" />
+    <Property Name="Name" Type="nvarchar" MaxLength="48" />
+  </EntityType>
+  <EntityType Name="BemsSitePrice">
+    <Key>
+      <PropertyRef Name="SiteID" />
+      <PropertyRef Name="FuelTypeId" />
+      <PropertyRef Name="PriceTypeId" />
+      <PropertyRef Name="PriceCode" />
+    </Key>
+    <Property Name="SiteID" Type="int" Nullable="false" />
+    <Property Name="FuelTypeId" Type="smallint" Nullable="false" />
+    <Property Name="PriceTypeId" Type="int" Nullable="false" />
+    <Property Name="PriceCode" Type="varchar" MaxLength="20" Nullable="false" />
+    <Property Name="UseYN" Type="varchar" MaxLength="1" Nullable="false" />
+  </EntityType>
+  <EntityType Name="BemsSitePriceHistory">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="FuelTypeId" />
+      <PropertyRef Name="PriceTypeId" />
+      <PropertyRef Name="PriceCode" />
+      <PropertyRef Name="PayDate" />
+    </Key>
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="FuelTypeId" Type="smallint" Nullable="false" />
+    <Property Name="PriceTypeId" Type="int" Nullable="false" />
+    <Property Name="PriceCode" Type="varchar" MaxLength="20" Nullable="false" />
+    <Property Name="PriceValue" Type="varchar" MaxLength="200" />
+    <Property Name="PayDate" Type="varchar" MaxLength="6" Nullable="false" />
+    <Property Name="StartDate" Type="datetime" />
+    <Property Name="EndDate" Type="datetime" />
+    <Property Name="PayCharge" Type="varchar" MaxLength="200" />
+  </EntityType>
+  <EntityType Name="CmAlarmAdmin">
+    <Key>
+      <PropertyRef Name="SiteId" />
+    </Key>
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="UserCode" Type="nvarchar" MaxLength="50" />
+    <Property Name="DeptCode" Type="nvarchar" MaxLength="50" />
+    <Property Name="PhoneNo" Type="nvarchar" MaxLength="50" />
+    <Property Name="EmailAddress" Type="nvarchar" MaxLength="50" />
+    <Property Name="EmailPassword" Type="nvarchar" MaxLength="50" />
+  </EntityType>
+  <EntityType Name="CmAnnouncement">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="AnnouncementId" />
+    </Key>
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="AnnouncementId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+    <Property Name="BusinessFieldId" Type="int" Nullable="false" />
+    <Property Name="Title" Type="nvarchar" MaxLength="128" Nullable="false" />
+    <Property Name="Contents" Type="nvarchar" MaxLength="1024" Nullable="false" />
+    <Property Name="RegisterUserId" Type="nvarchar" MaxLength="24" Nullable="false" />
+    <Property Name="FileId" Type="int" />
+    <Property Name="AddDate" Type="datetime" Nullable="false" />
+    <Property Name="UpdateDate" Type="datetime" Nullable="false" />
+    <Property Name="IsUse" Type="bit" />
+    <Property Name="ReadCount" Type="int" Nullable="false" />
+  </EntityType>
+  <EntityType Name="CmBuilding">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="BuildingId" />
+    </Key>
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="BuildingId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+    <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
+    <Property Name="FileId" Type="int" />
+    <Property Name="IsUse" Type="bit" />
+    <Property Name="SortOrderNo" Type="int" />
+  </EntityType>
+  <EntityType Name="CmBusinessField">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="BusinessFieldId" />
+    </Key>
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="BusinessFieldId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+    <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
+    <Property Name="IsUse" Type="bit" />
+  </EntityType>
+  <EntityType Name="CmCompany">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="CompanyId" />
+    </Key>
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="CompanyId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+    <Property Name="CompanyTypeId" Type="int" Nullable="false" />
+    <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
+    <Property Name="PhoneNo" Type="nvarchar" MaxLength="20" Nullable="false" />
+    <Property Name="FaxNo" Type="nvarchar" MaxLength="20" />
+    <Property Name="RepresentativeName" Type="nvarchar" MaxLength="20" Nullable="false" />
+    <Property Name="SalesName" Type="nvarchar" MaxLength="20" />
+    <Property Name="SalesPhoneNo" Type="nvarchar" MaxLength="20" />
+    <Property Name="AddressZip1" Type="nchar" MaxLength="5" />
+    <Property Name="AddressZip2" Type="nchar" MaxLength="3" />
+    <Property Name="Address1" Type="nvarchar" MaxLength="50" />
+    <Property Name="Adderss2" Type="nvarchar" MaxLength="100" />
+    <Property Name="Homepage" Type="nvarchar" MaxLength="100" />
+    <Property Name="Comment" Type="nvarchar" MaxLength="1024" />
+    <Property Name="IsUse" Type="bit" />
+  </EntityType>
+  <EntityType Name="CmCompanyType">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="CompanyTypeId" />
+    </Key>
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="CompanyTypeId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+    <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
+    <Property Name="IsUse" Type="bit" />
+  </EntityType>
+  <EntityType Name="CmDepartment">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="CompanyId" />
+      <PropertyRef Name="DepartmentId" />
+    </Key>
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="CompanyId" Type="int" Nullable="false" />
+    <Property Name="DepartmentId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+    <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
+    <Property Name="ShortName" Type="nvarchar" MaxLength="50" />
+    <Property Name="FaxNo" Type="nvarchar" MaxLength="50" />
+    <Property Name="PhoneNo" Type="nvarchar" MaxLength="50" />
+    <Property Name="Comment" Type="nvarchar" MaxLength="1024" />
+    <Property Name="IsUse" Type="bit" />
+  </EntityType>
+  <EntityType Name="CmFacility">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="FacilityCode" />
+    </Key>
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="FacilityTypeId" Type="int" Nullable="false" />
+    <Property Name="FacilityCode" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+    <Property Name="FirstClassId" Type="int" />
+    <Property Name="SecondClassId" Type="int" />
+    <Property Name="ThirdClassId" Type="int" />
+    <Property Name="DeviceType" Type="nvarchar" MaxLength="48" />
+    <Property Name="ParentFacilityCode" Type="int" />
+    <Property Name="Name" Type="nvarchar" MaxLength="80" Nullable="false" />
+    <Property Name="Nickname" Type="nvarchar" MaxLength="40" />
+    <Property Name="Rfid" Type="nvarchar" MaxLength="52" />
+    <Property Name="Manufacturer" Type="nvarchar" MaxLength="40" />
+    <Property Name="ManufactureDate" Type="date" />
+    <Property Name="ManufactureSerial" Type="nvarchar" MaxLength="20" />
+    <Property Name="ManufactureModel" Type="nvarchar" MaxLength="40" />
+    <Property Name="Supplier" Type="nvarchar" MaxLength="40" />
+    <Property Name="SupplierPhoneNo" Type="nvarchar" MaxLength="20" />
+    <Property Name="BuildingId" Type="int" />
+    <Property Name="FloorId" Type="int" />
+    <Property Name="ZoneId" Type="int" />
+    <Property Name="InstallDate" Type="date" />
+    <Property Name="OperationStartDate" Type="date" />
+    <Property Name="FacilityCapacity" Type="nvarchar" MaxLength="40" />
+    <Property Name="FacilityCost" Type="int" />
+    <Property Name="FacilityCount" Type="int" />
+    <Property Name="FacilitySeviceLifeYear" Type="int" />
+    <Property Name="FacilityUsage" Type="nvarchar" MaxLength="80" />
+    <Property Name="RatedPowerConsumption" Type="nvarchar" MaxLength="40" />
+    <Property Name="RatedCOP" Type="float" />
+    <Property Name="MainContactorUserId" Type="nvarchar" MaxLength="24" />
+    <Property Name="SubContactorUserId" Type="nvarchar" MaxLength="24" />
+    <Property Name="Note" Type="nvarchar" MaxLength="1024" />
+    <Property Name="Reserved1" Type="nvarchar" MaxLength="64" />
+    <Property Name="Reserved2" Type="nvarchar" MaxLength="64" />
+    <Property Name="IsUse" Type="bit" />
+    <Property Name="FileId" Type="int" />
+    <Property Name="IsVirtualFacility" Type="bit" Nullable="false" />
+    <Property Name="FuelTypeId" Type="smallint" />
+    <Property Name="ContractType" Type="smallint" />
+  </EntityType>
+  <EntityType Name="CmFacilityFile">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="FileId" />
+    </Key>
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="FileId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+    <Property Name="FacilityCode" Type="int" Nullable="false" />
+    <Property Name="InsertedDate" Type="datetime" />
+    <Property Name="InsertedUserId" Type="nvarchar" MaxLength="24" />
+    <Property Name="UpdatedDate" Type="datetime" />
+    <Property Name="UpdatedUserId" Type="nvarchar" MaxLength="24" />
+  </EntityType>
+  <EntityType Name="CmFacilityTempSet">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="FacilityCode" />
+    </Key>
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="FacilityCode" Type="int" Nullable="false" />
+    <Property Name="T1" Type="float" Nullable="false" />
+    <Property Name="T2" Type="float" Nullable="false" />
+    <Property Name="T3" Type="float" Nullable="false" />
+    <Property Name="T4" Type="float" Nullable="false" />
+    <Property Name="T5" Type="float" Nullable="false" />
+    <Property Name="T6" Type="float" Nullable="false" />
+    <Property Name="T7" Type="float" Nullable="false" />
+    <Property Name="T8" Type="float" Nullable="false" />
+    <Property Name="T9" Type="float" Nullable="false" />
+    <Property Name="T10" Type="float" Nullable="false" />
+    <Property Name="T11" Type="float" Nullable="false" />
+    <Property Name="T12" Type="float" Nullable="false" />
+  </EntityType>
+  <EntityType Name="CmFile">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="FileId" />
+    </Key>
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="FileId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+    <Property Name="FileCategoryId" Type="int" Nullable="false" />
+    <Property Name="Name" Type="nvarchar" MaxLength="256" Nullable="false" />
+    <Property Name="FileSize" Type="int" />
+    <Property Name="CreatedDate" Type="datetime" />
+    <Property Name="ContentType" Type="nvarchar" MaxLength="128" />
+  </EntityType>
+  <EntityType Name="CmFileCategory">
+    <Key>
+      <PropertyRef Name="FileCategoryId" />
+    </Key>
+    <Property Name="FileCategoryId" Type="int" Nullable="false" />
+    <Property Name="Name" Type="nvarchar" MaxLength="32" Nullable="false" />
+  </EntityType>
+  <EntityType Name="CmFloor">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="BuildingId" />
+      <PropertyRef Name="FloorId" />
+    </Key>
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="BuildingId" Type="int" Nullable="false" />
+    <Property Name="FloorId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+    <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
+  </EntityType>
+  <EntityType Name="CmHoliday">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="HolidayMonth" />
+      <PropertyRef Name="HolidayDay" />
+      <PropertyRef Name="IsLunar" />
+    </Key>
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="HolidayMonth" Type="smallint" Nullable="false" />
+    <Property Name="HolidayDay" Type="smallint" Nullable="false" />
+    <Property Name="IsLunar" Type="bit" Nullable="false" />
+    <Property Name="Name" Type="nvarchar" MaxLength="16" Nullable="false" />
+    <Property Name="IsUse" Type="bit" />
+  </EntityType>
+  <EntityType Name="CmHolidayCustom">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="HolidayDate" />
+    </Key>
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="HolidayDate" Type="datetime" Nullable="false" />
+    <Property Name="Name" Type="nvarchar" MaxLength="16" Nullable="false" />
+    <Property Name="IsUse" Type="bit" />
+  </EntityType>
+  <EntityType Name="CmHolidayWeekend">
+    <Key>
+      <PropertyRef Name="SiteId" />
+    </Key>
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="Saturday" Type="bit" Nullable="false" />
+    <Property Name="Sunday" Type="bit" Nullable="false" />
+    <Property Name="IsUse" Type="bit" />
+  </EntityType>
+  <EntityType Name="CmMenu">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="MenuId" />
+    </Key>
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="MenuId" Type="nvarchar" MaxLength="50" Nullable="false" />
+    <Property Name="Used" Type="bit" />
+    <Property Name="MenuPath" Type="nvarchar" MaxLength="255" />
+    <Property Name="Name" Type="nvarchar" MaxLength="50" />
+  </EntityType>
+  <EntityType Name="CmPartner">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="PartnerId" />
+    </Key>
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="PartnerId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+    <Property Name="PartnerTypeId" Type="int" Nullable="false" />
+    <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
+    <Property Name="RegistrationNo" Type="nvarchar" MaxLength="24" />
+    <Property Name="RepresentativeName" Type="nvarchar" MaxLength="20" />
+    <Property Name="PhoneNo" Type="nvarchar" MaxLength="20" />
+    <Property Name="FaxNo" Type="nvarchar" MaxLength="20" />
+    <Property Name="SalesName" Type="nvarchar" MaxLength="20" />
+    <Property Name="SalesPhoneNo" Type="nvarchar" MaxLength="20" />
+    <Property Name="AddressZip1" Type="nchar" MaxLength="3" />
+    <Property Name="AddressZip2" Type="nchar" MaxLength="3" />
+    <Property Name="Address1" Type="nvarchar" MaxLength="50" />
+    <Property Name="Adderss2" Type="nvarchar" MaxLength="100" />
+    <Property Name="HomepageUri" Type="nvarchar" MaxLength="100" />
+    <Property Name="Note" Type="nvarchar" MaxLength="1024" />
+    <Property Name="IsUse" Type="bit" />
+  </EntityType>
+  <EntityType Name="CmPartnerType">
+    <Key>
+      <PropertyRef Name="PartnerTypeId" />
+    </Key>
+    <Property Name="PartnerTypeId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+    <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
+    <Property Name="IsUse" Type="bit" />
+  </EntityType>
+  <EntityType Name="CmPatrolCourse">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="PatrolCourseId" />
+    </Key>
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="PatrolCourseId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+    <Property Name="Name" Type="nvarchar" MaxLength="48" Nullable="false" />
+  </EntityType>
+  <EntityType Name="CmPatrolCoursePos">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="PatrolCourseId" />
+      <PropertyRef Name="BuildingId" />
+      <PropertyRef Name="FloorId" />
+      <PropertyRef Name="PosId" />
+    </Key>
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="PatrolCourseId" Type="int" Nullable="false" />
+    <Property Name="BuildingId" Type="int" Nullable="false" />
+    <Property Name="FloorId" Type="int" Nullable="false" />
+    <Property Name="PosId" Type="int" Nullable="false" />
+    <Property Name="CourseOrder" Type="int" Nullable="false" />
+  </EntityType>
+  <EntityType Name="CmPatrolGroup">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="PatrolGroupId" />
+    </Key>
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="PatrolGroupId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+    <Property Name="Name" Type="nvarchar" MaxLength="48" Nullable="false" />
+  </EntityType>
+  <EntityType Name="CmPatrolGroupUser">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="PatrolGroupId" />
+      <PropertyRef Name="UserId" />
+    </Key>
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="PatrolGroupId" Type="int" Nullable="false" />
+    <Property Name="UserId" Type="nvarchar" MaxLength="24" Nullable="false" />
+  </EntityType>
+  <EntityType Name="CmPatrolHistory">
+    <Key>
+      <PropertyRef Name="PatrolHistoryId" />
+    </Key>
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="PatrolHistoryId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+    <Property Name="ScheduleId" Type="int" Nullable="false" />
+    <Property Name="startDate" Type="datetime" Nullable="false" />
+    <Property Name="endDate" Type="datetime" />
+    <Property Name="resultTypeId" Type="int" Nullable="false" />
+    <Property Name="resultDesc" Type="varchar" MaxLength="1024" />
+    <Property Name="resultPosCnt" Type="int" />
+    <Property Name="resultNormalCnt" Type="int" />
+    <Property Name="resultAbnormalCnt" Type="int" />
+  </EntityType>
+  <EntityType Name="CmPatrolHistoryPos">
+    <Key>
+      <PropertyRef Name="mId" />
+    </Key>
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="PatrolHistoryId" Type="int" Nullable="false" />
+    <Property Name="PosId" Type="int" Nullable="false" />
+    <Property Name="PatrolTime" Type="datetime" Nullable="false" />
+    <Property Name="term" Type="int" />
+    <Property Name="resultType" Type="int" Nullable="false" />
+    <Property Name="mId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+  </EntityType>
+  <EntityType Name="CmPatrolPlan">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="PatrolPlanId" />
+    </Key>
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="PatrolPlanId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+    <Property Name="GroupId" Type="int" Nullable="false" />
+    <Property Name="CourseId" Type="int" Nullable="false" />
+    <Property Name="Name" Type="varchar" MaxLength="48" Nullable="false" />
+    <Property Name="PlanDesc" Type="varchar" MaxLength="1024" />
+    <Property Name="term" Type="int" Nullable="false" />
+    <Property Name="inDate" Type="datetime" />
+  </EntityType>
+  <EntityType Name="CmPatrolPos">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="PosId" />
+    </Key>
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="BuildingId" Type="int" Nullable="false" />
+    <Property Name="FloorId" Type="int" Nullable="false" />
+    <Property Name="PosId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+    <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
+    <Property Name="TagId" Type="nvarchar" MaxLength="32" />
+    <Property Name="PosDesc" Type="nvarchar" MaxLength="1024" />
+  </EntityType>
+  <EntityType Name="CmPatrolSchedule">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="ScheduleId" />
+    </Key>
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="ScheduleId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+    <Property Name="PlanId" Type="int" Nullable="false" />
+    <Property Name="Name" Type="varchar" MaxLength="48" Nullable="false" />
+    <Property Name="ScheduleDesc" Type="varchar" MaxLength="128" />
+    <Property Name="inDate" Type="datetime" />
+    <Property Name="patrolDateTime" Type="datetime" Nullable="false" />
+  </EntityType>
+  <EntityType Name="CmPatrolType">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="PatrolTypeId" />
+    </Key>
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="PatrolTypeId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+    <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
+    <Property Name="IsUse" Type="bit" />
+  </EntityType>
+  <EntityType Name="CmPosition">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="PositionId" />
+    </Key>
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="PositionId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+    <Property Name="Name" Type="nvarchar" MaxLength="40" Nullable="false" />
+    <Property Name="IsUse" Type="bit" />
+    <Property Name="Position" Type="int" />
+  </EntityType>
+  <EntityType Name="CmServiceEnergyCalcDay">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="calDate" />
+      <PropertyRef Name="ServiceTypeId" />
+    </Key>
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="calDate" Type="datetime" Nullable="false" />
+    <Property Name="ServiceTypeId" Type="smallint" Nullable="false" />
+    <Property Name="Value" Type="float" />
+  </EntityType>
+  <EntityType Name="CmServiceEnergyCalcMonth">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="calDate" />
+      <PropertyRef Name="ServiceTypeId" />
+    </Key>
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="calDate" Type="datetime" Nullable="false" />
+    <Property Name="ServiceTypeId" Type="smallint" Nullable="false" />
+    <Property Name="Value" Type="float" />
+  </EntityType>
+  <EntityType Name="CmSite">
+    <Key>
+      <PropertyRef Name="SiteId" />
+    </Key>
+    <Property Name="SiteId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+    <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
+    <Property Name="AddressZip1" Type="nchar" MaxLength="5" />
+    <Property Name="AddressZip2" Type="nchar" MaxLength="3" />
+    <Property Name="Address1" Type="nvarchar" MaxLength="100" />
+    <Property Name="Adderss2" Type="nvarchar" MaxLength="100" />
+    <Property Name="PhoneNo" Type="nvarchar" MaxLength="24" />
+    <Property Name="URL" Type="nvarchar" MaxLength="100" />
+    <Property Name="Comment" Type="nvarchar" MaxLength="1024" />
+    <Property Name="IsUse" Type="bit" />
+    <Property Name="SortOrderNo" Type="int" />
+    <Property Name="InsertedDate" Type="datetime" />
+    <Property Name="InsertedUserId" Type="nvarchar" MaxLength="24" />
+    <Property Name="UpdatedDate" Type="datetime" />
+    <Property Name="UpdatedUserId" Type="nvarchar" MaxLength="24" />
+    <Property Name="IsControlSchedule" Type="bit" />
+    <Property Name="ScheduleCheckHour" Type="int" />
+    <Property Name="MaxPeak" Type="float" />
+    <Property Name="lat" Type="float" />
+    <Property Name="lng" Type="float" />
+    <Property Name="controlSchedule" Type="bit" />
+    <Property Name="HDD" Type="nvarchar" MaxLength="24" />
+    <Property Name="CDD" Type="nvarchar" MaxLength="24" />
+    <Property Name="BuildingSize" Type="nvarchar" MaxLength="50" />
+    <Property Name="GrossArea" Type="nvarchar" MaxLength="24" />
+    <Property Name="BuildingArea" Type="nvarchar" MaxLength="24" />
+    <Property Name="FloorAreaRatio" Type="nvarchar" MaxLength="24" />
+    <Property Name="BuildingCoverageRatio" Type="nvarchar" MaxLength="24" />
+    <Property Name="MainUse" Type="nvarchar" MaxLength="10" />
+    <Property Name="CompletionDate" Type="nvarchar" MaxLength="24" />
+    <Property Name="Standard" Type="nvarchar" MaxLength="24" />
+    <Property Name="MainUseIndex" Type="int" />
+  </EntityType>
+  <EntityType Name="CmUser">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="UserId" />
+    </Key>
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="UserId" Type="nvarchar" MaxLength="24" Nullable="false" />
+    <Property Name="CompanyId" Type="int" />
+    <Property Name="DepartmentId" Type="int" />
+    <Property Name="PositionId" Type="int" />
+    <Property Name="BusinessFieldId" Type="int" />
+    <Property Name="UserGroupId" Type="int" />
+    <Property Name="Name" Type="nvarchar" MaxLength="30" Nullable="false" />
+    <Property Name="Passwd" Type="nvarchar" MaxLength="30" Nullable="false" />
+    <Property Name="Birthday" Type="datetime" />
+    <Property Name="Lunar" Type="bit" />
+    <Property Name="StateId" Type="int" />
+    <Property Name="EmploymentType" Type="int" />
+    <Property Name="EmploymentStatus" Type="int" />
+    <Property Name="OfficePhoneNo" Type="nvarchar" MaxLength="50" />
+    <Property Name="HomePhoneNo" Type="nvarchar" MaxLength="50" />
+    <Property Name="MobilePhoneNo" Type="nvarchar" MaxLength="50" />
+    <Property Name="HomeZip1" Type="char" MaxLength="3" />
+    <Property Name="HomeZip2" Type="char" MaxLength="3" />
+    <Property Name="HomeAddress1" Type="nvarchar" MaxLength="50" />
+    <Property Name="HomeAdderss2" Type="nvarchar" MaxLength="100" />
+    <Property Name="Email" Type="nvarchar" MaxLength="50" />
+    <Property Name="EnterDate" Type="datetime" />
+    <Property Name="RetireDate" Type="datetime" />
+    <Property Name="Comment" Type="nvarchar" MaxLength="1024" />
+    <Property Name="Rfcsn" Type="nvarchar" MaxLength="30" />
+    <Property Name="PasswordUpdatedDate" Type="datetime" />
+    <Property Name="FileId" Type="int" />
+    <Property Name="IsBems" Type="bit" />
+    <Property Name="IsUse" Type="bit" />
+    <Property Name="IsScheduleUser" Type="bit" />
+    <Property Name="Certificated" Type="nvarchar" MaxLength="512" />
+    <Property Name="IsSI" Type="bit" />
+    <Property Name="IsMobile" Type="bit" />
+    <Property Name="Devicetoken" Type="nvarchar" MaxLength="500" />
+  </EntityType>
+  <EntityType Name="CmUserGroup">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="UserGroupId" />
+    </Key>
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="UserGroupId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+    <Property Name="Name" Type="nvarchar" MaxLength="32" Nullable="false" />
+  </EntityType>
+  <EntityType Name="CmUserGroupPermission">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="UserGroupId" />
+      <PropertyRef Name="MenuId" />
+    </Key>
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="UserGroupId" Type="int" Nullable="false" />
+    <Property Name="MenuId" Type="nvarchar" MaxLength="50" Nullable="false" />
+    <Property Name="MenuPermission" Type="smallint" />
+  </EntityType>
+  <EntityType Name="CmUserLoginHistory">
+    <Key>
+      <PropertyRef Name="LoginHistoryId" />
+    </Key>
+    <Property Name="LoginHistoryId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="UserId" Type="nvarchar" MaxLength="24" Nullable="false" />
+    <Property Name="Type" Type="nvarchar" MaxLength="10" Nullable="false" />
+    <Property Name="TraceTime" Type="datetime" Nullable="false" />
+    <Property Name="IpAddress" Type="nvarchar" MaxLength="16" />
+  </EntityType>
+  <EntityType Name="CmUserToLicense">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="UserId" />
+      <PropertyRef Name="LicenseId" />
+    </Key>
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="UserId" Type="nvarchar" MaxLength="24" Nullable="false" />
+    <Property Name="LicenseId" Type="int" Nullable="false" />
+  </EntityType>
+  <EntityType Name="CmZone">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="BuildingId" />
+      <PropertyRef Name="FloorId" />
+      <PropertyRef Name="ZoneId" />
+    </Key>
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="BuildingId" Type="int" Nullable="false" />
+    <Property Name="FloorId" Type="int" Nullable="false" />
+    <Property Name="ZoneId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+    <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
+    <Property Name="Target_temperature" Type="float" />
+    <Property Name="Target_humidity" Type="smallint" />
+  </EntityType>
+  <EntityType Name="CmZoneTempHumiSet">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="BuildingId" />
+      <PropertyRef Name="FloorId" />
+      <PropertyRef Name="ZoneId" />
+    </Key>
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="BuildingId" Type="int" Nullable="false" />
+    <Property Name="FloorId" Type="int" Nullable="false" />
+    <Property Name="ZoneId" Type="int" Nullable="false" />
+    <Property Name="T1" Type="float" Nullable="false" />
+    <Property Name="T2" Type="float" Nullable="false" />
+    <Property Name="T3" Type="float" Nullable="false" />
+    <Property Name="T4" Type="float" Nullable="false" />
+    <Property Name="T5" Type="float" Nullable="false" />
+    <Property Name="T6" Type="float" Nullable="false" />
+    <Property Name="T7" Type="float" Nullable="false" />
+    <Property Name="T8" Type="float" Nullable="false" />
+    <Property Name="T9" Type="float" Nullable="false" />
+    <Property Name="T10" Type="float" Nullable="false" />
+    <Property Name="T11" Type="float" Nullable="false" />
+    <Property Name="T12" Type="float" Nullable="false" />
+    <Property Name="H1" Type="smallint" Nullable="false" />
+    <Property Name="H2" Type="smallint" Nullable="false" />
+    <Property Name="H3" Type="smallint" Nullable="false" />
+    <Property Name="H4" Type="smallint" Nullable="false" />
+    <Property Name="H5" Type="smallint" Nullable="false" />
+    <Property Name="H6" Type="smallint" Nullable="false" />
+    <Property Name="H7" Type="smallint" Nullable="false" />
+    <Property Name="H8" Type="smallint" Nullable="false" />
+    <Property Name="H9" Type="smallint" Nullable="false" />
+    <Property Name="H10" Type="smallint" Nullable="false" />
+    <Property Name="H11" Type="smallint" Nullable="false" />
+    <Property Name="H12" Type="smallint" Nullable="false" />
+  </EntityType>
+  <EntityType Name="FmsAccident">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="AccidentId" />
+    </Key>
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="AccidentId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+    <Property Name="Name" Type="nvarchar" MaxLength="256" Nullable="false" />
+    <Property Name="StartDate" Type="datetime" />
+    <Property Name="EndDate" Type="datetime" />
+    <Property Name="AccidentTypeId" Type="int" Nullable="false" />
+    <Property Name="DepartmentId" Type="int" />
+    <Property Name="AccidentLocation" Type="nvarchar" MaxLength="256" />
+    <Property Name="Reason" Type="nvarchar" MaxLength="1024" />
+    <Property Name="Action" Type="nvarchar" MaxLength="1024" />
+    <Property Name="Damage" Type="nvarchar" MaxLength="1024" />
+    <Property Name="Measurement" Type="nvarchar" MaxLength="1024" />
+    <Property Name="FileId1" Type="int" />
+    <Property Name="FileId2" Type="int" />
+    <Property Name="FileId3" Type="int" />
+    <Property Name="CompanyId" Type="int" />
+  </EntityType>
+  <EntityType Name="FmsAccidentCodeType">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="AccidentTypeId" />
+    </Key>
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="AccidentTypeId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+    <Property Name="Name" Type="nvarchar" MaxLength="24" Nullable="false" />
+    <Property Name="IsUse" Type="bit" Nullable="false" />
+  </EntityType>
+  <EntityType Name="FmsBudget">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="Year" />
+    </Key>
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="Year" Type="int" Nullable="false" />
+  </EntityType>
+  <EntityType Name="FmsBudgetCodeClass">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="BudgetClassId" />
+    </Key>
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="BudgetClassId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+    <Property Name="BudgetSeq" Type="nvarchar" MaxLength="6" Nullable="false" />
+    <Property Name="RootBudgetClassId" Type="int" />
+    <Property Name="ParentBudgetClassId" Type="int" />
+    <Property Name="Depth" Type="int" Nullable="false" />
+    <Property Name="Name" Type="nvarchar" MaxLength="32" Nullable="false" />
+    <Property Name="Abbreviation" Type="nvarchar" MaxLength="16" />
+    <Property Name="IsUse" Type="bit" />
+    <Property Name="YearlyBudget" Type="float" />
+    <Property Name="MonthlyBudget" Type="float" />
+  </EntityType>
+  <EntityType Name="FmsBudgetDetail">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="Year" />
+      <PropertyRef Name="BudgetClassId" />
+      <PropertyRef Name="ParentBudgetClassId" />
+    </Key>
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="Year" Type="int" Nullable="false" />
+    <Property Name="BudgetClassId" Type="int" Nullable="false" />
+    <Property Name="BudgetSeq" Type="nvarchar" MaxLength="6" Nullable="false" />
+    <Property Name="ParentBudgetClassId" Type="int" Nullable="false" />
+    <Property Name="RootBudgetClassId" Type="int" />
+    <Property Name="Depth" Type="int" Nullable="false" />
+    <Property Name="Name" Type="nvarchar" MaxLength="32" Nullable="false" />
+    <Property Name="Abbreviation" Type="nvarchar" MaxLength="16" />
+    <Property Name="IsUse" Type="bit" />
+    <Property Name="YearlyBudget" Type="float" Nullable="false" />
+    <Property Name="MonthlyBudget" Type="float" Nullable="false" />
+  </EntityType>
+  <EntityType Name="FmsBudgetDetailExecution">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="Year" />
+      <PropertyRef Name="BudgetClassId" />
+      <PropertyRef Name="ParentBudgetClassId" />
+      <PropertyRef Name="Month" />
+    </Key>
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="Year" Type="int" Nullable="false" />
+    <Property Name="BudgetClassId" Type="int" Nullable="false" />
+    <Property Name="RootBudgetClassId" Type="int" />
+    <Property Name="ParentBudgetClassId" Type="int" Nullable="false" />
+    <Property Name="Month" Type="int" Nullable="false" />
+    <Property Name="YearlyBudget" Type="float" Nullable="false" />
+    <Property Name="MonthlyBudget" Type="float" Nullable="false" />
+    <Property Name="YearlyExecution" Type="float" Nullable="false" />
+    <Property Name="MonthlyExecution" Type="float" Nullable="false" />
+  </EntityType>
+  <EntityType Name="FmsCompanyEstimationCodeClass">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="CompanyEstimationClassId" />
+    </Key>
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="CompanyEstimationClassId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+    <Property Name="Name" Type="nvarchar" MaxLength="32" Nullable="false" />
+    <Property Name="IsUse" Type="bit" />
+  </EntityType>
+  <EntityType Name="FmsConstruction">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="ConstructionId" />
+    </Key>
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="ConstructionId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+    <Property Name="Name" Type="nvarchar" MaxLength="256" Nullable="false" />
+    <Property Name="ConstructionTypeId" Type="int" Nullable="false" />
+    <Property Name="StartDate" Type="datetime" Nullable="false" />
+    <Property Name="EndDate" Type="datetime" Nullable="false" />
+    <Property Name="PartnerId" Type="int" Nullable="false" />
+    <Property Name="ConstructLocation" Type="nvarchar" MaxLength="256" Nullable="false" />
+    <Property Name="OwnerShipName" Type="nvarchar" MaxLength="24" Nullable="false" />
+    <Property Name="CommitmentMan" Type="smallint" />
+    <Property Name="OwnerShipPhoneNo" Type="nvarchar" MaxLength="20" Nullable="false" />
+    <Property Name="WeldWorkStartTime" Type="datetime" />
+    <Property Name="WeldWorkEndTime" Type="datetime" />
+    <Property Name="GasWorkStartTime" Type="datetime" />
+    <Property Name="GasWorkEndTime" Type="datetime" />
+    <Property Name="PaintWorkStartTime" Type="datetime" />
+    <Property Name="PaintWorkEndTime" Type="datetime" />
+    <Property Name="Comment" Type="nvarchar" MaxLength="1024" />
+    <Property Name="ProgressId" Type="smallint" Nullable="false" />
+    <Property Name="AddDate" Type="datetime" Nullable="false" />
+    <Property Name="UpdateDate" Type="datetime" Nullable="false" />
+    <Property Name="ConstructionDetail" Type="nvarchar" MaxLength="1024" />
+    <Property Name="InOutStockName" Type="nvarchar" MaxLength="1024" />
+    <Property Name="FileId1" Type="int" />
+    <Property Name="FileId2" Type="int" />
+    <Property Name="FileId3" Type="int" />
+  </EntityType>
+  <EntityType Name="FmsConstructionCodeProgress">
+    <Key>
+      <PropertyRef Name="ProgressId" />
+    </Key>
+    <Property Name="ProgressId" Type="smallint" Nullable="false" />
+    <Property Name="Name" Type="nvarchar" MaxLength="24" Nullable="false" />
+    <Property Name="Description" Type="nvarchar" MaxLength="100" />
+  </EntityType>
+  <EntityType Name="FmsConstructionCodeType">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="ConstructionTypeId" />
+    </Key>
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="ConstructionTypeId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+    <Property Name="Name" Type="nvarchar" MaxLength="24" Nullable="false" />
+    <Property Name="IsUse" Type="bit" Nullable="false" />
+  </EntityType>
+  <EntityType Name="FmsConstructionEstimation">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="ConstructionId" />
+    </Key>
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="ConstructionId" Type="int" Nullable="false" />
+    <Property Name="EstimateDate" Type="datetime" Nullable="false" />
+    <Property Name="EstimateUserId" Type="nvarchar" MaxLength="24" Nullable="false" />
+    <Property Name="Safety01_CleanUp" Type="bit" />
+    <Property Name="Safety02_PersonalProtection" Type="bit" />
+    <Property Name="Safety03_FireExtinguisher" Type="bit" />
+    <Property Name="Safety04_HighPlaceWork" Type="bit" />
+    <Property Name="Safety05_Weld" Type="bit" />
+    <Property Name="Safety06_SurroundingCleanUp" Type="bit" />
+    <Property Name="Safety07_SurroundingHealthy" Type="bit" />
+    <Property Name="Safety08_Noise" Type="bit" />
+    <Property Name="Safety09_FacilityProtection" Type="bit" />
+    <Property Name="Safety10_Waste" Type="bit" />
+    <Property Name="Safety11_Execution" Type="bit" />
+    <Property Name="Safety12_Announcement" Type="bit" />
+    <Property Name="Ability01_Compliance" Type="bit" />
+    <Property Name="Ability02_Fault" Type="bit" />
+    <Property Name="Ability03_SkillLevel" Type="bit" />
+    <Property Name="Ability04_ProcessManagement" Type="bit" />
+    <Property Name="Ability05_Collaboration" Type="bit" />
+    <Property Name="Service01_Compliance" Type="bit" />
+    <Property Name="Service02_SkillLevel" Type="bit" />
+    <Property Name="Comment" Type="nvarchar" MaxLength="1024" />
+    <Property Name="TotalEstimateScore" Type="float" />
+    <Property Name="SafetyScore" Type="float" />
+    <Property Name="AbilityScore" Type="float" />
+    <Property Name="ServiceScore" Type="float" />
+  </EntityType>
+  <EntityType Name="FmsContract">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="ContractId" />
+    </Key>
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="ContractId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+    <Property Name="Name" Type="nvarchar" MaxLength="256" Nullable="false" />
+    <Property Name="PartnerTypeId" Type="int" />
+    <Property Name="PartnerId" Type="int" />
+    <Property Name="ContractDate" Type="datetime" />
+    <Property Name="StartDate" Type="datetime" />
+    <Property Name="EndDate" Type="datetime" />
+    <Property Name="OwnerShipName" Type="nvarchar" MaxLength="24" />
+    <Property Name="OwnerShipPhoneNo" Type="nvarchar" MaxLength="20" />
+    <Property Name="CommitmentMan" Type="smallint" />
+    <Property Name="Comment" Type="nvarchar" MaxLength="1024" />
+    <Property Name="ContractClassId" Type="int" />
+    <Property Name="ContractTypeId" Type="int" />
+    <Property Name="ContractMethodId" Type="int" />
+    <Property Name="PaymentTypeId" Type="int" />
+  </EntityType>
+  <EntityType Name="FmsContractClass">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="ContractClassId" />
+    </Key>
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="ContractClassId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+    <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
+    <Property Name="IsUse" Type="bit" />
+  </EntityType>
+  <EntityType Name="FmsContractMethod">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="ContractMethodId" />
+    </Key>
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="ContractMethodId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+    <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
+    <Property Name="IsUse" Type="bit" />
+  </EntityType>
+  <EntityType Name="FmsContractType">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="ContractTypeId" />
+    </Key>
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="ContractTypeId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+    <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
+    <Property Name="IsUse" Type="bit" />
+  </EntityType>
+  <EntityType Name="FmsDailyCheckReport">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="DailyCheckReportId" />
+    </Key>
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="DailyCheckReportId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+    <Property Name="Name" Type="nvarchar" MaxLength="128" Nullable="false" />
+    <Property Name="Contents" Type="nvarchar" MaxLength="1024" Nullable="false" />
+    <Property Name="RegisterUserId" Type="nvarchar" MaxLength="24" Nullable="false" />
+    <Property Name="AddDate" Type="datetime" Nullable="false" />
+  </EntityType>
+  <EntityType Name="FmsDailyReport">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="AddDate" />
+      <PropertyRef Name="BusinessFieldId" />
+    </Key>
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="DailyReportId" Type="int" />
+    <Property Name="Name" Type="nvarchar" MaxLength="128" Nullable="false" />
+    <Property Name="Contents" Type="nvarchar" MaxLength="1024" />
+    <Property Name="RegisterUserId" Type="nvarchar" MaxLength="24" Nullable="false" />
+    <Property Name="AddDate" Type="date" Nullable="false" />
+    <Property Name="BusinessFieldId" Type="int" Nullable="false" />
+    <Property Name="Datas" Type="varchar(max)" />
+    <Property Name="ApproverUserId" Type="nvarchar" MaxLength="24" />
+    <Property Name="ApproveDate" Type="date" />
+    <Property Name="RegisterDate" Type="date" />
+    <Property Name="ApproverUserId2" Type="nvarchar" MaxLength="24" />
+    <Property Name="ApproveDate2" Type="date" />
+    <Property Name="ApproverUserId3" Type="nvarchar" MaxLength="24" />
+    <Property Name="ApproveDate3" Type="date" />
+    <Property Name="ApproverUserId4" Type="nvarchar" MaxLength="24" />
+    <Property Name="ApproveDate4" Type="date" />
+    <Property Name="ApproverUserId5" Type="nvarchar" MaxLength="24" />
+    <Property Name="ApproveDate5" Type="date" />
+  </EntityType>
+  <EntityType Name="FmsDrawing">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="DrawingId" />
+    </Key>
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="DrawingId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+    <Property Name="DrawingNo" Type="nvarchar" MaxLength="20" Nullable="false" />
+    <Property Name="DrawingGroupId" Type="int" Nullable="false" />
+    <Property Name="DrawingTypeId" Type="int" Nullable="false" />
+    <Property Name="Name" Type="nvarchar" MaxLength="200" Nullable="false" />
+    <Property Name="Description" Type="nvarchar" MaxLength="2000" />
+  </EntityType>
+  <EntityType Name="FmsDrawingCodeGroup">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="DrawingGroupId" />
+    </Key>
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="DrawingGroupId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+    <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
+    <Property Name="IsUse" Type="bit" />
+  </EntityType>
+  <EntityType Name="FmsDrawingCodeType">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="DrawingTypeId" />
+    </Key>
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="DrawingTypeId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+    <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
+    <Property Name="IsUse" Type="bit" />
+  </EntityType>
+  <EntityType Name="FmsDrawingHistory">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="DrawingId" />
+      <PropertyRef Name="HistoryId" />
+    </Key>
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="DrawingId" Type="int" Nullable="false" />
+    <Property Name="HistoryId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+    <Property Name="RevisionNo" Type="int" />
+    <Property Name="FileId" Type="int" />
+    <Property Name="Description" Type="nvarchar" MaxLength="2000" />
+    <Property Name="UpdatedDate" Type="datetime" />
+    <Property Name="UpdatedUserId" Type="nvarchar" MaxLength="24" />
+  </EntityType>
+  <EntityType Name="FmsEquipment">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="EquipmentId" />
+    </Key>
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="EquipmentId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+    <Property Name="Name" Type="nvarchar" MaxLength="48" Nullable="false" />
+    <Property Name="EquipmentTypeId" Type="int" Nullable="false" />
+    <Property Name="WarehouseId" Type="int" />
+    <Property Name="Unit" Type="nvarchar" MaxLength="12" />
+    <Property Name="Standard" Type="nvarchar" MaxLength="20" />
+    <Property Name="AddDate" Type="datetime" />
+    <Property Name="UpdateDate" Type="datetime" />
+    <Property Name="RegisterUserId" Type="nvarchar" MaxLength="24" Nullable="false" />
+    <Property Name="SupplierName" Type="nvarchar" MaxLength="256" />
+    <Property Name="SupplierPhoneNo" Type="nvarchar" MaxLength="20" />
+    <Property Name="ImageFileId" Type="int" />
+  </EntityType>
+  <EntityType Name="FmsEquipmentCodeStateType">
+    <Key>
+      <PropertyRef Name="EquipmentStateTypeId" />
+    </Key>
+    <Property Name="EquipmentStateTypeId" Type="smallint" Nullable="false" />
+    <Property Name="Name" Type="nvarchar" MaxLength="24" Nullable="false" />
+    <Property Name="Comment" Type="nvarchar" MaxLength="1024" />
+  </EntityType>
+  <EntityType Name="FmsEquipmentCodeType">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="EquipmentTypeId" />
+    </Key>
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="EquipmentTypeId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+    <Property Name="Name" Type="nvarchar" MaxLength="24" Nullable="false" />
+    <Property Name="IsUse" Type="bit" Nullable="false" />
+    <Property Name="Description" Type="nvarchar" MaxLength="255" />
+  </EntityType>
+  <EntityType Name="FmsEquipmentHistory">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="EquipmentHistoryId" />
+      <PropertyRef Name="EquipmentId" />
+    </Key>
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="EquipmentHistoryId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+    <Property Name="EquipmentId" Type="int" Nullable="false" />
+    <Property Name="TotalStockCount" Type="int" />
+    <Property Name="CurrentStockCount" Type="int" />
+    <Property Name="RentCount" Type="int" />
+    <Property Name="CurrentRentCount" Type="int" />
+    <Property Name="ReturnCount" Type="int" />
+    <Property Name="LossCount" Type="int" />
+    <Property Name="StoredCount" Type="int" />
+    <Property Name="EquipmentRentId" Type="int" />
+    <Property Name="EquipmentStateTypeId" Type="smallint" />
+    <Property Name="AddDate" Type="datetime" />
+    <Property Name="UpdateDate" Type="datetime" />
+    <Property Name="IsReturned" Type="bit" />
+  </EntityType>
+  <EntityType Name="FmsEquipmentRentInfo">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="EquipmentRentId" />
+    </Key>
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="EquipmentRentId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+    <Property Name="RegisterUserId" Type="nvarchar" MaxLength="24" Nullable="false" />
+    <Property Name="RentUserId" Type="nvarchar" MaxLength="24" />
+    <Property Name="RegisterDate" Type="nchar" MaxLength="10" />
+    <Property Name="RentDate" Type="datetime" />
+    <Property Name="ReturnDueDate" Type="datetime" />
+    <Property Name="ReturnFixDate" Type="datetime" />
+    <Property Name="EquipmentStateTypeId" Type="smallint" />
+    <Property Name="Comment" Type="nvarchar" MaxLength="1024" />
+    <Property Name="Title" Type="nvarchar" MaxLength="128" Nullable="false" />
+    <Property Name="RentUser" Type="nvarchar" MaxLength="128" />
+  </EntityType>
+  <EntityType Name="FmsFacilityCheckItem">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="FacilityCode" />
+      <PropertyRef Name="CheckItemId" />
+    </Key>
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="FacilityCode" Type="int" Nullable="false" />
+    <Property Name="CheckItemId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+    <Property Name="WorkTypeId" Type="int" Nullable="false" />
+    <Property Name="CycleUnitId" Type="int" Nullable="false" />
+    <Property Name="Name" Type="nvarchar" MaxLength="100" Nullable="false" />
+    <Property Name="IsYesNoResult" Type="bit" Nullable="false" />
+    <Property Name="IsUse" Type="bit" />
+  </EntityType>
+  <EntityType Name="FmsFacilityCodeClass">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="FacilityClassId" />
+    </Key>
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="FacilityClassId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+    <Property Name="ParentFacilityClassId" Type="int" />
+    <Property Name="Depth" Type="int" Nullable="false" />
+    <Property Name="Name" Type="nvarchar" MaxLength="80" Nullable="false" />
+    <Property Name="Abbreviation" Type="nvarchar" MaxLength="40" />
+    <Property Name="IsUse" Type="bit" />
+  </EntityType>
+  <EntityType Name="FmsFacilityManual">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="FacilityCode" />
+      <PropertyRef Name="ManualId" />
+    </Key>
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="FacilityCode" Type="int" Nullable="false" />
+    <Property Name="ManualId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+    <Property Name="BusinessFieldId" Type="int" Nullable="false" />
+    <Property Name="Name" Type="nvarchar" MaxLength="100" />
+    <Property Name="Description" Type="nvarchar" MaxLength="1024" />
+    <Property Name="Keyword" Type="nvarchar" MaxLength="100" />
+    <Property Name="FileId" Type="int" />
+    <Property Name="IsUse" Type="bit" />
+  </EntityType>
+  <EntityType Name="FmsFacilityOperationItem">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="ItemId" />
+    </Key>
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="FacilityCode" Type="int" Nullable="false" />
+    <Property Name="ItemId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+    <Property Name="Name" Type="nvarchar" MaxLength="100" />
+    <Property Name="ResultUnit" Type="nvarchar" MaxLength="10" Nullable="false" />
+    <Property Name="PointId" Type="nvarchar" MaxLength="50" />
+    <Property Name="SystemId" Type="int" />
+    <Property Name="EnergyCode" Type="bit" />
+    <Property Name="IsUse" Type="bit" />
+    <Property Name="SortOrderNo" Type="int" />
+    <Property Name="InsertedDate" Type="datetime" />
+    <Property Name="InsertedUserId" Type="nvarchar" MaxLength="24" />
+    <Property Name="UpdatedDate" Type="datetime" />
+    <Property Name="UpdatedUserId" Type="nvarchar" MaxLength="24" />
+  </EntityType>
+  <EntityType Name="FmsFacilityOperationReport">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="FacilityOperationReportId" />
+    </Key>
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="FacilityOperationReportId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+    <Property Name="Name" Type="nvarchar" MaxLength="128" Nullable="false" />
+    <Property Name="Contents" Type="nvarchar" MaxLength="1024" Nullable="false" />
+    <Property Name="RegisterUserId" Type="nvarchar" MaxLength="24" Nullable="false" />
+    <Property Name="AddDate" Type="datetime" Nullable="false" />
+  </EntityType>
+  <EntityType Name="FmsInvestmentCost">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="InsvestmentCostId" />
+    </Key>
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="InsvestmentCostId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+    <Property Name="Name" Type="nvarchar" MaxLength="32" Nullable="false" />
+    <Property Name="Comment" Type="nvarchar" MaxLength="1024" />
+    <Property Name="InsvestmentCost" Type="float" Nullable="false" />
+  </EntityType>
+  <EntityType Name="FmsLicense">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="LicenseId" />
+    </Key>
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="LicenseId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+    <Property Name="Name" Type="nvarchar" MaxLength="52" Nullable="false" />
+    <Property Name="IssuingOffice" Type="nvarchar" MaxLength="52" Nullable="false" />
+    <Property Name="BusinessFieldId" Type="int" />
+    <Property Name="EducationalInstitute" Type="nvarchar" MaxLength="52" />
+    <Property Name="Note" Type="nvarchar" MaxLength="256" />
+    <Property Name="IsUse" Type="bit" />
+  </EntityType>
+  <EntityType Name="FmsManual">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="ManualId" />
+    </Key>
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="ManualId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+    <Property Name="ManualNo" Type="nvarchar" MaxLength="20" Nullable="false" />
+    <Property Name="ManualTypeId" Type="int" Nullable="false" />
+    <Property Name="Name" Type="nvarchar" MaxLength="200" Nullable="false" />
+    <Property Name="Description" Type="nvarchar" MaxLength="2000" />
+  </EntityType>
+  <EntityType Name="FmsManualHistory">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="ManualId" />
+      <PropertyRef Name="HistoryId" />
+    </Key>
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="ManualId" Type="int" Nullable="false" />
+    <Property Name="HistoryId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+    <Property Name="RevisionNo" Type="int" />
+    <Property Name="FileId" Type="int" />
+    <Property Name="Description" Type="nvarchar" MaxLength="2000" />
+    <Property Name="UpdatedDate" Type="datetime" />
+    <Property Name="UpdatedUserId" Type="nvarchar" MaxLength="24" />
+  </EntityType>
+  <EntityType Name="FmsManualType">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="ManualTypeId" />
+    </Key>
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="ManualTypeId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+    <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
+    <Property Name="IsUse" Type="bit" />
+  </EntityType>
+  <EntityType Name="FmsMaterial">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="MaterialId" />
+    </Key>
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="BusinessFieldId" Type="int" Nullable="false" />
+    <Property Name="MaterialId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+    <Property Name="MaterialCode" Type="nvarchar" MaxLength="48" Nullable="false" />
+    <Property Name="Name" Type="nvarchar" MaxLength="48" Nullable="false" />
+    <Property Name="FirstClassId" Type="int" />
+    <Property Name="SecondClassId" Type="int" />
+    <Property Name="ThirdClassId" Type="int" />
+    <Property Name="LocationId" Type="int" />
+    <Property Name="MaterialTypeId" Type="int" />
+    <Property Name="WarehouseId" Type="int" />
+    <Property Name="TradeCompanyId" Type="int" />
+    <Property Name="Rfid" Type="nvarchar" MaxLength="52" />
+    <Property Name="Unit" Type="nvarchar" MaxLength="12" />
+    <Property Name="DurableYears" Type="smallint" />
+    <Property Name="ReasonableStockCount" Type="smallint" />
+    <Property Name="Manufacturer" Type="nvarchar" MaxLength="40" />
+    <Property Name="Standard" Type="nvarchar" MaxLength="20" />
+    <Property Name="FinalPrice" Type="int" />
+    <Property Name="ImageFileId" Type="int" />
+    <Property Name="Note" Type="nvarchar" MaxLength="512" />
+    <Property Name="IsDiscontinued" Type="bit" />
+    <Property Name="IsUse" Type="bit" Nullable="false" />
+    <Property Name="FinalStockCount" Type="int" Nullable="false" />
+    <Property Name="FinalTotalStockAmount" Type="int" Nullable="false" />
+  </EntityType>
+  <EntityType Name="FmsMaterialCarriedForward">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="ClosedDate" />
+      <PropertyRef Name="BusinessFieldId" />
+      <PropertyRef Name="WarehouseId" />
+      <PropertyRef Name="MaterialId" />
+    </Key>
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="ClosedDate" Type="datetime" Nullable="false" />
+    <Property Name="BusinessFieldId" Type="int" Nullable="false" />
+    <Property Name="WarehouseId" Type="int" Nullable="false" />
+    <Property Name="MaterialId" Type="int" Nullable="false" />
+    <Property Name="StockCount" Type="int" Nullable="false" />
+    <Property Name="StockTotalCost" Type="int" Nullable="false" />
+  </EntityType>
+  <EntityType Name="FmsMaterialCodeAdjustmentType">
+    <Key>
+      <PropertyRef Name="AdjustmentTypeId" />
+    </Key>
+    <Property Name="AdjustmentTypeId" Type="smallint" Nullable="false" />
+    <Property Name="Name" Type="nvarchar" MaxLength="24" Nullable="false" />
+    <Property Name="Comment" Type="nvarchar" MaxLength="1024" />
+  </EntityType>
+  <EntityType Name="FmsMaterialCodeClass">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="MaterialClassId" />
+    </Key>
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="MaterialClassId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+    <Property Name="ParentMaterialClassId" Type="int" />
+    <Property Name="Depth" Type="int" Nullable="false" />
+    <Property Name="Name" Type="nvarchar" MaxLength="32" Nullable="false" />
+    <Property Name="Abbreviation" Type="nvarchar" MaxLength="16" />
+    <Property Name="IsUse" Type="bit" />
+  </EntityType>
+  <EntityType Name="FmsMaterialCodeLocation">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="LocationId" />
+    </Key>
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="LocationId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+    <Property Name="BusinessFieldId" Type="int" Nullable="false" />
+    <Property Name="Name" Type="nvarchar" MaxLength="48" Nullable="false" />
+    <Property Name="IsUse" Type="bit" Nullable="false" />
+  </EntityType>
+  <EntityType Name="FmsMaterialCodeProgress">
+    <Key>
+      <PropertyRef Name="ProgressId" />
+    </Key>
+    <Property Name="ProgressId" Type="smallint" Nullable="false" />
+    <Property Name="Name" Type="nvarchar" MaxLength="24" Nullable="false" />
+    <Property Name="Description" Type="nvarchar" MaxLength="100" />
+  </EntityType>
+  <EntityType Name="FmsMaterialCodePurchaseType">
+    <Key>
+      <PropertyRef Name="PurchaseTypeId" />
+    </Key>
+    <Property Name="PurchaseTypeId" Type="smallint" StoreGeneratedPattern="Identity" Nullable="false" />
+    <Property Name="Name" Type="nvarchar" MaxLength="24" Nullable="false" />
+    <Property Name="Comment" Type="nvarchar" MaxLength="1024" />
+  </EntityType>
+  <EntityType Name="FmsMaterialCodeReleaseType">
+    <Key>
+      <PropertyRef Name="ReleaseTypeId" />
+    </Key>
+    <Property Name="ReleaseTypeId" Type="smallint" Nullable="false" />
+    <Property Name="Name" Type="nvarchar" MaxLength="24" Nullable="false" />
+    <Property Name="Description" Type="nvarchar" MaxLength="255" />
+  </EntityType>
+  <EntityType Name="FmsMaterialCodeType">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="MaterialTypeId" />
+    </Key>
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="MaterialTypeId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+    <Property Name="Name" Type="nvarchar" MaxLength="24" Nullable="false" />
+    <Property Name="Nickname" Type="nvarchar" MaxLength="24" Nullable="false" />
+    <Property Name="IsUse" Type="bit" Nullable="false" />
+  </EntityType>
+  <EntityType Name="FmsMaterialPurchaseOrder">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="PurchaseOrderId" />
+    </Key>
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="BusinessFieldId" Type="int" Nullable="false" />
+    <Property Name="PurchaseOrderId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+    <Property Name="PurchaseRequestId" Type="int" Nullable="false" />
+    <Property Name="TradeCompanyId" Type="int" />
+    <Property Name="OrderDate" Type="datetime" Nullable="false" />
+    <Property Name="OrderUserId" Type="nvarchar" MaxLength="24" Nullable="false" />
+    <Property Name="Title" Type="nvarchar" MaxLength="256" Nullable="false" />
+    <Property Name="Reason" Type="nvarchar" MaxLength="2000" />
+    <Property Name="StoredDueDate" Type="datetime" />
+    <Property Name="FileId" Type="int" />
+  </EntityType>
+  <EntityType Name="FmsMaterialPurchaseOrderMaterial">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="PurchaseOrderId" />
+      <PropertyRef Name="MaterialId" />
+    </Key>
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="BusinessFieldId" Type="int" Nullable="false" />
+    <Property Name="PurchaseOrderId" Type="int" Nullable="false" />
+    <Property Name="MaterialId" Type="int" Nullable="false" />
+    <Property Name="MaterialCount" Type="int" Nullable="false" />
+    <Property Name="UnitCost" Type="int" Nullable="false" />
+  </EntityType>
+  <EntityType Name="FmsMaterialPurchaseRequest">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="PurchaseRequestId" />
+    </Key>
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="BusinessFieldId" Type="int" Nullable="false" />
+    <Property Name="PurchaseRequestId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+    <Property Name="PurchaseTypeId" Type="smallint" Nullable="false" />
+    <Property Name="RequestDate" Type="datetime" Nullable="false" />
+    <Property Name="RequestUserId" Type="nvarchar" MaxLength="24" Nullable="false" />
+    <Property Name="PurchaseHopeDate" Type="datetime" />
+    <Property Name="Title" Type="nvarchar" MaxLength="256" Nullable="false" />
+    <Property Name="Reason" Type="nvarchar" MaxLength="2000" Nullable="false" />
+    <Property Name="ProgressId" Type="smallint" Nullable="false" />
+    <Property Name="ApprovalDate" Type="datetime" />
+    <Property Name="ApprovalUserId" Type="nvarchar" MaxLength="24" />
+    <Property Name="bSameOrder" Type="bit" />
+  </EntityType>
+  <EntityType Name="FmsMaterialPurchaseRequestMaterial">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="PurchaseRequestId" />
+      <PropertyRef Name="MaterialId" />
+    </Key>
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="BusinessFieldId" Type="int" Nullable="false" />
+    <Property Name="PurchaseRequestId" Type="int" Nullable="false" />
+    <Property Name="MaterialId" Type="int" Nullable="false" />
+    <Property Name="MaterialCount" Type="int" Nullable="false" />
+  </EntityType>
+  <EntityType Name="FmsMaterialRelease">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="MaterialReleaseId" />
+    </Key>
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="BusinessFieldId" Type="int" Nullable="false" />
+    <Property Name="ReleaseDate" Type="datetime" Nullable="false" />
+    <Property Name="MaterialReleaseId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+    <Property Name="ReleaseTypeId" Type="smallint" Nullable="false" />
+    <Property Name="WorkRequestId" Type="int" />
+    <Property Name="WarehouseId" Type="int" />
+    <Property Name="MaterialId" Type="int" />
+    <Property Name="MaterialCount" Type="int" />
+    <Property Name="StockCountByPoint" Type="int" />
+    <Property Name="ReleaseTotalCost" Type="int" />
+    <Property Name="AdjustmentTypeId" Type="smallint" Nullable="false" />
+    <Property Name="AdjustmentUserId" Type="nvarchar" MaxLength="24" />
+    <Property Name="ConfirmedUserId" Type="nvarchar" MaxLength="24" />
+    <Property Name="ConfirmedDate" Type="datetime" />
+    <Property Name="IsConfirmed" Type="bit" Nullable="false" />
+    <Property Name="Comment" Type="nvarchar" MaxLength="1024" />
+  </EntityType>
+  <EntityType Name="FmsMaterialStored">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="MaterialStoredId" />
+    </Key>
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="BusinessFieldId" Type="int" Nullable="false" />
+    <Property Name="StoredDate" Type="datetime" Nullable="false" />
+    <Property Name="MaterialStoredId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+    <Property Name="PurchaseOrderId" Type="int" />
+    <Property Name="WarehouseId" Type="int" Nullable="false" />
+    <Property Name="MaterialId" Type="int" Nullable="false" />
+    <Property Name="StoredCount" Type="int" Nullable="false" />
+    <Property Name="RemainStoredCount" Type="int" Nullable="false" />
+    <Property Name="UnitCost" Type="int" Nullable="false" />
+    <Property Name="StockCount" Type="int" Nullable="false" />
+    <Property Name="Note" Type="nvarchar" MaxLength="1024" />
+    <Property Name="StoredUserId" Type="nvarchar" MaxLength="24" Nullable="false" />
+    <Property Name="ApprovalDate" Type="datetime" />
+    <Property Name="ApprovalUserId" Type="nvarchar" MaxLength="24" />
+    <Property Name="IsApproval" Type="bit" Nullable="false" />
+    <Property Name="LocationInWarehouse" Type="nvarchar" MaxLength="100" />
+  </EntityType>
+  <EntityType Name="FmsMaterialTradeCompany">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="TradeCompanyId" />
+    </Key>
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="TradeCompanyId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+    <Property Name="Name" Type="nvarchar" MaxLength="48" Nullable="false" />
+    <Property Name="RegistrationNo" Type="nvarchar" MaxLength="24" Nullable="false" />
+    <Property Name="RepresentativeName" Type="nvarchar" MaxLength="24" />
+    <Property Name="PhoneNo" Type="nvarchar" MaxLength="20" />
+    <Property Name="FaxNo" Type="nvarchar" MaxLength="20" />
+    <Property Name="SalesName" Type="nvarchar" MaxLength="20" />
+    <Property Name="SalesPhoneNo" Type="nvarchar" MaxLength="20" />
+    <Property Name="AddressZip1" Type="nchar" MaxLength="5" />
+    <Property Name="AddressZip2" Type="nchar" MaxLength="3" />
+    <Property Name="Address1" Type="nvarchar" MaxLength="100" />
+    <Property Name="Adderss2" Type="nvarchar" MaxLength="100" />
+    <Property Name="HomepageUri" Type="nvarchar" MaxLength="200" />
+    <Property Name="Note" Type="nvarchar" MaxLength="1024" />
+    <Property Name="IsUse" Type="bit" Nullable="false" />
+  </EntityType>
+  <EntityType Name="FmsMaterialWarehouse">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="WarehouseId" />
+    </Key>
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="BusinessFieldId" Type="int" Nullable="false" />
+    <Property Name="WarehouseId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+    <Property Name="Name" Type="nvarchar" MaxLength="48" Nullable="false" />
+    <Property Name="IsUse" Type="bit" Nullable="false" />
+  </EntityType>
+  <EntityType Name="FmsMonthlyReport">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="MonthlyReportId" />
+    </Key>
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="MonthlyReportId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+    <Property Name="Name" Type="nvarchar" MaxLength="128" Nullable="false" />
+    <Property Name="Contents" Type="nvarchar" MaxLength="1024" Nullable="false" />
+    <Property Name="RegisterUserId" Type="nvarchar" MaxLength="24" Nullable="false" />
+    <Property Name="AddDate" Type="datetime" Nullable="false" />
+  </EntityType>
+  <EntityType Name="FmsPaymentType">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="PaymentTypeId" />
+    </Key>
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="PaymentTypeId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+    <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
+    <Property Name="IsUse" Type="bit" />
+  </EntityType>
+  <EntityType Name="FmsReport">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="RId" />
+    </Key>
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="RId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+    <Property Name="Title" Type="nvarchar" MaxLength="128" />
+    <Property Name="Contents" Type="nvarchar" MaxLength="1024" />
+    <Property Name="RegisterUserId" Type="nvarchar" MaxLength="24" />
+    <Property Name="FileId" Type="int" />
+    <Property Name="MakeDate" Type="datetime" Nullable="false" />
+    <Property Name="ConfirmUserId1" Type="nvarchar" MaxLength="24" />
+    <Property Name="ConfirmUserId2" Type="nvarchar" MaxLength="24" />
+    <Property Name="BusinessFieldId" Type="int" Nullable="false" />
+  </EntityType>
+  <EntityType Name="FmsWorkCodeCauseClass">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="CauseClassId" />
+    </Key>
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="CauseClassId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+    <Property Name="ParentId" Type="int" Nullable="false" />
+    <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
+    <Property Name="IsUse" Type="bit" />
+  </EntityType>
+  <EntityType Name="FmsWorkCodeCycleUnit">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="CycleUnitId" />
+    </Key>
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="CycleUnitId" Type="int" Nullable="false" />
+    <Property Name="Name" Type="nvarchar" MaxLength="24" Nullable="false" />
+    <Property Name="Description" Type="nvarchar" MaxLength="200" />
+  </EntityType>
+  <EntityType Name="FmsWorkCodeEmergency">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="EmergencyId" />
+    </Key>
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="EmergencyId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+    <Property Name="Name" Type="nvarchar" MaxLength="50" />
+    <Property Name="IsUse" Type="bit" />
+  </EntityType>
+  <EntityType Name="FmsWorkCodeHolidayWorkType">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="HolidayWorkTypeId" />
+    </Key>
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="HolidayWorkTypeId" Type="int" Nullable="false" />
+    <Property Name="Name" Type="nvarchar" MaxLength="50" />
+    <Property Name="IsUse" Type="bit" />
+  </EntityType>
+  <EntityType Name="FmsWorkCodeLegalInspectionAgency">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="InspectionAgencyId" />
+    </Key>
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="InspectionAgencyId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+    <Property Name="Name" Type="nvarchar" MaxLength="24" Nullable="false" />
+    <Property Name="IsUse" Type="bit" />
+  </EntityType>
+  <EntityType Name="FmsWorkCodeProgress">
+    <Key>
+      <PropertyRef Name="WorkProgressId" />
+    </Key>
+    <Property Name="WorkProgressId" Type="int" Nullable="false" />
+    <Property Name="Name" Type="nvarchar" MaxLength="24" Nullable="false" />
+    <Property Name="Description" Type="nvarchar" MaxLength="512" />
+  </EntityType>
+  <EntityType Name="FmsWorkCodeType">
+    <Key>
+      <PropertyRef Name="WorkTypeId" />
+    </Key>
+    <Property Name="WorkTypeId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+    <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
+    <Property Name="Description" Type="nvarchar" MaxLength="512" />
+  </EntityType>
+  <EntityType Name="FmsWorkOrder">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="WorkRequestId" />
+    </Key>
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="WorkRequestId" Type="int" Nullable="false" />
+    <Property Name="BusinessFieldId" Type="int" Nullable="false" />
+    <Property Name="EmergencyId" Type="int" />
+    <Property Name="OrderUserId" Type="nvarchar" MaxLength="24" Nullable="false" />
+    <Property Name="OrderDate" Type="datetime" Nullable="false" />
+    <Property Name="StartWorkDate" Type="datetime" Nullable="false" />
+    <Property Name="Title" Type="nvarchar" MaxLength="200" Nullable="false" />
+    <Property Name="Content" Type="nvarchar" MaxLength="2000" />
+  </EntityType>
+  <EntityType Name="FmsWorkOrderToFacility">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="WorkRequestId" />
+      <PropertyRef Name="FacilityCode" />
+    </Key>
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="WorkRequestId" Type="int" Nullable="false" />
+    <Property Name="FacilityCode" Type="int" Nullable="false" />
+  </EntityType>
+  <EntityType Name="FmsWorkRequest">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="WorkRequestId" />
+    </Key>
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="WorkRequestId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+    <Property Name="WorkTypeId" Type="int" Nullable="false" />
+    <Property Name="BusinessFieldId" Type="int" Nullable="false" />
+    <Property Name="WorkScheduleId" Type="int" />
+    <Property Name="WorkProgressId" Type="int" Nullable="false" />
+    <Property Name="Title" Type="nvarchar" MaxLength="200" Nullable="false" />
+    <Property Name="Content" Type="nvarchar" MaxLength="1024" />
+    <Property Name="RequestUserId" Type="nvarchar" MaxLength="24" />
+    <Property Name="RequestDate" Type="datetime" Nullable="false" />
+    <Property Name="StartWorkDate" Type="datetime" Nullable="false" />
+    <Property Name="RejectUserId" Type="nvarchar" MaxLength="24" />
+    <Property Name="RejectDate" Type="datetime" />
+    <Property Name="RejectReason" Type="nvarchar" MaxLength="512" />
+    <Property Name="InspectionAgencyId" Type="int" />
+  </EntityType>
+  <EntityType Name="FmsWorkRequestToFacility">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="WorkRequestId" />
+      <PropertyRef Name="FacilityCode" />
+    </Key>
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="WorkRequestId" Type="int" Nullable="false" />
+    <Property Name="FacilityCode" Type="int" Nullable="false" />
+  </EntityType>
+  <EntityType Name="FmsWorkResult">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="WorkRequestId" />
+    </Key>
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="WorkRequestId" Type="int" Nullable="false" />
+    <Property Name="WorkerUserId" Type="nvarchar" MaxLength="24" Nullable="false" />
+    <Property Name="StartDate" Type="datetime" Nullable="false" />
+    <Property Name="EndDate" Type="datetime" Nullable="false" />
+    <Property Name="CauseClassId" Type="int" />
+    <Property Name="Content" Type="nvarchar" MaxLength="1024" />
+    <Property Name="ConfirmedDate" Type="datetime" />
+    <Property Name="ConfirmedUserId" Type="nvarchar" MaxLength="24" />
+    <Property Name="IsConfirmed" Type="bit" Nullable="false" />
+    <Property Name="ConfirmDesc" Type="nvarchar" MaxLength="1024" />
+  </EntityType>
+  <EntityType Name="FmsWorkResultCheckItem">
+    <Key>
+      <PropertyRef Name="CheckItemId" />
+    </Key>
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="WorkRequestId" Type="int" Nullable="false" />
+    <Property Name="FacilityCode" Type="int" />
+    <Property Name="CheckItemId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+    <Property Name="BoolResult" Type="bit" />
+    <Property Name="TextResult" Type="nvarchar" MaxLength="1024" />
+    <Property Name="CheckDate" Type="datetime" Nullable="false" />
+    <Property Name="FileId1" Type="int" />
+    <Property Name="FileId2" Type="int" />
+  </EntityType>
+  <EntityType Name="FmsWorkResultCheckItemMaterial">
+    <Key>
+      <PropertyRef Name="CheckItemMaterialId" />
+    </Key>
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="WorkRequestId" Type="int" Nullable="false" />
+    <Property Name="CheckItemId" Type="int" Nullable="false" />
+    <Property Name="CheckItemMaterialId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+    <Property Name="MaterialId" Type="int" Nullable="false" />
+    <Property Name="MaterialCount" Type="int" Nullable="false" />
+    <Property Name="MaterialCode" Type="nvarchar" MaxLength="48" />
+    <Property Name="Name" Type="nvarchar" MaxLength="48" />
+  </EntityType>
+  <EntityType Name="FmsWorkResultFile">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="WorkRequestId" />
+    </Key>
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="WorkRequestId" Type="int" Nullable="false" />
+    <Property Name="FileId" Type="int" Nullable="false" />
+  </EntityType>
+  <EntityType Name="FmsWorkResultLaw">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="WorkRequestId" />
+    </Key>
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="WorkRequestId" Type="int" Nullable="false" />
+    <Property Name="CertificationNo" Type="nvarchar" MaxLength="50" />
+    <Property Name="CheckCommission" Type="numeric" Precision="10" Scale="0" />
+    <Property Name="CheckResult" Type="bit" />
+  </EntityType>
+  <EntityType Name="FmsWorkResultToFacility">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="WorkRequestId" />
+      <PropertyRef Name="FacilityCode" />
+    </Key>
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="WorkRequestId" Type="int" Nullable="false" />
+    <Property Name="FacilityCode" Type="int" Nullable="false" />
+  </EntityType>
+  <EntityType Name="FmsWorkSchedule">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="WorkScheduleId" />
+    </Key>
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="WorkScheduleId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+    <Property Name="WorkTypeId" Type="int" Nullable="false" />
+    <Property Name="BusinessFieldId" Type="int" Nullable="false" />
+    <Property Name="Name" Type="nvarchar" MaxLength="100" Nullable="false" />
+    <Property Name="InspectionAgencyId" Type="int" />
+    <Property Name="CycleSize" Type="int" Nullable="false" />
+    <Property Name="CycleUnitId" Type="int" Nullable="false" />
+    <Property Name="HolidayWorkTypeId" Type="int" Nullable="false" />
+    <Property Name="WorkDueDate" Type="datetime" Nullable="false" />
+    <Property Name="UpdateUserId" Type="nvarchar" MaxLength="24" Nullable="false" />
+    <Property Name="IsUse" Type="bit" Nullable="false" />
+    <Property Name="IsAutoOrder" Type="bit" Nullable="false" />
+    <Property Name="Content" Type="nvarchar" MaxLength="1024" />
+  </EntityType>
+  <EntityType Name="FmsWorkScheduleToFacility">
+    <Key>
+      <PropertyRef Name="SiteId" />
+      <PropertyRef Name="WorkScheduleId" />
+      <PropertyRef Name="FacilityCode" />
+    </Key>
+    <Property Name="SiteId" Type="int" Nullable="false" />
+    <Property Name="WorkScheduleId" Type="int" Nullable="false" />
+    <Property Name="FacilityCode" Type="int" Nullable="false" />
+  </EntityType>
+  <EntityType Name="sysdiagrams">
+    <Key>
+      <PropertyRef Name="diagram_id" />
+    </Key>
+    <Property Name="name" Type="nvarchar" MaxLength="128" Nullable="false" />
+    <Property Name="principal_id" Type="int" Nullable="false" />
+    <Property Name="diagram_id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+    <Property Name="version" Type="int" />
+    <Property Name="definition" Type="varbinary(max)" />
+  </EntityType>
+  <EntityType Name="WeatherDongNaeForecast">
+    <Key>
+      <PropertyRef Name="BaseTime" />
+      <PropertyRef Name="ForecastTime" />
+    </Key>
+    <Property Name="BaseTime" Type="datetime" Nullable="false" />
+    <Property Name="nx" Type="int" />
+    <Property Name="ny" Type="int" />
+    <Property Name="ForecastTime" Type="datetime" Nullable="false" />
+    <Property Name="POP" Type="float" />
+    <Property Name="PTY" Type="float" />
+    <Property Name="R06" Type="float" />
+    <Property Name="REH" Type="float" />
+    <Property Name="S06" Type="float" />
+    <Property Name="SKY" Type="float" />
+    <Property Name="T3H" Type="float" />
+    <Property Name="TMN" Type="float" />
+    <Property Name="TMX" Type="float" />
+    <Property Name="UUU" Type="float" />
+    <Property Name="VVV" Type="float" />
+    <Property Name="VEC" Type="float" />
+    <Property Name="WSD" Type="float" />
+    <Property Name="Type" Type="int" />
+    <Property Name="DBTime" Type="datetime" />
+    <Property Name="Version" Type="int" />
+  </EntityType>
+  <Association Name="FK__BemsEnerg__SiteI__7954A4F6">
+    <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
+    <End Role="BemsEnergyConfigPercentMonth" Type="Self.BemsEnergyConfigPercentMonth" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmSite">
+        <PropertyRef Name="SiteId" />
+      </Principal>
+      <Dependent Role="BemsEnergyConfigPercentMonth">
+        <PropertyRef Name="SiteId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__BemsEnerg__SiteI__7C3111A1">
+    <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
+    <End Role="BemsEnergyConfigPercentWeek" Type="Self.BemsEnergyConfigPercentWeek" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmSite">
+        <PropertyRef Name="SiteId" />
+      </Principal>
+      <Dependent Role="BemsEnergyConfigPercentWeek">
+        <PropertyRef Name="SiteId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__BemsEnergyDaily__BemsFuelType">
+    <End Role="BemsFuelType" Type="Self.BemsFuelType" Multiplicity="1" />
+    <End Role="BemsEnergyDaily" Type="Self.BemsEnergyDaily" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="BemsFuelType">
+        <PropertyRef Name="FuelTypeId" />
+      </Principal>
+      <Dependent Role="BemsEnergyDaily">
+        <PropertyRef Name="FuelTypeId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__BemsEnergyDaily__BemsServiceType">
+    <End Role="BemsServiceType" Type="Self.BemsServiceType" Multiplicity="1" />
+    <End Role="BemsEnergyDaily" Type="Self.BemsEnergyDaily" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="BemsServiceType">
+        <PropertyRef Name="ServiceTypeId" />
+      </Principal>
+      <Dependent Role="BemsEnergyDaily">
+        <PropertyRef Name="ServiceTypeId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__BemsEnergyDaily__CmBuilding">
+    <End Role="CmBuilding" Type="Self.CmBuilding" Multiplicity="1" />
+    <End Role="BemsEnergyDaily" Type="Self.BemsEnergyDaily" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmBuilding">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="BuildingId" />
+      </Principal>
+      <Dependent Role="BemsEnergyDaily">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="BuildingId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__BemsFactorCo2__BemsFuelType">
+    <End Role="BemsFuelType" Type="Self.BemsFuelType" Multiplicity="1" />
+    <End Role="BemsFactorCo2" Type="Self.BemsFactorCo2" Multiplicity="0..1" />
+    <ReferentialConstraint>
+      <Principal Role="BemsFuelType">
+        <PropertyRef Name="FuelTypeId" />
+      </Principal>
+      <Dependent Role="BemsFactorCo2">
+        <PropertyRef Name="FuelTypeId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__BemsFactorToe__BemsFuelType">
+    <End Role="BemsFuelType" Type="Self.BemsFuelType" Multiplicity="1" />
+    <End Role="BemsFactorToe" Type="Self.BemsFactorToe" Multiplicity="0..1" />
+    <ReferentialConstraint>
+      <Principal Role="BemsFuelType">
+        <PropertyRef Name="FuelTypeId" />
+      </Principal>
+      <Dependent Role="BemsFactorToe">
+        <PropertyRef Name="FuelTypeId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__BemsFormula__BemsFormulaBase">
+    <End Role="BemsFormulaBase" Type="Self.BemsFormulaBase" Multiplicity="1" />
+    <End Role="BemsFormula" Type="Self.BemsFormula" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="BemsFormulaBase">
+        <PropertyRef Name="FacilityTypeId" />
+        <PropertyRef Name="FormulaId" />
+      </Principal>
+      <Dependent Role="BemsFormula">
+        <PropertyRef Name="FacilityTypeId" />
+        <PropertyRef Name="FormulaId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__BemsFormulaParameter__BemsFormula">
+    <End Role="BemsFormula" Type="Self.BemsFormula" Multiplicity="1" />
+    <End Role="BemsFormulaParameter" Type="Self.BemsFormulaParameter" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="BemsFormula">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FacilityTypeId" />
+        <PropertyRef Name="FacilityCode" />
+        <PropertyRef Name="FormulaId" />
+      </Principal>
+      <Dependent Role="BemsFormulaParameter">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FacilityTypeId" />
+        <PropertyRef Name="FacilityCode" />
+        <PropertyRef Name="FormulaId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__BemsFormulaTableValue__BemsFormulaTable">
+    <End Role="BemsFormulaTable" Type="Self.BemsFormulaTable" Multiplicity="1" />
+    <End Role="BemsFormulaTableValue" Type="Self.BemsFormulaTableValue" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="BemsFormulaTable">
+        <PropertyRef Name="TableId" />
+      </Principal>
+      <Dependent Role="BemsFormulaTableValue">
+        <PropertyRef Name="TableId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__BemsMonitoringPo__1372D2FE">
+    <End Role="BemsAnalysisType" Type="Self.BemsAnalysisType" Multiplicity="1" />
+    <End Role="BemsMonitoringPointToAnlaysisType" Type="Self.BemsMonitoringPointToAnlaysisType" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="BemsAnalysisType">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="AnalysisType" />
+      </Principal>
+      <Dependent Role="BemsMonitoringPointToAnlaysisType">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="AnalysisType" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__BemsMonitoringPo__155B1B70">
+    <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="1" />
+    <End Role="BemsMonitoringPointToAnlaysisType" Type="Self.BemsMonitoringPointToAnlaysisType" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="BemsMonitoringPoint">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FacilityCode" />
+        <PropertyRef Name="PropertyId" />
+      </Principal>
+      <Dependent Role="BemsMonitoringPointToAnlaysisType">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FacilityCode" />
+        <PropertyRef Name="PropertyId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__BemsMonitoringPoint__BemsFuelType">
+    <End Role="BemsFuelType" Type="Self.BemsFuelType" Multiplicity="0..1" />
+    <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="BemsFuelType">
+        <PropertyRef Name="FuelTypeId" />
+      </Principal>
+      <Dependent Role="BemsMonitoringPoint">
+        <PropertyRef Name="FuelTypeId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__BemsMonitoringPoint__BemsServiceType">
+    <End Role="BemsServiceType" Type="Self.BemsServiceType" Multiplicity="0..1" />
+    <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="BemsServiceType">
+        <PropertyRef Name="ServiceTypeId" />
+      </Principal>
+      <Dependent Role="BemsMonitoringPoint">
+        <PropertyRef Name="ServiceTypeId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__BemsMonitoringPoint__CmBuilding">
+    <End Role="CmBuilding" Type="Self.CmBuilding" Multiplicity="0..1" />
+    <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmBuilding">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="BuildingId" />
+      </Principal>
+      <Dependent Role="BemsMonitoringPoint">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="BuildingId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__BemsMonitoringPoint__CmFloor">
+    <End Role="CmFloor" Type="Self.CmFloor" Multiplicity="0..1" />
+    <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmFloor">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="BuildingId" />
+        <PropertyRef Name="FloorId" />
+      </Principal>
+      <Dependent Role="BemsMonitoringPoint">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="BuildingId" />
+        <PropertyRef Name="FloorId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__BemsMonitoringPoint__CmZone">
+    <End Role="CmZone" Type="Self.CmZone" Multiplicity="0..1" />
+    <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmZone">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="BuildingId" />
+        <PropertyRef Name="FloorId" />
+        <PropertyRef Name="ZoneId" />
+      </Principal>
+      <Dependent Role="BemsMonitoringPoint">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="BuildingId" />
+        <PropertyRef Name="FloorId" />
+        <PropertyRef Name="ZoneId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__BemsMonitoringPointBaseData__BemsFacilityType">
+    <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
+    <End Role="BemsMonitoringPointBaseData" Type="Self.BemsMonitoringPointBaseData" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="BemsFacilityType">
+        <PropertyRef Name="FacilityTypeId" />
+      </Principal>
+      <Dependent Role="BemsMonitoringPointBaseData">
+        <PropertyRef Name="FacilityTypeId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__BemsMonitoringPointBaseData__BemsFuelType">
+    <End Role="BemsFuelType" Type="Self.BemsFuelType" Multiplicity="0..1" />
+    <End Role="BemsMonitoringPointBaseData" Type="Self.BemsMonitoringPointBaseData" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="BemsFuelType">
+        <PropertyRef Name="FuelTypeId" />
+      </Principal>
+      <Dependent Role="BemsMonitoringPointBaseData">
+        <PropertyRef Name="FuelTypeId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__BemsMonitoringPointBaseData__BemsServiceType">
+    <End Role="BemsServiceType" Type="Self.BemsServiceType" Multiplicity="0..1" />
+    <End Role="BemsMonitoringPointBaseData" Type="Self.BemsMonitoringPointBaseData" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="BemsServiceType">
+        <PropertyRef Name="ServiceTypeId" />
+      </Principal>
+      <Dependent Role="BemsMonitoringPointBaseData">
+        <PropertyRef Name="ServiceTypeId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__BemsMonitoringPointHistory15min__BemsFacilityType">
+    <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
+    <End Role="BemsMonitoringPointHistory15min" Type="Self.BemsMonitoringPointHistory15min" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="BemsFacilityType">
+        <PropertyRef Name="FacilityTypeId" />
+      </Principal>
+      <Dependent Role="BemsMonitoringPointHistory15min">
+        <PropertyRef Name="FacilityTypeId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__BemsMonitoringPointHistory15min__BemsMonitoringPoint">
+    <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="1" />
+    <End Role="BemsMonitoringPointHistory15min" Type="Self.BemsMonitoringPointHistory15min" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="BemsMonitoringPoint">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FacilityCode" />
+        <PropertyRef Name="PropertyId" />
+      </Principal>
+      <Dependent Role="BemsMonitoringPointHistory15min">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FacilityCode" />
+        <PropertyRef Name="PropertyId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__BemsMonitoringPointHistory15minRawData__BemsFacilityType">
+    <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
+    <End Role="BemsMonitoringPointHistory15minRawData" Type="Self.BemsMonitoringPointHistory15minRawData" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="BemsFacilityType">
+        <PropertyRef Name="FacilityTypeId" />
+      </Principal>
+      <Dependent Role="BemsMonitoringPointHistory15minRawData">
+        <PropertyRef Name="FacilityTypeId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__BemsMonitoringPointHistory15minRawData__BemsMonitoringPoint">
+    <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="1" />
+    <End Role="BemsMonitoringPointHistory15minRawData" Type="Self.BemsMonitoringPointHistory15minRawData" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="BemsMonitoringPoint">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FacilityCode" />
+        <PropertyRef Name="PropertyId" />
+      </Principal>
+      <Dependent Role="BemsMonitoringPointHistory15minRawData">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FacilityCode" />
+        <PropertyRef Name="PropertyId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__BemsMonitoringPointHistoryDaily__BemsFacilityType">
+    <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
+    <End Role="BemsMonitoringPointHistoryDaily" Type="Self.BemsMonitoringPointHistoryDaily" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="BemsFacilityType">
+        <PropertyRef Name="FacilityTypeId" />
+      </Principal>
+      <Dependent Role="BemsMonitoringPointHistoryDaily">
+        <PropertyRef Name="FacilityTypeId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__BemsMonitoringPointHistoryDaily__BemsMonitoringPoint">
+    <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="1" />
+    <End Role="BemsMonitoringPointHistoryDaily" Type="Self.BemsMonitoringPointHistoryDaily" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="BemsMonitoringPoint">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FacilityCode" />
+        <PropertyRef Name="PropertyId" />
+      </Principal>
+      <Dependent Role="BemsMonitoringPointHistoryDaily">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FacilityCode" />
+        <PropertyRef Name="PropertyId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__BemsMonitoringPointHistoryHourly__BemsFacilityType">
+    <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
+    <End Role="BemsMonitoringPointHistoryHourly" Type="Self.BemsMonitoringPointHistoryHourly" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="BemsFacilityType">
+        <PropertyRef Name="FacilityTypeId" />
+      </Principal>
+      <Dependent Role="BemsMonitoringPointHistoryHourly">
+        <PropertyRef Name="FacilityTypeId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__BemsMonitoringPointHistoryHourly__BemsMonitoringPoint">
+    <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="1" />
+    <End Role="BemsMonitoringPointHistoryHourly" Type="Self.BemsMonitoringPointHistoryHourly" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="BemsMonitoringPoint">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FacilityCode" />
+        <PropertyRef Name="PropertyId" />
+      </Principal>
+      <Dependent Role="BemsMonitoringPointHistoryHourly">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FacilityCode" />
+        <PropertyRef Name="PropertyId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__BemsMonitoringPointToAnlaysisType__BemsFacilityType">
+    <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
+    <End Role="BemsMonitoringPointToAnlaysisType" Type="Self.BemsMonitoringPointToAnlaysisType" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="BemsFacilityType">
+        <PropertyRef Name="FacilityTypeId" />
+      </Principal>
+      <Dependent Role="BemsMonitoringPointToAnlaysisType">
+        <PropertyRef Name="FacilityTypeId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__BemsNoticePriceBase__BemsNoticePriceContractType">
+    <End Role="BemsNoticePriceContractType" Type="Self.BemsNoticePriceContractType" Multiplicity="1" />
+    <End Role="BemsNoticePriceBase" Type="Self.BemsNoticePriceBase" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="BemsNoticePriceContractType">
+        <PropertyRef Name="FuelTypeId" />
+        <PropertyRef Name="ContractType" />
+      </Principal>
+      <Dependent Role="BemsNoticePriceBase">
+        <PropertyRef Name="FuelTypeId" />
+        <PropertyRef Name="ContractType" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__BemsNoticePriceContractType__BemsFuelType">
+    <End Role="BemsFuelType" Type="Self.BemsFuelType" Multiplicity="1" />
+    <End Role="BemsNoticePriceContractType" Type="Self.BemsNoticePriceContractType" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="BemsFuelType">
+        <PropertyRef Name="FuelTypeId" />
+      </Principal>
+      <Dependent Role="BemsNoticePriceContractType">
+        <PropertyRef Name="FuelTypeId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__BemsNoticePriceDetail__BemsNoticePriceBase">
+    <End Role="BemsNoticePriceBase" Type="Self.BemsNoticePriceBase" Multiplicity="1" />
+    <End Role="BemsNoticePriceDetail" Type="Self.BemsNoticePriceDetail" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="BemsNoticePriceBase">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FuelTypeId" />
+        <PropertyRef Name="ApplyDate" />
+        <PropertyRef Name="ContractType" />
+      </Principal>
+      <Dependent Role="BemsNoticePriceDetail">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FuelTypeId" />
+        <PropertyRef Name="ApplyDate" />
+        <PropertyRef Name="ContractType" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__CmCompany__345EC57D">
+    <End Role="CmCompanyType" Type="Self.CmCompanyType" Multiplicity="1" />
+    <End Role="CmCompany" Type="Self.CmCompany" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmCompanyType">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="CompanyTypeId" />
+      </Principal>
+      <Dependent Role="CmCompany">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="CompanyTypeId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__CmCompany__SiteI__336AA144">
+    <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
+    <End Role="CmCompany" Type="Self.CmCompany" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmSite">
+        <PropertyRef Name="SiteId" />
+      </Principal>
+      <Dependent Role="CmCompany">
+        <PropertyRef Name="SiteId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__CmDepartment__3552E9B6">
+    <End Role="CmCompany" Type="Self.CmCompany" Multiplicity="1" />
+    <End Role="CmDepartment" Type="Self.CmDepartment" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmCompany">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="CompanyId" />
+      </Principal>
+      <Dependent Role="CmDepartment">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="CompanyId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__CmFacility__CmFacility">
+    <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="0..1" />
+    <End Role="CmFacility1" Type="Self.CmFacility" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmFacility">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FacilityCode" />
+      </Principal>
+      <Dependent Role="CmFacility1">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="ParentFacilityCode" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__CmFacilityFile__7720AD13">
+    <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="1" />
+    <End Role="CmFacilityFile" Type="Self.CmFacilityFile" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmFacility">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FacilityCode" />
+      </Principal>
+      <Dependent Role="CmFacilityFile">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FacilityCode" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__CmFacilityFile__CmFile">
+    <End Role="CmFile" Type="Self.CmFile" Multiplicity="1" />
+    <End Role="CmFacilityFile" Type="Self.CmFacilityFile" Multiplicity="0..1" />
+    <ReferentialConstraint>
+      <Principal Role="CmFile">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FileId" />
+      </Principal>
+      <Dependent Role="CmFacilityFile">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FileId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__CmFacilityManual__79FD19BE">
+    <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="1" />
+    <End Role="FmsFacilityManual" Type="Self.FmsFacilityManual" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmFacility">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FacilityCode" />
+      </Principal>
+      <Dependent Role="FmsFacilityManual">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FacilityCode" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__CmFacilityManual__7BE56230">
+    <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
+    <End Role="FmsFacilityManual" Type="Self.FmsFacilityManual" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmBusinessField">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="BusinessFieldId" />
+      </Principal>
+      <Dependent Role="FmsFacilityManual">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="BusinessFieldId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__CmFile__CmFileCategory">
+    <End Role="CmFileCategory" Type="Self.CmFileCategory" Multiplicity="1" />
+    <End Role="CmFile" Type="Self.CmFile" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmFileCategory">
+        <PropertyRef Name="FileCategoryId" />
+      </Principal>
+      <Dependent Role="CmFile">
+        <PropertyRef Name="FileCategoryId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__CmFile__SiteId__2759D01A">
+    <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
+    <End Role="CmFile" Type="Self.CmFile" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmSite">
+        <PropertyRef Name="SiteId" />
+      </Principal>
+      <Dependent Role="CmFile">
+        <PropertyRef Name="SiteId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__CmFloor__3CF40B7E">
+    <End Role="CmBuilding" Type="Self.CmBuilding" Multiplicity="1" />
+    <End Role="CmFloor" Type="Self.CmFloor" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmBuilding">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="BuildingId" />
+      </Principal>
+      <Dependent Role="CmFloor">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="BuildingId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__CmHoliday__SiteI__0BB1B5A5">
+    <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
+    <End Role="CmHoliday" Type="Self.CmHoliday" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmSite">
+        <PropertyRef Name="SiteId" />
+      </Principal>
+      <Dependent Role="CmHoliday">
+        <PropertyRef Name="SiteId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__CmHoliday__SiteI__0D99FE17">
+    <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
+    <End Role="CmHolidayWeekend" Type="Self.CmHolidayWeekend" Multiplicity="0..1" />
+    <ReferentialConstraint>
+      <Principal Role="CmSite">
+        <PropertyRef Name="SiteId" />
+      </Principal>
+      <Dependent Role="CmHolidayWeekend">
+        <PropertyRef Name="SiteId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__CmHoliday__SiteI__10766AC2">
+    <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
+    <End Role="CmHolidayCustom" Type="Self.CmHolidayCustom" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmSite">
+        <PropertyRef Name="SiteId" />
+      </Principal>
+      <Dependent Role="CmHolidayCustom">
+        <PropertyRef Name="SiteId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__CmHoliday__SiteI__65AC084E">
+    <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
+    <End Role="CmHoliday" Type="Self.CmHoliday" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmSite">
+        <PropertyRef Name="SiteId" />
+      </Principal>
+      <Dependent Role="CmHoliday">
+        <PropertyRef Name="SiteId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__CmHoliday__SiteI__66A02C87">
+    <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
+    <End Role="CmHolidayCustom" Type="Self.CmHolidayCustom" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmSite">
+        <PropertyRef Name="SiteId" />
+      </Principal>
+      <Dependent Role="CmHolidayCustom">
+        <PropertyRef Name="SiteId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__CmLocation__3DE82FB7">
+    <End Role="CmFloor" Type="Self.CmFloor" Multiplicity="1" />
+    <End Role="CmZone" Type="Self.CmZone" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmFloor">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="BuildingId" />
+        <PropertyRef Name="FloorId" />
+      </Principal>
+      <Dependent Role="CmZone">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="BuildingId" />
+        <PropertyRef Name="FloorId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__CmPositio__SiteI__6A70BD6B">
+    <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
+    <End Role="CmPosition" Type="Self.CmPosition" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmSite">
+        <PropertyRef Name="SiteId" />
+      </Principal>
+      <Dependent Role="CmPosition">
+        <PropertyRef Name="SiteId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__CmUserGro__SiteI__53D770D6">
+    <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
+    <End Role="CmUserGroup" Type="Self.CmUserGroup" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmSite">
+        <PropertyRef Name="SiteId" />
+      </Principal>
+      <Dependent Role="CmUserGroup">
+        <PropertyRef Name="SiteId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__CmUserGroupPermission__CmUserGroup">
+    <End Role="CmUserGroup" Type="Self.CmUserGroup" Multiplicity="1">
+      <OnDelete Action="Cascade" />
+    </End>
+    <End Role="CmUserGroupPermission" Type="Self.CmUserGroupPermission" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmUserGroup">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="UserGroupId" />
+      </Principal>
+      <Dependent Role="CmUserGroupPermission">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="UserGroupId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__CmUserPos__SiteI__44952D46">
+    <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
+    <End Role="CmPosition" Type="Self.CmPosition" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmSite">
+        <PropertyRef Name="SiteId" />
+      </Principal>
+      <Dependent Role="CmPosition">
+        <PropertyRef Name="SiteId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__CmUserToLicense__CmUser">
+    <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
+    <End Role="CmUserToLicense" Type="Self.CmUserToLicense" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmUser">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="UserId" />
+      </Principal>
+      <Dependent Role="CmUserToLicense">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="UserId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__CmUserToLicense__FmsLicense">
+    <End Role="FmsLicense" Type="Self.FmsLicense" Multiplicity="1" />
+    <End Role="CmUserToLicense" Type="Self.CmUserToLicense" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="FmsLicense">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="LicenseId" />
+      </Principal>
+      <Dependent Role="CmUserToLicense">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="LicenseId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__CmZone__CmBuilding">
+    <End Role="CmBuilding" Type="Self.CmBuilding" Multiplicity="1" />
+    <End Role="CmZone" Type="Self.CmZone" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmBuilding">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="BuildingId" />
+      </Principal>
+      <Dependent Role="CmZone">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="BuildingId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsDrawin__SiteI__6B79F03D">
+    <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
+    <End Role="FmsDrawingCodeGroup" Type="Self.FmsDrawingCodeGroup" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmSite">
+        <PropertyRef Name="SiteId" />
+      </Principal>
+      <Dependent Role="FmsDrawingCodeGroup">
+        <PropertyRef Name="SiteId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsDrawin__SiteI__6C6E1476">
+    <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
+    <End Role="FmsDrawingCodeType" Type="Self.FmsDrawingCodeType" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmSite">
+        <PropertyRef Name="SiteId" />
+      </Principal>
+      <Dependent Role="FmsDrawingCodeType">
+        <PropertyRef Name="SiteId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsDrawin__SiteI__6D6238AF">
+    <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
+    <End Role="FmsDrawing" Type="Self.FmsDrawing" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmSite">
+        <PropertyRef Name="SiteId" />
+      </Principal>
+      <Dependent Role="FmsDrawing">
+        <PropertyRef Name="SiteId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsDrawin__SiteI__6F357288">
+    <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
+    <End Role="FmsDrawingCodeGroup" Type="Self.FmsDrawingCodeGroup" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmSite">
+        <PropertyRef Name="SiteId" />
+      </Principal>
+      <Dependent Role="FmsDrawingCodeGroup">
+        <PropertyRef Name="SiteId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsDrawin__SiteI__702996C1">
+    <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
+    <End Role="FmsDrawingCodeType" Type="Self.FmsDrawingCodeType" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmSite">
+        <PropertyRef Name="SiteId" />
+      </Principal>
+      <Dependent Role="FmsDrawingCodeType">
+        <PropertyRef Name="SiteId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsDrawing__6E565CE8">
+    <End Role="FmsDrawingCodeGroup" Type="Self.FmsDrawingCodeGroup" Multiplicity="1" />
+    <End Role="FmsDrawing" Type="Self.FmsDrawing" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="FmsDrawingCodeGroup">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="DrawingGroupId" />
+      </Principal>
+      <Dependent Role="FmsDrawing">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="DrawingGroupId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsDrawing__6F4A8121">
+    <End Role="FmsDrawingCodeType" Type="Self.FmsDrawingCodeType" Multiplicity="1" />
+    <End Role="FmsDrawing" Type="Self.FmsDrawing" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="FmsDrawingCodeType">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="DrawingTypeId" />
+      </Principal>
+      <Dependent Role="FmsDrawing">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="DrawingTypeId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsDrawingHistor__04DA9AE4">
+    <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
+    <End Role="FmsDrawingHistory" Type="Self.FmsDrawingHistory" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmFile">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FileId" />
+      </Principal>
+      <Dependent Role="FmsDrawingHistory">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FileId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsDrawingHistor__7132C993">
+    <End Role="FmsDrawing" Type="Self.FmsDrawing" Multiplicity="1">
+      <OnDelete Action="Cascade" />
+    </End>
+    <End Role="FmsDrawingHistory" Type="Self.FmsDrawingHistory" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="FmsDrawing">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="DrawingId" />
+      </Principal>
+      <Dependent Role="FmsDrawingHistory">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="DrawingId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsDrawingHistory__CmUser">
+    <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
+    <End Role="FmsDrawingHistory" Type="Self.FmsDrawingHistory" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmUser">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="UserId" />
+      </Principal>
+      <Dependent Role="FmsDrawingHistory">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="UpdatedUserId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsFacilityCheckItem__FmsWorkCodeCycleUnit">
+    <End Role="FmsWorkCodeCycleUnit" Type="Self.FmsWorkCodeCycleUnit" Multiplicity="1" />
+    <End Role="FmsFacilityCheckItem" Type="Self.FmsFacilityCheckItem" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="FmsWorkCodeCycleUnit">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="CycleUnitId" />
+      </Principal>
+      <Dependent Role="FmsFacilityCheckItem">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="CycleUnitId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsFacilityCheckItem__FmsWorkCodeWorkType">
+    <End Role="FmsWorkCodeType" Type="Self.FmsWorkCodeType" Multiplicity="1" />
+    <End Role="FmsFacilityCheckItem" Type="Self.FmsFacilityCheckItem" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="FmsWorkCodeType">
+        <PropertyRef Name="WorkTypeId" />
+      </Principal>
+      <Dependent Role="FmsFacilityCheckItem">
+        <PropertyRef Name="WorkTypeId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsFacilityCodeClass__CmSite">
+    <End Role="CmSite" Type="Self.CmSite" Multiplicity="1">
+      <OnDelete Action="Cascade" />
+    </End>
+    <End Role="FmsFacilityCodeClass" Type="Self.FmsFacilityCodeClass" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmSite">
+        <PropertyRef Name="SiteId" />
+      </Principal>
+      <Dependent Role="FmsFacilityCodeClass">
+        <PropertyRef Name="SiteId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsFacilityCodeClass__FmsFacilityCodeClass">
+    <End Role="FmsFacilityCodeClass" Type="Self.FmsFacilityCodeClass" Multiplicity="0..1" />
+    <End Role="FmsFacilityCodeClass1" Type="Self.FmsFacilityCodeClass" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="FmsFacilityCodeClass">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FacilityClassId" />
+      </Principal>
+      <Dependent Role="FmsFacilityCodeClass1">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="ParentFacilityClassId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsFacilityOpera__725BF7F6">
+    <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="1" />
+    <End Role="FmsFacilityOperationItem" Type="Self.FmsFacilityOperationItem" Multiplicity="0..1" />
+    <ReferentialConstraint>
+      <Principal Role="CmFacility">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FacilityCode" />
+      </Principal>
+      <Dependent Role="FmsFacilityOperationItem">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="ItemId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsLicense__CmBusinessField">
+    <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="0..1" />
+    <End Role="FmsLicense" Type="Self.FmsLicense" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmBusinessField">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="BusinessFieldId" />
+      </Principal>
+      <Dependent Role="FmsLicense">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="BusinessFieldId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsLicense__CmSite">
+    <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
+    <End Role="FmsLicense" Type="Self.FmsLicense" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmSite">
+        <PropertyRef Name="SiteId" />
+      </Principal>
+      <Dependent Role="FmsLicense">
+        <PropertyRef Name="SiteId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsMaterial__FmsMaterialCodeClass_AsFirstClassId">
+    <End Role="FmsMaterialCodeClass" Type="Self.FmsMaterialCodeClass" Multiplicity="0..1" />
+    <End Role="FmsMaterial" Type="Self.FmsMaterial" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="FmsMaterialCodeClass">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="MaterialClassId" />
+      </Principal>
+      <Dependent Role="FmsMaterial">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FirstClassId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsMaterial__FmsMaterialCodeClass_AsSecondClassId">
+    <End Role="FmsMaterialCodeClass" Type="Self.FmsMaterialCodeClass" Multiplicity="0..1" />
+    <End Role="FmsMaterial" Type="Self.FmsMaterial" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="FmsMaterialCodeClass">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="MaterialClassId" />
+      </Principal>
+      <Dependent Role="FmsMaterial">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="SecondClassId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsMaterial__FmsMaterialCodeClass_AsThirdClassId">
+    <End Role="FmsMaterialCodeClass" Type="Self.FmsMaterialCodeClass" Multiplicity="0..1" />
+    <End Role="FmsMaterial" Type="Self.FmsMaterial" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="FmsMaterialCodeClass">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="MaterialClassId" />
+      </Principal>
+      <Dependent Role="FmsMaterial">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="ThirdClassId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsMaterialCarriedForward__CmBusinessField">
+    <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
+    <End Role="FmsMaterialCarriedForward" Type="Self.FmsMaterialCarriedForward" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmBusinessField">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="BusinessFieldId" />
+      </Principal>
+      <Dependent Role="FmsMaterialCarriedForward">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="BusinessFieldId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsMaterialCarriedForward__CmSite">
+    <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
+    <End Role="FmsMaterialCarriedForward" Type="Self.FmsMaterialCarriedForward" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmSite">
+        <PropertyRef Name="SiteId" />
+      </Principal>
+      <Dependent Role="FmsMaterialCarriedForward">
+        <PropertyRef Name="SiteId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsMaterialCodeClass__CmSite">
+    <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
+    <End Role="FmsMaterialCodeClass" Type="Self.FmsMaterialCodeClass" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmSite">
+        <PropertyRef Name="SiteId" />
+      </Principal>
+      <Dependent Role="FmsMaterialCodeClass">
+        <PropertyRef Name="SiteId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsMaterialCodeClass__FmsMaterialCodeClass">
+    <End Role="FmsMaterialCodeClass" Type="Self.FmsMaterialCodeClass" Multiplicity="0..1" />
+    <End Role="FmsMaterialCodeClass1" Type="Self.FmsMaterialCodeClass" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="FmsMaterialCodeClass">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="MaterialClassId" />
+      </Principal>
+      <Dependent Role="FmsMaterialCodeClass1">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="ParentMaterialClassId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsMaterialCodeLocation__CmBusinessField">
+    <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
+    <End Role="FmsMaterialCodeLocation" Type="Self.FmsMaterialCodeLocation" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmBusinessField">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="BusinessFieldId" />
+      </Principal>
+      <Dependent Role="FmsMaterialCodeLocation">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="BusinessFieldId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsMaterialCodeLocation__CmSite">
+    <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
+    <End Role="FmsMaterialCodeLocation" Type="Self.FmsMaterialCodeLocation" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmSite">
+        <PropertyRef Name="SiteId" />
+      </Principal>
+      <Dependent Role="FmsMaterialCodeLocation">
+        <PropertyRef Name="SiteId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsMaterialCodeType__CmSite">
+    <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
+    <End Role="FmsMaterialCodeType" Type="Self.FmsMaterialCodeType" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmSite">
+        <PropertyRef Name="SiteId" />
+      </Principal>
+      <Dependent Role="FmsMaterialCodeType">
+        <PropertyRef Name="SiteId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsMaterialOrder__CmBusinessField">
+    <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
+    <End Role="FmsMaterialPurchaseOrder" Type="Self.FmsMaterialPurchaseOrder" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmBusinessField">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="BusinessFieldId" />
+      </Principal>
+      <Dependent Role="FmsMaterialPurchaseOrder">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="BusinessFieldId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsMaterialOrder__CmSite">
+    <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
+    <End Role="FmsMaterialPurchaseOrder" Type="Self.FmsMaterialPurchaseOrder" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmSite">
+        <PropertyRef Name="SiteId" />
+      </Principal>
+      <Dependent Role="FmsMaterialPurchaseOrder">
+        <PropertyRef Name="SiteId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsMaterialOrder__CmUser">
+    <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
+    <End Role="FmsMaterialPurchaseOrder" Type="Self.FmsMaterialPurchaseOrder" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmUser">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="UserId" />
+      </Principal>
+      <Dependent Role="FmsMaterialPurchaseOrder">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="OrderUserId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsMaterialPurchaseOrder__CmFile">
+    <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
+    <End Role="FmsMaterialPurchaseOrder" Type="Self.FmsMaterialPurchaseOrder" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmFile">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FileId" />
+      </Principal>
+      <Dependent Role="FmsMaterialPurchaseOrder">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FileId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsMaterialPurchaseOrder__FmsMaterialTradeCompany">
+    <End Role="FmsMaterialTradeCompany" Type="Self.FmsMaterialTradeCompany" Multiplicity="0..1" />
+    <End Role="FmsMaterialPurchaseOrder" Type="Self.FmsMaterialPurchaseOrder" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="FmsMaterialTradeCompany">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="TradeCompanyId" />
+      </Principal>
+      <Dependent Role="FmsMaterialPurchaseOrder">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="TradeCompanyId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsMaterialPurchaseRequest__CmUser_AsRequestUserId">
+    <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
+    <End Role="FmsMaterialPurchaseRequest" Type="Self.FmsMaterialPurchaseRequest" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmUser">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="UserId" />
+      </Principal>
+      <Dependent Role="FmsMaterialPurchaseRequest">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="RequestUserId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsMaterialPurchaseRequest__CmUser1_AsApprovalUserId">
+    <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
+    <End Role="FmsMaterialPurchaseRequest" Type="Self.FmsMaterialPurchaseRequest" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmUser">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="UserId" />
+      </Principal>
+      <Dependent Role="FmsMaterialPurchaseRequest">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="ApprovalUserId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsMaterialPurchasingRequest__CmBusinessField">
+    <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
+    <End Role="FmsMaterialPurchaseRequest" Type="Self.FmsMaterialPurchaseRequest" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmBusinessField">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="BusinessFieldId" />
+      </Principal>
+      <Dependent Role="FmsMaterialPurchaseRequest">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="BusinessFieldId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsMaterialPurchasingRequest__CmSite">
+    <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
+    <End Role="FmsMaterialPurchaseRequest" Type="Self.FmsMaterialPurchaseRequest" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmSite">
+        <PropertyRef Name="SiteId" />
+      </Principal>
+      <Dependent Role="FmsMaterialPurchaseRequest">
+        <PropertyRef Name="SiteId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsMaterialPurchasingRequest__FmsMaterialCodeProcess">
+    <End Role="FmsMaterialCodeProgress" Type="Self.FmsMaterialCodeProgress" Multiplicity="1" />
+    <End Role="FmsMaterialPurchaseRequest" Type="Self.FmsMaterialPurchaseRequest" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="FmsMaterialCodeProgress">
+        <PropertyRef Name="ProgressId" />
+      </Principal>
+      <Dependent Role="FmsMaterialPurchaseRequest">
+        <PropertyRef Name="ProgressId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsMaterialStored__CmBusinessField">
+    <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
+    <End Role="FmsMaterialStored" Type="Self.FmsMaterialStored" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmBusinessField">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="BusinessFieldId" />
+      </Principal>
+      <Dependent Role="FmsMaterialStored">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="BusinessFieldId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsMaterialStored__CmSite">
+    <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
+    <End Role="FmsMaterialStored" Type="Self.FmsMaterialStored" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmSite">
+        <PropertyRef Name="SiteId" />
+      </Principal>
+      <Dependent Role="FmsMaterialStored">
+        <PropertyRef Name="SiteId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsMaterialStored__CmUser_AsStoredUserId">
+    <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
+    <End Role="FmsMaterialStored" Type="Self.FmsMaterialStored" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmUser">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="UserId" />
+      </Principal>
+      <Dependent Role="FmsMaterialStored">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="StoredUserId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsMaterialStored__CmUser1_AsApprovalUserId">
+    <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
+    <End Role="FmsMaterialStored" Type="Self.FmsMaterialStored" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmUser">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="UserId" />
+      </Principal>
+      <Dependent Role="FmsMaterialStored">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="ApprovalUserId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsMaterialTradeCompany__CmSite">
+    <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
+    <End Role="FmsMaterialTradeCompany" Type="Self.FmsMaterialTradeCompany" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmSite">
+        <PropertyRef Name="SiteId" />
+      </Principal>
+      <Dependent Role="FmsMaterialTradeCompany">
+        <PropertyRef Name="SiteId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsMaterialWarehouse__CmBusinessField">
+    <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
+    <End Role="FmsMaterialWarehouse" Type="Self.FmsMaterialWarehouse" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmBusinessField">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="BusinessFieldId" />
+      </Principal>
+      <Dependent Role="FmsMaterialWarehouse">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="BusinessFieldId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsMaterialWarehouse__CmSite">
+    <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
+    <End Role="FmsMaterialWarehouse" Type="Self.FmsMaterialWarehouse" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmSite">
+        <PropertyRef Name="SiteId" />
+      </Principal>
+      <Dependent Role="FmsMaterialWarehouse">
+        <PropertyRef Name="SiteId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsWorkCodeCauseClass__CmSite">
+    <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
+    <End Role="FmsWorkCodeCauseClass" Type="Self.FmsWorkCodeCauseClass" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmSite">
+        <PropertyRef Name="SiteId" />
+      </Principal>
+      <Dependent Role="FmsWorkCodeCauseClass">
+        <PropertyRef Name="SiteId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsWorkCodeCycleUnit__CmSite">
+    <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
+    <End Role="FmsWorkCodeCycleUnit" Type="Self.FmsWorkCodeCycleUnit" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmSite">
+        <PropertyRef Name="SiteId" />
+      </Principal>
+      <Dependent Role="FmsWorkCodeCycleUnit">
+        <PropertyRef Name="SiteId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsWorkCodeEmergency__CmSite">
+    <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
+    <End Role="FmsWorkCodeEmergency" Type="Self.FmsWorkCodeEmergency" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmSite">
+        <PropertyRef Name="SiteId" />
+      </Principal>
+      <Dependent Role="FmsWorkCodeEmergency">
+        <PropertyRef Name="SiteId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsWorkCodeHolidayWorkType__CmSite">
+    <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
+    <End Role="FmsWorkCodeHolidayWorkType" Type="Self.FmsWorkCodeHolidayWorkType" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmSite">
+        <PropertyRef Name="SiteId" />
+      </Principal>
+      <Dependent Role="FmsWorkCodeHolidayWorkType">
+        <PropertyRef Name="SiteId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsWorkCodeLegalInspectionAgency__CmSite">
+    <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
+    <End Role="FmsWorkCodeLegalInspectionAgency" Type="Self.FmsWorkCodeLegalInspectionAgency" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmSite">
+        <PropertyRef Name="SiteId" />
+      </Principal>
+      <Dependent Role="FmsWorkCodeLegalInspectionAgency">
+        <PropertyRef Name="SiteId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsWorkOrder__CmBusinessField">
+    <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
+    <End Role="FmsWorkOrder" Type="Self.FmsWorkOrder" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmBusinessField">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="BusinessFieldId" />
+      </Principal>
+      <Dependent Role="FmsWorkOrder">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="BusinessFieldId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsWorkOrder__CmSite">
+    <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
+    <End Role="FmsWorkOrder" Type="Self.FmsWorkOrder" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmSite">
+        <PropertyRef Name="SiteId" />
+      </Principal>
+      <Dependent Role="FmsWorkOrder">
+        <PropertyRef Name="SiteId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsWorkOrder__CmUser">
+    <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
+    <End Role="FmsWorkOrder" Type="Self.FmsWorkOrder" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmUser">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="UserId" />
+      </Principal>
+      <Dependent Role="FmsWorkOrder">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="OrderUserId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsWorkOrder__FmsWorkCodeEmergency">
+    <End Role="FmsWorkCodeEmergency" Type="Self.FmsWorkCodeEmergency" Multiplicity="0..1" />
+    <End Role="FmsWorkOrder" Type="Self.FmsWorkOrder" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="FmsWorkCodeEmergency">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="EmergencyId" />
+      </Principal>
+      <Dependent Role="FmsWorkOrder">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="EmergencyId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsWorkOrder__FmsWorkRequest">
+    <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="1" />
+    <End Role="FmsWorkOrder" Type="Self.FmsWorkOrder" Multiplicity="0..1" />
+    <ReferentialConstraint>
+      <Principal Role="FmsWorkRequest">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="WorkRequestId" />
+      </Principal>
+      <Dependent Role="FmsWorkOrder">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="WorkRequestId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsWorkOrderToFacility__FmsWorkOrder">
+    <End Role="FmsWorkOrder" Type="Self.FmsWorkOrder" Multiplicity="1">
+      <OnDelete Action="Cascade" />
+    </End>
+    <End Role="FmsWorkOrderToFacility" Type="Self.FmsWorkOrderToFacility" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="FmsWorkOrder">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="WorkRequestId" />
+      </Principal>
+      <Dependent Role="FmsWorkOrderToFacility">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="WorkRequestId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsWorkRequest__CmBusinessField">
+    <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
+    <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmBusinessField">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="BusinessFieldId" />
+      </Principal>
+      <Dependent Role="FmsWorkRequest">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="BusinessFieldId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsWorkRequest__CmSite">
+    <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
+    <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmSite">
+        <PropertyRef Name="SiteId" />
+      </Principal>
+      <Dependent Role="FmsWorkRequest">
+        <PropertyRef Name="SiteId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsWorkRequest__CmUser_AsRequestUserId">
+    <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
+    <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmUser">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="UserId" />
+      </Principal>
+      <Dependent Role="FmsWorkRequest">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="RequestUserId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsWorkRequest__CmUser1_AsRejectUserId">
+    <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
+    <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmUser">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="UserId" />
+      </Principal>
+      <Dependent Role="FmsWorkRequest">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="RejectUserId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsWorkRequest__FmsWorkCodeProgress">
+    <End Role="FmsWorkCodeProgress" Type="Self.FmsWorkCodeProgress" Multiplicity="1" />
+    <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="FmsWorkCodeProgress">
+        <PropertyRef Name="WorkProgressId" />
+      </Principal>
+      <Dependent Role="FmsWorkRequest">
+        <PropertyRef Name="WorkProgressId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsWorkRequest__FmsWorkCodeWorkType">
+    <End Role="FmsWorkCodeType" Type="Self.FmsWorkCodeType" Multiplicity="1" />
+    <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="FmsWorkCodeType">
+        <PropertyRef Name="WorkTypeId" />
+      </Principal>
+      <Dependent Role="FmsWorkRequest">
+        <PropertyRef Name="WorkTypeId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsWorkRequest__FmsWorkSchedule">
+    <End Role="FmsWorkSchedule" Type="Self.FmsWorkSchedule" Multiplicity="0..1" />
+    <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="FmsWorkSchedule">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="WorkScheduleId" />
+      </Principal>
+      <Dependent Role="FmsWorkRequest">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="WorkScheduleId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsWorkRequestToFacility__FmsWorkRequest">
+    <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="1">
+      <OnDelete Action="Cascade" />
+    </End>
+    <End Role="FmsWorkRequestToFacility" Type="Self.FmsWorkRequestToFacility" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="FmsWorkRequest">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="WorkRequestId" />
+      </Principal>
+      <Dependent Role="FmsWorkRequestToFacility">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="WorkRequestId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsWorkResult__CmUser_AsWorkerUserId">
+    <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
+    <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmUser">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="UserId" />
+      </Principal>
+      <Dependent Role="FmsWorkResult">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="WorkerUserId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsWorkResult__CmUser1_AsConfirmedUserId">
+    <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
+    <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmUser">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="UserId" />
+      </Principal>
+      <Dependent Role="FmsWorkResult">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="ConfirmedUserId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsWorkResult__FmsWorkCodeCauseClass">
+    <End Role="FmsWorkCodeCauseClass" Type="Self.FmsWorkCodeCauseClass" Multiplicity="0..1" />
+    <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="FmsWorkCodeCauseClass">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="CauseClassId" />
+      </Principal>
+      <Dependent Role="FmsWorkResult">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="CauseClassId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsWorkResult__FmsWorkOrder">
+    <End Role="FmsWorkOrder" Type="Self.FmsWorkOrder" Multiplicity="1" />
+    <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="0..1" />
+    <ReferentialConstraint>
+      <Principal Role="FmsWorkOrder">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="WorkRequestId" />
+      </Principal>
+      <Dependent Role="FmsWorkResult">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="WorkRequestId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsWorkResult__FmsWorkRequest">
+    <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="1" />
+    <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="0..1" />
+    <ReferentialConstraint>
+      <Principal Role="FmsWorkRequest">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="WorkRequestId" />
+      </Principal>
+      <Dependent Role="FmsWorkResult">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="WorkRequestId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsWorkResultCheckItem__CmFacility">
+    <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="0..1" />
+    <End Role="FmsWorkResultCheckItem" Type="Self.FmsWorkResultCheckItem" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmFacility">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FacilityCode" />
+      </Principal>
+      <Dependent Role="FmsWorkResultCheckItem">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FacilityCode" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsWorkResultCheckItem__FmsFacilityCheckItem">
+    <End Role="FmsFacilityCheckItem" Type="Self.FmsFacilityCheckItem" Multiplicity="0..1" />
+    <End Role="FmsWorkResultCheckItem" Type="Self.FmsWorkResultCheckItem" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="FmsFacilityCheckItem">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FacilityCode" />
+        <PropertyRef Name="CheckItemId" />
+      </Principal>
+      <Dependent Role="FmsWorkResultCheckItem">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FacilityCode" />
+        <PropertyRef Name="CheckItemId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsWorkResultCheckItem__FmsWorkResult">
+    <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="1">
+      <OnDelete Action="Cascade" />
+    </End>
+    <End Role="FmsWorkResultCheckItem" Type="Self.FmsWorkResultCheckItem" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="FmsWorkResult">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="WorkRequestId" />
+      </Principal>
+      <Dependent Role="FmsWorkResultCheckItem">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="WorkRequestId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsWorkResultFile__CmFile">
+    <End Role="CmFile" Type="Self.CmFile" Multiplicity="1" />
+    <End Role="FmsWorkResultFile" Type="Self.FmsWorkResultFile" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmFile">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FileId" />
+      </Principal>
+      <Dependent Role="FmsWorkResultFile">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FileId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsWorkResultFile__FmsWorkResult">
+    <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="1" />
+    <End Role="FmsWorkResultFile" Type="Self.FmsWorkResultFile" Multiplicity="0..1" />
+    <ReferentialConstraint>
+      <Principal Role="FmsWorkResult">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="WorkRequestId" />
+      </Principal>
+      <Dependent Role="FmsWorkResultFile">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="WorkRequestId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsWorkResultLaw__FmsWorkResult">
+    <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="1" />
+    <End Role="FmsWorkResultLaw" Type="Self.FmsWorkResultLaw" Multiplicity="0..1" />
+    <ReferentialConstraint>
+      <Principal Role="FmsWorkResult">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="WorkRequestId" />
+      </Principal>
+      <Dependent Role="FmsWorkResultLaw">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="WorkRequestId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsWorkResultToFacility__CmFacility">
+    <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="1" />
+    <End Role="FmsWorkResultToFacility" Type="Self.FmsWorkResultToFacility" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmFacility">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FacilityCode" />
+      </Principal>
+      <Dependent Role="FmsWorkResultToFacility">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FacilityCode" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsWorkResultToFacility__FmsWorkOrder">
+    <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="1">
+      <OnDelete Action="Cascade" />
+    </End>
+    <End Role="FmsWorkResultToFacility" Type="Self.FmsWorkResultToFacility" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="FmsWorkResult">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="WorkRequestId" />
+      </Principal>
+      <Dependent Role="FmsWorkResultToFacility">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="WorkRequestId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsWorkSchedule__CmBusinessField">
+    <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
+    <End Role="FmsWorkSchedule" Type="Self.FmsWorkSchedule" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmBusinessField">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="BusinessFieldId" />
+      </Principal>
+      <Dependent Role="FmsWorkSchedule">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="BusinessFieldId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsWorkSchedule__CmUser">
+    <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
+    <End Role="FmsWorkSchedule" Type="Self.FmsWorkSchedule" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmUser">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="UserId" />
+      </Principal>
+      <Dependent Role="FmsWorkSchedule">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="UpdateUserId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsWorkSchedule__FmsWorkCodeCycleUnit">
+    <End Role="FmsWorkCodeCycleUnit" Type="Self.FmsWorkCodeCycleUnit" Multiplicity="1" />
+    <End Role="FmsWorkSchedule" Type="Self.FmsWorkSchedule" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="FmsWorkCodeCycleUnit">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="CycleUnitId" />
+      </Principal>
+      <Dependent Role="FmsWorkSchedule">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="CycleUnitId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsWorkSchedule__FmsWorkCodeHolidayWorkType">
+    <End Role="FmsWorkCodeHolidayWorkType" Type="Self.FmsWorkCodeHolidayWorkType" Multiplicity="1" />
+    <End Role="FmsWorkSchedule" Type="Self.FmsWorkSchedule" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="FmsWorkCodeHolidayWorkType">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="HolidayWorkTypeId" />
+      </Principal>
+      <Dependent Role="FmsWorkSchedule">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="HolidayWorkTypeId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsWorkSchedule__FmsWorkCodeWorkType">
+    <End Role="FmsWorkCodeType" Type="Self.FmsWorkCodeType" Multiplicity="1" />
+    <End Role="FmsWorkSchedule" Type="Self.FmsWorkSchedule" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="FmsWorkCodeType">
+        <PropertyRef Name="WorkTypeId" />
+      </Principal>
+      <Dependent Role="FmsWorkSchedule">
+        <PropertyRef Name="WorkTypeId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK__FmsWorkScheduleToFacility__FmsWorkSchedule">
+    <End Role="FmsWorkSchedule" Type="Self.FmsWorkSchedule" Multiplicity="1" />
+    <End Role="FmsWorkScheduleToFacility" Type="Self.FmsWorkScheduleToFacility" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="FmsWorkSchedule">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="WorkScheduleId" />
+      </Principal>
+      <Dependent Role="FmsWorkScheduleToFacility">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="WorkScheduleId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_BemsAlarmLog_BemsAlarmSetting">
+    <End Role="BemsAlarmSetting" Type="Self.BemsAlarmSetting" Multiplicity="1" />
+    <End Role="BemsAlarmLog" Type="Self.BemsAlarmLog" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="BemsAlarmSetting">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FacilityTypeId" />
+        <PropertyRef Name="FacilityCode" />
+        <PropertyRef Name="PropertyId" />
+        <PropertyRef Name="FormulaId" />
+      </Principal>
+      <Dependent Role="BemsAlarmLog">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FacilityTypeId" />
+        <PropertyRef Name="FacilityCode" />
+        <PropertyRef Name="PropertyId" />
+        <PropertyRef Name="FormulaId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_BemsAlarmSetting_BemsFacilityType">
+    <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
+    <End Role="BemsAlarmSetting" Type="Self.BemsAlarmSetting" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="BemsFacilityType">
+        <PropertyRef Name="FacilityTypeId" />
+      </Principal>
+      <Dependent Role="BemsAlarmSetting">
+        <PropertyRef Name="FacilityTypeId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_BemsAlarmSetting_CmFacility">
+    <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="1" />
+    <End Role="BemsAlarmSetting" Type="Self.BemsAlarmSetting" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmFacility">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FacilityCode" />
+      </Principal>
+      <Dependent Role="BemsAlarmSetting">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FacilityCode" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_BemsAlarmSetting_CmSite1">
+    <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
+    <End Role="BemsAlarmSetting" Type="Self.BemsAlarmSetting" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmSite">
+        <PropertyRef Name="SiteId" />
+      </Principal>
+      <Dependent Role="BemsAlarmSetting">
+        <PropertyRef Name="SiteId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_BemsChartInfo_BemsFacilityType">
+    <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
+    <End Role="BemsChartInfo" Type="Self.BemsChartInfo" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="BemsFacilityType">
+        <PropertyRef Name="FacilityTypeId" />
+      </Principal>
+      <Dependent Role="BemsChartInfo">
+        <PropertyRef Name="FacilityTypeId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_BemsChartInfo_CmSite">
+    <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
+    <End Role="BemsChartInfo" Type="Self.BemsChartInfo" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmSite">
+        <PropertyRef Name="SiteId" />
+      </Principal>
+      <Dependent Role="BemsChartInfo">
+        <PropertyRef Name="SiteId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_BemsControlPointHistory_BemsFacilityType">
+    <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
+    <End Role="BemsControlPointHistory" Type="Self.BemsControlPointHistory" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="BemsFacilityType">
+        <PropertyRef Name="FacilityTypeId" />
+      </Principal>
+      <Dependent Role="BemsControlPointHistory">
+        <PropertyRef Name="FacilityTypeId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_BemsControlPointHistory_BemsMonitoringPoint">
+    <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="1" />
+    <End Role="BemsControlPointHistory" Type="Self.BemsControlPointHistory" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="BemsMonitoringPoint">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FacilityCode" />
+        <PropertyRef Name="PropertyId" />
+      </Principal>
+      <Dependent Role="BemsControlPointHistory">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FacilityCode" />
+        <PropertyRef Name="PropertyId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_BemsEnergyCost_CmFacility">
+    <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="1" />
+    <End Role="BemsEnergyCost" Type="Self.BemsEnergyCost" Multiplicity="0..1" />
+    <ReferentialConstraint>
+      <Principal Role="CmFacility">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FacilityCode" />
+      </Principal>
+      <Dependent Role="BemsEnergyCost">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FacilityCode" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_BemsEnergyDailyRegression_CmSite">
+    <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
+    <End Role="BemsEnergyDailyRegression" Type="Self.BemsEnergyDailyRegression" Multiplicity="0..1" />
+    <ReferentialConstraint>
+      <Principal Role="CmSite">
+        <PropertyRef Name="SiteId" />
+      </Principal>
+      <Dependent Role="BemsEnergyDailyRegression">
+        <PropertyRef Name="SiteId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_BemsFormulaParameter_CmFacility">
+    <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="1" />
+    <End Role="BemsFormulaParameter" Type="Self.BemsFormulaParameter" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmFacility">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FacilityCode" />
+      </Principal>
+      <Dependent Role="BemsFormulaParameter">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FacilityCode" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_BemsMonitoringPoint_BemsFacilityType">
+    <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
+    <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="BemsFacilityType">
+        <PropertyRef Name="FacilityTypeId" />
+      </Principal>
+      <Dependent Role="BemsMonitoringPoint">
+        <PropertyRef Name="FacilityTypeId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_BemsMonitoringPoint_CmFacility">
+    <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="1" />
+    <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmFacility">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FacilityCode" />
+      </Principal>
+      <Dependent Role="BemsMonitoringPoint">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FacilityCode" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_BemsMonitoringPointConfig_BemsFacilityType1">
+    <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
+    <End Role="BemsMonitoringPointConfig" Type="Self.BemsMonitoringPointConfig" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="BemsFacilityType">
+        <PropertyRef Name="FacilityTypeId" />
+      </Principal>
+      <Dependent Role="BemsMonitoringPointConfig">
+        <PropertyRef Name="FacilityTypeId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_BemsMonitoringPointConfig_BemsMonitoringPoint">
+    <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="1" />
+    <End Role="BemsMonitoringPointConfig" Type="Self.BemsMonitoringPointConfig" Multiplicity="0..1" />
+    <ReferentialConstraint>
+      <Principal Role="BemsMonitoringPoint">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FacilityCode" />
+        <PropertyRef Name="PropertyId" />
+      </Principal>
+      <Dependent Role="BemsMonitoringPointConfig">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FacilityCode" />
+        <PropertyRef Name="PropertyId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_BemsPeakFacility_CmFacility">
+    <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="1" />
+    <End Role="BemsPeakFacility" Type="Self.BemsPeakFacility" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmFacility">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FacilityCode" />
+      </Principal>
+      <Dependent Role="BemsPeakFacility">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FacilityCode" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_BemsPeakHIstory_CmSite">
+    <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
+    <End Role="BemsPeakHistory" Type="Self.BemsPeakHistory" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmSite">
+        <PropertyRef Name="SiteId" />
+      </Principal>
+      <Dependent Role="BemsPeakHistory">
+        <PropertyRef Name="SiteId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_BemsPeakInfo_CmSite">
+    <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
+    <End Role="BemsPeakInfo" Type="Self.BemsPeakInfo" Multiplicity="0..1" />
+    <ReferentialConstraint>
+      <Principal Role="CmSite">
+        <PropertyRef Name="SiteId" />
+      </Principal>
+      <Dependent Role="BemsPeakInfo">
+        <PropertyRef Name="SiteId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_BemsPeopleIncrease_CmSite">
+    <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
+    <End Role="BemsPeopleIncrease" Type="Self.BemsPeopleIncrease" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmSite">
+        <PropertyRef Name="SiteId" />
+      </Principal>
+      <Dependent Role="BemsPeopleIncrease">
+        <PropertyRef Name="SiteId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_BemsPriceCode_BemsFuelType">
+    <End Role="BemsFuelType" Type="Self.BemsFuelType" Multiplicity="1" />
+    <End Role="BemsPriceCode" Type="Self.BemsPriceCode" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="BemsFuelType">
+        <PropertyRef Name="FuelTypeId" />
+      </Principal>
+      <Dependent Role="BemsPriceCode">
+        <PropertyRef Name="FuelTypeId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_BemsPriceFormula_BemsFormula">
+    <End Role="BemsFormula" Type="Self.BemsFormula" Multiplicity="1" />
+    <End Role="BemsPriceFormula" Type="Self.BemsPriceFormula" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="BemsFormula">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FacilityTypeId" />
+        <PropertyRef Name="FacilityCode" />
+        <PropertyRef Name="FormulaId" />
+      </Principal>
+      <Dependent Role="BemsPriceFormula">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FacilityTypeId" />
+        <PropertyRef Name="FacilityCode" />
+        <PropertyRef Name="FormulaId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_BemsPriceFormula_BemsPriceType">
+    <End Role="BemsPriceType" Type="Self.BemsPriceType" Multiplicity="1" />
+    <End Role="BemsPriceFormula" Type="Self.BemsPriceFormula" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="BemsPriceType">
+        <PropertyRef Name="PriceTypeId" />
+      </Principal>
+      <Dependent Role="BemsPriceFormula">
+        <PropertyRef Name="PriceTypeId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_BemsPriceMeta_BemsPriceType">
+    <End Role="BemsPriceType" Type="Self.BemsPriceType" Multiplicity="1" />
+    <End Role="BemsPriceMeta" Type="Self.BemsPriceMeta" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="BemsPriceType">
+        <PropertyRef Name="PriceTypeId" />
+      </Principal>
+      <Dependent Role="BemsPriceMeta">
+        <PropertyRef Name="PriceTypeId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_BemsPriceType_BemsFuelType1">
+    <End Role="BemsFuelType" Type="Self.BemsFuelType" Multiplicity="1" />
+    <End Role="BemsPriceType" Type="Self.BemsPriceType" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="BemsFuelType">
+        <PropertyRef Name="FuelTypeId" />
+      </Principal>
+      <Dependent Role="BemsPriceType">
+        <PropertyRef Name="FuelTypeId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_BemsRentalRate_CmSite">
+    <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
+    <End Role="BemsRentalRate" Type="Self.BemsRentalRate" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmSite">
+        <PropertyRef Name="SiteId" />
+      </Principal>
+      <Dependent Role="BemsRentalRate">
+        <PropertyRef Name="SiteId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_BemsSitePrice_BemsFuelType">
+    <End Role="BemsFuelType" Type="Self.BemsFuelType" Multiplicity="1" />
+    <End Role="BemsSitePrice" Type="Self.BemsSitePrice" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="BemsFuelType">
+        <PropertyRef Name="FuelTypeId" />
+      </Principal>
+      <Dependent Role="BemsSitePrice">
+        <PropertyRef Name="FuelTypeId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_BemsSitePrice_BemsPriceCode">
+    <End Role="BemsPriceCode" Type="Self.BemsPriceCode" Multiplicity="1" />
+    <End Role="BemsSitePrice" Type="Self.BemsSitePrice" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="BemsPriceCode">
+        <PropertyRef Name="PriceCode" />
+      </Principal>
+      <Dependent Role="BemsSitePrice">
+        <PropertyRef Name="PriceCode" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_BemsSitePrice_BemsPriceType">
+    <End Role="BemsPriceType" Type="Self.BemsPriceType" Multiplicity="1" />
+    <End Role="BemsSitePrice" Type="Self.BemsSitePrice" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="BemsPriceType">
+        <PropertyRef Name="PriceTypeId" />
+      </Principal>
+      <Dependent Role="BemsSitePrice">
+        <PropertyRef Name="PriceTypeId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_BemsSitePrice_CmSite1">
+    <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
+    <End Role="BemsSitePrice" Type="Self.BemsSitePrice" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmSite">
+        <PropertyRef Name="SiteId" />
+      </Principal>
+      <Dependent Role="BemsSitePrice">
+        <PropertyRef Name="SiteID" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_BemsSitePriceHistory_BemsFuelType">
+    <End Role="BemsFuelType" Type="Self.BemsFuelType" Multiplicity="1" />
+    <End Role="BemsSitePriceHistory" Type="Self.BemsSitePriceHistory" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="BemsFuelType">
+        <PropertyRef Name="FuelTypeId" />
+      </Principal>
+      <Dependent Role="BemsSitePriceHistory">
+        <PropertyRef Name="FuelTypeId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_BemsSitePriceHistory_BemsPriceCode">
+    <End Role="BemsPriceCode" Type="Self.BemsPriceCode" Multiplicity="1" />
+    <End Role="BemsSitePriceHistory" Type="Self.BemsSitePriceHistory" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="BemsPriceCode">
+        <PropertyRef Name="PriceCode" />
+      </Principal>
+      <Dependent Role="BemsSitePriceHistory">
+        <PropertyRef Name="PriceCode" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_BemsSitePriceHistory_BemsPriceType">
+    <End Role="BemsPriceType" Type="Self.BemsPriceType" Multiplicity="1" />
+    <End Role="BemsSitePriceHistory" Type="Self.BemsSitePriceHistory" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="BemsPriceType">
+        <PropertyRef Name="PriceTypeId" />
+      </Principal>
+      <Dependent Role="BemsSitePriceHistory">
+        <PropertyRef Name="PriceTypeId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_BemsSitePriceHistory_CmSite">
+    <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
+    <End Role="BemsSitePriceHistory" Type="Self.BemsSitePriceHistory" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmSite">
+        <PropertyRef Name="SiteId" />
+      </Principal>
+      <Dependent Role="BemsSitePriceHistory">
+        <PropertyRef Name="SiteId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_CmAnnouncement_CmBusinessField">
+    <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
+    <End Role="CmAnnouncement" Type="Self.CmAnnouncement" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmBusinessField">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="BusinessFieldId" />
+      </Principal>
+      <Dependent Role="CmAnnouncement">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="BusinessFieldId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_CmAnnouncement_CmFile">
+    <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
+    <End Role="CmAnnouncement" Type="Self.CmAnnouncement" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmFile">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FileId" />
+      </Principal>
+      <Dependent Role="CmAnnouncement">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FileId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_CmAnnouncement_CmUser">
+    <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
+    <End Role="CmAnnouncement" Type="Self.CmAnnouncement" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmUser">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="UserId" />
+      </Principal>
+      <Dependent Role="CmAnnouncement">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="RegisterUserId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_CmFacilityTempSet_CmFacility">
+    <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="1" />
+    <End Role="CmFacilityTempSet" Type="Self.CmFacilityTempSet" Multiplicity="0..1" />
+    <ReferentialConstraint>
+      <Principal Role="CmFacility">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FacilityCode" />
+      </Principal>
+      <Dependent Role="CmFacilityTempSet">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FacilityCode" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_CmFacilityTempSet_CmSite">
+    <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
+    <End Role="CmFacilityTempSet" Type="Self.CmFacilityTempSet" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmSite">
+        <PropertyRef Name="SiteId" />
+      </Principal>
+      <Dependent Role="CmFacilityTempSet">
+        <PropertyRef Name="SiteId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_CmMenu_CmSite">
+    <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
+    <End Role="CmMenu" Type="Self.CmMenu" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmSite">
+        <PropertyRef Name="SiteId" />
+      </Principal>
+      <Dependent Role="CmMenu">
+        <PropertyRef Name="SiteId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_CmPartnerType_CmPartner">
+    <End Role="CmPartnerType" Type="Self.CmPartnerType" Multiplicity="1" />
+    <End Role="CmPartner" Type="Self.CmPartner" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmPartnerType">
+        <PropertyRef Name="PartnerTypeId" />
+      </Principal>
+      <Dependent Role="CmPartner">
+        <PropertyRef Name="PartnerTypeId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_CmPatrolCourse_CmSite">
+    <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
+    <End Role="CmPatrolCourse" Type="Self.CmPatrolCourse" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmSite">
+        <PropertyRef Name="SiteId" />
+      </Principal>
+      <Dependent Role="CmPatrolCourse">
+        <PropertyRef Name="SiteId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_CmPatrolCoursePos_CmPatrolCourse">
+    <End Role="CmPatrolCourse" Type="Self.CmPatrolCourse" Multiplicity="1" />
+    <End Role="CmPatrolCoursePos" Type="Self.CmPatrolCoursePos" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmPatrolCourse">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="PatrolCourseId" />
+      </Principal>
+      <Dependent Role="CmPatrolCoursePos">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="PatrolCourseId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_CmPatrolCoursePos_CmSite">
+    <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
+    <End Role="CmPatrolCoursePos" Type="Self.CmPatrolCoursePos" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmSite">
+        <PropertyRef Name="SiteId" />
+      </Principal>
+      <Dependent Role="CmPatrolCoursePos">
+        <PropertyRef Name="SiteId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_CmPatrolGroup_CmSite">
+    <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
+    <End Role="CmPatrolGroup" Type="Self.CmPatrolGroup" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmSite">
+        <PropertyRef Name="SiteId" />
+      </Principal>
+      <Dependent Role="CmPatrolGroup">
+        <PropertyRef Name="SiteId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_CmPatrolGroupUser_CmPatrolGroup">
+    <End Role="CmPatrolGroup" Type="Self.CmPatrolGroup" Multiplicity="1" />
+    <End Role="CmPatrolGroupUser" Type="Self.CmPatrolGroupUser" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmPatrolGroup">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="PatrolGroupId" />
+      </Principal>
+      <Dependent Role="CmPatrolGroupUser">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="PatrolGroupId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_CmPatrolGroupUser_CmUser">
+    <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
+    <End Role="CmPatrolGroupUser" Type="Self.CmPatrolGroupUser" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmUser">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="UserId" />
+      </Principal>
+      <Dependent Role="CmPatrolGroupUser">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="UserId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_CmPatrolHistory_CmPatrolSchedule">
+    <End Role="CmPatrolSchedule" Type="Self.CmPatrolSchedule" Multiplicity="1" />
+    <End Role="CmPatrolHistory" Type="Self.CmPatrolHistory" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmPatrolSchedule">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="ScheduleId" />
+      </Principal>
+      <Dependent Role="CmPatrolHistory">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="ScheduleId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_CmPatrolHistory_CmPatrolType">
+    <End Role="CmPatrolType" Type="Self.CmPatrolType" Multiplicity="1" />
+    <End Role="CmPatrolHistory" Type="Self.CmPatrolHistory" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmPatrolType">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="PatrolTypeId" />
+      </Principal>
+      <Dependent Role="CmPatrolHistory">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="resultTypeId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_CmPatrolHistory_CmSite">
+    <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
+    <End Role="CmPatrolHistory" Type="Self.CmPatrolHistory" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmSite">
+        <PropertyRef Name="SiteId" />
+      </Principal>
+      <Dependent Role="CmPatrolHistory">
+        <PropertyRef Name="SiteId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_CmPatrolHistoryPos_CmPatrolPos">
+    <End Role="CmPatrolPos" Type="Self.CmPatrolPos" Multiplicity="1" />
+    <End Role="CmPatrolHistoryPos" Type="Self.CmPatrolHistoryPos" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmPatrolPos">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="PosId" />
+      </Principal>
+      <Dependent Role="CmPatrolHistoryPos">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="PosId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_CmPatrolHistoryPos_CmPatrolType">
+    <End Role="CmPatrolType" Type="Self.CmPatrolType" Multiplicity="1" />
+    <End Role="CmPatrolHistoryPos" Type="Self.CmPatrolHistoryPos" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmPatrolType">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="PatrolTypeId" />
+      </Principal>
+      <Dependent Role="CmPatrolHistoryPos">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="resultType" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_CmPatrolHistoryPos_CmSite">
+    <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
+    <End Role="CmPatrolHistoryPos" Type="Self.CmPatrolHistoryPos" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmSite">
+        <PropertyRef Name="SiteId" />
+      </Principal>
+      <Dependent Role="CmPatrolHistoryPos">
+        <PropertyRef Name="SiteId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_CmPatrolPlan_CmPatrolCourse">
+    <End Role="CmPatrolCourse" Type="Self.CmPatrolCourse" Multiplicity="1" />
+    <End Role="CmPatrolPlan" Type="Self.CmPatrolPlan" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmPatrolCourse">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="PatrolCourseId" />
+      </Principal>
+      <Dependent Role="CmPatrolPlan">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="CourseId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_CmPatrolPlan_CmPatrolGroup">
+    <End Role="CmPatrolGroup" Type="Self.CmPatrolGroup" Multiplicity="1" />
+    <End Role="CmPatrolPlan" Type="Self.CmPatrolPlan" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmPatrolGroup">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="PatrolGroupId" />
+      </Principal>
+      <Dependent Role="CmPatrolPlan">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="GroupId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_CmPatrolPlan_CmSite">
+    <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
+    <End Role="CmPatrolPlan" Type="Self.CmPatrolPlan" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmSite">
+        <PropertyRef Name="SiteId" />
+      </Principal>
+      <Dependent Role="CmPatrolPlan">
+        <PropertyRef Name="SiteId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_CmPatrolPos_CmBuilding">
+    <End Role="CmBuilding" Type="Self.CmBuilding" Multiplicity="1" />
+    <End Role="CmPatrolPos" Type="Self.CmPatrolPos" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmBuilding">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="BuildingId" />
+      </Principal>
+      <Dependent Role="CmPatrolPos">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="BuildingId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_CmPatrolPos_CmFloor">
+    <End Role="CmFloor" Type="Self.CmFloor" Multiplicity="1" />
+    <End Role="CmPatrolPos" Type="Self.CmPatrolPos" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmFloor">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="BuildingId" />
+        <PropertyRef Name="FloorId" />
+      </Principal>
+      <Dependent Role="CmPatrolPos">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="BuildingId" />
+        <PropertyRef Name="FloorId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_CmPatrolPos_CmSite">
+    <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
+    <End Role="CmPatrolPos" Type="Self.CmPatrolPos" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmSite">
+        <PropertyRef Name="SiteId" />
+      </Principal>
+      <Dependent Role="CmPatrolPos">
+        <PropertyRef Name="SiteId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_CmPatrolSchedule_CmPatrolPlan">
+    <End Role="CmPatrolPlan" Type="Self.CmPatrolPlan" Multiplicity="1" />
+    <End Role="CmPatrolSchedule" Type="Self.CmPatrolSchedule" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmPatrolPlan">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="PatrolPlanId" />
+      </Principal>
+      <Dependent Role="CmPatrolSchedule">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="PlanId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_CmPatrolSchedule_CmSite">
+    <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
+    <End Role="CmPatrolSchedule" Type="Self.CmPatrolSchedule" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmSite">
+        <PropertyRef Name="SiteId" />
+      </Principal>
+      <Dependent Role="CmPatrolSchedule">
+        <PropertyRef Name="SiteId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_CmPatrolType_CmSite">
+    <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
+    <End Role="CmPatrolType" Type="Self.CmPatrolType" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmSite">
+        <PropertyRef Name="SiteId" />
+      </Principal>
+      <Dependent Role="CmPatrolType">
+        <PropertyRef Name="SiteId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_CmUser_CmBusinessField">
+    <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="0..1" />
+    <End Role="CmUser" Type="Self.CmUser" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmBusinessField">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="BusinessFieldId" />
+      </Principal>
+      <Dependent Role="CmUser">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="BusinessFieldId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_CmUser_CmCompany">
+    <End Role="CmCompany" Type="Self.CmCompany" Multiplicity="0..1" />
+    <End Role="CmUser" Type="Self.CmUser" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmCompany">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="CompanyId" />
+      </Principal>
+      <Dependent Role="CmUser">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="CompanyId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_CmUser_CmDepartment">
+    <End Role="CmDepartment" Type="Self.CmDepartment" Multiplicity="0..1" />
+    <End Role="CmUser" Type="Self.CmUser" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmDepartment">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="CompanyId" />
+        <PropertyRef Name="DepartmentId" />
+      </Principal>
+      <Dependent Role="CmUser">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="CompanyId" />
+        <PropertyRef Name="DepartmentId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_CmUser_CmPosition">
+    <End Role="CmPosition" Type="Self.CmPosition" Multiplicity="0..1" />
+    <End Role="CmUser" Type="Self.CmUser" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmPosition">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="PositionId" />
+      </Principal>
+      <Dependent Role="CmUser">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="PositionId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_CmUser_CmUserGroup">
+    <End Role="CmUserGroup" Type="Self.CmUserGroup" Multiplicity="0..1" />
+    <End Role="CmUser" Type="Self.CmUser" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmUserGroup">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="UserGroupId" />
+      </Principal>
+      <Dependent Role="CmUser">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="UserGroupId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_CmUserLoginHistory_CmUser">
+    <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
+    <End Role="CmUserLoginHistory" Type="Self.CmUserLoginHistory" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmUser">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="UserId" />
+      </Principal>
+      <Dependent Role="CmUserLoginHistory">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="UserId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_CmZoneTempHumiSet_CmBuilding">
+    <End Role="CmBuilding" Type="Self.CmBuilding" Multiplicity="1" />
+    <End Role="CmZoneTempHumiSet" Type="Self.CmZoneTempHumiSet" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmBuilding">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="BuildingId" />
+      </Principal>
+      <Dependent Role="CmZoneTempHumiSet">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="BuildingId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_CmZoneTempHumiSet_CmFloor">
+    <End Role="CmFloor" Type="Self.CmFloor" Multiplicity="1" />
+    <End Role="CmZoneTempHumiSet" Type="Self.CmZoneTempHumiSet" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmFloor">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="BuildingId" />
+        <PropertyRef Name="FloorId" />
+      </Principal>
+      <Dependent Role="CmZoneTempHumiSet">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="BuildingId" />
+        <PropertyRef Name="FloorId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_CmZoneTempHumiSet_CmSite">
+    <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
+    <End Role="CmZoneTempHumiSet" Type="Self.CmZoneTempHumiSet" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmSite">
+        <PropertyRef Name="SiteId" />
+      </Principal>
+      <Dependent Role="CmZoneTempHumiSet">
+        <PropertyRef Name="SiteId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_CmZoneTempHumiSet_CmZone">
+    <End Role="CmZone" Type="Self.CmZone" Multiplicity="1" />
+    <End Role="CmZoneTempHumiSet" Type="Self.CmZoneTempHumiSet" Multiplicity="0..1" />
+    <ReferentialConstraint>
+      <Principal Role="CmZone">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="BuildingId" />
+        <PropertyRef Name="FloorId" />
+        <PropertyRef Name="ZoneId" />
+      </Principal>
+      <Dependent Role="CmZoneTempHumiSet">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="BuildingId" />
+        <PropertyRef Name="FloorId" />
+        <PropertyRef Name="ZoneId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsAccident_CmCompany">
+    <End Role="CmCompany" Type="Self.CmCompany" Multiplicity="0..1" />
+    <End Role="FmsAccident" Type="Self.FmsAccident" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmCompany">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="CompanyId" />
+      </Principal>
+      <Dependent Role="FmsAccident">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="CompanyId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsAccident_CmDepartment">
+    <End Role="CmDepartment" Type="Self.CmDepartment" Multiplicity="0..1" />
+    <End Role="FmsAccident" Type="Self.FmsAccident" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmDepartment">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="CompanyId" />
+        <PropertyRef Name="DepartmentId" />
+      </Principal>
+      <Dependent Role="FmsAccident">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="CompanyId" />
+        <PropertyRef Name="DepartmentId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsAccident_CmFile1">
+    <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
+    <End Role="FmsAccident" Type="Self.FmsAccident" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmFile">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FileId" />
+      </Principal>
+      <Dependent Role="FmsAccident">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FileId1" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsAccident_CmFile2">
+    <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
+    <End Role="FmsAccident" Type="Self.FmsAccident" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmFile">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FileId" />
+      </Principal>
+      <Dependent Role="FmsAccident">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FileId2" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsAccident_CmFile3">
+    <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
+    <End Role="FmsAccident" Type="Self.FmsAccident" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmFile">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FileId" />
+      </Principal>
+      <Dependent Role="FmsAccident">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FileId3" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsAccident_FmsAccidentCodeType">
+    <End Role="FmsAccidentCodeType" Type="Self.FmsAccidentCodeType" Multiplicity="1" />
+    <End Role="FmsAccident" Type="Self.FmsAccident" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="FmsAccidentCodeType">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="AccidentTypeId" />
+      </Principal>
+      <Dependent Role="FmsAccident">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="AccidentTypeId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsBudgetDetail_FmsBudget">
+    <End Role="FmsBudget" Type="Self.FmsBudget" Multiplicity="1">
+      <OnDelete Action="Cascade" />
+    </End>
+    <End Role="FmsBudgetDetail" Type="Self.FmsBudgetDetail" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="FmsBudget">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="Year" />
+      </Principal>
+      <Dependent Role="FmsBudgetDetail">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="Year" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsBudgetDetail_FmsBudgetCodeClass">
+    <End Role="FmsBudgetCodeClass" Type="Self.FmsBudgetCodeClass" Multiplicity="1" />
+    <End Role="FmsBudgetDetail" Type="Self.FmsBudgetDetail" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="FmsBudgetCodeClass">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="BudgetClassId" />
+      </Principal>
+      <Dependent Role="FmsBudgetDetail">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="BudgetClassId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsBudgetDetailExecution_FmsBudgetDetail">
+    <End Role="FmsBudgetDetail" Type="Self.FmsBudgetDetail" Multiplicity="1" />
+    <End Role="FmsBudgetDetailExecution" Type="Self.FmsBudgetDetailExecution" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="FmsBudgetDetail">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="Year" />
+        <PropertyRef Name="BudgetClassId" />
+        <PropertyRef Name="ParentBudgetClassId" />
+      </Principal>
+      <Dependent Role="FmsBudgetDetailExecution">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="Year" />
+        <PropertyRef Name="BudgetClassId" />
+        <PropertyRef Name="ParentBudgetClassId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsConstruction_CmFile1">
+    <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
+    <End Role="FmsConstruction" Type="Self.FmsConstruction" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmFile">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FileId" />
+      </Principal>
+      <Dependent Role="FmsConstruction">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FileId1" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsConstruction_CmFile2">
+    <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
+    <End Role="FmsConstruction" Type="Self.FmsConstruction" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmFile">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FileId" />
+      </Principal>
+      <Dependent Role="FmsConstruction">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FileId2" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsConstruction_CmFile3">
+    <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
+    <End Role="FmsConstruction" Type="Self.FmsConstruction" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmFile">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FileId" />
+      </Principal>
+      <Dependent Role="FmsConstruction">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FileId3" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsConstruction_CmPartner">
+    <End Role="CmPartner" Type="Self.CmPartner" Multiplicity="1" />
+    <End Role="FmsConstruction" Type="Self.FmsConstruction" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmPartner">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="PartnerId" />
+      </Principal>
+      <Dependent Role="FmsConstruction">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="PartnerId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsConstruction_FmsConstructionCodeProgress">
+    <End Role="FmsConstructionCodeProgress" Type="Self.FmsConstructionCodeProgress" Multiplicity="1" />
+    <End Role="FmsConstruction" Type="Self.FmsConstruction" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="FmsConstructionCodeProgress">
+        <PropertyRef Name="ProgressId" />
+      </Principal>
+      <Dependent Role="FmsConstruction">
+        <PropertyRef Name="ProgressId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsConstruction_FmsConstructionCodeType">
+    <End Role="FmsConstructionCodeType" Type="Self.FmsConstructionCodeType" Multiplicity="1" />
+    <End Role="FmsConstruction" Type="Self.FmsConstruction" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="FmsConstructionCodeType">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="ConstructionTypeId" />
+      </Principal>
+      <Dependent Role="FmsConstruction">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="ConstructionTypeId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsConstructionEstimation_CmUser">
+    <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
+    <End Role="FmsConstructionEstimation" Type="Self.FmsConstructionEstimation" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmUser">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="UserId" />
+      </Principal>
+      <Dependent Role="FmsConstructionEstimation">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="EstimateUserId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsConstructionEstimation_FmsConstruction">
+    <End Role="FmsConstruction" Type="Self.FmsConstruction" Multiplicity="1" />
+    <End Role="FmsConstructionEstimation" Type="Self.FmsConstructionEstimation" Multiplicity="0..1" />
+    <ReferentialConstraint>
+      <Principal Role="FmsConstruction">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="ConstructionId" />
+      </Principal>
+      <Dependent Role="FmsConstructionEstimation">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="ConstructionId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsContract_CmPartner">
+    <End Role="CmPartner" Type="Self.CmPartner" Multiplicity="0..1" />
+    <End Role="FmsContract" Type="Self.FmsContract" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmPartner">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="PartnerId" />
+      </Principal>
+      <Dependent Role="FmsContract">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="PartnerId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsContract_CmPartnerType">
+    <End Role="CmPartnerType" Type="Self.CmPartnerType" Multiplicity="0..1" />
+    <End Role="FmsContract" Type="Self.FmsContract" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmPartnerType">
+        <PropertyRef Name="PartnerTypeId" />
+      </Principal>
+      <Dependent Role="FmsContract">
+        <PropertyRef Name="PartnerTypeId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsContract_FmsContractClass">
+    <End Role="FmsContractClass" Type="Self.FmsContractClass" Multiplicity="0..1" />
+    <End Role="FmsContract" Type="Self.FmsContract" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="FmsContractClass">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="ContractClassId" />
+      </Principal>
+      <Dependent Role="FmsContract">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="ContractClassId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsContract_FmsContractMethod">
+    <End Role="FmsContractMethod" Type="Self.FmsContractMethod" Multiplicity="0..1" />
+    <End Role="FmsContract" Type="Self.FmsContract" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="FmsContractMethod">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="ContractMethodId" />
+      </Principal>
+      <Dependent Role="FmsContract">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="ContractMethodId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsContract_FmsContractType">
+    <End Role="FmsContractType" Type="Self.FmsContractType" Multiplicity="0..1" />
+    <End Role="FmsContract" Type="Self.FmsContract" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="FmsContractType">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="ContractTypeId" />
+      </Principal>
+      <Dependent Role="FmsContract">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="ContractTypeId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsContract_FmsPaymentType">
+    <End Role="FmsPaymentType" Type="Self.FmsPaymentType" Multiplicity="0..1" />
+    <End Role="FmsContract" Type="Self.FmsContract" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="FmsPaymentType">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="PaymentTypeId" />
+      </Principal>
+      <Dependent Role="FmsContract">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="PartnerTypeId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsDailyCheckReport_CmUser">
+    <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
+    <End Role="FmsDailyCheckReport" Type="Self.FmsDailyCheckReport" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmUser">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="UserId" />
+      </Principal>
+      <Dependent Role="FmsDailyCheckReport">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="RegisterUserId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsDailyReport_CmBusinessField">
+    <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
+    <End Role="FmsDailyReport" Type="Self.FmsDailyReport" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmBusinessField">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="BusinessFieldId" />
+      </Principal>
+      <Dependent Role="FmsDailyReport">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="BusinessFieldId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsDailyReport_CmUser">
+    <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
+    <End Role="FmsDailyReport" Type="Self.FmsDailyReport" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmUser">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="UserId" />
+      </Principal>
+      <Dependent Role="FmsDailyReport">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="RegisterUserId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsEquipment_CmUser">
+    <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
+    <End Role="FmsEquipment" Type="Self.FmsEquipment" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmUser">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="UserId" />
+      </Principal>
+      <Dependent Role="FmsEquipment">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="RegisterUserId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsEquipment_FmsEquipmentCodeType">
+    <End Role="FmsEquipmentCodeType" Type="Self.FmsEquipmentCodeType" Multiplicity="1" />
+    <End Role="FmsEquipment" Type="Self.FmsEquipment" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="FmsEquipmentCodeType">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="EquipmentTypeId" />
+      </Principal>
+      <Dependent Role="FmsEquipment">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="EquipmentTypeId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsEquipment_FmsMaterialWarehouse">
+    <End Role="FmsMaterialWarehouse" Type="Self.FmsMaterialWarehouse" Multiplicity="0..1" />
+    <End Role="FmsEquipment" Type="Self.FmsEquipment" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="FmsMaterialWarehouse">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="WarehouseId" />
+      </Principal>
+      <Dependent Role="FmsEquipment">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="WarehouseId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsEquipmentHistory_FmsEquipment">
+    <End Role="FmsEquipment" Type="Self.FmsEquipment" Multiplicity="1" />
+    <End Role="FmsEquipmentHistory" Type="Self.FmsEquipmentHistory" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="FmsEquipment">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="EquipmentId" />
+      </Principal>
+      <Dependent Role="FmsEquipmentHistory">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="EquipmentId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsEquipmentHistory_FmsEquipmentCodeStateType">
+    <End Role="FmsEquipmentCodeStateType" Type="Self.FmsEquipmentCodeStateType" Multiplicity="0..1" />
+    <End Role="FmsEquipmentHistory" Type="Self.FmsEquipmentHistory" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="FmsEquipmentCodeStateType">
+        <PropertyRef Name="EquipmentStateTypeId" />
+      </Principal>
+      <Dependent Role="FmsEquipmentHistory">
+        <PropertyRef Name="EquipmentStateTypeId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsEquipmentHistory_FmsEquipmentRentInfo">
+    <End Role="FmsEquipmentRentInfo" Type="Self.FmsEquipmentRentInfo" Multiplicity="0..1">
+      <OnDelete Action="Cascade" />
+    </End>
+    <End Role="FmsEquipmentHistory" Type="Self.FmsEquipmentHistory" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="FmsEquipmentRentInfo">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="EquipmentRentId" />
+      </Principal>
+      <Dependent Role="FmsEquipmentHistory">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="EquipmentRentId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsEquipmentRentInfo_CmUser">
+    <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
+    <End Role="FmsEquipmentRentInfo" Type="Self.FmsEquipmentRentInfo" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmUser">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="UserId" />
+      </Principal>
+      <Dependent Role="FmsEquipmentRentInfo">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="RegisterUserId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsEquipmentRentInfo_CmUser1">
+    <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
+    <End Role="FmsEquipmentRentInfo" Type="Self.FmsEquipmentRentInfo" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmUser">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="UserId" />
+      </Principal>
+      <Dependent Role="FmsEquipmentRentInfo">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="RentUserId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsEquipmentRentInfo_FmsEquipmentCodeStateType">
+    <End Role="FmsEquipmentCodeStateType" Type="Self.FmsEquipmentCodeStateType" Multiplicity="0..1" />
+    <End Role="FmsEquipmentRentInfo" Type="Self.FmsEquipmentRentInfo" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="FmsEquipmentCodeStateType">
+        <PropertyRef Name="EquipmentStateTypeId" />
+      </Principal>
+      <Dependent Role="FmsEquipmentRentInfo">
+        <PropertyRef Name="EquipmentStateTypeId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsFacilityOperationReport_CmUser">
+    <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
+    <End Role="FmsFacilityOperationReport" Type="Self.FmsFacilityOperationReport" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmUser">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="UserId" />
+      </Principal>
+      <Dependent Role="FmsFacilityOperationReport">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="RegisterUserId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsManual_FmsManualType">
+    <End Role="FmsManualType" Type="Self.FmsManualType" Multiplicity="1" />
+    <End Role="FmsManual" Type="Self.FmsManual" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="FmsManualType">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="ManualTypeId" />
+      </Principal>
+      <Dependent Role="FmsManual">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="ManualTypeId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsManualHistory_CmFile">
+    <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
+    <End Role="FmsManualHistory" Type="Self.FmsManualHistory" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmFile">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FileId" />
+      </Principal>
+      <Dependent Role="FmsManualHistory">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FileId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsManualHistory_CmUser">
+    <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
+    <End Role="FmsManualHistory" Type="Self.FmsManualHistory" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmUser">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="UserId" />
+      </Principal>
+      <Dependent Role="FmsManualHistory">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="UpdatedUserId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsManualHistory_FmsManual">
+    <End Role="FmsManual" Type="Self.FmsManual" Multiplicity="1" />
+    <End Role="FmsManualHistory" Type="Self.FmsManualHistory" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="FmsManual">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="ManualId" />
+      </Principal>
+      <Dependent Role="FmsManualHistory">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="ManualId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsMaterial_CmBusinessField">
+    <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
+    <End Role="FmsMaterial" Type="Self.FmsMaterial" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmBusinessField">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="BusinessFieldId" />
+      </Principal>
+      <Dependent Role="FmsMaterial">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="BusinessFieldId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsMaterial_CmFile">
+    <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
+    <End Role="FmsMaterial" Type="Self.FmsMaterial" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmFile">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FileId" />
+      </Principal>
+      <Dependent Role="FmsMaterial">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="ImageFileId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsMaterial_CmSite">
+    <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
+    <End Role="FmsMaterial" Type="Self.FmsMaterial" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmSite">
+        <PropertyRef Name="SiteId" />
+      </Principal>
+      <Dependent Role="FmsMaterial">
+        <PropertyRef Name="SiteId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsMaterial_FmsMaterialCodeLocation">
+    <End Role="FmsMaterialCodeLocation" Type="Self.FmsMaterialCodeLocation" Multiplicity="0..1" />
+    <End Role="FmsMaterial" Type="Self.FmsMaterial" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="FmsMaterialCodeLocation">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="LocationId" />
+      </Principal>
+      <Dependent Role="FmsMaterial">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="LocationId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsMaterial_FmsMaterialCodeType">
+    <End Role="FmsMaterialCodeType" Type="Self.FmsMaterialCodeType" Multiplicity="0..1" />
+    <End Role="FmsMaterial" Type="Self.FmsMaterial" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="FmsMaterialCodeType">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="MaterialTypeId" />
+      </Principal>
+      <Dependent Role="FmsMaterial">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="MaterialTypeId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsMaterial_FmsMaterialTradeCompany">
+    <End Role="FmsMaterialTradeCompany" Type="Self.FmsMaterialTradeCompany" Multiplicity="0..1" />
+    <End Role="FmsMaterial" Type="Self.FmsMaterial" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="FmsMaterialTradeCompany">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="TradeCompanyId" />
+      </Principal>
+      <Dependent Role="FmsMaterial">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="TradeCompanyId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsMaterial_FmsMaterialWarehouse">
+    <End Role="FmsMaterialWarehouse" Type="Self.FmsMaterialWarehouse" Multiplicity="0..1" />
+    <End Role="FmsMaterial" Type="Self.FmsMaterial" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="FmsMaterialWarehouse">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="WarehouseId" />
+      </Principal>
+      <Dependent Role="FmsMaterial">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="WarehouseId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsMaterialPurchaseOrder_FmsMaterialPurchaseRequest">
+    <End Role="FmsMaterialPurchaseRequest" Type="Self.FmsMaterialPurchaseRequest" Multiplicity="1" />
+    <End Role="FmsMaterialPurchaseOrder" Type="Self.FmsMaterialPurchaseOrder" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="FmsMaterialPurchaseRequest">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="PurchaseRequestId" />
+      </Principal>
+      <Dependent Role="FmsMaterialPurchaseOrder">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="PurchaseRequestId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsMaterialPurchaseOrderMaterial_FmsMaterial">
+    <End Role="FmsMaterial" Type="Self.FmsMaterial" Multiplicity="1" />
+    <End Role="FmsMaterialPurchaseOrderMaterial" Type="Self.FmsMaterialPurchaseOrderMaterial" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="FmsMaterial">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="MaterialId" />
+      </Principal>
+      <Dependent Role="FmsMaterialPurchaseOrderMaterial">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="MaterialId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsMaterialPurchaseOrderMaterial_FmsMaterialPurchaseOrder">
+    <End Role="FmsMaterialPurchaseOrder" Type="Self.FmsMaterialPurchaseOrder" Multiplicity="1">
+      <OnDelete Action="Cascade" />
+    </End>
+    <End Role="FmsMaterialPurchaseOrderMaterial" Type="Self.FmsMaterialPurchaseOrderMaterial" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="FmsMaterialPurchaseOrder">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="PurchaseOrderId" />
+      </Principal>
+      <Dependent Role="FmsMaterialPurchaseOrderMaterial">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="PurchaseOrderId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsMaterialPurchaseRequest_FmsMaterialCodePurchaseType">
+    <End Role="FmsMaterialCodePurchaseType" Type="Self.FmsMaterialCodePurchaseType" Multiplicity="1" />
+    <End Role="FmsMaterialPurchaseRequest" Type="Self.FmsMaterialPurchaseRequest" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="FmsMaterialCodePurchaseType">
+        <PropertyRef Name="PurchaseTypeId" />
+      </Principal>
+      <Dependent Role="FmsMaterialPurchaseRequest">
+        <PropertyRef Name="PurchaseTypeId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsMaterialPurchaseRequestMaterial_FmsMaterial">
+    <End Role="FmsMaterial" Type="Self.FmsMaterial" Multiplicity="1" />
+    <End Role="FmsMaterialPurchaseRequestMaterial" Type="Self.FmsMaterialPurchaseRequestMaterial" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="FmsMaterial">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="MaterialId" />
+      </Principal>
+      <Dependent Role="FmsMaterialPurchaseRequestMaterial">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="MaterialId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsMaterialPurchaseRequestMaterial_FmsMaterialPurchaseRequest">
+    <End Role="FmsMaterialPurchaseRequest" Type="Self.FmsMaterialPurchaseRequest" Multiplicity="1">
+      <OnDelete Action="Cascade" />
+    </End>
+    <End Role="FmsMaterialPurchaseRequestMaterial" Type="Self.FmsMaterialPurchaseRequestMaterial" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="FmsMaterialPurchaseRequest">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="PurchaseRequestId" />
+      </Principal>
+      <Dependent Role="FmsMaterialPurchaseRequestMaterial">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="PurchaseRequestId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsMaterialRelease_CmBusinessField">
+    <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
+    <End Role="FmsMaterialRelease" Type="Self.FmsMaterialRelease" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmBusinessField">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="BusinessFieldId" />
+      </Principal>
+      <Dependent Role="FmsMaterialRelease">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="BusinessFieldId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsMaterialRelease_CmSite">
+    <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
+    <End Role="FmsMaterialRelease" Type="Self.FmsMaterialRelease" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmSite">
+        <PropertyRef Name="SiteId" />
+      </Principal>
+      <Dependent Role="FmsMaterialRelease">
+        <PropertyRef Name="SiteId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsMaterialRelease_CmUser">
+    <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
+    <End Role="FmsMaterialRelease" Type="Self.FmsMaterialRelease" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmUser">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="UserId" />
+      </Principal>
+      <Dependent Role="FmsMaterialRelease">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="ConfirmedUserId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsMaterialRelease_CmUser1">
+    <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
+    <End Role="FmsMaterialRelease" Type="Self.FmsMaterialRelease" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmUser">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="UserId" />
+      </Principal>
+      <Dependent Role="FmsMaterialRelease">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="AdjustmentUserId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsMaterialRelease_FmsMaterial">
+    <End Role="FmsMaterial" Type="Self.FmsMaterial" Multiplicity="0..1" />
+    <End Role="FmsMaterialRelease" Type="Self.FmsMaterialRelease" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="FmsMaterial">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="MaterialId" />
+      </Principal>
+      <Dependent Role="FmsMaterialRelease">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="MaterialId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsMaterialRelease_FmsMaterialCodeAdjustmentType">
+    <End Role="FmsMaterialCodeAdjustmentType" Type="Self.FmsMaterialCodeAdjustmentType" Multiplicity="1" />
+    <End Role="FmsMaterialRelease" Type="Self.FmsMaterialRelease" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="FmsMaterialCodeAdjustmentType">
+        <PropertyRef Name="AdjustmentTypeId" />
+      </Principal>
+      <Dependent Role="FmsMaterialRelease">
+        <PropertyRef Name="AdjustmentTypeId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsMaterialRelease_FmsMaterialCodeReleaseType">
+    <End Role="FmsMaterialCodeReleaseType" Type="Self.FmsMaterialCodeReleaseType" Multiplicity="1" />
+    <End Role="FmsMaterialRelease" Type="Self.FmsMaterialRelease" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="FmsMaterialCodeReleaseType">
+        <PropertyRef Name="ReleaseTypeId" />
+      </Principal>
+      <Dependent Role="FmsMaterialRelease">
+        <PropertyRef Name="ReleaseTypeId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsMaterialRelease_FmsWorkResult">
+    <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="0..1" />
+    <End Role="FmsMaterialRelease" Type="Self.FmsMaterialRelease" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="FmsWorkResult">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="WorkRequestId" />
+      </Principal>
+      <Dependent Role="FmsMaterialRelease">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="WorkRequestId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsMaterialStored_FmsMaterial">
+    <End Role="FmsMaterial" Type="Self.FmsMaterial" Multiplicity="1" />
+    <End Role="FmsMaterialStored" Type="Self.FmsMaterialStored" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="FmsMaterial">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="MaterialId" />
+      </Principal>
+      <Dependent Role="FmsMaterialStored">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="MaterialId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsMaterialStored_FmsMaterialPurchaseOrder">
+    <End Role="FmsMaterialPurchaseOrder" Type="Self.FmsMaterialPurchaseOrder" Multiplicity="0..1" />
+    <End Role="FmsMaterialStored" Type="Self.FmsMaterialStored" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="FmsMaterialPurchaseOrder">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="PurchaseOrderId" />
+      </Principal>
+      <Dependent Role="FmsMaterialStored">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="PurchaseOrderId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsMaterialStored_FmsMaterialWarehouse">
+    <End Role="FmsMaterialWarehouse" Type="Self.FmsMaterialWarehouse" Multiplicity="1" />
+    <End Role="FmsMaterialStored" Type="Self.FmsMaterialStored" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="FmsMaterialWarehouse">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="WarehouseId" />
+      </Principal>
+      <Dependent Role="FmsMaterialStored">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="WarehouseId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsMonthlyReport_CmUser">
+    <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
+    <End Role="FmsMonthlyReport" Type="Self.FmsMonthlyReport" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmUser">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="UserId" />
+      </Principal>
+      <Dependent Role="FmsMonthlyReport">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="RegisterUserId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsReport_CmBusinessField">
+    <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
+    <End Role="FmsReport" Type="Self.FmsReport" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmBusinessField">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="BusinessFieldId" />
+      </Principal>
+      <Dependent Role="FmsReport">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="BusinessFieldId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsReport_CmFile">
+    <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
+    <End Role="FmsReport" Type="Self.FmsReport" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmFile">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FileId" />
+      </Principal>
+      <Dependent Role="FmsReport">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FileId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsReport_CmSite">
+    <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
+    <End Role="FmsReport" Type="Self.FmsReport" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmSite">
+        <PropertyRef Name="SiteId" />
+      </Principal>
+      <Dependent Role="FmsReport">
+        <PropertyRef Name="SiteId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsReport_CmUser">
+    <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
+    <End Role="FmsReport" Type="Self.FmsReport" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmUser">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="UserId" />
+      </Principal>
+      <Dependent Role="FmsReport">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="RegisterUserId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsReport_CmUser1">
+    <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
+    <End Role="FmsReport" Type="Self.FmsReport" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmUser">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="UserId" />
+      </Principal>
+      <Dependent Role="FmsReport">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="ConfirmUserId1" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsReport_CmUser2">
+    <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
+    <End Role="FmsReport" Type="Self.FmsReport" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmUser">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="UserId" />
+      </Principal>
+      <Dependent Role="FmsReport">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="ConfirmUserId2" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsWorkOrderToFacility_CmFacility">
+    <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="1" />
+    <End Role="FmsWorkOrderToFacility" Type="Self.FmsWorkOrderToFacility" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmFacility">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FacilityCode" />
+      </Principal>
+      <Dependent Role="FmsWorkOrderToFacility">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FacilityCode" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsWorkRequest_CmPartner">
+    <End Role="CmPartner" Type="Self.CmPartner" Multiplicity="0..1" />
+    <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmPartner">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="PartnerId" />
+      </Principal>
+      <Dependent Role="FmsWorkRequest">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="InspectionAgencyId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsWorkRequestToFacility_CmFacility">
+    <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="1" />
+    <End Role="FmsWorkRequestToFacility" Type="Self.FmsWorkRequestToFacility" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmFacility">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FacilityCode" />
+      </Principal>
+      <Dependent Role="FmsWorkRequestToFacility">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FacilityCode" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsWorkResultCheckItemMaterial_FmsMaterial">
+    <End Role="FmsMaterial" Type="Self.FmsMaterial" Multiplicity="1" />
+    <End Role="FmsWorkResultCheckItemMaterial" Type="Self.FmsWorkResultCheckItemMaterial" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="FmsMaterial">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="MaterialId" />
+      </Principal>
+      <Dependent Role="FmsWorkResultCheckItemMaterial">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="MaterialId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsWorkResultCheckItemMaterial_FmsWorkResult">
+    <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="1" />
+    <End Role="FmsWorkResultCheckItemMaterial" Type="Self.FmsWorkResultCheckItemMaterial" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="FmsWorkResult">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="WorkRequestId" />
+      </Principal>
+      <Dependent Role="FmsWorkResultCheckItemMaterial">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="WorkRequestId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsWorkResultCheckItemMaterial_FmsWorkResultCheckItem">
+    <End Role="FmsWorkResultCheckItem" Type="Self.FmsWorkResultCheckItem" Multiplicity="1" />
+    <End Role="FmsWorkResultCheckItemMaterial" Type="Self.FmsWorkResultCheckItemMaterial" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="FmsWorkResultCheckItem">
+        <PropertyRef Name="CheckItemId" />
+      </Principal>
+      <Dependent Role="FmsWorkResultCheckItemMaterial">
+        <PropertyRef Name="CheckItemId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsWorkSchedule_CmPartner">
+    <End Role="CmPartner" Type="Self.CmPartner" Multiplicity="0..1" />
+    <End Role="FmsWorkSchedule" Type="Self.FmsWorkSchedule" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmPartner">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="PartnerId" />
+      </Principal>
+      <Dependent Role="FmsWorkSchedule">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="InspectionAgencyId" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_FmsWorkScheduleToFacility_CmFacility">
+    <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="1" />
+    <End Role="FmsWorkScheduleToFacility" Type="Self.FmsWorkScheduleToFacility" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CmFacility">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FacilityCode" />
+      </Principal>
+      <Dependent Role="FmsWorkScheduleToFacility">
+        <PropertyRef Name="SiteId" />
+        <PropertyRef Name="FacilityCode" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <EntityContainer Name="iBemsModelStoreContainer">
+    <EntitySet Name="BemsAlarmGroup" EntityType="Self.BemsAlarmGroup" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="BemsAlarmGroupUser" EntityType="Self.BemsAlarmGroupUser" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="BemsAlarmLog" EntityType="Self.BemsAlarmLog" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="BemsAlarmSetting" EntityType="Self.BemsAlarmSetting" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="BemsAnalysisType" EntityType="Self.BemsAnalysisType" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="BemsChartInfo" EntityType="Self.BemsChartInfo" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="BemsConfigData" EntityType="Self.BemsConfigData" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="BemsControlAHUTempConfig" EntityType="Self.BemsControlAHUTempConfig" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="BemsControlPointHistory" EntityType="Self.BemsControlPointHistory" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="BemsEnergyConfigPercentMonth" EntityType="Self.BemsEnergyConfigPercentMonth" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="BemsEnergyConfigPercentWeek" EntityType="Self.BemsEnergyConfigPercentWeek" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="BemsEnergyCost" EntityType="Self.BemsEnergyCost" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="BemsEnergyDaily" EntityType="Self.BemsEnergyDaily" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="BemsEnergyDailyRegression" EntityType="Self.BemsEnergyDailyRegression" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="BemsFacilityType" EntityType="Self.BemsFacilityType" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="BemsFactorCo2" EntityType="Self.BemsFactorCo2" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="BemsFactorToe" EntityType="Self.BemsFactorToe" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="BemsFloorPlan" EntityType="Self.BemsFloorPlan" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="BemsFloorStatus" EntityType="Self.BemsFloorStatus" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="BemsFormula" EntityType="Self.BemsFormula" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="BemsFormulaBase" EntityType="Self.BemsFormulaBase" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="BemsFormulaParameter" EntityType="Self.BemsFormulaParameter" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="BemsFormulaTable" EntityType="Self.BemsFormulaTable" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="BemsFormulaTableValue" EntityType="Self.BemsFormulaTableValue" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="BemsFuelType" EntityType="Self.BemsFuelType" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="BemsIceThermalStorageSimulation" EntityType="Self.BemsIceThermalStorageSimulation" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="BemsMonitoringPoint" EntityType="Self.BemsMonitoringPoint" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="BemsMonitoringPointBaseData" EntityType="Self.BemsMonitoringPointBaseData" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="BemsMonitoringPointConfig" EntityType="Self.BemsMonitoringPointConfig" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="BemsMonitoringPointForecastingDayAhead" EntityType="Self.BemsMonitoringPointForecastingDayAhead" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="BemsMonitoringPointForecastingHourAhead" EntityType="Self.BemsMonitoringPointForecastingHourAhead" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="BemsMonitoringPointHistory15min" EntityType="Self.BemsMonitoringPointHistory15min" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="BemsMonitoringPointHistory15minRawData" EntityType="Self.BemsMonitoringPointHistory15minRawData" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="BemsMonitoringPointHistoryDaily" EntityType="Self.BemsMonitoringPointHistoryDaily" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="BemsMonitoringPointHistoryHourly" EntityType="Self.BemsMonitoringPointHistoryHourly" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="BemsMonitoringPointToAnlaysisType" EntityType="Self.BemsMonitoringPointToAnlaysisType" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="BemsMonitoringPointWeatherForecasted" EntityType="Self.BemsMonitoringPointWeatherForecasted" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="BemsNoticePriceBase" EntityType="Self.BemsNoticePriceBase" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="BemsNoticePriceContractType" EntityType="Self.BemsNoticePriceContractType" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="BemsNoticePriceDetail" EntityType="Self.BemsNoticePriceDetail" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="BemsPeakFacility" EntityType="Self.BemsPeakFacility" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="BemsPeakHistory" EntityType="Self.BemsPeakHistory" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="BemsPeakHistoryDaily" EntityType="Self.BemsPeakHistoryDaily" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="BemsPeakInfo" EntityType="Self.BemsPeakInfo" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="BemsPeopleIncrease" EntityType="Self.BemsPeopleIncrease" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="BemsPriceCode" EntityType="Self.BemsPriceCode" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="BemsPriceFormula" EntityType="Self.BemsPriceFormula" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="BemsPriceMeta" EntityType="Self.BemsPriceMeta" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="BemsPriceType" EntityType="Self.BemsPriceType" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="BemsRentalRate" EntityType="Self.BemsRentalRate" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="BemsReportFormat" EntityType="Self.BemsReportFormat" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="BemsReportHistory" EntityType="Self.BemsReportHistory" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="BemsServiceType" EntityType="Self.BemsServiceType" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="BemsSitePrice" EntityType="Self.BemsSitePrice" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="BemsSitePriceHistory" EntityType="Self.BemsSitePriceHistory" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="CmAlarmAdmin" EntityType="Self.CmAlarmAdmin" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="CmAnnouncement" EntityType="Self.CmAnnouncement" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="CmBuilding" EntityType="Self.CmBuilding" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="CmBusinessField" EntityType="Self.CmBusinessField" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="CmCompany" EntityType="Self.CmCompany" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="CmCompanyType" EntityType="Self.CmCompanyType" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="CmDepartment" EntityType="Self.CmDepartment" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="CmFacility" EntityType="Self.CmFacility" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="CmFacilityFile" EntityType="Self.CmFacilityFile" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="CmFacilityTempSet" EntityType="Self.CmFacilityTempSet" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="CmFile" EntityType="Self.CmFile" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="CmFileCategory" EntityType="Self.CmFileCategory" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="CmFloor" EntityType="Self.CmFloor" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="CmHoliday" EntityType="Self.CmHoliday" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="CmHolidayCustom" EntityType="Self.CmHolidayCustom" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="CmHolidayWeekend" EntityType="Self.CmHolidayWeekend" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="CmMenu" EntityType="Self.CmMenu" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="CmPartner" EntityType="Self.CmPartner" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="CmPartnerType" EntityType="Self.CmPartnerType" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="CmPatrolCourse" EntityType="Self.CmPatrolCourse" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="CmPatrolCoursePos" EntityType="Self.CmPatrolCoursePos" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="CmPatrolGroup" EntityType="Self.CmPatrolGroup" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="CmPatrolGroupUser" EntityType="Self.CmPatrolGroupUser" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="CmPatrolHistory" EntityType="Self.CmPatrolHistory" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="CmPatrolHistoryPos" EntityType="Self.CmPatrolHistoryPos" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="CmPatrolPlan" EntityType="Self.CmPatrolPlan" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="CmPatrolPos" EntityType="Self.CmPatrolPos" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="CmPatrolSchedule" EntityType="Self.CmPatrolSchedule" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="CmPatrolType" EntityType="Self.CmPatrolType" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="CmPosition" EntityType="Self.CmPosition" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="CmServiceEnergyCalcDay" EntityType="Self.CmServiceEnergyCalcDay" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="CmServiceEnergyCalcMonth" EntityType="Self.CmServiceEnergyCalcMonth" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="CmSite" EntityType="Self.CmSite" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="CmUser" EntityType="Self.CmUser" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="CmUserGroup" EntityType="Self.CmUserGroup" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="CmUserGroupPermission" EntityType="Self.CmUserGroupPermission" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="CmUserLoginHistory" EntityType="Self.CmUserLoginHistory" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="CmUserToLicense" EntityType="Self.CmUserToLicense" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="CmZone" EntityType="Self.CmZone" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="CmZoneTempHumiSet" EntityType="Self.CmZoneTempHumiSet" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="FmsAccident" EntityType="Self.FmsAccident" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="FmsAccidentCodeType" EntityType="Self.FmsAccidentCodeType" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="FmsBudget" EntityType="Self.FmsBudget" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="FmsBudgetCodeClass" EntityType="Self.FmsBudgetCodeClass" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="FmsBudgetDetail" EntityType="Self.FmsBudgetDetail" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="FmsBudgetDetailExecution" EntityType="Self.FmsBudgetDetailExecution" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="FmsCompanyEstimationCodeClass" EntityType="Self.FmsCompanyEstimationCodeClass" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="FmsConstruction" EntityType="Self.FmsConstruction" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="FmsConstructionCodeProgress" EntityType="Self.FmsConstructionCodeProgress" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="FmsConstructionCodeType" EntityType="Self.FmsConstructionCodeType" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="FmsConstructionEstimation" EntityType="Self.FmsConstructionEstimation" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="FmsContract" EntityType="Self.FmsContract" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="FmsContractClass" EntityType="Self.FmsContractClass" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="FmsContractMethod" EntityType="Self.FmsContractMethod" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="FmsContractType" EntityType="Self.FmsContractType" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="FmsDailyCheckReport" EntityType="Self.FmsDailyCheckReport" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="FmsDailyReport" EntityType="Self.FmsDailyReport" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="FmsDrawing" EntityType="Self.FmsDrawing" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="FmsDrawingCodeGroup" EntityType="Self.FmsDrawingCodeGroup" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="FmsDrawingCodeType" EntityType="Self.FmsDrawingCodeType" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="FmsDrawingHistory" EntityType="Self.FmsDrawingHistory" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="FmsEquipment" EntityType="Self.FmsEquipment" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="FmsEquipmentCodeStateType" EntityType="Self.FmsEquipmentCodeStateType" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="FmsEquipmentCodeType" EntityType="Self.FmsEquipmentCodeType" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="FmsEquipmentHistory" EntityType="Self.FmsEquipmentHistory" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="FmsEquipmentRentInfo" EntityType="Self.FmsEquipmentRentInfo" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="FmsFacilityCheckItem" EntityType="Self.FmsFacilityCheckItem" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="FmsFacilityCodeClass" EntityType="Self.FmsFacilityCodeClass" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="FmsFacilityManual" EntityType="Self.FmsFacilityManual" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="FmsFacilityOperationItem" EntityType="Self.FmsFacilityOperationItem" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="FmsFacilityOperationReport" EntityType="Self.FmsFacilityOperationReport" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="FmsInvestmentCost" EntityType="Self.FmsInvestmentCost" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="FmsLicense" EntityType="Self.FmsLicense" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="FmsManual" EntityType="Self.FmsManual" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="FmsManualHistory" EntityType="Self.FmsManualHistory" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="FmsManualType" EntityType="Self.FmsManualType" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="FmsMaterial" EntityType="Self.FmsMaterial" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="FmsMaterialCarriedForward" EntityType="Self.FmsMaterialCarriedForward" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="FmsMaterialCodeAdjustmentType" EntityType="Self.FmsMaterialCodeAdjustmentType" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="FmsMaterialCodeClass" EntityType="Self.FmsMaterialCodeClass" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="FmsMaterialCodeLocation" EntityType="Self.FmsMaterialCodeLocation" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="FmsMaterialCodeProgress" EntityType="Self.FmsMaterialCodeProgress" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="FmsMaterialCodePurchaseType" EntityType="Self.FmsMaterialCodePurchaseType" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="FmsMaterialCodeReleaseType" EntityType="Self.FmsMaterialCodeReleaseType" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="FmsMaterialCodeType" EntityType="Self.FmsMaterialCodeType" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="FmsMaterialPurchaseOrder" EntityType="Self.FmsMaterialPurchaseOrder" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="FmsMaterialPurchaseOrderMaterial" EntityType="Self.FmsMaterialPurchaseOrderMaterial" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="FmsMaterialPurchaseRequest" EntityType="Self.FmsMaterialPurchaseRequest" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="FmsMaterialPurchaseRequestMaterial" EntityType="Self.FmsMaterialPurchaseRequestMaterial" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="FmsMaterialRelease" EntityType="Self.FmsMaterialRelease" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="FmsMaterialStored" EntityType="Self.FmsMaterialStored" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="FmsMaterialTradeCompany" EntityType="Self.FmsMaterialTradeCompany" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="FmsMaterialWarehouse" EntityType="Self.FmsMaterialWarehouse" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="FmsMonthlyReport" EntityType="Self.FmsMonthlyReport" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="FmsPaymentType" EntityType="Self.FmsPaymentType" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="FmsReport" EntityType="Self.FmsReport" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="FmsWorkCodeCauseClass" EntityType="Self.FmsWorkCodeCauseClass" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="FmsWorkCodeCycleUnit" EntityType="Self.FmsWorkCodeCycleUnit" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="FmsWorkCodeEmergency" EntityType="Self.FmsWorkCodeEmergency" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="FmsWorkCodeHolidayWorkType" EntityType="Self.FmsWorkCodeHolidayWorkType" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="FmsWorkCodeLegalInspectionAgency" EntityType="Self.FmsWorkCodeLegalInspectionAgency" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="FmsWorkCodeProgress" EntityType="Self.FmsWorkCodeProgress" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="FmsWorkCodeType" EntityType="Self.FmsWorkCodeType" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="FmsWorkOrder" EntityType="Self.FmsWorkOrder" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="FmsWorkOrderToFacility" EntityType="Self.FmsWorkOrderToFacility" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="FmsWorkRequest" EntityType="Self.FmsWorkRequest" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="FmsWorkRequestToFacility" EntityType="Self.FmsWorkRequestToFacility" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="FmsWorkResult" EntityType="Self.FmsWorkResult" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="FmsWorkResultCheckItem" EntityType="Self.FmsWorkResultCheckItem" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="FmsWorkResultCheckItemMaterial" EntityType="Self.FmsWorkResultCheckItemMaterial" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="FmsWorkResultFile" EntityType="Self.FmsWorkResultFile" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="FmsWorkResultLaw" EntityType="Self.FmsWorkResultLaw" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="FmsWorkResultToFacility" EntityType="Self.FmsWorkResultToFacility" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="FmsWorkSchedule" EntityType="Self.FmsWorkSchedule" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="FmsWorkScheduleToFacility" EntityType="Self.FmsWorkScheduleToFacility" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="sysdiagrams" EntityType="Self.sysdiagrams" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="WeatherDongNaeForecast" EntityType="Self.WeatherDongNaeForecast" Schema="dbo" store:Type="Tables" />
+    <AssociationSet Name="FK__BemsEnerg__SiteI__7954A4F6" Association="Self.FK__BemsEnerg__SiteI__7954A4F6">
+      <End Role="CmSite" EntitySet="CmSite" />
+      <End Role="BemsEnergyConfigPercentMonth" EntitySet="BemsEnergyConfigPercentMonth" />
+    </AssociationSet>
+    <AssociationSet Name="FK__BemsEnerg__SiteI__7C3111A1" Association="Self.FK__BemsEnerg__SiteI__7C3111A1">
+      <End Role="CmSite" EntitySet="CmSite" />
+      <End Role="BemsEnergyConfigPercentWeek" EntitySet="BemsEnergyConfigPercentWeek" />
+    </AssociationSet>
+    <AssociationSet Name="FK__BemsEnergyDaily__BemsFuelType" Association="Self.FK__BemsEnergyDaily__BemsFuelType">
+      <End Role="BemsFuelType" EntitySet="BemsFuelType" />
+      <End Role="BemsEnergyDaily" EntitySet="BemsEnergyDaily" />
+    </AssociationSet>
+    <AssociationSet Name="FK__BemsEnergyDaily__BemsServiceType" Association="Self.FK__BemsEnergyDaily__BemsServiceType">
+      <End Role="BemsServiceType" EntitySet="BemsServiceType" />
+      <End Role="BemsEnergyDaily" EntitySet="BemsEnergyDaily" />
+    </AssociationSet>
+    <AssociationSet Name="FK__BemsEnergyDaily__CmBuilding" Association="Self.FK__BemsEnergyDaily__CmBuilding">
+      <End Role="CmBuilding" EntitySet="CmBuilding" />
+      <End Role="BemsEnergyDaily" EntitySet="BemsEnergyDaily" />
+    </AssociationSet>
+    <AssociationSet Name="FK__BemsFactorCo2__BemsFuelType" Association="Self.FK__BemsFactorCo2__BemsFuelType">
+      <End Role="BemsFuelType" EntitySet="BemsFuelType" />
+      <End Role="BemsFactorCo2" EntitySet="BemsFactorCo2" />
+    </AssociationSet>
+    <AssociationSet Name="FK__BemsFactorToe__BemsFuelType" Association="Self.FK__BemsFactorToe__BemsFuelType">
+      <End Role="BemsFuelType" EntitySet="BemsFuelType" />
+      <End Role="BemsFactorToe" EntitySet="BemsFactorToe" />
+    </AssociationSet>
+    <AssociationSet Name="FK__BemsFormula__BemsFormulaBase" Association="Self.FK__BemsFormula__BemsFormulaBase">
+      <End Role="BemsFormulaBase" EntitySet="BemsFormulaBase" />
+      <End Role="BemsFormula" EntitySet="BemsFormula" />
+    </AssociationSet>
+    <AssociationSet Name="FK__BemsFormulaParameter__BemsFormula" Association="Self.FK__BemsFormulaParameter__BemsFormula">
+      <End Role="BemsFormula" EntitySet="BemsFormula" />
+      <End Role="BemsFormulaParameter" EntitySet="BemsFormulaParameter" />
+    </AssociationSet>
+    <AssociationSet Name="FK__BemsFormulaTableValue__BemsFormulaTable" Association="Self.FK__BemsFormulaTableValue__BemsFormulaTable">
+      <End Role="BemsFormulaTable" EntitySet="BemsFormulaTable" />
+      <End Role="BemsFormulaTableValue" EntitySet="BemsFormulaTableValue" />
+    </AssociationSet>
+    <AssociationSet Name="FK__BemsMonitoringPo__1372D2FE" Association="Self.FK__BemsMonitoringPo__1372D2FE">
+      <End Role="BemsAnalysisType" EntitySet="BemsAnalysisType" />
+      <End Role="BemsMonitoringPointToAnlaysisType" EntitySet="BemsMonitoringPointToAnlaysisType" />
+    </AssociationSet>
+    <AssociationSet Name="FK__BemsMonitoringPo__155B1B70" Association="Self.FK__BemsMonitoringPo__155B1B70">
+      <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
+      <End Role="BemsMonitoringPointToAnlaysisType" EntitySet="BemsMonitoringPointToAnlaysisType" />
+    </AssociationSet>
+    <AssociationSet Name="FK__BemsMonitoringPoint__BemsFuelType" Association="Self.FK__BemsMonitoringPoint__BemsFuelType">
+      <End Role="BemsFuelType" EntitySet="BemsFuelType" />
+      <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
+    </AssociationSet>
+    <AssociationSet Name="FK__BemsMonitoringPoint__BemsServiceType" Association="Self.FK__BemsMonitoringPoint__BemsServiceType">
+      <End Role="BemsServiceType" EntitySet="BemsServiceType" />
+      <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
+    </AssociationSet>
+    <AssociationSet Name="FK__BemsMonitoringPoint__CmBuilding" Association="Self.FK__BemsMonitoringPoint__CmBuilding">
+      <End Role="CmBuilding" EntitySet="CmBuilding" />
+      <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
+    </AssociationSet>
+    <AssociationSet Name="FK__BemsMonitoringPoint__CmFloor" Association="Self.FK__BemsMonitoringPoint__CmFloor">
+      <End Role="CmFloor" EntitySet="CmFloor" />
+      <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
+    </AssociationSet>
+    <AssociationSet Name="FK__BemsMonitoringPoint__CmZone" Association="Self.FK__BemsMonitoringPoint__CmZone">
+      <End Role="CmZone" EntitySet="CmZone" />
+      <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
+    </AssociationSet>
+    <AssociationSet Name="FK__BemsMonitoringPointBaseData__BemsFacilityType" Association="Self.FK__BemsMonitoringPointBaseData__BemsFacilityType">
+      <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
+      <End Role="BemsMonitoringPointBaseData" EntitySet="BemsMonitoringPointBaseData" />
+    </AssociationSet>
+    <AssociationSet Name="FK__BemsMonitoringPointBaseData__BemsFuelType" Association="Self.FK__BemsMonitoringPointBaseData__BemsFuelType">
+      <End Role="BemsFuelType" EntitySet="BemsFuelType" />
+      <End Role="BemsMonitoringPointBaseData" EntitySet="BemsMonitoringPointBaseData" />
+    </AssociationSet>
+    <AssociationSet Name="FK__BemsMonitoringPointBaseData__BemsServiceType" Association="Self.FK__BemsMonitoringPointBaseData__BemsServiceType">
+      <End Role="BemsServiceType" EntitySet="BemsServiceType" />
+      <End Role="BemsMonitoringPointBaseData" EntitySet="BemsMonitoringPointBaseData" />
+    </AssociationSet>
+    <AssociationSet Name="FK__BemsMonitoringPointHistory15min__BemsFacilityType" Association="Self.FK__BemsMonitoringPointHistory15min__BemsFacilityType">
+      <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
+      <End Role="BemsMonitoringPointHistory15min" EntitySet="BemsMonitoringPointHistory15min" />
+    </AssociationSet>
+    <AssociationSet Name="FK__BemsMonitoringPointHistory15min__BemsMonitoringPoint" Association="Self.FK__BemsMonitoringPointHistory15min__BemsMonitoringPoint">
+      <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
+      <End Role="BemsMonitoringPointHistory15min" EntitySet="BemsMonitoringPointHistory15min" />
+    </AssociationSet>
+    <AssociationSet Name="FK__BemsMonitoringPointHistory15minRawData__BemsFacilityType" Association="Self.FK__BemsMonitoringPointHistory15minRawData__BemsFacilityType">
+      <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
+      <End Role="BemsMonitoringPointHistory15minRawData" EntitySet="BemsMonitoringPointHistory15minRawData" />
+    </AssociationSet>
+    <AssociationSet Name="FK__BemsMonitoringPointHistory15minRawData__BemsMonitoringPoint" Association="Self.FK__BemsMonitoringPointHistory15minRawData__BemsMonitoringPoint">
+      <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
+      <End Role="BemsMonitoringPointHistory15minRawData" EntitySet="BemsMonitoringPointHistory15minRawData" />
+    </AssociationSet>
+    <AssociationSet Name="FK__BemsMonitoringPointHistoryDaily__BemsFacilityType" Association="Self.FK__BemsMonitoringPointHistoryDaily__BemsFacilityType">
+      <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
+      <End Role="BemsMonitoringPointHistoryDaily" EntitySet="BemsMonitoringPointHistoryDaily" />
+    </AssociationSet>
+    <AssociationSet Name="FK__BemsMonitoringPointHistoryDaily__BemsMonitoringPoint" Association="Self.FK__BemsMonitoringPointHistoryDaily__BemsMonitoringPoint">
+      <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
+      <End Role="BemsMonitoringPointHistoryDaily" EntitySet="BemsMonitoringPointHistoryDaily" />
+    </AssociationSet>
+    <AssociationSet Name="FK__BemsMonitoringPointHistoryHourly__BemsFacilityType" Association="Self.FK__BemsMonitoringPointHistoryHourly__BemsFacilityType">
+      <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
+      <End Role="BemsMonitoringPointHistoryHourly" EntitySet="BemsMonitoringPointHistoryHourly" />
+    </AssociationSet>
+    <AssociationSet Name="FK__BemsMonitoringPointHistoryHourly__BemsMonitoringPoint" Association="Self.FK__BemsMonitoringPointHistoryHourly__BemsMonitoringPoint">
+      <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
+      <End Role="BemsMonitoringPointHistoryHourly" EntitySet="BemsMonitoringPointHistoryHourly" />
+    </AssociationSet>
+    <AssociationSet Name="FK__BemsMonitoringPointToAnlaysisType__BemsFacilityType" Association="Self.FK__BemsMonitoringPointToAnlaysisType__BemsFacilityType">
+      <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
+      <End Role="BemsMonitoringPointToAnlaysisType" EntitySet="BemsMonitoringPointToAnlaysisType" />
+    </AssociationSet>
+    <AssociationSet Name="FK__BemsNoticePriceBase__BemsNoticePriceContractType" Association="Self.FK__BemsNoticePriceBase__BemsNoticePriceContractType">
+      <End Role="BemsNoticePriceContractType" EntitySet="BemsNoticePriceContractType" />
+      <End Role="BemsNoticePriceBase" EntitySet="BemsNoticePriceBase" />
+    </AssociationSet>
+    <AssociationSet Name="FK__BemsNoticePriceContractType__BemsFuelType" Association="Self.FK__BemsNoticePriceContractType__BemsFuelType">
+      <End Role="BemsFuelType" EntitySet="BemsFuelType" />
+      <End Role="BemsNoticePriceContractType" EntitySet="BemsNoticePriceContractType" />
+    </AssociationSet>
+    <AssociationSet Name="FK__BemsNoticePriceDetail__BemsNoticePriceBase" Association="Self.FK__BemsNoticePriceDetail__BemsNoticePriceBase">
+      <End Role="BemsNoticePriceBase" EntitySet="BemsNoticePriceBase" />
+      <End Role="BemsNoticePriceDetail" EntitySet="BemsNoticePriceDetail" />
+    </AssociationSet>
+    <AssociationSet Name="FK__CmCompany__345EC57D" Association="Self.FK__CmCompany__345EC57D">
+      <End Role="CmCompanyType" EntitySet="CmCompanyType" />
+      <End Role="CmCompany" EntitySet="CmCompany" />
+    </AssociationSet>
+    <AssociationSet Name="FK__CmCompany__SiteI__336AA144" Association="Self.FK__CmCompany__SiteI__336AA144">
+      <End Role="CmSite" EntitySet="CmSite" />
+      <End Role="CmCompany" EntitySet="CmCompany" />
+    </AssociationSet>
+    <AssociationSet Name="FK__CmDepartment__3552E9B6" Association="Self.FK__CmDepartment__3552E9B6">
+      <End Role="CmCompany" EntitySet="CmCompany" />
+      <End Role="CmDepartment" EntitySet="CmDepartment" />
+    </AssociationSet>
+    <AssociationSet Name="FK__CmFacility__CmFacility" Association="Self.FK__CmFacility__CmFacility">
+      <End Role="CmFacility" EntitySet="CmFacility" />
+      <End Role="CmFacility1" EntitySet="CmFacility" />
+    </AssociationSet>
+    <AssociationSet Name="FK__CmFacilityFile__7720AD13" Association="Self.FK__CmFacilityFile__7720AD13">
+      <End Role="CmFacility" EntitySet="CmFacility" />
+      <End Role="CmFacilityFile" EntitySet="CmFacilityFile" />
+    </AssociationSet>
+    <AssociationSet Name="FK__CmFacilityFile__CmFile" Association="Self.FK__CmFacilityFile__CmFile">
+      <End Role="CmFile" EntitySet="CmFile" />
+      <End Role="CmFacilityFile" EntitySet="CmFacilityFile" />
+    </AssociationSet>
+    <AssociationSet Name="FK__CmFacilityManual__79FD19BE" Association="Self.FK__CmFacilityManual__79FD19BE">
+      <End Role="CmFacility" EntitySet="CmFacility" />
+      <End Role="FmsFacilityManual" EntitySet="FmsFacilityManual" />
+    </AssociationSet>
+    <AssociationSet Name="FK__CmFacilityManual__7BE56230" Association="Self.FK__CmFacilityManual__7BE56230">
+      <End Role="CmBusinessField" EntitySet="CmBusinessField" />
+      <End Role="FmsFacilityManual" EntitySet="FmsFacilityManual" />
+    </AssociationSet>
+    <AssociationSet Name="FK__CmFile__CmFileCategory" Association="Self.FK__CmFile__CmFileCategory">
+      <End Role="CmFileCategory" EntitySet="CmFileCategory" />
+      <End Role="CmFile" EntitySet="CmFile" />
+    </AssociationSet>
+    <AssociationSet Name="FK__CmFile__SiteId__2759D01A" Association="Self.FK__CmFile__SiteId__2759D01A">
+      <End Role="CmSite" EntitySet="CmSite" />
+      <End Role="CmFile" EntitySet="CmFile" />
+    </AssociationSet>
+    <AssociationSet Name="FK__CmFloor__3CF40B7E" Association="Self.FK__CmFloor__3CF40B7E">
+      <End Role="CmBuilding" EntitySet="CmBuilding" />
+      <End Role="CmFloor" EntitySet="CmFloor" />
+    </AssociationSet>
+    <AssociationSet Name="FK__CmHoliday__SiteI__0BB1B5A5" Association="Self.FK__CmHoliday__SiteI__0BB1B5A5">
+      <End Role="CmSite" EntitySet="CmSite" />
+      <End Role="CmHoliday" EntitySet="CmHoliday" />
+    </AssociationSet>
+    <AssociationSet Name="FK__CmHoliday__SiteI__0D99FE17" Association="Self.FK__CmHoliday__SiteI__0D99FE17">
+      <End Role="CmSite" EntitySet="CmSite" />
+      <End Role="CmHolidayWeekend" EntitySet="CmHolidayWeekend" />
+    </AssociationSet>
+    <AssociationSet Name="FK__CmHoliday__SiteI__10766AC2" Association="Self.FK__CmHoliday__SiteI__10766AC2">
+      <End Role="CmSite" EntitySet="CmSite" />
+      <End Role="CmHolidayCustom" EntitySet="CmHolidayCustom" />
+    </AssociationSet>
+    <AssociationSet Name="FK__CmHoliday__SiteI__65AC084E" Association="Self.FK__CmHoliday__SiteI__65AC084E">
+      <End Role="CmSite" EntitySet="CmSite" />
+      <End Role="CmHoliday" EntitySet="CmHoliday" />
+    </AssociationSet>
+    <AssociationSet Name="FK__CmHoliday__SiteI__66A02C87" Association="Self.FK__CmHoliday__SiteI__66A02C87">
+      <End Role="CmSite" EntitySet="CmSite" />
+      <End Role="CmHolidayCustom" EntitySet="CmHolidayCustom" />
+    </AssociationSet>
+    <AssociationSet Name="FK__CmLocation__3DE82FB7" Association="Self.FK__CmLocation__3DE82FB7">
+      <End Role="CmFloor" EntitySet="CmFloor" />
+      <End Role="CmZone" EntitySet="CmZone" />
+    </AssociationSet>
+    <AssociationSet Name="FK__CmPositio__SiteI__6A70BD6B" Association="Self.FK__CmPositio__SiteI__6A70BD6B">
+      <End Role="CmSite" EntitySet="CmSite" />
+      <End Role="CmPosition" EntitySet="CmPosition" />
+    </AssociationSet>
+    <AssociationSet Name="FK__CmUserGro__SiteI__53D770D6" Association="Self.FK__CmUserGro__SiteI__53D770D6">
+      <End Role="CmSite" EntitySet="CmSite" />
+      <End Role="CmUserGroup" EntitySet="CmUserGroup" />
+    </AssociationSet>
+    <AssociationSet Name="FK__CmUserGroupPermission__CmUserGroup" Association="Self.FK__CmUserGroupPermission__CmUserGroup">
+      <End Role="CmUserGroup" EntitySet="CmUserGroup" />
+      <End Role="CmUserGroupPermission" EntitySet="CmUserGroupPermission" />
+    </AssociationSet>
+    <AssociationSet Name="FK__CmUserPos__SiteI__44952D46" Association="Self.FK__CmUserPos__SiteI__44952D46">
+      <End Role="CmSite" EntitySet="CmSite" />
+      <End Role="CmPosition" EntitySet="CmPosition" />
+    </AssociationSet>
+    <AssociationSet Name="FK__CmUserToLicense__CmUser" Association="Self.FK__CmUserToLicense__CmUser">
+      <End Role="CmUser" EntitySet="CmUser" />
+      <End Role="CmUserToLicense" EntitySet="CmUserToLicense" />
+    </AssociationSet>
+    <AssociationSet Name="FK__CmUserToLicense__FmsLicense" Association="Self.FK__CmUserToLicense__FmsLicense">
+      <End Role="FmsLicense" EntitySet="FmsLicense" />
+      <End Role="CmUserToLicense" EntitySet="CmUserToLicense" />
+    </AssociationSet>
+    <AssociationSet Name="FK__CmZone__CmBuilding" Association="Self.FK__CmZone__CmBuilding">
+      <End Role="CmBuilding" EntitySet="CmBuilding" />
+      <End Role="CmZone" EntitySet="CmZone" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsDrawin__SiteI__6B79F03D" Association="Self.FK__FmsDrawin__SiteI__6B79F03D">
+      <End Role="CmSite" EntitySet="CmSite" />
+      <End Role="FmsDrawingCodeGroup" EntitySet="FmsDrawingCodeGroup" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsDrawin__SiteI__6C6E1476" Association="Self.FK__FmsDrawin__SiteI__6C6E1476">
+      <End Role="CmSite" EntitySet="CmSite" />
+      <End Role="FmsDrawingCodeType" EntitySet="FmsDrawingCodeType" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsDrawin__SiteI__6D6238AF" Association="Self.FK__FmsDrawin__SiteI__6D6238AF">
+      <End Role="CmSite" EntitySet="CmSite" />
+      <End Role="FmsDrawing" EntitySet="FmsDrawing" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsDrawin__SiteI__6F357288" Association="Self.FK__FmsDrawin__SiteI__6F357288">
+      <End Role="CmSite" EntitySet="CmSite" />
+      <End Role="FmsDrawingCodeGroup" EntitySet="FmsDrawingCodeGroup" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsDrawin__SiteI__702996C1" Association="Self.FK__FmsDrawin__SiteI__702996C1">
+      <End Role="CmSite" EntitySet="CmSite" />
+      <End Role="FmsDrawingCodeType" EntitySet="FmsDrawingCodeType" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsDrawing__6E565CE8" Association="Self.FK__FmsDrawing__6E565CE8">
+      <End Role="FmsDrawingCodeGroup" EntitySet="FmsDrawingCodeGroup" />
+      <End Role="FmsDrawing" EntitySet="FmsDrawing" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsDrawing__6F4A8121" Association="Self.FK__FmsDrawing__6F4A8121">
+      <End Role="FmsDrawingCodeType" EntitySet="FmsDrawingCodeType" />
+      <End Role="FmsDrawing" EntitySet="FmsDrawing" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsDrawingHistor__04DA9AE4" Association="Self.FK__FmsDrawingHistor__04DA9AE4">
+      <End Role="CmFile" EntitySet="CmFile" />
+      <End Role="FmsDrawingHistory" EntitySet="FmsDrawingHistory" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsDrawingHistor__7132C993" Association="Self.FK__FmsDrawingHistor__7132C993">
+      <End Role="FmsDrawing" EntitySet="FmsDrawing" />
+      <End Role="FmsDrawingHistory" EntitySet="FmsDrawingHistory" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsDrawingHistory__CmUser" Association="Self.FK__FmsDrawingHistory__CmUser">
+      <End Role="CmUser" EntitySet="CmUser" />
+      <End Role="FmsDrawingHistory" EntitySet="FmsDrawingHistory" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsFacilityCheckItem__FmsWorkCodeCycleUnit" Association="Self.FK__FmsFacilityCheckItem__FmsWorkCodeCycleUnit">
+      <End Role="FmsWorkCodeCycleUnit" EntitySet="FmsWorkCodeCycleUnit" />
+      <End Role="FmsFacilityCheckItem" EntitySet="FmsFacilityCheckItem" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsFacilityCheckItem__FmsWorkCodeWorkType" Association="Self.FK__FmsFacilityCheckItem__FmsWorkCodeWorkType">
+      <End Role="FmsWorkCodeType" EntitySet="FmsWorkCodeType" />
+      <End Role="FmsFacilityCheckItem" EntitySet="FmsFacilityCheckItem" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsFacilityCodeClass__CmSite" Association="Self.FK__FmsFacilityCodeClass__CmSite">
+      <End Role="CmSite" EntitySet="CmSite" />
+      <End Role="FmsFacilityCodeClass" EntitySet="FmsFacilityCodeClass" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsFacilityCodeClass__FmsFacilityCodeClass" Association="Self.FK__FmsFacilityCodeClass__FmsFacilityCodeClass">
+      <End Role="FmsFacilityCodeClass" EntitySet="FmsFacilityCodeClass" />
+      <End Role="FmsFacilityCodeClass1" EntitySet="FmsFacilityCodeClass" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsFacilityOpera__725BF7F6" Association="Self.FK__FmsFacilityOpera__725BF7F6">
+      <End Role="CmFacility" EntitySet="CmFacility" />
+      <End Role="FmsFacilityOperationItem" EntitySet="FmsFacilityOperationItem" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsLicense__CmBusinessField" Association="Self.FK__FmsLicense__CmBusinessField">
+      <End Role="CmBusinessField" EntitySet="CmBusinessField" />
+      <End Role="FmsLicense" EntitySet="FmsLicense" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsLicense__CmSite" Association="Self.FK__FmsLicense__CmSite">
+      <End Role="CmSite" EntitySet="CmSite" />
+      <End Role="FmsLicense" EntitySet="FmsLicense" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsMaterial__FmsMaterialCodeClass_AsFirstClassId" Association="Self.FK__FmsMaterial__FmsMaterialCodeClass_AsFirstClassId">
+      <End Role="FmsMaterialCodeClass" EntitySet="FmsMaterialCodeClass" />
+      <End Role="FmsMaterial" EntitySet="FmsMaterial" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsMaterial__FmsMaterialCodeClass_AsSecondClassId" Association="Self.FK__FmsMaterial__FmsMaterialCodeClass_AsSecondClassId">
+      <End Role="FmsMaterialCodeClass" EntitySet="FmsMaterialCodeClass" />
+      <End Role="FmsMaterial" EntitySet="FmsMaterial" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsMaterial__FmsMaterialCodeClass_AsThirdClassId" Association="Self.FK__FmsMaterial__FmsMaterialCodeClass_AsThirdClassId">
+      <End Role="FmsMaterialCodeClass" EntitySet="FmsMaterialCodeClass" />
+      <End Role="FmsMaterial" EntitySet="FmsMaterial" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsMaterialCarriedForward__CmBusinessField" Association="Self.FK__FmsMaterialCarriedForward__CmBusinessField">
+      <End Role="CmBusinessField" EntitySet="CmBusinessField" />
+      <End Role="FmsMaterialCarriedForward" EntitySet="FmsMaterialCarriedForward" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsMaterialCarriedForward__CmSite" Association="Self.FK__FmsMaterialCarriedForward__CmSite">
+      <End Role="CmSite" EntitySet="CmSite" />
+      <End Role="FmsMaterialCarriedForward" EntitySet="FmsMaterialCarriedForward" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsMaterialCodeClass__CmSite" Association="Self.FK__FmsMaterialCodeClass__CmSite">
+      <End Role="CmSite" EntitySet="CmSite" />
+      <End Role="FmsMaterialCodeClass" EntitySet="FmsMaterialCodeClass" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsMaterialCodeClass__FmsMaterialCodeClass" Association="Self.FK__FmsMaterialCodeClass__FmsMaterialCodeClass">
+      <End Role="FmsMaterialCodeClass" EntitySet="FmsMaterialCodeClass" />
+      <End Role="FmsMaterialCodeClass1" EntitySet="FmsMaterialCodeClass" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsMaterialCodeLocation__CmBusinessField" Association="Self.FK__FmsMaterialCodeLocation__CmBusinessField">
+      <End Role="CmBusinessField" EntitySet="CmBusinessField" />
+      <End Role="FmsMaterialCodeLocation" EntitySet="FmsMaterialCodeLocation" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsMaterialCodeLocation__CmSite" Association="Self.FK__FmsMaterialCodeLocation__CmSite">
+      <End Role="CmSite" EntitySet="CmSite" />
+      <End Role="FmsMaterialCodeLocation" EntitySet="FmsMaterialCodeLocation" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsMaterialCodeType__CmSite" Association="Self.FK__FmsMaterialCodeType__CmSite">
+      <End Role="CmSite" EntitySet="CmSite" />
+      <End Role="FmsMaterialCodeType" EntitySet="FmsMaterialCodeType" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsMaterialOrder__CmBusinessField" Association="Self.FK__FmsMaterialOrder__CmBusinessField">
+      <End Role="CmBusinessField" EntitySet="CmBusinessField" />
+      <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsMaterialOrder__CmSite" Association="Self.FK__FmsMaterialOrder__CmSite">
+      <End Role="CmSite" EntitySet="CmSite" />
+      <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsMaterialOrder__CmUser" Association="Self.FK__FmsMaterialOrder__CmUser">
+      <End Role="CmUser" EntitySet="CmUser" />
+      <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsMaterialPurchaseOrder__CmFile" Association="Self.FK__FmsMaterialPurchaseOrder__CmFile">
+      <End Role="CmFile" EntitySet="CmFile" />
+      <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsMaterialPurchaseOrder__FmsMaterialTradeCompany" Association="Self.FK__FmsMaterialPurchaseOrder__FmsMaterialTradeCompany">
+      <End Role="FmsMaterialTradeCompany" EntitySet="FmsMaterialTradeCompany" />
+      <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsMaterialPurchaseRequest__CmUser_AsRequestUserId" Association="Self.FK__FmsMaterialPurchaseRequest__CmUser_AsRequestUserId">
+      <End Role="CmUser" EntitySet="CmUser" />
+      <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsMaterialPurchaseRequest__CmUser1_AsApprovalUserId" Association="Self.FK__FmsMaterialPurchaseRequest__CmUser1_AsApprovalUserId">
+      <End Role="CmUser" EntitySet="CmUser" />
+      <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsMaterialPurchasingRequest__CmBusinessField" Association="Self.FK__FmsMaterialPurchasingRequest__CmBusinessField">
+      <End Role="CmBusinessField" EntitySet="CmBusinessField" />
+      <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsMaterialPurchasingRequest__CmSite" Association="Self.FK__FmsMaterialPurchasingRequest__CmSite">
+      <End Role="CmSite" EntitySet="CmSite" />
+      <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsMaterialPurchasingRequest__FmsMaterialCodeProcess" Association="Self.FK__FmsMaterialPurchasingRequest__FmsMaterialCodeProcess">
+      <End Role="FmsMaterialCodeProgress" EntitySet="FmsMaterialCodeProgress" />
+      <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsMaterialStored__CmBusinessField" Association="Self.FK__FmsMaterialStored__CmBusinessField">
+      <End Role="CmBusinessField" EntitySet="CmBusinessField" />
+      <End Role="FmsMaterialStored" EntitySet="FmsMaterialStored" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsMaterialStored__CmSite" Association="Self.FK__FmsMaterialStored__CmSite">
+      <End Role="CmSite" EntitySet="CmSite" />
+      <End Role="FmsMaterialStored" EntitySet="FmsMaterialStored" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsMaterialStored__CmUser_AsStoredUserId" Association="Self.FK__FmsMaterialStored__CmUser_AsStoredUserId">
+      <End Role="CmUser" EntitySet="CmUser" />
+      <End Role="FmsMaterialStored" EntitySet="FmsMaterialStored" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsMaterialStored__CmUser1_AsApprovalUserId" Association="Self.FK__FmsMaterialStored__CmUser1_AsApprovalUserId">
+      <End Role="CmUser" EntitySet="CmUser" />
+      <End Role="FmsMaterialStored" EntitySet="FmsMaterialStored" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsMaterialTradeCompany__CmSite" Association="Self.FK__FmsMaterialTradeCompany__CmSite">
+      <End Role="CmSite" EntitySet="CmSite" />
+      <End Role="FmsMaterialTradeCompany" EntitySet="FmsMaterialTradeCompany" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsMaterialWarehouse__CmBusinessField" Association="Self.FK__FmsMaterialWarehouse__CmBusinessField">
+      <End Role="CmBusinessField" EntitySet="CmBusinessField" />
+      <End Role="FmsMaterialWarehouse" EntitySet="FmsMaterialWarehouse" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsMaterialWarehouse__CmSite" Association="Self.FK__FmsMaterialWarehouse__CmSite">
+      <End Role="CmSite" EntitySet="CmSite" />
+      <End Role="FmsMaterialWarehouse" EntitySet="FmsMaterialWarehouse" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsWorkCodeCauseClass__CmSite" Association="Self.FK__FmsWorkCodeCauseClass__CmSite">
+      <End Role="CmSite" EntitySet="CmSite" />
+      <End Role="FmsWorkCodeCauseClass" EntitySet="FmsWorkCodeCauseClass" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsWorkCodeCycleUnit__CmSite" Association="Self.FK__FmsWorkCodeCycleUnit__CmSite">
+      <End Role="CmSite" EntitySet="CmSite" />
+      <End Role="FmsWorkCodeCycleUnit" EntitySet="FmsWorkCodeCycleUnit" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsWorkCodeEmergency__CmSite" Association="Self.FK__FmsWorkCodeEmergency__CmSite">
+      <End Role="CmSite" EntitySet="CmSite" />
+      <End Role="FmsWorkCodeEmergency" EntitySet="FmsWorkCodeEmergency" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsWorkCodeHolidayWorkType__CmSite" Association="Self.FK__FmsWorkCodeHolidayWorkType__CmSite">
+      <End Role="CmSite" EntitySet="CmSite" />
+      <End Role="FmsWorkCodeHolidayWorkType" EntitySet="FmsWorkCodeHolidayWorkType" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsWorkCodeLegalInspectionAgency__CmSite" Association="Self.FK__FmsWorkCodeLegalInspectionAgency__CmSite">
+      <End Role="CmSite" EntitySet="CmSite" />
+      <End Role="FmsWorkCodeLegalInspectionAgency" EntitySet="FmsWorkCodeLegalInspectionAgency" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsWorkOrder__CmBusinessField" Association="Self.FK__FmsWorkOrder__CmBusinessField">
+      <End Role="CmBusinessField" EntitySet="CmBusinessField" />
+      <End Role="FmsWorkOrder" EntitySet="FmsWorkOrder" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsWorkOrder__CmSite" Association="Self.FK__FmsWorkOrder__CmSite">
+      <End Role="CmSite" EntitySet="CmSite" />
+      <End Role="FmsWorkOrder" EntitySet="FmsWorkOrder" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsWorkOrder__CmUser" Association="Self.FK__FmsWorkOrder__CmUser">
+      <End Role="CmUser" EntitySet="CmUser" />
+      <End Role="FmsWorkOrder" EntitySet="FmsWorkOrder" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsWorkOrder__FmsWorkCodeEmergency" Association="Self.FK__FmsWorkOrder__FmsWorkCodeEmergency">
+      <End Role="FmsWorkCodeEmergency" EntitySet="FmsWorkCodeEmergency" />
+      <End Role="FmsWorkOrder" EntitySet="FmsWorkOrder" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsWorkOrder__FmsWorkRequest" Association="Self.FK__FmsWorkOrder__FmsWorkRequest">
+      <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
+      <End Role="FmsWorkOrder" EntitySet="FmsWorkOrder" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsWorkOrderToFacility__FmsWorkOrder" Association="Self.FK__FmsWorkOrderToFacility__FmsWorkOrder">
+      <End Role="FmsWorkOrder" EntitySet="FmsWorkOrder" />
+      <End Role="FmsWorkOrderToFacility" EntitySet="FmsWorkOrderToFacility" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsWorkRequest__CmBusinessField" Association="Self.FK__FmsWorkRequest__CmBusinessField">
+      <End Role="CmBusinessField" EntitySet="CmBusinessField" />
+      <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsWorkRequest__CmSite" Association="Self.FK__FmsWorkRequest__CmSite">
+      <End Role="CmSite" EntitySet="CmSite" />
+      <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsWorkRequest__CmUser_AsRequestUserId" Association="Self.FK__FmsWorkRequest__CmUser_AsRequestUserId">
+      <End Role="CmUser" EntitySet="CmUser" />
+      <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsWorkRequest__CmUser1_AsRejectUserId" Association="Self.FK__FmsWorkRequest__CmUser1_AsRejectUserId">
+      <End Role="CmUser" EntitySet="CmUser" />
+      <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsWorkRequest__FmsWorkCodeProgress" Association="Self.FK__FmsWorkRequest__FmsWorkCodeProgress">
+      <End Role="FmsWorkCodeProgress" EntitySet="FmsWorkCodeProgress" />
+      <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsWorkRequest__FmsWorkCodeWorkType" Association="Self.FK__FmsWorkRequest__FmsWorkCodeWorkType">
+      <End Role="FmsWorkCodeType" EntitySet="FmsWorkCodeType" />
+      <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsWorkRequest__FmsWorkSchedule" Association="Self.FK__FmsWorkRequest__FmsWorkSchedule">
+      <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
+      <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsWorkRequestToFacility__FmsWorkRequest" Association="Self.FK__FmsWorkRequestToFacility__FmsWorkRequest">
+      <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
+      <End Role="FmsWorkRequestToFacility" EntitySet="FmsWorkRequestToFacility" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsWorkResult__CmUser_AsWorkerUserId" Association="Self.FK__FmsWorkResult__CmUser_AsWorkerUserId">
+      <End Role="CmUser" EntitySet="CmUser" />
+      <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsWorkResult__CmUser1_AsConfirmedUserId" Association="Self.FK__FmsWorkResult__CmUser1_AsConfirmedUserId">
+      <End Role="CmUser" EntitySet="CmUser" />
+      <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsWorkResult__FmsWorkCodeCauseClass" Association="Self.FK__FmsWorkResult__FmsWorkCodeCauseClass">
+      <End Role="FmsWorkCodeCauseClass" EntitySet="FmsWorkCodeCauseClass" />
+      <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsWorkResult__FmsWorkOrder" Association="Self.FK__FmsWorkResult__FmsWorkOrder">
+      <End Role="FmsWorkOrder" EntitySet="FmsWorkOrder" />
+      <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsWorkResult__FmsWorkRequest" Association="Self.FK__FmsWorkResult__FmsWorkRequest">
+      <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
+      <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsWorkResultCheckItem__CmFacility" Association="Self.FK__FmsWorkResultCheckItem__CmFacility">
+      <End Role="CmFacility" EntitySet="CmFacility" />
+      <End Role="FmsWorkResultCheckItem" EntitySet="FmsWorkResultCheckItem" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsWorkResultCheckItem__FmsFacilityCheckItem" Association="Self.FK__FmsWorkResultCheckItem__FmsFacilityCheckItem">
+      <End Role="FmsFacilityCheckItem" EntitySet="FmsFacilityCheckItem" />
+      <End Role="FmsWorkResultCheckItem" EntitySet="FmsWorkResultCheckItem" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsWorkResultCheckItem__FmsWorkResult" Association="Self.FK__FmsWorkResultCheckItem__FmsWorkResult">
+      <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
+      <End Role="FmsWorkResultCheckItem" EntitySet="FmsWorkResultCheckItem" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsWorkResultFile__CmFile" Association="Self.FK__FmsWorkResultFile__CmFile">
+      <End Role="CmFile" EntitySet="CmFile" />
+      <End Role="FmsWorkResultFile" EntitySet="FmsWorkResultFile" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsWorkResultFile__FmsWorkResult" Association="Self.FK__FmsWorkResultFile__FmsWorkResult">
+      <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
+      <End Role="FmsWorkResultFile" EntitySet="FmsWorkResultFile" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsWorkResultLaw__FmsWorkResult" Association="Self.FK__FmsWorkResultLaw__FmsWorkResult">
+      <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
+      <End Role="FmsWorkResultLaw" EntitySet="FmsWorkResultLaw" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsWorkResultToFacility__CmFacility" Association="Self.FK__FmsWorkResultToFacility__CmFacility">
+      <End Role="CmFacility" EntitySet="CmFacility" />
+      <End Role="FmsWorkResultToFacility" EntitySet="FmsWorkResultToFacility" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsWorkResultToFacility__FmsWorkOrder" Association="Self.FK__FmsWorkResultToFacility__FmsWorkOrder">
+      <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
+      <End Role="FmsWorkResultToFacility" EntitySet="FmsWorkResultToFacility" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsWorkSchedule__CmBusinessField" Association="Self.FK__FmsWorkSchedule__CmBusinessField">
+      <End Role="CmBusinessField" EntitySet="CmBusinessField" />
+      <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsWorkSchedule__CmUser" Association="Self.FK__FmsWorkSchedule__CmUser">
+      <End Role="CmUser" EntitySet="CmUser" />
+      <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsWorkSchedule__FmsWorkCodeCycleUnit" Association="Self.FK__FmsWorkSchedule__FmsWorkCodeCycleUnit">
+      <End Role="FmsWorkCodeCycleUnit" EntitySet="FmsWorkCodeCycleUnit" />
+      <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsWorkSchedule__FmsWorkCodeHolidayWorkType" Association="Self.FK__FmsWorkSchedule__FmsWorkCodeHolidayWorkType">
+      <End Role="FmsWorkCodeHolidayWorkType" EntitySet="FmsWorkCodeHolidayWorkType" />
+      <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsWorkSchedule__FmsWorkCodeWorkType" Association="Self.FK__FmsWorkSchedule__FmsWorkCodeWorkType">
+      <End Role="FmsWorkCodeType" EntitySet="FmsWorkCodeType" />
+      <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
+    </AssociationSet>
+    <AssociationSet Name="FK__FmsWorkScheduleToFacility__FmsWorkSchedule" Association="Self.FK__FmsWorkScheduleToFacility__FmsWorkSchedule">
+      <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
+      <End Role="FmsWorkScheduleToFacility" EntitySet="FmsWorkScheduleToFacility" />
+    </AssociationSet>
+    <AssociationSet Name="FK_BemsAlarmLog_BemsAlarmSetting" Association="Self.FK_BemsAlarmLog_BemsAlarmSetting">
+      <End Role="BemsAlarmSetting" EntitySet="BemsAlarmSetting" />
+      <End Role="BemsAlarmLog" EntitySet="BemsAlarmLog" />
+    </AssociationSet>
+    <AssociationSet Name="FK_BemsAlarmSetting_BemsFacilityType" Association="Self.FK_BemsAlarmSetting_BemsFacilityType">
+      <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
+      <End Role="BemsAlarmSetting" EntitySet="BemsAlarmSetting" />
+    </AssociationSet>
+    <AssociationSet Name="FK_BemsAlarmSetting_CmFacility" Association="Self.FK_BemsAlarmSetting_CmFacility">
+      <End Role="CmFacility" EntitySet="CmFacility" />
+      <End Role="BemsAlarmSetting" EntitySet="BemsAlarmSetting" />
+    </AssociationSet>
+    <AssociationSet Name="FK_BemsAlarmSetting_CmSite1" Association="Self.FK_BemsAlarmSetting_CmSite1">
+      <End Role="CmSite" EntitySet="CmSite" />
+      <End Role="BemsAlarmSetting" EntitySet="BemsAlarmSetting" />
+    </AssociationSet>
+    <AssociationSet Name="FK_BemsChartInfo_BemsFacilityType" Association="Self.FK_BemsChartInfo_BemsFacilityType">
+      <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
+      <End Role="BemsChartInfo" EntitySet="BemsChartInfo" />
+    </AssociationSet>
+    <AssociationSet Name="FK_BemsChartInfo_CmSite" Association="Self.FK_BemsChartInfo_CmSite">
+      <End Role="CmSite" EntitySet="CmSite" />
+      <End Role="BemsChartInfo" EntitySet="BemsChartInfo" />
+    </AssociationSet>
+    <AssociationSet Name="FK_BemsControlPointHistory_BemsFacilityType" Association="Self.FK_BemsControlPointHistory_BemsFacilityType">
+      <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
+      <End Role="BemsControlPointHistory" EntitySet="BemsControlPointHistory" />
+    </AssociationSet>
+    <AssociationSet Name="FK_BemsControlPointHistory_BemsMonitoringPoint" Association="Self.FK_BemsControlPointHistory_BemsMonitoringPoint">
+      <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
+      <End Role="BemsControlPointHistory" EntitySet="BemsControlPointHistory" />
+    </AssociationSet>
+    <AssociationSet Name="FK_BemsEnergyCost_CmFacility" Association="Self.FK_BemsEnergyCost_CmFacility">
+      <End Role="CmFacility" EntitySet="CmFacility" />
+      <End Role="BemsEnergyCost" EntitySet="BemsEnergyCost" />
+    </AssociationSet>
+    <AssociationSet Name="FK_BemsEnergyDailyRegression_CmSite" Association="Self.FK_BemsEnergyDailyRegression_CmSite">
+      <End Role="CmSite" EntitySet="CmSite" />
+      <End Role="BemsEnergyDailyRegression" EntitySet="BemsEnergyDailyRegression" />
+    </AssociationSet>
+    <AssociationSet Name="FK_BemsFormulaParameter_CmFacility" Association="Self.FK_BemsFormulaParameter_CmFacility">
+      <End Role="CmFacility" EntitySet="CmFacility" />
+      <End Role="BemsFormulaParameter" EntitySet="BemsFormulaParameter" />
+    </AssociationSet>
+    <AssociationSet Name="FK_BemsMonitoringPoint_BemsFacilityType" Association="Self.FK_BemsMonitoringPoint_BemsFacilityType">
+      <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
+      <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
+    </AssociationSet>
+    <AssociationSet Name="FK_BemsMonitoringPoint_CmFacility" Association="Self.FK_BemsMonitoringPoint_CmFacility">
+      <End Role="CmFacility" EntitySet="CmFacility" />
+      <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
+    </AssociationSet>
+    <AssociationSet Name="FK_BemsMonitoringPointConfig_BemsFacilityType1" Association="Self.FK_BemsMonitoringPointConfig_BemsFacilityType1">
+      <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
+      <End Role="BemsMonitoringPointConfig" EntitySet="BemsMonitoringPointConfig" />
+    </AssociationSet>
+    <AssociationSet Name="FK_BemsMonitoringPointConfig_BemsMonitoringPoint" Association="Self.FK_BemsMonitoringPointConfig_BemsMonitoringPoint">
+      <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
+      <End Role="BemsMonitoringPointConfig" EntitySet="BemsMonitoringPointConfig" />
+    </AssociationSet>
+    <AssociationSet Name="FK_BemsPeakFacility_CmFacility" Association="Self.FK_BemsPeakFacility_CmFacility">
+      <End Role="CmFacility" EntitySet="CmFacility" />
+      <End Role="BemsPeakFacility" EntitySet="BemsPeakFacility" />
+    </AssociationSet>
+    <AssociationSet Name="FK_BemsPeakHIstory_CmSite" Association="Self.FK_BemsPeakHIstory_CmSite">
+      <End Role="CmSite" EntitySet="CmSite" />
+      <End Role="BemsPeakHistory" EntitySet="BemsPeakHistory" />
+    </AssociationSet>
+    <AssociationSet Name="FK_BemsPeakInfo_CmSite" Association="Self.FK_BemsPeakInfo_CmSite">
+      <End Role="CmSite" EntitySet="CmSite" />
+      <End Role="BemsPeakInfo" EntitySet="BemsPeakInfo" />
+    </AssociationSet>
+    <AssociationSet Name="FK_BemsPeopleIncrease_CmSite" Association="Self.FK_BemsPeopleIncrease_CmSite">
+      <End Role="CmSite" EntitySet="CmSite" />
+      <End Role="BemsPeopleIncrease" EntitySet="BemsPeopleIncrease" />
+    </AssociationSet>
+    <AssociationSet Name="FK_BemsPriceCode_BemsFuelType" Association="Self.FK_BemsPriceCode_BemsFuelType">
+      <End Role="BemsFuelType" EntitySet="BemsFuelType" />
+      <End Role="BemsPriceCode" EntitySet="BemsPriceCode" />
+    </AssociationSet>
+    <AssociationSet Name="FK_BemsPriceFormula_BemsFormula" Association="Self.FK_BemsPriceFormula_BemsFormula">
+      <End Role="BemsFormula" EntitySet="BemsFormula" />
+      <End Role="BemsPriceFormula" EntitySet="BemsPriceFormula" />
+    </AssociationSet>
+    <AssociationSet Name="FK_BemsPriceFormula_BemsPriceType" Association="Self.FK_BemsPriceFormula_BemsPriceType">
+      <End Role="BemsPriceType" EntitySet="BemsPriceType" />
+      <End Role="BemsPriceFormula" EntitySet="BemsPriceFormula" />
+    </AssociationSet>
+    <AssociationSet Name="FK_BemsPriceMeta_BemsPriceType" Association="Self.FK_BemsPriceMeta_BemsPriceType">
+      <End Role="BemsPriceType" EntitySet="BemsPriceType" />
+      <End Role="BemsPriceMeta" EntitySet="BemsPriceMeta" />
+    </AssociationSet>
+    <AssociationSet Name="FK_BemsPriceType_BemsFuelType1" Association="Self.FK_BemsPriceType_BemsFuelType1">
+      <End Role="BemsFuelType" EntitySet="BemsFuelType" />
+      <End Role="BemsPriceType" EntitySet="BemsPriceType" />
+    </AssociationSet>
+    <AssociationSet Name="FK_BemsRentalRate_CmSite" Association="Self.FK_BemsRentalRate_CmSite">
+      <End Role="CmSite" EntitySet="CmSite" />
+      <End Role="BemsRentalRate" EntitySet="BemsRentalRate" />
+    </AssociationSet>
+    <AssociationSet Name="FK_BemsSitePrice_BemsFuelType" Association="Self.FK_BemsSitePrice_BemsFuelType">
+      <End Role="BemsFuelType" EntitySet="BemsFuelType" />
+      <End Role="BemsSitePrice" EntitySet="BemsSitePrice" />
+    </AssociationSet>
+    <AssociationSet Name="FK_BemsSitePrice_BemsPriceCode" Association="Self.FK_BemsSitePrice_BemsPriceCode">
+      <End Role="BemsPriceCode" EntitySet="BemsPriceCode" />
+      <End Role="BemsSitePrice" EntitySet="BemsSitePrice" />
+    </AssociationSet>
+    <AssociationSet Name="FK_BemsSitePrice_BemsPriceType" Association="Self.FK_BemsSitePrice_BemsPriceType">
+      <End Role="BemsPriceType" EntitySet="BemsPriceType" />
+      <End Role="BemsSitePrice" EntitySet="BemsSitePrice" />
+    </AssociationSet>
+    <AssociationSet Name="FK_BemsSitePrice_CmSite1" Association="Self.FK_BemsSitePrice_CmSite1">
+      <End Role="CmSite" EntitySet="CmSite" />
+      <End Role="BemsSitePrice" EntitySet="BemsSitePrice" />
+    </AssociationSet>
+    <AssociationSet Name="FK_BemsSitePriceHistory_BemsFuelType" Association="Self.FK_BemsSitePriceHistory_BemsFuelType">
+      <End Role="BemsFuelType" EntitySet="BemsFuelType" />
+      <End Role="BemsSitePriceHistory" EntitySet="BemsSitePriceHistory" />
+    </AssociationSet>
+    <AssociationSet Name="FK_BemsSitePriceHistory_BemsPriceCode" Association="Self.FK_BemsSitePriceHistory_BemsPriceCode">
+      <End Role="BemsPriceCode" EntitySet="BemsPriceCode" />
+      <End Role="BemsSitePriceHistory" EntitySet="BemsSitePriceHistory" />
+    </AssociationSet>
+    <AssociationSet Name="FK_BemsSitePriceHistory_BemsPriceType" Association="Self.FK_BemsSitePriceHistory_BemsPriceType">
+      <End Role="BemsPriceType" EntitySet="BemsPriceType" />
+      <End Role="BemsSitePriceHistory" EntitySet="BemsSitePriceHistory" />
+    </AssociationSet>
+    <AssociationSet Name="FK_BemsSitePriceHistory_CmSite" Association="Self.FK_BemsSitePriceHistory_CmSite">
+      <End Role="CmSite" EntitySet="CmSite" />
+      <End Role="BemsSitePriceHistory" EntitySet="BemsSitePriceHistory" />
+    </AssociationSet>
+    <AssociationSet Name="FK_CmAnnouncement_CmBusinessField" Association="Self.FK_CmAnnouncement_CmBusinessField">
+      <End Role="CmBusinessField" EntitySet="CmBusinessField" />
+      <End Role="CmAnnouncement" EntitySet="CmAnnouncement" />
+    </AssociationSet>
+    <AssociationSet Name="FK_CmAnnouncement_CmFile" Association="Self.FK_CmAnnouncement_CmFile">
+      <End Role="CmFile" EntitySet="CmFile" />
+      <End Role="CmAnnouncement" EntitySet="CmAnnouncement" />
+    </AssociationSet>
+    <AssociationSet Name="FK_CmAnnouncement_CmUser" Association="Self.FK_CmAnnouncement_CmUser">
+      <End Role="CmUser" EntitySet="CmUser" />
+      <End Role="CmAnnouncement" EntitySet="CmAnnouncement" />
+    </AssociationSet>
+    <AssociationSet Name="FK_CmFacilityTempSet_CmFacility" Association="Self.FK_CmFacilityTempSet_CmFacility">
+      <End Role="CmFacility" EntitySet="CmFacility" />
+      <End Role="CmFacilityTempSet" EntitySet="CmFacilityTempSet" />
+    </AssociationSet>
+    <AssociationSet Name="FK_CmFacilityTempSet_CmSite" Association="Self.FK_CmFacilityTempSet_CmSite">
+      <End Role="CmSite" EntitySet="CmSite" />
+      <End Role="CmFacilityTempSet" EntitySet="CmFacilityTempSet" />
+    </AssociationSet>
+    <AssociationSet Name="FK_CmMenu_CmSite" Association="Self.FK_CmMenu_CmSite">
+      <End Role="CmSite" EntitySet="CmSite" />
+      <End Role="CmMenu" EntitySet="CmMenu" />
+    </AssociationSet>
+    <AssociationSet Name="FK_CmPartnerType_CmPartner" Association="Self.FK_CmPartnerType_CmPartner">
+      <End Role="CmPartnerType" EntitySet="CmPartnerType" />
+      <End Role="CmPartner" EntitySet="CmPartner" />
+    </AssociationSet>
+    <AssociationSet Name="FK_CmPatrolCourse_CmSite" Association="Self.FK_CmPatrolCourse_CmSite">
+      <End Role="CmSite" EntitySet="CmSite" />
+      <End Role="CmPatrolCourse" EntitySet="CmPatrolCourse" />
+    </AssociationSet>
+    <AssociationSet Name="FK_CmPatrolCoursePos_CmPatrolCourse" Association="Self.FK_CmPatrolCoursePos_CmPatrolCourse">
+      <End Role="CmPatrolCourse" EntitySet="CmPatrolCourse" />
+      <End Role="CmPatrolCoursePos" EntitySet="CmPatrolCoursePos" />
+    </AssociationSet>
+    <AssociationSet Name="FK_CmPatrolCoursePos_CmSite" Association="Self.FK_CmPatrolCoursePos_CmSite">
+      <End Role="CmSite" EntitySet="CmSite" />
+      <End Role="CmPatrolCoursePos" EntitySet="CmPatrolCoursePos" />
+    </AssociationSet>
+    <AssociationSet Name="FK_CmPatrolGroup_CmSite" Association="Self.FK_CmPatrolGroup_CmSite">
+      <End Role="CmSite" EntitySet="CmSite" />
+      <End Role="CmPatrolGroup" EntitySet="CmPatrolGroup" />
+    </AssociationSet>
+    <AssociationSet Name="FK_CmPatrolGroupUser_CmPatrolGroup" Association="Self.FK_CmPatrolGroupUser_CmPatrolGroup">
+      <End Role="CmPatrolGroup" EntitySet="CmPatrolGroup" />
+      <End Role="CmPatrolGroupUser" EntitySet="CmPatrolGroupUser" />
+    </AssociationSet>
+    <AssociationSet Name="FK_CmPatrolGroupUser_CmUser" Association="Self.FK_CmPatrolGroupUser_CmUser">
+      <End Role="CmUser" EntitySet="CmUser" />
+      <End Role="CmPatrolGroupUser" EntitySet="CmPatrolGroupUser" />
+    </AssociationSet>
+    <AssociationSet Name="FK_CmPatrolHistory_CmPatrolSchedule" Association="Self.FK_CmPatrolHistory_CmPatrolSchedule">
+      <End Role="CmPatrolSchedule" EntitySet="CmPatrolSchedule" />
+      <End Role="CmPatrolHistory" EntitySet="CmPatrolHistory" />
+    </AssociationSet>
+    <AssociationSet Name="FK_CmPatrolHistory_CmPatrolType" Association="Self.FK_CmPatrolHistory_CmPatrolType">
+      <End Role="CmPatrolType" EntitySet="CmPatrolType" />
+      <End Role="CmPatrolHistory" EntitySet="CmPatrolHistory" />
+    </AssociationSet>
+    <AssociationSet Name="FK_CmPatrolHistory_CmSite" Association="Self.FK_CmPatrolHistory_CmSite">
+      <End Role="CmSite" EntitySet="CmSite" />
+      <End Role="CmPatrolHistory" EntitySet="CmPatrolHistory" />
+    </AssociationSet>
+    <AssociationSet Name="FK_CmPatrolHistoryPos_CmPatrolPos" Association="Self.FK_CmPatrolHistoryPos_CmPatrolPos">
+      <End Role="CmPatrolPos" EntitySet="CmPatrolPos" />
+      <End Role="CmPatrolHistoryPos" EntitySet="CmPatrolHistoryPos" />
+    </AssociationSet>
+    <AssociationSet Name="FK_CmPatrolHistoryPos_CmPatrolType" Association="Self.FK_CmPatrolHistoryPos_CmPatrolType">
+      <End Role="CmPatrolType" EntitySet="CmPatrolType" />
+      <End Role="CmPatrolHistoryPos" EntitySet="CmPatrolHistoryPos" />
+    </AssociationSet>
+    <AssociationSet Name="FK_CmPatrolHistoryPos_CmSite" Association="Self.FK_CmPatrolHistoryPos_CmSite">
+      <End Role="CmSite" EntitySet="CmSite" />
+      <End Role="CmPatrolHistoryPos" EntitySet="CmPatrolHistoryPos" />
+    </AssociationSet>
+    <AssociationSet Name="FK_CmPatrolPlan_CmPatrolCourse" Association="Self.FK_CmPatrolPlan_CmPatrolCourse">
+      <End Role="CmPatrolCourse" EntitySet="CmPatrolCourse" />
+      <End Role="CmPatrolPlan" EntitySet="CmPatrolPlan" />
+    </AssociationSet>
+    <AssociationSet Name="FK_CmPatrolPlan_CmPatrolGroup" Association="Self.FK_CmPatrolPlan_CmPatrolGroup">
+      <End Role="CmPatrolGroup" EntitySet="CmPatrolGroup" />
+      <End Role="CmPatrolPlan" EntitySet="CmPatrolPlan" />
+    </AssociationSet>
+    <AssociationSet Name="FK_CmPatrolPlan_CmSite" Association="Self.FK_CmPatrolPlan_CmSite">
+      <End Role="CmSite" EntitySet="CmSite" />
+      <End Role="CmPatrolPlan" EntitySet="CmPatrolPlan" />
+    </AssociationSet>
+    <AssociationSet Name="FK_CmPatrolPos_CmBuilding" Association="Self.FK_CmPatrolPos_CmBuilding">
+      <End Role="CmBuilding" EntitySet="CmBuilding" />
+      <End Role="CmPatrolPos" EntitySet="CmPatrolPos" />
+    </AssociationSet>
+    <AssociationSet Name="FK_CmPatrolPos_CmFloor" Association="Self.FK_CmPatrolPos_CmFloor">
+      <End Role="CmFloor" EntitySet="CmFloor" />
+      <End Role="CmPatrolPos" EntitySet="CmPatrolPos" />
+    </AssociationSet>
+    <AssociationSet Name="FK_CmPatrolPos_CmSite" Association="Self.FK_CmPatrolPos_CmSite">
+      <End Role="CmSite" EntitySet="CmSite" />
+      <End Role="CmPatrolPos" EntitySet="CmPatrolPos" />
+    </AssociationSet>
+    <AssociationSet Name="FK_CmPatrolSchedule_CmPatrolPlan" Association="Self.FK_CmPatrolSchedule_CmPatrolPlan">
+      <End Role="CmPatrolPlan" EntitySet="CmPatrolPlan" />
+      <End Role="CmPatrolSchedule" EntitySet="CmPatrolSchedule" />
+    </AssociationSet>
+    <AssociationSet Name="FK_CmPatrolSchedule_CmSite" Association="Self.FK_CmPatrolSchedule_CmSite">
+      <End Role="CmSite" EntitySet="CmSite" />
+      <End Role="CmPatrolSchedule" EntitySet="CmPatrolSchedule" />
+    </AssociationSet>
+    <AssociationSet Name="FK_CmPatrolType_CmSite" Association="Self.FK_CmPatrolType_CmSite">
+      <End Role="CmSite" EntitySet="CmSite" />
+      <End Role="CmPatrolType" EntitySet="CmPatrolType" />
+    </AssociationSet>
+    <AssociationSet Name="FK_CmUser_CmBusinessField" Association="Self.FK_CmUser_CmBusinessField">
+      <End Role="CmBusinessField" EntitySet="CmBusinessField" />
+      <End Role="CmUser" EntitySet="CmUser" />
+    </AssociationSet>
+    <AssociationSet Name="FK_CmUser_CmCompany" Association="Self.FK_CmUser_CmCompany">
+      <End Role="CmCompany" EntitySet="CmCompany" />
+      <End Role="CmUser" EntitySet="CmUser" />
+    </AssociationSet>
+    <AssociationSet Name="FK_CmUser_CmDepartment" Association="Self.FK_CmUser_CmDepartment">
+      <End Role="CmDepartment" EntitySet="CmDepartment" />
+      <End Role="CmUser" EntitySet="CmUser" />
+    </AssociationSet>
+    <AssociationSet Name="FK_CmUser_CmPosition" Association="Self.FK_CmUser_CmPosition">
+      <End Role="CmPosition" EntitySet="CmPosition" />
+      <End Role="CmUser" EntitySet="CmUser" />
+    </AssociationSet>
+    <AssociationSet Name="FK_CmUser_CmUserGroup" Association="Self.FK_CmUser_CmUserGroup">
+      <End Role="CmUserGroup" EntitySet="CmUserGroup" />
+      <End Role="CmUser" EntitySet="CmUser" />
+    </AssociationSet>
+    <AssociationSet Name="FK_CmUserLoginHistory_CmUser" Association="Self.FK_CmUserLoginHistory_CmUser">
+      <End Role="CmUser" EntitySet="CmUser" />
+      <End Role="CmUserLoginHistory" EntitySet="CmUserLoginHistory" />
+    </AssociationSet>
+    <AssociationSet Name="FK_CmZoneTempHumiSet_CmBuilding" Association="Self.FK_CmZoneTempHumiSet_CmBuilding">
+      <End Role="CmBuilding" EntitySet="CmBuilding" />
+      <End Role="CmZoneTempHumiSet" EntitySet="CmZoneTempHumiSet" />
+    </AssociationSet>
+    <AssociationSet Name="FK_CmZoneTempHumiSet_CmFloor" Association="Self.FK_CmZoneTempHumiSet_CmFloor">
+      <End Role="CmFloor" EntitySet="CmFloor" />
+      <End Role="CmZoneTempHumiSet" EntitySet="CmZoneTempHumiSet" />
+    </AssociationSet>
+    <AssociationSet Name="FK_CmZoneTempHumiSet_CmSite" Association="Self.FK_CmZoneTempHumiSet_CmSite">
+      <End Role="CmSite" EntitySet="CmSite" />
+      <End Role="CmZoneTempHumiSet" EntitySet="CmZoneTempHumiSet" />
+    </AssociationSet>
+    <AssociationSet Name="FK_CmZoneTempHumiSet_CmZone" Association="Self.FK_CmZoneTempHumiSet_CmZone">
+      <End Role="CmZone" EntitySet="CmZone" />
+      <End Role="CmZoneTempHumiSet" EntitySet="CmZoneTempHumiSet" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsAccident_CmCompany" Association="Self.FK_FmsAccident_CmCompany">
+      <End Role="CmCompany" EntitySet="CmCompany" />
+      <End Role="FmsAccident" EntitySet="FmsAccident" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsAccident_CmDepartment" Association="Self.FK_FmsAccident_CmDepartment">
+      <End Role="CmDepartment" EntitySet="CmDepartment" />
+      <End Role="FmsAccident" EntitySet="FmsAccident" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsAccident_CmFile1" Association="Self.FK_FmsAccident_CmFile1">
+      <End Role="CmFile" EntitySet="CmFile" />
+      <End Role="FmsAccident" EntitySet="FmsAccident" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsAccident_CmFile2" Association="Self.FK_FmsAccident_CmFile2">
+      <End Role="CmFile" EntitySet="CmFile" />
+      <End Role="FmsAccident" EntitySet="FmsAccident" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsAccident_CmFile3" Association="Self.FK_FmsAccident_CmFile3">
+      <End Role="CmFile" EntitySet="CmFile" />
+      <End Role="FmsAccident" EntitySet="FmsAccident" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsAccident_FmsAccidentCodeType" Association="Self.FK_FmsAccident_FmsAccidentCodeType">
+      <End Role="FmsAccidentCodeType" EntitySet="FmsAccidentCodeType" />
+      <End Role="FmsAccident" EntitySet="FmsAccident" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsBudgetDetail_FmsBudget" Association="Self.FK_FmsBudgetDetail_FmsBudget">
+      <End Role="FmsBudget" EntitySet="FmsBudget" />
+      <End Role="FmsBudgetDetail" EntitySet="FmsBudgetDetail" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsBudgetDetail_FmsBudgetCodeClass" Association="Self.FK_FmsBudgetDetail_FmsBudgetCodeClass">
+      <End Role="FmsBudgetCodeClass" EntitySet="FmsBudgetCodeClass" />
+      <End Role="FmsBudgetDetail" EntitySet="FmsBudgetDetail" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsBudgetDetailExecution_FmsBudgetDetail" Association="Self.FK_FmsBudgetDetailExecution_FmsBudgetDetail">
+      <End Role="FmsBudgetDetail" EntitySet="FmsBudgetDetail" />
+      <End Role="FmsBudgetDetailExecution" EntitySet="FmsBudgetDetailExecution" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsConstruction_CmFile1" Association="Self.FK_FmsConstruction_CmFile1">
+      <End Role="CmFile" EntitySet="CmFile" />
+      <End Role="FmsConstruction" EntitySet="FmsConstruction" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsConstruction_CmFile2" Association="Self.FK_FmsConstruction_CmFile2">
+      <End Role="CmFile" EntitySet="CmFile" />
+      <End Role="FmsConstruction" EntitySet="FmsConstruction" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsConstruction_CmFile3" Association="Self.FK_FmsConstruction_CmFile3">
+      <End Role="CmFile" EntitySet="CmFile" />
+      <End Role="FmsConstruction" EntitySet="FmsConstruction" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsConstruction_CmPartner" Association="Self.FK_FmsConstruction_CmPartner">
+      <End Role="CmPartner" EntitySet="CmPartner" />
+      <End Role="FmsConstruction" EntitySet="FmsConstruction" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsConstruction_FmsConstructionCodeProgress" Association="Self.FK_FmsConstruction_FmsConstructionCodeProgress">
+      <End Role="FmsConstructionCodeProgress" EntitySet="FmsConstructionCodeProgress" />
+      <End Role="FmsConstruction" EntitySet="FmsConstruction" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsConstruction_FmsConstructionCodeType" Association="Self.FK_FmsConstruction_FmsConstructionCodeType">
+      <End Role="FmsConstructionCodeType" EntitySet="FmsConstructionCodeType" />
+      <End Role="FmsConstruction" EntitySet="FmsConstruction" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsConstructionEstimation_CmUser" Association="Self.FK_FmsConstructionEstimation_CmUser">
+      <End Role="CmUser" EntitySet="CmUser" />
+      <End Role="FmsConstructionEstimation" EntitySet="FmsConstructionEstimation" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsConstructionEstimation_FmsConstruction" Association="Self.FK_FmsConstructionEstimation_FmsConstruction">
+      <End Role="FmsConstruction" EntitySet="FmsConstruction" />
+      <End Role="FmsConstructionEstimation" EntitySet="FmsConstructionEstimation" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsContract_CmPartner" Association="Self.FK_FmsContract_CmPartner">
+      <End Role="CmPartner" EntitySet="CmPartner" />
+      <End Role="FmsContract" EntitySet="FmsContract" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsContract_CmPartnerType" Association="Self.FK_FmsContract_CmPartnerType">
+      <End Role="CmPartnerType" EntitySet="CmPartnerType" />
+      <End Role="FmsContract" EntitySet="FmsContract" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsContract_FmsContractClass" Association="Self.FK_FmsContract_FmsContractClass">
+      <End Role="FmsContractClass" EntitySet="FmsContractClass" />
+      <End Role="FmsContract" EntitySet="FmsContract" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsContract_FmsContractMethod" Association="Self.FK_FmsContract_FmsContractMethod">
+      <End Role="FmsContractMethod" EntitySet="FmsContractMethod" />
+      <End Role="FmsContract" EntitySet="FmsContract" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsContract_FmsContractType" Association="Self.FK_FmsContract_FmsContractType">
+      <End Role="FmsContractType" EntitySet="FmsContractType" />
+      <End Role="FmsContract" EntitySet="FmsContract" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsContract_FmsPaymentType" Association="Self.FK_FmsContract_FmsPaymentType">
+      <End Role="FmsPaymentType" EntitySet="FmsPaymentType" />
+      <End Role="FmsContract" EntitySet="FmsContract" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsDailyCheckReport_CmUser" Association="Self.FK_FmsDailyCheckReport_CmUser">
+      <End Role="CmUser" EntitySet="CmUser" />
+      <End Role="FmsDailyCheckReport" EntitySet="FmsDailyCheckReport" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsDailyReport_CmBusinessField" Association="Self.FK_FmsDailyReport_CmBusinessField">
+      <End Role="CmBusinessField" EntitySet="CmBusinessField" />
+      <End Role="FmsDailyReport" EntitySet="FmsDailyReport" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsDailyReport_CmUser" Association="Self.FK_FmsDailyReport_CmUser">
+      <End Role="CmUser" EntitySet="CmUser" />
+      <End Role="FmsDailyReport" EntitySet="FmsDailyReport" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsEquipment_CmUser" Association="Self.FK_FmsEquipment_CmUser">
+      <End Role="CmUser" EntitySet="CmUser" />
+      <End Role="FmsEquipment" EntitySet="FmsEquipment" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsEquipment_FmsEquipmentCodeType" Association="Self.FK_FmsEquipment_FmsEquipmentCodeType">
+      <End Role="FmsEquipmentCodeType" EntitySet="FmsEquipmentCodeType" />
+      <End Role="FmsEquipment" EntitySet="FmsEquipment" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsEquipment_FmsMaterialWarehouse" Association="Self.FK_FmsEquipment_FmsMaterialWarehouse">
+      <End Role="FmsMaterialWarehouse" EntitySet="FmsMaterialWarehouse" />
+      <End Role="FmsEquipment" EntitySet="FmsEquipment" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsEquipmentHistory_FmsEquipment" Association="Self.FK_FmsEquipmentHistory_FmsEquipment">
+      <End Role="FmsEquipment" EntitySet="FmsEquipment" />
+      <End Role="FmsEquipmentHistory" EntitySet="FmsEquipmentHistory" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsEquipmentHistory_FmsEquipmentCodeStateType" Association="Self.FK_FmsEquipmentHistory_FmsEquipmentCodeStateType">
+      <End Role="FmsEquipmentCodeStateType" EntitySet="FmsEquipmentCodeStateType" />
+      <End Role="FmsEquipmentHistory" EntitySet="FmsEquipmentHistory" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsEquipmentHistory_FmsEquipmentRentInfo" Association="Self.FK_FmsEquipmentHistory_FmsEquipmentRentInfo">
+      <End Role="FmsEquipmentRentInfo" EntitySet="FmsEquipmentRentInfo" />
+      <End Role="FmsEquipmentHistory" EntitySet="FmsEquipmentHistory" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsEquipmentRentInfo_CmUser" Association="Self.FK_FmsEquipmentRentInfo_CmUser">
+      <End Role="CmUser" EntitySet="CmUser" />
+      <End Role="FmsEquipmentRentInfo" EntitySet="FmsEquipmentRentInfo" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsEquipmentRentInfo_CmUser1" Association="Self.FK_FmsEquipmentRentInfo_CmUser1">
+      <End Role="CmUser" EntitySet="CmUser" />
+      <End Role="FmsEquipmentRentInfo" EntitySet="FmsEquipmentRentInfo" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsEquipmentRentInfo_FmsEquipmentCodeStateType" Association="Self.FK_FmsEquipmentRentInfo_FmsEquipmentCodeStateType">
+      <End Role="FmsEquipmentCodeStateType" EntitySet="FmsEquipmentCodeStateType" />
+      <End Role="FmsEquipmentRentInfo" EntitySet="FmsEquipmentRentInfo" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsFacilityOperationReport_CmUser" Association="Self.FK_FmsFacilityOperationReport_CmUser">
+      <End Role="CmUser" EntitySet="CmUser" />
+      <End Role="FmsFacilityOperationReport" EntitySet="FmsFacilityOperationReport" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsManual_FmsManualType" Association="Self.FK_FmsManual_FmsManualType">
+      <End Role="FmsManualType" EntitySet="FmsManualType" />
+      <End Role="FmsManual" EntitySet="FmsManual" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsManualHistory_CmFile" Association="Self.FK_FmsManualHistory_CmFile">
+      <End Role="CmFile" EntitySet="CmFile" />
+      <End Role="FmsManualHistory" EntitySet="FmsManualHistory" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsManualHistory_CmUser" Association="Self.FK_FmsManualHistory_CmUser">
+      <End Role="CmUser" EntitySet="CmUser" />
+      <End Role="FmsManualHistory" EntitySet="FmsManualHistory" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsManualHistory_FmsManual" Association="Self.FK_FmsManualHistory_FmsManual">
+      <End Role="FmsManual" EntitySet="FmsManual" />
+      <End Role="FmsManualHistory" EntitySet="FmsManualHistory" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsMaterial_CmBusinessField" Association="Self.FK_FmsMaterial_CmBusinessField">
+      <End Role="CmBusinessField" EntitySet="CmBusinessField" />
+      <End Role="FmsMaterial" EntitySet="FmsMaterial" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsMaterial_CmFile" Association="Self.FK_FmsMaterial_CmFile">
+      <End Role="CmFile" EntitySet="CmFile" />
+      <End Role="FmsMaterial" EntitySet="FmsMaterial" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsMaterial_CmSite" Association="Self.FK_FmsMaterial_CmSite">
+      <End Role="CmSite" EntitySet="CmSite" />
+      <End Role="FmsMaterial" EntitySet="FmsMaterial" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsMaterial_FmsMaterialCodeLocation" Association="Self.FK_FmsMaterial_FmsMaterialCodeLocation">
+      <End Role="FmsMaterialCodeLocation" EntitySet="FmsMaterialCodeLocation" />
+      <End Role="FmsMaterial" EntitySet="FmsMaterial" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsMaterial_FmsMaterialCodeType" Association="Self.FK_FmsMaterial_FmsMaterialCodeType">
+      <End Role="FmsMaterialCodeType" EntitySet="FmsMaterialCodeType" />
+      <End Role="FmsMaterial" EntitySet="FmsMaterial" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsMaterial_FmsMaterialTradeCompany" Association="Self.FK_FmsMaterial_FmsMaterialTradeCompany">
+      <End Role="FmsMaterialTradeCompany" EntitySet="FmsMaterialTradeCompany" />
+      <End Role="FmsMaterial" EntitySet="FmsMaterial" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsMaterial_FmsMaterialWarehouse" Association="Self.FK_FmsMaterial_FmsMaterialWarehouse">
+      <End Role="FmsMaterialWarehouse" EntitySet="FmsMaterialWarehouse" />
+      <End Role="FmsMaterial" EntitySet="FmsMaterial" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsMaterialPurchaseOrder_FmsMaterialPurchaseRequest" Association="Self.FK_FmsMaterialPurchaseOrder_FmsMaterialPurchaseRequest">
+      <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
+      <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsMaterialPurchaseOrderMaterial_FmsMaterial" Association="Self.FK_FmsMaterialPurchaseOrderMaterial_FmsMaterial">
+      <End Role="FmsMaterial" EntitySet="FmsMaterial" />
+      <End Role="FmsMaterialPurchaseOrderMaterial" EntitySet="FmsMaterialPurchaseOrderMaterial" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsMaterialPurchaseOrderMaterial_FmsMaterialPurchaseOrder" Association="Self.FK_FmsMaterialPurchaseOrderMaterial_FmsMaterialPurchaseOrder">
+      <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
+      <End Role="FmsMaterialPurchaseOrderMaterial" EntitySet="FmsMaterialPurchaseOrderMaterial" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsMaterialPurchaseRequest_FmsMaterialCodePurchaseType" Association="Self.FK_FmsMaterialPurchaseRequest_FmsMaterialCodePurchaseType">
+      <End Role="FmsMaterialCodePurchaseType" EntitySet="FmsMaterialCodePurchaseType" />
+      <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsMaterialPurchaseRequestMaterial_FmsMaterial" Association="Self.FK_FmsMaterialPurchaseRequestMaterial_FmsMaterial">
+      <End Role="FmsMaterial" EntitySet="FmsMaterial" />
+      <End Role="FmsMaterialPurchaseRequestMaterial" EntitySet="FmsMaterialPurchaseRequestMaterial" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsMaterialPurchaseRequestMaterial_FmsMaterialPurchaseRequest" Association="Self.FK_FmsMaterialPurchaseRequestMaterial_FmsMaterialPurchaseRequest">
+      <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
+      <End Role="FmsMaterialPurchaseRequestMaterial" EntitySet="FmsMaterialPurchaseRequestMaterial" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsMaterialRelease_CmBusinessField" Association="Self.FK_FmsMaterialRelease_CmBusinessField">
+      <End Role="CmBusinessField" EntitySet="CmBusinessField" />
+      <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsMaterialRelease_CmSite" Association="Self.FK_FmsMaterialRelease_CmSite">
+      <End Role="CmSite" EntitySet="CmSite" />
+      <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsMaterialRelease_CmUser" Association="Self.FK_FmsMaterialRelease_CmUser">
+      <End Role="CmUser" EntitySet="CmUser" />
+      <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsMaterialRelease_CmUser1" Association="Self.FK_FmsMaterialRelease_CmUser1">
+      <End Role="CmUser" EntitySet="CmUser" />
+      <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsMaterialRelease_FmsMaterial" Association="Self.FK_FmsMaterialRelease_FmsMaterial">
+      <End Role="FmsMaterial" EntitySet="FmsMaterial" />
+      <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsMaterialRelease_FmsMaterialCodeAdjustmentType" Association="Self.FK_FmsMaterialRelease_FmsMaterialCodeAdjustmentType">
+      <End Role="FmsMaterialCodeAdjustmentType" EntitySet="FmsMaterialCodeAdjustmentType" />
+      <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsMaterialRelease_FmsMaterialCodeReleaseType" Association="Self.FK_FmsMaterialRelease_FmsMaterialCodeReleaseType">
+      <End Role="FmsMaterialCodeReleaseType" EntitySet="FmsMaterialCodeReleaseType" />
+      <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsMaterialRelease_FmsWorkResult" Association="Self.FK_FmsMaterialRelease_FmsWorkResult">
+      <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
+      <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsMaterialStored_FmsMaterial" Association="Self.FK_FmsMaterialStored_FmsMaterial">
+      <End Role="FmsMaterial" EntitySet="FmsMaterial" />
+      <End Role="FmsMaterialStored" EntitySet="FmsMaterialStored" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsMaterialStored_FmsMaterialPurchaseOrder" Association="Self.FK_FmsMaterialStored_FmsMaterialPurchaseOrder">
+      <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
+      <End Role="FmsMaterialStored" EntitySet="FmsMaterialStored" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsMaterialStored_FmsMaterialWarehouse" Association="Self.FK_FmsMaterialStored_FmsMaterialWarehouse">
+      <End Role="FmsMaterialWarehouse" EntitySet="FmsMaterialWarehouse" />
+      <End Role="FmsMaterialStored" EntitySet="FmsMaterialStored" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsMonthlyReport_CmUser" Association="Self.FK_FmsMonthlyReport_CmUser">
+      <End Role="CmUser" EntitySet="CmUser" />
+      <End Role="FmsMonthlyReport" EntitySet="FmsMonthlyReport" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsReport_CmBusinessField" Association="Self.FK_FmsReport_CmBusinessField">
+      <End Role="CmBusinessField" EntitySet="CmBusinessField" />
+      <End Role="FmsReport" EntitySet="FmsReport" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsReport_CmFile" Association="Self.FK_FmsReport_CmFile">
+      <End Role="CmFile" EntitySet="CmFile" />
+      <End Role="FmsReport" EntitySet="FmsReport" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsReport_CmSite" Association="Self.FK_FmsReport_CmSite">
+      <End Role="CmSite" EntitySet="CmSite" />
+      <End Role="FmsReport" EntitySet="FmsReport" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsReport_CmUser" Association="Self.FK_FmsReport_CmUser">
+      <End Role="CmUser" EntitySet="CmUser" />
+      <End Role="FmsReport" EntitySet="FmsReport" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsReport_CmUser1" Association="Self.FK_FmsReport_CmUser1">
+      <End Role="CmUser" EntitySet="CmUser" />
+      <End Role="FmsReport" EntitySet="FmsReport" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsReport_CmUser2" Association="Self.FK_FmsReport_CmUser2">
+      <End Role="CmUser" EntitySet="CmUser" />
+      <End Role="FmsReport" EntitySet="FmsReport" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsWorkOrderToFacility_CmFacility" Association="Self.FK_FmsWorkOrderToFacility_CmFacility">
+      <End Role="CmFacility" EntitySet="CmFacility" />
+      <End Role="FmsWorkOrderToFacility" EntitySet="FmsWorkOrderToFacility" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsWorkRequest_CmPartner" Association="Self.FK_FmsWorkRequest_CmPartner">
+      <End Role="CmPartner" EntitySet="CmPartner" />
+      <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsWorkRequestToFacility_CmFacility" Association="Self.FK_FmsWorkRequestToFacility_CmFacility">
+      <End Role="CmFacility" EntitySet="CmFacility" />
+      <End Role="FmsWorkRequestToFacility" EntitySet="FmsWorkRequestToFacility" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsWorkResultCheckItemMaterial_FmsMaterial" Association="Self.FK_FmsWorkResultCheckItemMaterial_FmsMaterial">
+      <End Role="FmsMaterial" EntitySet="FmsMaterial" />
+      <End Role="FmsWorkResultCheckItemMaterial" EntitySet="FmsWorkResultCheckItemMaterial" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsWorkResultCheckItemMaterial_FmsWorkResult" Association="Self.FK_FmsWorkResultCheckItemMaterial_FmsWorkResult">
+      <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
+      <End Role="FmsWorkResultCheckItemMaterial" EntitySet="FmsWorkResultCheckItemMaterial" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsWorkResultCheckItemMaterial_FmsWorkResultCheckItem" Association="Self.FK_FmsWorkResultCheckItemMaterial_FmsWorkResultCheckItem">
+      <End Role="FmsWorkResultCheckItem" EntitySet="FmsWorkResultCheckItem" />
+      <End Role="FmsWorkResultCheckItemMaterial" EntitySet="FmsWorkResultCheckItemMaterial" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsWorkSchedule_CmPartner" Association="Self.FK_FmsWorkSchedule_CmPartner">
+      <End Role="CmPartner" EntitySet="CmPartner" />
+      <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
+    </AssociationSet>
+    <AssociationSet Name="FK_FmsWorkScheduleToFacility_CmFacility" Association="Self.FK_FmsWorkScheduleToFacility_CmFacility">
+      <End Role="CmFacility" EntitySet="CmFacility" />
+      <End Role="FmsWorkScheduleToFacility" EntitySet="FmsWorkScheduleToFacility" />
+    </AssociationSet>
+  </EntityContainer>
+</Schema>

BIN
.svn/pristine/0a/0aaa18d746764b1b9ec42039769fb1f5a9bf619d.svn-base


BIN
.svn/pristine/0d/0d3195fb46f483563ff756e30e74bb59ed5ab4be.svn-base


BIN
.svn/pristine/15/1567cb874e30f00f415e54a886342ee26d53416d.svn-base


+ 489 - 0
.svn/pristine/19/192a0998c4fea9d23a9de450a9f3b90be4d0a838.svn-base

@@ -0,0 +1,489 @@
+<?xml version="1.0" encoding="utf-8"?>
+<edmx:Edmx Version="3.0" xmlns:edmx="http://schemas.microsoft.com/ado/2009/11/edmx">
+ <!-- EF Designer content (DO NOT EDIT MANUALLY BELOW HERE) -->
+  <edmx:Designer xmlns="http://schemas.microsoft.com/ado/2009/11/edmx">
+    <!-- Diagram content (shape and connector positions) -->
+    <edmx:Diagrams>
+      <Diagram DiagramId="8edb4204089945139f6e041b796adf2a" Name="Diagram1" ZoomLevel="74">
+        <EntityTypeShape EntityType="iBemsModel.BemsAnalysisType" Width="1.5" PointX="13.5" PointY="93.625" IsExpanded="true" />
+        <EntityTypeShape EntityType="iBemsModel.BemsControlPointHistory" Width="1.5" PointX="12.75" PointY="100.125" IsExpanded="true" />
+        <EntityTypeShape EntityType="iBemsModel.BemsFacilityType" Width="1.5" PointX="5.25" PointY="92.75" IsExpanded="true" />
+        <EntityTypeShape EntityType="iBemsModel.BemsFactorCo2" Width="1.5" PointX="7.5" PointY="87.125" IsExpanded="true" />
+        <EntityTypeShape EntityType="iBemsModel.BemsFactorToe" Width="1.5" PointX="7.5" PointY="84.25" IsExpanded="true" />
+        <EntityTypeShape EntityType="iBemsModel.BemsFormula" Width="1.5" PointX="7.5" PointY="89.5" IsExpanded="true" />
+        <EntityTypeShape EntityType="iBemsModel.BemsFormulaBase" Width="1.5" PointX="5.25" PointY="89.75" IsExpanded="true" />
+        <EntityTypeShape EntityType="iBemsModel.BemsFormulaParameter" Width="1.5" PointX="9.75" PointY="106.25" IsExpanded="true" />
+        <EntityTypeShape EntityType="iBemsModel.BemsFormulaTable" Width="1.5" PointX="5.75" PointY="0.875" IsExpanded="true" />
+        <EntityTypeShape EntityType="iBemsModel.BemsFormulaTableValue" Width="1.5" PointX="8" PointY="0.875" IsExpanded="true" />
+        <EntityTypeShape EntityType="iBemsModel.BemsMonitoringPoint" Width="1.5" PointX="7.5" PointY="98.875" IsExpanded="true" />
+        <EntityTypeShape EntityType="iBemsModel.BemsMonitoringPointBaseData" Width="1.5" PointX="7.5" PointY="95.125" IsExpanded="true" />
+        <EntityTypeShape EntityType="iBemsModel.BemsMonitoringPointHistory15min" Width="1.5" PointX="9.75" PointY="96.25" IsExpanded="true" />
+        <EntityTypeShape EntityType="iBemsModel.BemsMonitoringPointHistoryDaily" Width="1.5" PointX="12.75" PointY="96.125" IsExpanded="true" />
+        <EntityTypeShape EntityType="iBemsModel.BemsMonitoringPointHistoryHourly" Width="1.5" PointX="12.75" PointY="104.25" IsExpanded="true" />
+        <EntityTypeShape EntityType="iBemsModel.BemsMonitoringPointToAnlaysisType" Width="1.5" PointX="15.75" PointY="100.25" IsExpanded="true" />
+        <EntityTypeShape EntityType="iBemsModel.BemsServiceType" Width="1.5" PointX="5.25" PointY="98.875" IsExpanded="true" />
+        <EntityTypeShape EntityType="iBemsModel.CmAnnouncement" Width="1.5" PointX="18.75" PointY="123.125" IsExpanded="true" />
+        <EntityTypeShape EntityType="iBemsModel.CmBuilding" Width="1.5" PointX="3" PointY="91.25" IsExpanded="true" />
+        <EntityTypeShape EntityType="iBemsModel.CmBusinessField" Width="1.5" PointX="14.25" PointY="137.875" IsExpanded="true" />
+        <EntityTypeShape EntityType="iBemsModel.CmCompany" Width="1.5" PointX="6" PointY="120" IsExpanded="true" />
+        <EntityTypeShape EntityType="iBemsModel.CmCompanyType" Width="1.5" PointX="3.75" PointY="129.25" IsExpanded="true" />
+        <EntityTypeShape EntityType="iBemsModel.CmDepartment" Width="1.5" PointX="6.375" PointY="131.625" IsExpanded="true" />
+        <EntityTypeShape EntityType="iBemsModel.CmFacilityFile" Width="1.5" PointX="12.25" PointY="113.625" IsExpanded="true" />
+        <EntityTypeShape EntityType="iBemsModel.CmFacilityTempSet" Width="1.5" PointX="12.75" PointY="108.875" IsExpanded="true" />
+        <EntityTypeShape EntityType="iBemsModel.CmFile" Width="1.5" PointX="9" PointY="117.75" IsExpanded="true" />
+        <EntityTypeShape EntityType="iBemsModel.CmFileCategory" Width="1.5" PointX="6.75" PointY="125.375" IsExpanded="true" />
+        <EntityTypeShape EntityType="iBemsModel.CmFloor" Width="1.5" PointX="5.25" PointY="109.125" IsExpanded="true" />
+        <EntityTypeShape EntityType="iBemsModel.CmHoliday" Width="1.5" PointX="3" PointY="105.25" IsExpanded="true" />
+        <EntityTypeShape EntityType="iBemsModel.CmHolidayCustom" Width="1.5" PointX="3" PointY="108.25" IsExpanded="true" />
+        <EntityTypeShape EntityType="iBemsModel.CmPosition" Width="1.5" PointX="3" PointY="113.75" IsExpanded="true" />
+        <EntityTypeShape EntityType="iBemsModel.CmUser" Width="1.5" PointX="16.5" PointY="120.5" IsExpanded="true" />
+        <EntityTypeShape EntityType="iBemsModel.CmUserGroup" Width="1.5" PointX="3" PointY="116.625" IsExpanded="true" />
+        <EntityTypeShape EntityType="iBemsModel.CmUserGroupPermission" Width="1.5" PointX="5.25" PointY="116.625" IsExpanded="true" />
+        <EntityTypeShape EntityType="iBemsModel.CmUserLoginHistory" Width="1.5" PointX="18.75" PointY="127.75" IsExpanded="true" />
+        <EntityTypeShape EntityType="iBemsModel.CmUserToLicense" Width="1.5" PointX="18.75" PointY="119.875" IsExpanded="true" />
+        <EntityTypeShape EntityType="iBemsModel.CmZone" Width="1.5" PointX="10.5" PointY="100" IsExpanded="true" />
+        <EntityTypeShape EntityType="iBemsModel.CmZoneTempHumiSet" Width="1.5" PointX="15.75" PointY="103.625" IsExpanded="true" />
+        <EntityTypeShape EntityType="iBemsModel.FmsAccident" Width="1.5" PointX="11.25" PointY="121.875" IsExpanded="true" />
+        <EntityTypeShape EntityType="iBemsModel.FmsAccidentCodeType" Width="1.5" PointX="9" PointY="136.25" IsExpanded="true" />
+        <EntityTypeShape EntityType="iBemsModel.FmsBudget" Width="1.5" PointX="0.75" PointY="2" IsExpanded="true" />
+        <EntityTypeShape EntityType="iBemsModel.FmsBudgetCodeClass" Width="1.5" PointX="0.75" PointY="5.375" IsExpanded="true" />
+        <EntityTypeShape EntityType="iBemsModel.FmsCompanyEstimationCodeClass" Width="1.5" PointX="2.75" PointY="5.75" IsExpanded="true" />
+        <EntityTypeShape EntityType="iBemsModel.FmsConstruction" Width="1.5" PointX="14.25" PointY="120.875" IsExpanded="true" />
+        <EntityTypeShape EntityType="iBemsModel.FmsConstructionCodeProgress" Width="1.5" PointX="12" PointY="128.125" IsExpanded="true" />
+        <EntityTypeShape EntityType="iBemsModel.FmsConstructionCodeType" Width="1.5" PointX="12" PointY="135.5" IsExpanded="true" />
+        <EntityTypeShape EntityType="iBemsModel.FmsConstructionEstimation" Width="1.5" PointX="21.75" PointY="123.125" IsExpanded="true" />
+        <EntityTypeShape EntityType="iBemsModel.FmsContractClass" Width="1.5" PointX="21.5" PointY="94.625" IsExpanded="true" />
+        <EntityTypeShape EntityType="iBemsModel.FmsContractMethod" Width="1.5" PointX="21.5" PointY="91.25" IsExpanded="true" />
+        <EntityTypeShape EntityType="iBemsModel.FmsContractType" Width="1.5" PointX="21.5" PointY="87.75" IsExpanded="true" />
+        <EntityTypeShape EntityType="iBemsModel.FmsDrawing" Width="1.5" PointX="5.25" PointY="112.75" IsExpanded="true" />
+        <EntityTypeShape EntityType="iBemsModel.FmsDrawingCodeGroup" Width="1.5" PointX="3" PointY="119.25" IsExpanded="true" />
+        <EntityTypeShape EntityType="iBemsModel.FmsDrawingCodeType" Width="1.5" PointX="3" PointY="122.25" IsExpanded="true" />
+        <EntityTypeShape EntityType="iBemsModel.FmsDrawingHistory" Width="1.5" PointX="21.75" PointY="118.875" IsExpanded="true" />
+        <EntityTypeShape EntityType="iBemsModel.FmsEquipmentCodeStateType" Width="1.5" PointX="24.75" PointY="135" IsExpanded="true" />
+        <EntityTypeShape EntityType="iBemsModel.FmsEquipmentCodeType" Width="1.5" PointX="22.5" PointY="139.875" IsExpanded="true" />
+        <EntityTypeShape EntityType="iBemsModel.FmsEquipmentHistory" Width="1.5" PointX="27" PointY="126" IsExpanded="true" />
+        <EntityTypeShape EntityType="iBemsModel.FmsFacilityCheckItem" Width="1.5" PointX="5.25" PointY="156.5" IsExpanded="true" />
+        <EntityTypeShape EntityType="iBemsModel.FmsFacilityCodeClass" Width="1.5" PointX="3" PointY="125.125" IsExpanded="true" />
+        <EntityTypeShape EntityType="iBemsModel.FmsFacilityManual" Width="1.5" PointX="14.75" PointY="113.375" IsExpanded="true" />
+        <EntityTypeShape EntityType="iBemsModel.FmsFacilityOperationItem" Width="1.5" PointX="9.75" PointY="127.25" IsExpanded="true" />
+        <EntityTypeShape EntityType="iBemsModel.FmsLicense" Width="1.5" PointX="10" PointY="113.75" IsExpanded="true" />
+        <EntityTypeShape EntityType="iBemsModel.FmsManual" Width="1.5" PointX="22.5" PointY="97.625" IsExpanded="true" />
+        <EntityTypeShape EntityType="iBemsModel.FmsManualHistory" Width="1.5" PointX="24.75" PointY="118.375" IsExpanded="true" />
+        <EntityTypeShape EntityType="iBemsModel.FmsManualType" Width="1.5" PointX="20.25" PointY="97.875" IsExpanded="true" />
+        <EntityTypeShape EntityType="iBemsModel.FmsMaterialCarriedForward" Width="1.5" PointX="10" PointY="109.875" IsExpanded="true" />
+        <EntityTypeShape EntityType="iBemsModel.FmsMaterialCodeAdjustmentType" Width="1.5" PointX="27" PointY="117.375" IsExpanded="true" />
+        <EntityTypeShape EntityType="iBemsModel.FmsMaterialCodeClass" Width="1.5" PointX="3" PointY="135.75" IsExpanded="true" />
+        <EntityTypeShape EntityType="iBemsModel.FmsMaterialCodeLocation" Width="1.5" PointX="9" PointY="124" IsExpanded="true" />
+        <EntityTypeShape EntityType="iBemsModel.FmsMaterialCodeProgress" Width="1.5" PointX="18.5" PointY="103.875" IsExpanded="true" />
+        <EntityTypeShape EntityType="iBemsModel.FmsMaterialCodePurchaseType" Width="1.5" PointX="18.5" PointY="101.25" IsExpanded="true" />
+        <EntityTypeShape EntityType="iBemsModel.FmsMaterialCodeReleaseType" Width="1.5" PointX="27" PointY="114.75" IsExpanded="true" />
+        <EntityTypeShape EntityType="iBemsModel.FmsMaterialCodeType" Width="1.5" PointX="3" PointY="142.75" IsExpanded="true" />
+        <EntityTypeShape EntityType="iBemsModel.FmsMaterialPurchaseOrder" Width="1.5" PointX="18.75" PointY="130.875" IsExpanded="true" />
+        <EntityTypeShape EntityType="iBemsModel.FmsMaterialPurchaseOrderMaterial" Width="1.5" PointX="24" PointY="131.75" IsExpanded="true" />
+        <EntityTypeShape EntityType="iBemsModel.FmsMaterialPurchaseRequest" Width="1.5" PointX="20.75" PointY="113.75" IsExpanded="true" />
+        <EntityTypeShape EntityType="iBemsModel.FmsMaterialPurchaseRequestMaterial" Width="1.5" PointX="24" PointY="127.25" IsExpanded="true" />
+        <EntityTypeShape EntityType="iBemsModel.FmsMaterialStored" Width="1.5" PointX="27" PointY="119.875" IsExpanded="true" />
+        <EntityTypeShape EntityType="iBemsModel.FmsMaterialTradeCompany" Width="1.5" PointX="3" PointY="145.625" IsExpanded="true" />
+        <EntityTypeShape EntityType="iBemsModel.FmsMaterialWarehouse" Width="1.5" PointX="12" PointY="117.875" IsExpanded="true" />
+        <EntityTypeShape EntityType="iBemsModel.FmsPaymentType" Width="1.5" PointX="21.5" PointY="84.25" IsExpanded="true" />
+        <EntityTypeShape EntityType="iBemsModel.FmsWorkCodeCauseClass" Width="1.5" PointX="3" PointY="154" IsExpanded="true" />
+        <EntityTypeShape EntityType="iBemsModel.FmsWorkCodeCycleUnit" Width="1.5" PointX="3" PointY="156.875" IsExpanded="true" />
+        <EntityTypeShape EntityType="iBemsModel.FmsWorkCodeEmergency" Width="1.5" PointX="3" PointY="159.75" IsExpanded="true" />
+        <EntityTypeShape EntityType="iBemsModel.FmsWorkCodeHolidayWorkType" Width="1.5" PointX="3" PointY="162.5" IsExpanded="true" />
+        <EntityTypeShape EntityType="iBemsModel.FmsWorkCodeLegalInspectionAgency" Width="1.5" PointX="3" PointY="165.125" IsExpanded="true" />
+        <EntityTypeShape EntityType="iBemsModel.FmsWorkCodeProgress" Width="1.5" PointX="21.5" PointY="110.5" IsExpanded="true" />
+        <EntityTypeShape EntityType="iBemsModel.FmsWorkCodeType" Width="1.5" PointX="21.5" PointY="101.875" IsExpanded="true" />
+        <EntityTypeShape EntityType="iBemsModel.FmsWorkOrder" Width="1.5" PointX="21.75" PointY="135" IsExpanded="true" />
+        <EntityTypeShape EntityType="iBemsModel.FmsWorkOrderToFacility" Width="1.5" PointX="17.75" PointY="110.875" IsExpanded="true" />
+        <EntityTypeShape EntityType="iBemsModel.FmsWorkRequest" Width="1.5" PointX="23.75" PointY="112.25" IsExpanded="true" />
+        <EntityTypeShape EntityType="iBemsModel.FmsWorkRequestToFacility" Width="1.5" PointX="14.75" PointY="117.875" IsExpanded="true" />
+        <EntityTypeShape EntityType="iBemsModel.FmsWorkResult" Width="1.5" PointX="28.625" PointY="131.25" IsExpanded="true" />
+        <EntityTypeShape EntityType="iBemsModel.FmsWorkResultCheckItem" Width="2.375" PointX="10.5" PointY="131.875" IsExpanded="true" />
+        <EntityTypeShape EntityType="iBemsModel.FmsWorkResultCheckItemMaterial" Width="2.5" PointX="14.375" PointY="131.625" IsExpanded="true" />
+        <EntityTypeShape EntityType="iBemsModel.FmsWorkResultFile" Width="1.5" PointX="29.25" PointY="128.125" IsExpanded="true" />
+        <EntityTypeShape EntityType="iBemsModel.FmsWorkResultLaw" Width="1.5" PointX="29.25" PointY="141.5" IsExpanded="true" />
+        <EntityTypeShape EntityType="iBemsModel.FmsWorkResultToFacility" Width="1.5" PointX="17.75" PointY="113.875" IsExpanded="true" />
+        <EntityTypeShape EntityType="iBemsModel.FmsWorkScheduleToFacility" Width="1.5" PointX="17.75" PointY="116.875" IsExpanded="true" />
+        <EntityTypeShape EntityType="iBemsModel.sysdiagrams" Width="1.5" PointX="5.75" PointY="3.75" IsExpanded="true" />
+        <AssociationConnector Association="iBemsModel.FK__BemsMonitoringPo__1372D2FE" ManuallyRouted="false" />
+        <AssociationConnector Association="iBemsModel.FK_BemsControlPointHistory_BemsFacilityType" ManuallyRouted="false" />
+        <AssociationConnector Association="iBemsModel.FK_BemsControlPointHistory_BemsMonitoringPoint" ManuallyRouted="false" />
+        <AssociationConnector Association="iBemsModel.FK__BemsMonitoringPointBaseData__BemsFacilityType" ManuallyRouted="false" />
+        <AssociationConnector Association="iBemsModel.FK__BemsMonitoringPointHistory15min__BemsFacilityType" ManuallyRouted="false" />
+        <AssociationConnector Association="iBemsModel.FK__BemsMonitoringPointHistoryDaily__BemsFacilityType" ManuallyRouted="false" />
+        <AssociationConnector Association="iBemsModel.FK__BemsMonitoringPointHistoryHourly__BemsFacilityType" ManuallyRouted="false" />
+        <AssociationConnector Association="iBemsModel.FK__BemsMonitoringPointToAnlaysisType__BemsFacilityType" ManuallyRouted="false" />
+        <AssociationConnector Association="iBemsModel.FK_BemsMonitoringPoint_BemsFacilityType" ManuallyRouted="false" />
+        <AssociationConnector Association="iBemsModel.FK__BemsFormula__BemsFormulaBase" ManuallyRouted="false" />
+        <AssociationConnector Association="iBemsModel.FK__BemsFormulaParameter__BemsFormula" ManuallyRouted="false" />
+        <AssociationConnector Association="iBemsModel.FK__BemsFormulaParameter__BemsMonitoringPoint" ManuallyRouted="false" />
+        <AssociationConnector Association="iBemsModel.FK__BemsFormulaTableValue__BemsFormulaTable" ManuallyRouted="false" />
+        <AssociationConnector Association="iBemsModel.FK__BemsMonitoringPo__155B1B70" ManuallyRouted="false" />
+        <AssociationConnector Association="iBemsModel.FK__BemsMonitoringPoint__BemsServiceType" ManuallyRouted="false" />
+        <AssociationConnector Association="iBemsModel.FK__BemsMonitoringPoint__CmBuilding" ManuallyRouted="false" />
+        <AssociationConnector Association="iBemsModel.FK__BemsMonitoringPoint__CmFloor" ManuallyRouted="false" />
+        <AssociationConnector Association="iBemsModel.FK__BemsMonitoringPoint__CmZone" ManuallyRouted="false" />
+        <AssociationConnector Association="iBemsModel.FK__BemsMonitoringPointHistory15min__BemsMonitoringPoint" ManuallyRouted="false" />
+        <AssociationConnector Association="iBemsModel.FK__BemsMonitoringPointHistoryDaily__BemsMonitoringPoint" ManuallyRouted="false" />
+        <AssociationConnector Association="iBemsModel.FK__BemsMonitoringPointHistoryHourly__BemsMonitoringPoint" ManuallyRouted="false" />
+        <AssociationConnector Association="iBemsModel.FK__BemsMonitoringPointBaseData__BemsServiceType" ManuallyRouted="false" />
+        <AssociationConnector Association="iBemsModel.FK_CmAnnouncement_CmBusinessField" ManuallyRouted="false" />
+        <AssociationConnector Association="iBemsModel.FK_CmAnnouncement_CmFile" ManuallyRouted="false" />
+        <AssociationConnector Association="iBemsModel.FK_CmAnnouncement_CmUser" ManuallyRouted="false" />
+        <AssociationConnector Association="iBemsModel.FK__CmFloor__3CF40B7E" ManuallyRouted="false" />
+        <AssociationConnector Association="iBemsModel.FK__CmZone__CmBuilding" ManuallyRouted="false" />
+        <AssociationConnector Association="iBemsModel.FK_CmZoneTempHumiSet_CmBuilding" ManuallyRouted="false" />
+        <AssociationConnector Association="iBemsModel.FK__CmFacilityManual__7BE56230" ManuallyRouted="false" />
+        <AssociationConnector Association="iBemsModel.FK__FmsLicense__CmBusinessField" ManuallyRouted="false" />
+        <AssociationConnector Association="iBemsModel.FK__FmsMaterialCarriedForward__CmBusinessField" ManuallyRouted="false" />
+        <AssociationConnector Association="iBemsModel.FK__FmsMaterialCodeLocation__CmBusinessField" ManuallyRouted="false" />
+        <AssociationConnector Association="iBemsModel.FK__FmsMaterialOrder__CmBusinessField" ManuallyRouted="false" />
+        <AssociationConnector Association="iBemsModel.FK__FmsMaterialPurchasingRequest__CmBusinessField" ManuallyRouted="false" />
+        <AssociationConnector Association="iBemsModel.FK__FmsMaterialStored__CmBusinessField" ManuallyRouted="false" />
+        <AssociationConnector Association="iBemsModel.FK__FmsMaterialWarehouse__CmBusinessField" ManuallyRouted="false" />
+        <AssociationConnector Association="iBemsModel.FK__FmsWorkOrder__CmBusinessField" ManuallyRouted="false" />
+        <AssociationConnector Association="iBemsModel.FK__FmsWorkRequest__CmBusinessField" ManuallyRouted="false" />
+        <AssociationConnector Association="iBemsModel.FK_CmUser_CmBusinessField" ManuallyRouted="false" />
+        <AssociationConnector Association="iBemsModel.FK__CmCompany__345EC57D" ManuallyRouted="false" />
+        <AssociationConnector Association="iBemsModel.FK__CmDepartment__3552E9B6" ManuallyRouted="false" />
+        <AssociationConnector Association="iBemsModel.FK_CmUser_CmCompany" ManuallyRouted="false" />
+        <AssociationConnector Association="iBemsModel.FK_CmUser_CmDepartment" ManuallyRouted="false" />
+        <AssociationConnector Association="iBemsModel.FK_FmsAccident_CmDepartment" ManuallyRouted="false" />
+        <AssociationConnector Association="iBemsModel.FK__CmFacilityFile__CmFile" ManuallyRouted="false" />
+        <AssociationConnector Association="iBemsModel.FK__CmFile__CmFileCategory" ManuallyRouted="false" />
+        <AssociationConnector Association="iBemsModel.FK__FmsDrawingHistor__04DA9AE4" ManuallyRouted="false" />
+        <AssociationConnector Association="iBemsModel.FK__FmsMaterialPurchaseOrder__CmFile" ManuallyRouted="false" />
+        <AssociationConnector Association="iBemsModel.FK__FmsWorkResultFile__CmFile" ManuallyRouted="false" />
+        <AssociationConnector Association="iBemsModel.FK_FmsAccident_CmFile1" ManuallyRouted="false" />
+        <AssociationConnector Association="iBemsModel.FK_FmsAccident_CmFile2" ManuallyRouted="false" />
+        <AssociationConnector Association="iBemsModel.FK_FmsAccident_CmFile3" ManuallyRouted="false" />
+        <AssociationConnector Association="iBemsModel.FK_FmsConstruction_CmFile1" ManuallyRouted="false" />
+        <AssociationConnector Association="iBemsModel.FK_FmsConstruction_CmFile2" ManuallyRouted="false" />
+        <AssociationConnector Association="iBemsModel.FK_FmsConstruction_CmFile3" ManuallyRouted="false" />
+        <AssociationConnector Association="iBemsModel.FK_FmsManualHistory_CmFile" ManuallyRouted="false" />
+        <AssociationConnector Association="iBemsModel.FK__CmLocation__3DE82FB7" ManuallyRouted="false" />
+        <AssociationConnector Association="iBemsModel.FK_CmZoneTempHumiSet_CmFloor" ManuallyRouted="false" />
+        <AssociationConnector Association="iBemsModel.FK_CmUser_CmPosition" ManuallyRouted="false" />
+        <AssociationConnector Association="iBemsModel.FK__CmUserToLicense__CmUser" ManuallyRouted="false" />
+        <AssociationConnector Association="iBemsModel.FK__FmsDrawingHistory__CmUser" ManuallyRouted="false" />
+        <AssociationConnector Association="iBemsModel.FK__FmsMaterialOrder__CmUser" ManuallyRouted="false" />
+        <AssociationConnector Association="iBemsModel.FK__FmsMaterialPurchaseRequest__CmUser_AsRequestUserId" ManuallyRouted="false" />
+        <AssociationConnector Association="iBemsModel.FK__FmsMaterialPurchaseRequest__CmUser1_AsApprovalUserId" ManuallyRouted="false" />
+        <AssociationConnector Association="iBemsModel.FK__FmsMaterialStored__CmUser_AsStoredUserId" ManuallyRouted="false" />
+        <AssociationConnector Association="iBemsModel.FK__FmsMaterialStored__CmUser1_AsApprovalUserId" ManuallyRouted="false" />
+        <AssociationConnector Association="iBemsModel.FK__FmsWorkOrder__CmUser" ManuallyRouted="false" />
+        <AssociationConnector Association="iBemsModel.FK__FmsWorkRequest__CmUser_AsRequestUserId" ManuallyRouted="false" />
+        <AssociationConnector Association="iBemsModel.FK__FmsWorkRequest__CmUser1_AsRejectUserId" ManuallyRouted="false" />
+        <AssociationConnector Association="iBemsModel.FK__FmsWorkResult__CmUser_AsWorkerUserId" ManuallyRouted="false" />
+        <AssociationConnector Association="iBemsModel.FK__FmsWorkResult__CmUser1_AsConfirmedUserId" ManuallyRouted="false" />
+        <AssociationConnector Association="iBemsModel.FK_CmUser_CmUserGroup" ManuallyRouted="false" />
+        <AssociationConnector Association="iBemsModel.FK_CmUserLoginHistory_CmUser" ManuallyRouted="false" />
+        <AssociationConnector Association="iBemsModel.FK_FmsConstructionEstimation_CmUser" ManuallyRouted="false" />
+        <AssociationConnector Association="iBemsModel.FK_FmsManualHistory_CmUser" ManuallyRouted="false" />
+        <AssociationConnector Association="iBemsModel.FK__CmUserGroupPermission__CmUserGroup" ManuallyRouted="false" />
+        <AssociationConnector Association="iBemsModel.FK__CmUserToLicense__FmsLicense" ManuallyRouted="false" />
+        <AssociationConnector Association="iBemsModel.FK_CmZoneTempHumiSet_CmZone" ManuallyRouted="false" />
+        <AssociationConnector Association="iBemsModel.FK_FmsAccident_FmsAccidentCodeType" ManuallyRouted="false" />
+        <AssociationConnector Association="iBemsModel.FK_FmsConstruction_FmsConstructionCodeProgress" ManuallyRouted="false" />
+        <AssociationConnector Association="iBemsModel.FK_FmsConstruction_FmsConstructionCodeType" ManuallyRouted="false" />
+        <AssociationConnector Association="iBemsModel.FK_FmsConstructionEstimation_FmsConstruction" ManuallyRouted="false" />
+        <AssociationConnector Association="iBemsModel.FK__FmsDrawing__6E565CE8" ManuallyRouted="false" />
+        <AssociationConnector Association="iBemsModel.FK__FmsDrawing__6F4A8121" ManuallyRouted="false" />
+        <AssociationConnector Association="iBemsModel.FK__FmsDrawingHistor__7132C993" ManuallyRouted="false" />
+        <AssociationConnector Association="iBemsModel.FK_FmsEquipmentHistory_FmsEquipmentCodeStateType" ManuallyRouted="false" />
+        <AssociationConnector Association="iBemsModel.FK__FmsFacilityCheckItem__FmsWorkCodeCycleUnit" ManuallyRouted="false" />
+        <AssociationConnector Association="iBemsModel.FK__FmsFacilityCheckItem__FmsWorkCodeWorkType" ManuallyRouted="false" />
+        <AssociationConnector Association="iBemsModel.FK__FmsWorkResultCheckItem__FmsFacilityCheckItem" ManuallyRouted="false" />
+        <AssociationConnector Association="iBemsModel.FK__FmsFacilityCodeClass__FmsFacilityCodeClass" ManuallyRouted="false" />
+        <AssociationConnector Association="iBemsModel.FK_FmsManual_FmsManualType" ManuallyRouted="false" />
+        <AssociationConnector Association="iBemsModel.FK_FmsManualHistory_FmsManual" ManuallyRouted="false" />
+        <AssociationConnector Association="iBemsModel.FK__FmsMaterialCodeClass__FmsMaterialCodeClass" ManuallyRouted="false" />
+        <AssociationConnector Association="iBemsModel.FK__FmsMaterialPurchasingRequest__FmsMaterialCodeProcess" ManuallyRouted="false" />
+        <AssociationConnector Association="iBemsModel.FK_FmsMaterialPurchaseRequest_FmsMaterialCodePurchaseType" ManuallyRouted="false" />
+        <AssociationConnector Association="iBemsModel.FK__FmsMaterialPurchaseOrder__FmsMaterialTradeCompany" ManuallyRouted="false" />
+        <AssociationConnector Association="iBemsModel.FK_FmsMaterialPurchaseOrder_FmsMaterialPurchaseRequest" ManuallyRouted="false" />
+        <AssociationConnector Association="iBemsModel.FK_FmsMaterialPurchaseOrderMaterial_FmsMaterialPurchaseOrder" ManuallyRouted="false" />
+        <AssociationConnector Association="iBemsModel.FK_FmsMaterialStored_FmsMaterialPurchaseOrder" ManuallyRouted="false" />
+        <AssociationConnector Association="iBemsModel.FK_FmsMaterialPurchaseRequestMaterial_FmsMaterialPurchaseRequest" ManuallyRouted="false" />
+        <AssociationConnector Association="iBemsModel.FK_FmsMaterialStored_FmsMaterialWarehouse" ManuallyRouted="false" />
+        <AssociationConnector Association="iBemsModel.FK__FmsWorkResult__FmsWorkCodeCauseClass" ManuallyRouted="false" />
+        <AssociationConnector Association="iBemsModel.FK__FmsWorkOrder__FmsWorkCodeEmergency" ManuallyRouted="false" />
+        <AssociationConnector Association="iBemsModel.FK__FmsWorkRequest__FmsWorkCodeProgress" ManuallyRouted="false" />
+        <AssociationConnector Association="iBemsModel.FK__FmsWorkRequest__FmsWorkCodeWorkType" ManuallyRouted="false" />
+        <AssociationConnector Association="iBemsModel.FK__FmsWorkOrder__FmsWorkRequest" ManuallyRouted="false" />
+        <AssociationConnector Association="iBemsModel.FK__FmsWorkOrderToFacility__FmsWorkOrder" ManuallyRouted="false" />
+        <AssociationConnector Association="iBemsModel.FK__FmsWorkResult__FmsWorkOrder" ManuallyRouted="false" />
+        <AssociationConnector Association="iBemsModel.FK__FmsWorkRequestToFacility__FmsWorkRequest" ManuallyRouted="false" />
+        <AssociationConnector Association="iBemsModel.FK__FmsWorkResult__FmsWorkRequest" ManuallyRouted="false" />
+        <AssociationConnector Association="iBemsModel.FK__FmsWorkResultCheckItem__FmsWorkResult" ManuallyRouted="false" />
+        <AssociationConnector Association="iBemsModel.FK__FmsWorkResultFile__FmsWorkResult" ManuallyRouted="false" />
+        <AssociationConnector Association="iBemsModel.FK__FmsWorkResultLaw__FmsWorkResult" ManuallyRouted="false" />
+        <AssociationConnector Association="iBemsModel.FK__FmsWorkResultToFacility__FmsWorkOrder" ManuallyRouted="false" />
+        <AssociationConnector Association="iBemsModel.FK_FmsWorkResultCheckItemMaterial_FmsWorkResultCheckItem" ManuallyRouted="false" />
+        <EntityTypeShape EntityType="iBemsModel.FmsDailyCheckReport" Width="2.5" PointX="18.75" PointY="152.25" />
+        <EntityTypeShape EntityType="iBemsModel.FmsFacilityOperationReport" Width="1.5" PointX="18.75" PointY="136.5" />
+        <AssociationConnector Association="iBemsModel.FK_FmsDailyCheckReport_CmUser" />
+        <AssociationConnector Association="iBemsModel.FK_FmsFacilityOperationReport_CmUser" />
+        <EntityTypeShape EntityType="iBemsModel.FmsBudgetDetail" Width="1.5" PointX="3" PointY="1.375" />
+        <EntityTypeShape EntityType="iBemsModel.FmsBudgetDetailExecution" Width="1.5" PointX="5.25" PointY="7" />
+        <AssociationConnector Association="iBemsModel.FK_FmsBudgetDetail_FmsBudget" />
+        <AssociationConnector Association="iBemsModel.FK_FmsBudgetDetail_FmsBudgetCodeClass" />
+        <AssociationConnector Association="iBemsModel.FK_FmsBudgetDetailExecution_FmsBudgetDetail" />
+        <EntityTypeShape EntityType="iBemsModel.FmsMonthlyReport" Width="1.5" PointX="18.75" PointY="155.5" />
+        <AssociationConnector Association="iBemsModel.FK_FmsMonthlyReport_CmUser" />
+        <EntityTypeShape EntityType="iBemsModel.FmsInvestmentCost" Width="1.5" PointX="7.375" PointY="6.75" />
+        <EntityTypeShape EntityType="iBemsModel.CmHolidayWeekend" Width="1.5" PointX="3.375" PointY="102.25" />
+        <AssociationConnector Association="iBemsModel.FK_FmsAccident_CmCompany" />
+        <EntityTypeShape EntityType="iBemsModel.FmsMaterial" Width="1.5" PointX="16.625" PointY="136" />
+        <EntityTypeShape EntityType="iBemsModel.FmsMaterialRelease" Width="1.5" PointX="29.375" PointY="122.375" />
+        <AssociationConnector Association="iBemsModel.FK_FmsMaterial_CmBusinessField" />
+        <AssociationConnector Association="iBemsModel.FK_FmsMaterialRelease_CmBusinessField" />
+        <AssociationConnector Association="iBemsModel.FK_FmsMaterial_CmFile" />
+        <AssociationConnector Association="iBemsModel.FK_FmsMaterialRelease_CmUser" />
+        <AssociationConnector Association="iBemsModel.FK_FmsMaterialRelease_CmUser1" />
+        <AssociationConnector Association="iBemsModel.FK__FmsMaterial__FmsMaterialCodeClass_AsFirstClassId" />
+        <AssociationConnector Association="iBemsModel.FK__FmsMaterial__FmsMaterialCodeClass_AsSecondClassId" />
+        <AssociationConnector Association="iBemsModel.FK__FmsMaterial__FmsMaterialCodeClass_AsThirdClassId" />
+        <AssociationConnector Association="iBemsModel.FK_FmsMaterial_FmsMaterialCodeLocation" />
+        <AssociationConnector Association="iBemsModel.FK_FmsMaterial_FmsMaterialCodeType" />
+        <AssociationConnector Association="iBemsModel.FK_FmsMaterial_FmsMaterialTradeCompany" />
+        <AssociationConnector Association="iBemsModel.FK_FmsMaterial_FmsMaterialWarehouse" />
+        <AssociationConnector Association="iBemsModel.FK_FmsMaterialPurchaseOrderMaterial_FmsMaterial" />
+        <AssociationConnector Association="iBemsModel.FK_FmsMaterialPurchaseRequestMaterial_FmsMaterial" />
+        <AssociationConnector Association="iBemsModel.FK_FmsMaterialRelease_FmsMaterial" />
+        <AssociationConnector Association="iBemsModel.FK_FmsMaterialStored_FmsMaterial" />
+        <AssociationConnector Association="iBemsModel.FK_FmsWorkResultCheckItemMaterial_FmsMaterial" />
+        <AssociationConnector Association="iBemsModel.FK_FmsMaterialRelease_FmsMaterialCodeAdjustmentType" />
+        <AssociationConnector Association="iBemsModel.FK_FmsMaterialRelease_FmsMaterialCodeReleaseType" />
+        <AssociationConnector Association="iBemsModel.FK_FmsMaterialRelease_FmsWorkResult" />
+        <AssociationConnector Association="iBemsModel.FK_FmsWorkResultCheckItemMaterial_FmsWorkResult" />
+        <EntityTypeShape EntityType="iBemsModel.CmPatrolType" Width="1.5" PointX="4.625" PointY="131.75" />
+        <EntityTypeShape EntityType="iBemsModel.CmPatrolGroup" Width="1.5" PointX="3.25" PointY="140.125" />
+        <EntityTypeShape EntityType="iBemsModel.CmPatrolGroupUser" Width="1.5" PointX="8.5" PointY="3.75" />
+        <AssociationConnector Association="iBemsModel.FK_CmPatrolGroupUser_CmPatrolGroup" />
+        <AssociationConnector Association="iBemsModel.FK_CmPatrolGroupUser_CmUser" />
+        <EntityTypeShape EntityType="iBemsModel.CmPatrolPos" Width="1.5" PointX="2.5" PointY="85.375" />
+        <AssociationConnector Association="iBemsModel.FK_CmPatrolPos_CmBuilding" />
+        <AssociationConnector Association="iBemsModel.FK_CmPatrolPos_CmFloor" />
+        <EntityTypeShape EntityType="iBemsModel.CmPatrolCourse" Width="2.5" PointX="3.25" PointY="151.125" />
+        <EntityTypeShape EntityType="iBemsModel.CmPatrolCoursePos" Width="3.375" PointX="6.625" PointY="151.125" />
+        <AssociationConnector Association="iBemsModel.FK_CmPatrolCoursePos_CmPatrolCourse" />
+        <AssociationConnector Association="iBemsModel.FK_CmPatrolCoursePos_CmPatrolPos" />
+        <EntityTypeShape EntityType="iBemsModel.CmPatrolPlan" Width="1.5" PointX="6.75" PointY="136.125" />
+        <AssociationConnector Association="iBemsModel.FK_CmPatrolPlan_CmPatrolCourse" />
+        <AssociationConnector Association="iBemsModel.FK_CmPatrolPlan_CmPatrolGroup" />
+        <EntityTypeShape EntityType="iBemsModel.CmPatrolHistoryPos" Width="1.5" PointX="16.125" PointY="96.25" />
+        <AssociationConnector Association="iBemsModel.FK_CmPatrolHistoryPos_CmPatrolPos" />
+        <AssociationConnector Association="iBemsModel.FK_CmPatrolHistoryPos_CmPatrolType" />
+        <EntityTypeShape EntityType="iBemsModel.BemsPeakInfo" Width="1.5" PointX="3.25" PointY="78.875" />
+        <EntityTypeShape EntityType="iBemsModel.BemsPeakHistory" Width="1.5" PointX="3.25" PointY="76" />
+        <EntityTypeShape EntityType="iBemsModel.CmPatrolSchedule" Width="1.5" PointX="9" PointY="139.25" />
+        <AssociationConnector Association="iBemsModel.FK_CmPatrolSchedule_CmPatrolPlan" />
+        <EntityTypeShape EntityType="iBemsModel.BemsNoticePriceBase" Width="1.5" PointX="9.75" PointY="79.25" />
+        <EntityTypeShape EntityType="iBemsModel.BemsNoticePriceContractType" Width="1.5" PointX="7.5" PointY="79.375" />
+        <EntityTypeShape EntityType="iBemsModel.BemsNoticePriceDetail" Width="1.5" PointX="12" PointY="78.25" />
+        <AssociationConnector Association="iBemsModel.FK__BemsNoticePriceBase__BemsNoticePriceContractType" />
+        <AssociationConnector Association="iBemsModel.FK__BemsNoticePriceDetail__BemsNoticePriceBase" />
+        <EntityTypeShape EntityType="iBemsModel.BemsPeakFacility" Width="1.5" PointX="29" PointY="106.375" />
+        <EntityTypeShape EntityType="iBemsModel.CmSite" Width="1.5" PointX="0.75" PointY="114.375" />
+        <AssociationConnector Association="iBemsModel.FK_BemsPeakHIstory_CmSite" />
+        <AssociationConnector Association="iBemsModel.FK_BemsPeakInfo_CmSite" />
+        <AssociationConnector Association="iBemsModel.FK__CmBuildin__SiteI__3BFFE745" />
+        <AssociationConnector Association="iBemsModel.FK__CmCompany__SiteI__336AA144" />
+        <AssociationConnector Association="iBemsModel.FK_CmFacilityTempSet_CmSite" />
+        <AssociationConnector Association="iBemsModel.FK__CmFile__SiteId__2759D01A" />
+        <AssociationConnector Association="iBemsModel.FK__CmHoliday__SiteI__0BB1B5A5" />
+        <AssociationConnector Association="iBemsModel.FK__CmHoliday__SiteI__65AC084E" />
+        <AssociationConnector Association="iBemsModel.FK__CmHoliday__SiteI__10766AC2" />
+        <AssociationConnector Association="iBemsModel.FK__CmHoliday__SiteI__66A02C87" />
+        <AssociationConnector Association="iBemsModel.FK__CmHoliday__SiteI__0D99FE17" />
+        <AssociationConnector Association="iBemsModel.FK_CmPatrolCourse_CmSite" />
+        <AssociationConnector Association="iBemsModel.FK_CmPatrolCoursePos_CmSite" />
+        <AssociationConnector Association="iBemsModel.FK_CmPatrolGroup_CmSite" />
+        <AssociationConnector Association="iBemsModel.FK_CmPatrolHistoryPos_CmSite" />
+        <AssociationConnector Association="iBemsModel.FK_CmPatrolPlan_CmSite" />
+        <AssociationConnector Association="iBemsModel.FK_CmPatrolPos_CmSite" />
+        <AssociationConnector Association="iBemsModel.FK_CmPatrolSchedule_CmSite" />
+        <AssociationConnector Association="iBemsModel.FK_CmPatrolType_CmSite" />
+        <AssociationConnector Association="iBemsModel.FK__CmPositio__SiteI__6A70BD6B" />
+        <AssociationConnector Association="iBemsModel.FK__CmUserPos__SiteI__44952D46" />
+        <AssociationConnector Association="iBemsModel.FK__CmUserGro__SiteI__53D770D6" />
+        <AssociationConnector Association="iBemsModel.FK__FmsDrawin__SiteI__6B79F03D" />
+        <AssociationConnector Association="iBemsModel.FK__FmsDrawin__SiteI__6C6E1476" />
+        <AssociationConnector Association="iBemsModel.FK__FmsDrawin__SiteI__6D6238AF" />
+        <AssociationConnector Association="iBemsModel.FK__FmsDrawin__SiteI__6F357288" />
+        <AssociationConnector Association="iBemsModel.FK__FmsDrawin__SiteI__702996C1" />
+        <AssociationConnector Association="iBemsModel.FK__FmsFacilityCodeClass__CmSite" />
+        <AssociationConnector Association="iBemsModel.FK__FmsLicense__CmSite" />
+        <AssociationConnector Association="iBemsModel.FK__FmsMaterialCarriedForward__CmSite" />
+        <AssociationConnector Association="iBemsModel.FK__FmsMaterialCodeClass__CmSite" />
+        <AssociationConnector Association="iBemsModel.FK__FmsMaterialCodeLocation__CmSite" />
+        <AssociationConnector Association="iBemsModel.FK__FmsMaterialCodeType__CmSite" />
+        <AssociationConnector Association="iBemsModel.FK__FmsMaterialOrder__CmSite" />
+        <AssociationConnector Association="iBemsModel.FK__FmsMaterialPurchasingRequest__CmSite" />
+        <AssociationConnector Association="iBemsModel.FK__FmsMaterialStored__CmSite" />
+        <AssociationConnector Association="iBemsModel.FK__FmsMaterialTradeCompany__CmSite" />
+        <AssociationConnector Association="iBemsModel.FK__FmsMaterialWarehouse__CmSite" />
+        <AssociationConnector Association="iBemsModel.FK__FmsWorkCodeCauseClass__CmSite" />
+        <AssociationConnector Association="iBemsModel.FK__FmsWorkCodeCycleUnit__CmSite" />
+        <AssociationConnector Association="iBemsModel.FK__FmsWorkCodeEmergency__CmSite" />
+        <AssociationConnector Association="iBemsModel.FK__FmsWorkCodeHolidayWorkType__CmSite" />
+        <AssociationConnector Association="iBemsModel.FK__FmsWorkCodeLegalInspectionAgency__CmSite" />
+        <AssociationConnector Association="iBemsModel.FK__FmsWorkOrder__CmSite" />
+        <AssociationConnector Association="iBemsModel.FK__FmsWorkRequest__CmSite" />
+        <AssociationConnector Association="iBemsModel.FK_CmZoneTempHumiSet_CmSite" />
+        <AssociationConnector Association="iBemsModel.FK_FmsMaterial_CmSite" />
+        <AssociationConnector Association="iBemsModel.FK_FmsMaterialRelease_CmSite" />
+        <EntityTypeShape EntityType="iBemsModel.FmsReport" Width="1.5" PointX="29.75" PointY="116.625" />
+        <AssociationConnector Association="iBemsModel.FK_FmsReport_CmBusinessField" />
+        <AssociationConnector Association="iBemsModel.FK_FmsReport_CmFile" />
+        <AssociationConnector Association="iBemsModel.FK_FmsReport_CmSite" />
+        <AssociationConnector Association="iBemsModel.FK_FmsReport_CmUser" />
+        <AssociationConnector Association="iBemsModel.FK_FmsReport_CmUser1" />
+        <AssociationConnector Association="iBemsModel.FK_FmsReport_CmUser2" />
+        <EntityTypeShape EntityType="iBemsModel.CmServiceEnergyCalcMonth" Width="1.5" PointX="0.75" PointY="9.75" />
+        <EntityTypeShape EntityType="iBemsModel.CmServiceEnergyCalcDay" Width="1.5" PointX="9.375" PointY="6.75" />
+        <EntityTypeShape EntityType="iBemsModel.CmPatrolHistory" Width="1.5" PointX="11.25" PointY="138.5" />
+        <AssociationConnector Association="iBemsModel.FK_CmPatrolHistory_CmPatrolSchedule" />
+        <AssociationConnector Association="iBemsModel.FK_CmPatrolHistory_CmPatrolType" />
+        <AssociationConnector Association="iBemsModel.FK_CmPatrolHistory_CmSite" />
+        <EntityTypeShape EntityType="iBemsModel.BemsReportFormat" Width="1.5" PointX="7.375" PointY="9.75" />
+        <EntityTypeShape EntityType="iBemsModel.FmsWorkSchedule" Width="1.5" PointX="31.75" PointY="130.625" />
+        <AssociationConnector Association="iBemsModel.FK__FmsWorkSchedule__CmBusinessField" />
+        <AssociationConnector Association="iBemsModel.FK__FmsWorkSchedule__CmUser" />
+        <AssociationConnector Association="iBemsModel.FK__FmsWorkSchedule__FmsWorkCodeCycleUnit" />
+        <AssociationConnector Association="iBemsModel.FK__FmsWorkSchedule__FmsWorkCodeHolidayWorkType" />
+        <AssociationConnector Association="iBemsModel.FK__FmsWorkSchedule__FmsWorkCodeWorkType" />
+        <AssociationConnector Association="iBemsModel.FK__FmsWorkRequest__FmsWorkSchedule" />
+        <AssociationConnector Association="iBemsModel.FK__FmsWorkScheduleToFacility__FmsWorkSchedule" />
+	<EntityTypeShape EntityType="iBemsModel.CmMenu" Width="1.5" PointX="3" PointY="98.625" />
+        <AssociationConnector Association="iBemsModel.FK_FmsWorkResultCheckItem_CmFile" />
+        <AssociationConnector Association="iBemsModel.FK_FmsWorkResultCheckItem_CmFile1" />
+        <AssociationConnector Association="iBemsModel.FK_CmMenu_CmSite" />
+        <EntityTypeShape EntityType="iBemsModel.BemsChartInfo" Width="1.5" PointX="25.5" PointY="88.375" />
+        <AssociationConnector Association="iBemsModel.FK_BemsChartInfo_BemsFacilityType" />
+        <AssociationConnector Association="iBemsModel.FK_BemsChartInfo_CmSite" />
+        <EntityTypeShape EntityType="iBemsModel.BemsPeopleIncrease" Width="1.5" PointX="3.375" PointY="177.375" />
+        <EntityTypeShape EntityType="iBemsModel.BemsPriceCode" Width="1.5" PointX="16.625" PointY="84.875" />
+        <EntityTypeShape EntityType="iBemsModel.BemsPriceFormula" Width="1.5" PointX="24.875" PointY="84.25" />
+        <EntityTypeShape EntityType="iBemsModel.BemsPriceMeta" Width="1.5" PointX="18.875" PointY="26.625" />
+        <EntityTypeShape EntityType="iBemsModel.BemsPriceType" Width="1.5" PointX="16.625" PointY="81" />
+        <EntityTypeShape EntityType="iBemsModel.BemsRentalRate" Width="1.5" PointX="3.375" PointY="172.75" />
+        <EntityTypeShape EntityType="iBemsModel.BemsSitePrice" Width="1.5" PointX="7.875" PointY="128.375" />
+        <EntityTypeShape EntityType="iBemsModel.BemsSitePriceHistory" Width="1.5" PointX="18.875" PointY="92.875" />
+        <AssociationConnector Association="iBemsModel.FK_BemsPriceFormula_BemsFormula" />
+        <AssociationConnector Association="iBemsModel.FK_BemsPeopleIncrease_CmSite" />
+        <AssociationConnector Association="iBemsModel.FK_BemsSitePrice_BemsPriceCode" />
+        <AssociationConnector Association="iBemsModel.FK_BemsSitePriceHistory_BemsPriceCode" />
+        <AssociationConnector Association="iBemsModel.FK_BemsPriceFormula_BemsPriceType" />
+        <AssociationConnector Association="iBemsModel.FK_BemsPriceMeta_BemsPriceType" />
+        <AssociationConnector Association="iBemsModel.FK_BemsSitePriceHistory_BemsPriceType" />
+        <AssociationConnector Association="iBemsModel.FK_BemsRentalRate_CmSite" />
+        <AssociationConnector Association="iBemsModel.FK_BemsSitePrice_CmSite1" />
+        <AssociationConnector Association="iBemsModel.FK_BemsSitePriceHistory_CmSite" />
+        <AssociationConnector Association="iBemsModel.FK_BemsSitePrice_BemsPriceType" />
+        <EntityTypeShape EntityType="iBemsModel.BemsMonitoringPointConfig" Width="1.5" PointX="15.75" PointY="92.25" />
+        <AssociationConnector Association="iBemsModel.FK_BemsMonitoringPointConfig_BemsFacilityType1" />
+        <AssociationConnector Association="iBemsModel.FK_BemsMonitoringPointConfig_BemsMonitoringPoint" />
+        <EntityTypeShape EntityType="iBemsModel.BemsAlarmSetting" Width="1.5" PointX="29" PointY="109.25" />
+        <AssociationConnector Association="iBemsModel.FK_BemsAlarmSetting_BemsFacilityType" />
+        <AssociationConnector Association="iBemsModel.FK_BemsAlarmSetting_CmSite1" />
+        <EntityTypeShape EntityType="iBemsModel.BemsAlarmLog" Width="1.5" PointX="31.25" PointY="110.125" />
+        <AssociationConnector Association="iBemsModel.FK_BemsAlarmLog_BemsAlarmSetting" />
+        <EntityTypeShape EntityType="iBemsModel.BemsAlarmGroup" Width="1.5" PointX="10.375" PointY="0.75" />
+        <EntityTypeShape EntityType="iBemsModel.BemsAlarmGroupUser" Width="1.5" PointX="11.375" PointY="3.75" />
+        <EntityTypeShape EntityType="iBemsModel.BemsEnergyCost" Width="1.5" PointX="29" PointY="102" />
+        <EntityTypeShape EntityType="iBemsModel.BemsEnergyConfigPercentMonth" Width="1.5" PointX="3" PointY="168.5" />
+        <EntityTypeShape EntityType="iBemsModel.BemsEnergyConfigPercentWeek" Width="1.5" PointX="3" PointY="72.375" />
+        <AssociationConnector Association="iBemsModel.FK__BemsEnerg__SiteI__7954A4F6" />
+        <AssociationConnector Association="iBemsModel.FK__BemsEnerg__SiteI__7C3111A1" />
+        <EntityTypeShape EntityType="iBemsModel.BemsEnergyDaily" Width="1.5" PointX="10.5" PointY="91.125" />
+        <AssociationConnector Association="iBemsModel.FK__BemsEnergyDaily__BemsServiceType" />
+        <AssociationConnector Association="iBemsModel.FK__BemsEnergyDaily__CmBuilding" />
+        <EntityTypeShape EntityType="iBemsModel.BemsEnergyDailyRegression" Width="1.5" PointX="3" PointY="66.75" />
+        <AssociationConnector Association="iBemsModel.FK_BemsEnergyDailyRegression_CmSite" />
+        <EntityTypeShape EntityType="iBemsModel.WeatherDongNaeForecast" Width="1.5" PointX="3.375" PointY="11.75" />
+        <EntityTypeShape EntityType="iBemsModel.FmsEquipmentRentInfo" Width="1.5" PointX="32" PointY="125.75" />
+        <AssociationConnector Association="iBemsModel.FK_FmsEquipmentRentInfo_CmUser" />
+        <AssociationConnector Association="iBemsModel.FK_FmsEquipmentRentInfo_CmUser1" />
+        <AssociationConnector Association="iBemsModel.FK_FmsEquipmentRentInfo_FmsEquipmentCodeStateType" />
+        <AssociationConnector Association="iBemsModel.FK_FmsEquipmentHistory_FmsEquipmentRentInfo" />
+        <EntityTypeShape EntityType="iBemsModel.BemsControlAHUTempConfig" Width="1.5" PointX="11.375" PointY="6.75" />
+        <EntityTypeShape EntityType="iBemsModel.BemsFuelType" Width="1.5" PointX="0.75" PointY="98.625" />
+        <AssociationConnector Association="iBemsModel.FK__BemsEnergyDaily__BemsFuelType" />
+        <AssociationConnector Association="iBemsModel.FK__BemsFactorCo2__BemsFuelType" />
+        <AssociationConnector Association="iBemsModel.FK__BemsFactorToe__BemsFuelType" />
+        <AssociationConnector Association="iBemsModel.FK__BemsMonitoringPoint__BemsFuelType" />
+        <AssociationConnector Association="iBemsModel.FK__BemsMonitoringPointBaseData__BemsFuelType" />
+        <AssociationConnector Association="iBemsModel.FK__BemsNoticePriceContractType__BemsFuelType" />
+        <AssociationConnector Association="iBemsModel.FK_BemsPriceCode_BemsFuelType" />
+        <AssociationConnector Association="iBemsModel.FK_BemsPriceType_BemsFuelType1" />
+        <AssociationConnector Association="iBemsModel.FK_BemsSitePrice_BemsFuelType" />
+        <AssociationConnector Association="iBemsModel.FK_BemsSitePriceHistory_BemsFuelType" />
+        <EntityTypeShape EntityType="iBemsModel.CmFacility" Width="1.5" PointX="31.75" PointY="94.5" />
+        <AssociationConnector Association="iBemsModel.FK_BemsAlarmSetting_CmFacility" />
+        <AssociationConnector Association="iBemsModel.FK_BemsEnergyCost_CmFacility" />
+        <AssociationConnector Association="iBemsModel.FK__CmFacility__BemsFacilityType" />
+        <AssociationConnector Association="iBemsModel.FK_BemsFormulaParameter_CmFacility" />
+        <AssociationConnector Association="iBemsModel.FK_BemsMonitoringPoint_CmFacility" />
+        <AssociationConnector Association="iBemsModel.FK_CmFacility_BemsNoticePriceContractType" />
+        <AssociationConnector Association="iBemsModel.FK_BemsPeakFacility_CmFacility" />
+        <AssociationConnector Association="iBemsModel.FK__CmFacility__CmBuilding" />
+        <AssociationConnector Association="iBemsModel.FK__CmFacility__74444068" />
+        <AssociationConnector Association="iBemsModel.FK__CmFacility__753864A1" />
+        <AssociationConnector Association="iBemsModel.FK__CmFacility__762C88DA" />
+        <AssociationConnector Association="iBemsModel.FK__CmFacility__CmFacility" />
+        <AssociationConnector Association="iBemsModel.FK__CmFacility__CmFile" />
+        <AssociationConnector Association="iBemsModel.FK__CmFacility__CmZone" />
+        <AssociationConnector Association="iBemsModel.FK__CmFacility__FmsFacilityCodeClassAsFirst" />
+        <AssociationConnector Association="iBemsModel.FK__CmFacility__FmsFacilityCodeClassAsSecond" />
+        <AssociationConnector Association="iBemsModel.FK__CmFacility__FmsFacilityCodeClassAsThird" />
+        <AssociationConnector Association="iBemsModel.FK__CmFacilityFile__7720AD13" />
+        <AssociationConnector Association="iBemsModel.FK__CmFacilityManual__79FD19BE" />
+        <AssociationConnector Association="iBemsModel.FK__FmsFacilityOpera__725BF7F6" />
+        <AssociationConnector Association="iBemsModel.FK__FmsWorkResultCheckItem__CmFacility" />
+        <AssociationConnector Association="iBemsModel.FK__FmsWorkResultToFacility__CmFacility" />
+        <AssociationConnector Association="iBemsModel.FK_CmFacility_CmUser" />
+        <AssociationConnector Association="iBemsModel.FK_CmFacility_CmUser1" />
+        <AssociationConnector Association="iBemsModel.FK_CmFacilityTempSet_CmFacility" />
+        <AssociationConnector Association="iBemsModel.FK_FmsWorkOrderToFacility_CmFacility" />
+        <AssociationConnector Association="iBemsModel.FK_FmsWorkRequestToFacility_CmFacility" />
+        <AssociationConnector Association="iBemsModel.FK_FmsWorkScheduleToFacility_CmFacility" />
+        <EntityTypeShape EntityType="iBemsModel.BemsMonitoringPointHistory15minRawData" Width="1.5" PointX="12.75" PointY="89.625" />
+        <AssociationConnector Association="iBemsModel.FK__BemsMonitoringPointHistory15minRawData__BemsFacilityType" />
+        <AssociationConnector Association="iBemsModel.FK__BemsMonitoringPointHistory15minRawData__BemsMonitoringPoint" />
+        <EntityTypeShape EntityType="iBemsModel.FmsDailyReport" Width="1.5" PointX="24.75" PointY="138.25" />
+        <AssociationConnector Association="iBemsModel.FK_FmsDailyReport_CmBusinessField" />
+        <AssociationConnector Association="iBemsModel.FK_FmsDailyReport_CmUser" />
+        <EntityTypeShape EntityType="iBemsModel.BemsPeakHistoryDaily" Width="1.5" PointX="11.375" PointY="9.75" />
+        <EntityTypeShape EntityType="iBemsModel.FmsEquipment" Width="1.5" PointX="32.75" PointY="119.875" />
+        <AssociationConnector Association="iBemsModel.FK_FmsEquipment_CmUser" />
+        <AssociationConnector Association="iBemsModel.FK_FmsEquipment_FmsEquipmentCodeType" />
+        <AssociationConnector Association="iBemsModel.FK_FmsEquipment_FmsMaterialWarehouse" />
+        <AssociationConnector Association="iBemsModel.FK_FmsEquipmentHistory_FmsEquipment" />
+        <EntityTypeShape EntityType="iBemsModel.CmAlarmAdmin" Width="1.5" PointX="12.375" PointY="0.75" />
+        <EntityTypeShape EntityType="iBemsModel.BemsFloorStatus" Width="1.5" PointX="5.75" PointY="12.75" />
+        <EntityTypeShape EntityType="iBemsModel.BemsReportHistory" Width="1.5" PointX="8.375" PointY="12.75" />
+        <EntityTypeShape EntityType="iBemsModel.CmPartner" Width="1.5" PointX="0.75" PointY="107.875" />
+        <EntityTypeShape EntityType="iBemsModel.CmPartnerType" Width="1.5" PointX="1.5" PointY="104.5" />
+        <AssociationConnector Association="iBemsModel.FK_CmPartnerType_CmPartner" />
+        <AssociationConnector Association="iBemsModel.FK_FmsConstruction_CmPartner" />
+        <AssociationConnector Association="iBemsModel.FK_FmsWorkRequest_CmPartner" />
+        <AssociationConnector Association="iBemsModel.FK_FmsWorkSchedule_CmPartner" />
+        <EntityTypeShape EntityType="iBemsModel.FmsContract" Width="1.5" PointX="27.75" PointY="95.125" />
+        <AssociationConnector Association="iBemsModel.FK_FmsContract_CmPartner" />
+        <AssociationConnector Association="iBemsModel.FK_FmsContract_CmPartnerType" />
+        <AssociationConnector Association="iBemsModel.FK_FmsContract_FmsContractClass" />
+        <AssociationConnector Association="iBemsModel.FK_FmsContract_FmsContractMethod" />
+        <AssociationConnector Association="iBemsModel.FK_FmsContract_FmsContractType" />
+        <AssociationConnector Association="iBemsModel.FK_FmsContract_FmsPaymentType" />
+        <EntityTypeShape EntityType="iBemsModel.BemsMonitoringPointForecastingDayAhead" Width="1.5" PointX="10.375" PointY="12.75" />
+        <EntityTypeShape EntityType="iBemsModel.BemsMonitoringPointForecastingHourAhead" Width="1.5" PointX="12.375" PointY="12.75" />
+        <EntityTypeShape EntityType="iBemsModel.BemsFloorPlan" Width="1.5" PointX="0.75" PointY="12.75" />
+        <EntityTypeShape EntityType="iBemsModel.BemsMonitoringPointWeatherForecasted" Width="1.5" PointX="13.375" PointY="3.75" />
+        <EntityTypeShape EntityType="iBemsModel.BemsIceThermalStorageSimulation" Width="1.5" PointX="14.375" PointY="12.75" />
+        <EntityTypeShape EntityType="iBemsModel.BemsConfigData" Width="1.5" PointX="13.375" PointY="7.75" />
+        </Diagram>
+    </edmx:Diagrams>
+  </edmx:Designer>
+</edmx:Edmx>

+ 201 - 0
.svn/pristine/30/304fa41f7d655b3c9f6460a77b64657db10d2633.svn-base

@@ -0,0 +1,201 @@
+//------------------------------------------------------------------------------
+// <auto-generated>
+//    이 코드는 템플릿에서 생성되었습니다.
+//
+//    이 파일을 수동으로 변경하면 응용 프로그램에 예기치 않은 동작이 발생할 수 있습니다.
+//    코드가 다시 생성되면 이 파일에 대한 수동 변경 사항을 덮어씁니다.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+namespace iBemsDataService.Model
+{
+    using System;
+    using System.Data.Entity;
+    using System.Data.Entity.Infrastructure;
+    
+    public partial class iBemsEntities : DbContext
+    {
+        public iBemsEntities()
+            : base("name=iBemsEntities")
+        {
+        }
+    
+        protected override void OnModelCreating(DbModelBuilder modelBuilder)
+        {
+            throw new UnintentionalCodeFirstException();
+        }
+    
+        public DbSet<BemsAnalysisType> BemsAnalysisType { get; set; }
+        public DbSet<BemsControlPointHistory> BemsControlPointHistory { get; set; }
+        public DbSet<BemsFacilityType> BemsFacilityType { get; set; }
+        public DbSet<BemsFactorCo2> BemsFactorCo2 { get; set; }
+        public DbSet<BemsFactorToe> BemsFactorToe { get; set; }
+        public DbSet<BemsFormula> BemsFormula { get; set; }
+        public DbSet<BemsFormulaBase> BemsFormulaBase { get; set; }
+        public DbSet<BemsFormulaParameter> BemsFormulaParameter { get; set; }
+        public DbSet<BemsFormulaTable> BemsFormulaTable { get; set; }
+        public DbSet<BemsFormulaTableValue> BemsFormulaTableValue { get; set; }
+        public DbSet<BemsMonitoringPoint> BemsMonitoringPoint { get; set; }
+        public DbSet<BemsMonitoringPointBaseData> BemsMonitoringPointBaseData { get; set; }
+        public DbSet<BemsMonitoringPointHistory15min> BemsMonitoringPointHistory15min { get; set; }
+        public DbSet<BemsMonitoringPointHistoryDaily> BemsMonitoringPointHistoryDaily { get; set; }
+        public DbSet<BemsMonitoringPointHistoryHourly> BemsMonitoringPointHistoryHourly { get; set; }
+        public DbSet<BemsMonitoringPointToAnlaysisType> BemsMonitoringPointToAnlaysisType { get; set; }
+        public DbSet<BemsServiceType> BemsServiceType { get; set; }
+        public DbSet<CmAnnouncement> CmAnnouncement { get; set; }
+        public DbSet<CmBuilding> CmBuilding { get; set; }
+        public DbSet<CmBusinessField> CmBusinessField { get; set; }
+        public DbSet<CmCompany> CmCompany { get; set; }
+        public DbSet<CmCompanyType> CmCompanyType { get; set; }
+        public DbSet<CmDepartment> CmDepartment { get; set; }
+        public DbSet<CmFacilityFile> CmFacilityFile { get; set; }
+        public DbSet<CmFacilityTempSet> CmFacilityTempSet { get; set; }
+        public DbSet<CmFile> CmFile { get; set; }
+        public DbSet<CmFileCategory> CmFileCategory { get; set; }
+        public DbSet<CmFloor> CmFloor { get; set; }
+        public DbSet<CmHoliday> CmHoliday { get; set; }
+        public DbSet<CmHolidayCustom> CmHolidayCustom { get; set; }
+        public DbSet<CmPosition> CmPosition { get; set; }
+        public DbSet<CmUser> CmUser { get; set; }
+        public DbSet<CmUserGroup> CmUserGroup { get; set; }
+        public DbSet<CmUserGroupPermission> CmUserGroupPermission { get; set; }
+        public DbSet<CmUserLoginHistory> CmUserLoginHistory { get; set; }
+        public DbSet<CmUserToLicense> CmUserToLicense { get; set; }
+        public DbSet<CmZone> CmZone { get; set; }
+        public DbSet<CmZoneTempHumiSet> CmZoneTempHumiSet { get; set; }
+        public DbSet<FmsAccident> FmsAccident { get; set; }
+        public DbSet<FmsAccidentCodeType> FmsAccidentCodeType { get; set; }
+        public DbSet<FmsBudget> FmsBudget { get; set; }
+        public DbSet<FmsBudgetCodeClass> FmsBudgetCodeClass { get; set; }
+        public DbSet<FmsCompanyEstimationCodeClass> FmsCompanyEstimationCodeClass { get; set; }
+        public DbSet<FmsConstruction> FmsConstruction { get; set; }
+        public DbSet<FmsConstructionCodeProgress> FmsConstructionCodeProgress { get; set; }
+        public DbSet<FmsConstructionCodeType> FmsConstructionCodeType { get; set; }
+        public DbSet<FmsConstructionEstimation> FmsConstructionEstimation { get; set; }
+        public DbSet<FmsContractClass> FmsContractClass { get; set; }
+        public DbSet<FmsContractMethod> FmsContractMethod { get; set; }
+        public DbSet<FmsContractType> FmsContractType { get; set; }
+        public DbSet<FmsDrawing> FmsDrawing { get; set; }
+        public DbSet<FmsDrawingCodeGroup> FmsDrawingCodeGroup { get; set; }
+        public DbSet<FmsDrawingCodeType> FmsDrawingCodeType { get; set; }
+        public DbSet<FmsDrawingHistory> FmsDrawingHistory { get; set; }
+        public DbSet<FmsEquipmentCodeStateType> FmsEquipmentCodeStateType { get; set; }
+        public DbSet<FmsEquipmentCodeType> FmsEquipmentCodeType { get; set; }
+        public DbSet<FmsEquipmentHistory> FmsEquipmentHistory { get; set; }
+        public DbSet<FmsFacilityCheckItem> FmsFacilityCheckItem { get; set; }
+        public DbSet<FmsFacilityCodeClass> FmsFacilityCodeClass { get; set; }
+        public DbSet<FmsFacilityManual> FmsFacilityManual { get; set; }
+        public DbSet<FmsFacilityOperationItem> FmsFacilityOperationItem { get; set; }
+        public DbSet<FmsLicense> FmsLicense { get; set; }
+        public DbSet<FmsManual> FmsManual { get; set; }
+        public DbSet<FmsManualHistory> FmsManualHistory { get; set; }
+        public DbSet<FmsManualType> FmsManualType { get; set; }
+        public DbSet<FmsMaterialCarriedForward> FmsMaterialCarriedForward { get; set; }
+        public DbSet<FmsMaterialCodeAdjustmentType> FmsMaterialCodeAdjustmentType { get; set; }
+        public DbSet<FmsMaterialCodeClass> FmsMaterialCodeClass { get; set; }
+        public DbSet<FmsMaterialCodeLocation> FmsMaterialCodeLocation { get; set; }
+        public DbSet<FmsMaterialCodeProgress> FmsMaterialCodeProgress { get; set; }
+        public DbSet<FmsMaterialCodePurchaseType> FmsMaterialCodePurchaseType { get; set; }
+        public DbSet<FmsMaterialCodeReleaseType> FmsMaterialCodeReleaseType { get; set; }
+        public DbSet<FmsMaterialCodeType> FmsMaterialCodeType { get; set; }
+        public DbSet<FmsMaterialPurchaseOrder> FmsMaterialPurchaseOrder { get; set; }
+        public DbSet<FmsMaterialPurchaseOrderMaterial> FmsMaterialPurchaseOrderMaterial { get; set; }
+        public DbSet<FmsMaterialPurchaseRequest> FmsMaterialPurchaseRequest { get; set; }
+        public DbSet<FmsMaterialPurchaseRequestMaterial> FmsMaterialPurchaseRequestMaterial { get; set; }
+        public DbSet<FmsMaterialStored> FmsMaterialStored { get; set; }
+        public DbSet<FmsMaterialTradeCompany> FmsMaterialTradeCompany { get; set; }
+        public DbSet<FmsMaterialWarehouse> FmsMaterialWarehouse { get; set; }
+        public DbSet<FmsPaymentType> FmsPaymentType { get; set; }
+        public DbSet<FmsWorkCodeCauseClass> FmsWorkCodeCauseClass { get; set; }
+        public DbSet<FmsWorkCodeCycleUnit> FmsWorkCodeCycleUnit { get; set; }
+        public DbSet<FmsWorkCodeEmergency> FmsWorkCodeEmergency { get; set; }
+        public DbSet<FmsWorkCodeHolidayWorkType> FmsWorkCodeHolidayWorkType { get; set; }
+        public DbSet<FmsWorkCodeLegalInspectionAgency> FmsWorkCodeLegalInspectionAgency { get; set; }
+        public DbSet<FmsWorkCodeProgress> FmsWorkCodeProgress { get; set; }
+        public DbSet<FmsWorkCodeType> FmsWorkCodeType { get; set; }
+        public DbSet<FmsWorkOrder> FmsWorkOrder { get; set; }
+        public DbSet<FmsWorkOrderToFacility> FmsWorkOrderToFacility { get; set; }
+        public DbSet<FmsWorkRequest> FmsWorkRequest { get; set; }
+        public DbSet<FmsWorkRequestToFacility> FmsWorkRequestToFacility { get; set; }
+        public DbSet<FmsWorkResult> FmsWorkResult { get; set; }
+        public DbSet<FmsWorkResultCheckItem> FmsWorkResultCheckItem { get; set; }
+        public DbSet<FmsWorkResultCheckItemMaterial> FmsWorkResultCheckItemMaterial { get; set; }
+        public DbSet<FmsWorkResultFile> FmsWorkResultFile { get; set; }
+        public DbSet<FmsWorkResultLaw> FmsWorkResultLaw { get; set; }
+        public DbSet<FmsWorkResultToFacility> FmsWorkResultToFacility { get; set; }
+        public DbSet<FmsWorkScheduleToFacility> FmsWorkScheduleToFacility { get; set; }
+        public DbSet<sysdiagrams> sysdiagrams { get; set; }
+        public DbSet<FmsDailyCheckReport> FmsDailyCheckReport { get; set; }
+        public DbSet<FmsFacilityOperationReport> FmsFacilityOperationReport { get; set; }
+        public DbSet<FmsBudgetDetail> FmsBudgetDetail { get; set; }
+        public DbSet<FmsBudgetDetailExecution> FmsBudgetDetailExecution { get; set; }
+        public DbSet<FmsMonthlyReport> FmsMonthlyReport { get; set; }
+        public DbSet<FmsInvestmentCost> FmsInvestmentCost { get; set; }
+        public DbSet<CmHolidayWeekend> CmHolidayWeekend { get; set; }
+        public DbSet<FmsMaterial> FmsMaterial { get; set; }
+        public DbSet<FmsMaterialRelease> FmsMaterialRelease { get; set; }
+        public DbSet<CmPatrolType> CmPatrolType { get; set; }
+        public DbSet<CmPatrolGroup> CmPatrolGroup { get; set; }
+        public DbSet<CmPatrolGroupUser> CmPatrolGroupUser { get; set; }
+        public DbSet<CmPatrolPos> CmPatrolPos { get; set; }
+        public DbSet<CmPatrolCourse> CmPatrolCourse { get; set; }
+        public DbSet<CmPatrolCoursePos> CmPatrolCoursePos { get; set; }
+        public DbSet<CmPatrolPlan> CmPatrolPlan { get; set; }
+        public DbSet<CmPatrolHistoryPos> CmPatrolHistoryPos { get; set; }
+        public DbSet<BemsPeakInfo> BemsPeakInfo { get; set; }
+        public DbSet<BemsPeakHistory> BemsPeakHistory { get; set; }
+        public DbSet<CmPatrolSchedule> CmPatrolSchedule { get; set; }
+        public DbSet<BemsNoticePriceBase> BemsNoticePriceBase { get; set; }
+        public DbSet<BemsNoticePriceContractType> BemsNoticePriceContractType { get; set; }
+        public DbSet<BemsNoticePriceDetail> BemsNoticePriceDetail { get; set; }
+        public DbSet<BemsPeakFacility> BemsPeakFacility { get; set; }
+        public DbSet<CmSite> CmSite { get; set; }
+        public DbSet<FmsReport> FmsReport { get; set; }
+        public DbSet<CmServiceEnergyCalcMonth> CmServiceEnergyCalcMonth { get; set; }
+        public DbSet<CmServiceEnergyCalcDay> CmServiceEnergyCalcDay { get; set; }
+        public DbSet<CmPatrolHistory> CmPatrolHistory { get; set; }
+        public DbSet<CmMenu> CmMenu { get; set; }
+        public DbSet<BemsChartInfo> BemsChartInfo { get; set; }
+        public DbSet<BemsReportFormat> BemsReportFormat { get; set; }
+        public DbSet<FmsWorkSchedule> FmsWorkSchedule { get; set; }
+        public DbSet<BemsPeopleIncrease> BemsPeopleIncrease { get; set; }
+        public DbSet<BemsPriceCode> BemsPriceCode { get; set; }
+        public DbSet<BemsPriceFormula> BemsPriceFormula { get; set; }
+        public DbSet<BemsPriceMeta> BemsPriceMeta { get; set; }
+        public DbSet<BemsPriceType> BemsPriceType { get; set; }
+        public DbSet<BemsRentalRate> BemsRentalRate { get; set; }
+        public DbSet<BemsSitePrice> BemsSitePrice { get; set; }
+        public DbSet<BemsSitePriceHistory> BemsSitePriceHistory { get; set; }
+        public DbSet<BemsMonitoringPointConfig> BemsMonitoringPointConfig { get; set; }
+        public DbSet<BemsAlarmSetting> BemsAlarmSetting { get; set; }
+        public DbSet<BemsAlarmLog> BemsAlarmLog { get; set; }
+        public DbSet<BemsAlarmGroup> BemsAlarmGroup { get; set; }
+        public DbSet<BemsAlarmGroupUser> BemsAlarmGroupUser { get; set; }
+        public DbSet<BemsEnergyCost> BemsEnergyCost { get; set; }
+        public DbSet<BemsEnergyConfigPercentMonth> BemsEnergyConfigPercentMonth { get; set; }
+        public DbSet<BemsEnergyConfigPercentWeek> BemsEnergyConfigPercentWeek { get; set; }
+        public DbSet<BemsEnergyDaily> BemsEnergyDaily { get; set; }
+        public DbSet<BemsEnergyDailyRegression> BemsEnergyDailyRegression { get; set; }
+        public DbSet<WeatherDongNaeForecast> WeatherDongNaeForecast { get; set; }
+        public DbSet<FmsEquipmentRentInfo> FmsEquipmentRentInfo { get; set; }
+        public DbSet<BemsControlAHUTempConfig> BemsControlAHUTempConfig { get; set; }
+        public DbSet<BemsFuelType> BemsFuelType { get; set; }
+        public DbSet<CmFacility> CmFacility { get; set; }
+        public DbSet<BemsMonitoringPointHistory15minRawData> BemsMonitoringPointHistory15minRawData { get; set; }
+        public DbSet<FmsDailyReport> FmsDailyReport { get; set; }
+        public DbSet<BemsPeakHistoryDaily> BemsPeakHistoryDaily { get; set; }
+        public DbSet<FmsEquipment> FmsEquipment { get; set; }
+        public DbSet<CmAlarmAdmin> CmAlarmAdmin { get; set; }
+        public DbSet<BemsFloorStatus> BemsFloorStatus { get; set; }
+        public DbSet<BemsReportHistory> BemsReportHistory { get; set; }
+        public DbSet<CmPartner> CmPartner { get; set; }
+        public DbSet<CmPartnerType> CmPartnerType { get; set; }
+        public DbSet<FmsContract> FmsContract { get; set; }
+        public DbSet<BemsMonitoringPointForecastingDayAhead> BemsMonitoringPointForecastingDayAhead { get; set; }
+        public DbSet<BemsMonitoringPointForecastingHourAhead> BemsMonitoringPointForecastingHourAhead { get; set; }
+        public DbSet<BemsFloorPlan> BemsFloorPlan { get; set; }
+        public DbSet<BemsMonitoringPointWeatherForecasted> BemsMonitoringPointWeatherForecasted { get; set; }
+        public DbSet<BemsIceThermalStorageSimulation> BemsIceThermalStorageSimulation { get; set; }
+        public DbSet<BemsConfigData> BemsConfigData { get; set; }
+    }
+}

BIN
.svn/pristine/31/3105d7b6f6367ca5ae2d7dd169174749b04b622f.svn-base


+ 32 - 0
.svn/pristine/36/363d4f92126d9c0d8d862adad19bdba29c26b168.svn-base

@@ -0,0 +1,32 @@
+//------------------------------------------------------------------------------
+// <auto-generated>
+//    이 코드는 템플릿에서 생성되었습니다.
+//
+//    이 파일을 수동으로 변경하면 응용 프로그램에 예기치 않은 동작이 발생할 수 있습니다.
+//    코드가 다시 생성되면 이 파일에 대한 수동 변경 사항을 덮어씁니다.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+namespace iBemsDataService.Model
+{
+    using System;
+    using System.Collections.Generic;
+    
+    public partial class CmPosition
+    {
+        public CmPosition()
+        {
+            this.CmUser = new HashSet<CmUser>();
+        }
+    
+        public int SiteId { get; set; }
+        public int PositionId { get; set; }
+        public string Name { get; set; }
+        public Nullable<bool> IsUse { get; set; }
+        public Nullable<int> Position { get; set; }
+    
+        public virtual ICollection<CmUser> CmUser { get; set; }
+        public virtual CmSite CmSite { get; set; }
+        public virtual CmSite CmSite1 { get; set; }
+    }
+}

+ 46 - 0
.svn/pristine/3d/3d5b6b0ac8841d4ef74ed06c1832e10ae828a7a5.svn-base

@@ -0,0 +1,46 @@
+
+(function () {
+    BemsWebApplication.BemsConfigDataViewModel = function (data) {
+        this.SiteId = ko.observable();
+        this.LoadDBIP = ko.observable();
+        this.LoadDBUserID = ko.observable();
+        this.LoadDBUserPW = ko.observable();
+        this.LoadDBName = ko.observable();
+        this.TargetDBIP = ko.observable();
+        this.TargetDBUserID = ko.observable();
+        this.TargetDBUserPW = ko.observable();
+        this.TargetDBName = ko.observable();
+        if (data)
+            this.fromJS(data);
+    };
+
+    $.extend(BemsWebApplication.BemsConfigDataViewModel.prototype, {
+        toJS: function () {
+            return {
+                SiteId: this.SiteId(),
+                LoadDBIP: this.LoadDBIP(),
+                LoadDBUserID: this.LoadDBUserID(),
+                LoadDBUserPW: this.LoadDBUserPW(),
+                LoadDBName: this.LoadDBName(),
+                TargetDBIP: this.TargetDBIP(),
+                TargetDBUserID: this.TargetDBUserID(),
+                TargetDBUserPW: this.TargetDBUserPW(),
+                TargetDBName: this.TargetDBName()
+            };
+        },
+
+        fromJS: function (data) {
+            if (data) {
+                this.SiteId(data.SiteId);
+                this.LoadDBIP(data.LoadDBIP);
+                this.LoadDBUserID(data.LoadDBUserID);
+                this.LoadDBUserPW(data.LoadDBUserPW);
+                this.LoadDBName(data.LoadDBName);
+                this.TargetDBIP(data.TargetDBIP);
+                this.TargetDBUserID(data.TargetDBUserID);
+                this.TargetDBUserPW(data.TargetDBUserPW);
+                this.TargetDBName(data.TargetDBName);
+            }
+        }
+    });
+})();

+ 2077 - 0
.svn/pristine/5a/5aeedc55d15b9ad5355a9c749e7135449aa6706d.svn-base

@@ -0,0 +1,2077 @@
+C:\Users\Administrator\Desktop\머지작업\iBEMS 서브버전 최신(20180410)\iBemsDataService\bin\iBemsDataService.dll.config
+C:\Users\Administrator\Desktop\머지작업\iBEMS 서브버전 최신(20180410)\iBemsDataService\bin\iBemsDataService.dll
+C:\Users\Administrator\Desktop\머지작업\iBEMS 서브버전 최신(20180410)\iBemsDataService\bin\iBemsDataService.pdb
+C:\Users\Administrator\Desktop\머지작업\iBEMS 서브버전 최신(20180410)\iBemsDataService\bin\Common.Logging.Core.dll
+C:\Users\Administrator\Desktop\머지작업\iBEMS 서브버전 최신(20180410)\iBemsDataService\bin\Common.Logging.dll
+C:\Users\Administrator\Desktop\머지작업\iBEMS 서브버전 최신(20180410)\iBemsDataService\bin\EntityFramework.dll
+C:\Users\Administrator\Desktop\머지작업\iBEMS 서브버전 최신(20180410)\iBemsDataService\bin\Microsoft.Data.Edm.dll
+C:\Users\Administrator\Desktop\머지작업\iBEMS 서브버전 최신(20180410)\iBemsDataService\bin\Microsoft.Data.OData.dll
+C:\Users\Administrator\Desktop\머지작업\iBEMS 서브버전 최신(20180410)\iBemsDataService\bin\Microsoft.Data.Services.Client.dll
+C:\Users\Administrator\Desktop\머지작업\iBEMS 서브버전 최신(20180410)\iBemsDataService\bin\Microsoft.Data.Services.dll
+C:\Users\Administrator\Desktop\머지작업\iBEMS 서브버전 최신(20180410)\iBemsDataService\bin\Newtonsoft.Json.dll
+C:\Users\Administrator\Desktop\머지작업\iBEMS 서브버전 최신(20180410)\iBemsDataService\bin\Quartz.dll
+C:\Users\Administrator\Desktop\머지작업\iBEMS 서브버전 최신(20180410)\iBemsDataService\bin\System.Net.Http.Formatting.dll
+C:\Users\Administrator\Desktop\머지작업\iBEMS 서브버전 최신(20180410)\iBemsDataService\bin\System.Spatial.dll
+C:\Users\Administrator\Desktop\머지작업\iBEMS 서브버전 최신(20180410)\iBemsDataService\bin\System.Web.Http.dll
+C:\Users\Administrator\Desktop\머지작업\iBEMS 서브버전 최신(20180410)\iBemsDataService\bin\System.Web.Http.OData.dll
+C:\Users\Administrator\Desktop\머지작업\iBEMS 서브버전 최신(20180410)\iBemsDataService\bin\System.Web.Http.WebHost.dll
+C:\Users\Administrator\Desktop\머지작업\iBEMS 서브버전 최신(20180410)\iBemsDataService\bin\Common.Logging.xml
+C:\Users\Administrator\Desktop\머지작업\iBEMS 서브버전 최신(20180410)\iBemsDataService\bin\Common.Logging.Core.xml
+C:\Users\Administrator\Desktop\머지작업\iBEMS 서브버전 최신(20180410)\iBemsDataService\bin\EntityFramework.xml
+C:\Users\Administrator\Desktop\머지작업\iBEMS 서브버전 최신(20180410)\iBemsDataService\bin\Microsoft.Data.Edm.xml
+C:\Users\Administrator\Desktop\머지작업\iBEMS 서브버전 최신(20180410)\iBemsDataService\bin\Microsoft.Data.OData.xml
+C:\Users\Administrator\Desktop\머지작업\iBEMS 서브버전 최신(20180410)\iBemsDataService\bin\Microsoft.Data.Services.xml
+C:\Users\Administrator\Desktop\머지작업\iBEMS 서브버전 최신(20180410)\iBemsDataService\bin\Microsoft.Data.Services.Client.xml
+C:\Users\Administrator\Desktop\머지작업\iBEMS 서브버전 최신(20180410)\iBemsDataService\bin\Newtonsoft.Json.xml
+C:\Users\Administrator\Desktop\머지작업\iBEMS 서브버전 최신(20180410)\iBemsDataService\bin\Quartz.xml
+C:\Users\Administrator\Desktop\머지작업\iBEMS 서브버전 최신(20180410)\iBemsDataService\bin\System.Net.Http.Formatting.xml
+C:\Users\Administrator\Desktop\머지작업\iBEMS 서브버전 최신(20180410)\iBemsDataService\bin\System.Spatial.xml
+C:\Users\Administrator\Desktop\머지작업\iBEMS 서브버전 최신(20180410)\iBemsDataService\bin\System.Web.Http.xml
+C:\Users\Administrator\Desktop\머지작업\iBEMS 서브버전 최신(20180410)\iBemsDataService\bin\System.Web.Http.OData.xml
+C:\Users\Administrator\Desktop\머지작업\iBEMS 서브버전 최신(20180410)\iBemsDataService\bin\System.Web.Http.WebHost.xml
+C:\Users\Administrator\Desktop\머지작업\iBEMS 서브버전 최신(20180410)\iBemsDataService\bin\ko\EntityFramework.resources.dll
+C:\Users\Administrator\Desktop\머지작업\iBEMS 서브버전 최신(20180410)\iBemsDataService\bin\de\Microsoft.Data.Edm.resources.dll
+C:\Users\Administrator\Desktop\머지작업\iBEMS 서브버전 최신(20180410)\iBemsDataService\bin\es\Microsoft.Data.Edm.resources.dll
+C:\Users\Administrator\Desktop\머지작업\iBEMS 서브버전 최신(20180410)\iBemsDataService\bin\fr\Microsoft.Data.Edm.resources.dll
+C:\Users\Administrator\Desktop\머지작업\iBEMS 서브버전 최신(20180410)\iBemsDataService\bin\it\Microsoft.Data.Edm.resources.dll
+C:\Users\Administrator\Desktop\머지작업\iBEMS 서브버전 최신(20180410)\iBemsDataService\bin\ja\Microsoft.Data.Edm.resources.dll
+C:\Users\Administrator\Desktop\머지작업\iBEMS 서브버전 최신(20180410)\iBemsDataService\bin\ko\Microsoft.Data.Edm.resources.dll
+C:\Users\Administrator\Desktop\머지작업\iBEMS 서브버전 최신(20180410)\iBemsDataService\bin\ru\Microsoft.Data.Edm.resources.dll
+C:\Users\Administrator\Desktop\머지작업\iBEMS 서브버전 최신(20180410)\iBemsDataService\bin\zh-Hans\Microsoft.Data.Edm.resources.dll
+C:\Users\Administrator\Desktop\머지작업\iBEMS 서브버전 최신(20180410)\iBemsDataService\bin\zh-Hant\Microsoft.Data.Edm.resources.dll
+C:\Users\Administrator\Desktop\머지작업\iBEMS 서브버전 최신(20180410)\iBemsDataService\bin\de\Microsoft.Data.OData.resources.dll
+C:\Users\Administrator\Desktop\머지작업\iBEMS 서브버전 최신(20180410)\iBemsDataService\bin\es\Microsoft.Data.OData.resources.dll
+C:\Users\Administrator\Desktop\머지작업\iBEMS 서브버전 최신(20180410)\iBemsDataService\bin\fr\Microsoft.Data.OData.resources.dll
+C:\Users\Administrator\Desktop\머지작업\iBEMS 서브버전 최신(20180410)\iBemsDataService\bin\it\Microsoft.Data.OData.resources.dll
+C:\Users\Administrator\Desktop\머지작업\iBEMS 서브버전 최신(20180410)\iBemsDataService\bin\ja\Microsoft.Data.OData.resources.dll
+C:\Users\Administrator\Desktop\머지작업\iBEMS 서브버전 최신(20180410)\iBemsDataService\bin\ko\Microsoft.Data.OData.resources.dll
+C:\Users\Administrator\Desktop\머지작업\iBEMS 서브버전 최신(20180410)\iBemsDataService\bin\ru\Microsoft.Data.OData.resources.dll
+C:\Users\Administrator\Desktop\머지작업\iBEMS 서브버전 최신(20180410)\iBemsDataService\bin\zh-Hans\Microsoft.Data.OData.resources.dll
+C:\Users\Administrator\Desktop\머지작업\iBEMS 서브버전 최신(20180410)\iBemsDataService\bin\zh-Hant\Microsoft.Data.OData.resources.dll
+C:\Users\Administrator\Desktop\머지작업\iBEMS 서브버전 최신(20180410)\iBemsDataService\bin\de\Microsoft.Data.Services.resources.dll
+C:\Users\Administrator\Desktop\머지작업\iBEMS 서브버전 최신(20180410)\iBemsDataService\bin\es\Microsoft.Data.Services.resources.dll
+C:\Users\Administrator\Desktop\머지작업\iBEMS 서브버전 최신(20180410)\iBemsDataService\bin\fr\Microsoft.Data.Services.resources.dll
+C:\Users\Administrator\Desktop\머지작업\iBEMS 서브버전 최신(20180410)\iBemsDataService\bin\it\Microsoft.Data.Services.resources.dll
+C:\Users\Administrator\Desktop\머지작업\iBEMS 서브버전 최신(20180410)\iBemsDataService\bin\ja\Microsoft.Data.Services.resources.dll
+C:\Users\Administrator\Desktop\머지작업\iBEMS 서브버전 최신(20180410)\iBemsDataService\bin\ko\Microsoft.Data.Services.resources.dll
+C:\Users\Administrator\Desktop\머지작업\iBEMS 서브버전 최신(20180410)\iBemsDataService\bin\ru\Microsoft.Data.Services.resources.dll
+C:\Users\Administrator\Desktop\머지작업\iBEMS 서브버전 최신(20180410)\iBemsDataService\bin\zh-Hans\Microsoft.Data.Services.resources.dll
+C:\Users\Administrator\Desktop\머지작업\iBEMS 서브버전 최신(20180410)\iBemsDataService\bin\zh-Hant\Microsoft.Data.Services.resources.dll
+C:\Users\Administrator\Desktop\머지작업\iBEMS 서브버전 최신(20180410)\iBemsDataService\bin\de\Microsoft.Data.Services.Client.resources.dll
+C:\Users\Administrator\Desktop\머지작업\iBEMS 서브버전 최신(20180410)\iBemsDataService\bin\es\Microsoft.Data.Services.Client.resources.dll
+C:\Users\Administrator\Desktop\머지작업\iBEMS 서브버전 최신(20180410)\iBemsDataService\bin\fr\Microsoft.Data.Services.Client.resources.dll
+C:\Users\Administrator\Desktop\머지작업\iBEMS 서브버전 최신(20180410)\iBemsDataService\bin\it\Microsoft.Data.Services.Client.resources.dll
+C:\Users\Administrator\Desktop\머지작업\iBEMS 서브버전 최신(20180410)\iBemsDataService\bin\ja\Microsoft.Data.Services.Client.resources.dll
+C:\Users\Administrator\Desktop\머지작업\iBEMS 서브버전 최신(20180410)\iBemsDataService\bin\ko\Microsoft.Data.Services.Client.resources.dll
+C:\Users\Administrator\Desktop\머지작업\iBEMS 서브버전 최신(20180410)\iBemsDataService\bin\ru\Microsoft.Data.Services.Client.resources.dll
+C:\Users\Administrator\Desktop\머지작업\iBEMS 서브버전 최신(20180410)\iBemsDataService\bin\zh-Hans\Microsoft.Data.Services.Client.resources.dll
+C:\Users\Administrator\Desktop\머지작업\iBEMS 서브버전 최신(20180410)\iBemsDataService\bin\zh-Hant\Microsoft.Data.Services.Client.resources.dll
+C:\Users\Administrator\Desktop\머지작업\iBEMS 서브버전 최신(20180410)\iBemsDataService\bin\de\System.Spatial.resources.dll
+C:\Users\Administrator\Desktop\머지작업\iBEMS 서브버전 최신(20180410)\iBemsDataService\bin\es\System.Spatial.resources.dll
+C:\Users\Administrator\Desktop\머지작업\iBEMS 서브버전 최신(20180410)\iBemsDataService\bin\fr\System.Spatial.resources.dll
+C:\Users\Administrator\Desktop\머지작업\iBEMS 서브버전 최신(20180410)\iBemsDataService\bin\it\System.Spatial.resources.dll
+C:\Users\Administrator\Desktop\머지작업\iBEMS 서브버전 최신(20180410)\iBemsDataService\bin\ja\System.Spatial.resources.dll
+C:\Users\Administrator\Desktop\머지작업\iBEMS 서브버전 최신(20180410)\iBemsDataService\bin\ko\System.Spatial.resources.dll
+C:\Users\Administrator\Desktop\머지작업\iBEMS 서브버전 최신(20180410)\iBemsDataService\bin\ru\System.Spatial.resources.dll
+C:\Users\Administrator\Desktop\머지작업\iBEMS 서브버전 최신(20180410)\iBemsDataService\bin\zh-Hans\System.Spatial.resources.dll
+C:\Users\Administrator\Desktop\머지작업\iBEMS 서브버전 최신(20180410)\iBemsDataService\bin\zh-Hant\System.Spatial.resources.dll
+C:\Users\Administrator\Desktop\머지작업\iBEMS 서브버전 최신(20180410)\iBemsDataService\obj\Debug\iBemsDataService.Report.MonthlyReport.resources
+C:\Users\Administrator\Desktop\머지작업\iBEMS 서브버전 최신(20180410)\iBemsDataService\obj\Debug\iBemsDataService.Report.DailyReport.resources
+C:\Users\Administrator\Desktop\머지작업\iBEMS 서브버전 최신(20180410)\iBemsDataService\obj\Debug\iBemsDataService.Report.PatrolReport.resources
+C:\Users\Administrator\Desktop\머지작업\iBEMS 서브버전 최신(20180410)\iBemsDataService\obj\Debug\iBemsDataService.Report.XtraReport1.resources
+C:\Users\Administrator\Desktop\머지작업\iBEMS 서브버전 최신(20180410)\iBemsDataService\obj\Debug\iBemsDataService.csproj.GenerateResource.Cache
+C:\Users\Administrator\Desktop\머지작업\iBEMS 서브버전 최신(20180410)\iBemsDataService\obj\Debug\iBemsDataService.dll.licenses
+C:\Users\Administrator\Desktop\머지작업\iBEMS 서브버전 최신(20180410)\iBemsDataService\obj\Debug\iBemsDataService.dll
+C:\Users\Administrator\Desktop\머지작업\iBEMS 서브버전 최신(20180410)\iBemsDataService\obj\Debug\iBemsDataService.pdb
+C:\Users\Administrator\Desktop\머지작업\iBEMS 서브버전 최신(20180410)\iBemsDataService\obj\Debug\iBemsDataService.csprojResolveAssemblyReference.cache
+D:\WorkSpace\BEMS병합마스터\iBemsDataService\obj\Debug\iBemsDataService.Report.MonthlyReport.resources
+D:\WorkSpace\BEMS병합마스터\iBemsDataService\obj\Debug\iBemsDataService.Report.DailyReport.resources
+D:\WorkSpace\BEMS병합마스터\iBemsDataService\obj\Debug\iBemsDataService.Report.PatrolReport.resources
+D:\WorkSpace\BEMS병합마스터\iBemsDataService\obj\Debug\iBemsDataService.Report.XtraReport1.resources
+D:\WorkSpace\BEMS병합마스터\iBemsDataService\obj\Debug\iBemsDataService.csproj.GenerateResource.Cache
+D:\WorkSpace\BEMS병합마스터\iBemsDataService\obj\Debug\iBemsDataService.dll.licenses
+D:\WorkSpace\BEMS병합마스터\iBemsDataService\obj\Debug\iBemsDataService.dll
+D:\WorkSpace\BEMS병합마스터\iBemsDataService\obj\Debug\iBemsDataService.pdb
+D:\WorkSpace\BEMS병합마스터\iBemsDataService\bin\iBemsDataService.dll.config
+D:\WorkSpace\BEMS병합마스터\iBemsDataService\bin\iBemsDataService.dll
+D:\WorkSpace\BEMS병합마스터\iBemsDataService\bin\iBemsDataService.pdb
+D:\WorkSpace\BEMS병합마스터\iBemsDataService\bin\Common.Logging.Core.dll
+D:\WorkSpace\BEMS병합마스터\iBemsDataService\bin\Common.Logging.dll
+D:\WorkSpace\BEMS병합마스터\iBemsDataService\bin\EntityFramework.dll
+D:\WorkSpace\BEMS병합마스터\iBemsDataService\bin\Microsoft.Data.Edm.dll
+D:\WorkSpace\BEMS병합마스터\iBemsDataService\bin\Microsoft.Data.OData.dll
+D:\WorkSpace\BEMS병합마스터\iBemsDataService\bin\Microsoft.Data.Services.Client.dll
+D:\WorkSpace\BEMS병합마스터\iBemsDataService\bin\Microsoft.Data.Services.dll
+D:\WorkSpace\BEMS병합마스터\iBemsDataService\bin\Newtonsoft.Json.dll
+D:\WorkSpace\BEMS병합마스터\iBemsDataService\bin\Quartz.dll
+D:\WorkSpace\BEMS병합마스터\iBemsDataService\bin\System.Net.Http.Formatting.dll
+D:\WorkSpace\BEMS병합마스터\iBemsDataService\bin\System.Spatial.dll
+D:\WorkSpace\BEMS병합마스터\iBemsDataService\bin\System.Web.Http.dll
+D:\WorkSpace\BEMS병합마스터\iBemsDataService\bin\System.Web.Http.OData.dll
+D:\WorkSpace\BEMS병합마스터\iBemsDataService\bin\System.Web.Http.WebHost.dll
+D:\WorkSpace\BEMS병합마스터\iBemsDataService\bin\Common.Logging.xml
+D:\WorkSpace\BEMS병합마스터\iBemsDataService\bin\Common.Logging.Core.xml
+D:\WorkSpace\BEMS병합마스터\iBemsDataService\bin\EntityFramework.xml
+D:\WorkSpace\BEMS병합마스터\iBemsDataService\bin\Microsoft.Data.Edm.xml
+D:\WorkSpace\BEMS병합마스터\iBemsDataService\bin\Microsoft.Data.OData.xml
+D:\WorkSpace\BEMS병합마스터\iBemsDataService\bin\Microsoft.Data.Services.xml
+D:\WorkSpace\BEMS병합마스터\iBemsDataService\bin\Microsoft.Data.Services.Client.xml
+D:\WorkSpace\BEMS병합마스터\iBemsDataService\bin\Newtonsoft.Json.xml
+D:\WorkSpace\BEMS병합마스터\iBemsDataService\bin\Quartz.xml
+D:\WorkSpace\BEMS병합마스터\iBemsDataService\bin\System.Net.Http.Formatting.xml
+D:\WorkSpace\BEMS병합마스터\iBemsDataService\bin\System.Spatial.xml
+D:\WorkSpace\BEMS병합마스터\iBemsDataService\bin\System.Web.Http.xml
+D:\WorkSpace\BEMS병합마스터\iBemsDataService\bin\System.Web.Http.OData.xml
+D:\WorkSpace\BEMS병합마스터\iBemsDataService\bin\System.Web.Http.WebHost.xml
+D:\WorkSpace\BEMS병합마스터\iBemsDataService\bin\ko\EntityFramework.resources.dll
+D:\WorkSpace\BEMS병합마스터\iBemsDataService\bin\de\Microsoft.Data.Edm.resources.dll
+D:\WorkSpace\BEMS병합마스터\iBemsDataService\bin\es\Microsoft.Data.Edm.resources.dll
+D:\WorkSpace\BEMS병합마스터\iBemsDataService\bin\fr\Microsoft.Data.Edm.resources.dll
+D:\WorkSpace\BEMS병합마스터\iBemsDataService\bin\it\Microsoft.Data.Edm.resources.dll
+D:\WorkSpace\BEMS병합마스터\iBemsDataService\bin\ja\Microsoft.Data.Edm.resources.dll
+D:\WorkSpace\BEMS병합마스터\iBemsDataService\bin\ko\Microsoft.Data.Edm.resources.dll
+D:\WorkSpace\BEMS병합마스터\iBemsDataService\bin\ru\Microsoft.Data.Edm.resources.dll
+D:\WorkSpace\BEMS병합마스터\iBemsDataService\bin\zh-Hans\Microsoft.Data.Edm.resources.dll
+D:\WorkSpace\BEMS병합마스터\iBemsDataService\bin\zh-Hant\Microsoft.Data.Edm.resources.dll
+D:\WorkSpace\BEMS병합마스터\iBemsDataService\bin\de\Microsoft.Data.OData.resources.dll
+D:\WorkSpace\BEMS병합마스터\iBemsDataService\bin\es\Microsoft.Data.OData.resources.dll
+D:\WorkSpace\BEMS병합마스터\iBemsDataService\bin\fr\Microsoft.Data.OData.resources.dll
+D:\WorkSpace\BEMS병합마스터\iBemsDataService\bin\it\Microsoft.Data.OData.resources.dll
+D:\WorkSpace\BEMS병합마스터\iBemsDataService\bin\ja\Microsoft.Data.OData.resources.dll
+D:\WorkSpace\BEMS병합마스터\iBemsDataService\bin\ko\Microsoft.Data.OData.resources.dll
+D:\WorkSpace\BEMS병합마스터\iBemsDataService\bin\ru\Microsoft.Data.OData.resources.dll
+D:\WorkSpace\BEMS병합마스터\iBemsDataService\bin\zh-Hans\Microsoft.Data.OData.resources.dll
+D:\WorkSpace\BEMS병합마스터\iBemsDataService\bin\zh-Hant\Microsoft.Data.OData.resources.dll
+D:\WorkSpace\BEMS병합마스터\iBemsDataService\bin\de\Microsoft.Data.Services.resources.dll
+D:\WorkSpace\BEMS병합마스터\iBemsDataService\bin\es\Microsoft.Data.Services.resources.dll
+D:\WorkSpace\BEMS병합마스터\iBemsDataService\bin\fr\Microsoft.Data.Services.resources.dll
+D:\WorkSpace\BEMS병합마스터\iBemsDataService\bin\it\Microsoft.Data.Services.resources.dll
+D:\WorkSpace\BEMS병합마스터\iBemsDataService\bin\ja\Microsoft.Data.Services.resources.dll
+D:\WorkSpace\BEMS병합마스터\iBemsDataService\bin\ko\Microsoft.Data.Services.resources.dll
+D:\WorkSpace\BEMS병합마스터\iBemsDataService\bin\ru\Microsoft.Data.Services.resources.dll
+D:\WorkSpace\BEMS병합마스터\iBemsDataService\bin\zh-Hans\Microsoft.Data.Services.resources.dll
+D:\WorkSpace\BEMS병합마스터\iBemsDataService\bin\zh-Hant\Microsoft.Data.Services.resources.dll
+D:\WorkSpace\BEMS병합마스터\iBemsDataService\bin\de\Microsoft.Data.Services.Client.resources.dll
+D:\WorkSpace\BEMS병합마스터\iBemsDataService\bin\es\Microsoft.Data.Services.Client.resources.dll
+D:\WorkSpace\BEMS병합마스터\iBemsDataService\bin\fr\Microsoft.Data.Services.Client.resources.dll
+D:\WorkSpace\BEMS병합마스터\iBemsDataService\bin\it\Microsoft.Data.Services.Client.resources.dll
+D:\WorkSpace\BEMS병합마스터\iBemsDataService\bin\ja\Microsoft.Data.Services.Client.resources.dll
+D:\WorkSpace\BEMS병합마스터\iBemsDataService\bin\ko\Microsoft.Data.Services.Client.resources.dll
+D:\WorkSpace\BEMS병합마스터\iBemsDataService\bin\ru\Microsoft.Data.Services.Client.resources.dll
+D:\WorkSpace\BEMS병합마스터\iBemsDataService\bin\zh-Hans\Microsoft.Data.Services.Client.resources.dll
+D:\WorkSpace\BEMS병합마스터\iBemsDataService\bin\zh-Hant\Microsoft.Data.Services.Client.resources.dll
+D:\WorkSpace\BEMS병합마스터\iBemsDataService\bin\de\System.Spatial.resources.dll
+D:\WorkSpace\BEMS병합마스터\iBemsDataService\bin\es\System.Spatial.resources.dll
+D:\WorkSpace\BEMS병합마스터\iBemsDataService\bin\fr\System.Spatial.resources.dll
+D:\WorkSpace\BEMS병합마스터\iBemsDataService\bin\it\System.Spatial.resources.dll
+D:\WorkSpace\BEMS병합마스터\iBemsDataService\bin\ja\System.Spatial.resources.dll
+D:\WorkSpace\BEMS병합마스터\iBemsDataService\bin\ko\System.Spatial.resources.dll
+D:\WorkSpace\BEMS병합마스터\iBemsDataService\bin\ru\System.Spatial.resources.dll
+D:\WorkSpace\BEMS병합마스터\iBemsDataService\bin\zh-Hans\System.Spatial.resources.dll
+D:\WorkSpace\BEMS병합마스터\iBemsDataService\bin\zh-Hant\System.Spatial.resources.dll
+D:\WorkSpace\BEMS병합마스터\iBemsDataService\obj\Debug\iBemsDataService.csprojResolveAssemblyReference.cache
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\iBemsDataService.dll.config
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\iBemsDataService.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\iBemsDataService.pdb
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\Common.Logging.Core.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\Common.Logging.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\DevExpress.Charts.v15.1.Core.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\DevExpress.Data.v15.1.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\DevExpress.DataAccess.v15.1.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\DevExpress.Office.v15.1.Core.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\DevExpress.PivotGrid.v15.1.Core.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\DevExpress.Printing.v15.1.Core.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\DevExpress.RichEdit.v15.1.Core.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\DevExpress.Sparkline.v15.1.Core.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\DevExpress.Utils.v15.1.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\DevExpress.Web.ASPxThemes.v15.1.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\DevExpress.Web.v15.1.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\DevExpress.Xpf.Printing.v15.1.Service.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\DevExpress.Xpo.v15.1.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\DevExpress.XtraCharts.v15.1.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\DevExpress.XtraGauges.v15.1.Core.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\DevExpress.XtraPrinting.v15.1.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\DevExpress.XtraReports.v15.1.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\DevExpress.XtraReports.v15.1.Extensions.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\DevExpress.XtraReports.v15.1.Service.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\DevExpress.XtraReports.v15.1.Web.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\EntityFramework.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\Microsoft.Data.Edm.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\Microsoft.Data.OData.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\Microsoft.Data.Services.Client.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\Microsoft.Data.Services.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\Newtonsoft.Json.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\Quartz.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\System.Net.Http.Formatting.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\System.Spatial.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\System.Web.Http.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\System.Web.Http.OData.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\System.Web.Http.WebHost.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\DevExpress.XtraEditors.v15.1.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\DevExpress.XtraBars.v15.1.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\DevExpress.XtraTreeList.v15.1.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\DevExpress.XtraLayout.v15.1.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\DevExpress.Utils.v15.1.UI.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\DevExpress.XtraRichEdit.v15.1.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\DevExpress.XtraCharts.v15.1.Extensions.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\DevExpress.XtraPivotGrid.v15.1.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\DevExpress.XtraNavBar.v15.1.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\DevExpress.CodeParser.v15.1.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\DevExpress.DataAccess.v15.1.UI.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\DevExpress.XtraVerticalGrid.v15.1.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\DevExpress.XtraCharts.v15.1.Wizard.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\DevExpress.XtraGrid.v15.1.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\Common.Logging.xml
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\Common.Logging.Core.xml
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\DevExpress.Data.v15.1.xml
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\DevExpress.DataAccess.v15.1.xml
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\DevExpress.Office.v15.1.Core.xml
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\DevExpress.PivotGrid.v15.1.Core.xml
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\DevExpress.Printing.v15.1.Core.xml
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\DevExpress.RichEdit.v15.1.Core.xml
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\DevExpress.Sparkline.v15.1.Core.xml
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\DevExpress.Utils.v15.1.xml
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\DevExpress.Web.v15.1.xml
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\DevExpress.Xpf.Printing.v15.1.Service.xml
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\DevExpress.Xpo.v15.1.xml
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\DevExpress.XtraCharts.v15.1.xml
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\DevExpress.XtraGauges.v15.1.Core.xml
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\DevExpress.XtraPrinting.v15.1.xml
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\DevExpress.XtraReports.v15.1.xml
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\DevExpress.XtraReports.v15.1.Extensions.xml
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\DevExpress.XtraReports.v15.1.Service.xml
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\DevExpress.XtraReports.v15.1.Web.xml
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\EntityFramework.xml
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\Microsoft.Data.Edm.xml
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\Microsoft.Data.OData.xml
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\Microsoft.Data.Services.xml
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\Microsoft.Data.Services.Client.xml
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\Newtonsoft.Json.xml
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\Quartz.xml
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\System.Net.Http.Formatting.xml
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\System.Spatial.xml
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\System.Web.Http.xml
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\System.Web.Http.OData.xml
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\System.Web.Http.WebHost.xml
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\DevExpress.XtraEditors.v15.1.xml
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\DevExpress.XtraBars.v15.1.xml
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\DevExpress.XtraTreeList.v15.1.xml
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\DevExpress.XtraLayout.v15.1.xml
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\DevExpress.Utils.v15.1.UI.xml
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\DevExpress.XtraRichEdit.v15.1.xml
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\DevExpress.XtraPivotGrid.v15.1.xml
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\DevExpress.XtraNavBar.v15.1.xml
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\DevExpress.DataAccess.v15.1.UI.xml
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\DevExpress.XtraVerticalGrid.v15.1.xml
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\DevExpress.XtraCharts.v15.1.Wizard.xml
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\DevExpress.XtraGrid.v15.1.xml
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\de\DevExpress.Data.v15.1.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\es\DevExpress.Data.v15.1.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\ja\DevExpress.Data.v15.1.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\ru\DevExpress.Data.v15.1.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\de\DevExpress.DataAccess.v15.1.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\es\DevExpress.DataAccess.v15.1.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\ja\DevExpress.DataAccess.v15.1.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\ru\DevExpress.DataAccess.v15.1.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\de\DevExpress.Office.v15.1.Core.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\es\DevExpress.Office.v15.1.Core.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\ja\DevExpress.Office.v15.1.Core.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\ru\DevExpress.Office.v15.1.Core.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\de\DevExpress.PivotGrid.v15.1.Core.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\es\DevExpress.PivotGrid.v15.1.Core.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\ja\DevExpress.PivotGrid.v15.1.Core.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\ru\DevExpress.PivotGrid.v15.1.Core.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\de\DevExpress.Printing.v15.1.Core.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\es\DevExpress.Printing.v15.1.Core.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\ja\DevExpress.Printing.v15.1.Core.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\ru\DevExpress.Printing.v15.1.Core.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\de\DevExpress.RichEdit.v15.1.Core.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\es\DevExpress.RichEdit.v15.1.Core.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\ja\DevExpress.RichEdit.v15.1.Core.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\ru\DevExpress.RichEdit.v15.1.Core.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\de\DevExpress.Sparkline.v15.1.Core.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\es\DevExpress.Sparkline.v15.1.Core.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\ja\DevExpress.Sparkline.v15.1.Core.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\ru\DevExpress.Sparkline.v15.1.Core.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\de\DevExpress.Utils.v15.1.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\es\DevExpress.Utils.v15.1.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\ja\DevExpress.Utils.v15.1.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\ru\DevExpress.Utils.v15.1.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\de\DevExpress.Web.v15.1.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\es\DevExpress.Web.v15.1.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\ja\DevExpress.Web.v15.1.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\ru\DevExpress.Web.v15.1.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\de\DevExpress.Xpo.v15.1.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\es\DevExpress.Xpo.v15.1.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\ja\DevExpress.Xpo.v15.1.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\ru\DevExpress.Xpo.v15.1.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\de\DevExpress.XtraCharts.v15.1.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\es\DevExpress.XtraCharts.v15.1.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\ja\DevExpress.XtraCharts.v15.1.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\ru\DevExpress.XtraCharts.v15.1.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\de\DevExpress.XtraGauges.v15.1.Core.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\es\DevExpress.XtraGauges.v15.1.Core.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\ja\DevExpress.XtraGauges.v15.1.Core.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\ru\DevExpress.XtraGauges.v15.1.Core.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\de\DevExpress.XtraPrinting.v15.1.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\es\DevExpress.XtraPrinting.v15.1.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\ja\DevExpress.XtraPrinting.v15.1.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\ru\DevExpress.XtraPrinting.v15.1.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\de\DevExpress.XtraReports.v15.1.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\es\DevExpress.XtraReports.v15.1.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\ja\DevExpress.XtraReports.v15.1.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\ru\DevExpress.XtraReports.v15.1.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\de\DevExpress.XtraReports.v15.1.Extensions.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\es\DevExpress.XtraReports.v15.1.Extensions.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\ja\DevExpress.XtraReports.v15.1.Extensions.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\ru\DevExpress.XtraReports.v15.1.Extensions.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\de\DevExpress.XtraReports.v15.1.Web.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\es\DevExpress.XtraReports.v15.1.Web.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\ja\DevExpress.XtraReports.v15.1.Web.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\ru\DevExpress.XtraReports.v15.1.Web.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\ko\EntityFramework.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\de\Microsoft.Data.Edm.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\es\Microsoft.Data.Edm.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\fr\Microsoft.Data.Edm.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\it\Microsoft.Data.Edm.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\ja\Microsoft.Data.Edm.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\ko\Microsoft.Data.Edm.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\ru\Microsoft.Data.Edm.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\zh-Hans\Microsoft.Data.Edm.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\zh-Hant\Microsoft.Data.Edm.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\de\Microsoft.Data.OData.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\es\Microsoft.Data.OData.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\fr\Microsoft.Data.OData.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\it\Microsoft.Data.OData.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\ja\Microsoft.Data.OData.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\ko\Microsoft.Data.OData.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\ru\Microsoft.Data.OData.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\zh-Hans\Microsoft.Data.OData.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\zh-Hant\Microsoft.Data.OData.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\de\Microsoft.Data.Services.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\es\Microsoft.Data.Services.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\fr\Microsoft.Data.Services.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\it\Microsoft.Data.Services.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\ja\Microsoft.Data.Services.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\ko\Microsoft.Data.Services.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\ru\Microsoft.Data.Services.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\zh-Hans\Microsoft.Data.Services.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\zh-Hant\Microsoft.Data.Services.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\de\Microsoft.Data.Services.Client.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\es\Microsoft.Data.Services.Client.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\fr\Microsoft.Data.Services.Client.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\it\Microsoft.Data.Services.Client.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\ja\Microsoft.Data.Services.Client.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\ko\Microsoft.Data.Services.Client.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\ru\Microsoft.Data.Services.Client.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\zh-Hans\Microsoft.Data.Services.Client.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\zh-Hant\Microsoft.Data.Services.Client.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\de\System.Spatial.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\es\System.Spatial.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\fr\System.Spatial.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\it\System.Spatial.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\ja\System.Spatial.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\ko\System.Spatial.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\ru\System.Spatial.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\zh-Hans\System.Spatial.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\zh-Hant\System.Spatial.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\de\DevExpress.XtraEditors.v15.1.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\es\DevExpress.XtraEditors.v15.1.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\ja\DevExpress.XtraEditors.v15.1.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\ru\DevExpress.XtraEditors.v15.1.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\de\DevExpress.XtraBars.v15.1.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\es\DevExpress.XtraBars.v15.1.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\ja\DevExpress.XtraBars.v15.1.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\ru\DevExpress.XtraBars.v15.1.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\de\DevExpress.XtraTreeList.v15.1.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\es\DevExpress.XtraTreeList.v15.1.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\ja\DevExpress.XtraTreeList.v15.1.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\ru\DevExpress.XtraTreeList.v15.1.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\de\DevExpress.XtraLayout.v15.1.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\es\DevExpress.XtraLayout.v15.1.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\ja\DevExpress.XtraLayout.v15.1.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\ru\DevExpress.XtraLayout.v15.1.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\de\DevExpress.Utils.v15.1.UI.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\es\DevExpress.Utils.v15.1.UI.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\ja\DevExpress.Utils.v15.1.UI.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\ru\DevExpress.Utils.v15.1.UI.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\de\DevExpress.XtraRichEdit.v15.1.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\es\DevExpress.XtraRichEdit.v15.1.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\ja\DevExpress.XtraRichEdit.v15.1.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\ru\DevExpress.XtraRichEdit.v15.1.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\de\DevExpress.XtraPivotGrid.v15.1.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\es\DevExpress.XtraPivotGrid.v15.1.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\ja\DevExpress.XtraPivotGrid.v15.1.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\ru\DevExpress.XtraPivotGrid.v15.1.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\de\DevExpress.XtraNavBar.v15.1.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\es\DevExpress.XtraNavBar.v15.1.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\ja\DevExpress.XtraNavBar.v15.1.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\ru\DevExpress.XtraNavBar.v15.1.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\de\DevExpress.DataAccess.v15.1.UI.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\es\DevExpress.DataAccess.v15.1.UI.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\ja\DevExpress.DataAccess.v15.1.UI.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\ru\DevExpress.DataAccess.v15.1.UI.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\de\DevExpress.XtraVerticalGrid.v15.1.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\es\DevExpress.XtraVerticalGrid.v15.1.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\ja\DevExpress.XtraVerticalGrid.v15.1.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\ru\DevExpress.XtraVerticalGrid.v15.1.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\de\DevExpress.XtraCharts.v15.1.Wizard.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\es\DevExpress.XtraCharts.v15.1.Wizard.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\ja\DevExpress.XtraCharts.v15.1.Wizard.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\ru\DevExpress.XtraCharts.v15.1.Wizard.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\de\DevExpress.XtraGrid.v15.1.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\es\DevExpress.XtraGrid.v15.1.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\ja\DevExpress.XtraGrid.v15.1.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\bin\ru\DevExpress.XtraGrid.v15.1.resources.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\obj\Debug\iBemsDataService.csprojResolveAssemblyReference.cache
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\obj\Debug\iBemsDataService.Report.MonthlyReport.resources
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\obj\Debug\iBemsDataService.Report.DailyReport.resources
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\obj\Debug\iBemsDataService.Report.PatrolReport.resources
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\obj\Debug\iBemsDataService.Report.XtraReport1.resources
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\obj\Debug\iBemsDataService.csproj.GenerateResource.Cache
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\obj\Debug\iBemsDataService.dll.licenses
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\obj\Debug\iBemsDataService.dll
+C:\Users\Hoon\Desktop\새 폴더\iBemsDataService\obj\Debug\iBemsDataService.pdb
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\iBemsDataService.dll.config
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\iBemsDataService.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\iBemsDataService.pdb
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\Common.Logging.Core.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\Common.Logging.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\DevExpress.Charts.v15.1.Core.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\DevExpress.Data.v15.1.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\DevExpress.DataAccess.v15.1.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\DevExpress.Office.v15.1.Core.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\DevExpress.PivotGrid.v15.1.Core.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\DevExpress.Printing.v15.1.Core.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\DevExpress.RichEdit.v15.1.Core.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\DevExpress.Sparkline.v15.1.Core.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\DevExpress.Utils.v15.1.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\DevExpress.Web.ASPxThemes.v15.1.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\DevExpress.Web.v15.1.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\DevExpress.Xpf.Printing.v15.1.Service.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\DevExpress.Xpo.v15.1.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\DevExpress.XtraCharts.v15.1.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\DevExpress.XtraGauges.v15.1.Core.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\DevExpress.XtraPrinting.v15.1.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\DevExpress.XtraReports.v15.1.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\DevExpress.XtraReports.v15.1.Extensions.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\DevExpress.XtraReports.v15.1.Service.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\DevExpress.XtraReports.v15.1.Web.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\EntityFramework.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\Microsoft.Data.Edm.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\Microsoft.Data.OData.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\Microsoft.Data.Services.Client.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\Microsoft.Data.Services.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\Newtonsoft.Json.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\Quartz.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\System.Net.Http.Formatting.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\System.Spatial.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\System.Web.Http.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\System.Web.Http.OData.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\System.Web.Http.WebHost.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\DevExpress.XtraEditors.v15.1.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\DevExpress.XtraBars.v15.1.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\DevExpress.XtraTreeList.v15.1.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\DevExpress.XtraLayout.v15.1.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\DevExpress.Utils.v15.1.UI.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\DevExpress.XtraRichEdit.v15.1.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\DevExpress.XtraCharts.v15.1.Extensions.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\DevExpress.XtraPivotGrid.v15.1.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\DevExpress.XtraNavBar.v15.1.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\DevExpress.CodeParser.v15.1.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\DevExpress.DataAccess.v15.1.UI.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\DevExpress.XtraVerticalGrid.v15.1.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\DevExpress.XtraCharts.v15.1.Wizard.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\DevExpress.XtraGrid.v15.1.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\Common.Logging.xml
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\Common.Logging.Core.xml
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\DevExpress.Data.v15.1.xml
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\DevExpress.DataAccess.v15.1.xml
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\DevExpress.Office.v15.1.Core.xml
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\DevExpress.PivotGrid.v15.1.Core.xml
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\DevExpress.Printing.v15.1.Core.xml
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\DevExpress.RichEdit.v15.1.Core.xml
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\DevExpress.Sparkline.v15.1.Core.xml
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\DevExpress.Utils.v15.1.xml
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\DevExpress.Web.v15.1.xml
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\DevExpress.Xpf.Printing.v15.1.Service.xml
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\DevExpress.Xpo.v15.1.xml
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\DevExpress.XtraCharts.v15.1.xml
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\DevExpress.XtraGauges.v15.1.Core.xml
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\DevExpress.XtraPrinting.v15.1.xml
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\DevExpress.XtraReports.v15.1.xml
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\DevExpress.XtraReports.v15.1.Extensions.xml
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\DevExpress.XtraReports.v15.1.Service.xml
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\DevExpress.XtraReports.v15.1.Web.xml
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\EntityFramework.xml
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\Microsoft.Data.Edm.xml
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\Microsoft.Data.OData.xml
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\Microsoft.Data.Services.xml
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\Microsoft.Data.Services.Client.xml
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\Newtonsoft.Json.xml
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\Quartz.xml
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\System.Net.Http.Formatting.xml
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\System.Spatial.xml
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\System.Web.Http.xml
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\System.Web.Http.OData.xml
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\System.Web.Http.WebHost.xml
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\DevExpress.XtraEditors.v15.1.xml
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\DevExpress.XtraBars.v15.1.xml
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\DevExpress.XtraTreeList.v15.1.xml
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\DevExpress.XtraLayout.v15.1.xml
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\DevExpress.Utils.v15.1.UI.xml
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\DevExpress.XtraRichEdit.v15.1.xml
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\DevExpress.XtraPivotGrid.v15.1.xml
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\DevExpress.XtraNavBar.v15.1.xml
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\DevExpress.DataAccess.v15.1.UI.xml
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\DevExpress.XtraVerticalGrid.v15.1.xml
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\DevExpress.XtraCharts.v15.1.Wizard.xml
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\DevExpress.XtraGrid.v15.1.xml
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\de\DevExpress.Data.v15.1.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\es\DevExpress.Data.v15.1.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\ja\DevExpress.Data.v15.1.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\ru\DevExpress.Data.v15.1.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\de\DevExpress.DataAccess.v15.1.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\es\DevExpress.DataAccess.v15.1.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\ja\DevExpress.DataAccess.v15.1.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\ru\DevExpress.DataAccess.v15.1.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\de\DevExpress.Office.v15.1.Core.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\es\DevExpress.Office.v15.1.Core.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\ja\DevExpress.Office.v15.1.Core.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\ru\DevExpress.Office.v15.1.Core.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\de\DevExpress.PivotGrid.v15.1.Core.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\es\DevExpress.PivotGrid.v15.1.Core.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\ja\DevExpress.PivotGrid.v15.1.Core.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\ru\DevExpress.PivotGrid.v15.1.Core.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\de\DevExpress.Printing.v15.1.Core.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\es\DevExpress.Printing.v15.1.Core.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\ja\DevExpress.Printing.v15.1.Core.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\ru\DevExpress.Printing.v15.1.Core.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\de\DevExpress.RichEdit.v15.1.Core.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\es\DevExpress.RichEdit.v15.1.Core.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\ja\DevExpress.RichEdit.v15.1.Core.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\ru\DevExpress.RichEdit.v15.1.Core.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\de\DevExpress.Sparkline.v15.1.Core.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\es\DevExpress.Sparkline.v15.1.Core.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\ja\DevExpress.Sparkline.v15.1.Core.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\ru\DevExpress.Sparkline.v15.1.Core.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\de\DevExpress.Utils.v15.1.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\es\DevExpress.Utils.v15.1.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\ja\DevExpress.Utils.v15.1.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\ru\DevExpress.Utils.v15.1.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\de\DevExpress.Web.v15.1.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\es\DevExpress.Web.v15.1.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\ja\DevExpress.Web.v15.1.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\ru\DevExpress.Web.v15.1.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\de\DevExpress.Xpo.v15.1.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\es\DevExpress.Xpo.v15.1.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\ja\DevExpress.Xpo.v15.1.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\ru\DevExpress.Xpo.v15.1.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\de\DevExpress.XtraCharts.v15.1.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\es\DevExpress.XtraCharts.v15.1.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\ja\DevExpress.XtraCharts.v15.1.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\ru\DevExpress.XtraCharts.v15.1.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\de\DevExpress.XtraGauges.v15.1.Core.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\es\DevExpress.XtraGauges.v15.1.Core.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\ja\DevExpress.XtraGauges.v15.1.Core.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\ru\DevExpress.XtraGauges.v15.1.Core.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\de\DevExpress.XtraPrinting.v15.1.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\es\DevExpress.XtraPrinting.v15.1.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\ja\DevExpress.XtraPrinting.v15.1.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\ru\DevExpress.XtraPrinting.v15.1.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\de\DevExpress.XtraReports.v15.1.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\es\DevExpress.XtraReports.v15.1.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\ja\DevExpress.XtraReports.v15.1.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\ru\DevExpress.XtraReports.v15.1.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\de\DevExpress.XtraReports.v15.1.Extensions.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\es\DevExpress.XtraReports.v15.1.Extensions.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\ja\DevExpress.XtraReports.v15.1.Extensions.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\ru\DevExpress.XtraReports.v15.1.Extensions.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\de\DevExpress.XtraReports.v15.1.Web.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\es\DevExpress.XtraReports.v15.1.Web.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\ja\DevExpress.XtraReports.v15.1.Web.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\ru\DevExpress.XtraReports.v15.1.Web.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\ko\EntityFramework.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\de\Microsoft.Data.Edm.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\es\Microsoft.Data.Edm.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\fr\Microsoft.Data.Edm.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\it\Microsoft.Data.Edm.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\ja\Microsoft.Data.Edm.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\ko\Microsoft.Data.Edm.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\ru\Microsoft.Data.Edm.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\zh-Hans\Microsoft.Data.Edm.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\zh-Hant\Microsoft.Data.Edm.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\de\Microsoft.Data.OData.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\es\Microsoft.Data.OData.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\fr\Microsoft.Data.OData.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\it\Microsoft.Data.OData.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\ja\Microsoft.Data.OData.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\ko\Microsoft.Data.OData.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\ru\Microsoft.Data.OData.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\zh-Hans\Microsoft.Data.OData.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\zh-Hant\Microsoft.Data.OData.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\de\Microsoft.Data.Services.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\es\Microsoft.Data.Services.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\fr\Microsoft.Data.Services.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\it\Microsoft.Data.Services.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\ja\Microsoft.Data.Services.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\ko\Microsoft.Data.Services.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\ru\Microsoft.Data.Services.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\zh-Hans\Microsoft.Data.Services.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\zh-Hant\Microsoft.Data.Services.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\de\Microsoft.Data.Services.Client.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\es\Microsoft.Data.Services.Client.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\fr\Microsoft.Data.Services.Client.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\it\Microsoft.Data.Services.Client.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\ja\Microsoft.Data.Services.Client.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\ko\Microsoft.Data.Services.Client.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\ru\Microsoft.Data.Services.Client.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\zh-Hans\Microsoft.Data.Services.Client.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\zh-Hant\Microsoft.Data.Services.Client.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\de\System.Spatial.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\es\System.Spatial.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\fr\System.Spatial.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\it\System.Spatial.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\ja\System.Spatial.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\ko\System.Spatial.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\ru\System.Spatial.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\zh-Hans\System.Spatial.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\zh-Hant\System.Spatial.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\de\DevExpress.XtraEditors.v15.1.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\es\DevExpress.XtraEditors.v15.1.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\ja\DevExpress.XtraEditors.v15.1.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\ru\DevExpress.XtraEditors.v15.1.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\de\DevExpress.XtraBars.v15.1.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\es\DevExpress.XtraBars.v15.1.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\ja\DevExpress.XtraBars.v15.1.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\ru\DevExpress.XtraBars.v15.1.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\de\DevExpress.XtraTreeList.v15.1.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\es\DevExpress.XtraTreeList.v15.1.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\ja\DevExpress.XtraTreeList.v15.1.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\ru\DevExpress.XtraTreeList.v15.1.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\de\DevExpress.XtraLayout.v15.1.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\es\DevExpress.XtraLayout.v15.1.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\ja\DevExpress.XtraLayout.v15.1.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\ru\DevExpress.XtraLayout.v15.1.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\de\DevExpress.Utils.v15.1.UI.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\es\DevExpress.Utils.v15.1.UI.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\ja\DevExpress.Utils.v15.1.UI.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\ru\DevExpress.Utils.v15.1.UI.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\de\DevExpress.XtraRichEdit.v15.1.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\es\DevExpress.XtraRichEdit.v15.1.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\ja\DevExpress.XtraRichEdit.v15.1.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\ru\DevExpress.XtraRichEdit.v15.1.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\de\DevExpress.XtraPivotGrid.v15.1.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\es\DevExpress.XtraPivotGrid.v15.1.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\ja\DevExpress.XtraPivotGrid.v15.1.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\ru\DevExpress.XtraPivotGrid.v15.1.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\de\DevExpress.XtraNavBar.v15.1.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\es\DevExpress.XtraNavBar.v15.1.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\ja\DevExpress.XtraNavBar.v15.1.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\ru\DevExpress.XtraNavBar.v15.1.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\de\DevExpress.DataAccess.v15.1.UI.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\es\DevExpress.DataAccess.v15.1.UI.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\ja\DevExpress.DataAccess.v15.1.UI.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\ru\DevExpress.DataAccess.v15.1.UI.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\de\DevExpress.XtraVerticalGrid.v15.1.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\es\DevExpress.XtraVerticalGrid.v15.1.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\ja\DevExpress.XtraVerticalGrid.v15.1.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\ru\DevExpress.XtraVerticalGrid.v15.1.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\de\DevExpress.XtraCharts.v15.1.Wizard.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\es\DevExpress.XtraCharts.v15.1.Wizard.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\ja\DevExpress.XtraCharts.v15.1.Wizard.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\ru\DevExpress.XtraCharts.v15.1.Wizard.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\de\DevExpress.XtraGrid.v15.1.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\es\DevExpress.XtraGrid.v15.1.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\ja\DevExpress.XtraGrid.v15.1.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\bin\ru\DevExpress.XtraGrid.v15.1.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\obj\Debug\iBemsDataService.Report.MonthlyReport.resources
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\obj\Debug\iBemsDataService.Report.DailyReport.resources
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\obj\Debug\iBemsDataService.Report.PatrolReport.resources
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\obj\Debug\iBemsDataService.Report.XtraReport1.resources
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\obj\Debug\iBemsDataService.csproj.GenerateResource.Cache
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\obj\Debug\iBemsDataService.dll.licenses
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\obj\Debug\iBemsDataService.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_24_병합_최신\iBemsDataService\obj\Debug\iBemsDataService.pdb
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\iBemsDataService.dll.config
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\iBemsDataService.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\iBemsDataService.pdb
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\Common.Logging.Core.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\Common.Logging.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\DevExpress.Charts.v15.1.Core.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\DevExpress.Data.v15.1.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\DevExpress.DataAccess.v15.1.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\DevExpress.Office.v15.1.Core.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\DevExpress.PivotGrid.v15.1.Core.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\DevExpress.Printing.v15.1.Core.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\DevExpress.RichEdit.v15.1.Core.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\DevExpress.Sparkline.v15.1.Core.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\DevExpress.Utils.v15.1.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\DevExpress.Web.ASPxThemes.v15.1.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\DevExpress.Web.v15.1.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\DevExpress.Xpf.Printing.v15.1.Service.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\DevExpress.Xpo.v15.1.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\DevExpress.XtraCharts.v15.1.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\DevExpress.XtraGauges.v15.1.Core.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\DevExpress.XtraPrinting.v15.1.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\DevExpress.XtraReports.v15.1.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\DevExpress.XtraReports.v15.1.Extensions.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\DevExpress.XtraReports.v15.1.Service.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\DevExpress.XtraReports.v15.1.Web.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\EntityFramework.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\Microsoft.Data.Edm.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\Microsoft.Data.OData.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\Microsoft.Data.Services.Client.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\Microsoft.Data.Services.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\Newtonsoft.Json.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\Quartz.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\System.Net.Http.Formatting.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\System.Spatial.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\System.Web.Http.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\System.Web.Http.OData.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\System.Web.Http.WebHost.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\DevExpress.XtraEditors.v15.1.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\DevExpress.XtraBars.v15.1.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\DevExpress.XtraTreeList.v15.1.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\DevExpress.XtraLayout.v15.1.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\DevExpress.Utils.v15.1.UI.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\DevExpress.XtraRichEdit.v15.1.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\DevExpress.XtraCharts.v15.1.Extensions.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\DevExpress.XtraPivotGrid.v15.1.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\DevExpress.XtraNavBar.v15.1.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\DevExpress.CodeParser.v15.1.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\DevExpress.DataAccess.v15.1.UI.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\DevExpress.XtraVerticalGrid.v15.1.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\DevExpress.XtraCharts.v15.1.Wizard.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\DevExpress.XtraGrid.v15.1.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\Common.Logging.xml
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\Common.Logging.Core.xml
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\DevExpress.Data.v15.1.xml
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\DevExpress.DataAccess.v15.1.xml
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\DevExpress.Office.v15.1.Core.xml
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\DevExpress.PivotGrid.v15.1.Core.xml
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\DevExpress.Printing.v15.1.Core.xml
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\DevExpress.RichEdit.v15.1.Core.xml
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\DevExpress.Sparkline.v15.1.Core.xml
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\DevExpress.Utils.v15.1.xml
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\DevExpress.Web.v15.1.xml
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\DevExpress.Xpf.Printing.v15.1.Service.xml
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\DevExpress.Xpo.v15.1.xml
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\DevExpress.XtraCharts.v15.1.xml
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\DevExpress.XtraGauges.v15.1.Core.xml
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\DevExpress.XtraPrinting.v15.1.xml
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\DevExpress.XtraReports.v15.1.xml
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\DevExpress.XtraReports.v15.1.Extensions.xml
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\DevExpress.XtraReports.v15.1.Service.xml
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\DevExpress.XtraReports.v15.1.Web.xml
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\EntityFramework.xml
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\Microsoft.Data.Edm.xml
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\Microsoft.Data.OData.xml
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\Microsoft.Data.Services.xml
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\Microsoft.Data.Services.Client.xml
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\Newtonsoft.Json.xml
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\Quartz.xml
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\System.Net.Http.Formatting.xml
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\System.Spatial.xml
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\System.Web.Http.xml
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\System.Web.Http.OData.xml
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\System.Web.Http.WebHost.xml
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\DevExpress.XtraEditors.v15.1.xml
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\DevExpress.XtraBars.v15.1.xml
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\DevExpress.XtraTreeList.v15.1.xml
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\DevExpress.XtraLayout.v15.1.xml
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\DevExpress.Utils.v15.1.UI.xml
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\DevExpress.XtraRichEdit.v15.1.xml
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\DevExpress.XtraPivotGrid.v15.1.xml
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\DevExpress.XtraNavBar.v15.1.xml
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\DevExpress.DataAccess.v15.1.UI.xml
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\DevExpress.XtraVerticalGrid.v15.1.xml
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\DevExpress.XtraCharts.v15.1.Wizard.xml
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\DevExpress.XtraGrid.v15.1.xml
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\de\DevExpress.Data.v15.1.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\es\DevExpress.Data.v15.1.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\ja\DevExpress.Data.v15.1.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\ru\DevExpress.Data.v15.1.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\de\DevExpress.DataAccess.v15.1.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\es\DevExpress.DataAccess.v15.1.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\ja\DevExpress.DataAccess.v15.1.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\ru\DevExpress.DataAccess.v15.1.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\de\DevExpress.Office.v15.1.Core.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\es\DevExpress.Office.v15.1.Core.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\ja\DevExpress.Office.v15.1.Core.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\ru\DevExpress.Office.v15.1.Core.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\de\DevExpress.PivotGrid.v15.1.Core.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\es\DevExpress.PivotGrid.v15.1.Core.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\ja\DevExpress.PivotGrid.v15.1.Core.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\ru\DevExpress.PivotGrid.v15.1.Core.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\de\DevExpress.Printing.v15.1.Core.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\es\DevExpress.Printing.v15.1.Core.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\ja\DevExpress.Printing.v15.1.Core.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\ru\DevExpress.Printing.v15.1.Core.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\de\DevExpress.RichEdit.v15.1.Core.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\es\DevExpress.RichEdit.v15.1.Core.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\ja\DevExpress.RichEdit.v15.1.Core.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\ru\DevExpress.RichEdit.v15.1.Core.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\de\DevExpress.Sparkline.v15.1.Core.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\es\DevExpress.Sparkline.v15.1.Core.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\ja\DevExpress.Sparkline.v15.1.Core.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\ru\DevExpress.Sparkline.v15.1.Core.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\de\DevExpress.Utils.v15.1.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\es\DevExpress.Utils.v15.1.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\ja\DevExpress.Utils.v15.1.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\ru\DevExpress.Utils.v15.1.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\de\DevExpress.Web.v15.1.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\es\DevExpress.Web.v15.1.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\ja\DevExpress.Web.v15.1.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\ru\DevExpress.Web.v15.1.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\de\DevExpress.Xpo.v15.1.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\es\DevExpress.Xpo.v15.1.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\ja\DevExpress.Xpo.v15.1.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\ru\DevExpress.Xpo.v15.1.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\de\DevExpress.XtraCharts.v15.1.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\es\DevExpress.XtraCharts.v15.1.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\ja\DevExpress.XtraCharts.v15.1.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\ru\DevExpress.XtraCharts.v15.1.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\de\DevExpress.XtraGauges.v15.1.Core.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\es\DevExpress.XtraGauges.v15.1.Core.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\ja\DevExpress.XtraGauges.v15.1.Core.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\ru\DevExpress.XtraGauges.v15.1.Core.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\de\DevExpress.XtraPrinting.v15.1.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\es\DevExpress.XtraPrinting.v15.1.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\ja\DevExpress.XtraPrinting.v15.1.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\ru\DevExpress.XtraPrinting.v15.1.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\de\DevExpress.XtraReports.v15.1.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\es\DevExpress.XtraReports.v15.1.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\ja\DevExpress.XtraReports.v15.1.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\ru\DevExpress.XtraReports.v15.1.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\de\DevExpress.XtraReports.v15.1.Extensions.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\es\DevExpress.XtraReports.v15.1.Extensions.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\ja\DevExpress.XtraReports.v15.1.Extensions.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\ru\DevExpress.XtraReports.v15.1.Extensions.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\de\DevExpress.XtraReports.v15.1.Web.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\es\DevExpress.XtraReports.v15.1.Web.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\ja\DevExpress.XtraReports.v15.1.Web.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\ru\DevExpress.XtraReports.v15.1.Web.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\ko\EntityFramework.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\de\Microsoft.Data.Edm.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\es\Microsoft.Data.Edm.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\fr\Microsoft.Data.Edm.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\it\Microsoft.Data.Edm.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\ja\Microsoft.Data.Edm.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\ko\Microsoft.Data.Edm.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\ru\Microsoft.Data.Edm.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\zh-Hans\Microsoft.Data.Edm.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\zh-Hant\Microsoft.Data.Edm.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\de\Microsoft.Data.OData.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\es\Microsoft.Data.OData.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\fr\Microsoft.Data.OData.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\it\Microsoft.Data.OData.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\ja\Microsoft.Data.OData.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\ko\Microsoft.Data.OData.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\ru\Microsoft.Data.OData.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\zh-Hans\Microsoft.Data.OData.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\zh-Hant\Microsoft.Data.OData.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\de\Microsoft.Data.Services.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\es\Microsoft.Data.Services.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\fr\Microsoft.Data.Services.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\it\Microsoft.Data.Services.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\ja\Microsoft.Data.Services.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\ko\Microsoft.Data.Services.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\ru\Microsoft.Data.Services.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\zh-Hans\Microsoft.Data.Services.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\zh-Hant\Microsoft.Data.Services.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\de\Microsoft.Data.Services.Client.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\es\Microsoft.Data.Services.Client.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\fr\Microsoft.Data.Services.Client.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\it\Microsoft.Data.Services.Client.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\ja\Microsoft.Data.Services.Client.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\ko\Microsoft.Data.Services.Client.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\ru\Microsoft.Data.Services.Client.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\zh-Hans\Microsoft.Data.Services.Client.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\zh-Hant\Microsoft.Data.Services.Client.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\de\System.Spatial.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\es\System.Spatial.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\fr\System.Spatial.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\it\System.Spatial.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\ja\System.Spatial.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\ko\System.Spatial.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\ru\System.Spatial.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\zh-Hans\System.Spatial.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\zh-Hant\System.Spatial.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\de\DevExpress.XtraEditors.v15.1.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\es\DevExpress.XtraEditors.v15.1.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\ja\DevExpress.XtraEditors.v15.1.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\ru\DevExpress.XtraEditors.v15.1.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\de\DevExpress.XtraBars.v15.1.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\es\DevExpress.XtraBars.v15.1.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\ja\DevExpress.XtraBars.v15.1.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\ru\DevExpress.XtraBars.v15.1.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\de\DevExpress.XtraTreeList.v15.1.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\es\DevExpress.XtraTreeList.v15.1.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\ja\DevExpress.XtraTreeList.v15.1.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\ru\DevExpress.XtraTreeList.v15.1.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\de\DevExpress.XtraLayout.v15.1.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\es\DevExpress.XtraLayout.v15.1.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\ja\DevExpress.XtraLayout.v15.1.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\ru\DevExpress.XtraLayout.v15.1.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\de\DevExpress.Utils.v15.1.UI.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\es\DevExpress.Utils.v15.1.UI.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\ja\DevExpress.Utils.v15.1.UI.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\ru\DevExpress.Utils.v15.1.UI.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\de\DevExpress.XtraRichEdit.v15.1.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\es\DevExpress.XtraRichEdit.v15.1.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\ja\DevExpress.XtraRichEdit.v15.1.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\ru\DevExpress.XtraRichEdit.v15.1.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\de\DevExpress.XtraPivotGrid.v15.1.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\es\DevExpress.XtraPivotGrid.v15.1.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\ja\DevExpress.XtraPivotGrid.v15.1.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\ru\DevExpress.XtraPivotGrid.v15.1.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\de\DevExpress.XtraNavBar.v15.1.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\es\DevExpress.XtraNavBar.v15.1.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\ja\DevExpress.XtraNavBar.v15.1.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\ru\DevExpress.XtraNavBar.v15.1.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\de\DevExpress.DataAccess.v15.1.UI.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\es\DevExpress.DataAccess.v15.1.UI.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\ja\DevExpress.DataAccess.v15.1.UI.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\ru\DevExpress.DataAccess.v15.1.UI.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\de\DevExpress.XtraVerticalGrid.v15.1.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\es\DevExpress.XtraVerticalGrid.v15.1.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\ja\DevExpress.XtraVerticalGrid.v15.1.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\ru\DevExpress.XtraVerticalGrid.v15.1.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\de\DevExpress.XtraCharts.v15.1.Wizard.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\es\DevExpress.XtraCharts.v15.1.Wizard.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\ja\DevExpress.XtraCharts.v15.1.Wizard.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\ru\DevExpress.XtraCharts.v15.1.Wizard.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\de\DevExpress.XtraGrid.v15.1.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\es\DevExpress.XtraGrid.v15.1.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\ja\DevExpress.XtraGrid.v15.1.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\bin\ru\DevExpress.XtraGrid.v15.1.resources.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\obj\Debug\iBemsDataService.Report.MonthlyReport.resources
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\obj\Debug\iBemsDataService.Report.DailyReport.resources
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\obj\Debug\iBemsDataService.Report.PatrolReport.resources
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\obj\Debug\iBemsDataService.Report.XtraReport1.resources
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\obj\Debug\iBemsDataService.csproj.GenerateResource.Cache
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\obj\Debug\iBemsDataService.dll.licenses
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\obj\Debug\iBemsDataService.dll
+D:\1. BEMS\BEMS 1등급\병합\2018_04_25_BEMS\iBemsDataService\obj\Debug\iBemsDataService.pdb
+C:\Users\hdc-icontrols6\Desktop\Development\190703_FMS_Inside\iBemsDataService\bin\iBemsDataService.dll.config
+C:\Users\hdc-icontrols6\Desktop\Development\190703_FMS_Inside\iBemsDataService\bin\iBemsDataService.dll
+C:\Users\hdc-icontrols6\Desktop\Development\190703_FMS_Inside\iBemsDataService\bin\iBemsDataService.pdb
+C:\Users\hdc-icontrols6\Desktop\Development\190703_FMS_Inside\iBemsDataService\bin\Common.Logging.Core.dll
+C:\Users\hdc-icontrols6\Desktop\Development\190703_FMS_Inside\iBemsDataService\bin\Common.Logging.dll
+C:\Users\hdc-icontrols6\Desktop\Development\190703_FMS_Inside\iBemsDataService\bin\EntityFramework.dll
+C:\Users\hdc-icontrols6\Desktop\Development\190703_FMS_Inside\iBemsDataService\bin\Microsoft.Data.Edm.dll
+C:\Users\hdc-icontrols6\Desktop\Development\190703_FMS_Inside\iBemsDataService\bin\Microsoft.Data.OData.dll
+C:\Users\hdc-icontrols6\Desktop\Development\190703_FMS_Inside\iBemsDataService\bin\Microsoft.Data.Services.Client.dll
+C:\Users\hdc-icontrols6\Desktop\Development\190703_FMS_Inside\iBemsDataService\bin\Microsoft.Data.Services.dll
+C:\Users\hdc-icontrols6\Desktop\Development\190703_FMS_Inside\iBemsDataService\bin\Newtonsoft.Json.dll
+C:\Users\hdc-icontrols6\Desktop\Development\190703_FMS_Inside\iBemsDataService\bin\Quartz.dll
+C:\Users\hdc-icontrols6\Desktop\Development\190703_FMS_Inside\iBemsDataService\bin\System.Net.Http.Formatting.dll
+C:\Users\hdc-icontrols6\Desktop\Development\190703_FMS_Inside\iBemsDataService\bin\System.Spatial.dll
+C:\Users\hdc-icontrols6\Desktop\Development\190703_FMS_Inside\iBemsDataService\bin\System.Web.Http.dll
+C:\Users\hdc-icontrols6\Desktop\Development\190703_FMS_Inside\iBemsDataService\bin\System.Web.Http.OData.dll
+C:\Users\hdc-icontrols6\Desktop\Development\190703_FMS_Inside\iBemsDataService\bin\System.Web.Http.WebHost.dll
+C:\Users\hdc-icontrols6\Desktop\Development\190703_FMS_Inside\iBemsDataService\bin\Common.Logging.xml
+C:\Users\hdc-icontrols6\Desktop\Development\190703_FMS_Inside\iBemsDataService\bin\Common.Logging.Core.xml
+C:\Users\hdc-icontrols6\Desktop\Development\190703_FMS_Inside\iBemsDataService\bin\EntityFramework.xml
+C:\Users\hdc-icontrols6\Desktop\Development\190703_FMS_Inside\iBemsDataService\bin\Microsoft.Data.Edm.xml
+C:\Users\hdc-icontrols6\Desktop\Development\190703_FMS_Inside\iBemsDataService\bin\Microsoft.Data.OData.xml
+C:\Users\hdc-icontrols6\Desktop\Development\190703_FMS_Inside\iBemsDataService\bin\Microsoft.Data.Services.xml
+C:\Users\hdc-icontrols6\Desktop\Development\190703_FMS_Inside\iBemsDataService\bin\Microsoft.Data.Services.Client.xml
+C:\Users\hdc-icontrols6\Desktop\Development\190703_FMS_Inside\iBemsDataService\bin\Newtonsoft.Json.xml
+C:\Users\hdc-icontrols6\Desktop\Development\190703_FMS_Inside\iBemsDataService\bin\Quartz.xml
+C:\Users\hdc-icontrols6\Desktop\Development\190703_FMS_Inside\iBemsDataService\bin\System.Net.Http.Formatting.xml
+C:\Users\hdc-icontrols6\Desktop\Development\190703_FMS_Inside\iBemsDataService\bin\System.Spatial.xml
+C:\Users\hdc-icontrols6\Desktop\Development\190703_FMS_Inside\iBemsDataService\bin\System.Web.Http.xml
+C:\Users\hdc-icontrols6\Desktop\Development\190703_FMS_Inside\iBemsDataService\bin\System.Web.Http.OData.xml
+C:\Users\hdc-icontrols6\Desktop\Development\190703_FMS_Inside\iBemsDataService\bin\System.Web.Http.WebHost.xml
+C:\Users\hdc-icontrols6\Desktop\Development\190703_FMS_Inside\iBemsDataService\bin\ko\EntityFramework.resources.dll
+C:\Users\hdc-icontrols6\Desktop\Development\190703_FMS_Inside\iBemsDataService\bin\de\Microsoft.Data.Edm.resources.dll
+C:\Users\hdc-icontrols6\Desktop\Development\190703_FMS_Inside\iBemsDataService\bin\es\Microsoft.Data.Edm.resources.dll
+C:\Users\hdc-icontrols6\Desktop\Development\190703_FMS_Inside\iBemsDataService\bin\fr\Microsoft.Data.Edm.resources.dll
+C:\Users\hdc-icontrols6\Desktop\Development\190703_FMS_Inside\iBemsDataService\bin\it\Microsoft.Data.Edm.resources.dll
+C:\Users\hdc-icontrols6\Desktop\Development\190703_FMS_Inside\iBemsDataService\bin\ja\Microsoft.Data.Edm.resources.dll
+C:\Users\hdc-icontrols6\Desktop\Development\190703_FMS_Inside\iBemsDataService\bin\ko\Microsoft.Data.Edm.resources.dll
+C:\Users\hdc-icontrols6\Desktop\Development\190703_FMS_Inside\iBemsDataService\bin\ru\Microsoft.Data.Edm.resources.dll
+C:\Users\hdc-icontrols6\Desktop\Development\190703_FMS_Inside\iBemsDataService\bin\zh-Hans\Microsoft.Data.Edm.resources.dll
+C:\Users\hdc-icontrols6\Desktop\Development\190703_FMS_Inside\iBemsDataService\bin\zh-Hant\Microsoft.Data.Edm.resources.dll
+C:\Users\hdc-icontrols6\Desktop\Development\190703_FMS_Inside\iBemsDataService\bin\de\Microsoft.Data.OData.resources.dll
+C:\Users\hdc-icontrols6\Desktop\Development\190703_FMS_Inside\iBemsDataService\bin\es\Microsoft.Data.OData.resources.dll
+C:\Users\hdc-icontrols6\Desktop\Development\190703_FMS_Inside\iBemsDataService\bin\fr\Microsoft.Data.OData.resources.dll
+C:\Users\hdc-icontrols6\Desktop\Development\190703_FMS_Inside\iBemsDataService\bin\it\Microsoft.Data.OData.resources.dll
+C:\Users\hdc-icontrols6\Desktop\Development\190703_FMS_Inside\iBemsDataService\bin\ja\Microsoft.Data.OData.resources.dll
+C:\Users\hdc-icontrols6\Desktop\Development\190703_FMS_Inside\iBemsDataService\bin\ko\Microsoft.Data.OData.resources.dll
+C:\Users\hdc-icontrols6\Desktop\Development\190703_FMS_Inside\iBemsDataService\bin\ru\Microsoft.Data.OData.resources.dll
+C:\Users\hdc-icontrols6\Desktop\Development\190703_FMS_Inside\iBemsDataService\bin\zh-Hans\Microsoft.Data.OData.resources.dll
+C:\Users\hdc-icontrols6\Desktop\Development\190703_FMS_Inside\iBemsDataService\bin\zh-Hant\Microsoft.Data.OData.resources.dll
+C:\Users\hdc-icontrols6\Desktop\Development\190703_FMS_Inside\iBemsDataService\bin\de\Microsoft.Data.Services.resources.dll
+C:\Users\hdc-icontrols6\Desktop\Development\190703_FMS_Inside\iBemsDataService\bin\es\Microsoft.Data.Services.resources.dll
+C:\Users\hdc-icontrols6\Desktop\Development\190703_FMS_Inside\iBemsDataService\bin\fr\Microsoft.Data.Services.resources.dll
+C:\Users\hdc-icontrols6\Desktop\Development\190703_FMS_Inside\iBemsDataService\bin\it\Microsoft.Data.Services.resources.dll
+C:\Users\hdc-icontrols6\Desktop\Development\190703_FMS_Inside\iBemsDataService\bin\ja\Microsoft.Data.Services.resources.dll
+C:\Users\hdc-icontrols6\Desktop\Development\190703_FMS_Inside\iBemsDataService\bin\ko\Microsoft.Data.Services.resources.dll
+C:\Users\hdc-icontrols6\Desktop\Development\190703_FMS_Inside\iBemsDataService\bin\ru\Microsoft.Data.Services.resources.dll
+C:\Users\hdc-icontrols6\Desktop\Development\190703_FMS_Inside\iBemsDataService\bin\zh-Hans\Microsoft.Data.Services.resources.dll
+C:\Users\hdc-icontrols6\Desktop\Development\190703_FMS_Inside\iBemsDataService\bin\zh-Hant\Microsoft.Data.Services.resources.dll
+C:\Users\hdc-icontrols6\Desktop\Development\190703_FMS_Inside\iBemsDataService\bin\de\Microsoft.Data.Services.Client.resources.dll
+C:\Users\hdc-icontrols6\Desktop\Development\190703_FMS_Inside\iBemsDataService\bin\es\Microsoft.Data.Services.Client.resources.dll
+C:\Users\hdc-icontrols6\Desktop\Development\190703_FMS_Inside\iBemsDataService\bin\fr\Microsoft.Data.Services.Client.resources.dll
+C:\Users\hdc-icontrols6\Desktop\Development\190703_FMS_Inside\iBemsDataService\bin\it\Microsoft.Data.Services.Client.resources.dll
+C:\Users\hdc-icontrols6\Desktop\Development\190703_FMS_Inside\iBemsDataService\bin\ja\Microsoft.Data.Services.Client.resources.dll
+C:\Users\hdc-icontrols6\Desktop\Development\190703_FMS_Inside\iBemsDataService\bin\ko\Microsoft.Data.Services.Client.resources.dll
+C:\Users\hdc-icontrols6\Desktop\Development\190703_FMS_Inside\iBemsDataService\bin\ru\Microsoft.Data.Services.Client.resources.dll
+C:\Users\hdc-icontrols6\Desktop\Development\190703_FMS_Inside\iBemsDataService\bin\zh-Hans\Microsoft.Data.Services.Client.resources.dll
+C:\Users\hdc-icontrols6\Desktop\Development\190703_FMS_Inside\iBemsDataService\bin\zh-Hant\Microsoft.Data.Services.Client.resources.dll
+C:\Users\hdc-icontrols6\Desktop\Development\190703_FMS_Inside\iBemsDataService\bin\de\System.Spatial.resources.dll
+C:\Users\hdc-icontrols6\Desktop\Development\190703_FMS_Inside\iBemsDataService\bin\es\System.Spatial.resources.dll
+C:\Users\hdc-icontrols6\Desktop\Development\190703_FMS_Inside\iBemsDataService\bin\fr\System.Spatial.resources.dll
+C:\Users\hdc-icontrols6\Desktop\Development\190703_FMS_Inside\iBemsDataService\bin\it\System.Spatial.resources.dll
+C:\Users\hdc-icontrols6\Desktop\Development\190703_FMS_Inside\iBemsDataService\bin\ja\System.Spatial.resources.dll
+C:\Users\hdc-icontrols6\Desktop\Development\190703_FMS_Inside\iBemsDataService\bin\ko\System.Spatial.resources.dll
+C:\Users\hdc-icontrols6\Desktop\Development\190703_FMS_Inside\iBemsDataService\bin\ru\System.Spatial.resources.dll
+C:\Users\hdc-icontrols6\Desktop\Development\190703_FMS_Inside\iBemsDataService\bin\zh-Hans\System.Spatial.resources.dll
+C:\Users\hdc-icontrols6\Desktop\Development\190703_FMS_Inside\iBemsDataService\bin\zh-Hant\System.Spatial.resources.dll
+C:\Users\hdc-icontrols6\Desktop\Development\190703_FMS_Inside\iBemsDataService\obj\Debug\iBemsDataService.Report.MonthlyReport.resources
+C:\Users\hdc-icontrols6\Desktop\Development\190703_FMS_Inside\iBemsDataService\obj\Debug\iBemsDataService.Report.DailyReport.resources
+C:\Users\hdc-icontrols6\Desktop\Development\190703_FMS_Inside\iBemsDataService\obj\Debug\iBemsDataService.Report.PatrolReport.resources
+C:\Users\hdc-icontrols6\Desktop\Development\190703_FMS_Inside\iBemsDataService\obj\Debug\iBemsDataService.Report.XtraReport1.resources
+C:\Users\hdc-icontrols6\Desktop\Development\190703_FMS_Inside\iBemsDataService\obj\Debug\iBemsDataService.csproj.GenerateResource.Cache
+C:\Users\hdc-icontrols6\Desktop\Development\190703_FMS_Inside\iBemsDataService\obj\Debug\iBemsDataService.dll.licenses
+C:\Users\hdc-icontrols6\Desktop\Development\190703_FMS_Inside\iBemsDataService\obj\Debug\iBemsDataService.dll
+C:\Users\hdc-icontrols6\Desktop\Development\190703_FMS_Inside\iBemsDataService\obj\Debug\iBemsDataService.pdb
+C:\Users\hdc-icontrols6\Desktop\Development\190703_FMS_Inside\iBemsDataService\obj\Debug\iBemsDataService.csprojResolveAssemblyReference.cache
+C:\Users\hdc-icontrols6\Desktop\Development\190708_100New\iBemsDataService\bin\iBemsDataService.dll.config
+C:\Users\hdc-icontrols6\Desktop\Development\190708_100New\iBemsDataService\bin\iBemsDataService.dll
+C:\Users\hdc-icontrols6\Desktop\Development\190708_100New\iBemsDataService\bin\iBemsDataService.pdb
+C:\Users\hdc-icontrols6\Desktop\Development\190708_100New\iBemsDataService\bin\Common.Logging.Core.dll
+C:\Users\hdc-icontrols6\Desktop\Development\190708_100New\iBemsDataService\bin\Common.Logging.dll
+C:\Users\hdc-icontrols6\Desktop\Development\190708_100New\iBemsDataService\bin\EntityFramework.dll
+C:\Users\hdc-icontrols6\Desktop\Development\190708_100New\iBemsDataService\bin\Microsoft.Data.Edm.dll
+C:\Users\hdc-icontrols6\Desktop\Development\190708_100New\iBemsDataService\bin\Microsoft.Data.OData.dll
+C:\Users\hdc-icontrols6\Desktop\Development\190708_100New\iBemsDataService\bin\Microsoft.Data.Services.Client.dll
+C:\Users\hdc-icontrols6\Desktop\Development\190708_100New\iBemsDataService\bin\Microsoft.Data.Services.dll
+C:\Users\hdc-icontrols6\Desktop\Development\190708_100New\iBemsDataService\bin\Newtonsoft.Json.dll
+C:\Users\hdc-icontrols6\Desktop\Development\190708_100New\iBemsDataService\bin\Quartz.dll
+C:\Users\hdc-icontrols6\Desktop\Development\190708_100New\iBemsDataService\bin\System.Net.Http.Formatting.dll
+C:\Users\hdc-icontrols6\Desktop\Development\190708_100New\iBemsDataService\bin\System.Spatial.dll
+C:\Users\hdc-icontrols6\Desktop\Development\190708_100New\iBemsDataService\bin\System.Web.Http.dll
+C:\Users\hdc-icontrols6\Desktop\Development\190708_100New\iBemsDataService\bin\System.Web.Http.OData.dll
+C:\Users\hdc-icontrols6\Desktop\Development\190708_100New\iBemsDataService\bin\System.Web.Http.WebHost.dll
+C:\Users\hdc-icontrols6\Desktop\Development\190708_100New\iBemsDataService\bin\Common.Logging.xml
+C:\Users\hdc-icontrols6\Desktop\Development\190708_100New\iBemsDataService\bin\Common.Logging.Core.xml
+C:\Users\hdc-icontrols6\Desktop\Development\190708_100New\iBemsDataService\bin\EntityFramework.xml
+C:\Users\hdc-icontrols6\Desktop\Development\190708_100New\iBemsDataService\bin\Microsoft.Data.Edm.xml
+C:\Users\hdc-icontrols6\Desktop\Development\190708_100New\iBemsDataService\bin\Microsoft.Data.OData.xml
+C:\Users\hdc-icontrols6\Desktop\Development\190708_100New\iBemsDataService\bin\Microsoft.Data.Services.xml
+C:\Users\hdc-icontrols6\Desktop\Development\190708_100New\iBemsDataService\bin\Microsoft.Data.Services.Client.xml
+C:\Users\hdc-icontrols6\Desktop\Development\190708_100New\iBemsDataService\bin\Newtonsoft.Json.xml
+C:\Users\hdc-icontrols6\Desktop\Development\190708_100New\iBemsDataService\bin\Quartz.xml
+C:\Users\hdc-icontrols6\Desktop\Development\190708_100New\iBemsDataService\bin\System.Net.Http.Formatting.xml
+C:\Users\hdc-icontrols6\Desktop\Development\190708_100New\iBemsDataService\bin\System.Spatial.xml
+C:\Users\hdc-icontrols6\Desktop\Development\190708_100New\iBemsDataService\bin\System.Web.Http.xml
+C:\Users\hdc-icontrols6\Desktop\Development\190708_100New\iBemsDataService\bin\System.Web.Http.OData.xml
+C:\Users\hdc-icontrols6\Desktop\Development\190708_100New\iBemsDataService\bin\System.Web.Http.WebHost.xml
+C:\Users\hdc-icontrols6\Desktop\Development\190708_100New\iBemsDataService\bin\ko\EntityFramework.resources.dll
+C:\Users\hdc-icontrols6\Desktop\Development\190708_100New\iBemsDataService\bin\de\Microsoft.Data.Edm.resources.dll
+C:\Users\hdc-icontrols6\Desktop\Development\190708_100New\iBemsDataService\bin\es\Microsoft.Data.Edm.resources.dll
+C:\Users\hdc-icontrols6\Desktop\Development\190708_100New\iBemsDataService\bin\fr\Microsoft.Data.Edm.resources.dll
+C:\Users\hdc-icontrols6\Desktop\Development\190708_100New\iBemsDataService\bin\it\Microsoft.Data.Edm.resources.dll
+C:\Users\hdc-icontrols6\Desktop\Development\190708_100New\iBemsDataService\bin\ja\Microsoft.Data.Edm.resources.dll
+C:\Users\hdc-icontrols6\Desktop\Development\190708_100New\iBemsDataService\bin\ko\Microsoft.Data.Edm.resources.dll
+C:\Users\hdc-icontrols6\Desktop\Development\190708_100New\iBemsDataService\bin\ru\Microsoft.Data.Edm.resources.dll
+C:\Users\hdc-icontrols6\Desktop\Development\190708_100New\iBemsDataService\bin\zh-Hans\Microsoft.Data.Edm.resources.dll
+C:\Users\hdc-icontrols6\Desktop\Development\190708_100New\iBemsDataService\bin\zh-Hant\Microsoft.Data.Edm.resources.dll
+C:\Users\hdc-icontrols6\Desktop\Development\190708_100New\iBemsDataService\bin\de\Microsoft.Data.OData.resources.dll
+C:\Users\hdc-icontrols6\Desktop\Development\190708_100New\iBemsDataService\bin\es\Microsoft.Data.OData.resources.dll
+C:\Users\hdc-icontrols6\Desktop\Development\190708_100New\iBemsDataService\bin\fr\Microsoft.Data.OData.resources.dll
+C:\Users\hdc-icontrols6\Desktop\Development\190708_100New\iBemsDataService\bin\it\Microsoft.Data.OData.resources.dll
+C:\Users\hdc-icontrols6\Desktop\Development\190708_100New\iBemsDataService\bin\ja\Microsoft.Data.OData.resources.dll
+C:\Users\hdc-icontrols6\Desktop\Development\190708_100New\iBemsDataService\bin\ko\Microsoft.Data.OData.resources.dll
+C:\Users\hdc-icontrols6\Desktop\Development\190708_100New\iBemsDataService\bin\ru\Microsoft.Data.OData.resources.dll
+C:\Users\hdc-icontrols6\Desktop\Development\190708_100New\iBemsDataService\bin\zh-Hans\Microsoft.Data.OData.resources.dll
+C:\Users\hdc-icontrols6\Desktop\Development\190708_100New\iBemsDataService\bin\zh-Hant\Microsoft.Data.OData.resources.dll
+C:\Users\hdc-icontrols6\Desktop\Development\190708_100New\iBemsDataService\bin\de\Microsoft.Data.Services.resources.dll
+C:\Users\hdc-icontrols6\Desktop\Development\190708_100New\iBemsDataService\bin\es\Microsoft.Data.Services.resources.dll
+C:\Users\hdc-icontrols6\Desktop\Development\190708_100New\iBemsDataService\bin\fr\Microsoft.Data.Services.resources.dll
+C:\Users\hdc-icontrols6\Desktop\Development\190708_100New\iBemsDataService\bin\it\Microsoft.Data.Services.resources.dll
+C:\Users\hdc-icontrols6\Desktop\Development\190708_100New\iBemsDataService\bin\ja\Microsoft.Data.Services.resources.dll
+C:\Users\hdc-icontrols6\Desktop\Development\190708_100New\iBemsDataService\bin\ko\Microsoft.Data.Services.resources.dll
+C:\Users\hdc-icontrols6\Desktop\Development\190708_100New\iBemsDataService\bin\ru\Microsoft.Data.Services.resources.dll
+C:\Users\hdc-icontrols6\Desktop\Development\190708_100New\iBemsDataService\bin\zh-Hans\Microsoft.Data.Services.resources.dll
+C:\Users\hdc-icontrols6\Desktop\Development\190708_100New\iBemsDataService\bin\zh-Hant\Microsoft.Data.Services.resources.dll
+C:\Users\hdc-icontrols6\Desktop\Development\190708_100New\iBemsDataService\bin\de\Microsoft.Data.Services.Client.resources.dll
+C:\Users\hdc-icontrols6\Desktop\Development\190708_100New\iBemsDataService\bin\es\Microsoft.Data.Services.Client.resources.dll
+C:\Users\hdc-icontrols6\Desktop\Development\190708_100New\iBemsDataService\bin\fr\Microsoft.Data.Services.Client.resources.dll
+C:\Users\hdc-icontrols6\Desktop\Development\190708_100New\iBemsDataService\bin\it\Microsoft.Data.Services.Client.resources.dll
+C:\Users\hdc-icontrols6\Desktop\Development\190708_100New\iBemsDataService\bin\ja\Microsoft.Data.Services.Client.resources.dll
+C:\Users\hdc-icontrols6\Desktop\Development\190708_100New\iBemsDataService\bin\ko\Microsoft.Data.Services.Client.resources.dll
+C:\Users\hdc-icontrols6\Desktop\Development\190708_100New\iBemsDataService\bin\ru\Microsoft.Data.Services.Client.resources.dll
+C:\Users\hdc-icontrols6\Desktop\Development\190708_100New\iBemsDataService\bin\zh-Hans\Microsoft.Data.Services.Client.resources.dll
+C:\Users\hdc-icontrols6\Desktop\Development\190708_100New\iBemsDataService\bin\zh-Hant\Microsoft.Data.Services.Client.resources.dll
+C:\Users\hdc-icontrols6\Desktop\Development\190708_100New\iBemsDataService\bin\de\System.Spatial.resources.dll
+C:\Users\hdc-icontrols6\Desktop\Development\190708_100New\iBemsDataService\bin\es\System.Spatial.resources.dll
+C:\Users\hdc-icontrols6\Desktop\Development\190708_100New\iBemsDataService\bin\fr\System.Spatial.resources.dll
+C:\Users\hdc-icontrols6\Desktop\Development\190708_100New\iBemsDataService\bin\it\System.Spatial.resources.dll
+C:\Users\hdc-icontrols6\Desktop\Development\190708_100New\iBemsDataService\bin\ja\System.Spatial.resources.dll
+C:\Users\hdc-icontrols6\Desktop\Development\190708_100New\iBemsDataService\bin\ko\System.Spatial.resources.dll
+C:\Users\hdc-icontrols6\Desktop\Development\190708_100New\iBemsDataService\bin\ru\System.Spatial.resources.dll
+C:\Users\hdc-icontrols6\Desktop\Development\190708_100New\iBemsDataService\bin\zh-Hans\System.Spatial.resources.dll
+C:\Users\hdc-icontrols6\Desktop\Development\190708_100New\iBemsDataService\bin\zh-Hant\System.Spatial.resources.dll
+C:\Users\hdc-icontrols6\Desktop\Development\190708_100New\iBemsDataService\obj\Debug\iBemsDataService.Report.MonthlyReport.resources
+C:\Users\hdc-icontrols6\Desktop\Development\190708_100New\iBemsDataService\obj\Debug\iBemsDataService.Report.DailyReport.resources
+C:\Users\hdc-icontrols6\Desktop\Development\190708_100New\iBemsDataService\obj\Debug\iBemsDataService.Report.PatrolReport.resources
+C:\Users\hdc-icontrols6\Desktop\Development\190708_100New\iBemsDataService\obj\Debug\iBemsDataService.Report.XtraReport1.resources
+C:\Users\hdc-icontrols6\Desktop\Development\190708_100New\iBemsDataService\obj\Debug\iBemsDataService.csproj.GenerateResource.Cache
+C:\Users\hdc-icontrols6\Desktop\Development\190708_100New\iBemsDataService\obj\Debug\iBemsDataService.dll.licenses
+C:\Users\hdc-icontrols6\Desktop\Development\190708_100New\iBemsDataService\obj\Debug\iBemsDataService.dll
+C:\Users\hdc-icontrols6\Desktop\Development\190708_100New\iBemsDataService\obj\Debug\iBemsDataService.pdb
+C:\Users\hdc-icontrols6\Desktop\새 폴더 (4)\iBemsDataService\bin\iBemsDataService.dll.config
+C:\Users\hdc-icontrols6\Desktop\새 폴더 (4)\iBemsDataService\bin\iBemsDataService.dll
+C:\Users\hdc-icontrols6\Desktop\새 폴더 (4)\iBemsDataService\bin\iBemsDataService.pdb
+C:\Users\hdc-icontrols6\Desktop\새 폴더 (4)\iBemsDataService\bin\Common.Logging.Core.dll
+C:\Users\hdc-icontrols6\Desktop\새 폴더 (4)\iBemsDataService\bin\Common.Logging.dll
+C:\Users\hdc-icontrols6\Desktop\새 폴더 (4)\iBemsDataService\bin\EntityFramework.dll
+C:\Users\hdc-icontrols6\Desktop\새 폴더 (4)\iBemsDataService\bin\Microsoft.Data.Edm.dll
+C:\Users\hdc-icontrols6\Desktop\새 폴더 (4)\iBemsDataService\bin\Microsoft.Data.OData.dll
+C:\Users\hdc-icontrols6\Desktop\새 폴더 (4)\iBemsDataService\bin\Microsoft.Data.Services.Client.dll
+C:\Users\hdc-icontrols6\Desktop\새 폴더 (4)\iBemsDataService\bin\Microsoft.Data.Services.dll
+C:\Users\hdc-icontrols6\Desktop\새 폴더 (4)\iBemsDataService\bin\Newtonsoft.Json.dll
+C:\Users\hdc-icontrols6\Desktop\새 폴더 (4)\iBemsDataService\bin\Quartz.dll
+C:\Users\hdc-icontrols6\Desktop\새 폴더 (4)\iBemsDataService\bin\System.Net.Http.Formatting.dll
+C:\Users\hdc-icontrols6\Desktop\새 폴더 (4)\iBemsDataService\bin\System.Spatial.dll
+C:\Users\hdc-icontrols6\Desktop\새 폴더 (4)\iBemsDataService\bin\System.Web.Http.dll
+C:\Users\hdc-icontrols6\Desktop\새 폴더 (4)\iBemsDataService\bin\System.Web.Http.OData.dll
+C:\Users\hdc-icontrols6\Desktop\새 폴더 (4)\iBemsDataService\bin\System.Web.Http.WebHost.dll
+C:\Users\hdc-icontrols6\Desktop\새 폴더 (4)\iBemsDataService\bin\Common.Logging.xml
+C:\Users\hdc-icontrols6\Desktop\새 폴더 (4)\iBemsDataService\bin\Common.Logging.Core.xml
+C:\Users\hdc-icontrols6\Desktop\새 폴더 (4)\iBemsDataService\bin\EntityFramework.xml
+C:\Users\hdc-icontrols6\Desktop\새 폴더 (4)\iBemsDataService\bin\Microsoft.Data.Edm.xml
+C:\Users\hdc-icontrols6\Desktop\새 폴더 (4)\iBemsDataService\bin\Microsoft.Data.OData.xml
+C:\Users\hdc-icontrols6\Desktop\새 폴더 (4)\iBemsDataService\bin\Microsoft.Data.Services.xml
+C:\Users\hdc-icontrols6\Desktop\새 폴더 (4)\iBemsDataService\bin\Microsoft.Data.Services.Client.xml
+C:\Users\hdc-icontrols6\Desktop\새 폴더 (4)\iBemsDataService\bin\Newtonsoft.Json.xml
+C:\Users\hdc-icontrols6\Desktop\새 폴더 (4)\iBemsDataService\bin\Quartz.xml
+C:\Users\hdc-icontrols6\Desktop\새 폴더 (4)\iBemsDataService\bin\System.Net.Http.Formatting.xml
+C:\Users\hdc-icontrols6\Desktop\새 폴더 (4)\iBemsDataService\bin\System.Spatial.xml
+C:\Users\hdc-icontrols6\Desktop\새 폴더 (4)\iBemsDataService\bin\System.Web.Http.xml
+C:\Users\hdc-icontrols6\Desktop\새 폴더 (4)\iBemsDataService\bin\System.Web.Http.OData.xml
+C:\Users\hdc-icontrols6\Desktop\새 폴더 (4)\iBemsDataService\bin\System.Web.Http.WebHost.xml
+C:\Users\hdc-icontrols6\Desktop\새 폴더 (4)\iBemsDataService\bin\ko\EntityFramework.resources.dll
+C:\Users\hdc-icontrols6\Desktop\새 폴더 (4)\iBemsDataService\bin\de\Microsoft.Data.Edm.resources.dll
+C:\Users\hdc-icontrols6\Desktop\새 폴더 (4)\iBemsDataService\bin\es\Microsoft.Data.Edm.resources.dll
+C:\Users\hdc-icontrols6\Desktop\새 폴더 (4)\iBemsDataService\bin\fr\Microsoft.Data.Edm.resources.dll
+C:\Users\hdc-icontrols6\Desktop\새 폴더 (4)\iBemsDataService\bin\it\Microsoft.Data.Edm.resources.dll
+C:\Users\hdc-icontrols6\Desktop\새 폴더 (4)\iBemsDataService\bin\ja\Microsoft.Data.Edm.resources.dll
+C:\Users\hdc-icontrols6\Desktop\새 폴더 (4)\iBemsDataService\bin\ko\Microsoft.Data.Edm.resources.dll
+C:\Users\hdc-icontrols6\Desktop\새 폴더 (4)\iBemsDataService\bin\ru\Microsoft.Data.Edm.resources.dll
+C:\Users\hdc-icontrols6\Desktop\새 폴더 (4)\iBemsDataService\bin\zh-Hans\Microsoft.Data.Edm.resources.dll
+C:\Users\hdc-icontrols6\Desktop\새 폴더 (4)\iBemsDataService\bin\zh-Hant\Microsoft.Data.Edm.resources.dll
+C:\Users\hdc-icontrols6\Desktop\새 폴더 (4)\iBemsDataService\bin\de\Microsoft.Data.OData.resources.dll
+C:\Users\hdc-icontrols6\Desktop\새 폴더 (4)\iBemsDataService\bin\es\Microsoft.Data.OData.resources.dll
+C:\Users\hdc-icontrols6\Desktop\새 폴더 (4)\iBemsDataService\bin\fr\Microsoft.Data.OData.resources.dll
+C:\Users\hdc-icontrols6\Desktop\새 폴더 (4)\iBemsDataService\bin\it\Microsoft.Data.OData.resources.dll
+C:\Users\hdc-icontrols6\Desktop\새 폴더 (4)\iBemsDataService\bin\ja\Microsoft.Data.OData.resources.dll
+C:\Users\hdc-icontrols6\Desktop\새 폴더 (4)\iBemsDataService\bin\ko\Microsoft.Data.OData.resources.dll
+C:\Users\hdc-icontrols6\Desktop\새 폴더 (4)\iBemsDataService\bin\ru\Microsoft.Data.OData.resources.dll
+C:\Users\hdc-icontrols6\Desktop\새 폴더 (4)\iBemsDataService\bin\zh-Hans\Microsoft.Data.OData.resources.dll
+C:\Users\hdc-icontrols6\Desktop\새 폴더 (4)\iBemsDataService\bin\zh-Hant\Microsoft.Data.OData.resources.dll
+C:\Users\hdc-icontrols6\Desktop\새 폴더 (4)\iBemsDataService\bin\de\Microsoft.Data.Services.resources.dll
+C:\Users\hdc-icontrols6\Desktop\새 폴더 (4)\iBemsDataService\bin\es\Microsoft.Data.Services.resources.dll
+C:\Users\hdc-icontrols6\Desktop\새 폴더 (4)\iBemsDataService\bin\fr\Microsoft.Data.Services.resources.dll
+C:\Users\hdc-icontrols6\Desktop\새 폴더 (4)\iBemsDataService\bin\it\Microsoft.Data.Services.resources.dll
+C:\Users\hdc-icontrols6\Desktop\새 폴더 (4)\iBemsDataService\bin\ja\Microsoft.Data.Services.resources.dll
+C:\Users\hdc-icontrols6\Desktop\새 폴더 (4)\iBemsDataService\bin\ko\Microsoft.Data.Services.resources.dll
+C:\Users\hdc-icontrols6\Desktop\새 폴더 (4)\iBemsDataService\bin\ru\Microsoft.Data.Services.resources.dll
+C:\Users\hdc-icontrols6\Desktop\새 폴더 (4)\iBemsDataService\bin\zh-Hans\Microsoft.Data.Services.resources.dll
+C:\Users\hdc-icontrols6\Desktop\새 폴더 (4)\iBemsDataService\bin\zh-Hant\Microsoft.Data.Services.resources.dll
+C:\Users\hdc-icontrols6\Desktop\새 폴더 (4)\iBemsDataService\bin\de\Microsoft.Data.Services.Client.resources.dll
+C:\Users\hdc-icontrols6\Desktop\새 폴더 (4)\iBemsDataService\bin\es\Microsoft.Data.Services.Client.resources.dll
+C:\Users\hdc-icontrols6\Desktop\새 폴더 (4)\iBemsDataService\bin\fr\Microsoft.Data.Services.Client.resources.dll
+C:\Users\hdc-icontrols6\Desktop\새 폴더 (4)\iBemsDataService\bin\it\Microsoft.Data.Services.Client.resources.dll
+C:\Users\hdc-icontrols6\Desktop\새 폴더 (4)\iBemsDataService\bin\ja\Microsoft.Data.Services.Client.resources.dll
+C:\Users\hdc-icontrols6\Desktop\새 폴더 (4)\iBemsDataService\bin\ko\Microsoft.Data.Services.Client.resources.dll
+C:\Users\hdc-icontrols6\Desktop\새 폴더 (4)\iBemsDataService\bin\ru\Microsoft.Data.Services.Client.resources.dll
+C:\Users\hdc-icontrols6\Desktop\새 폴더 (4)\iBemsDataService\bin\zh-Hans\Microsoft.Data.Services.Client.resources.dll
+C:\Users\hdc-icontrols6\Desktop\새 폴더 (4)\iBemsDataService\bin\zh-Hant\Microsoft.Data.Services.Client.resources.dll
+C:\Users\hdc-icontrols6\Desktop\새 폴더 (4)\iBemsDataService\bin\de\System.Spatial.resources.dll
+C:\Users\hdc-icontrols6\Desktop\새 폴더 (4)\iBemsDataService\bin\es\System.Spatial.resources.dll
+C:\Users\hdc-icontrols6\Desktop\새 폴더 (4)\iBemsDataService\bin\fr\System.Spatial.resources.dll
+C:\Users\hdc-icontrols6\Desktop\새 폴더 (4)\iBemsDataService\bin\it\System.Spatial.resources.dll
+C:\Users\hdc-icontrols6\Desktop\새 폴더 (4)\iBemsDataService\bin\ja\System.Spatial.resources.dll
+C:\Users\hdc-icontrols6\Desktop\새 폴더 (4)\iBemsDataService\bin\ko\System.Spatial.resources.dll
+C:\Users\hdc-icontrols6\Desktop\새 폴더 (4)\iBemsDataService\bin\ru\System.Spatial.resources.dll
+C:\Users\hdc-icontrols6\Desktop\새 폴더 (4)\iBemsDataService\bin\zh-Hans\System.Spatial.resources.dll
+C:\Users\hdc-icontrols6\Desktop\새 폴더 (4)\iBemsDataService\bin\zh-Hant\System.Spatial.resources.dll
+C:\Users\hdc-icontrols6\Desktop\새 폴더 (4)\iBemsDataService\obj\Debug\iBemsDataService.Report.MonthlyReport.resources
+C:\Users\hdc-icontrols6\Desktop\새 폴더 (4)\iBemsDataService\obj\Debug\iBemsDataService.Report.DailyReport.resources
+C:\Users\hdc-icontrols6\Desktop\새 폴더 (4)\iBemsDataService\obj\Debug\iBemsDataService.Report.PatrolReport.resources
+C:\Users\hdc-icontrols6\Desktop\새 폴더 (4)\iBemsDataService\obj\Debug\iBemsDataService.Report.XtraReport1.resources
+C:\Users\hdc-icontrols6\Desktop\새 폴더 (4)\iBemsDataService\obj\Debug\iBemsDataService.csproj.GenerateResource.Cache
+C:\Users\hdc-icontrols6\Desktop\새 폴더 (4)\iBemsDataService\obj\Debug\iBemsDataService.dll.licenses
+C:\Users\hdc-icontrols6\Desktop\새 폴더 (4)\iBemsDataService\obj\Debug\iBemsDataService.dll
+C:\Users\hdc-icontrols6\Desktop\새 폴더 (4)\iBemsDataService\obj\Debug\iBemsDataService.pdb
+C:\Users\hdc-icontrols6\Desktop\UserCheck\iBemsDataService\bin\iBemsDataService.dll.config
+C:\Users\hdc-icontrols6\Desktop\UserCheck\iBemsDataService\bin\iBemsDataService.dll
+C:\Users\hdc-icontrols6\Desktop\UserCheck\iBemsDataService\bin\iBemsDataService.pdb
+C:\Users\hdc-icontrols6\Desktop\UserCheck\iBemsDataService\bin\Common.Logging.Core.dll
+C:\Users\hdc-icontrols6\Desktop\UserCheck\iBemsDataService\bin\Common.Logging.dll
+C:\Users\hdc-icontrols6\Desktop\UserCheck\iBemsDataService\bin\EntityFramework.dll
+C:\Users\hdc-icontrols6\Desktop\UserCheck\iBemsDataService\bin\Microsoft.Data.Edm.dll
+C:\Users\hdc-icontrols6\Desktop\UserCheck\iBemsDataService\bin\Microsoft.Data.OData.dll
+C:\Users\hdc-icontrols6\Desktop\UserCheck\iBemsDataService\bin\Microsoft.Data.Services.Client.dll
+C:\Users\hdc-icontrols6\Desktop\UserCheck\iBemsDataService\bin\Microsoft.Data.Services.dll
+C:\Users\hdc-icontrols6\Desktop\UserCheck\iBemsDataService\bin\Newtonsoft.Json.dll
+C:\Users\hdc-icontrols6\Desktop\UserCheck\iBemsDataService\bin\Quartz.dll
+C:\Users\hdc-icontrols6\Desktop\UserCheck\iBemsDataService\bin\System.Net.Http.Formatting.dll
+C:\Users\hdc-icontrols6\Desktop\UserCheck\iBemsDataService\bin\System.Spatial.dll
+C:\Users\hdc-icontrols6\Desktop\UserCheck\iBemsDataService\bin\System.Web.Http.dll
+C:\Users\hdc-icontrols6\Desktop\UserCheck\iBemsDataService\bin\System.Web.Http.OData.dll
+C:\Users\hdc-icontrols6\Desktop\UserCheck\iBemsDataService\bin\System.Web.Http.WebHost.dll
+C:\Users\hdc-icontrols6\Desktop\UserCheck\iBemsDataService\bin\Common.Logging.xml
+C:\Users\hdc-icontrols6\Desktop\UserCheck\iBemsDataService\bin\Common.Logging.Core.xml
+C:\Users\hdc-icontrols6\Desktop\UserCheck\iBemsDataService\bin\EntityFramework.xml
+C:\Users\hdc-icontrols6\Desktop\UserCheck\iBemsDataService\bin\Microsoft.Data.Edm.xml
+C:\Users\hdc-icontrols6\Desktop\UserCheck\iBemsDataService\bin\Microsoft.Data.OData.xml
+C:\Users\hdc-icontrols6\Desktop\UserCheck\iBemsDataService\bin\Microsoft.Data.Services.xml
+C:\Users\hdc-icontrols6\Desktop\UserCheck\iBemsDataService\bin\Microsoft.Data.Services.Client.xml
+C:\Users\hdc-icontrols6\Desktop\UserCheck\iBemsDataService\bin\Newtonsoft.Json.xml
+C:\Users\hdc-icontrols6\Desktop\UserCheck\iBemsDataService\bin\Quartz.xml
+C:\Users\hdc-icontrols6\Desktop\UserCheck\iBemsDataService\bin\System.Net.Http.Formatting.xml
+C:\Users\hdc-icontrols6\Desktop\UserCheck\iBemsDataService\bin\System.Spatial.xml
+C:\Users\hdc-icontrols6\Desktop\UserCheck\iBemsDataService\bin\System.Web.Http.xml
+C:\Users\hdc-icontrols6\Desktop\UserCheck\iBemsDataService\bin\System.Web.Http.OData.xml
+C:\Users\hdc-icontrols6\Desktop\UserCheck\iBemsDataService\bin\System.Web.Http.WebHost.xml
+C:\Users\hdc-icontrols6\Desktop\UserCheck\iBemsDataService\bin\ko\EntityFramework.resources.dll
+C:\Users\hdc-icontrols6\Desktop\UserCheck\iBemsDataService\bin\de\Microsoft.Data.Edm.resources.dll
+C:\Users\hdc-icontrols6\Desktop\UserCheck\iBemsDataService\bin\es\Microsoft.Data.Edm.resources.dll
+C:\Users\hdc-icontrols6\Desktop\UserCheck\iBemsDataService\bin\fr\Microsoft.Data.Edm.resources.dll
+C:\Users\hdc-icontrols6\Desktop\UserCheck\iBemsDataService\bin\it\Microsoft.Data.Edm.resources.dll
+C:\Users\hdc-icontrols6\Desktop\UserCheck\iBemsDataService\bin\ja\Microsoft.Data.Edm.resources.dll
+C:\Users\hdc-icontrols6\Desktop\UserCheck\iBemsDataService\bin\ko\Microsoft.Data.Edm.resources.dll
+C:\Users\hdc-icontrols6\Desktop\UserCheck\iBemsDataService\bin\ru\Microsoft.Data.Edm.resources.dll
+C:\Users\hdc-icontrols6\Desktop\UserCheck\iBemsDataService\bin\zh-Hans\Microsoft.Data.Edm.resources.dll
+C:\Users\hdc-icontrols6\Desktop\UserCheck\iBemsDataService\bin\zh-Hant\Microsoft.Data.Edm.resources.dll
+C:\Users\hdc-icontrols6\Desktop\UserCheck\iBemsDataService\bin\de\Microsoft.Data.OData.resources.dll
+C:\Users\hdc-icontrols6\Desktop\UserCheck\iBemsDataService\bin\es\Microsoft.Data.OData.resources.dll
+C:\Users\hdc-icontrols6\Desktop\UserCheck\iBemsDataService\bin\fr\Microsoft.Data.OData.resources.dll
+C:\Users\hdc-icontrols6\Desktop\UserCheck\iBemsDataService\bin\it\Microsoft.Data.OData.resources.dll
+C:\Users\hdc-icontrols6\Desktop\UserCheck\iBemsDataService\bin\ja\Microsoft.Data.OData.resources.dll
+C:\Users\hdc-icontrols6\Desktop\UserCheck\iBemsDataService\bin\ko\Microsoft.Data.OData.resources.dll
+C:\Users\hdc-icontrols6\Desktop\UserCheck\iBemsDataService\bin\ru\Microsoft.Data.OData.resources.dll
+C:\Users\hdc-icontrols6\Desktop\UserCheck\iBemsDataService\bin\zh-Hans\Microsoft.Data.OData.resources.dll
+C:\Users\hdc-icontrols6\Desktop\UserCheck\iBemsDataService\bin\zh-Hant\Microsoft.Data.OData.resources.dll
+C:\Users\hdc-icontrols6\Desktop\UserCheck\iBemsDataService\bin\de\Microsoft.Data.Services.resources.dll
+C:\Users\hdc-icontrols6\Desktop\UserCheck\iBemsDataService\bin\es\Microsoft.Data.Services.resources.dll
+C:\Users\hdc-icontrols6\Desktop\UserCheck\iBemsDataService\bin\fr\Microsoft.Data.Services.resources.dll
+C:\Users\hdc-icontrols6\Desktop\UserCheck\iBemsDataService\bin\it\Microsoft.Data.Services.resources.dll
+C:\Users\hdc-icontrols6\Desktop\UserCheck\iBemsDataService\bin\ja\Microsoft.Data.Services.resources.dll
+C:\Users\hdc-icontrols6\Desktop\UserCheck\iBemsDataService\bin\ko\Microsoft.Data.Services.resources.dll
+C:\Users\hdc-icontrols6\Desktop\UserCheck\iBemsDataService\bin\ru\Microsoft.Data.Services.resources.dll
+C:\Users\hdc-icontrols6\Desktop\UserCheck\iBemsDataService\bin\zh-Hans\Microsoft.Data.Services.resources.dll
+C:\Users\hdc-icontrols6\Desktop\UserCheck\iBemsDataService\bin\zh-Hant\Microsoft.Data.Services.resources.dll
+C:\Users\hdc-icontrols6\Desktop\UserCheck\iBemsDataService\bin\de\Microsoft.Data.Services.Client.resources.dll
+C:\Users\hdc-icontrols6\Desktop\UserCheck\iBemsDataService\bin\es\Microsoft.Data.Services.Client.resources.dll
+C:\Users\hdc-icontrols6\Desktop\UserCheck\iBemsDataService\bin\fr\Microsoft.Data.Services.Client.resources.dll
+C:\Users\hdc-icontrols6\Desktop\UserCheck\iBemsDataService\bin\it\Microsoft.Data.Services.Client.resources.dll
+C:\Users\hdc-icontrols6\Desktop\UserCheck\iBemsDataService\bin\ja\Microsoft.Data.Services.Client.resources.dll
+C:\Users\hdc-icontrols6\Desktop\UserCheck\iBemsDataService\bin\ko\Microsoft.Data.Services.Client.resources.dll
+C:\Users\hdc-icontrols6\Desktop\UserCheck\iBemsDataService\bin\ru\Microsoft.Data.Services.Client.resources.dll
+C:\Users\hdc-icontrols6\Desktop\UserCheck\iBemsDataService\bin\zh-Hans\Microsoft.Data.Services.Client.resources.dll
+C:\Users\hdc-icontrols6\Desktop\UserCheck\iBemsDataService\bin\zh-Hant\Microsoft.Data.Services.Client.resources.dll
+C:\Users\hdc-icontrols6\Desktop\UserCheck\iBemsDataService\bin\de\System.Spatial.resources.dll
+C:\Users\hdc-icontrols6\Desktop\UserCheck\iBemsDataService\bin\es\System.Spatial.resources.dll
+C:\Users\hdc-icontrols6\Desktop\UserCheck\iBemsDataService\bin\fr\System.Spatial.resources.dll
+C:\Users\hdc-icontrols6\Desktop\UserCheck\iBemsDataService\bin\it\System.Spatial.resources.dll
+C:\Users\hdc-icontrols6\Desktop\UserCheck\iBemsDataService\bin\ja\System.Spatial.resources.dll
+C:\Users\hdc-icontrols6\Desktop\UserCheck\iBemsDataService\bin\ko\System.Spatial.resources.dll
+C:\Users\hdc-icontrols6\Desktop\UserCheck\iBemsDataService\bin\ru\System.Spatial.resources.dll
+C:\Users\hdc-icontrols6\Desktop\UserCheck\iBemsDataService\bin\zh-Hans\System.Spatial.resources.dll
+C:\Users\hdc-icontrols6\Desktop\UserCheck\iBemsDataService\bin\zh-Hant\System.Spatial.resources.dll
+C:\Users\hdc-icontrols6\Desktop\UserCheck\iBemsDataService\obj\Debug\iBemsDataService.csprojResolveAssemblyReference.cache
+C:\Users\hdc-icontrols6\Desktop\UserCheck\iBemsDataService\obj\Debug\iBemsDataService.Report.MonthlyReport.resources
+C:\Users\hdc-icontrols6\Desktop\UserCheck\iBemsDataService\obj\Debug\iBemsDataService.Report.DailyReport.resources
+C:\Users\hdc-icontrols6\Desktop\UserCheck\iBemsDataService\obj\Debug\iBemsDataService.Report.PatrolReport.resources
+C:\Users\hdc-icontrols6\Desktop\UserCheck\iBemsDataService\obj\Debug\iBemsDataService.Report.XtraReport1.resources
+C:\Users\hdc-icontrols6\Desktop\UserCheck\iBemsDataService\obj\Debug\iBemsDataService.csproj.GenerateResource.Cache
+C:\Users\hdc-icontrols6\Desktop\UserCheck\iBemsDataService\obj\Debug\iBemsDataService.dll.licenses
+C:\Users\hdc-icontrols6\Desktop\UserCheck\iBemsDataService\obj\Debug\iBemsDataService.dll
+C:\Users\hdc-icontrols6\Desktop\UserCheck\iBemsDataService\obj\Debug\iBemsDataService.pdb
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\iBemsDataService.dll.config
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\iBemsDataService.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\iBemsDataService.pdb
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\Common.Logging.Core.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\Common.Logging.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\DevExpress.Charts.v15.1.Core.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\DevExpress.Data.v15.1.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\DevExpress.DataAccess.v15.1.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\DevExpress.Office.v15.1.Core.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\DevExpress.PivotGrid.v15.1.Core.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\DevExpress.Printing.v15.1.Core.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\DevExpress.RichEdit.v15.1.Core.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\DevExpress.Sparkline.v15.1.Core.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\DevExpress.Utils.v15.1.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\DevExpress.Web.ASPxThemes.v15.1.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\DevExpress.Web.v15.1.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\DevExpress.Xpf.Printing.v15.1.Service.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\DevExpress.Xpo.v15.1.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\DevExpress.XtraCharts.v15.1.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\DevExpress.XtraGauges.v15.1.Core.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\DevExpress.XtraPrinting.v15.1.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\DevExpress.XtraReports.v15.1.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\DevExpress.XtraReports.v15.1.Extensions.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\DevExpress.XtraReports.v15.1.Service.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\DevExpress.XtraReports.v15.1.Web.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\EntityFramework.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\Microsoft.Data.Edm.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\Microsoft.Data.OData.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\Microsoft.Data.Services.Client.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\Microsoft.Data.Services.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\Newtonsoft.Json.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\Quartz.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\System.Net.Http.Formatting.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\System.Spatial.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\System.Web.Http.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\System.Web.Http.OData.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\System.Web.Http.WebHost.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\DevExpress.XtraEditors.v15.1.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\DevExpress.XtraBars.v15.1.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\DevExpress.XtraTreeList.v15.1.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\DevExpress.XtraLayout.v15.1.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\DevExpress.Utils.v15.1.UI.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\DevExpress.XtraRichEdit.v15.1.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\DevExpress.XtraCharts.v15.1.Extensions.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\DevExpress.XtraPivotGrid.v15.1.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\DevExpress.XtraNavBar.v15.1.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\DevExpress.CodeParser.v15.1.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\DevExpress.DataAccess.v15.1.UI.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\DevExpress.XtraVerticalGrid.v15.1.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\DevExpress.XtraCharts.v15.1.Wizard.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\DevExpress.XtraGrid.v15.1.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\Common.Logging.xml
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\Common.Logging.Core.xml
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\DevExpress.Data.v15.1.xml
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\DevExpress.DataAccess.v15.1.xml
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\DevExpress.Office.v15.1.Core.xml
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\DevExpress.PivotGrid.v15.1.Core.xml
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\DevExpress.Printing.v15.1.Core.xml
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\DevExpress.RichEdit.v15.1.Core.xml
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\DevExpress.Sparkline.v15.1.Core.xml
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\DevExpress.Utils.v15.1.xml
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\DevExpress.Web.v15.1.xml
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\DevExpress.Xpf.Printing.v15.1.Service.xml
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\DevExpress.Xpo.v15.1.xml
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\DevExpress.XtraCharts.v15.1.xml
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\DevExpress.XtraGauges.v15.1.Core.xml
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\DevExpress.XtraPrinting.v15.1.xml
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\DevExpress.XtraReports.v15.1.xml
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\DevExpress.XtraReports.v15.1.Extensions.xml
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\DevExpress.XtraReports.v15.1.Service.xml
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\DevExpress.XtraReports.v15.1.Web.xml
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\EntityFramework.xml
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\Microsoft.Data.Edm.xml
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\Microsoft.Data.OData.xml
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\Microsoft.Data.Services.xml
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\Microsoft.Data.Services.Client.xml
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\Newtonsoft.Json.xml
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\Quartz.xml
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\System.Net.Http.Formatting.xml
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\System.Spatial.xml
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\System.Web.Http.xml
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\System.Web.Http.OData.xml
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\System.Web.Http.WebHost.xml
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\DevExpress.XtraEditors.v15.1.xml
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\DevExpress.XtraBars.v15.1.xml
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\DevExpress.XtraTreeList.v15.1.xml
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\DevExpress.XtraLayout.v15.1.xml
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\DevExpress.Utils.v15.1.UI.xml
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\DevExpress.XtraRichEdit.v15.1.xml
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\DevExpress.XtraPivotGrid.v15.1.xml
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\DevExpress.XtraNavBar.v15.1.xml
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\DevExpress.DataAccess.v15.1.UI.xml
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\DevExpress.XtraVerticalGrid.v15.1.xml
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\DevExpress.XtraCharts.v15.1.Wizard.xml
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\DevExpress.XtraGrid.v15.1.xml
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\de\DevExpress.Data.v15.1.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\es\DevExpress.Data.v15.1.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\ja\DevExpress.Data.v15.1.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\ru\DevExpress.Data.v15.1.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\de\DevExpress.DataAccess.v15.1.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\es\DevExpress.DataAccess.v15.1.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\ja\DevExpress.DataAccess.v15.1.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\ru\DevExpress.DataAccess.v15.1.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\de\DevExpress.Office.v15.1.Core.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\es\DevExpress.Office.v15.1.Core.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\ja\DevExpress.Office.v15.1.Core.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\ru\DevExpress.Office.v15.1.Core.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\de\DevExpress.PivotGrid.v15.1.Core.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\es\DevExpress.PivotGrid.v15.1.Core.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\ja\DevExpress.PivotGrid.v15.1.Core.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\ru\DevExpress.PivotGrid.v15.1.Core.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\de\DevExpress.Printing.v15.1.Core.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\es\DevExpress.Printing.v15.1.Core.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\ja\DevExpress.Printing.v15.1.Core.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\ru\DevExpress.Printing.v15.1.Core.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\de\DevExpress.RichEdit.v15.1.Core.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\es\DevExpress.RichEdit.v15.1.Core.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\ja\DevExpress.RichEdit.v15.1.Core.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\ru\DevExpress.RichEdit.v15.1.Core.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\de\DevExpress.Sparkline.v15.1.Core.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\es\DevExpress.Sparkline.v15.1.Core.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\ja\DevExpress.Sparkline.v15.1.Core.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\ru\DevExpress.Sparkline.v15.1.Core.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\de\DevExpress.Utils.v15.1.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\es\DevExpress.Utils.v15.1.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\ja\DevExpress.Utils.v15.1.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\ru\DevExpress.Utils.v15.1.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\de\DevExpress.Web.v15.1.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\es\DevExpress.Web.v15.1.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\ja\DevExpress.Web.v15.1.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\ru\DevExpress.Web.v15.1.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\de\DevExpress.Xpo.v15.1.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\es\DevExpress.Xpo.v15.1.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\ja\DevExpress.Xpo.v15.1.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\ru\DevExpress.Xpo.v15.1.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\de\DevExpress.XtraCharts.v15.1.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\es\DevExpress.XtraCharts.v15.1.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\ja\DevExpress.XtraCharts.v15.1.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\ru\DevExpress.XtraCharts.v15.1.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\de\DevExpress.XtraGauges.v15.1.Core.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\es\DevExpress.XtraGauges.v15.1.Core.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\ja\DevExpress.XtraGauges.v15.1.Core.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\ru\DevExpress.XtraGauges.v15.1.Core.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\de\DevExpress.XtraPrinting.v15.1.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\es\DevExpress.XtraPrinting.v15.1.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\ja\DevExpress.XtraPrinting.v15.1.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\ru\DevExpress.XtraPrinting.v15.1.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\de\DevExpress.XtraReports.v15.1.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\es\DevExpress.XtraReports.v15.1.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\ja\DevExpress.XtraReports.v15.1.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\ru\DevExpress.XtraReports.v15.1.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\de\DevExpress.XtraReports.v15.1.Extensions.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\es\DevExpress.XtraReports.v15.1.Extensions.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\ja\DevExpress.XtraReports.v15.1.Extensions.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\ru\DevExpress.XtraReports.v15.1.Extensions.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\de\DevExpress.XtraReports.v15.1.Web.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\es\DevExpress.XtraReports.v15.1.Web.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\ja\DevExpress.XtraReports.v15.1.Web.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\ru\DevExpress.XtraReports.v15.1.Web.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\ko\EntityFramework.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\de\Microsoft.Data.Edm.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\es\Microsoft.Data.Edm.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\fr\Microsoft.Data.Edm.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\it\Microsoft.Data.Edm.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\ja\Microsoft.Data.Edm.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\ko\Microsoft.Data.Edm.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\ru\Microsoft.Data.Edm.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\zh-Hans\Microsoft.Data.Edm.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\zh-Hant\Microsoft.Data.Edm.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\de\Microsoft.Data.OData.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\es\Microsoft.Data.OData.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\fr\Microsoft.Data.OData.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\it\Microsoft.Data.OData.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\ja\Microsoft.Data.OData.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\ko\Microsoft.Data.OData.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\ru\Microsoft.Data.OData.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\zh-Hans\Microsoft.Data.OData.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\zh-Hant\Microsoft.Data.OData.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\de\Microsoft.Data.Services.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\es\Microsoft.Data.Services.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\fr\Microsoft.Data.Services.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\it\Microsoft.Data.Services.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\ja\Microsoft.Data.Services.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\ko\Microsoft.Data.Services.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\ru\Microsoft.Data.Services.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\zh-Hans\Microsoft.Data.Services.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\zh-Hant\Microsoft.Data.Services.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\de\Microsoft.Data.Services.Client.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\es\Microsoft.Data.Services.Client.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\fr\Microsoft.Data.Services.Client.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\it\Microsoft.Data.Services.Client.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\ja\Microsoft.Data.Services.Client.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\ko\Microsoft.Data.Services.Client.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\ru\Microsoft.Data.Services.Client.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\zh-Hans\Microsoft.Data.Services.Client.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\zh-Hant\Microsoft.Data.Services.Client.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\de\System.Spatial.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\es\System.Spatial.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\fr\System.Spatial.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\it\System.Spatial.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\ja\System.Spatial.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\ko\System.Spatial.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\ru\System.Spatial.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\zh-Hans\System.Spatial.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\zh-Hant\System.Spatial.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\de\DevExpress.XtraEditors.v15.1.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\es\DevExpress.XtraEditors.v15.1.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\ja\DevExpress.XtraEditors.v15.1.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\ru\DevExpress.XtraEditors.v15.1.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\de\DevExpress.XtraBars.v15.1.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\es\DevExpress.XtraBars.v15.1.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\ja\DevExpress.XtraBars.v15.1.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\ru\DevExpress.XtraBars.v15.1.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\de\DevExpress.XtraTreeList.v15.1.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\es\DevExpress.XtraTreeList.v15.1.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\ja\DevExpress.XtraTreeList.v15.1.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\ru\DevExpress.XtraTreeList.v15.1.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\de\DevExpress.XtraLayout.v15.1.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\es\DevExpress.XtraLayout.v15.1.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\ja\DevExpress.XtraLayout.v15.1.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\ru\DevExpress.XtraLayout.v15.1.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\de\DevExpress.Utils.v15.1.UI.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\es\DevExpress.Utils.v15.1.UI.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\ja\DevExpress.Utils.v15.1.UI.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\ru\DevExpress.Utils.v15.1.UI.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\de\DevExpress.XtraRichEdit.v15.1.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\es\DevExpress.XtraRichEdit.v15.1.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\ja\DevExpress.XtraRichEdit.v15.1.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\ru\DevExpress.XtraRichEdit.v15.1.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\de\DevExpress.XtraPivotGrid.v15.1.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\es\DevExpress.XtraPivotGrid.v15.1.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\ja\DevExpress.XtraPivotGrid.v15.1.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\ru\DevExpress.XtraPivotGrid.v15.1.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\de\DevExpress.XtraNavBar.v15.1.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\es\DevExpress.XtraNavBar.v15.1.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\ja\DevExpress.XtraNavBar.v15.1.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\ru\DevExpress.XtraNavBar.v15.1.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\de\DevExpress.DataAccess.v15.1.UI.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\es\DevExpress.DataAccess.v15.1.UI.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\ja\DevExpress.DataAccess.v15.1.UI.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\ru\DevExpress.DataAccess.v15.1.UI.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\de\DevExpress.XtraVerticalGrid.v15.1.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\es\DevExpress.XtraVerticalGrid.v15.1.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\ja\DevExpress.XtraVerticalGrid.v15.1.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\ru\DevExpress.XtraVerticalGrid.v15.1.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\de\DevExpress.XtraCharts.v15.1.Wizard.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\es\DevExpress.XtraCharts.v15.1.Wizard.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\ja\DevExpress.XtraCharts.v15.1.Wizard.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\ru\DevExpress.XtraCharts.v15.1.Wizard.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\de\DevExpress.XtraGrid.v15.1.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\es\DevExpress.XtraGrid.v15.1.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\ja\DevExpress.XtraGrid.v15.1.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\bin\ru\DevExpress.XtraGrid.v15.1.resources.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\obj\Debug\iBemsDataService.Report.MonthlyReport.resources
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\obj\Debug\iBemsDataService.Report.DailyReport.resources
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\obj\Debug\iBemsDataService.Report.PatrolReport.resources
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\obj\Debug\iBemsDataService.Report.XtraReport1.resources
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\obj\Debug\iBemsDataService.csproj.GenerateResource.Cache
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\obj\Debug\iBemsDataService.dll.licenses
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\obj\Debug\iBemsDataService.dll
+D:\1. BEMS\BEMS 소스\2019_12_04_BEMS\iBemsDataService\obj\Debug\iBemsDataService.pdb
+D:\Development\새 폴더\iBemsDataService\bin\iBemsDataService.dll.config
+D:\Development\새 폴더\iBemsDataService\bin\iBemsDataService.dll
+D:\Development\새 폴더\iBemsDataService\bin\iBemsDataService.pdb
+D:\Development\새 폴더\iBemsDataService\bin\Common.Logging.Core.dll
+D:\Development\새 폴더\iBemsDataService\bin\Common.Logging.dll
+D:\Development\새 폴더\iBemsDataService\bin\EntityFramework.dll
+D:\Development\새 폴더\iBemsDataService\bin\Microsoft.Data.Edm.dll
+D:\Development\새 폴더\iBemsDataService\bin\Microsoft.Data.OData.dll
+D:\Development\새 폴더\iBemsDataService\bin\Microsoft.Data.Services.Client.dll
+D:\Development\새 폴더\iBemsDataService\bin\Microsoft.Data.Services.dll
+D:\Development\새 폴더\iBemsDataService\bin\Newtonsoft.Json.dll
+D:\Development\새 폴더\iBemsDataService\bin\Quartz.dll
+D:\Development\새 폴더\iBemsDataService\bin\System.Net.Http.Formatting.dll
+D:\Development\새 폴더\iBemsDataService\bin\System.Spatial.dll
+D:\Development\새 폴더\iBemsDataService\bin\System.Web.Http.dll
+D:\Development\새 폴더\iBemsDataService\bin\System.Web.Http.OData.dll
+D:\Development\새 폴더\iBemsDataService\bin\System.Web.Http.WebHost.dll
+D:\Development\새 폴더\iBemsDataService\bin\Common.Logging.xml
+D:\Development\새 폴더\iBemsDataService\bin\Common.Logging.Core.xml
+D:\Development\새 폴더\iBemsDataService\bin\EntityFramework.xml
+D:\Development\새 폴더\iBemsDataService\bin\Microsoft.Data.Edm.xml
+D:\Development\새 폴더\iBemsDataService\bin\Microsoft.Data.OData.xml
+D:\Development\새 폴더\iBemsDataService\bin\Microsoft.Data.Services.xml
+D:\Development\새 폴더\iBemsDataService\bin\Microsoft.Data.Services.Client.xml
+D:\Development\새 폴더\iBemsDataService\bin\Newtonsoft.Json.xml
+D:\Development\새 폴더\iBemsDataService\bin\Quartz.xml
+D:\Development\새 폴더\iBemsDataService\bin\System.Net.Http.Formatting.xml
+D:\Development\새 폴더\iBemsDataService\bin\System.Spatial.xml
+D:\Development\새 폴더\iBemsDataService\bin\System.Web.Http.xml
+D:\Development\새 폴더\iBemsDataService\bin\System.Web.Http.OData.xml
+D:\Development\새 폴더\iBemsDataService\bin\System.Web.Http.WebHost.xml
+D:\Development\새 폴더\iBemsDataService\bin\ko\EntityFramework.resources.dll
+D:\Development\새 폴더\iBemsDataService\bin\de\Microsoft.Data.Edm.resources.dll
+D:\Development\새 폴더\iBemsDataService\bin\es\Microsoft.Data.Edm.resources.dll
+D:\Development\새 폴더\iBemsDataService\bin\fr\Microsoft.Data.Edm.resources.dll
+D:\Development\새 폴더\iBemsDataService\bin\it\Microsoft.Data.Edm.resources.dll
+D:\Development\새 폴더\iBemsDataService\bin\ja\Microsoft.Data.Edm.resources.dll
+D:\Development\새 폴더\iBemsDataService\bin\ko\Microsoft.Data.Edm.resources.dll
+D:\Development\새 폴더\iBemsDataService\bin\ru\Microsoft.Data.Edm.resources.dll
+D:\Development\새 폴더\iBemsDataService\bin\zh-Hans\Microsoft.Data.Edm.resources.dll
+D:\Development\새 폴더\iBemsDataService\bin\zh-Hant\Microsoft.Data.Edm.resources.dll
+D:\Development\새 폴더\iBemsDataService\bin\de\Microsoft.Data.OData.resources.dll
+D:\Development\새 폴더\iBemsDataService\bin\es\Microsoft.Data.OData.resources.dll
+D:\Development\새 폴더\iBemsDataService\bin\fr\Microsoft.Data.OData.resources.dll
+D:\Development\새 폴더\iBemsDataService\bin\it\Microsoft.Data.OData.resources.dll
+D:\Development\새 폴더\iBemsDataService\bin\ja\Microsoft.Data.OData.resources.dll
+D:\Development\새 폴더\iBemsDataService\bin\ko\Microsoft.Data.OData.resources.dll
+D:\Development\새 폴더\iBemsDataService\bin\ru\Microsoft.Data.OData.resources.dll
+D:\Development\새 폴더\iBemsDataService\bin\zh-Hans\Microsoft.Data.OData.resources.dll
+D:\Development\새 폴더\iBemsDataService\bin\zh-Hant\Microsoft.Data.OData.resources.dll
+D:\Development\새 폴더\iBemsDataService\bin\de\Microsoft.Data.Services.resources.dll
+D:\Development\새 폴더\iBemsDataService\bin\es\Microsoft.Data.Services.resources.dll
+D:\Development\새 폴더\iBemsDataService\bin\fr\Microsoft.Data.Services.resources.dll
+D:\Development\새 폴더\iBemsDataService\bin\it\Microsoft.Data.Services.resources.dll
+D:\Development\새 폴더\iBemsDataService\bin\ja\Microsoft.Data.Services.resources.dll
+D:\Development\새 폴더\iBemsDataService\bin\ko\Microsoft.Data.Services.resources.dll
+D:\Development\새 폴더\iBemsDataService\bin\ru\Microsoft.Data.Services.resources.dll
+D:\Development\새 폴더\iBemsDataService\bin\zh-Hans\Microsoft.Data.Services.resources.dll
+D:\Development\새 폴더\iBemsDataService\bin\zh-Hant\Microsoft.Data.Services.resources.dll
+D:\Development\새 폴더\iBemsDataService\bin\de\Microsoft.Data.Services.Client.resources.dll
+D:\Development\새 폴더\iBemsDataService\bin\es\Microsoft.Data.Services.Client.resources.dll
+D:\Development\새 폴더\iBemsDataService\bin\fr\Microsoft.Data.Services.Client.resources.dll
+D:\Development\새 폴더\iBemsDataService\bin\it\Microsoft.Data.Services.Client.resources.dll
+D:\Development\새 폴더\iBemsDataService\bin\ja\Microsoft.Data.Services.Client.resources.dll
+D:\Development\새 폴더\iBemsDataService\bin\ko\Microsoft.Data.Services.Client.resources.dll
+D:\Development\새 폴더\iBemsDataService\bin\ru\Microsoft.Data.Services.Client.resources.dll
+D:\Development\새 폴더\iBemsDataService\bin\zh-Hans\Microsoft.Data.Services.Client.resources.dll
+D:\Development\새 폴더\iBemsDataService\bin\zh-Hant\Microsoft.Data.Services.Client.resources.dll
+D:\Development\새 폴더\iBemsDataService\bin\de\System.Spatial.resources.dll
+D:\Development\새 폴더\iBemsDataService\bin\es\System.Spatial.resources.dll
+D:\Development\새 폴더\iBemsDataService\bin\fr\System.Spatial.resources.dll
+D:\Development\새 폴더\iBemsDataService\bin\it\System.Spatial.resources.dll
+D:\Development\새 폴더\iBemsDataService\bin\ja\System.Spatial.resources.dll
+D:\Development\새 폴더\iBemsDataService\bin\ko\System.Spatial.resources.dll
+D:\Development\새 폴더\iBemsDataService\bin\ru\System.Spatial.resources.dll
+D:\Development\새 폴더\iBemsDataService\bin\zh-Hans\System.Spatial.resources.dll
+D:\Development\새 폴더\iBemsDataService\bin\zh-Hant\System.Spatial.resources.dll
+D:\Development\새 폴더\iBemsDataService\obj\Debug\iBemsDataService.Report.MonthlyReport.resources
+D:\Development\새 폴더\iBemsDataService\obj\Debug\iBemsDataService.Report.DailyReport.resources
+D:\Development\새 폴더\iBemsDataService\obj\Debug\iBemsDataService.Report.PatrolReport.resources
+D:\Development\새 폴더\iBemsDataService\obj\Debug\iBemsDataService.Report.XtraReport1.resources
+D:\Development\새 폴더\iBemsDataService\obj\Debug\iBemsDataService.csproj.GenerateResource.Cache
+D:\Development\새 폴더\iBemsDataService\obj\Debug\iBemsDataService.dll.licenses
+D:\Development\새 폴더\iBemsDataService\obj\Debug\iBemsDataService.dll
+D:\Development\새 폴더\iBemsDataService\obj\Debug\iBemsDataService.pdb
+D:\Development\200504_LoadForecastingPage\iBemsDataService\bin\iBemsDataService.dll.config
+D:\Development\200504_LoadForecastingPage\iBemsDataService\bin\iBemsDataService.dll
+D:\Development\200504_LoadForecastingPage\iBemsDataService\bin\iBemsDataService.pdb
+D:\Development\200504_LoadForecastingPage\iBemsDataService\bin\Common.Logging.Core.dll
+D:\Development\200504_LoadForecastingPage\iBemsDataService\bin\Common.Logging.dll
+D:\Development\200504_LoadForecastingPage\iBemsDataService\bin\EntityFramework.dll
+D:\Development\200504_LoadForecastingPage\iBemsDataService\bin\Microsoft.Data.Edm.dll
+D:\Development\200504_LoadForecastingPage\iBemsDataService\bin\Microsoft.Data.OData.dll
+D:\Development\200504_LoadForecastingPage\iBemsDataService\bin\Microsoft.Data.Services.Client.dll
+D:\Development\200504_LoadForecastingPage\iBemsDataService\bin\Microsoft.Data.Services.dll
+D:\Development\200504_LoadForecastingPage\iBemsDataService\bin\Newtonsoft.Json.dll
+D:\Development\200504_LoadForecastingPage\iBemsDataService\bin\Quartz.dll
+D:\Development\200504_LoadForecastingPage\iBemsDataService\bin\System.Net.Http.Formatting.dll
+D:\Development\200504_LoadForecastingPage\iBemsDataService\bin\System.Spatial.dll
+D:\Development\200504_LoadForecastingPage\iBemsDataService\bin\System.Web.Http.dll
+D:\Development\200504_LoadForecastingPage\iBemsDataService\bin\System.Web.Http.OData.dll
+D:\Development\200504_LoadForecastingPage\iBemsDataService\bin\System.Web.Http.WebHost.dll
+D:\Development\200504_LoadForecastingPage\iBemsDataService\bin\Common.Logging.xml
+D:\Development\200504_LoadForecastingPage\iBemsDataService\bin\Common.Logging.Core.xml
+D:\Development\200504_LoadForecastingPage\iBemsDataService\bin\EntityFramework.xml
+D:\Development\200504_LoadForecastingPage\iBemsDataService\bin\Microsoft.Data.Edm.xml
+D:\Development\200504_LoadForecastingPage\iBemsDataService\bin\Microsoft.Data.OData.xml
+D:\Development\200504_LoadForecastingPage\iBemsDataService\bin\Microsoft.Data.Services.xml
+D:\Development\200504_LoadForecastingPage\iBemsDataService\bin\Microsoft.Data.Services.Client.xml
+D:\Development\200504_LoadForecastingPage\iBemsDataService\bin\Newtonsoft.Json.xml
+D:\Development\200504_LoadForecastingPage\iBemsDataService\bin\Quartz.xml
+D:\Development\200504_LoadForecastingPage\iBemsDataService\bin\System.Net.Http.Formatting.xml
+D:\Development\200504_LoadForecastingPage\iBemsDataService\bin\System.Spatial.xml
+D:\Development\200504_LoadForecastingPage\iBemsDataService\bin\System.Web.Http.xml
+D:\Development\200504_LoadForecastingPage\iBemsDataService\bin\System.Web.Http.OData.xml
+D:\Development\200504_LoadForecastingPage\iBemsDataService\bin\System.Web.Http.WebHost.xml
+D:\Development\200504_LoadForecastingPage\iBemsDataService\bin\ko\EntityFramework.resources.dll
+D:\Development\200504_LoadForecastingPage\iBemsDataService\bin\de\Microsoft.Data.Edm.resources.dll
+D:\Development\200504_LoadForecastingPage\iBemsDataService\bin\es\Microsoft.Data.Edm.resources.dll
+D:\Development\200504_LoadForecastingPage\iBemsDataService\bin\fr\Microsoft.Data.Edm.resources.dll
+D:\Development\200504_LoadForecastingPage\iBemsDataService\bin\it\Microsoft.Data.Edm.resources.dll
+D:\Development\200504_LoadForecastingPage\iBemsDataService\bin\ja\Microsoft.Data.Edm.resources.dll
+D:\Development\200504_LoadForecastingPage\iBemsDataService\bin\ko\Microsoft.Data.Edm.resources.dll
+D:\Development\200504_LoadForecastingPage\iBemsDataService\bin\ru\Microsoft.Data.Edm.resources.dll
+D:\Development\200504_LoadForecastingPage\iBemsDataService\bin\zh-Hans\Microsoft.Data.Edm.resources.dll
+D:\Development\200504_LoadForecastingPage\iBemsDataService\bin\zh-Hant\Microsoft.Data.Edm.resources.dll
+D:\Development\200504_LoadForecastingPage\iBemsDataService\bin\de\Microsoft.Data.OData.resources.dll
+D:\Development\200504_LoadForecastingPage\iBemsDataService\bin\es\Microsoft.Data.OData.resources.dll
+D:\Development\200504_LoadForecastingPage\iBemsDataService\bin\fr\Microsoft.Data.OData.resources.dll
+D:\Development\200504_LoadForecastingPage\iBemsDataService\bin\it\Microsoft.Data.OData.resources.dll
+D:\Development\200504_LoadForecastingPage\iBemsDataService\bin\ja\Microsoft.Data.OData.resources.dll
+D:\Development\200504_LoadForecastingPage\iBemsDataService\bin\ko\Microsoft.Data.OData.resources.dll
+D:\Development\200504_LoadForecastingPage\iBemsDataService\bin\ru\Microsoft.Data.OData.resources.dll
+D:\Development\200504_LoadForecastingPage\iBemsDataService\bin\zh-Hans\Microsoft.Data.OData.resources.dll
+D:\Development\200504_LoadForecastingPage\iBemsDataService\bin\zh-Hant\Microsoft.Data.OData.resources.dll
+D:\Development\200504_LoadForecastingPage\iBemsDataService\bin\de\Microsoft.Data.Services.resources.dll
+D:\Development\200504_LoadForecastingPage\iBemsDataService\bin\es\Microsoft.Data.Services.resources.dll
+D:\Development\200504_LoadForecastingPage\iBemsDataService\bin\fr\Microsoft.Data.Services.resources.dll
+D:\Development\200504_LoadForecastingPage\iBemsDataService\bin\it\Microsoft.Data.Services.resources.dll
+D:\Development\200504_LoadForecastingPage\iBemsDataService\bin\ja\Microsoft.Data.Services.resources.dll
+D:\Development\200504_LoadForecastingPage\iBemsDataService\bin\ko\Microsoft.Data.Services.resources.dll
+D:\Development\200504_LoadForecastingPage\iBemsDataService\bin\ru\Microsoft.Data.Services.resources.dll
+D:\Development\200504_LoadForecastingPage\iBemsDataService\bin\zh-Hans\Microsoft.Data.Services.resources.dll
+D:\Development\200504_LoadForecastingPage\iBemsDataService\bin\zh-Hant\Microsoft.Data.Services.resources.dll
+D:\Development\200504_LoadForecastingPage\iBemsDataService\bin\de\Microsoft.Data.Services.Client.resources.dll
+D:\Development\200504_LoadForecastingPage\iBemsDataService\bin\es\Microsoft.Data.Services.Client.resources.dll
+D:\Development\200504_LoadForecastingPage\iBemsDataService\bin\fr\Microsoft.Data.Services.Client.resources.dll
+D:\Development\200504_LoadForecastingPage\iBemsDataService\bin\it\Microsoft.Data.Services.Client.resources.dll
+D:\Development\200504_LoadForecastingPage\iBemsDataService\bin\ja\Microsoft.Data.Services.Client.resources.dll
+D:\Development\200504_LoadForecastingPage\iBemsDataService\bin\ko\Microsoft.Data.Services.Client.resources.dll
+D:\Development\200504_LoadForecastingPage\iBemsDataService\bin\ru\Microsoft.Data.Services.Client.resources.dll
+D:\Development\200504_LoadForecastingPage\iBemsDataService\bin\zh-Hans\Microsoft.Data.Services.Client.resources.dll
+D:\Development\200504_LoadForecastingPage\iBemsDataService\bin\zh-Hant\Microsoft.Data.Services.Client.resources.dll
+D:\Development\200504_LoadForecastingPage\iBemsDataService\bin\de\System.Spatial.resources.dll
+D:\Development\200504_LoadForecastingPage\iBemsDataService\bin\es\System.Spatial.resources.dll
+D:\Development\200504_LoadForecastingPage\iBemsDataService\bin\fr\System.Spatial.resources.dll
+D:\Development\200504_LoadForecastingPage\iBemsDataService\bin\it\System.Spatial.resources.dll
+D:\Development\200504_LoadForecastingPage\iBemsDataService\bin\ja\System.Spatial.resources.dll
+D:\Development\200504_LoadForecastingPage\iBemsDataService\bin\ko\System.Spatial.resources.dll
+D:\Development\200504_LoadForecastingPage\iBemsDataService\bin\ru\System.Spatial.resources.dll
+D:\Development\200504_LoadForecastingPage\iBemsDataService\bin\zh-Hans\System.Spatial.resources.dll
+D:\Development\200504_LoadForecastingPage\iBemsDataService\bin\zh-Hant\System.Spatial.resources.dll
+D:\Development\200504_LoadForecastingPage\iBemsDataService\obj\Debug\iBemsDataService.Report.MonthlyReport.resources
+D:\Development\200504_LoadForecastingPage\iBemsDataService\obj\Debug\iBemsDataService.Report.DailyReport.resources
+D:\Development\200504_LoadForecastingPage\iBemsDataService\obj\Debug\iBemsDataService.Report.PatrolReport.resources
+D:\Development\200504_LoadForecastingPage\iBemsDataService\obj\Debug\iBemsDataService.Report.XtraReport1.resources
+D:\Development\200504_LoadForecastingPage\iBemsDataService\obj\Debug\iBemsDataService.csproj.GenerateResource.Cache
+D:\Development\200504_LoadForecastingPage\iBemsDataService\obj\Debug\iBemsDataService.dll.licenses
+D:\Development\200504_LoadForecastingPage\iBemsDataService\obj\Debug\iBemsDataService.dll
+D:\Development\200504_LoadForecastingPage\iBemsDataService\obj\Debug\iBemsDataService.pdb
+D:\Development\200504_LoadForecastingPage\iBemsDataService\obj\Debug\iBemsDataService.csprojResolveAssemblyReference.cache
+D:\Development\200511_Load_Icing_Forecasting\iBemsDataService\bin\iBemsDataService.dll.config
+D:\Development\200511_Load_Icing_Forecasting\iBemsDataService\bin\iBemsDataService.dll
+D:\Development\200511_Load_Icing_Forecasting\iBemsDataService\bin\iBemsDataService.pdb
+D:\Development\200511_Load_Icing_Forecasting\iBemsDataService\bin\Common.Logging.Core.dll
+D:\Development\200511_Load_Icing_Forecasting\iBemsDataService\bin\Common.Logging.dll
+D:\Development\200511_Load_Icing_Forecasting\iBemsDataService\bin\EntityFramework.dll
+D:\Development\200511_Load_Icing_Forecasting\iBemsDataService\bin\Microsoft.Data.Edm.dll
+D:\Development\200511_Load_Icing_Forecasting\iBemsDataService\bin\Microsoft.Data.OData.dll
+D:\Development\200511_Load_Icing_Forecasting\iBemsDataService\bin\Microsoft.Data.Services.Client.dll
+D:\Development\200511_Load_Icing_Forecasting\iBemsDataService\bin\Microsoft.Data.Services.dll
+D:\Development\200511_Load_Icing_Forecasting\iBemsDataService\bin\Newtonsoft.Json.dll
+D:\Development\200511_Load_Icing_Forecasting\iBemsDataService\bin\Quartz.dll
+D:\Development\200511_Load_Icing_Forecasting\iBemsDataService\bin\System.Net.Http.Formatting.dll
+D:\Development\200511_Load_Icing_Forecasting\iBemsDataService\bin\System.Spatial.dll
+D:\Development\200511_Load_Icing_Forecasting\iBemsDataService\bin\System.Web.Http.dll
+D:\Development\200511_Load_Icing_Forecasting\iBemsDataService\bin\System.Web.Http.OData.dll
+D:\Development\200511_Load_Icing_Forecasting\iBemsDataService\bin\System.Web.Http.WebHost.dll
+D:\Development\200511_Load_Icing_Forecasting\iBemsDataService\bin\Common.Logging.xml
+D:\Development\200511_Load_Icing_Forecasting\iBemsDataService\bin\Common.Logging.Core.xml
+D:\Development\200511_Load_Icing_Forecasting\iBemsDataService\bin\EntityFramework.xml
+D:\Development\200511_Load_Icing_Forecasting\iBemsDataService\bin\Microsoft.Data.Edm.xml
+D:\Development\200511_Load_Icing_Forecasting\iBemsDataService\bin\Microsoft.Data.OData.xml
+D:\Development\200511_Load_Icing_Forecasting\iBemsDataService\bin\Microsoft.Data.Services.xml
+D:\Development\200511_Load_Icing_Forecasting\iBemsDataService\bin\Microsoft.Data.Services.Client.xml
+D:\Development\200511_Load_Icing_Forecasting\iBemsDataService\bin\Newtonsoft.Json.xml
+D:\Development\200511_Load_Icing_Forecasting\iBemsDataService\bin\Quartz.xml
+D:\Development\200511_Load_Icing_Forecasting\iBemsDataService\bin\System.Net.Http.Formatting.xml
+D:\Development\200511_Load_Icing_Forecasting\iBemsDataService\bin\System.Spatial.xml
+D:\Development\200511_Load_Icing_Forecasting\iBemsDataService\bin\System.Web.Http.xml
+D:\Development\200511_Load_Icing_Forecasting\iBemsDataService\bin\System.Web.Http.OData.xml
+D:\Development\200511_Load_Icing_Forecasting\iBemsDataService\bin\System.Web.Http.WebHost.xml
+D:\Development\200511_Load_Icing_Forecasting\iBemsDataService\bin\ko\EntityFramework.resources.dll
+D:\Development\200511_Load_Icing_Forecasting\iBemsDataService\bin\de\Microsoft.Data.Edm.resources.dll
+D:\Development\200511_Load_Icing_Forecasting\iBemsDataService\bin\es\Microsoft.Data.Edm.resources.dll
+D:\Development\200511_Load_Icing_Forecasting\iBemsDataService\bin\fr\Microsoft.Data.Edm.resources.dll
+D:\Development\200511_Load_Icing_Forecasting\iBemsDataService\bin\it\Microsoft.Data.Edm.resources.dll
+D:\Development\200511_Load_Icing_Forecasting\iBemsDataService\bin\ja\Microsoft.Data.Edm.resources.dll
+D:\Development\200511_Load_Icing_Forecasting\iBemsDataService\bin\ko\Microsoft.Data.Edm.resources.dll
+D:\Development\200511_Load_Icing_Forecasting\iBemsDataService\bin\ru\Microsoft.Data.Edm.resources.dll
+D:\Development\200511_Load_Icing_Forecasting\iBemsDataService\bin\zh-Hans\Microsoft.Data.Edm.resources.dll
+D:\Development\200511_Load_Icing_Forecasting\iBemsDataService\bin\zh-Hant\Microsoft.Data.Edm.resources.dll
+D:\Development\200511_Load_Icing_Forecasting\iBemsDataService\bin\de\Microsoft.Data.OData.resources.dll
+D:\Development\200511_Load_Icing_Forecasting\iBemsDataService\bin\es\Microsoft.Data.OData.resources.dll
+D:\Development\200511_Load_Icing_Forecasting\iBemsDataService\bin\fr\Microsoft.Data.OData.resources.dll
+D:\Development\200511_Load_Icing_Forecasting\iBemsDataService\bin\it\Microsoft.Data.OData.resources.dll
+D:\Development\200511_Load_Icing_Forecasting\iBemsDataService\bin\ja\Microsoft.Data.OData.resources.dll
+D:\Development\200511_Load_Icing_Forecasting\iBemsDataService\bin\ko\Microsoft.Data.OData.resources.dll
+D:\Development\200511_Load_Icing_Forecasting\iBemsDataService\bin\ru\Microsoft.Data.OData.resources.dll
+D:\Development\200511_Load_Icing_Forecasting\iBemsDataService\bin\zh-Hans\Microsoft.Data.OData.resources.dll
+D:\Development\200511_Load_Icing_Forecasting\iBemsDataService\bin\zh-Hant\Microsoft.Data.OData.resources.dll
+D:\Development\200511_Load_Icing_Forecasting\iBemsDataService\bin\de\Microsoft.Data.Services.resources.dll
+D:\Development\200511_Load_Icing_Forecasting\iBemsDataService\bin\es\Microsoft.Data.Services.resources.dll
+D:\Development\200511_Load_Icing_Forecasting\iBemsDataService\bin\fr\Microsoft.Data.Services.resources.dll
+D:\Development\200511_Load_Icing_Forecasting\iBemsDataService\bin\it\Microsoft.Data.Services.resources.dll
+D:\Development\200511_Load_Icing_Forecasting\iBemsDataService\bin\ja\Microsoft.Data.Services.resources.dll
+D:\Development\200511_Load_Icing_Forecasting\iBemsDataService\bin\ko\Microsoft.Data.Services.resources.dll
+D:\Development\200511_Load_Icing_Forecasting\iBemsDataService\bin\ru\Microsoft.Data.Services.resources.dll
+D:\Development\200511_Load_Icing_Forecasting\iBemsDataService\bin\zh-Hans\Microsoft.Data.Services.resources.dll
+D:\Development\200511_Load_Icing_Forecasting\iBemsDataService\bin\zh-Hant\Microsoft.Data.Services.resources.dll
+D:\Development\200511_Load_Icing_Forecasting\iBemsDataService\bin\de\Microsoft.Data.Services.Client.resources.dll
+D:\Development\200511_Load_Icing_Forecasting\iBemsDataService\bin\es\Microsoft.Data.Services.Client.resources.dll
+D:\Development\200511_Load_Icing_Forecasting\iBemsDataService\bin\fr\Microsoft.Data.Services.Client.resources.dll
+D:\Development\200511_Load_Icing_Forecasting\iBemsDataService\bin\it\Microsoft.Data.Services.Client.resources.dll
+D:\Development\200511_Load_Icing_Forecasting\iBemsDataService\bin\ja\Microsoft.Data.Services.Client.resources.dll
+D:\Development\200511_Load_Icing_Forecasting\iBemsDataService\bin\ko\Microsoft.Data.Services.Client.resources.dll
+D:\Development\200511_Load_Icing_Forecasting\iBemsDataService\bin\ru\Microsoft.Data.Services.Client.resources.dll
+D:\Development\200511_Load_Icing_Forecasting\iBemsDataService\bin\zh-Hans\Microsoft.Data.Services.Client.resources.dll
+D:\Development\200511_Load_Icing_Forecasting\iBemsDataService\bin\zh-Hant\Microsoft.Data.Services.Client.resources.dll
+D:\Development\200511_Load_Icing_Forecasting\iBemsDataService\bin\de\System.Spatial.resources.dll
+D:\Development\200511_Load_Icing_Forecasting\iBemsDataService\bin\es\System.Spatial.resources.dll
+D:\Development\200511_Load_Icing_Forecasting\iBemsDataService\bin\fr\System.Spatial.resources.dll
+D:\Development\200511_Load_Icing_Forecasting\iBemsDataService\bin\it\System.Spatial.resources.dll
+D:\Development\200511_Load_Icing_Forecasting\iBemsDataService\bin\ja\System.Spatial.resources.dll
+D:\Development\200511_Load_Icing_Forecasting\iBemsDataService\bin\ko\System.Spatial.resources.dll
+D:\Development\200511_Load_Icing_Forecasting\iBemsDataService\bin\ru\System.Spatial.resources.dll
+D:\Development\200511_Load_Icing_Forecasting\iBemsDataService\bin\zh-Hans\System.Spatial.resources.dll
+D:\Development\200511_Load_Icing_Forecasting\iBemsDataService\bin\zh-Hant\System.Spatial.resources.dll
+D:\Development\200511_Load_Icing_Forecasting\iBemsDataService\obj\Debug\iBemsDataService.csprojResolveAssemblyReference.cache
+D:\Development\200511_Load_Icing_Forecasting\iBemsDataService\obj\Debug\iBemsDataService.Report.MonthlyReport.resources
+D:\Development\200511_Load_Icing_Forecasting\iBemsDataService\obj\Debug\iBemsDataService.Report.DailyReport.resources
+D:\Development\200511_Load_Icing_Forecasting\iBemsDataService\obj\Debug\iBemsDataService.Report.PatrolReport.resources
+D:\Development\200511_Load_Icing_Forecasting\iBemsDataService\obj\Debug\iBemsDataService.Report.XtraReport1.resources
+D:\Development\200511_Load_Icing_Forecasting\iBemsDataService\obj\Debug\iBemsDataService.csproj.GenerateResource.Cache
+D:\Development\200511_Load_Icing_Forecasting\iBemsDataService\obj\Debug\iBemsDataService.dll.licenses
+D:\Development\200511_Load_Icing_Forecasting\iBemsDataService\obj\Debug\iBemsDataService.dll
+D:\Development\200511_Load_Icing_Forecasting\iBemsDataService\obj\Debug\iBemsDataService.pdb
+D:\Development\20200728_IceStorage\iBemsDataService\bin\iBemsDataService.dll.config
+D:\Development\20200728_IceStorage\iBemsDataService\bin\iBemsDataService.dll
+D:\Development\20200728_IceStorage\iBemsDataService\bin\iBemsDataService.pdb
+D:\Development\20200728_IceStorage\iBemsDataService\bin\Common.Logging.Core.dll
+D:\Development\20200728_IceStorage\iBemsDataService\bin\Common.Logging.dll
+D:\Development\20200728_IceStorage\iBemsDataService\bin\EntityFramework.dll
+D:\Development\20200728_IceStorage\iBemsDataService\bin\Microsoft.Data.Edm.dll
+D:\Development\20200728_IceStorage\iBemsDataService\bin\Microsoft.Data.OData.dll
+D:\Development\20200728_IceStorage\iBemsDataService\bin\Microsoft.Data.Services.Client.dll
+D:\Development\20200728_IceStorage\iBemsDataService\bin\Microsoft.Data.Services.dll
+D:\Development\20200728_IceStorage\iBemsDataService\bin\Newtonsoft.Json.dll
+D:\Development\20200728_IceStorage\iBemsDataService\bin\Quartz.dll
+D:\Development\20200728_IceStorage\iBemsDataService\bin\System.Net.Http.Formatting.dll
+D:\Development\20200728_IceStorage\iBemsDataService\bin\System.Spatial.dll
+D:\Development\20200728_IceStorage\iBemsDataService\bin\System.Web.Http.dll
+D:\Development\20200728_IceStorage\iBemsDataService\bin\System.Web.Http.OData.dll
+D:\Development\20200728_IceStorage\iBemsDataService\bin\System.Web.Http.WebHost.dll
+D:\Development\20200728_IceStorage\iBemsDataService\bin\Common.Logging.xml
+D:\Development\20200728_IceStorage\iBemsDataService\bin\Common.Logging.Core.xml
+D:\Development\20200728_IceStorage\iBemsDataService\bin\EntityFramework.xml
+D:\Development\20200728_IceStorage\iBemsDataService\bin\Microsoft.Data.Edm.xml
+D:\Development\20200728_IceStorage\iBemsDataService\bin\Microsoft.Data.OData.xml
+D:\Development\20200728_IceStorage\iBemsDataService\bin\Microsoft.Data.Services.xml
+D:\Development\20200728_IceStorage\iBemsDataService\bin\Microsoft.Data.Services.Client.xml
+D:\Development\20200728_IceStorage\iBemsDataService\bin\Newtonsoft.Json.xml
+D:\Development\20200728_IceStorage\iBemsDataService\bin\Quartz.xml
+D:\Development\20200728_IceStorage\iBemsDataService\bin\System.Net.Http.Formatting.xml
+D:\Development\20200728_IceStorage\iBemsDataService\bin\System.Spatial.xml
+D:\Development\20200728_IceStorage\iBemsDataService\bin\System.Web.Http.xml
+D:\Development\20200728_IceStorage\iBemsDataService\bin\System.Web.Http.OData.xml
+D:\Development\20200728_IceStorage\iBemsDataService\bin\System.Web.Http.WebHost.xml
+D:\Development\20200728_IceStorage\iBemsDataService\bin\ko\EntityFramework.resources.dll
+D:\Development\20200728_IceStorage\iBemsDataService\bin\de\Microsoft.Data.Edm.resources.dll
+D:\Development\20200728_IceStorage\iBemsDataService\bin\es\Microsoft.Data.Edm.resources.dll
+D:\Development\20200728_IceStorage\iBemsDataService\bin\fr\Microsoft.Data.Edm.resources.dll
+D:\Development\20200728_IceStorage\iBemsDataService\bin\it\Microsoft.Data.Edm.resources.dll
+D:\Development\20200728_IceStorage\iBemsDataService\bin\ja\Microsoft.Data.Edm.resources.dll
+D:\Development\20200728_IceStorage\iBemsDataService\bin\ko\Microsoft.Data.Edm.resources.dll
+D:\Development\20200728_IceStorage\iBemsDataService\bin\ru\Microsoft.Data.Edm.resources.dll
+D:\Development\20200728_IceStorage\iBemsDataService\bin\zh-Hans\Microsoft.Data.Edm.resources.dll
+D:\Development\20200728_IceStorage\iBemsDataService\bin\zh-Hant\Microsoft.Data.Edm.resources.dll
+D:\Development\20200728_IceStorage\iBemsDataService\bin\de\Microsoft.Data.OData.resources.dll
+D:\Development\20200728_IceStorage\iBemsDataService\bin\es\Microsoft.Data.OData.resources.dll
+D:\Development\20200728_IceStorage\iBemsDataService\bin\fr\Microsoft.Data.OData.resources.dll
+D:\Development\20200728_IceStorage\iBemsDataService\bin\it\Microsoft.Data.OData.resources.dll
+D:\Development\20200728_IceStorage\iBemsDataService\bin\ja\Microsoft.Data.OData.resources.dll
+D:\Development\20200728_IceStorage\iBemsDataService\bin\ko\Microsoft.Data.OData.resources.dll
+D:\Development\20200728_IceStorage\iBemsDataService\bin\ru\Microsoft.Data.OData.resources.dll
+D:\Development\20200728_IceStorage\iBemsDataService\bin\zh-Hans\Microsoft.Data.OData.resources.dll
+D:\Development\20200728_IceStorage\iBemsDataService\bin\zh-Hant\Microsoft.Data.OData.resources.dll
+D:\Development\20200728_IceStorage\iBemsDataService\bin\de\Microsoft.Data.Services.resources.dll
+D:\Development\20200728_IceStorage\iBemsDataService\bin\es\Microsoft.Data.Services.resources.dll
+D:\Development\20200728_IceStorage\iBemsDataService\bin\fr\Microsoft.Data.Services.resources.dll
+D:\Development\20200728_IceStorage\iBemsDataService\bin\it\Microsoft.Data.Services.resources.dll
+D:\Development\20200728_IceStorage\iBemsDataService\bin\ja\Microsoft.Data.Services.resources.dll
+D:\Development\20200728_IceStorage\iBemsDataService\bin\ko\Microsoft.Data.Services.resources.dll
+D:\Development\20200728_IceStorage\iBemsDataService\bin\ru\Microsoft.Data.Services.resources.dll
+D:\Development\20200728_IceStorage\iBemsDataService\bin\zh-Hans\Microsoft.Data.Services.resources.dll
+D:\Development\20200728_IceStorage\iBemsDataService\bin\zh-Hant\Microsoft.Data.Services.resources.dll
+D:\Development\20200728_IceStorage\iBemsDataService\bin\de\Microsoft.Data.Services.Client.resources.dll
+D:\Development\20200728_IceStorage\iBemsDataService\bin\es\Microsoft.Data.Services.Client.resources.dll
+D:\Development\20200728_IceStorage\iBemsDataService\bin\fr\Microsoft.Data.Services.Client.resources.dll
+D:\Development\20200728_IceStorage\iBemsDataService\bin\it\Microsoft.Data.Services.Client.resources.dll
+D:\Development\20200728_IceStorage\iBemsDataService\bin\ja\Microsoft.Data.Services.Client.resources.dll
+D:\Development\20200728_IceStorage\iBemsDataService\bin\ko\Microsoft.Data.Services.Client.resources.dll
+D:\Development\20200728_IceStorage\iBemsDataService\bin\ru\Microsoft.Data.Services.Client.resources.dll
+D:\Development\20200728_IceStorage\iBemsDataService\bin\zh-Hans\Microsoft.Data.Services.Client.resources.dll
+D:\Development\20200728_IceStorage\iBemsDataService\bin\zh-Hant\Microsoft.Data.Services.Client.resources.dll
+D:\Development\20200728_IceStorage\iBemsDataService\bin\de\System.Spatial.resources.dll
+D:\Development\20200728_IceStorage\iBemsDataService\bin\es\System.Spatial.resources.dll
+D:\Development\20200728_IceStorage\iBemsDataService\bin\fr\System.Spatial.resources.dll
+D:\Development\20200728_IceStorage\iBemsDataService\bin\it\System.Spatial.resources.dll
+D:\Development\20200728_IceStorage\iBemsDataService\bin\ja\System.Spatial.resources.dll
+D:\Development\20200728_IceStorage\iBemsDataService\bin\ko\System.Spatial.resources.dll
+D:\Development\20200728_IceStorage\iBemsDataService\bin\ru\System.Spatial.resources.dll
+D:\Development\20200728_IceStorage\iBemsDataService\bin\zh-Hans\System.Spatial.resources.dll
+D:\Development\20200728_IceStorage\iBemsDataService\bin\zh-Hant\System.Spatial.resources.dll
+D:\Development\20200728_IceStorage\iBemsDataService\obj\Debug\iBemsDataService.Report.MonthlyReport.resources
+D:\Development\20200728_IceStorage\iBemsDataService\obj\Debug\iBemsDataService.Report.DailyReport.resources
+D:\Development\20200728_IceStorage\iBemsDataService\obj\Debug\iBemsDataService.Report.PatrolReport.resources
+D:\Development\20200728_IceStorage\iBemsDataService\obj\Debug\iBemsDataService.Report.XtraReport1.resources
+D:\Development\20200728_IceStorage\iBemsDataService\obj\Debug\iBemsDataService.csproj.GenerateResource.Cache
+D:\Development\20200728_IceStorage\iBemsDataService\obj\Debug\iBemsDataService.dll.licenses
+D:\Development\20200728_IceStorage\iBemsDataService\obj\Debug\iBemsDataService.dll
+D:\Development\20200728_IceStorage\iBemsDataService\obj\Debug\iBemsDataService.pdb
+D:\Development\20200824_LittleEdit\iBemsDataService\bin\iBemsDataService.dll.config
+D:\Development\20200824_LittleEdit\iBemsDataService\bin\iBemsDataService.dll
+D:\Development\20200824_LittleEdit\iBemsDataService\bin\iBemsDataService.pdb
+D:\Development\20200824_LittleEdit\iBemsDataService\bin\Common.Logging.Core.dll
+D:\Development\20200824_LittleEdit\iBemsDataService\bin\Common.Logging.dll
+D:\Development\20200824_LittleEdit\iBemsDataService\bin\EntityFramework.dll
+D:\Development\20200824_LittleEdit\iBemsDataService\bin\Microsoft.Data.Edm.dll
+D:\Development\20200824_LittleEdit\iBemsDataService\bin\Microsoft.Data.OData.dll
+D:\Development\20200824_LittleEdit\iBemsDataService\bin\Microsoft.Data.Services.Client.dll
+D:\Development\20200824_LittleEdit\iBemsDataService\bin\Microsoft.Data.Services.dll
+D:\Development\20200824_LittleEdit\iBemsDataService\bin\Newtonsoft.Json.dll
+D:\Development\20200824_LittleEdit\iBemsDataService\bin\Quartz.dll
+D:\Development\20200824_LittleEdit\iBemsDataService\bin\System.Net.Http.Formatting.dll
+D:\Development\20200824_LittleEdit\iBemsDataService\bin\System.Spatial.dll
+D:\Development\20200824_LittleEdit\iBemsDataService\bin\System.Web.Http.dll
+D:\Development\20200824_LittleEdit\iBemsDataService\bin\System.Web.Http.OData.dll
+D:\Development\20200824_LittleEdit\iBemsDataService\bin\System.Web.Http.WebHost.dll
+D:\Development\20200824_LittleEdit\iBemsDataService\bin\Common.Logging.xml
+D:\Development\20200824_LittleEdit\iBemsDataService\bin\Common.Logging.Core.xml
+D:\Development\20200824_LittleEdit\iBemsDataService\bin\EntityFramework.xml
+D:\Development\20200824_LittleEdit\iBemsDataService\bin\Microsoft.Data.Edm.xml
+D:\Development\20200824_LittleEdit\iBemsDataService\bin\Microsoft.Data.OData.xml
+D:\Development\20200824_LittleEdit\iBemsDataService\bin\Microsoft.Data.Services.xml
+D:\Development\20200824_LittleEdit\iBemsDataService\bin\Microsoft.Data.Services.Client.xml
+D:\Development\20200824_LittleEdit\iBemsDataService\bin\Newtonsoft.Json.xml
+D:\Development\20200824_LittleEdit\iBemsDataService\bin\Quartz.xml
+D:\Development\20200824_LittleEdit\iBemsDataService\bin\System.Net.Http.Formatting.xml
+D:\Development\20200824_LittleEdit\iBemsDataService\bin\System.Spatial.xml
+D:\Development\20200824_LittleEdit\iBemsDataService\bin\System.Web.Http.xml
+D:\Development\20200824_LittleEdit\iBemsDataService\bin\System.Web.Http.OData.xml
+D:\Development\20200824_LittleEdit\iBemsDataService\bin\System.Web.Http.WebHost.xml
+D:\Development\20200824_LittleEdit\iBemsDataService\bin\ko\EntityFramework.resources.dll
+D:\Development\20200824_LittleEdit\iBemsDataService\bin\de\Microsoft.Data.Edm.resources.dll
+D:\Development\20200824_LittleEdit\iBemsDataService\bin\es\Microsoft.Data.Edm.resources.dll
+D:\Development\20200824_LittleEdit\iBemsDataService\bin\fr\Microsoft.Data.Edm.resources.dll
+D:\Development\20200824_LittleEdit\iBemsDataService\bin\it\Microsoft.Data.Edm.resources.dll
+D:\Development\20200824_LittleEdit\iBemsDataService\bin\ja\Microsoft.Data.Edm.resources.dll
+D:\Development\20200824_LittleEdit\iBemsDataService\bin\ko\Microsoft.Data.Edm.resources.dll
+D:\Development\20200824_LittleEdit\iBemsDataService\bin\ru\Microsoft.Data.Edm.resources.dll
+D:\Development\20200824_LittleEdit\iBemsDataService\bin\zh-Hans\Microsoft.Data.Edm.resources.dll
+D:\Development\20200824_LittleEdit\iBemsDataService\bin\zh-Hant\Microsoft.Data.Edm.resources.dll
+D:\Development\20200824_LittleEdit\iBemsDataService\bin\de\Microsoft.Data.OData.resources.dll
+D:\Development\20200824_LittleEdit\iBemsDataService\bin\es\Microsoft.Data.OData.resources.dll
+D:\Development\20200824_LittleEdit\iBemsDataService\bin\fr\Microsoft.Data.OData.resources.dll
+D:\Development\20200824_LittleEdit\iBemsDataService\bin\it\Microsoft.Data.OData.resources.dll
+D:\Development\20200824_LittleEdit\iBemsDataService\bin\ja\Microsoft.Data.OData.resources.dll
+D:\Development\20200824_LittleEdit\iBemsDataService\bin\ko\Microsoft.Data.OData.resources.dll
+D:\Development\20200824_LittleEdit\iBemsDataService\bin\ru\Microsoft.Data.OData.resources.dll
+D:\Development\20200824_LittleEdit\iBemsDataService\bin\zh-Hans\Microsoft.Data.OData.resources.dll
+D:\Development\20200824_LittleEdit\iBemsDataService\bin\zh-Hant\Microsoft.Data.OData.resources.dll
+D:\Development\20200824_LittleEdit\iBemsDataService\bin\de\Microsoft.Data.Services.resources.dll
+D:\Development\20200824_LittleEdit\iBemsDataService\bin\es\Microsoft.Data.Services.resources.dll
+D:\Development\20200824_LittleEdit\iBemsDataService\bin\fr\Microsoft.Data.Services.resources.dll
+D:\Development\20200824_LittleEdit\iBemsDataService\bin\it\Microsoft.Data.Services.resources.dll
+D:\Development\20200824_LittleEdit\iBemsDataService\bin\ja\Microsoft.Data.Services.resources.dll
+D:\Development\20200824_LittleEdit\iBemsDataService\bin\ko\Microsoft.Data.Services.resources.dll
+D:\Development\20200824_LittleEdit\iBemsDataService\bin\ru\Microsoft.Data.Services.resources.dll
+D:\Development\20200824_LittleEdit\iBemsDataService\bin\zh-Hans\Microsoft.Data.Services.resources.dll
+D:\Development\20200824_LittleEdit\iBemsDataService\bin\zh-Hant\Microsoft.Data.Services.resources.dll
+D:\Development\20200824_LittleEdit\iBemsDataService\bin\de\Microsoft.Data.Services.Client.resources.dll
+D:\Development\20200824_LittleEdit\iBemsDataService\bin\es\Microsoft.Data.Services.Client.resources.dll
+D:\Development\20200824_LittleEdit\iBemsDataService\bin\fr\Microsoft.Data.Services.Client.resources.dll
+D:\Development\20200824_LittleEdit\iBemsDataService\bin\it\Microsoft.Data.Services.Client.resources.dll
+D:\Development\20200824_LittleEdit\iBemsDataService\bin\ja\Microsoft.Data.Services.Client.resources.dll
+D:\Development\20200824_LittleEdit\iBemsDataService\bin\ko\Microsoft.Data.Services.Client.resources.dll
+D:\Development\20200824_LittleEdit\iBemsDataService\bin\ru\Microsoft.Data.Services.Client.resources.dll
+D:\Development\20200824_LittleEdit\iBemsDataService\bin\zh-Hans\Microsoft.Data.Services.Client.resources.dll
+D:\Development\20200824_LittleEdit\iBemsDataService\bin\zh-Hant\Microsoft.Data.Services.Client.resources.dll
+D:\Development\20200824_LittleEdit\iBemsDataService\bin\de\System.Spatial.resources.dll
+D:\Development\20200824_LittleEdit\iBemsDataService\bin\es\System.Spatial.resources.dll
+D:\Development\20200824_LittleEdit\iBemsDataService\bin\fr\System.Spatial.resources.dll
+D:\Development\20200824_LittleEdit\iBemsDataService\bin\it\System.Spatial.resources.dll
+D:\Development\20200824_LittleEdit\iBemsDataService\bin\ja\System.Spatial.resources.dll
+D:\Development\20200824_LittleEdit\iBemsDataService\bin\ko\System.Spatial.resources.dll
+D:\Development\20200824_LittleEdit\iBemsDataService\bin\ru\System.Spatial.resources.dll
+D:\Development\20200824_LittleEdit\iBemsDataService\bin\zh-Hans\System.Spatial.resources.dll
+D:\Development\20200824_LittleEdit\iBemsDataService\bin\zh-Hant\System.Spatial.resources.dll
+D:\Development\20200824_LittleEdit\iBemsDataService\obj\Debug\iBemsDataService.csprojResolveAssemblyReference.cache
+D:\Development\20200824_LittleEdit\iBemsDataService\obj\Debug\iBemsDataService.Report.MonthlyReport.resources
+D:\Development\20200824_LittleEdit\iBemsDataService\obj\Debug\iBemsDataService.Report.DailyReport.resources
+D:\Development\20200824_LittleEdit\iBemsDataService\obj\Debug\iBemsDataService.Report.PatrolReport.resources
+D:\Development\20200824_LittleEdit\iBemsDataService\obj\Debug\iBemsDataService.Report.XtraReport1.resources
+D:\Development\20200824_LittleEdit\iBemsDataService\obj\Debug\iBemsDataService.csproj.GenerateResource.Cache
+D:\Development\20200824_LittleEdit\iBemsDataService\obj\Debug\iBemsDataService.dll.licenses
+D:\Development\20200824_LittleEdit\iBemsDataService\obj\Debug\iBemsDataService.dll
+D:\Development\20200824_LittleEdit\iBemsDataService\obj\Debug\iBemsDataService.pdb
+D:\Development\20200904_ModifiedConfig\iBemsDataService\bin\iBemsDataService.dll.config
+D:\Development\20200904_ModifiedConfig\iBemsDataService\bin\iBemsDataService.dll
+D:\Development\20200904_ModifiedConfig\iBemsDataService\bin\iBemsDataService.pdb
+D:\Development\20200904_ModifiedConfig\iBemsDataService\bin\Common.Logging.Core.dll
+D:\Development\20200904_ModifiedConfig\iBemsDataService\bin\Common.Logging.dll
+D:\Development\20200904_ModifiedConfig\iBemsDataService\bin\EntityFramework.dll
+D:\Development\20200904_ModifiedConfig\iBemsDataService\bin\Microsoft.Data.Edm.dll
+D:\Development\20200904_ModifiedConfig\iBemsDataService\bin\Microsoft.Data.OData.dll
+D:\Development\20200904_ModifiedConfig\iBemsDataService\bin\Microsoft.Data.Services.Client.dll
+D:\Development\20200904_ModifiedConfig\iBemsDataService\bin\Microsoft.Data.Services.dll
+D:\Development\20200904_ModifiedConfig\iBemsDataService\bin\Newtonsoft.Json.dll
+D:\Development\20200904_ModifiedConfig\iBemsDataService\bin\Quartz.dll
+D:\Development\20200904_ModifiedConfig\iBemsDataService\bin\System.Net.Http.Formatting.dll
+D:\Development\20200904_ModifiedConfig\iBemsDataService\bin\System.Spatial.dll
+D:\Development\20200904_ModifiedConfig\iBemsDataService\bin\System.Web.Http.dll
+D:\Development\20200904_ModifiedConfig\iBemsDataService\bin\System.Web.Http.OData.dll
+D:\Development\20200904_ModifiedConfig\iBemsDataService\bin\System.Web.Http.WebHost.dll
+D:\Development\20200904_ModifiedConfig\iBemsDataService\bin\Common.Logging.xml
+D:\Development\20200904_ModifiedConfig\iBemsDataService\bin\Common.Logging.Core.xml
+D:\Development\20200904_ModifiedConfig\iBemsDataService\bin\EntityFramework.xml
+D:\Development\20200904_ModifiedConfig\iBemsDataService\bin\Microsoft.Data.Edm.xml
+D:\Development\20200904_ModifiedConfig\iBemsDataService\bin\Microsoft.Data.OData.xml
+D:\Development\20200904_ModifiedConfig\iBemsDataService\bin\Microsoft.Data.Services.xml
+D:\Development\20200904_ModifiedConfig\iBemsDataService\bin\Microsoft.Data.Services.Client.xml
+D:\Development\20200904_ModifiedConfig\iBemsDataService\bin\Newtonsoft.Json.xml
+D:\Development\20200904_ModifiedConfig\iBemsDataService\bin\Quartz.xml
+D:\Development\20200904_ModifiedConfig\iBemsDataService\bin\System.Net.Http.Formatting.xml
+D:\Development\20200904_ModifiedConfig\iBemsDataService\bin\System.Spatial.xml
+D:\Development\20200904_ModifiedConfig\iBemsDataService\bin\System.Web.Http.xml
+D:\Development\20200904_ModifiedConfig\iBemsDataService\bin\System.Web.Http.OData.xml
+D:\Development\20200904_ModifiedConfig\iBemsDataService\bin\System.Web.Http.WebHost.xml
+D:\Development\20200904_ModifiedConfig\iBemsDataService\bin\ko\EntityFramework.resources.dll
+D:\Development\20200904_ModifiedConfig\iBemsDataService\bin\de\Microsoft.Data.Edm.resources.dll
+D:\Development\20200904_ModifiedConfig\iBemsDataService\bin\es\Microsoft.Data.Edm.resources.dll
+D:\Development\20200904_ModifiedConfig\iBemsDataService\bin\fr\Microsoft.Data.Edm.resources.dll
+D:\Development\20200904_ModifiedConfig\iBemsDataService\bin\it\Microsoft.Data.Edm.resources.dll
+D:\Development\20200904_ModifiedConfig\iBemsDataService\bin\ja\Microsoft.Data.Edm.resources.dll
+D:\Development\20200904_ModifiedConfig\iBemsDataService\bin\ko\Microsoft.Data.Edm.resources.dll
+D:\Development\20200904_ModifiedConfig\iBemsDataService\bin\ru\Microsoft.Data.Edm.resources.dll
+D:\Development\20200904_ModifiedConfig\iBemsDataService\bin\zh-Hans\Microsoft.Data.Edm.resources.dll
+D:\Development\20200904_ModifiedConfig\iBemsDataService\bin\zh-Hant\Microsoft.Data.Edm.resources.dll
+D:\Development\20200904_ModifiedConfig\iBemsDataService\bin\de\Microsoft.Data.OData.resources.dll
+D:\Development\20200904_ModifiedConfig\iBemsDataService\bin\es\Microsoft.Data.OData.resources.dll
+D:\Development\20200904_ModifiedConfig\iBemsDataService\bin\fr\Microsoft.Data.OData.resources.dll
+D:\Development\20200904_ModifiedConfig\iBemsDataService\bin\it\Microsoft.Data.OData.resources.dll
+D:\Development\20200904_ModifiedConfig\iBemsDataService\bin\ja\Microsoft.Data.OData.resources.dll
+D:\Development\20200904_ModifiedConfig\iBemsDataService\bin\ko\Microsoft.Data.OData.resources.dll
+D:\Development\20200904_ModifiedConfig\iBemsDataService\bin\ru\Microsoft.Data.OData.resources.dll
+D:\Development\20200904_ModifiedConfig\iBemsDataService\bin\zh-Hans\Microsoft.Data.OData.resources.dll
+D:\Development\20200904_ModifiedConfig\iBemsDataService\bin\zh-Hant\Microsoft.Data.OData.resources.dll
+D:\Development\20200904_ModifiedConfig\iBemsDataService\bin\de\Microsoft.Data.Services.resources.dll
+D:\Development\20200904_ModifiedConfig\iBemsDataService\bin\es\Microsoft.Data.Services.resources.dll
+D:\Development\20200904_ModifiedConfig\iBemsDataService\bin\fr\Microsoft.Data.Services.resources.dll
+D:\Development\20200904_ModifiedConfig\iBemsDataService\bin\it\Microsoft.Data.Services.resources.dll
+D:\Development\20200904_ModifiedConfig\iBemsDataService\bin\ja\Microsoft.Data.Services.resources.dll
+D:\Development\20200904_ModifiedConfig\iBemsDataService\bin\ko\Microsoft.Data.Services.resources.dll
+D:\Development\20200904_ModifiedConfig\iBemsDataService\bin\ru\Microsoft.Data.Services.resources.dll
+D:\Development\20200904_ModifiedConfig\iBemsDataService\bin\zh-Hans\Microsoft.Data.Services.resources.dll
+D:\Development\20200904_ModifiedConfig\iBemsDataService\bin\zh-Hant\Microsoft.Data.Services.resources.dll
+D:\Development\20200904_ModifiedConfig\iBemsDataService\bin\de\Microsoft.Data.Services.Client.resources.dll
+D:\Development\20200904_ModifiedConfig\iBemsDataService\bin\es\Microsoft.Data.Services.Client.resources.dll
+D:\Development\20200904_ModifiedConfig\iBemsDataService\bin\fr\Microsoft.Data.Services.Client.resources.dll
+D:\Development\20200904_ModifiedConfig\iBemsDataService\bin\it\Microsoft.Data.Services.Client.resources.dll
+D:\Development\20200904_ModifiedConfig\iBemsDataService\bin\ja\Microsoft.Data.Services.Client.resources.dll
+D:\Development\20200904_ModifiedConfig\iBemsDataService\bin\ko\Microsoft.Data.Services.Client.resources.dll
+D:\Development\20200904_ModifiedConfig\iBemsDataService\bin\ru\Microsoft.Data.Services.Client.resources.dll
+D:\Development\20200904_ModifiedConfig\iBemsDataService\bin\zh-Hans\Microsoft.Data.Services.Client.resources.dll
+D:\Development\20200904_ModifiedConfig\iBemsDataService\bin\zh-Hant\Microsoft.Data.Services.Client.resources.dll
+D:\Development\20200904_ModifiedConfig\iBemsDataService\bin\de\System.Spatial.resources.dll
+D:\Development\20200904_ModifiedConfig\iBemsDataService\bin\es\System.Spatial.resources.dll
+D:\Development\20200904_ModifiedConfig\iBemsDataService\bin\fr\System.Spatial.resources.dll
+D:\Development\20200904_ModifiedConfig\iBemsDataService\bin\it\System.Spatial.resources.dll
+D:\Development\20200904_ModifiedConfig\iBemsDataService\bin\ja\System.Spatial.resources.dll
+D:\Development\20200904_ModifiedConfig\iBemsDataService\bin\ko\System.Spatial.resources.dll
+D:\Development\20200904_ModifiedConfig\iBemsDataService\bin\ru\System.Spatial.resources.dll
+D:\Development\20200904_ModifiedConfig\iBemsDataService\bin\zh-Hans\System.Spatial.resources.dll
+D:\Development\20200904_ModifiedConfig\iBemsDataService\bin\zh-Hant\System.Spatial.resources.dll
+D:\Development\20200904_ModifiedConfig\iBemsDataService\obj\Debug\iBemsDataService.csprojResolveAssemblyReference.cache
+D:\Development\20200904_ModifiedConfig\iBemsDataService\obj\Debug\iBemsDataService.Report.MonthlyReport.resources
+D:\Development\20200904_ModifiedConfig\iBemsDataService\obj\Debug\iBemsDataService.Report.DailyReport.resources
+D:\Development\20200904_ModifiedConfig\iBemsDataService\obj\Debug\iBemsDataService.Report.PatrolReport.resources
+D:\Development\20200904_ModifiedConfig\iBemsDataService\obj\Debug\iBemsDataService.Report.XtraReport1.resources
+D:\Development\20200904_ModifiedConfig\iBemsDataService\obj\Debug\iBemsDataService.csproj.GenerateResource.Cache
+D:\Development\20200904_ModifiedConfig\iBemsDataService\obj\Debug\iBemsDataService.dll.licenses
+D:\Development\20200904_ModifiedConfig\iBemsDataService\obj\Debug\iBemsDataService.dll
+D:\Development\20200904_ModifiedConfig\iBemsDataService\obj\Debug\iBemsDataService.pdb

BIN
.svn/pristine/5e/5e4ac2c058eea319a9219daed8e5ce627c59efa4.svn-base


+ 10 - 0
.svn/pristine/80/80668b097b91d57cc90342dc1c171604dea26a4f.svn-base

@@ -0,0 +1,10 @@
+// 모델 'D:\Development\20200904_ModifiedConfig\iBemsDataService\Model\DataModel.edmx'에 대해 T4 코드 생성이 사용됩니다. 
+// 레거시 코드 생성을 사용하려면 '코드 생성 전략' 디자이너 속성의 값을
+// 'Legacy ObjectContext'로 변경하십시오. 이 속성은 모델이 디자이너에서 열릴 때
+// 속성 창에서 사용할 수 있습니다.
+
+// 컨텍스트 및 엔터티 클래스가 생성되지 않은 경우 빈 모델을 만들었기 때문일 수도 있지만
+// 사용할 Entity Framework 버전을 선택하지 않았기 때문일 수도 있습니다. 모델에 맞는 컨텍스트 클래스 및
+// 엔터티 클래스를 생성하려면 디자이너에서 모델을 열고 디자이너 화면에서 마우스 오른쪽 단추를 클릭한
+// 다음 '데이터베이스에서 모델 업데이트...', '모델에서 데이터베이스 생성...' 또는 '코드 생성 항목 추가...'를
+// 선택하십시오.

+ 59 - 0
.svn/pristine/c7/c707354b8d40f17ce777d8af66065f5d58715a35.svn-base

@@ -0,0 +1,59 @@
+<div data-options="dxView : { name: 'ConfigDataPopup'} ">
+    <div data-bind="dxPopup: popupOptions ">
+        <div class="dx-clearfix" data-options="dxTemplate: { name: 'title' } " style="margin: 0 auto;">
+            <div data-bind="dxToolbar: { dataSource: toolbarItems }"></div>
+        </div>
+        <div class="dx-clearfix" data-options="dxTemplate: { name: 'content' } ">
+            <div class="dx-fieldset">
+                <p class="body_sub_title_2depth" style="font-weight: bold;">데이터 로드 DB 설정</p>
+                <div class="dx-field cw-multi-field">
+                    <div class="dx-field">
+                        <div class="dx-field-label cw-multi-field-label-ex">DB IP</div>
+                        <div class="dx-field-value" data-bind="text: dataModel.LoadDBIP, css: {'dx-state-invisible': isEditModeInPopup }"></div>
+                        <div class="dx-field-value" style="width: 310px" data-bind="dxTextBox: { value: dataModel.LoadDBIP, placeholder: '데이터를 불러올 DB IP 입력' }, css: {'dx-state-invisible': isEditModeInPopup() == false }"></div>
+                    </div>
+                    <div class="dx-field">
+                        <div class="dx-field-label w-multi-field-label-ex">User ID</div>
+                        <div class="dx-field-value" data-bind="text: dataModel.LoadDBUserID, css: {'dx-state-invisible': isEditModeInPopup }"></div>
+                        <div class="dx-field-value" style="width: 310px" data-bind="dxTextBox: { value: dataModel.LoadDBUserID, placeholder: '데이터를 불러올 User ID 입력' }, css: {'dx-state-invisible': isEditModeInPopup() == false }"></div>
+                    </div>
+                    <div class="dx-field" data-bind="css: {'dx-state-invisible': isEditModeInPopup() == false} ">
+                        <div class="dx-field-label cw-multi-field-label">User PW</div>
+                        <div class="dx-field-value" data-bind="css: {'dx-state-invisible': isEditModeInPopup}"></div>
+                        <div class="dx-field-value" style="width: 310px" data-bind="dxTextBox: { value: dataModel.LoadDBUserPW, mode: 'password', placeholder: '데이터를 불러올 User PW 입력' }, css: {'dx-state-invisible': isEditModeInPopup() == false }"></div>
+                    </div>
+                    <div class="dx-field">
+                        <div class="dx-field-label cw-multi-field-label">DB Name</div>
+                        <div class="dx-field-value" data-bind="text: dataModel.LoadDBName, css: {'dx-state-invisible': isEditModeInPopup }"></div>
+                        <div class="dx-field-value" style="width: 310px" data-bind="dxTextBox: { value: dataModel.LoadDBName, placeholder: '데이터베이스 이름 입력' }, css: {'dx-state-invisible': isEditModeInPopup() == false }"></div>
+                    </div>
+                </div>
+
+                <p></p>
+                <p class="body_sub_title_2depth" style="font-weight: bold;">결과 저장 DB 설정</p>
+                <div class="dx-field cw-multi-field">
+                    <div class="dx-field">
+                        <div class="dx-field-label cw-multi-field-label-ex">DB IP</div>
+                        <div class="dx-field-value" data-bind="text: dataModel.TargetDBIP, css: {'dx-state-invisible': isEditModeInPopup }"></div>
+                        <div class="dx-field-value" style="width: 310px" data-bind="dxTextBox: { value: dataModel.TargetDBIP, placeholder: '결과를 저장할 DB IP 입력' }, css: {'dx-state-invisible': isEditModeInPopup() == false }"></div>
+                    </div>
+                    <div class="dx-field">
+                        <div class="dx-field-label w-multi-field-label-ex">User ID</div>
+                        <div class="dx-field-value" data-bind="text: dataModel.TargetDBUserID, css: {'dx-state-invisible': isEditModeInPopup }"></div>
+                        <div class="dx-field-value" style="width: 310px" data-bind="dxTextBox: { value: dataModel.TargetDBUserID, placeholder: '결과를 저장할 User ID 입력' }, css: {'dx-state-invisible': isEditModeInPopup() == false }"></div>
+                    </div>
+                    <div class="dx-field" data-bind="css: {'dx-state-invisible': isEditModeInPopup() == false} ">
+                        <div class="dx-field-label cw-multi-field-label">User PW</div>
+                        <div class="dx-field-value" data-bind="css: {'dx-state-invisible': isEditModeInPopup}"></div>
+                        <div class="dx-field-value" style="width: 310px" data-bind="dxTextBox: { value: dataModel.TargetDBUserPW, mode: 'password', placeholder: '결과를 저장할 User PW 입력' }, css: {'dx-state-invisible': isEditModeInPopup() == false }"></div>
+                    </div>
+                    <div class="dx-field">
+                        <div class="dx-field-label cw-multi-field-label">DB Name</div>
+                        <div class="dx-field-value" data-bind="text: dataModel.TargetDBName, css: {'dx-state-invisible': isEditModeInPopup }"></div>
+                        <div class="dx-field-value" style="width: 310px" data-bind="dxTextBox: { value: dataModel.TargetDBName, placeholder: '데이터베이스 이름 입력' }, css: {'dx-state-invisible': isEditModeInPopup() == false }"></div>
+                    </div>
+                </div>
+            </div>
+        </div>
+    </div>
+</div>

BIN
.svn/pristine/ce/ce11b95706f7ee531e433331632415f262380bc1.svn-base


+ 27 - 0
.svn/pristine/d7/d7cd543e41f0993b95c2571d5f59f463adb9607c.svn-base

@@ -0,0 +1,27 @@
+//------------------------------------------------------------------------------
+// <auto-generated>
+//    이 코드는 템플릿에서 생성되었습니다.
+//
+//    이 파일을 수동으로 변경하면 응용 프로그램에 예기치 않은 동작이 발생할 수 있습니다.
+//    코드가 다시 생성되면 이 파일에 대한 수동 변경 사항을 덮어씁니다.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+namespace iBemsDataService.Model
+{
+    using System;
+    using System.Collections.Generic;
+    
+    public partial class BemsConfigData
+    {
+        public int SiteId { get; set; }
+        public string LoadDBIP { get; set; }
+        public string LoadDBUserID { get; set; }
+        public string LoadDBUserPW { get; set; }
+        public string LoadDBName { get; set; }
+        public string TargetDBIP { get; set; }
+        public string TargetDBUserID { get; set; }
+        public string TargetDBUserPW { get; set; }
+        public string TargetDBName { get; set; }
+    }
+}

+ 2726 - 0
.svn/pristine/d8/d886d4fdebb11bda101bfab8993b2d4d77c6a5ec.svn-base

@@ -0,0 +1,2726 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Mapping Space="C-S" xmlns="http://schemas.microsoft.com/ado/2009/11/mapping/cs">
+  <EntityContainerMapping StorageEntityContainer="iBemsModelStoreContainer" CdmEntityContainer="iBemsEntities">
+    <EntitySetMapping Name="BemsAnalysisType">
+      <EntityTypeMapping TypeName="iBemsModel.BemsAnalysisType">
+        <MappingFragment StoreEntitySet="BemsAnalysisType">
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+          <ScalarProperty Name="AnalysisType" ColumnName="AnalysisType" />
+          <ScalarProperty Name="Name" ColumnName="Name" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="BemsControlPointHistory">
+      <EntityTypeMapping TypeName="iBemsModel.BemsControlPointHistory">
+        <MappingFragment StoreEntitySet="BemsControlPointHistory">
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+          <ScalarProperty Name="FacilityTypeId" ColumnName="FacilityTypeId" />
+          <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
+          <ScalarProperty Name="PropertyId" ColumnName="PropertyId" />
+          <ScalarProperty Name="CreateDateTime" ColumnName="CreateDateTime" />
+          <ScalarProperty Name="ControlValue" ColumnName="ControlValue" />
+          <ScalarProperty Name="WriteServiceName" ColumnName="WriteServiceName" />
+          <ScalarProperty Name="ActionDateTime" ColumnName="ActionDateTime" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="BemsFacilityType">
+      <EntityTypeMapping TypeName="iBemsModel.BemsFacilityType">
+        <MappingFragment StoreEntitySet="BemsFacilityType">
+          <ScalarProperty Name="FacilityTypeId" ColumnName="FacilityTypeId" />
+          <ScalarProperty Name="Name" ColumnName="Name" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="BemsFactorCo2">
+      <EntityTypeMapping TypeName="iBemsModel.BemsFactorCo2">
+        <MappingFragment StoreEntitySet="BemsFactorCo2">
+          <ScalarProperty Name="FuelTypeId" ColumnName="FuelTypeId" />
+          <ScalarProperty Name="Factor" ColumnName="Factor" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="BemsFactorToe">
+      <EntityTypeMapping TypeName="iBemsModel.BemsFactorToe">
+        <MappingFragment StoreEntitySet="BemsFactorToe">
+          <ScalarProperty Name="FuelTypeId" ColumnName="FuelTypeId" />
+          <ScalarProperty Name="TotalFactor" ColumnName="TotalFactor" />
+          <ScalarProperty Name="PureFactor" ColumnName="PureFactor" />
+          <ScalarProperty Name="kcal" ColumnName="kcal" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="BemsFormula">
+      <EntityTypeMapping TypeName="iBemsModel.BemsFormula">
+        <MappingFragment StoreEntitySet="BemsFormula">
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+          <ScalarProperty Name="FacilityTypeId" ColumnName="FacilityTypeId" />
+          <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
+          <ScalarProperty Name="FormulaId" ColumnName="FormulaId" />
+          <ScalarProperty Name="Formula" ColumnName="Formula" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="BemsFormulaBase">
+      <EntityTypeMapping TypeName="iBemsModel.BemsFormulaBase">
+        <MappingFragment StoreEntitySet="BemsFormulaBase">
+          <ScalarProperty Name="FacilityTypeId" ColumnName="FacilityTypeId" />
+          <ScalarProperty Name="FormulaId" ColumnName="FormulaId" />
+          <ScalarProperty Name="Name" ColumnName="Name" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="BemsFormulaParameter">
+      <EntityTypeMapping TypeName="iBemsModel.BemsFormulaParameter">
+        <MappingFragment StoreEntitySet="BemsFormulaParameter">
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+          <ScalarProperty Name="FacilityTypeId" ColumnName="FacilityTypeId" />
+          <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
+          <ScalarProperty Name="FormulaId" ColumnName="FormulaId" />
+          <ScalarProperty Name="ParameterId" ColumnName="ParameterId" />
+          <ScalarProperty Name="ParameterFacilityCode" ColumnName="ParameterFacilityCode" />
+          <ScalarProperty Name="ParameterPropertyId" ColumnName="ParameterPropertyId" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="BemsFormulaTable">
+      <EntityTypeMapping TypeName="iBemsModel.BemsFormulaTable">
+        <MappingFragment StoreEntitySet="BemsFormulaTable">
+          <ScalarProperty Name="TableId" ColumnName="TableId" />
+          <ScalarProperty Name="FunctionName" ColumnName="FunctionName" />
+          <ScalarProperty Name="Description" ColumnName="Description" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="BemsFormulaTableValue">
+      <EntityTypeMapping TypeName="iBemsModel.BemsFormulaTableValue">
+        <MappingFragment StoreEntitySet="BemsFormulaTableValue">
+          <ScalarProperty Name="TableId" ColumnName="TableId" />
+          <ScalarProperty Name="XValue" ColumnName="XValue" />
+          <ScalarProperty Name="YValue" ColumnName="YValue" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="BemsMonitoringPoint">
+      <EntityTypeMapping TypeName="iBemsModel.BemsMonitoringPoint">
+        <MappingFragment StoreEntitySet="BemsMonitoringPoint">
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+          <ScalarProperty Name="FacilityTypeId" ColumnName="FacilityTypeId" />
+          <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
+          <ScalarProperty Name="PropertyId" ColumnName="PropertyId" />
+          <ScalarProperty Name="ValueType" ColumnName="ValueType" />
+          <ScalarProperty Name="ServiceTypeId" ColumnName="ServiceTypeId" />
+          <ScalarProperty Name="FuelTypeId" ColumnName="FuelTypeId" />
+          <ScalarProperty Name="Name" ColumnName="Name" />
+          <ScalarProperty Name="Description" ColumnName="Description" />
+          <ScalarProperty Name="BuildingId" ColumnName="BuildingId" />
+          <ScalarProperty Name="FloorId" ColumnName="FloorId" />
+          <ScalarProperty Name="ZoneId" ColumnName="ZoneId" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="BemsMonitoringPointBaseData">
+      <EntityTypeMapping TypeName="iBemsModel.BemsMonitoringPointBaseData">
+        <MappingFragment StoreEntitySet="BemsMonitoringPointBaseData">
+          <ScalarProperty Name="IsConverted" ColumnName="IsConverted" />
+          <ScalarProperty Name="FacilityTypeId" ColumnName="FacilityTypeId" />
+          <ScalarProperty Name="PropertyId" ColumnName="PropertyId" />
+          <ScalarProperty Name="ValueType" ColumnName="ValueType" />
+          <ScalarProperty Name="IsAccumulated" ColumnName="IsAccumulated" />
+          <ScalarProperty Name="ServiceTypeId" ColumnName="ServiceTypeId" />
+          <ScalarProperty Name="FuelTypeId" ColumnName="FuelTypeId" />
+          <ScalarProperty Name="Name" ColumnName="Name" />
+          <ScalarProperty Name="Description" ColumnName="Description" />
+          <ScalarProperty Name="IsSampled" ColumnName="IsSampled" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="BemsMonitoringPointHistory15min">
+      <EntityTypeMapping TypeName="iBemsModel.BemsMonitoringPointHistory15min">
+        <MappingFragment StoreEntitySet="BemsMonitoringPointHistory15min">
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+          <ScalarProperty Name="FacilityTypeId" ColumnName="FacilityTypeId" />
+          <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
+          <ScalarProperty Name="PropertyId" ColumnName="PropertyId" />
+          <ScalarProperty Name="CreatedDateTime" ColumnName="CreatedDateTime" />
+          <ScalarProperty Name="CurrentValue" ColumnName="CurrentValue" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="BemsMonitoringPointHistoryDaily">
+      <EntityTypeMapping TypeName="iBemsModel.BemsMonitoringPointHistoryDaily">
+        <MappingFragment StoreEntitySet="BemsMonitoringPointHistoryDaily">
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+          <ScalarProperty Name="FacilityTypeId" ColumnName="FacilityTypeId" />
+          <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
+          <ScalarProperty Name="PropertyId" ColumnName="PropertyId" />
+          <ScalarProperty Name="CreatedDateTime" ColumnName="CreatedDateTime" />
+          <ScalarProperty Name="DailyValue" ColumnName="DailyValue" />
+          <ScalarProperty Name="MaxValue" ColumnName="MaxValue" />
+          <ScalarProperty Name="MinValue" ColumnName="MinValue" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="BemsMonitoringPointHistoryHourly">
+      <EntityTypeMapping TypeName="iBemsModel.BemsMonitoringPointHistoryHourly">
+        <MappingFragment StoreEntitySet="BemsMonitoringPointHistoryHourly">
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+          <ScalarProperty Name="FacilityTypeId" ColumnName="FacilityTypeId" />
+          <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
+          <ScalarProperty Name="PropertyId" ColumnName="PropertyId" />
+          <ScalarProperty Name="CreatedDateTime" ColumnName="CreatedDateTime" />
+          <ScalarProperty Name="CurrentValue" ColumnName="CurrentValue" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="BemsMonitoringPointToAnlaysisType">
+      <EntityTypeMapping TypeName="iBemsModel.BemsMonitoringPointToAnlaysisType">
+        <MappingFragment StoreEntitySet="BemsMonitoringPointToAnlaysisType">
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+          <ScalarProperty Name="FacilityTypeId" ColumnName="FacilityTypeId" />
+          <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
+          <ScalarProperty Name="PropertyId" ColumnName="PropertyId" />
+          <ScalarProperty Name="AnalysisType" ColumnName="AnalysisType" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="BemsServiceType">
+      <EntityTypeMapping TypeName="iBemsModel.BemsServiceType">
+        <MappingFragment StoreEntitySet="BemsServiceType">
+          <ScalarProperty Name="ServiceTypeId" ColumnName="ServiceTypeId" />
+          <ScalarProperty Name="Name" ColumnName="Name" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="CmAnnouncement">
+      <EntityTypeMapping TypeName="iBemsModel.CmAnnouncement">
+        <MappingFragment StoreEntitySet="CmAnnouncement">
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+          <ScalarProperty Name="AnnouncementId" ColumnName="AnnouncementId" />
+          <ScalarProperty Name="BusinessFieldId" ColumnName="BusinessFieldId" />
+          <ScalarProperty Name="Title" ColumnName="Title" />
+          <ScalarProperty Name="Contents" ColumnName="Contents" />
+          <ScalarProperty Name="RegisterUserId" ColumnName="RegisterUserId" />
+          <ScalarProperty Name="FileId" ColumnName="FileId" />
+          <ScalarProperty Name="AddDate" ColumnName="AddDate" />
+          <ScalarProperty Name="UpdateDate" ColumnName="UpdateDate" />
+          <ScalarProperty Name="IsUse" ColumnName="IsUse" />
+          <ScalarProperty Name="ReadCount" ColumnName="ReadCount" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="CmBuilding">
+      <EntityTypeMapping TypeName="iBemsModel.CmBuilding">
+        <MappingFragment StoreEntitySet="CmBuilding">
+          <ScalarProperty Name="SortOrderNo" ColumnName="SortOrderNo" />
+          <ScalarProperty Name="IsUse" ColumnName="IsUse" />
+          <ScalarProperty Name="FileId" ColumnName="FileId" />
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+          <ScalarProperty Name="BuildingId" ColumnName="BuildingId" />
+          <ScalarProperty Name="Name" ColumnName="Name" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="CmBusinessField">
+      <EntityTypeMapping TypeName="iBemsModel.CmBusinessField">
+        <MappingFragment StoreEntitySet="CmBusinessField">
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+          <ScalarProperty Name="BusinessFieldId" ColumnName="BusinessFieldId" />
+          <ScalarProperty Name="Name" ColumnName="Name" />
+          <ScalarProperty Name="IsUse" ColumnName="IsUse" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="CmCompany">
+      <EntityTypeMapping TypeName="iBemsModel.CmCompany">
+        <MappingFragment StoreEntitySet="CmCompany">
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+          <ScalarProperty Name="CompanyId" ColumnName="CompanyId" />
+          <ScalarProperty Name="CompanyTypeId" ColumnName="CompanyTypeId" />
+          <ScalarProperty Name="Name" ColumnName="Name" />
+          <ScalarProperty Name="PhoneNo" ColumnName="PhoneNo" />
+          <ScalarProperty Name="FaxNo" ColumnName="FaxNo" />
+          <ScalarProperty Name="RepresentativeName" ColumnName="RepresentativeName" />
+          <ScalarProperty Name="SalesName" ColumnName="SalesName" />
+          <ScalarProperty Name="SalesPhoneNo" ColumnName="SalesPhoneNo" />
+          <ScalarProperty Name="AddressZip1" ColumnName="AddressZip1" />
+          <ScalarProperty Name="AddressZip2" ColumnName="AddressZip2" />
+          <ScalarProperty Name="Address1" ColumnName="Address1" />
+          <ScalarProperty Name="Adderss2" ColumnName="Adderss2" />
+          <ScalarProperty Name="Homepage" ColumnName="Homepage" />
+          <ScalarProperty Name="Comment" ColumnName="Comment" />
+          <ScalarProperty Name="IsUse" ColumnName="IsUse" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="CmCompanyType">
+      <EntityTypeMapping TypeName="iBemsModel.CmCompanyType">
+        <MappingFragment StoreEntitySet="CmCompanyType">
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+          <ScalarProperty Name="CompanyTypeId" ColumnName="CompanyTypeId" />
+          <ScalarProperty Name="Name" ColumnName="Name" />
+          <ScalarProperty Name="IsUse" ColumnName="IsUse" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="CmDepartment">
+      <EntityTypeMapping TypeName="iBemsModel.CmDepartment">
+        <MappingFragment StoreEntitySet="CmDepartment">
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+          <ScalarProperty Name="CompanyId" ColumnName="CompanyId" />
+          <ScalarProperty Name="DepartmentId" ColumnName="DepartmentId" />
+          <ScalarProperty Name="Name" ColumnName="Name" />
+          <ScalarProperty Name="ShortName" ColumnName="ShortName" />
+          <ScalarProperty Name="FaxNo" ColumnName="FaxNo" />
+          <ScalarProperty Name="PhoneNo" ColumnName="PhoneNo" />
+          <ScalarProperty Name="Comment" ColumnName="Comment" />
+          <ScalarProperty Name="IsUse" ColumnName="IsUse" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="CmFacilityFile">
+      <EntityTypeMapping TypeName="iBemsModel.CmFacilityFile">
+        <MappingFragment StoreEntitySet="CmFacilityFile">
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+          <ScalarProperty Name="FileId" ColumnName="FileId" />
+          <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
+          <ScalarProperty Name="InsertedDate" ColumnName="InsertedDate" />
+          <ScalarProperty Name="InsertedUserId" ColumnName="InsertedUserId" />
+          <ScalarProperty Name="UpdatedDate" ColumnName="UpdatedDate" />
+          <ScalarProperty Name="UpdatedUserId" ColumnName="UpdatedUserId" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="CmFacilityTempSet">
+      <EntityTypeMapping TypeName="iBemsModel.CmFacilityTempSet">
+        <MappingFragment StoreEntitySet="CmFacilityTempSet">
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+          <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
+          <ScalarProperty Name="T1" ColumnName="T1" />
+          <ScalarProperty Name="T2" ColumnName="T2" />
+          <ScalarProperty Name="T3" ColumnName="T3" />
+          <ScalarProperty Name="T4" ColumnName="T4" />
+          <ScalarProperty Name="T5" ColumnName="T5" />
+          <ScalarProperty Name="T6" ColumnName="T6" />
+          <ScalarProperty Name="T7" ColumnName="T7" />
+          <ScalarProperty Name="T8" ColumnName="T8" />
+          <ScalarProperty Name="T9" ColumnName="T9" />
+          <ScalarProperty Name="T10" ColumnName="T10" />
+          <ScalarProperty Name="T11" ColumnName="T11" />
+          <ScalarProperty Name="T12" ColumnName="T12" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="CmFile">
+      <EntityTypeMapping TypeName="iBemsModel.CmFile">
+        <MappingFragment StoreEntitySet="CmFile">
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+          <ScalarProperty Name="FileId" ColumnName="FileId" />
+          <ScalarProperty Name="FileCategoryId" ColumnName="FileCategoryId" />
+          <ScalarProperty Name="Name" ColumnName="Name" />
+          <ScalarProperty Name="FileSize" ColumnName="FileSize" />
+          <ScalarProperty Name="CreatedDate" ColumnName="CreatedDate" />
+          <ScalarProperty Name="ContentType" ColumnName="ContentType" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="CmFileCategory">
+      <EntityTypeMapping TypeName="iBemsModel.CmFileCategory">
+        <MappingFragment StoreEntitySet="CmFileCategory">
+          <ScalarProperty Name="FileCategoryId" ColumnName="FileCategoryId" />
+          <ScalarProperty Name="Name" ColumnName="Name" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="CmFloor">
+      <EntityTypeMapping TypeName="iBemsModel.CmFloor">
+        <MappingFragment StoreEntitySet="CmFloor">
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+          <ScalarProperty Name="BuildingId" ColumnName="BuildingId" />
+          <ScalarProperty Name="FloorId" ColumnName="FloorId" />
+          <ScalarProperty Name="Name" ColumnName="Name" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="CmHoliday">
+      <EntityTypeMapping TypeName="iBemsModel.CmHoliday">
+        <MappingFragment StoreEntitySet="CmHoliday">
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+          <ScalarProperty Name="HolidayMonth" ColumnName="HolidayMonth" />
+          <ScalarProperty Name="HolidayDay" ColumnName="HolidayDay" />
+          <ScalarProperty Name="IsLunar" ColumnName="IsLunar" />
+          <ScalarProperty Name="Name" ColumnName="Name" />
+          <ScalarProperty Name="IsUse" ColumnName="IsUse" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="CmHolidayCustom">
+      <EntityTypeMapping TypeName="iBemsModel.CmHolidayCustom">
+        <MappingFragment StoreEntitySet="CmHolidayCustom">
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+          <ScalarProperty Name="HolidayDate" ColumnName="HolidayDate" />
+          <ScalarProperty Name="Name" ColumnName="Name" />
+          <ScalarProperty Name="IsUse" ColumnName="IsUse" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="CmPosition">
+      <EntityTypeMapping TypeName="iBemsModel.CmPosition">
+        <MappingFragment StoreEntitySet="CmPosition">
+          <ScalarProperty Name="Position" ColumnName="Position" />
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+          <ScalarProperty Name="PositionId" ColumnName="PositionId" />
+          <ScalarProperty Name="Name" ColumnName="Name" />
+          <ScalarProperty Name="IsUse" ColumnName="IsUse" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="CmUser">
+      <EntityTypeMapping TypeName="iBemsModel.CmUser">
+        <MappingFragment StoreEntitySet="CmUser">
+          <ScalarProperty Name="Devicetoken" ColumnName="Devicetoken" />
+          <ScalarProperty Name="IsSI" ColumnName="IsSI" />
+          <ScalarProperty Name="IsMobile" ColumnName="IsMobile" />
+          <ScalarProperty Name="IsScheduleUser" ColumnName="IsScheduleUser" />
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+          <ScalarProperty Name="UserId" ColumnName="UserId" />
+          <ScalarProperty Name="CompanyId" ColumnName="CompanyId" />
+          <ScalarProperty Name="DepartmentId" ColumnName="DepartmentId" />
+          <ScalarProperty Name="PositionId" ColumnName="PositionId" />
+          <ScalarProperty Name="BusinessFieldId" ColumnName="BusinessFieldId" />
+          <ScalarProperty Name="UserGroupId" ColumnName="UserGroupId" />
+          <ScalarProperty Name="Name" ColumnName="Name" />
+          <ScalarProperty Name="Passwd" ColumnName="Passwd" />
+          <ScalarProperty Name="Birthday" ColumnName="Birthday" />
+          <ScalarProperty Name="Lunar" ColumnName="Lunar" />
+          <ScalarProperty Name="StateId" ColumnName="StateId" />
+          <ScalarProperty Name="EmploymentType" ColumnName="EmploymentType" />
+          <ScalarProperty Name="EmploymentStatus" ColumnName="EmploymentStatus" />
+          <ScalarProperty Name="OfficePhoneNo" ColumnName="OfficePhoneNo" />
+          <ScalarProperty Name="HomePhoneNo" ColumnName="HomePhoneNo" />
+          <ScalarProperty Name="MobilePhoneNo" ColumnName="MobilePhoneNo" />
+          <ScalarProperty Name="HomeZip1" ColumnName="HomeZip1" />
+          <ScalarProperty Name="HomeZip2" ColumnName="HomeZip2" />
+          <ScalarProperty Name="HomeAddress1" ColumnName="HomeAddress1" />
+          <ScalarProperty Name="HomeAdderss2" ColumnName="HomeAdderss2" />
+          <ScalarProperty Name="Email" ColumnName="Email" />
+          <ScalarProperty Name="EnterDate" ColumnName="EnterDate" />
+          <ScalarProperty Name="RetireDate" ColumnName="RetireDate" />
+          <ScalarProperty Name="Comment" ColumnName="Comment" />
+          <ScalarProperty Name="Rfcsn" ColumnName="Rfcsn" />
+          <ScalarProperty Name="PasswordUpdatedDate" ColumnName="PasswordUpdatedDate" />
+          <ScalarProperty Name="FileId" ColumnName="FileId" />
+          <ScalarProperty Name="IsBems" ColumnName="IsBems" />
+          <ScalarProperty Name="IsUse" ColumnName="IsUse" />
+          <ScalarProperty Name="Certificated" ColumnName="Certificated" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="CmUserGroup">
+      <EntityTypeMapping TypeName="iBemsModel.CmUserGroup">
+        <MappingFragment StoreEntitySet="CmUserGroup">
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+          <ScalarProperty Name="UserGroupId" ColumnName="UserGroupId" />
+          <ScalarProperty Name="Name" ColumnName="Name" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="CmUserGroupPermission">
+      <EntityTypeMapping TypeName="iBemsModel.CmUserGroupPermission">
+        <MappingFragment StoreEntitySet="CmUserGroupPermission">
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+          <ScalarProperty Name="UserGroupId" ColumnName="UserGroupId" />
+          <ScalarProperty Name="MenuId" ColumnName="MenuId" />
+          <ScalarProperty Name="MenuPermission" ColumnName="MenuPermission" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="CmUserLoginHistory">
+      <EntityTypeMapping TypeName="iBemsModel.CmUserLoginHistory">
+        <MappingFragment StoreEntitySet="CmUserLoginHistory">
+          <ScalarProperty Name="LoginHistoryId" ColumnName="LoginHistoryId" />
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+          <ScalarProperty Name="UserId" ColumnName="UserId" />
+          <ScalarProperty Name="Type" ColumnName="Type" />
+          <ScalarProperty Name="TraceTime" ColumnName="TraceTime" />
+          <ScalarProperty Name="IpAddress" ColumnName="IpAddress" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="CmUserToLicense">
+      <EntityTypeMapping TypeName="iBemsModel.CmUserToLicense">
+        <MappingFragment StoreEntitySet="CmUserToLicense">
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+          <ScalarProperty Name="UserId" ColumnName="UserId" />
+          <ScalarProperty Name="LicenseId" ColumnName="LicenseId" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="CmZone">
+      <EntityTypeMapping TypeName="iBemsModel.CmZone">
+        <MappingFragment StoreEntitySet="CmZone">
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+          <ScalarProperty Name="BuildingId" ColumnName="BuildingId" />
+          <ScalarProperty Name="FloorId" ColumnName="FloorId" />
+          <ScalarProperty Name="ZoneId" ColumnName="ZoneId" />
+          <ScalarProperty Name="Name" ColumnName="Name" />
+          <ScalarProperty Name="Target_temperature" ColumnName="Target_temperature" />
+          <ScalarProperty Name="Target_humidity" ColumnName="Target_humidity" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="CmZoneTempHumiSet">
+      <EntityTypeMapping TypeName="iBemsModel.CmZoneTempHumiSet">
+        <MappingFragment StoreEntitySet="CmZoneTempHumiSet">
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+          <ScalarProperty Name="BuildingId" ColumnName="BuildingId" />
+          <ScalarProperty Name="FloorId" ColumnName="FloorId" />
+          <ScalarProperty Name="ZoneId" ColumnName="ZoneId" />
+          <ScalarProperty Name="T1" ColumnName="T1" />
+          <ScalarProperty Name="T2" ColumnName="T2" />
+          <ScalarProperty Name="T3" ColumnName="T3" />
+          <ScalarProperty Name="T4" ColumnName="T4" />
+          <ScalarProperty Name="T5" ColumnName="T5" />
+          <ScalarProperty Name="T6" ColumnName="T6" />
+          <ScalarProperty Name="T7" ColumnName="T7" />
+          <ScalarProperty Name="T8" ColumnName="T8" />
+          <ScalarProperty Name="T9" ColumnName="T9" />
+          <ScalarProperty Name="T10" ColumnName="T10" />
+          <ScalarProperty Name="T11" ColumnName="T11" />
+          <ScalarProperty Name="T12" ColumnName="T12" />
+          <ScalarProperty Name="H1" ColumnName="H1" />
+          <ScalarProperty Name="H2" ColumnName="H2" />
+          <ScalarProperty Name="H3" ColumnName="H3" />
+          <ScalarProperty Name="H4" ColumnName="H4" />
+          <ScalarProperty Name="H5" ColumnName="H5" />
+          <ScalarProperty Name="H6" ColumnName="H6" />
+          <ScalarProperty Name="H7" ColumnName="H7" />
+          <ScalarProperty Name="H8" ColumnName="H8" />
+          <ScalarProperty Name="H9" ColumnName="H9" />
+          <ScalarProperty Name="H10" ColumnName="H10" />
+          <ScalarProperty Name="H11" ColumnName="H11" />
+          <ScalarProperty Name="H12" ColumnName="H12" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="FmsAccident">
+      <EntityTypeMapping TypeName="iBemsModel.FmsAccident">
+        <MappingFragment StoreEntitySet="FmsAccident">
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+          <ScalarProperty Name="AccidentId" ColumnName="AccidentId" />
+          <ScalarProperty Name="Name" ColumnName="Name" />
+          <ScalarProperty Name="StartDate" ColumnName="StartDate" />
+          <ScalarProperty Name="EndDate" ColumnName="EndDate" />
+          <ScalarProperty Name="AccidentTypeId" ColumnName="AccidentTypeId" />
+          <ScalarProperty Name="DepartmentId" ColumnName="DepartmentId" />
+          <ScalarProperty Name="AccidentLocation" ColumnName="AccidentLocation" />
+          <ScalarProperty Name="Reason" ColumnName="Reason" />
+          <ScalarProperty Name="Action" ColumnName="Action" />
+          <ScalarProperty Name="Damage" ColumnName="Damage" />
+          <ScalarProperty Name="Measurement" ColumnName="Measurement" />
+          <ScalarProperty Name="FileId1" ColumnName="FileId1" />
+          <ScalarProperty Name="FileId2" ColumnName="FileId2" />
+          <ScalarProperty Name="FileId3" ColumnName="FileId3" />
+          <ScalarProperty Name="CompanyId" ColumnName="CompanyId" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="FmsAccidentCodeType">
+      <EntityTypeMapping TypeName="iBemsModel.FmsAccidentCodeType">
+        <MappingFragment StoreEntitySet="FmsAccidentCodeType">
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+          <ScalarProperty Name="AccidentTypeId" ColumnName="AccidentTypeId" />
+          <ScalarProperty Name="Name" ColumnName="Name" />
+          <ScalarProperty Name="IsUse" ColumnName="IsUse" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="FmsBudget">
+      <EntityTypeMapping TypeName="iBemsModel.FmsBudget">
+        <MappingFragment StoreEntitySet="FmsBudget">
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+          <ScalarProperty Name="Year" ColumnName="Year" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="FmsBudgetCodeClass">
+      <EntityTypeMapping TypeName="iBemsModel.FmsBudgetCodeClass">
+        <MappingFragment StoreEntitySet="FmsBudgetCodeClass">
+          <ScalarProperty Name="RootBudgetClassId" ColumnName="RootBudgetClassId" />
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+          <ScalarProperty Name="BudgetClassId" ColumnName="BudgetClassId" />
+          <ScalarProperty Name="BudgetSeq" ColumnName="BudgetSeq" />
+          <ScalarProperty Name="ParentBudgetClassId" ColumnName="ParentBudgetClassId" />
+          <ScalarProperty Name="Depth" ColumnName="Depth" />
+          <ScalarProperty Name="Name" ColumnName="Name" />
+          <ScalarProperty Name="Abbreviation" ColumnName="Abbreviation" />
+          <ScalarProperty Name="IsUse" ColumnName="IsUse" />
+          <ScalarProperty Name="YearlyBudget" ColumnName="YearlyBudget" />
+          <ScalarProperty Name="MonthlyBudget" ColumnName="MonthlyBudget" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="FmsCompanyEstimationCodeClass">
+      <EntityTypeMapping TypeName="iBemsModel.FmsCompanyEstimationCodeClass">
+        <MappingFragment StoreEntitySet="FmsCompanyEstimationCodeClass">
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+          <ScalarProperty Name="CompanyEstimationClassId" ColumnName="CompanyEstimationClassId" />
+          <ScalarProperty Name="Name" ColumnName="Name" />
+          <ScalarProperty Name="IsUse" ColumnName="IsUse" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="FmsConstruction">
+      <EntityTypeMapping TypeName="iBemsModel.FmsConstruction">
+        <MappingFragment StoreEntitySet="FmsConstruction">
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+          <ScalarProperty Name="ConstructionId" ColumnName="ConstructionId" />
+          <ScalarProperty Name="Name" ColumnName="Name" />
+          <ScalarProperty Name="ConstructionTypeId" ColumnName="ConstructionTypeId" />
+          <ScalarProperty Name="StartDate" ColumnName="StartDate" />
+          <ScalarProperty Name="EndDate" ColumnName="EndDate" />
+          <ScalarProperty Name="PartnerId" ColumnName="PartnerId" />
+          <ScalarProperty Name="ConstructLocation" ColumnName="ConstructLocation" />
+          <ScalarProperty Name="OwnerShipName" ColumnName="OwnerShipName" />
+          <ScalarProperty Name="CommitmentMan" ColumnName="CommitmentMan" />
+          <ScalarProperty Name="OwnerShipPhoneNo" ColumnName="OwnerShipPhoneNo" />
+          <ScalarProperty Name="WeldWorkStartTime" ColumnName="WeldWorkStartTime" />
+          <ScalarProperty Name="WeldWorkEndTime" ColumnName="WeldWorkEndTime" />
+          <ScalarProperty Name="GasWorkStartTime" ColumnName="GasWorkStartTime" />
+          <ScalarProperty Name="GasWorkEndTime" ColumnName="GasWorkEndTime" />
+          <ScalarProperty Name="PaintWorkStartTime" ColumnName="PaintWorkStartTime" />
+          <ScalarProperty Name="PaintWorkEndTime" ColumnName="PaintWorkEndTime" />
+          <ScalarProperty Name="Comment" ColumnName="Comment" />
+          <ScalarProperty Name="ProgressId" ColumnName="ProgressId" />
+          <ScalarProperty Name="AddDate" ColumnName="AddDate" />
+          <ScalarProperty Name="UpdateDate" ColumnName="UpdateDate" />
+          <ScalarProperty Name="ConstructionDetail" ColumnName="ConstructionDetail" />
+          <ScalarProperty Name="InOutStockName" ColumnName="InOutStockName" />
+          <ScalarProperty Name="FileId1" ColumnName="FileId1" />
+          <ScalarProperty Name="FileId2" ColumnName="FileId2" />
+          <ScalarProperty Name="FileId3" ColumnName="FileId3" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="FmsConstructionCodeProgress">
+      <EntityTypeMapping TypeName="iBemsModel.FmsConstructionCodeProgress">
+        <MappingFragment StoreEntitySet="FmsConstructionCodeProgress">
+          <ScalarProperty Name="ProgressId" ColumnName="ProgressId" />
+          <ScalarProperty Name="Name" ColumnName="Name" />
+          <ScalarProperty Name="Description" ColumnName="Description" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="FmsConstructionCodeType">
+      <EntityTypeMapping TypeName="iBemsModel.FmsConstructionCodeType">
+        <MappingFragment StoreEntitySet="FmsConstructionCodeType">
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+          <ScalarProperty Name="ConstructionTypeId" ColumnName="ConstructionTypeId" />
+          <ScalarProperty Name="Name" ColumnName="Name" />
+          <ScalarProperty Name="IsUse" ColumnName="IsUse" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="FmsConstructionEstimation">
+      <EntityTypeMapping TypeName="iBemsModel.FmsConstructionEstimation">
+        <MappingFragment StoreEntitySet="FmsConstructionEstimation">
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+          <ScalarProperty Name="ConstructionId" ColumnName="ConstructionId" />
+          <ScalarProperty Name="EstimateDate" ColumnName="EstimateDate" />
+          <ScalarProperty Name="EstimateUserId" ColumnName="EstimateUserId" />
+          <ScalarProperty Name="Safety01_CleanUp" ColumnName="Safety01_CleanUp" />
+          <ScalarProperty Name="Safety02_PersonalProtection" ColumnName="Safety02_PersonalProtection" />
+          <ScalarProperty Name="Safety03_FireExtinguisher" ColumnName="Safety03_FireExtinguisher" />
+          <ScalarProperty Name="Safety04_HighPlaceWork" ColumnName="Safety04_HighPlaceWork" />
+          <ScalarProperty Name="Safety05_Weld" ColumnName="Safety05_Weld" />
+          <ScalarProperty Name="Safety06_SurroundingCleanUp" ColumnName="Safety06_SurroundingCleanUp" />
+          <ScalarProperty Name="Safety07_SurroundingHealthy" ColumnName="Safety07_SurroundingHealthy" />
+          <ScalarProperty Name="Safety08_Noise" ColumnName="Safety08_Noise" />
+          <ScalarProperty Name="Safety09_FacilityProtection" ColumnName="Safety09_FacilityProtection" />
+          <ScalarProperty Name="Safety10_Waste" ColumnName="Safety10_Waste" />
+          <ScalarProperty Name="Safety11_Execution" ColumnName="Safety11_Execution" />
+          <ScalarProperty Name="Safety12_Announcement" ColumnName="Safety12_Announcement" />
+          <ScalarProperty Name="Ability01_Compliance" ColumnName="Ability01_Compliance" />
+          <ScalarProperty Name="Ability02_Fault" ColumnName="Ability02_Fault" />
+          <ScalarProperty Name="Ability03_SkillLevel" ColumnName="Ability03_SkillLevel" />
+          <ScalarProperty Name="Ability04_ProcessManagement" ColumnName="Ability04_ProcessManagement" />
+          <ScalarProperty Name="Ability05_Collaboration" ColumnName="Ability05_Collaboration" />
+          <ScalarProperty Name="Service01_Compliance" ColumnName="Service01_Compliance" />
+          <ScalarProperty Name="Service02_SkillLevel" ColumnName="Service02_SkillLevel" />
+          <ScalarProperty Name="Comment" ColumnName="Comment" />
+          <ScalarProperty Name="TotalEstimateScore" ColumnName="TotalEstimateScore" />
+          <ScalarProperty Name="SafetyScore" ColumnName="SafetyScore" />
+          <ScalarProperty Name="AbilityScore" ColumnName="AbilityScore" />
+          <ScalarProperty Name="ServiceScore" ColumnName="ServiceScore" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="FmsContractClass">
+      <EntityTypeMapping TypeName="iBemsModel.FmsContractClass">
+        <MappingFragment StoreEntitySet="FmsContractClass">
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+          <ScalarProperty Name="ContractClassId" ColumnName="ContractClassId" />
+          <ScalarProperty Name="Name" ColumnName="Name" />
+          <ScalarProperty Name="IsUse" ColumnName="IsUse" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="FmsContractMethod">
+      <EntityTypeMapping TypeName="iBemsModel.FmsContractMethod">
+        <MappingFragment StoreEntitySet="FmsContractMethod">
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+          <ScalarProperty Name="ContractMethodId" ColumnName="ContractMethodId" />
+          <ScalarProperty Name="Name" ColumnName="Name" />
+          <ScalarProperty Name="IsUse" ColumnName="IsUse" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="FmsContractType">
+      <EntityTypeMapping TypeName="iBemsModel.FmsContractType">
+        <MappingFragment StoreEntitySet="FmsContractType">
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+          <ScalarProperty Name="ContractTypeId" ColumnName="ContractTypeId" />
+          <ScalarProperty Name="Name" ColumnName="Name" />
+          <ScalarProperty Name="IsUse" ColumnName="IsUse" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="FmsDrawing">
+      <EntityTypeMapping TypeName="iBemsModel.FmsDrawing">
+        <MappingFragment StoreEntitySet="FmsDrawing">
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+          <ScalarProperty Name="DrawingId" ColumnName="DrawingId" />
+          <ScalarProperty Name="DrawingNo" ColumnName="DrawingNo" />
+          <ScalarProperty Name="DrawingGroupId" ColumnName="DrawingGroupId" />
+          <ScalarProperty Name="DrawingTypeId" ColumnName="DrawingTypeId" />
+          <ScalarProperty Name="Name" ColumnName="Name" />
+          <ScalarProperty Name="Description" ColumnName="Description" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="FmsDrawingCodeGroup">
+      <EntityTypeMapping TypeName="iBemsModel.FmsDrawingCodeGroup">
+        <MappingFragment StoreEntitySet="FmsDrawingCodeGroup">
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+          <ScalarProperty Name="DrawingGroupId" ColumnName="DrawingGroupId" />
+          <ScalarProperty Name="Name" ColumnName="Name" />
+          <ScalarProperty Name="IsUse" ColumnName="IsUse" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="FmsDrawingCodeType">
+      <EntityTypeMapping TypeName="iBemsModel.FmsDrawingCodeType">
+        <MappingFragment StoreEntitySet="FmsDrawingCodeType">
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+          <ScalarProperty Name="DrawingTypeId" ColumnName="DrawingTypeId" />
+          <ScalarProperty Name="Name" ColumnName="Name" />
+          <ScalarProperty Name="IsUse" ColumnName="IsUse" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="FmsDrawingHistory">
+      <EntityTypeMapping TypeName="iBemsModel.FmsDrawingHistory">
+        <MappingFragment StoreEntitySet="FmsDrawingHistory">
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+          <ScalarProperty Name="DrawingId" ColumnName="DrawingId" />
+          <ScalarProperty Name="HistoryId" ColumnName="HistoryId" />
+          <ScalarProperty Name="RevisionNo" ColumnName="RevisionNo" />
+          <ScalarProperty Name="FileId" ColumnName="FileId" />
+          <ScalarProperty Name="Description" ColumnName="Description" />
+          <ScalarProperty Name="UpdatedDate" ColumnName="UpdatedDate" />
+          <ScalarProperty Name="UpdatedUserId" ColumnName="UpdatedUserId" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="FmsEquipmentCodeStateType">
+      <EntityTypeMapping TypeName="iBemsModel.FmsEquipmentCodeStateType">
+        <MappingFragment StoreEntitySet="FmsEquipmentCodeStateType">
+          <ScalarProperty Name="EquipmentStateTypeId" ColumnName="EquipmentStateTypeId" />
+          <ScalarProperty Name="Name" ColumnName="Name" />
+          <ScalarProperty Name="Comment" ColumnName="Comment" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="FmsEquipmentCodeType">
+      <EntityTypeMapping TypeName="iBemsModel.FmsEquipmentCodeType">
+        <MappingFragment StoreEntitySet="FmsEquipmentCodeType">
+          <ScalarProperty Name="Description" ColumnName="Description" />
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+          <ScalarProperty Name="EquipmentTypeId" ColumnName="EquipmentTypeId" />
+          <ScalarProperty Name="Name" ColumnName="Name" />
+          <ScalarProperty Name="IsUse" ColumnName="IsUse" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="FmsEquipmentHistory">
+      <EntityTypeMapping TypeName="iBemsModel.FmsEquipmentHistory">
+        <MappingFragment StoreEntitySet="FmsEquipmentHistory">
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+          <ScalarProperty Name="EquipmentHistoryId" ColumnName="EquipmentHistoryId" />
+          <ScalarProperty Name="EquipmentId" ColumnName="EquipmentId" />
+          <ScalarProperty Name="TotalStockCount" ColumnName="TotalStockCount" />
+          <ScalarProperty Name="CurrentStockCount" ColumnName="CurrentStockCount" />
+          <ScalarProperty Name="RentCount" ColumnName="RentCount" />
+          <ScalarProperty Name="CurrentRentCount" ColumnName="CurrentRentCount" />
+          <ScalarProperty Name="ReturnCount" ColumnName="ReturnCount" />
+          <ScalarProperty Name="LossCount" ColumnName="LossCount" />
+          <ScalarProperty Name="StoredCount" ColumnName="StoredCount" />
+          <ScalarProperty Name="EquipmentRentId" ColumnName="EquipmentRentId" />
+          <ScalarProperty Name="EquipmentStateTypeId" ColumnName="EquipmentStateTypeId" />
+          <ScalarProperty Name="AddDate" ColumnName="AddDate" />
+          <ScalarProperty Name="UpdateDate" ColumnName="UpdateDate" />
+          <ScalarProperty Name="IsReturned" ColumnName="IsReturned" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="FmsFacilityCheckItem">
+      <EntityTypeMapping TypeName="iBemsModel.FmsFacilityCheckItem">
+        <MappingFragment StoreEntitySet="FmsFacilityCheckItem">
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+          <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
+          <ScalarProperty Name="CheckItemId" ColumnName="CheckItemId" />
+          <ScalarProperty Name="WorkTypeId" ColumnName="WorkTypeId" />
+          <ScalarProperty Name="CycleUnitId" ColumnName="CycleUnitId" />
+          <ScalarProperty Name="Name" ColumnName="Name" />
+          <ScalarProperty Name="IsYesNoResult" ColumnName="IsYesNoResult" />
+          <ScalarProperty Name="IsUse" ColumnName="IsUse" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="FmsFacilityCodeClass">
+      <EntityTypeMapping TypeName="iBemsModel.FmsFacilityCodeClass">
+        <MappingFragment StoreEntitySet="FmsFacilityCodeClass">
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+          <ScalarProperty Name="FacilityClassId" ColumnName="FacilityClassId" />
+          <ScalarProperty Name="ParentFacilityClassId" ColumnName="ParentFacilityClassId" />
+          <ScalarProperty Name="Depth" ColumnName="Depth" />
+          <ScalarProperty Name="Name" ColumnName="Name" />
+          <ScalarProperty Name="Abbreviation" ColumnName="Abbreviation" />
+          <ScalarProperty Name="IsUse" ColumnName="IsUse" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="FmsFacilityManual">
+      <EntityTypeMapping TypeName="iBemsModel.FmsFacilityManual">
+        <MappingFragment StoreEntitySet="FmsFacilityManual">
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+          <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
+          <ScalarProperty Name="ManualId" ColumnName="ManualId" />
+          <ScalarProperty Name="BusinessFieldId" ColumnName="BusinessFieldId" />
+          <ScalarProperty Name="Name" ColumnName="Name" />
+          <ScalarProperty Name="Description" ColumnName="Description" />
+          <ScalarProperty Name="Keyword" ColumnName="Keyword" />
+          <ScalarProperty Name="FileId" ColumnName="FileId" />
+          <ScalarProperty Name="IsUse" ColumnName="IsUse" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="FmsFacilityOperationItem">
+      <EntityTypeMapping TypeName="iBemsModel.FmsFacilityOperationItem">
+        <MappingFragment StoreEntitySet="FmsFacilityOperationItem">
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+          <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
+          <ScalarProperty Name="ItemId" ColumnName="ItemId" />
+          <ScalarProperty Name="Name" ColumnName="Name" />
+          <ScalarProperty Name="ResultUnit" ColumnName="ResultUnit" />
+          <ScalarProperty Name="PointId" ColumnName="PointId" />
+          <ScalarProperty Name="SystemId" ColumnName="SystemId" />
+          <ScalarProperty Name="EnergyCode" ColumnName="EnergyCode" />
+          <ScalarProperty Name="IsUse" ColumnName="IsUse" />
+          <ScalarProperty Name="SortOrderNo" ColumnName="SortOrderNo" />
+          <ScalarProperty Name="InsertedDate" ColumnName="InsertedDate" />
+          <ScalarProperty Name="InsertedUserId" ColumnName="InsertedUserId" />
+          <ScalarProperty Name="UpdatedDate" ColumnName="UpdatedDate" />
+          <ScalarProperty Name="UpdatedUserId" ColumnName="UpdatedUserId" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="FmsLicense">
+      <EntityTypeMapping TypeName="iBemsModel.FmsLicense">
+        <MappingFragment StoreEntitySet="FmsLicense">
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+          <ScalarProperty Name="LicenseId" ColumnName="LicenseId" />
+          <ScalarProperty Name="Name" ColumnName="Name" />
+          <ScalarProperty Name="IssuingOffice" ColumnName="IssuingOffice" />
+          <ScalarProperty Name="BusinessFieldId" ColumnName="BusinessFieldId" />
+          <ScalarProperty Name="EducationalInstitute" ColumnName="EducationalInstitute" />
+          <ScalarProperty Name="Note" ColumnName="Note" />
+          <ScalarProperty Name="IsUse" ColumnName="IsUse" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="FmsManual">
+      <EntityTypeMapping TypeName="iBemsModel.FmsManual">
+        <MappingFragment StoreEntitySet="FmsManual">
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+          <ScalarProperty Name="ManualId" ColumnName="ManualId" />
+          <ScalarProperty Name="ManualNo" ColumnName="ManualNo" />
+          <ScalarProperty Name="ManualTypeId" ColumnName="ManualTypeId" />
+          <ScalarProperty Name="Name" ColumnName="Name" />
+          <ScalarProperty Name="Description" ColumnName="Description" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="FmsManualHistory">
+      <EntityTypeMapping TypeName="iBemsModel.FmsManualHistory">
+        <MappingFragment StoreEntitySet="FmsManualHistory">
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+          <ScalarProperty Name="ManualId" ColumnName="ManualId" />
+          <ScalarProperty Name="HistoryId" ColumnName="HistoryId" />
+          <ScalarProperty Name="RevisionNo" ColumnName="RevisionNo" />
+          <ScalarProperty Name="FileId" ColumnName="FileId" />
+          <ScalarProperty Name="Description" ColumnName="Description" />
+          <ScalarProperty Name="UpdatedDate" ColumnName="UpdatedDate" />
+          <ScalarProperty Name="UpdatedUserId" ColumnName="UpdatedUserId" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="FmsManualType">
+      <EntityTypeMapping TypeName="iBemsModel.FmsManualType">
+        <MappingFragment StoreEntitySet="FmsManualType">
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+          <ScalarProperty Name="ManualTypeId" ColumnName="ManualTypeId" />
+          <ScalarProperty Name="Name" ColumnName="Name" />
+          <ScalarProperty Name="IsUse" ColumnName="IsUse" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="FmsMaterialCarriedForward">
+      <EntityTypeMapping TypeName="iBemsModel.FmsMaterialCarriedForward">
+        <MappingFragment StoreEntitySet="FmsMaterialCarriedForward">
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+          <ScalarProperty Name="ClosedDate" ColumnName="ClosedDate" />
+          <ScalarProperty Name="BusinessFieldId" ColumnName="BusinessFieldId" />
+          <ScalarProperty Name="WarehouseId" ColumnName="WarehouseId" />
+          <ScalarProperty Name="MaterialId" ColumnName="MaterialId" />
+          <ScalarProperty Name="StockCount" ColumnName="StockCount" />
+          <ScalarProperty Name="StockTotalCost" ColumnName="StockTotalCost" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="FmsMaterialCodeAdjustmentType">
+      <EntityTypeMapping TypeName="iBemsModel.FmsMaterialCodeAdjustmentType">
+        <MappingFragment StoreEntitySet="FmsMaterialCodeAdjustmentType">
+          <ScalarProperty Name="AdjustmentTypeId" ColumnName="AdjustmentTypeId" />
+          <ScalarProperty Name="Name" ColumnName="Name" />
+          <ScalarProperty Name="Comment" ColumnName="Comment" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="FmsMaterialCodeClass">
+      <EntityTypeMapping TypeName="iBemsModel.FmsMaterialCodeClass">
+        <MappingFragment StoreEntitySet="FmsMaterialCodeClass">
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+          <ScalarProperty Name="MaterialClassId" ColumnName="MaterialClassId" />
+          <ScalarProperty Name="ParentMaterialClassId" ColumnName="ParentMaterialClassId" />
+          <ScalarProperty Name="Depth" ColumnName="Depth" />
+          <ScalarProperty Name="Name" ColumnName="Name" />
+          <ScalarProperty Name="Abbreviation" ColumnName="Abbreviation" />
+          <ScalarProperty Name="IsUse" ColumnName="IsUse" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="FmsMaterialCodeLocation">
+      <EntityTypeMapping TypeName="iBemsModel.FmsMaterialCodeLocation">
+        <MappingFragment StoreEntitySet="FmsMaterialCodeLocation">
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+          <ScalarProperty Name="LocationId" ColumnName="LocationId" />
+          <ScalarProperty Name="BusinessFieldId" ColumnName="BusinessFieldId" />
+          <ScalarProperty Name="Name" ColumnName="Name" />
+          <ScalarProperty Name="IsUse" ColumnName="IsUse" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="FmsMaterialCodeProgress">
+      <EntityTypeMapping TypeName="iBemsModel.FmsMaterialCodeProgress">
+        <MappingFragment StoreEntitySet="FmsMaterialCodeProgress">
+          <ScalarProperty Name="ProgressId" ColumnName="ProgressId" />
+          <ScalarProperty Name="Name" ColumnName="Name" />
+          <ScalarProperty Name="Description" ColumnName="Description" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="FmsMaterialCodePurchaseType">
+      <EntityTypeMapping TypeName="iBemsModel.FmsMaterialCodePurchaseType">
+        <MappingFragment StoreEntitySet="FmsMaterialCodePurchaseType">
+          <ScalarProperty Name="PurchaseTypeId" ColumnName="PurchaseTypeId" />
+          <ScalarProperty Name="Name" ColumnName="Name" />
+          <ScalarProperty Name="Comment" ColumnName="Comment" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="FmsMaterialCodeReleaseType">
+      <EntityTypeMapping TypeName="iBemsModel.FmsMaterialCodeReleaseType">
+        <MappingFragment StoreEntitySet="FmsMaterialCodeReleaseType">
+          <ScalarProperty Name="ReleaseTypeId" ColumnName="ReleaseTypeId" />
+          <ScalarProperty Name="Name" ColumnName="Name" />
+          <ScalarProperty Name="Description" ColumnName="Description" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="FmsMaterialCodeType">
+      <EntityTypeMapping TypeName="iBemsModel.FmsMaterialCodeType">
+        <MappingFragment StoreEntitySet="FmsMaterialCodeType">
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+          <ScalarProperty Name="MaterialTypeId" ColumnName="MaterialTypeId" />
+          <ScalarProperty Name="Name" ColumnName="Name" />
+          <ScalarProperty Name="Nickname" ColumnName="Nickname" />
+          <ScalarProperty Name="IsUse" ColumnName="IsUse" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="FmsMaterialPurchaseOrder">
+      <EntityTypeMapping TypeName="iBemsModel.FmsMaterialPurchaseOrder">
+        <MappingFragment StoreEntitySet="FmsMaterialPurchaseOrder">
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+          <ScalarProperty Name="BusinessFieldId" ColumnName="BusinessFieldId" />
+          <ScalarProperty Name="PurchaseOrderId" ColumnName="PurchaseOrderId" />
+          <ScalarProperty Name="PurchaseRequestId" ColumnName="PurchaseRequestId" />
+          <ScalarProperty Name="TradeCompanyId" ColumnName="TradeCompanyId" />
+          <ScalarProperty Name="OrderDate" ColumnName="OrderDate" />
+          <ScalarProperty Name="OrderUserId" ColumnName="OrderUserId" />
+          <ScalarProperty Name="Title" ColumnName="Title" />
+          <ScalarProperty Name="Reason" ColumnName="Reason" />
+          <ScalarProperty Name="StoredDueDate" ColumnName="StoredDueDate" />
+          <ScalarProperty Name="FileId" ColumnName="FileId" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="FmsMaterialPurchaseOrderMaterial">
+      <EntityTypeMapping TypeName="iBemsModel.FmsMaterialPurchaseOrderMaterial">
+        <MappingFragment StoreEntitySet="FmsMaterialPurchaseOrderMaterial">
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+          <ScalarProperty Name="BusinessFieldId" ColumnName="BusinessFieldId" />
+          <ScalarProperty Name="PurchaseOrderId" ColumnName="PurchaseOrderId" />
+          <ScalarProperty Name="MaterialId" ColumnName="MaterialId" />
+          <ScalarProperty Name="MaterialCount" ColumnName="MaterialCount" />
+          <ScalarProperty Name="UnitCost" ColumnName="UnitCost" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="FmsMaterialPurchaseRequest">
+      <EntityTypeMapping TypeName="iBemsModel.FmsMaterialPurchaseRequest">
+        <MappingFragment StoreEntitySet="FmsMaterialPurchaseRequest">
+          <ScalarProperty Name="bSameOrder" ColumnName="bSameOrder" />
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+          <ScalarProperty Name="BusinessFieldId" ColumnName="BusinessFieldId" />
+          <ScalarProperty Name="PurchaseRequestId" ColumnName="PurchaseRequestId" />
+          <ScalarProperty Name="PurchaseTypeId" ColumnName="PurchaseTypeId" />
+          <ScalarProperty Name="RequestDate" ColumnName="RequestDate" />
+          <ScalarProperty Name="RequestUserId" ColumnName="RequestUserId" />
+          <ScalarProperty Name="PurchaseHopeDate" ColumnName="PurchaseHopeDate" />
+          <ScalarProperty Name="Title" ColumnName="Title" />
+          <ScalarProperty Name="Reason" ColumnName="Reason" />
+          <ScalarProperty Name="ProgressId" ColumnName="ProgressId" />
+          <ScalarProperty Name="ApprovalDate" ColumnName="ApprovalDate" />
+          <ScalarProperty Name="ApprovalUserId" ColumnName="ApprovalUserId" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="FmsMaterialPurchaseRequestMaterial">
+      <EntityTypeMapping TypeName="iBemsModel.FmsMaterialPurchaseRequestMaterial">
+        <MappingFragment StoreEntitySet="FmsMaterialPurchaseRequestMaterial">
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+          <ScalarProperty Name="BusinessFieldId" ColumnName="BusinessFieldId" />
+          <ScalarProperty Name="PurchaseRequestId" ColumnName="PurchaseRequestId" />
+          <ScalarProperty Name="MaterialId" ColumnName="MaterialId" />
+          <ScalarProperty Name="MaterialCount" ColumnName="MaterialCount" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="FmsMaterialStored">
+      <EntityTypeMapping TypeName="iBemsModel.FmsMaterialStored">
+        <MappingFragment StoreEntitySet="FmsMaterialStored">
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+          <ScalarProperty Name="BusinessFieldId" ColumnName="BusinessFieldId" />
+          <ScalarProperty Name="StoredDate" ColumnName="StoredDate" />
+          <ScalarProperty Name="MaterialStoredId" ColumnName="MaterialStoredId" />
+          <ScalarProperty Name="PurchaseOrderId" ColumnName="PurchaseOrderId" />
+          <ScalarProperty Name="WarehouseId" ColumnName="WarehouseId" />
+          <ScalarProperty Name="MaterialId" ColumnName="MaterialId" />
+          <ScalarProperty Name="StoredCount" ColumnName="StoredCount" />
+          <ScalarProperty Name="RemainStoredCount" ColumnName="RemainStoredCount" />
+          <ScalarProperty Name="UnitCost" ColumnName="UnitCost" />
+          <ScalarProperty Name="StockCount" ColumnName="StockCount" />
+          <ScalarProperty Name="Note" ColumnName="Note" />
+          <ScalarProperty Name="StoredUserId" ColumnName="StoredUserId" />
+          <ScalarProperty Name="ApprovalDate" ColumnName="ApprovalDate" />
+          <ScalarProperty Name="ApprovalUserId" ColumnName="ApprovalUserId" />
+          <ScalarProperty Name="IsApproval" ColumnName="IsApproval" />
+          <ScalarProperty Name="LocationInWarehouse" ColumnName="LocationInWarehouse" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="FmsMaterialTradeCompany">
+      <EntityTypeMapping TypeName="iBemsModel.FmsMaterialTradeCompany">
+        <MappingFragment StoreEntitySet="FmsMaterialTradeCompany">
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+          <ScalarProperty Name="TradeCompanyId" ColumnName="TradeCompanyId" />
+          <ScalarProperty Name="Name" ColumnName="Name" />
+          <ScalarProperty Name="RegistrationNo" ColumnName="RegistrationNo" />
+          <ScalarProperty Name="RepresentativeName" ColumnName="RepresentativeName" />
+          <ScalarProperty Name="PhoneNo" ColumnName="PhoneNo" />
+          <ScalarProperty Name="FaxNo" ColumnName="FaxNo" />
+          <ScalarProperty Name="SalesName" ColumnName="SalesName" />
+          <ScalarProperty Name="SalesPhoneNo" ColumnName="SalesPhoneNo" />
+          <ScalarProperty Name="AddressZip1" ColumnName="AddressZip1" />
+          <ScalarProperty Name="AddressZip2" ColumnName="AddressZip2" />
+          <ScalarProperty Name="Address1" ColumnName="Address1" />
+          <ScalarProperty Name="Adderss2" ColumnName="Adderss2" />
+          <ScalarProperty Name="HomepageUri" ColumnName="HomepageUri" />
+          <ScalarProperty Name="Note" ColumnName="Note" />
+          <ScalarProperty Name="IsUse" ColumnName="IsUse" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="FmsMaterialWarehouse">
+      <EntityTypeMapping TypeName="iBemsModel.FmsMaterialWarehouse">
+        <MappingFragment StoreEntitySet="FmsMaterialWarehouse">
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+          <ScalarProperty Name="BusinessFieldId" ColumnName="BusinessFieldId" />
+          <ScalarProperty Name="WarehouseId" ColumnName="WarehouseId" />
+          <ScalarProperty Name="Name" ColumnName="Name" />
+          <ScalarProperty Name="IsUse" ColumnName="IsUse" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="FmsPaymentType">
+      <EntityTypeMapping TypeName="iBemsModel.FmsPaymentType">
+        <MappingFragment StoreEntitySet="FmsPaymentType">
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+          <ScalarProperty Name="PaymentTypeId" ColumnName="PaymentTypeId" />
+          <ScalarProperty Name="Name" ColumnName="Name" />
+          <ScalarProperty Name="IsUse" ColumnName="IsUse" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="FmsWorkCodeCauseClass">
+      <EntityTypeMapping TypeName="iBemsModel.FmsWorkCodeCauseClass">
+        <MappingFragment StoreEntitySet="FmsWorkCodeCauseClass">
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+          <ScalarProperty Name="CauseClassId" ColumnName="CauseClassId" />
+          <ScalarProperty Name="ParentId" ColumnName="ParentId" />
+          <ScalarProperty Name="Name" ColumnName="Name" />
+          <ScalarProperty Name="IsUse" ColumnName="IsUse" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="FmsWorkCodeCycleUnit">
+      <EntityTypeMapping TypeName="iBemsModel.FmsWorkCodeCycleUnit">
+        <MappingFragment StoreEntitySet="FmsWorkCodeCycleUnit">
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+          <ScalarProperty Name="CycleUnitId" ColumnName="CycleUnitId" />
+          <ScalarProperty Name="Name" ColumnName="Name" />
+          <ScalarProperty Name="Description" ColumnName="Description" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="FmsWorkCodeEmergency">
+      <EntityTypeMapping TypeName="iBemsModel.FmsWorkCodeEmergency">
+        <MappingFragment StoreEntitySet="FmsWorkCodeEmergency">
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+          <ScalarProperty Name="EmergencyId" ColumnName="EmergencyId" />
+          <ScalarProperty Name="Name" ColumnName="Name" />
+          <ScalarProperty Name="IsUse" ColumnName="IsUse" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="FmsWorkCodeHolidayWorkType">
+      <EntityTypeMapping TypeName="iBemsModel.FmsWorkCodeHolidayWorkType">
+        <MappingFragment StoreEntitySet="FmsWorkCodeHolidayWorkType">
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+          <ScalarProperty Name="HolidayWorkTypeId" ColumnName="HolidayWorkTypeId" />
+          <ScalarProperty Name="Name" ColumnName="Name" />
+          <ScalarProperty Name="IsUse" ColumnName="IsUse" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="FmsWorkCodeLegalInspectionAgency">
+      <EntityTypeMapping TypeName="iBemsModel.FmsWorkCodeLegalInspectionAgency">
+        <MappingFragment StoreEntitySet="FmsWorkCodeLegalInspectionAgency">
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+          <ScalarProperty Name="InspectionAgencyId" ColumnName="InspectionAgencyId" />
+          <ScalarProperty Name="Name" ColumnName="Name" />
+          <ScalarProperty Name="IsUse" ColumnName="IsUse" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="FmsWorkCodeProgress">
+      <EntityTypeMapping TypeName="iBemsModel.FmsWorkCodeProgress">
+        <MappingFragment StoreEntitySet="FmsWorkCodeProgress">
+          <ScalarProperty Name="WorkProgressId" ColumnName="WorkProgressId" />
+          <ScalarProperty Name="Name" ColumnName="Name" />
+          <ScalarProperty Name="Description" ColumnName="Description" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="FmsWorkCodeType">
+      <EntityTypeMapping TypeName="iBemsModel.FmsWorkCodeType">
+        <MappingFragment StoreEntitySet="FmsWorkCodeType">
+          <ScalarProperty Name="WorkTypeId" ColumnName="WorkTypeId" />
+          <ScalarProperty Name="Name" ColumnName="Name" />
+          <ScalarProperty Name="Description" ColumnName="Description" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="FmsWorkOrder">
+      <EntityTypeMapping TypeName="iBemsModel.FmsWorkOrder">
+        <MappingFragment StoreEntitySet="FmsWorkOrder">
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+          <ScalarProperty Name="WorkRequestId" ColumnName="WorkRequestId" />
+          <ScalarProperty Name="BusinessFieldId" ColumnName="BusinessFieldId" />
+          <ScalarProperty Name="EmergencyId" ColumnName="EmergencyId" />
+          <ScalarProperty Name="OrderUserId" ColumnName="OrderUserId" />
+          <ScalarProperty Name="OrderDate" ColumnName="OrderDate" />
+          <ScalarProperty Name="StartWorkDate" ColumnName="StartWorkDate" />
+          <ScalarProperty Name="Title" ColumnName="Title" />
+          <ScalarProperty Name="Content" ColumnName="Content" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="FmsWorkOrderToFacility">
+      <EntityTypeMapping TypeName="iBemsModel.FmsWorkOrderToFacility">
+        <MappingFragment StoreEntitySet="FmsWorkOrderToFacility">
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+          <ScalarProperty Name="WorkRequestId" ColumnName="WorkRequestId" />
+          <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="FmsWorkRequest">
+      <EntityTypeMapping TypeName="iBemsModel.FmsWorkRequest">
+        <MappingFragment StoreEntitySet="FmsWorkRequest">
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+          <ScalarProperty Name="WorkRequestId" ColumnName="WorkRequestId" />
+          <ScalarProperty Name="WorkTypeId" ColumnName="WorkTypeId" />
+          <ScalarProperty Name="BusinessFieldId" ColumnName="BusinessFieldId" />
+          <ScalarProperty Name="WorkScheduleId" ColumnName="WorkScheduleId" />
+          <ScalarProperty Name="WorkProgressId" ColumnName="WorkProgressId" />
+          <ScalarProperty Name="Title" ColumnName="Title" />
+          <ScalarProperty Name="Content" ColumnName="Content" />
+          <ScalarProperty Name="RequestUserId" ColumnName="RequestUserId" />
+          <ScalarProperty Name="RequestDate" ColumnName="RequestDate" />
+          <ScalarProperty Name="StartWorkDate" ColumnName="StartWorkDate" />
+          <ScalarProperty Name="RejectUserId" ColumnName="RejectUserId" />
+          <ScalarProperty Name="RejectDate" ColumnName="RejectDate" />
+          <ScalarProperty Name="RejectReason" ColumnName="RejectReason" />
+          <ScalarProperty Name="InspectionAgencyId" ColumnName="InspectionAgencyId" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="FmsWorkRequestToFacility">
+      <EntityTypeMapping TypeName="iBemsModel.FmsWorkRequestToFacility">
+        <MappingFragment StoreEntitySet="FmsWorkRequestToFacility">
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+          <ScalarProperty Name="WorkRequestId" ColumnName="WorkRequestId" />
+          <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="FmsWorkResult">
+      <EntityTypeMapping TypeName="iBemsModel.FmsWorkResult">
+        <MappingFragment StoreEntitySet="FmsWorkResult">
+          <ScalarProperty Name="ConfirmDesc" ColumnName="ConfirmDesc" />
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+          <ScalarProperty Name="WorkRequestId" ColumnName="WorkRequestId" />
+          <ScalarProperty Name="WorkerUserId" ColumnName="WorkerUserId" />
+          <ScalarProperty Name="StartDate" ColumnName="StartDate" />
+          <ScalarProperty Name="EndDate" ColumnName="EndDate" />
+          <ScalarProperty Name="CauseClassId" ColumnName="CauseClassId" />
+          <ScalarProperty Name="Content" ColumnName="Content" />
+          <ScalarProperty Name="ConfirmedDate" ColumnName="ConfirmedDate" />
+          <ScalarProperty Name="ConfirmedUserId" ColumnName="ConfirmedUserId" />
+          <ScalarProperty Name="IsConfirmed" ColumnName="IsConfirmed" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="FmsWorkResultCheckItem">
+      <EntityTypeMapping TypeName="iBemsModel.FmsWorkResultCheckItem">
+        <MappingFragment StoreEntitySet="FmsWorkResultCheckItem">
+          <ScalarProperty Name="FileId2" ColumnName="FileId2" />
+          <ScalarProperty Name="FileId1" ColumnName="FileId1" />
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+          <ScalarProperty Name="WorkRequestId" ColumnName="WorkRequestId" />
+          <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
+          <ScalarProperty Name="CheckItemId" ColumnName="CheckItemId" />
+          <ScalarProperty Name="BoolResult" ColumnName="BoolResult" />
+          <ScalarProperty Name="TextResult" ColumnName="TextResult" />
+          <ScalarProperty Name="CheckDate" ColumnName="CheckDate" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="FmsWorkResultCheckItemMaterial">
+      <EntityTypeMapping TypeName="iBemsModel.FmsWorkResultCheckItemMaterial">
+        <MappingFragment StoreEntitySet="FmsWorkResultCheckItemMaterial">
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+          <ScalarProperty Name="WorkRequestId" ColumnName="WorkRequestId" />
+          <ScalarProperty Name="CheckItemId" ColumnName="CheckItemId" />
+          <ScalarProperty Name="CheckItemMaterialId" ColumnName="CheckItemMaterialId" />
+          <ScalarProperty Name="MaterialId" ColumnName="MaterialId" />
+          <ScalarProperty Name="MaterialCount" ColumnName="MaterialCount" />
+          <ScalarProperty Name="MaterialCode" ColumnName="MaterialCode" />
+          <ScalarProperty Name="Name" ColumnName="Name" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="FmsWorkResultFile">
+      <EntityTypeMapping TypeName="iBemsModel.FmsWorkResultFile">
+        <MappingFragment StoreEntitySet="FmsWorkResultFile">
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+          <ScalarProperty Name="WorkRequestId" ColumnName="WorkRequestId" />
+          <ScalarProperty Name="FileId" ColumnName="FileId" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="FmsWorkResultLaw">
+      <EntityTypeMapping TypeName="iBemsModel.FmsWorkResultLaw">
+        <MappingFragment StoreEntitySet="FmsWorkResultLaw">
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+          <ScalarProperty Name="WorkRequestId" ColumnName="WorkRequestId" />
+          <ScalarProperty Name="CertificationNo" ColumnName="CertificationNo" />
+          <ScalarProperty Name="CheckCommission" ColumnName="CheckCommission" />
+          <ScalarProperty Name="CheckResult" ColumnName="CheckResult" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="FmsWorkResultToFacility">
+      <EntityTypeMapping TypeName="iBemsModel.FmsWorkResultToFacility">
+        <MappingFragment StoreEntitySet="FmsWorkResultToFacility">
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+          <ScalarProperty Name="WorkRequestId" ColumnName="WorkRequestId" />
+          <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="FmsWorkScheduleToFacility">
+      <EntityTypeMapping TypeName="iBemsModel.FmsWorkScheduleToFacility">
+        <MappingFragment StoreEntitySet="FmsWorkScheduleToFacility">
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+          <ScalarProperty Name="WorkScheduleId" ColumnName="WorkScheduleId" />
+          <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="sysdiagrams">
+      <EntityTypeMapping TypeName="iBemsModel.sysdiagrams">
+        <MappingFragment StoreEntitySet="sysdiagrams">
+          <ScalarProperty Name="name" ColumnName="name" />
+          <ScalarProperty Name="principal_id" ColumnName="principal_id" />
+          <ScalarProperty Name="diagram_id" ColumnName="diagram_id" />
+          <ScalarProperty Name="version" ColumnName="version" />
+          <ScalarProperty Name="definition" ColumnName="definition" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="FmsDailyCheckReport">
+      <EntityTypeMapping TypeName="iBemsModel.FmsDailyCheckReport">
+        <MappingFragment StoreEntitySet="FmsDailyCheckReport">
+          <ScalarProperty Name="AddDate" ColumnName="AddDate" />
+          <ScalarProperty Name="RegisterUserId" ColumnName="RegisterUserId" />
+          <ScalarProperty Name="Contents" ColumnName="Contents" />
+          <ScalarProperty Name="Name" ColumnName="Name" />
+          <ScalarProperty Name="DailyCheckReportId" ColumnName="DailyCheckReportId" />
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="FmsFacilityOperationReport">
+      <EntityTypeMapping TypeName="iBemsModel.FmsFacilityOperationReport">
+        <MappingFragment StoreEntitySet="FmsFacilityOperationReport">
+          <ScalarProperty Name="AddDate" ColumnName="AddDate" />
+          <ScalarProperty Name="RegisterUserId" ColumnName="RegisterUserId" />
+          <ScalarProperty Name="Contents" ColumnName="Contents" />
+          <ScalarProperty Name="Name" ColumnName="Name" />
+          <ScalarProperty Name="FacilityOperationReportId" ColumnName="FacilityOperationReportId" />
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="FmsBudgetDetail">
+      <EntityTypeMapping TypeName="iBemsModel.FmsBudgetDetail">
+        <MappingFragment StoreEntitySet="FmsBudgetDetail">
+          <ScalarProperty Name="RootBudgetClassId" ColumnName="RootBudgetClassId" />
+          <ScalarProperty Name="MonthlyBudget" ColumnName="MonthlyBudget" />
+          <ScalarProperty Name="YearlyBudget" ColumnName="YearlyBudget" />
+          <ScalarProperty Name="IsUse" ColumnName="IsUse" />
+          <ScalarProperty Name="Abbreviation" ColumnName="Abbreviation" />
+          <ScalarProperty Name="Name" ColumnName="Name" />
+          <ScalarProperty Name="Depth" ColumnName="Depth" />
+          <ScalarProperty Name="ParentBudgetClassId" ColumnName="ParentBudgetClassId" />
+          <ScalarProperty Name="BudgetSeq" ColumnName="BudgetSeq" />
+          <ScalarProperty Name="BudgetClassId" ColumnName="BudgetClassId" />
+          <ScalarProperty Name="Year" ColumnName="Year" />
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="FmsBudgetDetailExecution">
+      <EntityTypeMapping TypeName="iBemsModel.FmsBudgetDetailExecution">
+        <MappingFragment StoreEntitySet="FmsBudgetDetailExecution">
+          <ScalarProperty Name="RootBudgetClassId" ColumnName="RootBudgetClassId" />
+          <ScalarProperty Name="YearlyExecution" ColumnName="YearlyExecution" />
+          <ScalarProperty Name="MonthlyBudget" ColumnName="MonthlyBudget" />
+          <ScalarProperty Name="YearlyBudget" ColumnName="YearlyBudget" />
+          <ScalarProperty Name="Month" ColumnName="Month" />
+          <ScalarProperty Name="MonthlyExecution" ColumnName="MonthlyExecution" />
+          <ScalarProperty Name="ParentBudgetClassId" ColumnName="ParentBudgetClassId" />
+          <ScalarProperty Name="BudgetClassId" ColumnName="BudgetClassId" />
+          <ScalarProperty Name="Year" ColumnName="Year" />
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="FmsMonthlyReport">
+      <EntityTypeMapping TypeName="iBemsModel.FmsMonthlyReport">
+        <MappingFragment StoreEntitySet="FmsMonthlyReport">
+          <ScalarProperty Name="AddDate" ColumnName="AddDate" />
+          <ScalarProperty Name="RegisterUserId" ColumnName="RegisterUserId" />
+          <ScalarProperty Name="Contents" ColumnName="Contents" />
+          <ScalarProperty Name="Name" ColumnName="Name" />
+          <ScalarProperty Name="MonthlyReportId" ColumnName="MonthlyReportId" />
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="FmsInvestmentCost">
+      <EntityTypeMapping TypeName="iBemsModel.FmsInvestmentCost">
+        <MappingFragment StoreEntitySet="FmsInvestmentCost">
+          <ScalarProperty Name="InsvestmentCost" ColumnName="InsvestmentCost" />
+          <ScalarProperty Name="Comment" ColumnName="Comment" />
+          <ScalarProperty Name="Name" ColumnName="Name" />
+          <ScalarProperty Name="InsvestmentCostId" ColumnName="InsvestmentCostId" />
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="CmHolidayWeekend">
+      <EntityTypeMapping TypeName="iBemsModel.CmHolidayWeekend">
+        <MappingFragment StoreEntitySet="CmHolidayWeekend">
+          <ScalarProperty Name="IsUse" ColumnName="IsUse" />
+          <ScalarProperty Name="Sunday" ColumnName="Sunday" />
+          <ScalarProperty Name="Saturday" ColumnName="Saturday" />
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="FmsMaterial">
+      <EntityTypeMapping TypeName="iBemsModel.FmsMaterial">
+        <MappingFragment StoreEntitySet="FmsMaterial">
+          <ScalarProperty Name="FinalTotalStockAmount" ColumnName="FinalTotalStockAmount" />
+          <ScalarProperty Name="FinalStockCount" ColumnName="FinalStockCount" />
+          <ScalarProperty Name="IsUse" ColumnName="IsUse" />
+          <ScalarProperty Name="IsDiscontinued" ColumnName="IsDiscontinued" />
+          <ScalarProperty Name="Note" ColumnName="Note" />
+          <ScalarProperty Name="ImageFileId" ColumnName="ImageFileId" />
+          <ScalarProperty Name="FinalPrice" ColumnName="FinalPrice" />
+          <ScalarProperty Name="Standard" ColumnName="Standard" />
+          <ScalarProperty Name="Manufacturer" ColumnName="Manufacturer" />
+          <ScalarProperty Name="ReasonableStockCount" ColumnName="ReasonableStockCount" />
+          <ScalarProperty Name="DurableYears" ColumnName="DurableYears" />
+          <ScalarProperty Name="Unit" ColumnName="Unit" />
+          <ScalarProperty Name="Rfid" ColumnName="Rfid" />
+          <ScalarProperty Name="TradeCompanyId" ColumnName="TradeCompanyId" />
+          <ScalarProperty Name="WarehouseId" ColumnName="WarehouseId" />
+          <ScalarProperty Name="MaterialTypeId" ColumnName="MaterialTypeId" />
+          <ScalarProperty Name="LocationId" ColumnName="LocationId" />
+          <ScalarProperty Name="ThirdClassId" ColumnName="ThirdClassId" />
+          <ScalarProperty Name="SecondClassId" ColumnName="SecondClassId" />
+          <ScalarProperty Name="FirstClassId" ColumnName="FirstClassId" />
+          <ScalarProperty Name="Name" ColumnName="Name" />
+          <ScalarProperty Name="MaterialCode" ColumnName="MaterialCode" />
+          <ScalarProperty Name="MaterialId" ColumnName="MaterialId" />
+          <ScalarProperty Name="BusinessFieldId" ColumnName="BusinessFieldId" />
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="FmsMaterialRelease">
+      <EntityTypeMapping TypeName="iBemsModel.FmsMaterialRelease">
+        <MappingFragment StoreEntitySet="FmsMaterialRelease">
+          <ScalarProperty Name="StockCountByPoint" ColumnName="StockCountByPoint" />
+          <ScalarProperty Name="Comment" ColumnName="Comment" />
+          <ScalarProperty Name="IsConfirmed" ColumnName="IsConfirmed" />
+          <ScalarProperty Name="ConfirmedDate" ColumnName="ConfirmedDate" />
+          <ScalarProperty Name="ConfirmedUserId" ColumnName="ConfirmedUserId" />
+          <ScalarProperty Name="AdjustmentUserId" ColumnName="AdjustmentUserId" />
+          <ScalarProperty Name="AdjustmentTypeId" ColumnName="AdjustmentTypeId" />
+          <ScalarProperty Name="ReleaseTotalCost" ColumnName="ReleaseTotalCost" />
+          <ScalarProperty Name="MaterialCount" ColumnName="MaterialCount" />
+          <ScalarProperty Name="MaterialId" ColumnName="MaterialId" />
+          <ScalarProperty Name="WarehouseId" ColumnName="WarehouseId" />
+          <ScalarProperty Name="WorkRequestId" ColumnName="WorkRequestId" />
+          <ScalarProperty Name="ReleaseTypeId" ColumnName="ReleaseTypeId" />
+          <ScalarProperty Name="MaterialReleaseId" ColumnName="MaterialReleaseId" />
+          <ScalarProperty Name="ReleaseDate" ColumnName="ReleaseDate" />
+          <ScalarProperty Name="BusinessFieldId" ColumnName="BusinessFieldId" />
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="CmPatrolType">
+      <EntityTypeMapping TypeName="iBemsModel.CmPatrolType">
+        <MappingFragment StoreEntitySet="CmPatrolType">
+          <ScalarProperty Name="IsUse" ColumnName="IsUse" />
+          <ScalarProperty Name="Name" ColumnName="Name" />
+          <ScalarProperty Name="PatrolTypeId" ColumnName="PatrolTypeId" />
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="CmPatrolGroup">
+      <EntityTypeMapping TypeName="iBemsModel.CmPatrolGroup">
+        <MappingFragment StoreEntitySet="CmPatrolGroup">
+          <ScalarProperty Name="Name" ColumnName="Name" />
+          <ScalarProperty Name="PatrolGroupId" ColumnName="PatrolGroupId" />
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="CmPatrolGroupUser">
+      <EntityTypeMapping TypeName="iBemsModel.CmPatrolGroupUser">
+        <MappingFragment StoreEntitySet="CmPatrolGroupUser">
+          <ScalarProperty Name="UserId" ColumnName="UserId" />
+          <ScalarProperty Name="PatrolGroupId" ColumnName="PatrolGroupId" />
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="CmPatrolPos">
+      <EntityTypeMapping TypeName="iBemsModel.CmPatrolPos">
+        <MappingFragment StoreEntitySet="CmPatrolPos">
+          <ScalarProperty Name="PosDesc" ColumnName="PosDesc" />
+          <ScalarProperty Name="TagId" ColumnName="TagId" />
+          <ScalarProperty Name="Name" ColumnName="Name" />
+          <ScalarProperty Name="PosId" ColumnName="PosId" />
+          <ScalarProperty Name="FloorId" ColumnName="FloorId" />
+          <ScalarProperty Name="BuildingId" ColumnName="BuildingId" />
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="CmPatrolCourse">
+      <EntityTypeMapping TypeName="iBemsModel.CmPatrolCourse">
+        <MappingFragment StoreEntitySet="CmPatrolCourse">
+          <ScalarProperty Name="Name" ColumnName="Name" />
+          <ScalarProperty Name="PatrolCourseId" ColumnName="PatrolCourseId" />
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="CmPatrolCoursePos">
+      <EntityTypeMapping TypeName="iBemsModel.CmPatrolCoursePos">
+        <MappingFragment StoreEntitySet="CmPatrolCoursePos">
+          <ScalarProperty Name="FloorId" ColumnName="FloorId" />
+          <ScalarProperty Name="BuildingId" ColumnName="BuildingId" />
+          <ScalarProperty Name="CourseOrder" ColumnName="CourseOrder" />
+          <ScalarProperty Name="PosId" ColumnName="PosId" />
+          <ScalarProperty Name="PatrolCourseId" ColumnName="PatrolCourseId" />
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="CmPatrolPlan">
+      <EntityTypeMapping TypeName="iBemsModel.CmPatrolPlan">
+        <MappingFragment StoreEntitySet="CmPatrolPlan">
+          <ScalarProperty Name="inDate" ColumnName="inDate" />
+          <ScalarProperty Name="term" ColumnName="term" />
+          <ScalarProperty Name="PlanDesc" ColumnName="PlanDesc" />
+          <ScalarProperty Name="Name" ColumnName="Name" />
+          <ScalarProperty Name="CourseId" ColumnName="CourseId" />
+          <ScalarProperty Name="GroupId" ColumnName="GroupId" />
+          <ScalarProperty Name="PatrolPlanId" ColumnName="PatrolPlanId" />
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="CmPatrolHistoryPos">
+      <EntityTypeMapping TypeName="iBemsModel.CmPatrolHistoryPos">
+        <MappingFragment StoreEntitySet="CmPatrolHistoryPos">
+          <ScalarProperty Name="mId" ColumnName="mId" />
+          <ScalarProperty Name="resultType" ColumnName="resultType" />
+          <ScalarProperty Name="term" ColumnName="term" />
+          <ScalarProperty Name="PatrolTime" ColumnName="PatrolTime" />
+          <ScalarProperty Name="PosId" ColumnName="PosId" />
+          <ScalarProperty Name="PatrolHistoryId" ColumnName="PatrolHistoryId" />
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="BemsPeakInfo">
+      <EntityTypeMapping TypeName="iBemsModel.BemsPeakInfo">
+        <MappingFragment StoreEntitySet="BemsPeakInfo">
+          <ScalarProperty Name="todayMinPeakValue" ColumnName="todayMinPeakValue" />
+          <ScalarProperty Name="todayMaxPeakValue" ColumnName="todayMaxPeakValue" />
+          <ScalarProperty Name="MinPeakValue" ColumnName="MinPeakValue" />
+          <ScalarProperty Name="MinDateTime" ColumnName="MinDateTime" />
+          <ScalarProperty Name="MaxPeakValue" ColumnName="MaxPeakValue" />
+          <ScalarProperty Name="MaxDateTime" ColumnName="MaxDateTime" />
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="BemsPeakHistory">
+      <EntityTypeMapping TypeName="iBemsModel.BemsPeakHistory">
+        <MappingFragment StoreEntitySet="BemsPeakHistory">
+          <ScalarProperty Name="CurrentValue" ColumnName="CurrentValue" />
+          <ScalarProperty Name="CreatedDateTime" ColumnName="CreatedDateTime" />
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="CmPatrolSchedule">
+      <EntityTypeMapping TypeName="iBemsModel.CmPatrolSchedule">
+        <MappingFragment StoreEntitySet="CmPatrolSchedule">
+          <ScalarProperty Name="patrolDateTime" ColumnName="patrolDateTime" />
+          <ScalarProperty Name="inDate" ColumnName="inDate" />
+          <ScalarProperty Name="ScheduleDesc" ColumnName="ScheduleDesc" />
+          <ScalarProperty Name="Name" ColumnName="Name" />
+          <ScalarProperty Name="PlanId" ColumnName="PlanId" />
+          <ScalarProperty Name="ScheduleId" ColumnName="ScheduleId" />
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="BemsNoticePriceBase">
+      <EntityTypeMapping TypeName="iBemsModel.BemsNoticePriceBase">
+        <MappingFragment StoreEntitySet="BemsNoticePriceBase">
+          <ScalarProperty Name="SecondaryPrice" ColumnName="SecondaryPrice" />
+          <ScalarProperty Name="PrimaryPrice" ColumnName="PrimaryPrice" />
+          <ScalarProperty Name="ContractType" ColumnName="ContractType" />
+          <ScalarProperty Name="ApplyDate" ColumnName="ApplyDate" />
+          <ScalarProperty Name="FuelTypeId" ColumnName="FuelTypeId" />
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="BemsNoticePriceContractType">
+      <EntityTypeMapping TypeName="iBemsModel.BemsNoticePriceContractType">
+        <MappingFragment StoreEntitySet="BemsNoticePriceContractType">
+          <ScalarProperty Name="Name" ColumnName="Name" />
+          <ScalarProperty Name="ContractType" ColumnName="ContractType" />
+          <ScalarProperty Name="FuelTypeId" ColumnName="FuelTypeId" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="BemsNoticePriceDetail">
+      <EntityTypeMapping TypeName="iBemsModel.BemsNoticePriceDetail">
+        <MappingFragment StoreEntitySet="BemsNoticePriceDetail">
+          <ScalarProperty Name="P12" ColumnName="P12" />
+          <ScalarProperty Name="P11" ColumnName="P11" />
+          <ScalarProperty Name="P10" ColumnName="P10" />
+          <ScalarProperty Name="P09" ColumnName="P09" />
+          <ScalarProperty Name="P08" ColumnName="P08" />
+          <ScalarProperty Name="P07" ColumnName="P07" />
+          <ScalarProperty Name="P06" ColumnName="P06" />
+          <ScalarProperty Name="P05" ColumnName="P05" />
+          <ScalarProperty Name="P04" ColumnName="P04" />
+          <ScalarProperty Name="P03" ColumnName="P03" />
+          <ScalarProperty Name="P02" ColumnName="P02" />
+          <ScalarProperty Name="P01" ColumnName="P01" />
+          <ScalarProperty Name="DataId" ColumnName="DataId" />
+          <ScalarProperty Name="ContractType" ColumnName="ContractType" />
+          <ScalarProperty Name="ApplyDate" ColumnName="ApplyDate" />
+          <ScalarProperty Name="FuelTypeId" ColumnName="FuelTypeId" />
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="BemsPeakFacility">
+      <EntityTypeMapping TypeName="iBemsModel.BemsPeakFacility">
+        <MappingFragment StoreEntitySet="BemsPeakFacility">
+          <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
+          <ScalarProperty Name="MaxDateTime" ColumnName="MaxDateTime" />
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="CmSite">
+      <EntityTypeMapping TypeName="iBemsModel.CmSite">
+        <MappingFragment StoreEntitySet="CmSite">
+          <ScalarProperty Name="CDD" ColumnName="CDD" />
+          <ScalarProperty Name="HDD" ColumnName="HDD" />
+          <ScalarProperty Name="MainUseIndex" ColumnName="MainUseIndex" />
+          <ScalarProperty Name="Standard" ColumnName="Standard" />
+          <ScalarProperty Name="CompletionDate" ColumnName="CompletionDate" />
+          <ScalarProperty Name="MainUse" ColumnName="MainUse" />
+          <ScalarProperty Name="BuildingCoverageRatio" ColumnName="BuildingCoverageRatio" />
+          <ScalarProperty Name="FloorAreaRatio" ColumnName="FloorAreaRatio" />
+          <ScalarProperty Name="BuildingArea" ColumnName="BuildingArea" />
+          <ScalarProperty Name="GrossArea" ColumnName="GrossArea" />
+          <ScalarProperty Name="BuildingSize" ColumnName="BuildingSize" />
+          <ScalarProperty Name="controlSchedule" ColumnName="controlSchedule" />
+          <ScalarProperty Name="lng" ColumnName="lng" />
+          <ScalarProperty Name="lat" ColumnName="lat" />
+          <ScalarProperty Name="MaxPeak" ColumnName="MaxPeak" />
+          <ScalarProperty Name="ScheduleCheckHour" ColumnName="ScheduleCheckHour" />
+          <ScalarProperty Name="IsControlSchedule" ColumnName="IsControlSchedule" />
+          <ScalarProperty Name="UpdatedUserId" ColumnName="UpdatedUserId" />
+          <ScalarProperty Name="UpdatedDate" ColumnName="UpdatedDate" />
+          <ScalarProperty Name="InsertedUserId" ColumnName="InsertedUserId" />
+          <ScalarProperty Name="InsertedDate" ColumnName="InsertedDate" />
+          <ScalarProperty Name="SortOrderNo" ColumnName="SortOrderNo" />
+          <ScalarProperty Name="IsUse" ColumnName="IsUse" />
+          <ScalarProperty Name="Comment" ColumnName="Comment" />
+          <ScalarProperty Name="URL" ColumnName="URL" />
+          <ScalarProperty Name="PhoneNo" ColumnName="PhoneNo" />
+          <ScalarProperty Name="Adderss2" ColumnName="Adderss2" />
+          <ScalarProperty Name="Address1" ColumnName="Address1" />
+          <ScalarProperty Name="AddressZip2" ColumnName="AddressZip2" />
+          <ScalarProperty Name="AddressZip1" ColumnName="AddressZip1" />
+          <ScalarProperty Name="Name" ColumnName="Name" />
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="FmsReport">
+      <EntityTypeMapping TypeName="iBemsModel.FmsReport">
+        <MappingFragment StoreEntitySet="FmsReport">
+          <ScalarProperty Name="BusinessFieldId" ColumnName="BusinessFieldId" />
+          <ScalarProperty Name="ConfirmUserId2" ColumnName="ConfirmUserId2" />
+          <ScalarProperty Name="ConfirmUserId1" ColumnName="ConfirmUserId1" />
+          <ScalarProperty Name="MakeDate" ColumnName="MakeDate" />
+          <ScalarProperty Name="FileId" ColumnName="FileId" />
+          <ScalarProperty Name="RegisterUserId" ColumnName="RegisterUserId" />
+          <ScalarProperty Name="Contents" ColumnName="Contents" />
+          <ScalarProperty Name="Title" ColumnName="Title" />
+          <ScalarProperty Name="RId" ColumnName="RId" />
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="CmServiceEnergyCalcMonth">
+      <EntityTypeMapping TypeName="iBemsModel.CmServiceEnergyCalcMonth">
+        <MappingFragment StoreEntitySet="CmServiceEnergyCalcMonth">
+          <ScalarProperty Name="Value" ColumnName="Value" />
+          <ScalarProperty Name="ServiceTypeId" ColumnName="ServiceTypeId" />
+          <ScalarProperty Name="calDate" ColumnName="calDate" />
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="CmServiceEnergyCalcDay">
+      <EntityTypeMapping TypeName="iBemsModel.CmServiceEnergyCalcDay">
+        <MappingFragment StoreEntitySet="CmServiceEnergyCalcDay">
+          <ScalarProperty Name="Value" ColumnName="Value" />
+          <ScalarProperty Name="ServiceTypeId" ColumnName="ServiceTypeId" />
+          <ScalarProperty Name="calDate" ColumnName="calDate" />
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="CmPatrolHistory">
+      <EntityTypeMapping TypeName="iBemsModel.CmPatrolHistory">
+        <MappingFragment StoreEntitySet="CmPatrolHistory">
+          <ScalarProperty Name="resultAbnormalCnt" ColumnName="resultAbnormalCnt" />
+          <ScalarProperty Name="resultNormalCnt" ColumnName="resultNormalCnt" />
+          <ScalarProperty Name="resultPosCnt" ColumnName="resultPosCnt" />
+          <ScalarProperty Name="resultDesc" ColumnName="resultDesc" />
+          <ScalarProperty Name="resultTypeId" ColumnName="resultTypeId" />
+          <ScalarProperty Name="endDate" ColumnName="endDate" />
+          <ScalarProperty Name="startDate" ColumnName="startDate" />
+          <ScalarProperty Name="ScheduleId" ColumnName="ScheduleId" />
+          <ScalarProperty Name="PatrolHistoryId" ColumnName="PatrolHistoryId" />
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="BemsReportFormat">
+      <EntityTypeMapping TypeName="iBemsModel.BemsReportFormat">
+        <MappingFragment StoreEntitySet="BemsReportFormat">
+          <ScalarProperty Name="parts" ColumnName="parts" />
+          <ScalarProperty Name="Content" ColumnName="Content" />
+          <ScalarProperty Name="FormatName" ColumnName="FormatName" />
+          <ScalarProperty Name="ReportFormatId" ColumnName="ReportFormatId" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="CmMenu">
+      <EntityTypeMapping TypeName="iBemsModel.CmMenu">
+        <MappingFragment StoreEntitySet="CmMenu">
+          <ScalarProperty Name="Name" ColumnName="Name" />
+          <ScalarProperty Name="MenuPath" ColumnName="MenuPath" />
+          <ScalarProperty Name="Used" ColumnName="Used" />
+          <ScalarProperty Name="MenuId" ColumnName="MenuId" />
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="BemsPeopleIncrease">
+      <EntityTypeMapping TypeName="iBemsModel.BemsPeopleIncrease">
+        <MappingFragment StoreEntitySet="BemsPeopleIncrease">
+          <ScalarProperty Name="m12" ColumnName="m12" />
+          <ScalarProperty Name="m11" ColumnName="m11" />
+          <ScalarProperty Name="m10" ColumnName="m10" />
+          <ScalarProperty Name="m9" ColumnName="m9" />
+          <ScalarProperty Name="m8" ColumnName="m8" />
+          <ScalarProperty Name="m7" ColumnName="m7" />
+          <ScalarProperty Name="m6" ColumnName="m6" />
+          <ScalarProperty Name="m5" ColumnName="m5" />
+          <ScalarProperty Name="m4" ColumnName="m4" />
+          <ScalarProperty Name="m3" ColumnName="m3" />
+          <ScalarProperty Name="m2" ColumnName="m2" />
+          <ScalarProperty Name="m1" ColumnName="m1" />
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+          <ScalarProperty Name="Date" ColumnName="Date" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="BemsPriceCode">
+      <EntityTypeMapping TypeName="iBemsModel.BemsPriceCode">
+        <MappingFragment StoreEntitySet="BemsPriceCode">
+          <ScalarProperty Name="Unit" ColumnName="Unit" />
+          <ScalarProperty Name="FuelTypeId" ColumnName="FuelTypeId" />
+          <ScalarProperty Name="PriceCodeDesc" ColumnName="PriceCodeDesc" />
+          <ScalarProperty Name="PriceCode" ColumnName="PriceCode" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="BemsPriceFormula">
+      <EntityTypeMapping TypeName="iBemsModel.BemsPriceFormula">
+        <MappingFragment StoreEntitySet="BemsPriceFormula">
+          <ScalarProperty Name="UseYN" ColumnName="UseYN" />
+          <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
+          <ScalarProperty Name="FormulaId" ColumnName="FormulaId" />
+          <ScalarProperty Name="FacilityTypeId" ColumnName="FacilityTypeId" />
+          <ScalarProperty Name="PriceTypeId" ColumnName="PriceTypeId" />
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="BemsPriceMeta">
+      <EntityTypeMapping TypeName="iBemsModel.BemsPriceMeta">
+        <MappingFragment StoreEntitySet="BemsPriceMeta">
+          <ScalarProperty Name="C12_23" ColumnName="12_23" />
+          <ScalarProperty Name="C12_22" ColumnName="12_22" />
+          <ScalarProperty Name="C12_21" ColumnName="12_21" />
+          <ScalarProperty Name="C12_20" ColumnName="12_20" />
+          <ScalarProperty Name="C12_19" ColumnName="12_19" />
+          <ScalarProperty Name="C12_18" ColumnName="12_18" />
+          <ScalarProperty Name="C12_17" ColumnName="12_17" />
+          <ScalarProperty Name="C12_16" ColumnName="12_16" />
+          <ScalarProperty Name="C12_15" ColumnName="12_15" />
+          <ScalarProperty Name="C12_14" ColumnName="12_14" />
+          <ScalarProperty Name="C12_13" ColumnName="12_13" />
+          <ScalarProperty Name="C12_12" ColumnName="12_12" />
+          <ScalarProperty Name="C12_11" ColumnName="12_11" />
+          <ScalarProperty Name="C12_10" ColumnName="12_10" />
+          <ScalarProperty Name="C12_09" ColumnName="12_09" />
+          <ScalarProperty Name="C12_08" ColumnName="12_08" />
+          <ScalarProperty Name="C12_07" ColumnName="12_07" />
+          <ScalarProperty Name="C12_06" ColumnName="12_06" />
+          <ScalarProperty Name="C12_05" ColumnName="12_05" />
+          <ScalarProperty Name="C12_04" ColumnName="12_04" />
+          <ScalarProperty Name="C12_03" ColumnName="12_03" />
+          <ScalarProperty Name="C12_02" ColumnName="12_02" />
+          <ScalarProperty Name="C12_01" ColumnName="12_01" />
+          <ScalarProperty Name="C12_00" ColumnName="12_00" />
+          <ScalarProperty Name="C11_23" ColumnName="11_23" />
+          <ScalarProperty Name="C11_22" ColumnName="11_22" />
+          <ScalarProperty Name="C11_21" ColumnName="11_21" />
+          <ScalarProperty Name="C11_20" ColumnName="11_20" />
+          <ScalarProperty Name="C11_19" ColumnName="11_19" />
+          <ScalarProperty Name="C11_18" ColumnName="11_18" />
+          <ScalarProperty Name="C11_17" ColumnName="11_17" />
+          <ScalarProperty Name="C11_16" ColumnName="11_16" />
+          <ScalarProperty Name="C11_15" ColumnName="11_15" />
+          <ScalarProperty Name="C11_14" ColumnName="11_14" />
+          <ScalarProperty Name="C11_13" ColumnName="11_13" />
+          <ScalarProperty Name="C11_12" ColumnName="11_12" />
+          <ScalarProperty Name="C11_11" ColumnName="11_11" />
+          <ScalarProperty Name="C11_10" ColumnName="11_10" />
+          <ScalarProperty Name="C11_09" ColumnName="11_09" />
+          <ScalarProperty Name="C11_08" ColumnName="11_08" />
+          <ScalarProperty Name="C11_07" ColumnName="11_07" />
+          <ScalarProperty Name="C11_06" ColumnName="11_06" />
+          <ScalarProperty Name="C11_05" ColumnName="11_05" />
+          <ScalarProperty Name="C11_04" ColumnName="11_04" />
+          <ScalarProperty Name="C11_03" ColumnName="11_03" />
+          <ScalarProperty Name="C11_02" ColumnName="11_02" />
+          <ScalarProperty Name="C11_01" ColumnName="11_01" />
+          <ScalarProperty Name="C11_00" ColumnName="11_00" />
+          <ScalarProperty Name="C10_23" ColumnName="10_23" />
+          <ScalarProperty Name="C10_22" ColumnName="10_22" />
+          <ScalarProperty Name="C10_21" ColumnName="10_21" />
+          <ScalarProperty Name="C10_20" ColumnName="10_20" />
+          <ScalarProperty Name="C10_19" ColumnName="10_19" />
+          <ScalarProperty Name="C10_18" ColumnName="10_18" />
+          <ScalarProperty Name="C10_17" ColumnName="10_17" />
+          <ScalarProperty Name="C10_16" ColumnName="10_16" />
+          <ScalarProperty Name="C10_15" ColumnName="10_15" />
+          <ScalarProperty Name="C10_14" ColumnName="10_14" />
+          <ScalarProperty Name="C10_13" ColumnName="10_13" />
+          <ScalarProperty Name="C10_12" ColumnName="10_12" />
+          <ScalarProperty Name="C10_11" ColumnName="10_11" />
+          <ScalarProperty Name="C10_10" ColumnName="10_10" />
+          <ScalarProperty Name="C10_09" ColumnName="10_09" />
+          <ScalarProperty Name="C10_08" ColumnName="10_08" />
+          <ScalarProperty Name="C10_07" ColumnName="10_07" />
+          <ScalarProperty Name="C10_06" ColumnName="10_06" />
+          <ScalarProperty Name="C10_05" ColumnName="10_05" />
+          <ScalarProperty Name="C10_04" ColumnName="10_04" />
+          <ScalarProperty Name="C10_03" ColumnName="10_03" />
+          <ScalarProperty Name="C10_02" ColumnName="10_02" />
+          <ScalarProperty Name="C10_01" ColumnName="10_01" />
+          <ScalarProperty Name="C10_00" ColumnName="10_00" />
+          <ScalarProperty Name="C09_23" ColumnName="09_23" />
+          <ScalarProperty Name="C09_22" ColumnName="09_22" />
+          <ScalarProperty Name="C09_21" ColumnName="09_21" />
+          <ScalarProperty Name="C09_20" ColumnName="09_20" />
+          <ScalarProperty Name="C09_19" ColumnName="09_19" />
+          <ScalarProperty Name="C09_18" ColumnName="09_18" />
+          <ScalarProperty Name="C09_17" ColumnName="09_17" />
+          <ScalarProperty Name="C09_16" ColumnName="09_16" />
+          <ScalarProperty Name="C09_15" ColumnName="09_15" />
+          <ScalarProperty Name="C09_14" ColumnName="09_14" />
+          <ScalarProperty Name="C09_13" ColumnName="09_13" />
+          <ScalarProperty Name="C09_12" ColumnName="09_12" />
+          <ScalarProperty Name="C09_11" ColumnName="09_11" />
+          <ScalarProperty Name="C09_10" ColumnName="09_10" />
+          <ScalarProperty Name="C09_09" ColumnName="09_09" />
+          <ScalarProperty Name="C09_08" ColumnName="09_08" />
+          <ScalarProperty Name="C09_07" ColumnName="09_07" />
+          <ScalarProperty Name="C09_06" ColumnName="09_06" />
+          <ScalarProperty Name="C09_05" ColumnName="09_05" />
+          <ScalarProperty Name="C09_04" ColumnName="09_04" />
+          <ScalarProperty Name="C09_03" ColumnName="09_03" />
+          <ScalarProperty Name="C09_02" ColumnName="09_02" />
+          <ScalarProperty Name="C09_01" ColumnName="09_01" />
+          <ScalarProperty Name="C09_00" ColumnName="09_00" />
+          <ScalarProperty Name="C08_23" ColumnName="08_23" />
+          <ScalarProperty Name="C08_22" ColumnName="08_22" />
+          <ScalarProperty Name="C08_21" ColumnName="08_21" />
+          <ScalarProperty Name="C08_20" ColumnName="08_20" />
+          <ScalarProperty Name="C08_19" ColumnName="08_19" />
+          <ScalarProperty Name="C08_18" ColumnName="08_18" />
+          <ScalarProperty Name="C08_17" ColumnName="08_17" />
+          <ScalarProperty Name="C08_16" ColumnName="08_16" />
+          <ScalarProperty Name="C08_15" ColumnName="08_15" />
+          <ScalarProperty Name="C08_14" ColumnName="08_14" />
+          <ScalarProperty Name="C08_13" ColumnName="08_13" />
+          <ScalarProperty Name="C08_12" ColumnName="08_12" />
+          <ScalarProperty Name="C08_11" ColumnName="08_11" />
+          <ScalarProperty Name="C08_10" ColumnName="08_10" />
+          <ScalarProperty Name="C08_09" ColumnName="08_09" />
+          <ScalarProperty Name="C08_08" ColumnName="08_08" />
+          <ScalarProperty Name="C08_07" ColumnName="08_07" />
+          <ScalarProperty Name="C08_06" ColumnName="08_06" />
+          <ScalarProperty Name="C08_05" ColumnName="08_05" />
+          <ScalarProperty Name="C08_04" ColumnName="08_04" />
+          <ScalarProperty Name="C08_03" ColumnName="08_03" />
+          <ScalarProperty Name="C08_02" ColumnName="08_02" />
+          <ScalarProperty Name="C08_01" ColumnName="08_01" />
+          <ScalarProperty Name="C08_00" ColumnName="08_00" />
+          <ScalarProperty Name="C07_23" ColumnName="07_23" />
+          <ScalarProperty Name="C07_22" ColumnName="07_22" />
+          <ScalarProperty Name="C07_21" ColumnName="07_21" />
+          <ScalarProperty Name="C07_20" ColumnName="07_20" />
+          <ScalarProperty Name="C07_19" ColumnName="07_19" />
+          <ScalarProperty Name="C07_18" ColumnName="07_18" />
+          <ScalarProperty Name="C07_17" ColumnName="07_17" />
+          <ScalarProperty Name="C07_16" ColumnName="07_16" />
+          <ScalarProperty Name="C07_15" ColumnName="07_15" />
+          <ScalarProperty Name="C07_14" ColumnName="07_14" />
+          <ScalarProperty Name="C07_13" ColumnName="07_13" />
+          <ScalarProperty Name="C07_12" ColumnName="07_12" />
+          <ScalarProperty Name="C07_11" ColumnName="07_11" />
+          <ScalarProperty Name="C07_10" ColumnName="07_10" />
+          <ScalarProperty Name="C07_09" ColumnName="07_09" />
+          <ScalarProperty Name="C07_08" ColumnName="07_08" />
+          <ScalarProperty Name="C07_07" ColumnName="07_07" />
+          <ScalarProperty Name="C07_06" ColumnName="07_06" />
+          <ScalarProperty Name="C07_05" ColumnName="07_05" />
+          <ScalarProperty Name="C07_04" ColumnName="07_04" />
+          <ScalarProperty Name="C07_03" ColumnName="07_03" />
+          <ScalarProperty Name="C07_02" ColumnName="07_02" />
+          <ScalarProperty Name="C07_01" ColumnName="07_01" />
+          <ScalarProperty Name="C07_00" ColumnName="07_00" />
+          <ScalarProperty Name="C06_23" ColumnName="06_23" />
+          <ScalarProperty Name="C06_22" ColumnName="06_22" />
+          <ScalarProperty Name="C06_21" ColumnName="06_21" />
+          <ScalarProperty Name="C06_20" ColumnName="06_20" />
+          <ScalarProperty Name="C06_19" ColumnName="06_19" />
+          <ScalarProperty Name="C06_18" ColumnName="06_18" />
+          <ScalarProperty Name="C06_17" ColumnName="06_17" />
+          <ScalarProperty Name="C06_16" ColumnName="06_16" />
+          <ScalarProperty Name="C06_15" ColumnName="06_15" />
+          <ScalarProperty Name="C06_14" ColumnName="06_14" />
+          <ScalarProperty Name="C06_13" ColumnName="06_13" />
+          <ScalarProperty Name="C06_12" ColumnName="06_12" />
+          <ScalarProperty Name="C06_11" ColumnName="06_11" />
+          <ScalarProperty Name="C06_10" ColumnName="06_10" />
+          <ScalarProperty Name="C06_09" ColumnName="06_09" />
+          <ScalarProperty Name="C06_08" ColumnName="06_08" />
+          <ScalarProperty Name="C06_07" ColumnName="06_07" />
+          <ScalarProperty Name="C06_06" ColumnName="06_06" />
+          <ScalarProperty Name="C06_05" ColumnName="06_05" />
+          <ScalarProperty Name="C06_04" ColumnName="06_04" />
+          <ScalarProperty Name="C06_03" ColumnName="06_03" />
+          <ScalarProperty Name="C06_02" ColumnName="06_02" />
+          <ScalarProperty Name="C06_01" ColumnName="06_01" />
+          <ScalarProperty Name="C06_00" ColumnName="06_00" />
+          <ScalarProperty Name="C05_23" ColumnName="05_23" />
+          <ScalarProperty Name="C05_22" ColumnName="05_22" />
+          <ScalarProperty Name="C05_21" ColumnName="05_21" />
+          <ScalarProperty Name="C05_20" ColumnName="05_20" />
+          <ScalarProperty Name="C05_19" ColumnName="05_19" />
+          <ScalarProperty Name="C05_18" ColumnName="05_18" />
+          <ScalarProperty Name="C05_17" ColumnName="05_17" />
+          <ScalarProperty Name="C05_16" ColumnName="05_16" />
+          <ScalarProperty Name="C05_15" ColumnName="05_15" />
+          <ScalarProperty Name="C05_14" ColumnName="05_14" />
+          <ScalarProperty Name="C05_13" ColumnName="05_13" />
+          <ScalarProperty Name="C05_12" ColumnName="05_12" />
+          <ScalarProperty Name="C05_11" ColumnName="05_11" />
+          <ScalarProperty Name="C05_10" ColumnName="05_10" />
+          <ScalarProperty Name="C05_09" ColumnName="05_09" />
+          <ScalarProperty Name="C05_08" ColumnName="05_08" />
+          <ScalarProperty Name="C05_07" ColumnName="05_07" />
+          <ScalarProperty Name="C05_06" ColumnName="05_06" />
+          <ScalarProperty Name="C05_05" ColumnName="05_05" />
+          <ScalarProperty Name="C05_04" ColumnName="05_04" />
+          <ScalarProperty Name="C05_03" ColumnName="05_03" />
+          <ScalarProperty Name="C05_02" ColumnName="05_02" />
+          <ScalarProperty Name="C05_01" ColumnName="05_01" />
+          <ScalarProperty Name="C05_00" ColumnName="05_00" />
+          <ScalarProperty Name="C04_23" ColumnName="04_23" />
+          <ScalarProperty Name="C04_22" ColumnName="04_22" />
+          <ScalarProperty Name="C04_21" ColumnName="04_21" />
+          <ScalarProperty Name="C04_20" ColumnName="04_20" />
+          <ScalarProperty Name="C04_19" ColumnName="04_19" />
+          <ScalarProperty Name="C04_18" ColumnName="04_18" />
+          <ScalarProperty Name="C04_17" ColumnName="04_17" />
+          <ScalarProperty Name="C04_16" ColumnName="04_16" />
+          <ScalarProperty Name="C04_15" ColumnName="04_15" />
+          <ScalarProperty Name="C04_14" ColumnName="04_14" />
+          <ScalarProperty Name="C04_13" ColumnName="04_13" />
+          <ScalarProperty Name="C04_12" ColumnName="04_12" />
+          <ScalarProperty Name="C04_11" ColumnName="04_11" />
+          <ScalarProperty Name="C04_10" ColumnName="04_10" />
+          <ScalarProperty Name="C04_09" ColumnName="04_09" />
+          <ScalarProperty Name="C04_08" ColumnName="04_08" />
+          <ScalarProperty Name="C04_07" ColumnName="04_07" />
+          <ScalarProperty Name="C04_06" ColumnName="04_06" />
+          <ScalarProperty Name="C04_05" ColumnName="04_05" />
+          <ScalarProperty Name="C04_04" ColumnName="04_04" />
+          <ScalarProperty Name="C04_03" ColumnName="04_03" />
+          <ScalarProperty Name="C04_02" ColumnName="04_02" />
+          <ScalarProperty Name="C04_01" ColumnName="04_01" />
+          <ScalarProperty Name="C04_00" ColumnName="04_00" />
+          <ScalarProperty Name="C03_23" ColumnName="03_23" />
+          <ScalarProperty Name="C03_22" ColumnName="03_22" />
+          <ScalarProperty Name="C03_21" ColumnName="03_21" />
+          <ScalarProperty Name="C03_20" ColumnName="03_20" />
+          <ScalarProperty Name="C03_19" ColumnName="03_19" />
+          <ScalarProperty Name="C03_18" ColumnName="03_18" />
+          <ScalarProperty Name="C03_17" ColumnName="03_17" />
+          <ScalarProperty Name="C03_16" ColumnName="03_16" />
+          <ScalarProperty Name="C03_15" ColumnName="03_15" />
+          <ScalarProperty Name="C03_14" ColumnName="03_14" />
+          <ScalarProperty Name="C03_13" ColumnName="03_13" />
+          <ScalarProperty Name="C03_12" ColumnName="03_12" />
+          <ScalarProperty Name="C03_11" ColumnName="03_11" />
+          <ScalarProperty Name="C03_10" ColumnName="03_10" />
+          <ScalarProperty Name="C03_09" ColumnName="03_09" />
+          <ScalarProperty Name="C03_08" ColumnName="03_08" />
+          <ScalarProperty Name="C03_07" ColumnName="03_07" />
+          <ScalarProperty Name="C03_06" ColumnName="03_06" />
+          <ScalarProperty Name="C03_05" ColumnName="03_05" />
+          <ScalarProperty Name="C03_04" ColumnName="03_04" />
+          <ScalarProperty Name="C03_03" ColumnName="03_03" />
+          <ScalarProperty Name="C03_02" ColumnName="03_02" />
+          <ScalarProperty Name="C03_01" ColumnName="03_01" />
+          <ScalarProperty Name="C03_00" ColumnName="03_00" />
+          <ScalarProperty Name="C02_23" ColumnName="02_23" />
+          <ScalarProperty Name="C02_22" ColumnName="02_22" />
+          <ScalarProperty Name="C02_21" ColumnName="02_21" />
+          <ScalarProperty Name="C02_20" ColumnName="02_20" />
+          <ScalarProperty Name="C02_19" ColumnName="02_19" />
+          <ScalarProperty Name="C02_18" ColumnName="02_18" />
+          <ScalarProperty Name="C02_17" ColumnName="02_17" />
+          <ScalarProperty Name="C02_16" ColumnName="02_16" />
+          <ScalarProperty Name="C02_15" ColumnName="02_15" />
+          <ScalarProperty Name="C02_14" ColumnName="02_14" />
+          <ScalarProperty Name="C02_13" ColumnName="02_13" />
+          <ScalarProperty Name="C02_12" ColumnName="02_12" />
+          <ScalarProperty Name="C02_11" ColumnName="02_11" />
+          <ScalarProperty Name="C02_10" ColumnName="02_10" />
+          <ScalarProperty Name="C02_09" ColumnName="02_09" />
+          <ScalarProperty Name="C02_08" ColumnName="02_08" />
+          <ScalarProperty Name="C02_07" ColumnName="02_07" />
+          <ScalarProperty Name="C02_06" ColumnName="02_06" />
+          <ScalarProperty Name="C02_05" ColumnName="02_05" />
+          <ScalarProperty Name="C02_04" ColumnName="02_04" />
+          <ScalarProperty Name="C02_03" ColumnName="02_03" />
+          <ScalarProperty Name="C02_02" ColumnName="02_02" />
+          <ScalarProperty Name="C02_01" ColumnName="02_01" />
+          <ScalarProperty Name="C02_00" ColumnName="02_00" />
+          <ScalarProperty Name="C01_23" ColumnName="01_23" />
+          <ScalarProperty Name="C01_22" ColumnName="01_22" />
+          <ScalarProperty Name="C01_21" ColumnName="01_21" />
+          <ScalarProperty Name="C01_20" ColumnName="01_20" />
+          <ScalarProperty Name="C01_19" ColumnName="01_19" />
+          <ScalarProperty Name="C01_18" ColumnName="01_18" />
+          <ScalarProperty Name="C01_17" ColumnName="01_17" />
+          <ScalarProperty Name="C01_16" ColumnName="01_16" />
+          <ScalarProperty Name="C01_15" ColumnName="01_15" />
+          <ScalarProperty Name="C01_14" ColumnName="01_14" />
+          <ScalarProperty Name="C01_13" ColumnName="01_13" />
+          <ScalarProperty Name="C01_12" ColumnName="01_12" />
+          <ScalarProperty Name="C01_11" ColumnName="01_11" />
+          <ScalarProperty Name="C01_10" ColumnName="01_10" />
+          <ScalarProperty Name="C01_09" ColumnName="01_09" />
+          <ScalarProperty Name="C01_08" ColumnName="01_08" />
+          <ScalarProperty Name="C01_07" ColumnName="01_07" />
+          <ScalarProperty Name="C01_06" ColumnName="01_06" />
+          <ScalarProperty Name="C01_05" ColumnName="01_05" />
+          <ScalarProperty Name="C01_04" ColumnName="01_04" />
+          <ScalarProperty Name="C01_03" ColumnName="01_03" />
+          <ScalarProperty Name="C01_02" ColumnName="01_02" />
+          <ScalarProperty Name="C01_01" ColumnName="01_01" />
+          <ScalarProperty Name="C01_00" ColumnName="01_00" />
+          <ScalarProperty Name="BasePrice" ColumnName="BasePrice" />
+          <ScalarProperty Name="PublishDate" ColumnName="PublishDate" />
+          <ScalarProperty Name="PriceTypeId" ColumnName="PriceTypeId" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="BemsPriceType">
+      <EntityTypeMapping TypeName="iBemsModel.BemsPriceType">
+        <MappingFragment StoreEntitySet="BemsPriceType">
+          <ScalarProperty Name="FuelTypeId" ColumnName="FuelTypeId" />
+          <ScalarProperty Name="PriceTypeIdDesc" ColumnName="PriceTypeIdDesc" />
+          <ScalarProperty Name="PriceTypeId" ColumnName="PriceTypeId" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="BemsRentalRate">
+      <EntityTypeMapping TypeName="iBemsModel.BemsRentalRate">
+        <MappingFragment StoreEntitySet="BemsRentalRate">
+          <ScalarProperty Name="m12" ColumnName="m12" />
+          <ScalarProperty Name="m11" ColumnName="m11" />
+          <ScalarProperty Name="m10" ColumnName="m10" />
+          <ScalarProperty Name="m9" ColumnName="m9" />
+          <ScalarProperty Name="m8" ColumnName="m8" />
+          <ScalarProperty Name="m7" ColumnName="m7" />
+          <ScalarProperty Name="m6" ColumnName="m6" />
+          <ScalarProperty Name="m5" ColumnName="m5" />
+          <ScalarProperty Name="m4" ColumnName="m4" />
+          <ScalarProperty Name="m3" ColumnName="m3" />
+          <ScalarProperty Name="m2" ColumnName="m2" />
+          <ScalarProperty Name="m1" ColumnName="m1" />
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+          <ScalarProperty Name="Date" ColumnName="Date" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="BemsSitePrice">
+      <EntityTypeMapping TypeName="iBemsModel.BemsSitePrice">
+        <MappingFragment StoreEntitySet="BemsSitePrice">
+          <ScalarProperty Name="UseYN" ColumnName="UseYN" />
+          <ScalarProperty Name="PriceCode" ColumnName="PriceCode" />
+          <ScalarProperty Name="PriceTypeId" ColumnName="PriceTypeId" />
+          <ScalarProperty Name="FuelTypeId" ColumnName="FuelTypeId" />
+          <ScalarProperty Name="SiteID" ColumnName="SiteID" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="BemsSitePriceHistory">
+      <EntityTypeMapping TypeName="iBemsModel.BemsSitePriceHistory">
+        <MappingFragment StoreEntitySet="BemsSitePriceHistory">
+          <ScalarProperty Name="PayCharge" ColumnName="PayCharge" />
+          <ScalarProperty Name="EndDate" ColumnName="EndDate" />
+          <ScalarProperty Name="StartDate" ColumnName="StartDate" />
+          <ScalarProperty Name="PayDate" ColumnName="PayDate" />
+          <ScalarProperty Name="PriceValue" ColumnName="PriceValue" />
+          <ScalarProperty Name="PriceCode" ColumnName="PriceCode" />
+          <ScalarProperty Name="PriceTypeId" ColumnName="PriceTypeId" />
+          <ScalarProperty Name="FuelTypeId" ColumnName="FuelTypeId" />
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="BemsChartInfo">
+      <EntityTypeMapping TypeName="iBemsModel.BemsChartInfo">
+        <MappingFragment StoreEntitySet="BemsChartInfo">
+          <ScalarProperty Name="RCTLineValue" ColumnName="RCTLineValue" />
+          <ScalarProperty Name="RCTLineTitle" ColumnName="RCTLineTitle" />
+          <ScalarProperty Name="UseRCTLine" ColumnName="UseRCTLine" />
+          <ScalarProperty Name="LCTLineValue" ColumnName="LCTLineValue" />
+          <ScalarProperty Name="LCTLineTitle" ColumnName="LCTLineTitle" />
+          <ScalarProperty Name="UseLCTLine" ColumnName="UseLCTLine" />
+          <ScalarProperty Name="UseChart" ColumnName="UseChart" />
+          <ScalarProperty Name="Palette" ColumnName="Palette" />
+          <ScalarProperty Name="XAxMax" ColumnName="XAxMax" />
+          <ScalarProperty Name="XAxMin" ColumnName="XAxMin" />
+          <ScalarProperty Name="RAxMax" ColumnName="RAxMax" />
+          <ScalarProperty Name="RAxMin" ColumnName="RAxMin" />
+          <ScalarProperty Name="LAxMax" ColumnName="LAxMax" />
+          <ScalarProperty Name="LAxMin" ColumnName="LAxMin" />
+          <ScalarProperty Name="UseXAxMinMax" ColumnName="UseXAxMinMax" />
+          <ScalarProperty Name="UseRAxMinMax" ColumnName="UseRAxMinMax" />
+          <ScalarProperty Name="UseLAxMinMax" ColumnName="UseLAxMinMax" />
+          <ScalarProperty Name="UseX" ColumnName="UseX" />
+          <ScalarProperty Name="Title" ColumnName="Title" />
+          <ScalarProperty Name="RSType4" ColumnName="RSType4" />
+          <ScalarProperty Name="RSName4" ColumnName="RSName4" />
+          <ScalarProperty Name="RSFmId4" ColumnName="RSFmId4" />
+          <ScalarProperty Name="RSType3" ColumnName="RSType3" />
+          <ScalarProperty Name="RSName3" ColumnName="RSName3" />
+          <ScalarProperty Name="RSFmId3" ColumnName="RSFmId3" />
+          <ScalarProperty Name="RSType2" ColumnName="RSType2" />
+          <ScalarProperty Name="RSName2" ColumnName="RSName2" />
+          <ScalarProperty Name="RSFmId2" ColumnName="RSFmId2" />
+          <ScalarProperty Name="RSType1" ColumnName="RSType1" />
+          <ScalarProperty Name="RSName1" ColumnName="RSName1" />
+          <ScalarProperty Name="RSFmId1" ColumnName="RSFmId1" />
+          <ScalarProperty Name="LSType4" ColumnName="LSType4" />
+          <ScalarProperty Name="LSName4" ColumnName="LSName4" />
+          <ScalarProperty Name="LSFmId4" ColumnName="LSFmId4" />
+          <ScalarProperty Name="LSType3" ColumnName="LSType3" />
+          <ScalarProperty Name="LSName3" ColumnName="LSName3" />
+          <ScalarProperty Name="LSFmId3" ColumnName="LSFmId3" />
+          <ScalarProperty Name="LSType2" ColumnName="LSType2" />
+          <ScalarProperty Name="LSName2" ColumnName="LSName2" />
+          <ScalarProperty Name="LSFmId2" ColumnName="LSFmId2" />
+          <ScalarProperty Name="LSType1" ColumnName="LSType1" />
+          <ScalarProperty Name="LSName1" ColumnName="LSName1" />
+          <ScalarProperty Name="LSFmId1" ColumnName="LSFmId1" />
+          <ScalarProperty Name="XSType" ColumnName="XSType" />
+          <ScalarProperty Name="XSFmId" ColumnName="XSFmId" />
+          <ScalarProperty Name="XAxTitle" ColumnName="XAxTitle" />
+          <ScalarProperty Name="RAxTitle" ColumnName="RAxTitle" />
+          <ScalarProperty Name="LAxTitle" ColumnName="LAxTitle" />
+          <ScalarProperty Name="ChartId" ColumnName="ChartId" />
+          <ScalarProperty Name="FacilityTypeId" ColumnName="FacilityTypeId" />
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="FmsWorkSchedule">
+      <EntityTypeMapping TypeName="iBemsModel.FmsWorkSchedule">
+        <MappingFragment StoreEntitySet="FmsWorkSchedule">
+          <ScalarProperty Name="Content" ColumnName="Content" />
+          <ScalarProperty Name="IsAutoOrder" ColumnName="IsAutoOrder" />
+          <ScalarProperty Name="IsUse" ColumnName="IsUse" />
+          <ScalarProperty Name="UpdateUserId" ColumnName="UpdateUserId" />
+          <ScalarProperty Name="WorkDueDate" ColumnName="WorkDueDate" />
+          <ScalarProperty Name="HolidayWorkTypeId" ColumnName="HolidayWorkTypeId" />
+          <ScalarProperty Name="CycleUnitId" ColumnName="CycleUnitId" />
+          <ScalarProperty Name="CycleSize" ColumnName="CycleSize" />
+          <ScalarProperty Name="InspectionAgencyId" ColumnName="InspectionAgencyId" />
+          <ScalarProperty Name="Name" ColumnName="Name" />
+          <ScalarProperty Name="BusinessFieldId" ColumnName="BusinessFieldId" />
+          <ScalarProperty Name="WorkTypeId" ColumnName="WorkTypeId" />
+          <ScalarProperty Name="WorkScheduleId" ColumnName="WorkScheduleId" />
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="BemsMonitoringPointConfig">
+      <EntityTypeMapping TypeName="iBemsModel.BemsMonitoringPointConfig">
+        <MappingFragment StoreEntitySet="BemsMonitoringPointConfig">
+          <ScalarProperty Name="IsConverted" ColumnName="IsConverted" />
+          <ScalarProperty Name="ControlPointName" ColumnName="ControlPointName" />
+          <ScalarProperty Name="SaveMode" ColumnName="SaveMode" />
+          <ScalarProperty Name="IsSampled" ColumnName="IsSampled" />
+          <ScalarProperty Name="IsAccumulated" ColumnName="IsAccumulated" />
+          <ScalarProperty Name="PropertyId" ColumnName="PropertyId" />
+          <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
+          <ScalarProperty Name="FacilityTypeId" ColumnName="FacilityTypeId" />
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="BemsAlarmSetting">
+      <EntityTypeMapping TypeName="iBemsModel.BemsAlarmSetting">
+        <MappingFragment StoreEntitySet="BemsAlarmSetting">
+          <ScalarProperty Name="Content" ColumnName="Content" />
+          <ScalarProperty Name="AlarmGroupName" ColumnName="AlarmGroupName" />
+          <ScalarProperty Name="UseEmail" ColumnName="UseEmail" />
+          <ScalarProperty Name="UseSMS" ColumnName="UseSMS" />
+          <ScalarProperty Name="UseAlarm" ColumnName="UseAlarm" />
+          <ScalarProperty Name="LowerLimit" ColumnName="LowerLimit" />
+          <ScalarProperty Name="UseLowerLimit" ColumnName="UseLowerLimit" />
+          <ScalarProperty Name="UpperLimit" ColumnName="UpperLimit" />
+          <ScalarProperty Name="UseUpperLimit" ColumnName="UseUpperLimit" />
+          <ScalarProperty Name="PointName" ColumnName="PointName" />
+          <ScalarProperty Name="FacilityName" ColumnName="FacilityName" />
+          <ScalarProperty Name="FormulaId" ColumnName="FormulaId" />
+          <ScalarProperty Name="PropertyId" ColumnName="PropertyId" />
+          <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
+          <ScalarProperty Name="FacilityTypeId" ColumnName="FacilityTypeId" />
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="BemsAlarmLog">
+      <EntityTypeMapping TypeName="iBemsModel.BemsAlarmLog">
+        <MappingFragment StoreEntitySet="BemsAlarmLog">
+          <ScalarProperty Name="Conform" ColumnName="Conform" />
+          <ScalarProperty Name="EmailResult" ColumnName="EmailResult" />
+          <ScalarProperty Name="SMSResult" ColumnName="SMSResult" />
+          <ScalarProperty Name="CurrentValue" ColumnName="CurrentValue" />
+          <ScalarProperty Name="CreatedDateTime" ColumnName="CreatedDateTime" />
+          <ScalarProperty Name="FormulaId" ColumnName="FormulaId" />
+          <ScalarProperty Name="PropertyId" ColumnName="PropertyId" />
+          <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
+          <ScalarProperty Name="FacilityTypeId" ColumnName="FacilityTypeId" />
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="BemsAlarmGroup">
+      <EntityTypeMapping TypeName="iBemsModel.BemsAlarmGroup">
+        <MappingFragment StoreEntitySet="BemsAlarmGroup">
+          <ScalarProperty Name="Name" ColumnName="Name" />
+          <ScalarProperty Name="AlarmGroupId" ColumnName="AlarmGroupId" />
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="BemsAlarmGroupUser">
+      <EntityTypeMapping TypeName="iBemsModel.BemsAlarmGroupUser">
+        <MappingFragment StoreEntitySet="BemsAlarmGroupUser">
+          <ScalarProperty Name="UserId" ColumnName="UserId" />
+          <ScalarProperty Name="AlarmGroupId" ColumnName="AlarmGroupId" />
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="BemsEnergyCost">
+      <EntityTypeMapping TypeName="iBemsModel.BemsEnergyCost">
+        <MappingFragment StoreEntitySet="BemsEnergyCost">
+          <ScalarProperty Name="IsUse" ColumnName="IsUse" />
+          <ScalarProperty Name="GasPriceTypeId" ColumnName="GasPriceTypeId" />
+          <ScalarProperty Name="PowerPriceTypeId" ColumnName="PowerPriceTypeId" />
+          <ScalarProperty Name="GasHeatQuantity" ColumnName="GasHeatQuantity" />
+          <ScalarProperty Name="GasConsumption" ColumnName="GasConsumption" />
+          <ScalarProperty Name="PowerConsumption2" ColumnName="PowerConsumption2" />
+          <ScalarProperty Name="PowerConsumption1" ColumnName="PowerConsumption1" />
+          <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
+          <ScalarProperty Name="FacilityTypeId" ColumnName="FacilityTypeId" />
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="BemsEnergyConfigPercentMonth">
+      <EntityTypeMapping TypeName="iBemsModel.BemsEnergyConfigPercentMonth">
+        <MappingFragment StoreEntitySet="BemsEnergyConfigPercentMonth">
+          <ScalarProperty Name="Water" ColumnName="Water" />
+          <ScalarProperty Name="Gas" ColumnName="Gas" />
+          <ScalarProperty Name="Electricity" ColumnName="Electricity" />
+          <ScalarProperty Name="Month" ColumnName="Month" />
+          <ScalarProperty Name="Year" ColumnName="Year" />
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="BemsEnergyConfigPercentWeek">
+      <EntityTypeMapping TypeName="iBemsModel.BemsEnergyConfigPercentWeek">
+        <MappingFragment StoreEntitySet="BemsEnergyConfigPercentWeek">
+          <ScalarProperty Name="Water" ColumnName="Water" />
+          <ScalarProperty Name="Gas" ColumnName="Gas" />
+          <ScalarProperty Name="Electricity" ColumnName="Electricity" />
+          <ScalarProperty Name="Week" ColumnName="Week" />
+          <ScalarProperty Name="Year" ColumnName="Year" />
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="BemsEnergyDaily">
+      <EntityTypeMapping TypeName="iBemsModel.BemsEnergyDaily">
+        <MappingFragment StoreEntitySet="BemsEnergyDaily">
+          <ScalarProperty Name="CDD" ColumnName="CDD" />
+          <ScalarProperty Name="HDD" ColumnName="HDD" />
+          <ScalarProperty Name="MeanT" ColumnName="MeanT" />
+          <ScalarProperty Name="Prediction_Regression" ColumnName="Prediction_Regression" />
+          <ScalarProperty Name="Goal" ColumnName="Goal" />
+          <ScalarProperty Name="Measurement" ColumnName="Measurement" />
+          <ScalarProperty Name="Prediction" ColumnName="Prediction" />
+          <ScalarProperty Name="CreatedDate" ColumnName="CreatedDate" />
+          <ScalarProperty Name="FuelTypeId" ColumnName="FuelTypeId" />
+          <ScalarProperty Name="ServiceTypeId" ColumnName="ServiceTypeId" />
+          <ScalarProperty Name="BuildingId" ColumnName="BuildingId" />
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="BemsEnergyDailyRegression">
+      <EntityTypeMapping TypeName="iBemsModel.BemsEnergyDailyRegression">
+        <MappingFragment StoreEntitySet="BemsEnergyDailyRegression">
+          <ScalarProperty Name="IsRegression" ColumnName="IsRegression" />
+          <ScalarProperty Name="Holiday_Water_Temp" ColumnName="Holiday_Water_Temp" />
+          <ScalarProperty Name="Holiday_Water" ColumnName="Holiday_Water" />
+          <ScalarProperty Name="Holiday_Gas_Temp" ColumnName="Holiday_Gas_Temp" />
+          <ScalarProperty Name="Holiday_Gas" ColumnName="Holiday_Gas" />
+          <ScalarProperty Name="Holiday_Power_Temp" ColumnName="Holiday_Power_Temp" />
+          <ScalarProperty Name="Holiday_Power" ColumnName="Holiday_Power" />
+          <ScalarProperty Name="Weekday_Water_Temp" ColumnName="Weekday_Water_Temp" />
+          <ScalarProperty Name="Weekday_Water" ColumnName="Weekday_Water" />
+          <ScalarProperty Name="Weekday_Gas_Temp" ColumnName="Weekday_Gas_Temp" />
+          <ScalarProperty Name="Weekday_Gas" ColumnName="Weekday_Gas" />
+          <ScalarProperty Name="Weekday_Power_Temp" ColumnName="Weekday_Power_Temp" />
+          <ScalarProperty Name="Weekday_Power" ColumnName="Weekday_Power" />
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="WeatherDongNaeForecast">
+      <EntityTypeMapping TypeName="iBemsModel.WeatherDongNaeForecast">
+        <MappingFragment StoreEntitySet="WeatherDongNaeForecast">
+          <ScalarProperty Name="Version" ColumnName="Version" />
+          <ScalarProperty Name="DBTime" ColumnName="DBTime" />
+          <ScalarProperty Name="Type" ColumnName="Type" />
+          <ScalarProperty Name="WSD" ColumnName="WSD" />
+          <ScalarProperty Name="VEC" ColumnName="VEC" />
+          <ScalarProperty Name="VVV" ColumnName="VVV" />
+          <ScalarProperty Name="UUU" ColumnName="UUU" />
+          <ScalarProperty Name="TMX" ColumnName="TMX" />
+          <ScalarProperty Name="TMN" ColumnName="TMN" />
+          <ScalarProperty Name="T3H" ColumnName="T3H" />
+          <ScalarProperty Name="SKY" ColumnName="SKY" />
+          <ScalarProperty Name="S06" ColumnName="S06" />
+          <ScalarProperty Name="REH" ColumnName="REH" />
+          <ScalarProperty Name="R06" ColumnName="R06" />
+          <ScalarProperty Name="PTY" ColumnName="PTY" />
+          <ScalarProperty Name="POP" ColumnName="POP" />
+          <ScalarProperty Name="ForecastTime" ColumnName="ForecastTime" />
+          <ScalarProperty Name="ny" ColumnName="ny" />
+          <ScalarProperty Name="nx" ColumnName="nx" />
+          <ScalarProperty Name="BaseTime" ColumnName="BaseTime" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="FmsEquipmentRentInfo">
+      <EntityTypeMapping TypeName="iBemsModel.FmsEquipmentRentInfo">
+        <MappingFragment StoreEntitySet="FmsEquipmentRentInfo">
+          <ScalarProperty Name="RentUser" ColumnName="RentUser" />
+          <ScalarProperty Name="Title" ColumnName="Title" />
+          <ScalarProperty Name="Comment" ColumnName="Comment" />
+          <ScalarProperty Name="EquipmentStateTypeId" ColumnName="EquipmentStateTypeId" />
+          <ScalarProperty Name="ReturnFixDate" ColumnName="ReturnFixDate" />
+          <ScalarProperty Name="ReturnDueDate" ColumnName="ReturnDueDate" />
+          <ScalarProperty Name="RentDate" ColumnName="RentDate" />
+          <ScalarProperty Name="RegisterDate" ColumnName="RegisterDate" />
+          <ScalarProperty Name="RentUserId" ColumnName="RentUserId" />
+          <ScalarProperty Name="RegisterUserId" ColumnName="RegisterUserId" />
+          <ScalarProperty Name="EquipmentRentId" ColumnName="EquipmentRentId" />
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="BemsControlAHUTempConfig">
+      <EntityTypeMapping TypeName="iBemsModel.BemsControlAHUTempConfig">
+        <MappingFragment StoreEntitySet="BemsControlAHUTempConfig">
+          <ScalarProperty Name="MinTemperature" ColumnName="MinTemperature" />
+          <ScalarProperty Name="MaxTemperature" ColumnName="MaxTemperature" />
+          <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
+          <ScalarProperty Name="FacilityTypeId" ColumnName="FacilityTypeId" />
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="BemsFuelType">
+      <EntityTypeMapping TypeName="iBemsModel.BemsFuelType">
+        <MappingFragment StoreEntitySet="BemsFuelType">
+          <ScalarProperty Name="Name" ColumnName="Name" />
+          <ScalarProperty Name="FuelTypeId" ColumnName="FuelTypeId" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="CmFacility">
+      <EntityTypeMapping TypeName="iBemsModel.CmFacility">
+        <MappingFragment StoreEntitySet="CmFacility">
+          <ScalarProperty Name="ContractType" ColumnName="ContractType" />
+          <ScalarProperty Name="FuelTypeId" ColumnName="FuelTypeId" />
+          <ScalarProperty Name="IsVirtualFacility" ColumnName="IsVirtualFacility" />
+          <ScalarProperty Name="FileId" ColumnName="FileId" />
+          <ScalarProperty Name="IsUse" ColumnName="IsUse" />
+          <ScalarProperty Name="Reserved2" ColumnName="Reserved2" />
+          <ScalarProperty Name="Reserved1" ColumnName="Reserved1" />
+          <ScalarProperty Name="Note" ColumnName="Note" />
+          <ScalarProperty Name="SubContactorUserId" ColumnName="SubContactorUserId" />
+          <ScalarProperty Name="MainContactorUserId" ColumnName="MainContactorUserId" />
+          <ScalarProperty Name="RatedCOP" ColumnName="RatedCOP" />
+          <ScalarProperty Name="RatedPowerConsumption" ColumnName="RatedPowerConsumption" />
+          <ScalarProperty Name="FacilityUsage" ColumnName="FacilityUsage" />
+          <ScalarProperty Name="FacilitySeviceLifeYear" ColumnName="FacilitySeviceLifeYear" />
+          <ScalarProperty Name="FacilityCount" ColumnName="FacilityCount" />
+          <ScalarProperty Name="FacilityCost" ColumnName="FacilityCost" />
+          <ScalarProperty Name="FacilityCapacity" ColumnName="FacilityCapacity" />
+          <ScalarProperty Name="OperationStartDate" ColumnName="OperationStartDate" />
+          <ScalarProperty Name="InstallDate" ColumnName="InstallDate" />
+          <ScalarProperty Name="ZoneId" ColumnName="ZoneId" />
+          <ScalarProperty Name="FloorId" ColumnName="FloorId" />
+          <ScalarProperty Name="BuildingId" ColumnName="BuildingId" />
+          <ScalarProperty Name="SupplierPhoneNo" ColumnName="SupplierPhoneNo" />
+          <ScalarProperty Name="Supplier" ColumnName="Supplier" />
+          <ScalarProperty Name="ManufactureModel" ColumnName="ManufactureModel" />
+          <ScalarProperty Name="ManufactureSerial" ColumnName="ManufactureSerial" />
+          <ScalarProperty Name="ManufactureDate" ColumnName="ManufactureDate" />
+          <ScalarProperty Name="Manufacturer" ColumnName="Manufacturer" />
+          <ScalarProperty Name="Rfid" ColumnName="Rfid" />
+          <ScalarProperty Name="Nickname" ColumnName="Nickname" />
+          <ScalarProperty Name="Name" ColumnName="Name" />
+          <ScalarProperty Name="ParentFacilityCode" ColumnName="ParentFacilityCode" />
+          <ScalarProperty Name="DeviceType" ColumnName="DeviceType" />
+          <ScalarProperty Name="ThirdClassId" ColumnName="ThirdClassId" />
+          <ScalarProperty Name="SecondClassId" ColumnName="SecondClassId" />
+          <ScalarProperty Name="FirstClassId" ColumnName="FirstClassId" />
+          <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
+          <ScalarProperty Name="FacilityTypeId" ColumnName="FacilityTypeId" />
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="BemsMonitoringPointHistory15minRawData">
+      <EntityTypeMapping TypeName="iBemsModel.BemsMonitoringPointHistory15minRawData">
+        <MappingFragment StoreEntitySet="BemsMonitoringPointHistory15minRawData">
+          <ScalarProperty Name="CurrentValue" ColumnName="CurrentValue" />
+          <ScalarProperty Name="CreatedDateTime" ColumnName="CreatedDateTime" />
+          <ScalarProperty Name="PropertyId" ColumnName="PropertyId" />
+          <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
+          <ScalarProperty Name="FacilityTypeId" ColumnName="FacilityTypeId" />
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="FmsDailyReport">
+      <EntityTypeMapping TypeName="iBemsModel.FmsDailyReport">
+        <MappingFragment StoreEntitySet="FmsDailyReport">
+          <ScalarProperty Name="ApproveDate5" ColumnName="ApproveDate5" />
+          <ScalarProperty Name="ApproverUserId5" ColumnName="ApproverUserId5" />
+          <ScalarProperty Name="ApproveDate4" ColumnName="ApproveDate4" />
+          <ScalarProperty Name="ApproverUserId4" ColumnName="ApproverUserId4" />
+          <ScalarProperty Name="ApproveDate3" ColumnName="ApproveDate3" />
+          <ScalarProperty Name="ApproverUserId3" ColumnName="ApproverUserId3" />
+          <ScalarProperty Name="ApproveDate2" ColumnName="ApproveDate2" />
+          <ScalarProperty Name="ApproverUserId2" ColumnName="ApproverUserId2" />
+          <ScalarProperty Name="RegisterDate" ColumnName="RegisterDate" />
+          <ScalarProperty Name="ApproveDate" ColumnName="ApproveDate" />
+          <ScalarProperty Name="ApproverUserId" ColumnName="ApproverUserId" />
+          <ScalarProperty Name="Datas" ColumnName="Datas" />
+          <ScalarProperty Name="BusinessFieldId" ColumnName="BusinessFieldId" />
+          <ScalarProperty Name="AddDate" ColumnName="AddDate" />
+          <ScalarProperty Name="RegisterUserId" ColumnName="RegisterUserId" />
+          <ScalarProperty Name="Contents" ColumnName="Contents" />
+          <ScalarProperty Name="Name" ColumnName="Name" />
+          <ScalarProperty Name="DailyReportId" ColumnName="DailyReportId" />
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="BemsPeakHistoryDaily">
+      <EntityTypeMapping TypeName="iBemsModel.BemsPeakHistoryDaily">
+        <MappingFragment StoreEntitySet="BemsPeakHistoryDaily">
+          <ScalarProperty Name="MinDateTime" ColumnName="MinDateTime" />
+          <ScalarProperty Name="MinPeakValue" ColumnName="MinPeakValue" />
+          <ScalarProperty Name="MaxDateTime" ColumnName="MaxDateTime" />
+          <ScalarProperty Name="MaxPeakValue" ColumnName="MaxPeakValue" />
+          <ScalarProperty Name="CreatedDateTime" ColumnName="CreatedDateTime" />
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="FmsEquipment">
+      <EntityTypeMapping TypeName="iBemsModel.FmsEquipment">
+        <MappingFragment StoreEntitySet="FmsEquipment">
+          <ScalarProperty Name="ImageFileId" ColumnName="ImageFileId" />
+          <ScalarProperty Name="SupplierPhoneNo" ColumnName="SupplierPhoneNo" />
+          <ScalarProperty Name="SupplierName" ColumnName="SupplierName" />
+          <ScalarProperty Name="RegisterUserId" ColumnName="RegisterUserId" />
+          <ScalarProperty Name="UpdateDate" ColumnName="UpdateDate" />
+          <ScalarProperty Name="AddDate" ColumnName="AddDate" />
+          <ScalarProperty Name="Standard" ColumnName="Standard" />
+          <ScalarProperty Name="Unit" ColumnName="Unit" />
+          <ScalarProperty Name="WarehouseId" ColumnName="WarehouseId" />
+          <ScalarProperty Name="EquipmentTypeId" ColumnName="EquipmentTypeId" />
+          <ScalarProperty Name="Name" ColumnName="Name" />
+          <ScalarProperty Name="EquipmentId" ColumnName="EquipmentId" />
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="CmAlarmAdmin">
+      <EntityTypeMapping TypeName="iBemsModel.CmAlarmAdmin">
+        <MappingFragment StoreEntitySet="CmAlarmAdmin">
+          <ScalarProperty Name="EmailPassword" ColumnName="EmailPassword" />
+          <ScalarProperty Name="EmailAddress" ColumnName="EmailAddress" />
+          <ScalarProperty Name="PhoneNo" ColumnName="PhoneNo" />
+          <ScalarProperty Name="DeptCode" ColumnName="DeptCode" />
+          <ScalarProperty Name="UserCode" ColumnName="UserCode" />
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="BemsFloorStatus">
+      <EntityTypeMapping TypeName="iBemsModel.BemsFloorStatus">
+        <MappingFragment StoreEntitySet="BemsFloorStatus">
+          <ScalarProperty Name="FacilityName" ColumnName="FacilityName" />
+          <ScalarProperty Name="PropertyId" ColumnName="PropertyId" />
+          <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
+          <ScalarProperty Name="FacilityTypeId" ColumnName="FacilityTypeId" />
+          <ScalarProperty Name="ServiceTypeId" ColumnName="ServiceTypeId" />
+          <ScalarProperty Name="ZoneId" ColumnName="ZoneId" />
+          <ScalarProperty Name="Yvalue" ColumnName="Yvalue" />
+          <ScalarProperty Name="Xvalue" ColumnName="Xvalue" />
+          <ScalarProperty Name="ImageFileId" ColumnName="ImageFileId" />
+          <ScalarProperty Name="FloorName" ColumnName="FloorName" />
+          <ScalarProperty Name="FloorId" ColumnName="FloorId" />
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="BemsReportHistory">
+      <EntityTypeMapping TypeName="iBemsModel.BemsReportHistory">
+        <MappingFragment StoreEntitySet="BemsReportHistory">
+          <ScalarProperty Name="FileName" ColumnName="FileName" />
+          <ScalarProperty Name="parts" ColumnName="parts" />
+          <ScalarProperty Name="Confirm2" ColumnName="Confirm2" />
+          <ScalarProperty Name="Confirm1" ColumnName="Confirm1" />
+          <ScalarProperty Name="Writer" ColumnName="Writer" />
+          <ScalarProperty Name="Content" ColumnName="Content" />
+          <ScalarProperty Name="FormatName" ColumnName="FormatName" />
+          <ScalarProperty Name="ReportFormatId" ColumnName="ReportFormatId" />
+          <ScalarProperty Name="ReportName" ColumnName="ReportName" />
+          <ScalarProperty Name="DateTime" ColumnName="DateTime" />
+          <ScalarProperty Name="Seq" ColumnName="Seq" />
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="CmPartner">
+      <EntityTypeMapping TypeName="iBemsModel.CmPartner">
+        <MappingFragment StoreEntitySet="CmPartner">
+          <ScalarProperty Name="IsUse" ColumnName="IsUse" />
+          <ScalarProperty Name="Note" ColumnName="Note" />
+          <ScalarProperty Name="HomepageUri" ColumnName="HomepageUri" />
+          <ScalarProperty Name="Adderss2" ColumnName="Adderss2" />
+          <ScalarProperty Name="Address1" ColumnName="Address1" />
+          <ScalarProperty Name="AddressZip2" ColumnName="AddressZip2" />
+          <ScalarProperty Name="AddressZip1" ColumnName="AddressZip1" />
+          <ScalarProperty Name="SalesPhoneNo" ColumnName="SalesPhoneNo" />
+          <ScalarProperty Name="SalesName" ColumnName="SalesName" />
+          <ScalarProperty Name="FaxNo" ColumnName="FaxNo" />
+          <ScalarProperty Name="PhoneNo" ColumnName="PhoneNo" />
+          <ScalarProperty Name="RepresentativeName" ColumnName="RepresentativeName" />
+          <ScalarProperty Name="RegistrationNo" ColumnName="RegistrationNo" />
+          <ScalarProperty Name="Name" ColumnName="Name" />
+          <ScalarProperty Name="PartnerTypeId" ColumnName="PartnerTypeId" />
+          <ScalarProperty Name="PartnerId" ColumnName="PartnerId" />
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="CmPartnerType">
+      <EntityTypeMapping TypeName="iBemsModel.CmPartnerType">
+        <MappingFragment StoreEntitySet="CmPartnerType">
+          <ScalarProperty Name="IsUse" ColumnName="IsUse" />
+          <ScalarProperty Name="Name" ColumnName="Name" />
+          <ScalarProperty Name="PartnerTypeId" ColumnName="PartnerTypeId" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="FmsContract">
+      <EntityTypeMapping TypeName="iBemsModel.FmsContract">
+        <MappingFragment StoreEntitySet="FmsContract">
+          <ScalarProperty Name="PaymentTypeId" ColumnName="PaymentTypeId" />
+          <ScalarProperty Name="ContractMethodId" ColumnName="ContractMethodId" />
+          <ScalarProperty Name="ContractTypeId" ColumnName="ContractTypeId" />
+          <ScalarProperty Name="ContractClassId" ColumnName="ContractClassId" />
+          <ScalarProperty Name="Comment" ColumnName="Comment" />
+          <ScalarProperty Name="CommitmentMan" ColumnName="CommitmentMan" />
+          <ScalarProperty Name="OwnerShipPhoneNo" ColumnName="OwnerShipPhoneNo" />
+          <ScalarProperty Name="OwnerShipName" ColumnName="OwnerShipName" />
+          <ScalarProperty Name="EndDate" ColumnName="EndDate" />
+          <ScalarProperty Name="StartDate" ColumnName="StartDate" />
+          <ScalarProperty Name="ContractDate" ColumnName="ContractDate" />
+          <ScalarProperty Name="PartnerId" ColumnName="PartnerId" />
+          <ScalarProperty Name="PartnerTypeId" ColumnName="PartnerTypeId" />
+          <ScalarProperty Name="Name" ColumnName="Name" />
+          <ScalarProperty Name="ContractId" ColumnName="ContractId" />
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="BemsMonitoringPointForecastingDayAhead">
+      <EntityTypeMapping TypeName="iBemsModel.BemsMonitoringPointForecastingDayAhead">
+        <MappingFragment StoreEntitySet="BemsMonitoringPointForecastingDayAhead">
+          <ScalarProperty Name="ForecastedValue" ColumnName="ForecastedValue" />
+          <ScalarProperty Name="TargetDateTime" ColumnName="TargetDateTime" />
+          <ScalarProperty Name="CreatedDateTime" ColumnName="CreatedDateTime" />
+          <ScalarProperty Name="PropertyId" ColumnName="PropertyId" />
+          <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
+          <ScalarProperty Name="FacilityTypeId" ColumnName="FacilityTypeId" />
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="BemsMonitoringPointForecastingHourAhead">
+      <EntityTypeMapping TypeName="iBemsModel.BemsMonitoringPointForecastingHourAhead">
+        <MappingFragment StoreEntitySet="BemsMonitoringPointForecastingHourAhead">
+          <ScalarProperty Name="ForecastedValue" ColumnName="ForecastedValue" />
+          <ScalarProperty Name="TargetDateTime" ColumnName="TargetDateTime" />
+          <ScalarProperty Name="CreatedDateTime" ColumnName="CreatedDateTime" />
+          <ScalarProperty Name="PropertyId" ColumnName="PropertyId" />
+          <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
+          <ScalarProperty Name="FacilityTypeId" ColumnName="FacilityTypeId" />
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="BemsFloorPlan">
+      <EntityTypeMapping TypeName="iBemsModel.BemsFloorPlan">
+        <MappingFragment StoreEntitySet="BemsFloorPlan">
+          <ScalarProperty Name="ImageFileId" ColumnName="ImageFileId" />
+          <ScalarProperty Name="Name" ColumnName="Name" />
+          <ScalarProperty Name="FloorId" ColumnName="FloorId" />
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="BemsMonitoringPointWeatherForecasted">
+      <EntityTypeMapping TypeName="iBemsModel.BemsMonitoringPointWeatherForecasted">
+        <MappingFragment StoreEntitySet="BemsMonitoringPointWeatherForecasted">
+          <ScalarProperty Name="ny" ColumnName="ny" />
+          <ScalarProperty Name="nx" ColumnName="nx" />
+          <ScalarProperty Name="ForecastedValue" ColumnName="ForecastedValue" />
+          <ScalarProperty Name="ForecastedDateTime" ColumnName="ForecastedDateTime" />
+          <ScalarProperty Name="BaseDateTime" ColumnName="BaseDateTime" />
+          <ScalarProperty Name="Category" ColumnName="Category" />
+          <ScalarProperty Name="CreatedDateTime" ColumnName="CreatedDateTime" />
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="BemsIceThermalStorageSimulation">
+      <EntityTypeMapping TypeName="iBemsModel.BemsIceThermalStorageSimulation">
+        <MappingFragment StoreEntitySet="BemsIceThermalStorageSimulation">
+          <ScalarProperty Name="SimulationCase" ColumnName="SimulationCase" />
+          <ScalarProperty Name="SimulationValue" ColumnName="SimulationValue" />
+          <ScalarProperty Name="TargetDateTime" ColumnName="TargetDateTime" />
+          <ScalarProperty Name="CreatedDateTime" ColumnName="CreatedDateTime" />
+          <ScalarProperty Name="PropertyId" ColumnName="PropertyId" />
+          <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
+          <ScalarProperty Name="FacilityTypeId" ColumnName="FacilityTypeId" />
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="BemsConfigData">
+      <EntityTypeMapping TypeName="iBemsModel.BemsConfigData">
+        <MappingFragment StoreEntitySet="BemsConfigData">
+          <ScalarProperty Name="TargetDBName" ColumnName="TargetDBName" />
+          <ScalarProperty Name="TargetDBUserPW" ColumnName="TargetDBUserPW" />
+          <ScalarProperty Name="TargetDBUserID" ColumnName="TargetDBUserID" />
+          <ScalarProperty Name="TargetDBIP" ColumnName="TargetDBIP" />
+          <ScalarProperty Name="LoadDBName" ColumnName="LoadDBName" />
+          <ScalarProperty Name="LoadDBUserPW" ColumnName="LoadDBUserPW" />
+          <ScalarProperty Name="LoadDBUserID" ColumnName="LoadDBUserID" />
+          <ScalarProperty Name="LoadDBIP" ColumnName="LoadDBIP" />
+          <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+  </EntityContainerMapping>
+</Mapping>

+ 1486 - 0
.svn/pristine/db/dbbfabdc83fa1acc65eac008eec951d3be4516de.svn-base

@@ -0,0 +1,1486 @@
+BemsWebApplication.SimulatorIceStorage = function (params, viewInfo) {
+    "use strict";
+
+    var endpointSelector = "";
+    if (BemsWebApplication.config.mode == "production") {
+        endpointSelector = new DevExpress.EndpointSelector(BemsWebApplication.config.endpoints).config.db.production;
+    } else {
+        endpointSelector = new DevExpress.EndpointSelector(BemsWebApplication.config.endpoints).config.db.local;
+    }
+
+    var BemsIceThermalStorageDataSource = BemsWebApplication.db.createDataSource('BemsIceThermalStorageSimulation');
+
+    var timeBoxForSearch = BWA.SearchView.createDateTimeBox($G.TimeTypesForDayOnly);
+    var visibleConfigPopup = ko.observable(false);
+    var timer;
+    var initialized = false;
+    var initializedforPopUp = false;
+
+    var iceThermalStorage_SimulationValueGet = new BWA.Chart.IceThermalStorage_SimulationValueGet(BWA.UserInfo.SiteId());
+    var chart = BWA.Chart.Instance('chartIS', 'dxChart');
+
+    //  그리드 도표 작업 : 팝업창 추가
+    // 팝업창뷰 보이기 속성 제어용 변수 선언
+    var DataGridPopup_Visible = ko.observable(false);
+    // 그래프 출력 이후 엑셀출력을 위한 팝업창을 위해 임시 저장용 배열 선언
+    var dataArrayresult = ko.observableArray();
+    //  그리드 도표 작업 : 팝업창 추가
+    var dataArrayforPopup = [];     // 도표에 들어갈 변수 
+
+    var visibleHourGlassPopup = ko.observable(false);
+
+    var visibleEditButton = ko.observable(true);    // 수정 버튼 활성화 여부 플래그
+    var hasnotModificationPermission = ko.observable(false); // 수정버튼 비활성화 플래그
+    var isEditModeInPopup = ko.observable(false);   // 저장버튼 활성화 플래그
+    var isNotModifyMode = ko.observable(true);     // 저장버튼 비활성화 플래그
+    var visibleCancelButton = ko.observable(false); // 취소버튼 활성화 플래그
+
+    var simulatoricestoragePopupToolbarItems = [
+            { location: 'before', text: '사용자 시뮬레이터 변수 설정' },
+            { location: 'after', widget: 'button', options: { text: $G('edit'), icon: 'edit', visible: visibleEditButton, disabled: hasnotModificationPermission, clickAction: handlePopupButtonEdit } },
+            { location: 'after', widget: 'button', options: { text: $G('cancel'), icon: 'cancel', visible: visibleCancelButton, clickAction: handlePopupButtonCancel } },
+            { location: 'after', widget: 'button', options: { text: $G('save'), icon: 'save', visible: isEditModeInPopup, disabled: isNotModifyMode, clickAction: handlePopupButtonSave } },
+            { location: 'after', widget: 'button', options: { text: $G('close'), icon: 'close', visible: true, disabled: false, clickAction: PopupButtonClose } }
+    ];
+
+    var CurrntRowStatusAsSave = 1;      // 저장했을때 최종 row 인덱스 (취소, 닫기했을때 이전 최종 행 위치를 알기 위함)
+
+    // 편집 중인 행과 활성화 여부 플래그
+    var EditingFirstRow = ko.observable(true);
+    var EditingSecondRow = ko.observable(false);
+    var EditingThirdRow = ko.observable(false);
+    var EditingFourthRow = ko.observable(false);
+    var EditingFifthRow = ko.observable(false);
+    var isSecondRow = ko.observable(false);
+    var isThirdRow = ko.observable(false);
+    var isFourthRow = ko.observable(false);
+    var isFifthRow = ko.observable(false);
+    
+    //Initial Date는 지금 시점 이후부터 입력(initialDate와 finalDate는 기준 시작, 종료 일시)
+    var initialDate = new Date();
+    initialDate.setMinutes((parseInt(initialDate.getMinutes() / 15)) * 15);
+
+    var finalDate = new Date();
+    if (finalDate.getHours() < 21) {
+        finalDate.setHours(0)
+        finalDate.setMinutes(45);
+        finalDate.setSeconds(0);
+        finalDate = moment(finalDate).add(20, 'hours').toDate();
+    }
+    else {
+        finalDate.setHours(0)
+        finalDate.setMinutes(45);
+        finalDate.setSeconds(0);
+        finalDate = moment(finalDate).add(1, 'days').toDate();
+        finalDate = moment(finalDate).add(20, 'hours').toDate();
+    }
+
+    // 행 추가, 제거시 기억할 변수 선언
+    var initDate_prev = new Array();
+    var finalDate_prev = new Array();
+    var operationMode_prev = new Array();
+    var ref1Status_prev = new Array();
+    var ref2Status_prev = new Array();
+
+    // 저장시 기억할 변수 선언 (~_asSave)
+    var initDate_asSave = new Array(new Date(initialDate), new Date(initialDate), new Date(initialDate), new Date(initialDate), new Date(initialDate));
+    var finalDate_asSave = new Array(new Date(finalDate), new Date(finalDate), new Date(finalDate), new Date(finalDate), new Date(finalDate));
+    var operationMode_asSave = new Array(null, null, null, null, null);
+    var ref1Status_asSave = new Array(null, null, null, null, null);
+    var ref2Status_asSave = new Array(null, null, null, null, null);
+
+    var treeOperationMode = [
+    {
+        id: 0,
+        text: "OFF",
+        value: 0
+    },
+    {
+        id: 1,
+        text: "제빙운전",
+        value: 10
+    },
+    {
+        id: 2,
+        text: "축단운전",
+        value: 20
+    },
+    {
+        id: 3,
+        text: "병렬운전",
+        value: 30
+    },
+    {
+        id: 4,
+        text: "냉단운전",
+        value: 40
+    }
+    ];
+
+    // 현재시점에 최종 수정 row 플래그
+    function EditingRowArrange() {
+        var Edit_idx = [false, false, false, false, false];
+        var EnDis_idx = [false, false, false, false, false];
+        Edit_idx[CurrntRowStatusAsSave - 1] = true;
+        for (var i = 0; i < CurrntRowStatusAsSave; i++) {
+            EnDis_idx[i] = true;
+        }
+
+        EditingFirstRow(Edit_idx[0]);
+        EditingSecondRow(Edit_idx[1]);
+        EditingThirdRow(Edit_idx[2]);
+        EditingFourthRow(Edit_idx[3]);
+        EditingFifthRow(Edit_idx[4]);
+        isSecondRow(EnDis_idx[1]);
+        isThirdRow(EnDis_idx[2]);
+        isFourthRow(EnDis_idx[3]);
+        isFifthRow(EnDis_idx[4]);
+    }
+    // 팝업뜰 때마다 호출 (수정모드 템플릿)
+    function InitializedTemplate() {
+        visibleEditButton(true);
+        hasnotModificationPermission(false);
+        isEditModeInPopup(false);
+        isNotModifyMode(true);
+        visibleCancelButton(false);
+
+        EditingRowArrange();        // 현재시점에 최종 수정 row 플래그
+
+        // 팝업뜰때는 수정모드가 아니므로 모두 disabled
+        for (var i = 0; i < 5; i++) {
+            EnableDisableRow(i + 1, true);
+        }
+    }
+    //초기 데이터 initialize
+    function InitializedData() {
+        var initialDate_ = new Date();
+        initialDate_.setMinutes((parseInt(initialDate_.getMinutes() / 15)) * 15); // 15분 단위 맞춰주기 위함
+        initialDate_.setSeconds(0);
+
+        var finalDate_ = new Date();
+
+        if (finalDate_.getHours() < 21) {
+            finalDate_.setHours(0)
+            finalDate_.setMinutes(45);
+            finalDate_.setSeconds(0);
+            finalDate_ = moment(finalDate_).add(20, 'hours').toDate();
+        }
+        else {
+            finalDate_.setHours(0)
+            finalDate_.setMinutes(45);
+            finalDate_.setSeconds(0);
+            finalDate_ = moment(finalDate_).add(1, 'days').toDate();
+            finalDate_ = moment(finalDate_).add(20, 'hours').toDate();
+        }
+        for (var i = 0; i < 5; i++) {
+            BoxInitialize(i + 1, initialDate_, finalDate_);
+            EnableDisableRow(i + 1, true);       // 초기는 수정모드가 아니므로 모두 disabled
+        }
+    }
+    
+    // 수정 버튼 클릭시 호출 함수
+    function handlePopupButtonEdit() {
+        visibleEditButton(false);
+        hasnotModificationPermission(true);
+        isEditModeInPopup(true);
+        isNotModifyMode(false);
+        visibleCancelButton(true);
+
+        EditingRowArrange();        // 현재시점에 최종 수정 row 플래그
+        EnableDisableRow(CurrntRowStatusAsSave, false);        // 현재시점에 최종 수정 row 활성화
+    }
+
+    // ~_prev 변수 입력
+    function prevDataWrite(row_num) {
+        $("#InitialDate" + (row_num).toString()).dxDateBox('instance').option('value', initDate_prev[row_num - 1]);
+        $("#InitialTime" + (row_num).toString()).dxDateBox('instance').option('value', initDate_prev[row_num - 1]);
+        $("#FinalDate" + (row_num).toString()).dxDateBox('instance').option('value', finalDate_prev[row_num - 1]);
+        $("#FinalTime" + (row_num).toString()).dxDateBox('instance').option('value', finalDate_prev[row_num - 1]);
+        $("#OperationMode" + (row_num).toString()).dxSelectBox('instance').option('value', operationMode_prev[row_num - 1]);
+        $("#Ref1_Status" + (row_num).toString()).dxSwitch('instance').option('value', ref1Status_prev[row_num - 1]);
+        $("#Ref2_Status" + (row_num).toString()).dxSwitch('instance').option('value', ref2Status_prev[row_num - 1]);
+    }
+
+    function DeleteRow() {
+        var now_ = new Date();
+        var finalDate_ = new Date(now_.getFullYear(), now_.getMonth(), now_.getDate(), 20, 45, 0);
+        if (now_.getHours() >= 21) {
+            finalDate_ = moment(finalDate_).add(1, 'days').toDate();
+        }
+        if (EditingFirstRow() === true) {
+            $("#FinalDate1").dxDateBox('instance').option('value', finalDate_);
+            $("#FinalTime1").dxDateBox('instance').option('value', finalDate_);
+            $("#OperationMode1").dxSelectBox('instance').option('value', null);// 운전 모드 클리어
+            $("#Ref1_Status1").dxSwitch('instance').option('value', false);// 냉동기1 운전 모드 클리어
+            $("#Ref2_Status1").dxSwitch('instance').option('value', false);// 냉동기2 운전 모드 클리어
+            
+        }
+        else if (EditingSecondRow() === true) {
+            $("#FinalDate2").dxDateBox('instance').option('value', finalDate_);
+            $("#FinalTime2").dxDateBox('instance').option('value', finalDate_);
+            $("#OperationMode2").dxSelectBox('instance').option('value', null);// 운전 모드 클리어
+            $("#Ref1_Status2").dxSwitch('instance').option('value', false);// 냉동기1 운전 모드 클리어
+            $("#Ref2_Status2").dxSwitch('instance').option('value', false);// 냉동기2 운전 모드 클리어
+
+            EnableDisableRow(1, false);
+            EditingFirstRow(true);
+            EditingSecondRow(false);
+            isSecondRow(false);
+
+            prevDataWrite(1);           // 행 삭제시 이전 행의 변수 초기화로 다시 쓰기
+        }
+        else if (EditingThirdRow() === true) {
+            $("#FinalDate3").dxDateBox('instance').option('value', finalDate_);
+            $("#FinalTime3").dxDateBox('instance').option('value', finalDate_);
+            $("#OperationMode3").dxSelectBox('instance').option('value', null);// 운전 모드 클리어
+            $("#Ref1_Status3").dxSwitch('instance').option('value', false);// 냉동기1 운전 모드 클리어
+            $("#Ref2_Status3").dxSwitch('instance').option('value', false);// 냉동기2 운전 모드 클리어
+
+            EnableDisableRow(2, false);
+            EditingSecondRow(true);
+            EditingThirdRow(false);
+            isThirdRow(false);
+
+            prevDataWrite(2);       // 행 삭제시 이전 행의 변수 초기화로 다시 쓰기
+
+        }
+        else if (EditingFourthRow() === true) {
+            $("#FinalDate4").dxDateBox('instance').option('value', finalDate_);
+            $("#FinalTime4").dxDateBox('instance').option('value', finalDate_);
+            $("#OperationMode4").dxSelectBox('instance').option('value', null);// 운전 모드 클리어
+            $("#Ref1_Status4").dxSwitch('instance').option('value', false);// 냉동기1 운전 모드 클리어
+            $("#Ref2_Status4").dxSwitch('instance').option('value', false);// 냉동기2 운전 모드 클리어
+
+            EnableDisableRow(3, false);
+            EditingThirdRow(true);
+            EditingFourthRow(false);
+            isFourthRow(false);
+
+            prevDataWrite(3);       // 행 삭제시 이전 행의 변수 초기화로 다시 쓰기
+
+        }
+        else if (EditingFifthRow() === true) {
+            $("#FinalDate5").dxDateBox('instance').option('value', finalDate_);
+            $("#FinalTime5").dxDateBox('instance').option('value', finalDate_);
+            $("#OperationMode5").dxSelectBox('instance').option('value', null);// 운전 모드 클리어
+            $("#Ref1_Status5").dxSwitch('instance').option('value', false);// 냉동기1 운전 모드 클리어
+            $("#Ref2_Status5").dxSwitch('instance').option('value', false);// 냉동기2 운전 모드 클리어
+
+            EnableDisableRow(4, false);
+            EditingFourthRow(true);
+            EditingFifthRow(false);
+            isFifthRow(false);
+
+            prevDataWrite(4);       // 행 삭제시 이전 행의 변수 초기화로 다시 쓰기
+        }
+    }
+    
+    function FilledRow(row_num) {
+        $("#InitialDate" + row_num.toString()).dxDateBox('instance').option('value', initDate_asSave[row_num - 1]);
+        $("#InitialTime" + row_num.toString()).dxDateBox('instance').option('value', initDate_asSave[row_num - 1]);
+        $("#FinalDate" + row_num.toString()).dxDateBox('instance').option('value', finalDate_asSave[row_num - 1]);
+        $("#FinalTime" + row_num.toString()).dxDateBox('instance').option('value', finalDate_asSave[row_num - 1]);
+        $("#OperationMode" + row_num.toString()).dxSelectBox('instance').option('value', operationMode_asSave[row_num - 1]);
+        $("#Ref1_Status" + row_num.toString()).dxSwitch('instance').option('value', ref1Status_asSave[row_num - 1]);
+        $("#Ref2_Status" + row_num.toString()).dxSwitch('instance').option('value', ref2Status_asSave[row_num - 1]);
+    }
+
+    // 취소 버튼 클릭시 호출 함수
+    function handlePopupButtonCancel() {
+        // 전체 열에 대해서 모두 삭제하고 저장된 열들만 다시 채워준다
+        for (var i = 0; i < 5; i++) {
+            DeleteRow();
+        }
+        for (var i = 0; i < 5; i++) {
+            if (operationMode_asSave[i] != null) {
+                FilledRow(i + 1);
+            }
+        }
+        visibleEditButton(true);
+        hasnotModificationPermission(false);
+        isEditModeInPopup(false);
+        isNotModifyMode(true);
+        visibleCancelButton(false);
+
+        EditingRowArrange();        // 현재시점에 최종 수정 row 플래그
+
+        for (var i = 0; i < 5; i++) {
+            EnableDisableRow(i + 1, true);
+        }
+    }
+
+    // 데이터 DB 입력 함수
+    function insert(postData) {
+        BemsIceThermalStorageDataSource.filter([
+                ["SiteId", "=", BWA.UserInfo.SiteId()],
+                "and",
+                ["FacilityCode", "=", postData.FacilityCode],
+                "and",
+                ["PropertyId", "=", postData.PropertyId],
+                "and",
+                ["SimulationCase", "=", postData.SimulationCase],
+                "and",
+                ["TargetDateTime", "=", postData.TargetDateTime]
+        ]);
+        //BemsIceThermalStorageDataSource.sort({ getter: "TargetDateTime", desc: true });
+        BemsIceThermalStorageDataSource.load()
+       .done(function (result) {
+           var store = new DevExpress.data.ODataStore({
+               url: endpointSelector + "/BemsIceThermalStorageSimulation",
+               key: ["SiteId", "FacilityCode", "PropertyId", "CreatedDateTime", "TargetDateTime", "SimulationCase"],
+               keyType: {
+                   SiteId: "Int32", FacilityCode: "Int32", PropertyId: "Int32", CreatedDateTime: "DateTime", TargetDateTime: "DateTime", SimulationCase: "Int32"
+               }
+           });
+           if (result.length != 0) {
+               var removeData = {
+                   SiteId: result[0].SiteId(),
+                   FacilityTypeId: result[0].FacilityTypeId(),
+                   FacilityCode: result[0].FacilityCode(),
+                   PropertyId: result[0].PropertyId(),
+                   CreatedDateTime: new Date(result[0].CreatedDateTime()),
+                   TargetDateTime: new Date(result[0].TargetDateTime()),
+                   SimulationValue: result[0].SimulationValue(),
+                   SimulationCase: result[0].SimulationCase()
+               };
+               store.remove(removeData).done(function (values, key) {
+                   store.insert(postData).done(function (key, result) {
+                       //utils.toast.show($G('successDatabaseInsertionMsg'));
+                       visibleConfigPopup(false);
+                   })
+                    .fail(function (error) {
+                        utils.toast.show(error, 'error');
+                    });
+               })
+               .fail(function (error) {
+                   utils.toast.show(error, 'error');
+               });
+           }
+           else {
+               store.insert(postData).done(function (key, result) {
+                   //utils.toast.show($G('successDatabaseInsertionMsg'));
+                   visibleConfigPopup(false);
+               })
+                .fail(function (error) {
+                    utils.toast.show(error, 'error');
+                });
+           }
+       });
+    }
+
+    function DataArrange(initialDate_, finalDate_, facilityTypeId, facilityCode, propertyId, value, simulationCase) {
+        var now_date = new Date();
+        var comparedDate = new Date(initialDate_.getFullYear(), initialDate_.getMonth(), initialDate_.getDate(), initialDate_.getHours(), initialDate_.getMinutes(), 0);
+        while (comparedDate <= finalDate_) {
+            //insert
+            var nowDate_tmp = new Date(now_date.getFullYear(), now_date.getMonth(), now_date.getDate(), now_date.getHours(), now_date.getMinutes(), now_date.getSeconds());
+            var tmpDate = new Date(comparedDate.getFullYear(), comparedDate.getMonth(), comparedDate.getDate(), comparedDate.getHours(), comparedDate.getMinutes(), 0);
+            var postViewModel = new BemsWebApplication.BemsIceThermalStorageSimulationViewModel();
+            postViewModel.SiteId(BWA.UserInfo.SiteId());
+            postViewModel.FacilityTypeId(facilityTypeId);
+            postViewModel.FacilityCode(facilityCode);
+            postViewModel.PropertyId(propertyId);
+            postViewModel.CreatedDateTime(nowDate_tmp);
+            postViewModel.TargetDateTime(tmpDate);
+            postViewModel.SimulationValue(value);
+            postViewModel.SimulationCase(simulationCase);
+
+            var postData = postViewModel.toJS();
+            insert(postData);
+            comparedDate.setMinutes(comparedDate.getMinutes() + 15);
+        }
+    }
+
+    function DataExtract(row_num) {
+        var islastRow = false;
+        if (EditingFirstRow() == true && row_num == 1) { islastRow = true; }
+        else if (EditingSecondRow() == true && row_num == 2) { islastRow = true; }
+        else if (EditingThirdRow() == true && row_num == 3) { islastRow = true; }
+        else if (EditingFourthRow() == true && row_num == 4) { islastRow = true; }
+        else if (EditingFifthRow() == true && row_num == 5) { islastRow = true; }
+        // 데이터 저장
+        // 현재 활성화된 마지막 행만 ~_prev 데이터에 저장하고 DB 입력을 위한 부분, 이전행은 '행 추가' 버튼 클릭시 저장됨
+        if (islastRow) {
+            var tmp_initDate_ = $("#InitialTime" + (row_num).toString()).dxDateBox('instance').option('value');
+            initDate_prev[row_num - 1] = new Date(tmp_initDate_.getFullYear(), tmp_initDate_.getMonth(), tmp_initDate_.getDate(), tmp_initDate_.getHours(), tmp_initDate_.getMinutes(), 0);
+            initDate_asSave[row_num - 1] = new Date(tmp_initDate_.getFullYear(), tmp_initDate_.getMonth(), tmp_initDate_.getDate(), tmp_initDate_.getHours(), tmp_initDate_.getMinutes(), 0);
+            var tmp_finalDate_ = $("#FinalTime" + (row_num).toString()).dxDateBox('instance').option('value');
+            finalDate_prev[row_num - 1] = new Date(tmp_finalDate_.getFullYear(), tmp_finalDate_.getMonth(), tmp_finalDate_.getDate(), tmp_finalDate_.getHours(), tmp_finalDate_.getMinutes(), 0);
+            finalDate_asSave[row_num - 1] = new Date(tmp_finalDate_.getFullYear(), tmp_finalDate_.getMonth(), tmp_finalDate_.getDate(), tmp_finalDate_.getHours(), tmp_finalDate_.getMinutes(), 0);
+            operationMode_prev[row_num - 1] = $("#OperationMode" + (row_num).toString()).dxSelectBox('instance').option('value');
+            operationMode_asSave[row_num - 1] = $("#OperationMode" + (row_num).toString()).dxSelectBox('instance').option('value');
+            ref1Status_prev[row_num - 1] = $("#Ref1_Status" + (row_num).toString()).dxSwitch('instance').option('value');
+            ref1Status_asSave[row_num - 1] = $("#Ref1_Status" + (row_num).toString()).dxSwitch('instance').option('value');
+            ref2Status_prev[row_num - 1] = $("#Ref2_Status" + (row_num).toString()).dxSwitch('instance').option('value');
+            ref2Status_asSave[row_num - 1] = $("#Ref2_Status" + (row_num).toString()).dxSwitch('instance').option('value');
+            if (ref1Status_prev[row_num - 1]) { var ref1Status_int = 1; } else { var ref1Status_int = 0; }
+            if (ref2Status_prev[row_num - 1]) { var ref2Status_int = 1; } else { var ref2Status_int = 0; }
+
+            DataArrange(initDate_prev[row_num - 1], finalDate_prev[row_num - 1], 3, 4478, 16, parseInt(operationMode_prev[row_num - 1] * 10), 1);  // 0: OFF, 10: 제빙, 20: 축단, 30:병렬, 40: 냉단
+            DataArrange(initDate_prev[row_num - 1], finalDate_prev[row_num - 1], 2, 4479, 15, ref1Status_int, 1);
+            DataArrange(initDate_prev[row_num - 1], finalDate_prev[row_num - 1], 2, 4480, 15, ref2Status_int, 1);
+        }
+        else {
+            // 날짜 박스에서 불러올 경우 enable된 열의 날짜를 불러오기때문에 ~_prev 변수에서 불러옴
+            var initDate_ = initDate_prev[row_num - 1];
+            var finalDate_ = finalDate_prev[row_num - 1];
+            initDate_asSave[row_num - 1] = initDate_prev[row_num - 1];
+            finalDate_asSave[row_num - 1] = finalDate_prev[row_num - 1];
+
+            var operationMode = $("#OperationMode" + (row_num).toString()).dxSelectBox('instance').option('value');
+            operationMode_asSave[row_num - 1] = $("#OperationMode" + (row_num).toString()).dxSelectBox('instance').option('value');
+            var ref1Status = $("#Ref1_Status" + (row_num).toString()).dxSwitch('instance').option('value');
+            ref1Status_asSave[row_num - 1] = $("#Ref1_Status" + (row_num).toString()).dxSwitch('instance').option('value');
+            var ref2Status = $("#Ref2_Status" + (row_num).toString()).dxSwitch('instance').option('value');
+            ref2Status_asSave[row_num - 1] = $("#Ref2_Status" + (row_num).toString()).dxSwitch('instance').option('value');
+            if (ref1Status) { var ref1Status_int = 1; } else { var ref1Status_int = 0; }
+            if (ref2Status) { var ref2Status_int = 1; } else { var ref2Status_int = 0; }
+
+            DataArrange(initDate_, finalDate_, 3, 4478, 16, parseInt(operationMode * 10), 1);  // 0: OFF, 10: 제빙, 20: 축단, 30:병렬, 40: 냉단
+            DataArrange(initDate_, finalDate_, 2, 4479, 15, ref1Status_int, 1);
+            DataArrange(initDate_, finalDate_, 2, 4480, 15, ref2Status_int, 1);
+        }
+    }
+
+    function handlePopupButtonSave() {
+        var now_date = new Date();
+        if (now_date.getHours() != 0 && now_date.getMinutes() % 15 == 1 && now_date.getSeconds() > 0 && now_date.getSeconds() < 40) {
+            utils.toast.show('데이터 모델이 업데이트 중입니다. 잠시후 다시 시도해주세요. (약 40초 소요 예정)', 'error');
+        }
+        else {
+            // 0, 4, 8, 12 ...초 시간에만 동작
+            visibleHourGlassPopup(true);        // 모래시계 팝업 활성화
+            while (1) {
+                var now_ = new Date();
+                if (now_.getSeconds() % 4 == 0) { break; }
+                else { setTimeout(function () { }, 1000); }
+            }
+
+            if (EditingFirstRow() === true) {
+                if (enabledDateRange(1, "save")) {
+                    initDate_asSave = new Array(new Date(initialDate), new Date(initialDate), new Date(initialDate), new Date(initialDate), new Date(initialDate));
+                    finalDate_asSave = new Array(new Date(finalDate), new Date(finalDate), new Date(finalDate), new Date(finalDate), new Date(finalDate));
+                    operationMode_asSave = new Array(null, null, null, null, null);
+                    ref1Status_asSave = new Array(null, null, null, null, null);
+                    ref2Status_asSave = new Array(null, null, null, null, null);
+                    DataExtract(1);
+
+                    $("#LoadPanel").dxLoadPanel('instance').option('visible', true);
+                    visibleHourGlassPopup(true);        // 모래시계 팝업 활성화
+                    // Python에서 데이터 처리하고 DB에서 데이터 불러오는 시간 고려
+                    setTimeout(function () {
+                        $("#LoadPanel").dxLoadPanel('instance').option('visible', false);
+                        visibleHourGlassPopup(false);
+                        handleSearchInSearchView();
+                    }, 12000);
+                    CurrntRowStatusAsSave = 1;
+                }
+            }
+            else if (EditingSecondRow() === true) {
+                if (enabledDateRange(2, "save")) {
+                    initDate_asSave = new Array(new Date(initialDate), new Date(initialDate), new Date(initialDate), new Date(initialDate), new Date(initialDate));
+                    finalDate_asSave = new Array(new Date(finalDate), new Date(finalDate), new Date(finalDate), new Date(finalDate), new Date(finalDate));
+                    operationMode_asSave = new Array(null, null, null, null, null);
+                    ref1Status_asSave = new Array(null, null, null, null, null);
+                    ref2Status_asSave = new Array(null, null, null, null, null);
+                    DataExtract(1);
+                    DataExtract(2);
+
+                    $("#LoadPanel").dxLoadPanel('instance').option('visible', true);
+                    visibleHourGlassPopup(true);        // 모래시계 팝업 활성화
+                    // Python에서 데이터 처리하고 DB에서 데이터 불러오는 시간 고려
+                    setTimeout(function () {
+                        $("#LoadPanel").dxLoadPanel('instance').option('visible', false);
+                        visibleHourGlassPopup(false);
+                        handleSearchInSearchView();
+                    }, 12000);
+                    CurrntRowStatusAsSave = 2;
+                }
+            }
+            else if (EditingThirdRow() === true) {
+                if (enabledDateRange(3, "save")) {
+                    initDate_asSave = new Array(new Date(initialDate), new Date(initialDate), new Date(initialDate), new Date(initialDate), new Date(initialDate));
+                    finalDate_asSave = new Array(new Date(finalDate), new Date(finalDate), new Date(finalDate), new Date(finalDate), new Date(finalDate));
+                    operationMode_asSave = new Array(null, null, null, null, null);
+                    ref1Status_asSave = new Array(null, null, null, null, null);
+                    ref2Status_asSave = new Array(null, null, null, null, null);
+                    DataExtract(1);
+                    DataExtract(2);
+                    DataExtract(3);
+
+                    $("#LoadPanel").dxLoadPanel('instance').option('visible', true);
+                    visibleHourGlassPopup(true);        // 모래시계 팝업 활성화
+                    // Python에서 데이터 처리하고 DB에서 데이터 불러오는 시간 고려
+                    setTimeout(function () {
+                        $("#LoadPanel").dxLoadPanel('instance').option('visible', false);
+                        visibleHourGlassPopup(false);
+                        handleSearchInSearchView();
+                    }, 12000);
+                    CurrntRowStatusAsSave = 3;
+                }
+            }
+            else if (EditingFourthRow() === true) {
+                if (enabledDateRange(4, "save")) {
+                    initDate_asSave = new Array(new Date(initialDate), new Date(initialDate), new Date(initialDate), new Date(initialDate), new Date(initialDate));
+                    finalDate_asSave = new Array(new Date(finalDate), new Date(finalDate), new Date(finalDate), new Date(finalDate), new Date(finalDate));
+                    operationMode_asSave = new Array(null, null, null, null, null);
+                    ref1Status_asSave = new Array(null, null, null, null, null);
+                    ref2Status_asSave = new Array(null, null, null, null, null);
+                    DataExtract(1);
+                    DataExtract(2);
+                    DataExtract(3);
+                    DataExtract(4);
+
+                    $("#LoadPanel").dxLoadPanel('instance').option('visible', true);
+                    visibleHourGlassPopup(true);        // 모래시계 팝업 활성화
+                    // Python에서 데이터 처리하고 DB에서 데이터 불러오는 시간 고려
+                    setTimeout(function () {
+                        $("#LoadPanel").dxLoadPanel('instance').option('visible', false);
+                        visibleHourGlassPopup(false);
+                        handleSearchInSearchView();
+                    }, 12000);
+                    CurrntRowStatusAsSave = 4;
+                }
+            }
+            else if (EditingFifthRow() === true) {
+                if (enabledDateRange(5, "save")) {
+                    initDate_asSave = new Array(new Date(initialDate), new Date(initialDate), new Date(initialDate), new Date(initialDate), new Date(initialDate));
+                    finalDate_asSave = new Array(new Date(finalDate), new Date(finalDate), new Date(finalDate), new Date(finalDate), new Date(finalDate));
+                    operationMode_asSave = new Array(null, null, null, null, null);
+                    ref1Status_asSave = new Array(null, null, null, null, null);
+                    ref2Status_asSave = new Array(null, null, null, null, null);
+                    DataExtract(1);
+                    DataExtract(2);
+                    DataExtract(3);
+                    DataExtract(4);
+                    DataExtract(5);
+
+                    $("#LoadPanel").dxLoadPanel('instance').option('visible', true);
+                    visibleHourGlassPopup(true);        // 모래시계 팝업 활성화
+                    // Python에서 데이터 처리하고 DB에서 데이터 불러오는 시간 고려
+                    setTimeout(function () {
+                        $("#LoadPanel").dxLoadPanel('instance').option('visible', false);
+                        visibleHourGlassPopup(false);
+                        handleSearchInSearchView();
+                    }, 12000);
+                    CurrntRowStatusAsSave = 5;
+                }
+            }
+        }
+        visibleHourGlassPopup(false);        // 모래시계 팝업 비활성화
+    }
+
+    // 데이터 범위 및 필수 입력사항 체크 함수
+    function enabledDateRange(row_num, mode) {
+        var now_ = new Date();
+        var finalDate_ = new Date(now_.getFullYear(), now_.getMonth(), now_.getDate(), 20, 45, 0);
+        if (now_.getHours() >= 21) {
+            finalDate_ = moment(finalDate_).add(1, 'days').toDate();
+        }
+        var BoxInitDate_tmp = $("#InitialDate" + (row_num).toString()).dxDateBox('instance').option('value');
+        var BoxInitTime_tmp = $("#InitialTime" + (row_num).toString()).dxDateBox('instance').option('value');
+        var BoxFinalDate_tmp = $("#FinalDate" + (row_num).toString()).dxDateBox('instance').option('value');
+        var BoxFinalTime_tmp = $("#FinalTime" + (row_num).toString()).dxDateBox('instance').option('value');
+        var input_inialDateTime = new Date(BoxInitDate_tmp.getFullYear(), BoxInitDate_tmp.getMonth(), BoxInitDate_tmp.getDate(), BoxInitTime_tmp.getHours(), BoxInitTime_tmp.getMinutes(), 0);
+        var input_finalDateTime = new Date(BoxFinalDate_tmp.getFullYear(), BoxFinalDate_tmp.getMonth(), BoxFinalDate_tmp.getDate(), BoxFinalTime_tmp.getHours(), BoxFinalTime_tmp.getMinutes(), 0);
+        var comparedDate = new Date(now_.getFullYear(), now_.getMonth(), now_.getDate(), 20, 45, 0);
+        if (now_.getHours() >= 21) {
+            comparedDate = moment(comparedDate).add(1, 'days').toDate();
+        }
+
+        var BoxDate_tmp = $("#FinalTime" + (row_num).toString()).dxDateBox('instance').option('value');
+        var BoxDate = new Date(BoxDate_tmp.getFullYear(), BoxDate_tmp.getMonth(), BoxDate_tmp.getDate(), BoxDate_tmp.getHours(), BoxDate_tmp.getMinutes(), 0);
+
+        if ($("#OperationMode" + (row_num).toString()).dxSelectBox('instance').option('value') == null) {
+            utils.toast.show('항목이 모두 입력되지 않았습니다.', 'error');
+            return false;
+        }
+        else if (BoxDate.getTime() == finalDate_.getTime() && mode == "edit") {
+            utils.toast.show('마지막 종료시점이 시뮬레이션 허용 마지막 시간(당일 21시 혹은 익일 21시)이므로 행 추가가 불가합니다.', 'error');
+            return false;
+        }
+        else if (BoxDate.getTime() != finalDate_.getTime() && mode == "save") {
+            utils.toast.show('마지막 행의 종료 시점이 시뮬레이션 마지막 시간(21시)과 일치하지 않습니다.', 'error');
+            return false;
+        }
+        else if (input_finalDateTime.getTime() > comparedDate.getTime()) {
+            utils.toast.show("입력 최대 기간(당일 21시 혹은 익일 21시)을 초과하였습니다.", 'error');
+            $("#FinalTime" + (row_num).toString()).dxDateBox("instance").option('value', comparedDate);
+            return false;
+        }
+        else if (input_finalDateTime.getTime() < input_inialDateTime.getTime()) {
+            utils.toast.show("마지막 행의 종료 시간이 시작 시간보다 빠릅니다.", 'error');
+            $("#FinalTime" + (row_num).toString()).dxDateBox("instance").option('value', comparedDate);
+            return false;
+        }
+        else {
+            return true;
+        }
+    }
+
+    function handlePopupButtonAdd() {
+        // 행추가시 기존 제어 변수 입력 열에 미입력 사항이 있는지 확인하는 기능
+        var now_ = new Date();
+        var finalDate_ = new Date(now_.getFullYear(), now_.getMonth(), now_.getDate(), 20, 45, 0);
+        if (now_.getHours() >= 21) {
+            finalDate_ = moment(finalDate_).add(1, 'days').toDate();
+        }
+
+        if (EditingFirstRow() === true) {
+            if (enabledDateRange(1, "edit")) {
+                var InitDate_tmp = $("#InitialTime1").dxDateBox('instance').option('value');
+                var BoxDate_tmp = $("#FinalTime1").dxDateBox('instance').option('value');
+                var BoxDate = new Date(BoxDate_tmp.getFullYear(), BoxDate_tmp.getMonth(), BoxDate_tmp.getDate(), BoxDate_tmp.getHours(), BoxDate_tmp.getMinutes(), 0);
+
+                initDate_prev[0] = new Date(InitDate_tmp.getFullYear(), InitDate_tmp.getMonth(), InitDate_tmp.getDate(), InitDate_tmp.getHours(), InitDate_tmp.getMinutes(), 0);
+                finalDate_prev[0] = new Date(BoxDate_tmp.getFullYear(), BoxDate_tmp.getMonth(), BoxDate_tmp.getDate(), BoxDate_tmp.getHours(), BoxDate_tmp.getMinutes(), 0);
+                operationMode_prev[0] = $("#OperationMode1").dxSelectBox('instance').option('value');;
+                ref1Status_prev[0] = $("#Ref1_Status1").dxSwitch("instance").option('value');
+                ref2Status_prev[0] = $("#Ref2_Status1").dxSwitch("instance").option('value');
+
+                EnableDisableRow(1, true);
+                EnableDisableRow(2, false);
+                EditingFirstRow(false);
+                EditingSecondRow(true);
+                isSecondRow(true);
+
+                BoxDate.setMinutes(BoxDate.getMinutes() + 15);
+                $("#InitialDate2").dxDateBox('instance').option('value', BoxDate);
+                $("#InitialTime2").dxDateBox('instance').option('value', BoxDate);
+                $("#FinalDate2").dxDateBox('instance').option('value', finalDate_);
+                $("#FinalTime2").dxDateBox('instance').option('value', finalDate_);
+            }
+            else {
+                return;
+            }
+        }
+        else if (EditingSecondRow() === true) {
+            if (enabledDateRange(2, "edit")) {
+                var InitDate_tmp = $("#InitialTime2").dxDateBox('instance').option('value');
+
+                var BoxDate_tmp = $("#FinalTime2").dxDateBox('instance').option('value');
+                var BoxDate = new Date(BoxDate_tmp.getFullYear(), BoxDate_tmp.getMonth(), BoxDate_tmp.getDate(), BoxDate_tmp.getHours(), BoxDate_tmp.getMinutes(), 0);
+
+                initDate_prev[1] = new Date(InitDate_tmp.getFullYear(), InitDate_tmp.getMonth(), InitDate_tmp.getDate(), InitDate_tmp.getHours(), InitDate_tmp.getMinutes(), 0);
+                finalDate_prev[1] = new Date(BoxDate_tmp.getFullYear(), BoxDate_tmp.getMonth(), BoxDate_tmp.getDate(), BoxDate_tmp.getHours(), BoxDate_tmp.getMinutes(), 0);
+                operationMode_prev[1] = $("#OperationMode2").dxSelectBox('instance').option('value');;
+                ref1Status_prev[1] = $("#Ref1_Status2").dxSwitch("instance").option('value');
+                ref2Status_prev[1] = $("#Ref2_Status2").dxSwitch("instance").option('value');
+
+                EnableDisableRow(2, true);
+                EnableDisableRow(3, false);
+                EditingSecondRow(false);
+                EditingThirdRow(true);
+                isThirdRow(true);
+
+                BoxDate.setMinutes(BoxDate.getMinutes() + 15);
+                $("#InitialDate3").dxDateBox('instance').option('value', BoxDate);
+                $("#InitialTime3").dxDateBox('instance').option('value', BoxDate);
+                $("#FinalDate3").dxDateBox('instance').option('value', finalDate_);
+                $("#FinalTime3").dxDateBox('instance').option('value', finalDate_);
+            }
+        }
+        else if (EditingThirdRow() === true) {
+            if (enabledDateRange(3, "edit")) {
+                var InitDate_tmp = $("#InitialTime3").dxDateBox('instance').option('value');
+
+                var BoxDate_tmp = $("#FinalTime3").dxDateBox('instance').option('value');
+                var BoxDate = new Date(BoxDate_tmp.getFullYear(), BoxDate_tmp.getMonth(), BoxDate_tmp.getDate(), BoxDate_tmp.getHours(), BoxDate_tmp.getMinutes(), 0);
+
+                initDate_prev[2] = new Date(InitDate_tmp.getFullYear(), InitDate_tmp.getMonth(), InitDate_tmp.getDate(), InitDate_tmp.getHours(), InitDate_tmp.getMinutes(), 0);
+                finalDate_prev[2] = new Date(BoxDate_tmp.getFullYear(), BoxDate_tmp.getMonth(), BoxDate_tmp.getDate(), BoxDate_tmp.getHours(), BoxDate_tmp.getMinutes(), 0);
+                operationMode_prev[2] = $("#OperationMode3").dxSelectBox('instance').option('value');;
+                ref1Status_prev[2] = $("#Ref1_Status3").dxSwitch("instance").option('value');
+                ref2Status_prev[2] = $("#Ref2_Status3").dxSwitch("instance").option('value');
+
+                EnableDisableRow(3, true);
+                EnableDisableRow(4, false);
+                EditingThirdRow(false);
+                EditingFourthRow(true);
+                isFourthRow(true);
+
+                BoxDate.setMinutes(BoxDate.getMinutes() + 15);
+                $("#InitialDate4").dxDateBox('instance').option('value', BoxDate);
+                $("#InitialTime4").dxDateBox('instance').option('value', BoxDate);
+                $("#FinalDate4").dxDateBox('instance').option('value', finalDate_);
+                $("#FinalTime4").dxDateBox('instance').option('value', finalDate_);
+            }
+        }
+        else if (EditingFourthRow() === true) {
+            if (enabledDateRange(4, "edit")) {
+                var InitDate_tmp = $("#InitialTime4").dxDateBox('instance').option('value');
+
+                var BoxDate_tmp = $("#FinalTime4").dxDateBox('instance').option('value');
+                var BoxDate = new Date(BoxDate_tmp.getFullYear(), BoxDate_tmp.getMonth(), BoxDate_tmp.getDate(), BoxDate_tmp.getHours(), BoxDate_tmp.getMinutes(), 0);
+
+                initDate_prev[3] = new Date(InitDate_tmp.getFullYear(), InitDate_tmp.getMonth(), InitDate_tmp.getDate(), InitDate_tmp.getHours(), InitDate_tmp.getMinutes(), 0);
+                finalDate_prev[3] = new Date(BoxDate_tmp.getFullYear(), BoxDate_tmp.getMonth(), BoxDate_tmp.getDate(), BoxDate_tmp.getHours(), BoxDate_tmp.getMinutes(), 0);
+                operationMode_prev[3] = $("#OperationMode4").dxSelectBox('instance').option('value');;
+                ref1Status_prev[3] = $("#Ref1_Status4").dxSwitch("instance").option('value');
+                ref2Status_prev[3] = $("#Ref2_Status4").dxSwitch("instance").option('value');
+
+                EnableDisableRow(4, true);
+                EnableDisableRow(5, false);
+                EditingFourthRow(false);
+                EditingFifthRow(true);
+                isFifthRow(true);
+
+                BoxDate.setMinutes(BoxDate.getMinutes() + 15);
+                $("#InitialDate5").dxDateBox('instance').option('value', BoxDate);
+                $("#InitialTime5").dxDateBox('instance').option('value', BoxDate);
+                $("#FinalDate5").dxDateBox('instance').option('value', finalDate_);
+                $("#FinalTime5").dxDateBox('instance').option('value', finalDate_);
+            }
+        }
+        else if (EditingFifthRow() === true) {
+            utils.toast.show('최대 행 추가 수는 5개입니다.', 'error');
+            return;
+        }
+    }
+
+    // 열 삭제
+    function handlePopupButtonDelete() {
+        if (EditingFirstRow() === true) {
+            utils.toast.show('최소 1개 이상 행을 입력해야합니다.', 'error');
+        }
+        else {
+            DeleteRow();        // 현재 열 삭제
+        }
+        return;
+    }
+
+    function EnableDisableRow(row_num, disabled) {
+        // 모든 행의 시작일은 고정
+        $("#InitialDate" + (row_num).toString()).dxDateBox("instance").option('disabled', true);
+        $("#InitialTime" + (row_num).toString()).dxDateBox("instance").option('disabled', true);
+        $("#FinalDate" + (row_num).toString()).dxDateBox("instance").option('disabled', disabled);
+        $("#FinalTime" + (row_num).toString()).dxDateBox("instance").option('disabled', disabled);
+        $("#OperationMode" + (row_num).toString()).dxSelectBox("instance").option('disabled', disabled);
+        if ($("#OperationMode" + (row_num).toString()).dxSelectBox('instance').option('value') == 0
+            || $("#OperationMode" + (row_num).toString()).dxSelectBox('instance').option('value') == 2) {
+            $("#Ref1_Status" + (row_num).toString()).dxSwitch("instance").option('disabled', true);
+            $("#Ref2_Status" + (row_num).toString()).dxSwitch("instance").option('disabled', true);
+        }
+        else {
+            $("#Ref1_Status" + (row_num).toString()).dxSwitch("instance").option('disabled', disabled);
+            $("#Ref2_Status" + (row_num).toString()).dxSwitch("instance").option('disabled', disabled);
+        }
+    }
+
+    // 닫기버튼
+    function PopupButtonClose() {
+        visibleConfigPopup(false);
+        // 전체 열에 대해서 모두 삭제하고 저장된 열들만 다시 채워준다
+        for (var i = 0; i < 5; i++) {
+            DeleteRow();
+        }
+        for (var i = 0; i < 5; i++) {
+            if (operationMode_asSave[i] != null) {
+                FilledRow(i + 1);
+            }
+        }
+
+        visibleEditButton(true);
+        hasnotModificationPermission(false);
+        isEditModeInPopup(false);
+        isNotModifyMode(true);
+        visibleCancelButton(false);
+
+        if (EditingFirstRow() == true) {
+            EnableDisableRow(1, false);
+        }
+        else if (EditingSecondRow() == true) {
+            EnableDisableRow(2, false);
+        }
+        else if (EditingThirdRow() == true) {
+            EnableDisableRow(3, false);
+        }
+        else if (EditingFourthRow() == true) {
+            EnableDisableRow(4, false);
+        }
+        else if (EditingFifthRow() == true) {
+            EnableDisableRow(5, false);
+        }
+    }
+
+    function SetPointer() {
+        var now = new Date();
+        var target_date;
+        var isRecentData = ko.observable(false);
+        if (now.getHours() < 21) {
+            target_date = now
+        }
+        else {
+            target_date = now.setDate(now.getDate() - 1);
+        }
+
+        var dataSource = new DevExpress.data.DataSource({
+            store: {
+                type: "odata",
+                url: endpointSelector + "/BemsMonitoringPointWeatherForecasted",
+            },
+            requireTotalCount: true,
+            pageSize: 99,
+        });
+        dataSource.filter([
+                ["SiteId", "=", BWA.UserInfo.SiteId()],
+                "and",
+                ["nx", "=", 89],
+                "and",
+                ["ny", "=", 91]
+        ]);
+        dataSource.sort({ getter: "ForecastedDateTime", desc: true });
+        dataSource.load()
+       .done(function (WeatherForecasted) {
+           if (WeatherForecasted.length != 0) {
+               var WFTemperature_tmp = new Array();
+               var WFHumidity_tmp = new Array();
+               for (var i = 0; i < 16; i++) {       // 예보데이터는 3시간 단위로 8포인트씩 2세트(기온, 습도)이므로
+                   if (WeatherForecasted[i].ForecastedDateTime.getFullYear() == target_date.getFullYear()
+                       && WeatherForecasted[i].ForecastedDateTime.getMonth() == target_date.getMonth()
+                       && WeatherForecasted[i].ForecastedDateTime.getDate() == target_date.getDate()
+                       && WeatherForecasted[i].Category == 'Temperature') {
+                       WFTemperature_tmp.push(WeatherForecasted[i].ForecastedValue);
+                   }
+                   if (WeatherForecasted[i].ForecastedDateTime.getFullYear() == target_date.getFullYear()
+                       && WeatherForecasted[i].ForecastedDateTime.getMonth() == target_date.getMonth()
+                       && WeatherForecasted[i].ForecastedDateTime.getDate() == target_date.getDate()
+                       && WeatherForecasted[i].Category == 'Humidity') {
+                       WFHumidity_tmp.push(WeatherForecasted[i].ForecastedValue);
+                   }
+               }
+               if (WFTemperature_tmp.length != 0) {
+                   $('#pointerText1').text("익일 예상 최고 기온 : " + Math.max.apply(null, WFTemperature_tmp).toFixed(2).toString() + " °C, ");
+                   $('#pointerText2').text("익일 예상 최저 기온 : " + Math.min.apply(null, WFTemperature_tmp).toFixed(2).toString() + " °C, ");
+               }
+               else {
+                   $('#pointerText1').text("익일 예상 최고 기온 : ? °C, ");
+                   $('#pointerText2').text("익일 예상 최저 기온 : ? °C, ");
+                   utils.toast.show("데이터가 없습니다. (익일 기상 예보 데이터 - 기온)", 'error');
+               }
+               if (WFHumidity_tmp.length != 0) {
+                   $('#pointerText3').text("익일 예상 최고 습도 : " + Math.max.apply(null, WFHumidity_tmp).toFixed(2).toString() + " %, ");
+                   $('#pointerText4').text("익일 예상 최저 습도 : " + Math.min.apply(null, WFHumidity_tmp).toFixed(2).toString() + " %, ");
+               }
+               else {
+                   $('#pointerText3').text("익일 예상 최고 습도 : ? %, ");
+                   $('#pointerText4').text("익일 예상 최저 습도 : ? %, ");
+                   utils.toast.show("데이터가 없습니다. (익일 기상 예보 데이터 - 습도)", 'error');
+               }
+           }
+           else {
+               $('#pointerText1').text("익일 예상 최고 기온 : ? °C, ");
+               $('#pointerText2').text("익일 예상 최저 기온 : ? °C, ");
+               $('#pointerText3').text("익일 예상 최고 습도 : ? %, ");
+               $('#pointerText4').text("익일 예상 최저 습도 : ? %, ");
+               utils.toast.show("데이터가 없습니다. (익일 기상 예보 데이터 - 기온, 습도)", 'error');
+           }
+       })
+        .fail(function (error) {
+            utils.toast.show(error);
+        });
+
+        var dataSource = new DevExpress.data.DataSource({
+            store: {
+                type: "odata",
+                url: endpointSelector + "/BemsMonitoringPointForecastingDayAhead",
+            },
+            requireTotalCount: true,
+            pageSize: 99,
+        });
+        dataSource.filter([
+                ["SiteId", "=", BWA.UserInfo.SiteId()],
+                "and",
+                ["PropertyId", "=", 0]
+        ]);
+        dataSource.sort({ getter: "TargetDateTime", desc: true });
+        dataSource.load()
+       .done(function (PredictedDeicing) {
+           if (PredictedDeicing.length != 0 
+                && PredictedDeicing[0].TargetDateTime.getFullYear() == target_date.getFullYear()
+                && PredictedDeicing[0].TargetDateTime.getMonth() == target_date.getMonth()
+                && PredictedDeicing[0].TargetDateTime.getDate() == target_date.getDate()) {
+               $('#pointerText5').text("익일 예상 방냉량 : " + PredictedDeicing[0].ForecastedValue.toFixed(2).toString() + "%");
+           }
+           else {
+               $('#pointerText5').text("익일 예상 방냉량 : 0%");
+               utils.toast.show("데이터가 없습니다. (익일 예상 방냉량)", 'error');
+           }
+       })
+        .fail(function (error) {
+            utils.toast.show(error);
+        });
+
+        var now_15min = new Date();
+        now_15min.setMinutes(parseInt(now_15min.getMinutes() / 15) * 15); // 15분 단위 맞춰주기 위함
+        var now_15min_ = new Date(now_15min.getFullYear(), now_15min.getMonth(), now_15min.getDate(), now_15min.getHours(), now_15min.getMinutes(), 0);
+        var finalDate_ = new Date(now_15min_.getFullYear(), now_15min_.getMonth(), now_15min_.getDate(), 20, 45, 0);
+        if (now_15min.getHours() >= 21) {
+            finalDate_ = moment(finalDate_).add(1, 'days').toDate();
+        }
+
+        // 추천 가동 시간 로드
+        var dataSource = new DevExpress.data.DataSource({
+            store: {
+                type: "odata",
+                url: endpointSelector + "/BemsIceThermalStorageSimulation",
+            },
+            requireTotalCount: true,
+            pageSize: 99,
+        });
+        dataSource.sort({ getter: "TargetDateTime", desc: true });
+        dataSource.filter([
+                ["SiteId", "=", BWA.UserInfo.SiteId()],
+                "and",
+                ["FacilityTypeId", "=", 3],
+                "and",
+                ["PropertyId", "=", 16],
+                "and",
+                ["SimulationCase", "=", 0],      // recommend
+                "and",
+                ["TargetDateTime", ">=", now_15min_],
+                "and",
+                ["TargetDateTime", "<=", finalDate_],
+        ]);
+        dataSource.load()
+       .done(function (Recommended) {
+           if (Recommended.length != 0) {
+               var isRecommended = false;
+               var RecommendedTime = new Date(now_15min.getFullYear(), now_15min.getMonth(), now_15min.getDate(), 0, 0, 0);     // 추천 축열조 운영 모드 (제빙 모드)
+               for (var i = 0; i < Recommended.length; i++) {
+                   if (Recommended[i].SimulationValue == 10) {
+                       RecommendedTime.settMinutes(RecommendedTime.getMinutes() + 15);
+                       isRecommended = true;
+                   }
+               }
+               if (isRecommended == true) {
+                   $('#RecommendedTime').text("추천 가동 시간(제빙모드) : " + RecommendedTime.getHours().toString() + "시간 " + RecommendedTime.getMinutes().toString() + "분,");
+               }
+               else {
+                   $('#RecommendedTime').text("추천 가동 시간 : 현재 익일 예상 방냉량 초과 저장,");
+               }
+           }
+           else {
+               $('#RecommendedTime').text("추천 가동 시간 : ?,");
+               utils.toast.show("데이터가 없습니다. (추천 가동 시간)", 'error');
+           }
+
+       })
+        .fail(function (error) {
+            utils.toast.show(error);
+        });
+
+        // 냉동기1,2 전력량 로드
+        var dataSource = new DevExpress.data.DataSource({
+            store: {
+                type: "odata",
+                url: endpointSelector + "/BemsIceThermalStorageSimulation",
+            },
+            requireTotalCount: true,
+            pageSize: 99,
+        });
+        dataSource.sort({ getter: "TargetDateTime", desc: true });
+        dataSource.filter([
+                ["SiteId", "=", BWA.UserInfo.SiteId()],
+                "and",
+                ["FacilityTypeId", "=", 2],
+                "and",
+                ["PropertyId", "=", 11],
+                "and",
+                ["SimulationCase", "=", 1],      // simulation
+                "and",
+                ["TargetDateTime", ">=", now_15min_],
+                "and",
+                ["TargetDateTime", "<=", finalDate_],
+        ]);
+        dataSource.load()
+       .done(function (RefPowerConsume) {
+           if (RefPowerConsume.length != 0) {
+               var RefPowerConsumeSum = 0;     // 냉동기 전력량 합계 (시뮬레이션 모드)
+               for (var i = 0; i < RefPowerConsume.length; i++) {
+                   RefPowerConsumeSum += RefPowerConsume[i].SimulationValue;
+               }
+               if (RefPowerConsumeSum == 0) {
+                   $('#RefPowerConsume').text("냉동기 계산 전력량(시뮬레이션 모드) : 0 kWh");
+               }
+               else {
+                   $('#RefPowerConsume').text("냉동기 계산 전력량(시뮬레이션 모드) : " + RefPowerConsumeSum.toFixed(2).toString() + " kWh");
+               }
+           }
+           else {
+               $('#RefPowerConsume').text("냉동기 계산 전력량(시뮬레이션 모드) : ?");
+               utils.toast.show("데이터가 없습니다. (냉동기 계산 전력량)", 'error');
+           }
+       })
+        .fail(function (error) {
+            utils.toast.show(error);
+        });
+    }
+
+    function handleViewShown() {
+        $("#LoadPanel").dxLoadPanel({
+            message: '로딩 중...',
+            showIndicator: true,
+            visible: false
+        });
+        $("#LoadPanel").dxLoadPanel('instance').option('visible', true);
+        visibleHourGlassPopup(true);
+
+        // 초기 화면에서 기존 사용자 제어변수 삭제 
+        RemoveData(3, 4478, 16, 1);        // 운전모드
+        RemoveData(2, 4479, 15, 1);        // 냉동기1 상태
+        RemoveData(2, 4480, 15, 1);        // 냉동기2 상태
+        RemoveData(2, 4479, 11, 1);        // 냉동기1 전력량
+        RemoveData(2, 4480, 11, 1);        // 냉동기2 전력량
+        RemoveData(3, 4478, 2, 1);         // 축열량
+        if (initialized === false) {
+            setTimeout(function () {
+                chart = chart(BWA.ChartOptions.SimulatorIceStorage.getChartOptions());
+                initialized = true;
+                // 날짜 초기화 (오늘)
+                timeBoxForSearch.setDefaultDateToday();
+                handleSearchInSearchView();
+            }, 4000);
+        }
+        else {
+            setTimeout(function () {
+                // 날짜 초기화 (오늘)
+                timeBoxForSearch.setDefaultDateToday();
+                handleSearchInSearchView();
+
+                // 저장 변수 초기화
+                initDate_asSave = new Array(new Date(initialDate), new Date(initialDate), new Date(initialDate), new Date(initialDate), new Date(initialDate));
+                finalDate_asSave = new Array(new Date(finalDate), new Date(finalDate), new Date(finalDate), new Date(finalDate), new Date(finalDate));
+                operationMode_asSave = new Array(null, null, null, null, null);
+                ref1Status_asSave = new Array(null, null, null, null, null);
+                ref2Status_asSave = new Array(null, null, null, null, null);
+            }, 4000);
+        }
+        timer = setInterval(function () {
+            //alert('timer');   // For Debugging
+            var now = new Date();
+            //if ((now.getMinutes() == 1 && now.getSeconds() == 30) || (now.getMinutes() == 5 && now.getSeconds() == 30)) {
+            if (now.getMinutes() % 15 == 2 && now.getSeconds() == 30) {
+                handleSearchInSearchView();
+            }
+        }, 1000);
+
+        $("#UserCfgBtn").dxButton({
+            text: "시뮬레이터 변수 설정",
+            onClick: function () {
+                visibleConfigPopup(true);
+            }
+        });
+    }
+    function handleViewHidden() {
+        $SearchView.visibleObservable(false); // hcLee 2015 03 23
+
+        visibleConfigPopup(false);
+        clearInterval(timer); // hcLee 2015 06 12
+    }
+
+    function RemoveData(facilityTypeId, facilityCode, propertyId, simulationCase) {
+        var now_15min = new Date();
+        now_15min.setMinutes(parseInt(now_15min.getMinutes() / 15) * 15); // 15분 단위 맞춰주기 위함
+        var targetDate_ = new Date(now_15min.getFullYear(), now_15min.getMonth(), now_15min.getDate(), now_15min.getHours(), now_15min.getMinutes(), 0);
+        var finalDate_ = new Date(now_15min.getFullYear(), now_15min.getMonth(), now_15min.getDate(), 20, 45, 0);
+        if (now_15min.getHours() >= 21) {
+            finalDate_ = moment(finalDate_).add(1, 'days').toDate();
+        }
+        BemsIceThermalStorageDataSource.filter([
+                ["SiteId", "=", BWA.UserInfo.SiteId()],
+                "and",
+                ["FacilityCode", "=", facilityCode],
+                "and",
+                ["PropertyId", "=", propertyId],
+                "and",
+                ["SimulationCase", "=", simulationCase],
+                "and",
+                ["TargetDateTime", ">=", targetDate_],
+                "and",
+                ["TargetDateTime", "<=", finalDate_]
+        ]);
+        BemsIceThermalStorageDataSource.load()
+        .done(function (result) {
+            var store = new DevExpress.data.ODataStore({
+                url: endpointSelector + "/BemsIceThermalStorageSimulation",
+                key: ["SiteId", "FacilityCode", "PropertyId", "CreatedDateTime", "TargetDateTime", "SimulationCase"],
+                keyType: {
+                    SiteId: "Int32", FacilityCode: "Int32", PropertyId: "Int32", CreatedDateTime: "DateTime", TargetDateTime: "DateTime", SimulationCase: "Int32"
+                }
+            });
+            if (result.length != 0) {
+                for (var i = 0; i < result.length; i++) {
+                    var removeData = {
+                        SiteId: result[i].SiteId(),
+                        FacilityTypeId: result[i].FacilityTypeId(),
+                        FacilityCode: result[i].FacilityCode(),
+                        PropertyId: result[i].PropertyId(),
+                        CreatedDateTime: new Date(result[i].CreatedDateTime()),
+                        TargetDateTime: new Date(result[i].TargetDateTime()),
+                        SimulationValue: result[i].SimulationValue(),
+                        SimulationCase: result[i].SimulationCase()
+                    };
+                    store.remove(removeData).done(function (values, key) {
+                    })
+                    .fail(function (error) {
+                        utils.toast.show(error, 'error');
+                    });
+                }
+            }
+        });
+    }
+    // 다른 페이지 갔다 들어오면 시뮬레이션 데이터 및 팝업 초기화
+    function handleViewShowing() {
+        SetPointer();
+        initializedforPopUp = false;
+        CurrntRowStatusAsSave = 1;
+    }
+
+    function refreshList() {
+    }
+
+    var searchViewOptions = {
+        searchViewItems: [
+            //{ id: 'TimeTypeId', defaultValue: 0, value: timeTypeIdForSearch, dataSource: timeTypesForSearch },
+            //{ id: 'DateForHour', type: 'dateRange', isOnlyDate: true },
+        ],
+    };
+
+    function handleSearchInSearchView() {
+        $("#LoadPanel").dxLoadPanel('instance').option('visible', true);
+        visibleHourGlassPopup(true);
+        var dataArray = [];
+        dataArrayforPopup = [];
+        var date = timeBoxForSearch.getDate();
+        var start_date = moment(date.startDate).add(-3, 'hours').toDate();
+        var end_date = moment(date.endDate).add(-3, 'hours').toDate();
+
+        SetPointer();
+
+        var commonParameters = {
+            TimeIntervalType: $Code.TimeIntervalType.QUARTERMIN,
+            StartDate: start_date,
+            EndDate: end_date
+        };
+        var IceThermalStorageParameters_obs = {
+            FacilityTypeId: 3,
+            FacilityCode: 4478,
+            PropertyId: 2,
+            SimulationCase: 0       // observed and recommended schedule
+        };
+        var IceThermalStorageParameters_sim = {
+            FacilityTypeId: 3,
+            FacilityCode: 4478,
+            PropertyId: 2,
+            SimulationCase: 1       // simulated schedule
+        };
+        var now_sub = new Date();
+        now_sub.setMinutes(now_sub.getMinutes() - 15);  // 15분까지 데이터 확인 가능
+        $.when(
+            iceThermalStorage_SimulationValueGet.apiGet(_.extend(IceThermalStorageParameters_obs, commonParameters)),
+            iceThermalStorage_SimulationValueGet.apiGet(_.extend(IceThermalStorageParameters_sim, commonParameters))
+        ).done(function (Candidate_obs, Candidate_sim) {
+            if (Candidate_obs.length == 0) {
+                utils.toast.show("[BemsIceThermalStorageSimulation] 데이터가 없습니다.", 'error');
+                $("#LoadPanel").dxLoadPanel('instance').option('visible', false);
+            }
+            else {
+                if (Candidate_obs.length != 0) {
+                    _.each(Candidate_obs[0][0], function (x) {
+                        if (moment(x.DateTime).toDate() < now_sub) {
+                            dataArray.push({
+                                DateTime: moment(x.DateTime).toDate(),
+                                ObservedValue: x.Value
+                            });
+                        }
+                    });
+                    //  2017.09.08 : 그리드 도표 작업 : 팝업창 추가
+                    _.each(Candidate_obs[0][0], function (x) {
+                        if (moment(x.DateTime).toDate() < now_sub) {
+                            dataArrayforPopup.push({
+                                DateTime: BWA.Chart.getCustermTimeArgumentAxisString($Code.TimeType.QUARTERMIN, moment(x.DateTime).toDate()),
+                                Value: x.Value,
+                                Case: 'Obs'
+                            });
+                        }
+                    });
+                }
+
+                if (Candidate_sim.length != 0) {
+                    _.each(Candidate_sim[0][0], function (x) {
+                        if (moment(x.DateTime).toDate() >= now_sub) {
+                            dataArray.push({
+                                DateTime: moment(x.DateTime).toDate(),
+                                SimulationValue: x.Value
+                            });
+                        }
+                    });
+                    //  2017.09.08 : 그리드 도표 작업 : 팝업창 추가
+                    _.each(Candidate_sim[0][0], function (x) {
+                        if (moment(x.DateTime).toDate() >= now_sub) {
+                            dataArrayforPopup.push({
+                                DateTime: BWA.Chart.getCustermTimeArgumentAxisString($Code.TimeType.QUARTERMIN, moment(x.DateTime).toDate()),
+                                Value: x.Value,
+                                Case: 'Sim'
+                            });
+                        }
+                    });
+                }
+                //  2017.09.08 : 그리드 도표 작업 : 팝업창 추가
+
+                var options = BWA.ChartOptions.SimulatorIceStorage.getSeriesOptions();
+                if (!_.isNull(start_date) && !_.isNull(end_date)) {
+                    options.argumentAxis.min = start_date;
+                    options.argumentAxis.max = end_date;
+                }
+                chart().option('argumentAxis', null); // 2015 05 21 결국 이 코드가 필요 함 (시간 축 에러 해결)
+                options.dataSource = dataArray;
+                chart().option(options);
+            }
+            $("#LoadPanel").dxLoadPanel('instance').option('visible', false);
+            visibleHourGlassPopup(false);
+        })
+        .fail(function (error) {
+            utils.toast.show("데이터를 불러오는데 실패 하였습니다.", 'error');
+            $("#LoadPanel").dxLoadPanel('instance').option('visible', false);
+            visibleConfigPopup(false);
+
+            $("#LoadPanel").dxLoadPanel('instance').option('visible', false);
+            visibleHourGlassPopup(false);
+        });
+    }
+
+    //  2017.09.08 : 그리드 도표 작업 : 팝업창 추가
+    function DataGridPopup_ButtonClick() {
+        DataGridPopup_Visible(true);
+    }
+
+    function handlePopupShown() {
+        // 도표 컬럼명 업데이트
+        viewModel.SimulatorIceStorageDataGridOptions.columns[0].caption = "날짜";
+        viewModel.SimulatorIceStorageDataGridOptions.columns[1].caption = "실/계산 축열량";
+        // 도표 데이터소스 업데이트
+        $("#SimulatorIceStorageDataGrid_Container").dxDataGrid("instance").option("dataSource", dataArrayforPopup);
+        // 도표 팝업창 갱신
+        //DataGridPopup_Visible(true);
+    }
+
+    // Box Initialize
+    function BoxInitialize(row_num, initial_Date, final_Date) {
+        $("#InitialDate" + (row_num).toString()).dxDateBox({
+            value: initial_Date,
+            maxZoomLevel: 'month',
+            formatString: "yyyy-MM-dd",
+            onValueChanged: function (data) {
+                initial_Date.setFullYear(data.value.getFullYear());
+                initial_Date.setMonth(data.value.getMonth());
+                initial_Date.setDate(data.value.getDate());
+                $("#InitialDate" + (row_num).toString()).dxDateBox('instance').option('value', initial_Date);
+                $("#InitialTime" + (row_num).toString()).dxDateBox('instance').option('value', initial_Date);
+            }
+        });
+        $("#InitialTime" + (row_num).toString()).dxDateBox({
+            value: initial_Date,
+            format: "time",
+            formatString: "HH:mm",
+            onValueChanged: function (data) {
+                initial_Date.setHours(data.value.getHours());
+                initial_Date.setMinutes(data.value.getMinutes());
+                $("#InitialDate" + (row_num).toString()).dxDateBox('instance').option('value', initial_Date);
+                $("#InitialTime" + (row_num).toString()).dxDateBox('instance').option('value', initial_Date);
+            }
+
+        });
+        $("#FinalDate" + (row_num).toString()).dxDateBox({
+            value: final_Date,
+            maxZoomLevel: 'month',
+            formatString: "yyyy-MM-dd",
+            min: new Date(moment().add(-1, 'd')),
+            max: new Date(moment().add(1, 'd')),
+            onValueChanged: function (data) {
+                final_Date.setFullYear(data.value.getFullYear());
+                final_Date.setMonth(data.value.getMonth());
+                final_Date.setDate(data.value.getDate());
+                $("#InitialDate" + (row_num).toString()).dxDateBox('instance').option('value', initial_Date);
+                $("#InitialTime" + (row_num).toString()).dxDateBox('instance').option('value', initial_Date);
+                $("#FinalDate" + (row_num).toString()).dxDateBox('instance').option('value', final_Date);
+                $("#FinalTime" + (row_num).toString()).dxDateBox('instance').option('value', final_Date);
+            }
+        });
+        $("#FinalTime" + (row_num).toString()).dxDateBox({
+            value: final_Date,
+            format: "time",
+            formatString: "HH:mm",
+            onValueChanged: function (data) {
+                final_Date.setHours(data.value.getHours());
+                final_Date.setMinutes(data.value.getMinutes());
+                $("#InitialDate" + (row_num).toString()).dxDateBox('instance').option('value', initial_Date);
+                $("#InitialTime" + (row_num).toString()).dxDateBox('instance').option('value', initial_Date);
+                $("#FinalDate" + (row_num).toString()).dxDateBox('instance').option('value', final_Date);
+                $("#FinalTime" + (row_num).toString()).dxDateBox('instance').option('value', final_Date);
+            }
+        });
+        $("#OperationMode" + (row_num).toString()).dxSelectBox({
+            placeholder: "운전 모드",
+            dataSource: treeOperationMode,
+            displayExpr: "text",
+            valueExpr: "id",
+            onValueChanged: function (data) {
+                $("#OperationMode" + (row_num).toString()).dxSelectBox('instance').option('value', data.value);
+                // OFF, 축단운전시 냉동기 모두 OFF
+                if (data.value == 0 || data.value == 2) {
+                    $("#Ref1_Status" + (row_num).toString()).dxSwitch('instance').option('value', false);
+                    $("#Ref2_Status" + (row_num).toString()).dxSwitch('instance').option('value', false);
+
+                    $("#Ref1_Status" + (row_num).toString()).dxSwitch("instance").option('disabled', true);
+                    $("#Ref2_Status" + (row_num).toString()).dxSwitch("instance").option('disabled', true);
+                }
+                else {
+                    $("#Ref1_Status" + (row_num).toString()).dxSwitch("instance").option('disabled', false);
+                    $("#Ref2_Status" + (row_num).toString()).dxSwitch("instance").option('disabled', false);
+                }
+            }
+        });
+        $("#Ref1_Status" + (row_num).toString()).dxSwitch({
+            onText: $G('use'),
+            offText: $G('nonUse'),
+            onValueChanged: function (data) {
+                $("#Ref1_Status" + (row_num).toString()).dxSwitch('instance').option('value', data.value);
+            }
+        });
+        $("#Ref2_Status" + (row_num).toString()).dxSwitch({
+            onText: $G('use'),
+            offText: $G('nonUse'),
+            onValueChanged: function (data) {
+                $("#Ref2_Status" + (row_num).toString()).dxSwitch('instance').option('value', data.value);
+            }
+        });
+
+        // 초기 시작 시점은 고정
+        $("#InitialDate" + (row_num).toString()).dxDateBox("instance").option('disabled', true);
+        $("#InitialTime" + (row_num).toString()).dxDateBox("instance").option('disabled', true);
+
+        $("#OperationMode" + (row_num).toString()).dxSelectBox('instance').option('value', null);// 운전 모드 클리어
+        $("#Ref1_Status" + (row_num).toString()).dxSwitch('instance').option('value', false);// 냉동기1 운전 모드 클리어
+        $("#Ref2_Status" + (row_num).toString()).dxSwitch('instance').option('value', false);// 냉동기2 운전 모드 클리어
+
+        initDate_prev[row_num - 1] = new Date(initial_Date);
+        finalDate_prev[row_num - 1] = new Date(final_Date);
+        operationMode_prev[row_num - 1] = null;
+        ref1Status_prev[row_num - 1] = false;
+        ref2Status_prev[row_num - 1] = false;
+
+        return 0;
+    }
+
+    var viewModel = $.extend(BWA.CommonView.create(
+            params, viewInfo, searchViewOptions, ko.observable(null), handleViewShown, null,
+            handleSearchInSearchView), {
+
+                refreshList: refreshList,
+                viewShowing: handleViewShowing,
+                viewHidden: handleViewHidden, // hcLee 2015 03 23
+                //viewDisposing: handleViewHidden, // hcLee 2015 03 23
+                //locationEnableForSearch: locationEnableForSearch,
+
+                //  그리드 도표 작업 : 팝업창 추가
+                SimulatorIceStorageDataGridPopup_ButtonClicked: DataGridPopup_ButtonClick
+                //  그리드 도표 작업 : 팝업창 추가
+            });
+
+    viewModel.SimulatorIceStoragePopupOptions = {
+        width: 1500,//1250,
+        height: 350,
+        visible: visibleConfigPopup,
+        dragEnabled: true,
+        shading: true,
+        closeOnOutsideClick: false,
+        shadingColor: 'transparent',
+        showTitle: true,
+        //title: "사용자 시뮬레이터 변수 설정",
+        showCloseButton: true,
+        onShowing: function () {
+            if (initializedforPopUp === false) {
+                setTimeout(function () {
+                    var initialDate_ = new Date();
+                    initialDate_.setMinutes((parseInt(initialDate_.getMinutes() / 15)) * 15); // 15분 단위 맞춰주기 위함
+                    initialDate_.setSeconds(0);
+                    var finalDate_ = new Date(finalDate);
+                    for (var i = 0; i < 5; i++) {
+                        BoxInitialize(i + 1, initialDate_, finalDate_);
+                    }
+                    InitializedTemplate();
+                    InitializedData();
+                    initializedforPopUp = true;
+                }, 100);
+            }
+            else {
+                InitializedTemplate();
+            }
+        },
+        onShown: function () {
+        },
+        onHidden: function () {
+        }
+    }
+
+    //  2020.08.03 : 그리드 도표 작업 : 팝업창 추가
+    // 그래프 도표 팝업창 
+    viewModel.SimulatorIceStorageDataGridPopupOptions = {
+        width: '480px',
+        height: '830px', // cyim 2017.05.30 : 테스트 결과 Devextreme 버그임. px 로 지정하면 초기 출력시 정확하게 가운데에 있지만, auto 설정시 화면아래에 위치하게 됨
+        contentTemplate: "content",
+        showTitle: true,
+        title: "도표",
+        visible: DataGridPopup_Visible,
+        dragEnabled: true,
+        closeOnOutsideClick: true,
+        shownAction: handlePopupShown,
+        animation: window.utils.popup.createAnimation(),
+        shading: false
+    };
+    //  2020.08.03 : 그리드 도표 작업 : 팝업창 추가
+
+    //  2020.08.03 : 그리드 도표 작업 : 팝업창 추가
+    viewModel.SimulatorIceStorageDataGridOptions = {
+        dataSource: dataArrayforPopup,
+        columns: [
+            { dataField: 'DateTime', width: '40%', alignment: 'center' },// dataType: 'date', format: 'yyyy-MM-dd HH:mm' },    
+            { dataField: 'Value', width: '60%', alignment: 'center', format: 'fixedPoint', precision: 2 }
+            //{ dataField: 'ObservedValue', width: '30%', alignment: 'center', format: 'fixedPoint', precision: 2 },
+            //{ dataField: 'SimulationValue', width: '30%', alignment: 'center', format: 'fixedPoint', precision: 2 }
+        ],
+        rowPrepared: function (rowElement, rowInfo) {
+            if (rowInfo.rowType == 'data') {
+                var data = rowInfo.data;
+                if (data['Case'] == 'Sim') {
+                    //rowElement.css('background-color', 'rgba(255,0,0,0.1)');
+                    rowElement.css('background-color', 'rgba(153,102,255,0.1)');
+                }
+            }
+        },
+        // 엑셀 출력
+        "export": {
+            enabled: true,
+            fileName: '축열량 시뮬레이션 결과'
+        }
+    };
+    ///  2020.08.03 : 그리드 도표 작업 : 팝업창 추가
+
+    viewModel.simulatoricestoragePopupToolbarItems = simulatoricestoragePopupToolbarItems;
+    viewModel.timeBoxForSearch = timeBoxForSearch;
+    viewModel.handlePopupButtonAdd = handlePopupButtonAdd;
+    viewModel.handlePopupButtonDelete = handlePopupButtonDelete;
+
+    viewModel.isSecondRow = isSecondRow;
+    viewModel.isThirdRow = isThirdRow;
+    viewModel.isFourthRow = isFourthRow;
+    viewModel.isFifthRow = isFifthRow;
+    viewModel.visibleHourGlassPopup = visibleHourGlassPopup;
+    viewModel.isEditModeInPopup = isEditModeInPopup;
+
+
+
+    return viewModel;
+};

BIN
.svn/pristine/ed/ed1a82d3b010cfe01906d7d2c56bf4bde1dbd596.svn-base


+ 19770 - 0
.svn/pristine/f2/f266bce421f3d4c8344a1baba22960d6a42dd325.svn-base

@@ -0,0 +1,19770 @@
+<?xml version="1.0" encoding="utf-8"?>
+<edmx:Edmx Version="3.0" xmlns:edmx="http://schemas.microsoft.com/ado/2009/11/edmx">
+  <!-- EF Runtime content -->
+  <edmx:Runtime>
+    <!-- SSDL content -->
+    <edmx:StorageModels>
+    <Schema Namespace="iBemsModel.Store" Provider="System.Data.SqlClient" ProviderManifestToken="2008" Alias="Self" xmlns:store="http://schemas.microsoft.com/ado/2007/12/edm/EntityStoreSchemaGenerator" xmlns="http://schemas.microsoft.com/ado/2009/11/edm/ssdl">
+        <EntityType Name="BemsAlarmGroup">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="AlarmGroupId" />
+          </Key>
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="AlarmGroupId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+          <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
+        </EntityType>
+        <EntityType Name="BemsAlarmGroupUser">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="AlarmGroupId" />
+            <PropertyRef Name="UserId" />
+          </Key>
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="AlarmGroupId" Type="int" Nullable="false" />
+          <Property Name="UserId" Type="nvarchar" MaxLength="24" Nullable="false" />
+        </EntityType>
+        <EntityType Name="BemsAlarmLog">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="FacilityTypeId" />
+            <PropertyRef Name="FacilityCode" />
+            <PropertyRef Name="PropertyId" />
+            <PropertyRef Name="FormulaId" />
+            <PropertyRef Name="CreatedDateTime" />
+          </Key>
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="FacilityTypeId" Type="int" Nullable="false" />
+          <Property Name="FacilityCode" Type="int" Nullable="false" />
+          <Property Name="PropertyId" Type="int" Nullable="false" />
+          <Property Name="FormulaId" Type="int" Nullable="false" />
+          <Property Name="CreatedDateTime" Type="datetime" Nullable="false" />
+          <Property Name="CurrentValue" Type="float" />
+          <Property Name="SMSResult" Type="nvarchar" MaxLength="2" />
+          <Property Name="EmailResult" Type="nvarchar" MaxLength="2" />
+          <Property Name="Conform" Type="bit" />
+        </EntityType>
+        <EntityType Name="BemsAlarmSetting">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="FacilityTypeId" />
+            <PropertyRef Name="FacilityCode" />
+            <PropertyRef Name="PropertyId" />
+            <PropertyRef Name="FormulaId" />
+          </Key>
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="FacilityTypeId" Type="int" Nullable="false" />
+          <Property Name="FacilityCode" Type="int" Nullable="false" />
+          <Property Name="PropertyId" Type="int" Nullable="false" />
+          <Property Name="FormulaId" Type="int" Nullable="false" />
+          <Property Name="FacilityName" Type="nvarchar" MaxLength="80" Nullable="false" />
+          <Property Name="PointName" Type="nvarchar" MaxLength="64" Nullable="false" />
+          <Property Name="UseUpperLimit" Type="bit" Nullable="false" />
+          <Property Name="UpperLimit" Type="float" />
+          <Property Name="UseLowerLimit" Type="bit" Nullable="false" />
+          <Property Name="LowerLimit" Type="float" />
+          <Property Name="UseAlarm" Type="bit" Nullable="false" />
+          <Property Name="UseSMS" Type="bit" Nullable="false" />
+          <Property Name="UseEmail" Type="bit" Nullable="false" />
+          <Property Name="AlarmGroupName" Type="nvarchar" MaxLength="50" Nullable="false" />
+          <Property Name="Content" Type="nvarchar" MaxLength="1000" />
+        </EntityType>
+        <EntityType Name="BemsAnalysisType">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="AnalysisType" />
+          </Key>
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="AnalysisType" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+          <Property Name="Name" Type="nvarchar" MaxLength="48" />
+        </EntityType>
+        <EntityType Name="BemsChartInfo">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="FacilityTypeId" />
+            <PropertyRef Name="ChartId" />
+          </Key>
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="FacilityTypeId" Type="int" Nullable="false" />
+          <Property Name="ChartId" Type="int" Nullable="false" />
+          <Property Name="LAxTitle" Type="nvarchar" MaxLength="64" Nullable="false" />
+          <Property Name="RAxTitle" Type="nvarchar" MaxLength="64" />
+          <Property Name="XAxTitle" Type="nvarchar" MaxLength="64" />
+          <Property Name="XSFmId" Type="int" />
+          <Property Name="XSType" Type="nvarchar" MaxLength="16" />
+          <Property Name="LSFmId1" Type="int" Nullable="false" />
+          <Property Name="LSName1" Type="nvarchar" MaxLength="64" Nullable="false" />
+          <Property Name="LSType1" Type="nvarchar" MaxLength="16" Nullable="false" />
+          <Property Name="LSFmId2" Type="int" />
+          <Property Name="LSName2" Type="nvarchar" MaxLength="64" />
+          <Property Name="LSType2" Type="nvarchar" MaxLength="16" />
+          <Property Name="LSFmId3" Type="int" />
+          <Property Name="LSName3" Type="nvarchar" MaxLength="64" />
+          <Property Name="LSType3" Type="nvarchar" MaxLength="16" />
+          <Property Name="LSFmId4" Type="int" />
+          <Property Name="LSName4" Type="nvarchar" MaxLength="64" />
+          <Property Name="LSType4" Type="nvarchar" MaxLength="16" />
+          <Property Name="RSFmId1" Type="int" />
+          <Property Name="RSName1" Type="nvarchar" MaxLength="64" />
+          <Property Name="RSType1" Type="nvarchar" MaxLength="16" />
+          <Property Name="RSFmId2" Type="int" />
+          <Property Name="RSName2" Type="nvarchar" MaxLength="64" />
+          <Property Name="RSType2" Type="nvarchar" MaxLength="16" />
+          <Property Name="RSFmId3" Type="int" />
+          <Property Name="RSName3" Type="nvarchar" MaxLength="64" />
+          <Property Name="RSType3" Type="nvarchar" MaxLength="16" />
+          <Property Name="RSFmId4" Type="int" />
+          <Property Name="RSName4" Type="nvarchar" MaxLength="64" />
+          <Property Name="RSType4" Type="nvarchar" MaxLength="16" />
+          <Property Name="Title" Type="nvarchar" MaxLength="64" Nullable="false" />
+          <Property Name="UseX" Type="bit" />
+          <Property Name="UseLAxMinMax" Type="bit" />
+          <Property Name="UseRAxMinMax" Type="bit" />
+          <Property Name="UseXAxMinMax" Type="bit" />
+          <Property Name="LAxMin" Type="float" />
+          <Property Name="LAxMax" Type="float" />
+          <Property Name="RAxMin" Type="float" />
+          <Property Name="RAxMax" Type="float" />
+          <Property Name="XAxMin" Type="float" />
+          <Property Name="XAxMax" Type="float" />
+          <Property Name="Palette" Type="nvarchar" MaxLength="32" Nullable="false" />
+          <Property Name="UseChart" Type="bit" />
+          <Property Name="UseLCTLine" Type="bit" Nullable="false" />
+          <Property Name="LCTLineTitle" Type="nvarchar" MaxLength="64" />
+          <Property Name="LCTLineValue" Type="float" />
+          <Property Name="UseRCTLine" Type="bit" Nullable="false" />
+          <Property Name="RCTLineTitle" Type="nvarchar" MaxLength="64" />
+          <Property Name="RCTLineValue" Type="float" />
+        </EntityType>
+        <EntityType Name="BemsConfigData">
+          <Key>
+            <PropertyRef Name="SiteId" />
+          </Key>
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="LoadDBIP" Type="nvarchar" MaxLength="50" Nullable="false" />
+          <Property Name="LoadDBUserID" Type="nvarchar" MaxLength="50" Nullable="false" />
+          <Property Name="LoadDBUserPW" Type="nvarchar" MaxLength="50" Nullable="false" />
+          <Property Name="LoadDBName" Type="nvarchar" MaxLength="50" Nullable="false" />
+          <Property Name="TargetDBIP" Type="nvarchar" MaxLength="50" Nullable="false" />
+          <Property Name="TargetDBUserID" Type="nvarchar" MaxLength="50" Nullable="false" />
+          <Property Name="TargetDBUserPW" Type="nvarchar" MaxLength="50" Nullable="false" />
+          <Property Name="TargetDBName" Type="nvarchar" MaxLength="50" Nullable="false" />
+        </EntityType>
+        <EntityType Name="BemsControlAHUTempConfig">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="FacilityTypeId" />
+            <PropertyRef Name="FacilityCode" />
+          </Key>
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="FacilityTypeId" Type="int" Nullable="false" />
+          <Property Name="FacilityCode" Type="int" Nullable="false" />
+          <Property Name="MaxTemperature" Type="float" Nullable="false" />
+          <Property Name="MinTemperature" Type="float" Nullable="false" />
+        </EntityType>
+        <EntityType Name="BemsControlPointHistory">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="FacilityCode" />
+            <PropertyRef Name="PropertyId" />
+            <PropertyRef Name="CreateDateTime" />
+          </Key>
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="FacilityTypeId" Type="int" Nullable="false" />
+          <Property Name="FacilityCode" Type="int" Nullable="false" />
+          <Property Name="PropertyId" Type="int" Nullable="false" />
+          <Property Name="CreateDateTime" Type="datetime" Nullable="false" />
+          <Property Name="ControlValue" Type="float" Nullable="false" />
+          <Property Name="WriteServiceName" Type="nvarchar" MaxLength="64" />
+          <Property Name="ActionDateTime" Type="datetime" />
+        </EntityType>
+        <EntityType Name="BemsEnergyConfigPercentMonth">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="Year" />
+            <PropertyRef Name="Month" />
+          </Key>
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="Year" Type="int" Nullable="false" />
+          <Property Name="Month" Type="int" Nullable="false" />
+          <Property Name="Electricity" Type="float" />
+          <Property Name="Gas" Type="float" />
+          <Property Name="Water" Type="float" />
+        </EntityType>
+        <EntityType Name="BemsEnergyConfigPercentWeek">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="Year" />
+            <PropertyRef Name="Week" />
+          </Key>
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="Year" Type="int" Nullable="false" />
+          <Property Name="Week" Type="int" Nullable="false" />
+          <Property Name="Electricity" Type="float" />
+          <Property Name="Gas" Type="float" />
+          <Property Name="Water" Type="float" />
+        </EntityType>
+        <EntityType Name="BemsEnergyCost">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="FacilityCode" />
+          </Key>
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="FacilityTypeId" Type="int" Nullable="false" />
+          <Property Name="FacilityCode" Type="int" Nullable="false" />
+          <Property Name="PowerConsumption1" Type="float" />
+          <Property Name="PowerConsumption2" Type="float" />
+          <Property Name="GasConsumption" Type="float" />
+          <Property Name="GasHeatQuantity" Type="float" />
+          <Property Name="PowerPriceTypeId" Type="int" />
+          <Property Name="GasPriceTypeId" Type="int" />
+          <Property Name="IsUse" Type="bit" />
+        </EntityType>
+        <EntityType Name="BemsEnergyDaily">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="BuildingId" />
+            <PropertyRef Name="ServiceTypeId" />
+            <PropertyRef Name="FuelTypeId" />
+            <PropertyRef Name="CreatedDate" />
+          </Key>
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="BuildingId" Type="int" Nullable="false" />
+          <Property Name="ServiceTypeId" Type="smallint" Nullable="false" />
+          <Property Name="FuelTypeId" Type="smallint" Nullable="false" />
+          <Property Name="CreatedDate" Type="date" Nullable="false" />
+          <Property Name="Prediction" Type="float" />
+          <Property Name="Measurement" Type="float" />
+          <Property Name="Goal" Type="float" />
+          <Property Name="Prediction_Regression" Type="float" />
+          <Property Name="MeanT" Type="float" />
+          <Property Name="HDD" Type="float" />
+          <Property Name="CDD" Type="float" />
+        </EntityType>
+        <EntityType Name="BemsEnergyDailyRegression">
+          <Key>
+            <PropertyRef Name="SiteId" />
+          </Key>
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="Weekday_Power" Type="nvarchar" MaxLength="50" />
+          <Property Name="Weekday_Power_Temp" Type="nvarchar" MaxLength="50" />
+          <Property Name="Weekday_Gas" Type="nvarchar" MaxLength="50" />
+          <Property Name="Weekday_Gas_Temp" Type="nvarchar" MaxLength="50" />
+          <Property Name="Weekday_Water" Type="nvarchar" MaxLength="50" />
+          <Property Name="Weekday_Water_Temp" Type="nvarchar" MaxLength="50" />
+          <Property Name="Holiday_Power" Type="nvarchar" MaxLength="50" />
+          <Property Name="Holiday_Power_Temp" Type="nvarchar" MaxLength="50" />
+          <Property Name="Holiday_Gas" Type="nvarchar" MaxLength="50" />
+          <Property Name="Holiday_Gas_Temp" Type="nvarchar" MaxLength="50" />
+          <Property Name="Holiday_Water" Type="nvarchar" MaxLength="50" />
+          <Property Name="Holiday_Water_Temp" Type="nvarchar" MaxLength="50" />
+          <Property Name="IsRegression" Type="bit" />
+        </EntityType>
+        <EntityType Name="BemsFacilityType">
+          <Key>
+            <PropertyRef Name="FacilityTypeId" />
+          </Key>
+          <Property Name="FacilityTypeId" Type="int" Nullable="false" />
+          <Property Name="Name" Type="nvarchar" MaxLength="48" />
+        </EntityType>
+        <EntityType Name="BemsFactorCo2">
+          <Key>
+            <PropertyRef Name="FuelTypeId" />
+          </Key>
+          <Property Name="FuelTypeId" Type="smallint" Nullable="false" />
+          <Property Name="Factor" Type="float" Nullable="false" />
+        </EntityType>
+        <EntityType Name="BemsFactorToe">
+          <Key>
+            <PropertyRef Name="FuelTypeId" />
+          </Key>
+          <Property Name="FuelTypeId" Type="smallint" Nullable="false" />
+          <Property Name="TotalFactor" Type="float" Nullable="false" />
+          <Property Name="PureFactor" Type="float" Nullable="false" />
+          <Property Name="kcal" Type="float" />
+        </EntityType>
+        <EntityType Name="BemsFloorPlan">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="Name" />
+          </Key>
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="FloorId" Type="int" Nullable="false" />
+          <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
+          <Property Name="ImageFileId" Type="int" />
+        </EntityType>
+        <EntityType Name="BemsFloorStatus">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="FloorId" />
+            <PropertyRef Name="FloorName" />
+            <PropertyRef Name="ImageFileId" />
+            <PropertyRef Name="Xvalue" />
+            <PropertyRef Name="Yvalue" />
+            <PropertyRef Name="PropertyId" />
+          </Key>
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="FloorId" Type="int" Nullable="false" />
+          <Property Name="FloorName" Type="nvarchar" MaxLength="50" Nullable="false" />
+          <Property Name="ImageFileId" Type="int" Nullable="false" />
+          <Property Name="Xvalue" Type="int" Nullable="false" />
+          <Property Name="Yvalue" Type="int" Nullable="false" />
+          <Property Name="ZoneId" Type="int" />
+          <Property Name="ServiceTypeId" Type="int" />
+          <Property Name="FacilityTypeId" Type="int" Nullable="false" />
+          <Property Name="FacilityCode" Type="int" Nullable="false" />
+          <Property Name="PropertyId" Type="int" Nullable="false" />
+          <Property Name="FacilityName" Type="nvarchar" MaxLength="64" />
+        </EntityType>
+        <EntityType Name="BemsFormula">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="FacilityTypeId" />
+            <PropertyRef Name="FacilityCode" />
+            <PropertyRef Name="FormulaId" />
+          </Key>
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="FacilityTypeId" Type="int" Nullable="false" />
+          <Property Name="FacilityCode" Type="int" Nullable="false" />
+          <Property Name="FormulaId" Type="int" Nullable="false" />
+          <Property Name="Formula" Type="nvarchar" MaxLength="120" Nullable="false" />
+        </EntityType>
+        <EntityType Name="BemsFormulaBase">
+          <Key>
+            <PropertyRef Name="FacilityTypeId" />
+            <PropertyRef Name="FormulaId" />
+          </Key>
+          <Property Name="FacilityTypeId" Type="int" Nullable="false" />
+          <Property Name="FormulaId" Type="int" Nullable="false" />
+          <Property Name="Name" Type="nvarchar" MaxLength="32" Nullable="false" />
+        </EntityType>
+        <EntityType Name="BemsFormulaParameter">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="FacilityCode" />
+            <PropertyRef Name="FormulaId" />
+            <PropertyRef Name="ParameterId" />
+          </Key>
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="FacilityTypeId" Type="int" Nullable="false" />
+          <Property Name="FacilityCode" Type="int" Nullable="false" />
+          <Property Name="FormulaId" Type="int" Nullable="false" />
+          <Property Name="ParameterId" Type="nchar" MaxLength="1" Nullable="false" />
+          <Property Name="ParameterFacilityCode" Type="int" Nullable="false" />
+          <Property Name="ParameterPropertyId" Type="int" Nullable="false" />
+        </EntityType>
+        <EntityType Name="BemsFormulaTable">
+          <Key>
+            <PropertyRef Name="TableId" />
+          </Key>
+          <Property Name="TableId" Type="int" Nullable="false" />
+          <Property Name="FunctionName" Type="nvarchar" MaxLength="20" Nullable="false" />
+          <Property Name="Description" Type="nvarchar" MaxLength="80" Nullable="false" />
+        </EntityType>
+        <EntityType Name="BemsFormulaTableValue">
+          <Key>
+            <PropertyRef Name="TableId" />
+            <PropertyRef Name="XValue" />
+          </Key>
+          <Property Name="TableId" Type="int" Nullable="false" />
+          <Property Name="XValue" Type="float" Nullable="false" />
+          <Property Name="YValue" Type="float" Nullable="false" />
+        </EntityType>
+        <EntityType Name="BemsFuelType">
+          <Key>
+            <PropertyRef Name="FuelTypeId" />
+          </Key>
+          <Property Name="FuelTypeId" Type="smallint" Nullable="false" />
+          <Property Name="Name" Type="nvarchar" MaxLength="48" />
+        </EntityType>
+        <EntityType Name="BemsIceThermalStorageSimulation">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="FacilityCode" />
+            <PropertyRef Name="PropertyId" />
+            <PropertyRef Name="CreatedDateTime" />
+            <PropertyRef Name="TargetDateTime" />
+            <PropertyRef Name="SimulationCase" />
+          </Key>
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="FacilityTypeId" Type="int" Nullable="false" />
+          <Property Name="FacilityCode" Type="int" Nullable="false" />
+          <Property Name="PropertyId" Type="int" Nullable="false" />
+          <Property Name="CreatedDateTime" Type="datetime" Nullable="false" />
+          <Property Name="TargetDateTime" Type="datetime" Nullable="false" />
+          <Property Name="SimulationValue" Type="float" />
+          <Property Name="SimulationCase" Type="int" Nullable="false" />
+        </EntityType>
+        <EntityType Name="BemsMonitoringPoint">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="FacilityCode" />
+            <PropertyRef Name="PropertyId" />
+          </Key>
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="FacilityTypeId" Type="int" Nullable="false" />
+          <Property Name="FacilityCode" Type="int" Nullable="false" />
+          <Property Name="PropertyId" Type="int" Nullable="false" />
+          <Property Name="ValueType" Type="int" Nullable="false" />
+          <Property Name="ServiceTypeId" Type="smallint" />
+          <Property Name="FuelTypeId" Type="smallint" />
+          <Property Name="Name" Type="nvarchar" MaxLength="64" />
+          <Property Name="Description" Type="nvarchar" MaxLength="256" />
+          <Property Name="BuildingId" Type="int" />
+          <Property Name="FloorId" Type="int" />
+          <Property Name="ZoneId" Type="int" />
+        </EntityType>
+        <EntityType Name="BemsMonitoringPointBaseData">
+          <Key>
+            <PropertyRef Name="FacilityTypeId" />
+            <PropertyRef Name="PropertyId" />
+          </Key>
+          <Property Name="FacilityTypeId" Type="int" Nullable="false" />
+          <Property Name="PropertyId" Type="int" Nullable="false" />
+          <Property Name="ValueType" Type="int" Nullable="false" />
+          <Property Name="IsAccumulated" Type="bit" Nullable="false" />
+          <Property Name="ServiceTypeId" Type="smallint" />
+          <Property Name="FuelTypeId" Type="smallint" />
+          <Property Name="Name" Type="nvarchar" MaxLength="64" />
+          <Property Name="Description" Type="nvarchar" MaxLength="256" />
+          <Property Name="IsSampled" Type="bit" />
+          <Property Name="IsConverted" Type="bit" />
+        </EntityType>
+        <EntityType Name="BemsMonitoringPointConfig">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="FacilityCode" />
+            <PropertyRef Name="PropertyId" />
+          </Key>
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="FacilityTypeId" Type="int" Nullable="false" />
+          <Property Name="FacilityCode" Type="int" Nullable="false" />
+          <Property Name="PropertyId" Type="int" Nullable="false" />
+          <Property Name="IsAccumulated" Type="bit" Nullable="false" />
+          <Property Name="IsSampled" Type="bit" Nullable="false" />
+          <Property Name="SaveMode" Type="int" Nullable="false" />
+          <Property Name="ControlPointName" Type="nvarchar" MaxLength="200" />
+          <Property Name="IsConverted" Type="bit" />
+        </EntityType>
+        <EntityType Name="BemsMonitoringPointForecastingDayAhead">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="FacilityCode" />
+            <PropertyRef Name="PropertyId" />
+            <PropertyRef Name="CreatedDateTime" />
+            <PropertyRef Name="TargetDateTime" />
+          </Key>
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="FacilityTypeId" Type="int" Nullable="false" />
+          <Property Name="FacilityCode" Type="int" Nullable="false" />
+          <Property Name="PropertyId" Type="int" Nullable="false" />
+          <Property Name="CreatedDateTime" Type="datetime" Nullable="false" />
+          <Property Name="TargetDateTime" Type="datetime" Nullable="false" />
+          <Property Name="ForecastedValue" Type="float" Nullable="false" />
+        </EntityType>
+        <EntityType Name="BemsMonitoringPointForecastingHourAhead">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="FacilityCode" />
+            <PropertyRef Name="PropertyId" />
+            <PropertyRef Name="CreatedDateTime" />
+            <PropertyRef Name="TargetDateTime" />
+          </Key>
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="FacilityTypeId" Type="int" Nullable="false" />
+          <Property Name="FacilityCode" Type="int" Nullable="false" />
+          <Property Name="PropertyId" Type="int" Nullable="false" />
+          <Property Name="CreatedDateTime" Type="datetime" Nullable="false" />
+          <Property Name="TargetDateTime" Type="datetime" Nullable="false" />
+          <Property Name="ForecastedValue" Type="float" Nullable="false" />
+        </EntityType>
+        <EntityType Name="BemsMonitoringPointHistory15min">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="FacilityCode" />
+            <PropertyRef Name="PropertyId" />
+            <PropertyRef Name="CreatedDateTime" />
+          </Key>
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="FacilityTypeId" Type="int" Nullable="false" />
+          <Property Name="FacilityCode" Type="int" Nullable="false" />
+          <Property Name="PropertyId" Type="int" Nullable="false" />
+          <Property Name="CreatedDateTime" Type="datetime" Nullable="false" />
+          <Property Name="CurrentValue" Type="float" Nullable="false" />
+        </EntityType>
+        <EntityType Name="BemsMonitoringPointHistory15minRawData">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="FacilityCode" />
+            <PropertyRef Name="PropertyId" />
+            <PropertyRef Name="CreatedDateTime" />
+          </Key>
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="FacilityTypeId" Type="int" Nullable="false" />
+          <Property Name="FacilityCode" Type="int" Nullable="false" />
+          <Property Name="PropertyId" Type="int" Nullable="false" />
+          <Property Name="CreatedDateTime" Type="datetime" Nullable="false" />
+          <Property Name="CurrentValue" Type="float" Nullable="false" />
+        </EntityType>
+        <EntityType Name="BemsMonitoringPointHistoryDaily">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="FacilityCode" />
+            <PropertyRef Name="PropertyId" />
+            <PropertyRef Name="CreatedDateTime" />
+          </Key>
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="FacilityTypeId" Type="int" Nullable="false" />
+          <Property Name="FacilityCode" Type="int" Nullable="false" />
+          <Property Name="PropertyId" Type="int" Nullable="false" />
+          <Property Name="CreatedDateTime" Type="datetime" Nullable="false" />
+          <Property Name="DailyValue" Type="float" Nullable="false" />
+          <Property Name="MaxValue" Type="float" />
+          <Property Name="MinValue" Type="float" />
+        </EntityType>
+        <EntityType Name="BemsMonitoringPointHistoryHourly">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="FacilityCode" />
+            <PropertyRef Name="PropertyId" />
+            <PropertyRef Name="CreatedDateTime" />
+          </Key>
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="FacilityTypeId" Type="int" Nullable="false" />
+          <Property Name="FacilityCode" Type="int" Nullable="false" />
+          <Property Name="PropertyId" Type="int" Nullable="false" />
+          <Property Name="CreatedDateTime" Type="datetime" Nullable="false" />
+          <Property Name="CurrentValue" Type="float" Nullable="false" />
+        </EntityType>
+        <EntityType Name="BemsMonitoringPointToAnlaysisType">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="FacilityTypeId" />
+            <PropertyRef Name="FacilityCode" />
+            <PropertyRef Name="PropertyId" />
+            <PropertyRef Name="AnalysisType" />
+          </Key>
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="FacilityTypeId" Type="int" Nullable="false" />
+          <Property Name="FacilityCode" Type="int" Nullable="false" />
+          <Property Name="PropertyId" Type="int" Nullable="false" />
+          <Property Name="AnalysisType" Type="int" Nullable="false" />
+        </EntityType>
+        <EntityType Name="BemsMonitoringPointWeatherForecasted">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="CreatedDateTime" />
+            <PropertyRef Name="Category" />
+            <PropertyRef Name="BaseDateTime" />
+            <PropertyRef Name="ForecastedDateTime" />
+          </Key>
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="CreatedDateTime" Type="datetime" Nullable="false" />
+          <Property Name="Category" Type="nvarchar" MaxLength="50" Nullable="false" />
+          <Property Name="BaseDateTime" Type="datetime" Nullable="false" />
+          <Property Name="ForecastedDateTime" Type="datetime" Nullable="false" />
+          <Property Name="ForecastedValue" Type="float" Nullable="false" />
+          <Property Name="nx" Type="int" Nullable="false" />
+          <Property Name="ny" Type="int" Nullable="false" />
+        </EntityType>
+        <EntityType Name="BemsNoticePriceBase">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="FuelTypeId" />
+            <PropertyRef Name="ApplyDate" />
+            <PropertyRef Name="ContractType" />
+          </Key>
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="FuelTypeId" Type="smallint" Nullable="false" />
+          <Property Name="ApplyDate" Type="date" Nullable="false" />
+          <Property Name="ContractType" Type="smallint" Nullable="false" />
+          <Property Name="PrimaryPrice" Type="int" />
+          <Property Name="SecondaryPrice" Type="int" />
+        </EntityType>
+        <EntityType Name="BemsNoticePriceContractType">
+          <Key>
+            <PropertyRef Name="FuelTypeId" />
+            <PropertyRef Name="ContractType" />
+          </Key>
+          <Property Name="FuelTypeId" Type="smallint" Nullable="false" />
+          <Property Name="ContractType" Type="smallint" Nullable="false" />
+          <Property Name="Name" Type="varchar" MaxLength="50" Nullable="false" />
+        </EntityType>
+        <EntityType Name="BemsNoticePriceDetail">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="FuelTypeId" />
+            <PropertyRef Name="ApplyDate" />
+            <PropertyRef Name="ContractType" />
+            <PropertyRef Name="DataId" />
+          </Key>
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="FuelTypeId" Type="smallint" Nullable="false" />
+          <Property Name="ApplyDate" Type="date" Nullable="false" />
+          <Property Name="ContractType" Type="smallint" Nullable="false" />
+          <Property Name="DataId" Type="smallint" Nullable="false" />
+          <Property Name="P01" Type="float" />
+          <Property Name="P02" Type="float" />
+          <Property Name="P03" Type="float" />
+          <Property Name="P04" Type="float" />
+          <Property Name="P05" Type="float" />
+          <Property Name="P06" Type="float" />
+          <Property Name="P07" Type="float" />
+          <Property Name="P08" Type="float" />
+          <Property Name="P09" Type="float" />
+          <Property Name="P10" Type="float" />
+          <Property Name="P11" Type="float" />
+          <Property Name="P12" Type="float" />
+        </EntityType>
+        <EntityType Name="BemsPeakFacility">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="MaxDateTime" />
+            <PropertyRef Name="FacilityCode" />
+          </Key>
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="MaxDateTime" Type="datetime" Nullable="false" />
+          <Property Name="FacilityCode" Type="int" Nullable="false" />
+        </EntityType>
+        <EntityType Name="BemsPeakHistory">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="CreatedDateTime" />
+          </Key>
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="CreatedDateTime" Type="datetime" Nullable="false" />
+          <Property Name="CurrentValue" Type="float" Nullable="false" />
+        </EntityType>
+        <EntityType Name="BemsPeakHistoryDaily">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="CreatedDateTime" />
+          </Key>
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="CreatedDateTime" Type="datetime" Nullable="false" />
+          <Property Name="MaxPeakValue" Type="float" />
+          <Property Name="MaxDateTime" Type="datetime" />
+          <Property Name="MinPeakValue" Type="float" />
+          <Property Name="MinDateTime" Type="datetime" />
+        </EntityType>
+        <EntityType Name="BemsPeakInfo">
+          <Key>
+            <PropertyRef Name="SiteId" />
+          </Key>
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="MaxDateTime" Type="datetime" Nullable="false" />
+          <Property Name="MaxPeakValue" Type="float" Nullable="false" />
+          <Property Name="MinDateTime" Type="datetime" Nullable="false" />
+          <Property Name="MinPeakValue" Type="float" Nullable="false" />
+          <Property Name="todayMaxPeakValue" Type="float" Nullable="false" />
+          <Property Name="todayMinPeakValue" Type="float" Nullable="false" />
+        </EntityType>
+        <EntityType Name="BemsPeopleIncrease">
+          <Key>
+            <PropertyRef Name="Date" />
+            <PropertyRef Name="SiteId" />
+          </Key>
+          <Property Name="Date" Type="nvarchar" MaxLength="5" Nullable="false" />
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="m1" Type="nvarchar" MaxLength="50" />
+          <Property Name="m2" Type="nvarchar" MaxLength="50" />
+          <Property Name="m3" Type="nvarchar" MaxLength="50" />
+          <Property Name="m4" Type="nvarchar" MaxLength="50" />
+          <Property Name="m5" Type="nvarchar" MaxLength="50" />
+          <Property Name="m6" Type="nvarchar" MaxLength="50" />
+          <Property Name="m7" Type="nvarchar" MaxLength="50" />
+          <Property Name="m8" Type="nvarchar" MaxLength="50" />
+          <Property Name="m9" Type="nvarchar" MaxLength="50" />
+          <Property Name="m10" Type="nvarchar" MaxLength="50" />
+          <Property Name="m11" Type="nvarchar" MaxLength="50" />
+          <Property Name="m12" Type="nvarchar" MaxLength="50" />
+        </EntityType>
+        <EntityType Name="BemsPriceCode">
+          <Key>
+            <PropertyRef Name="PriceCode" />
+          </Key>
+          <Property Name="PriceCode" Type="varchar" MaxLength="20" Nullable="false" />
+          <Property Name="PriceCodeDesc" Type="varchar" MaxLength="200" />
+          <Property Name="FuelTypeId" Type="smallint" Nullable="false" />
+          <Property Name="Unit" Type="varchar" MaxLength="20" />
+        </EntityType>
+        <EntityType Name="BemsPriceFormula">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="PriceTypeId" />
+            <PropertyRef Name="FacilityTypeId" />
+            <PropertyRef Name="FormulaId" />
+            <PropertyRef Name="FacilityCode" />
+          </Key>
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="PriceTypeId" Type="int" Nullable="false" />
+          <Property Name="FacilityTypeId" Type="int" Nullable="false" />
+          <Property Name="FormulaId" Type="int" Nullable="false" />
+          <Property Name="FacilityCode" Type="int" Nullable="false" />
+          <Property Name="UseYN" Type="nvarchar" MaxLength="1" Nullable="false" />
+        </EntityType>
+        <EntityType Name="BemsPriceMeta">
+          <Key>
+            <PropertyRef Name="PriceTypeId" />
+            <PropertyRef Name="PublishDate" />
+          </Key>
+          <Property Name="PriceTypeId" Type="int" Nullable="false" />
+          <Property Name="PublishDate" Type="datetime" Nullable="false" />
+          <Property Name="BasePrice" Type="int" />
+          <Property Name="01_00" Type="float" />
+          <Property Name="01_01" Type="float" />
+          <Property Name="01_02" Type="float" />
+          <Property Name="01_03" Type="float" />
+          <Property Name="01_04" Type="float" />
+          <Property Name="01_05" Type="float" />
+          <Property Name="01_06" Type="float" />
+          <Property Name="01_07" Type="float" />
+          <Property Name="01_08" Type="float" />
+          <Property Name="01_09" Type="float" />
+          <Property Name="01_10" Type="float" />
+          <Property Name="01_11" Type="float" />
+          <Property Name="01_12" Type="float" />
+          <Property Name="01_13" Type="float" />
+          <Property Name="01_14" Type="float" />
+          <Property Name="01_15" Type="float" />
+          <Property Name="01_16" Type="float" />
+          <Property Name="01_17" Type="float" />
+          <Property Name="01_18" Type="float" />
+          <Property Name="01_19" Type="float" />
+          <Property Name="01_20" Type="float" />
+          <Property Name="01_21" Type="float" />
+          <Property Name="01_22" Type="float" />
+          <Property Name="01_23" Type="float" />
+          <Property Name="02_00" Type="float" />
+          <Property Name="02_01" Type="float" />
+          <Property Name="02_02" Type="float" />
+          <Property Name="02_03" Type="float" />
+          <Property Name="02_04" Type="float" />
+          <Property Name="02_05" Type="float" />
+          <Property Name="02_06" Type="float" />
+          <Property Name="02_07" Type="float" />
+          <Property Name="02_08" Type="float" />
+          <Property Name="02_09" Type="float" />
+          <Property Name="02_10" Type="float" />
+          <Property Name="02_11" Type="float" />
+          <Property Name="02_12" Type="float" />
+          <Property Name="02_13" Type="float" />
+          <Property Name="02_14" Type="float" />
+          <Property Name="02_15" Type="float" />
+          <Property Name="02_16" Type="float" />
+          <Property Name="02_17" Type="float" />
+          <Property Name="02_18" Type="float" />
+          <Property Name="02_19" Type="float" />
+          <Property Name="02_20" Type="float" />
+          <Property Name="02_21" Type="float" />
+          <Property Name="02_22" Type="float" />
+          <Property Name="02_23" Type="float" />
+          <Property Name="03_00" Type="float" />
+          <Property Name="03_01" Type="float" />
+          <Property Name="03_02" Type="float" />
+          <Property Name="03_03" Type="float" />
+          <Property Name="03_04" Type="float" />
+          <Property Name="03_05" Type="float" />
+          <Property Name="03_06" Type="float" />
+          <Property Name="03_07" Type="float" />
+          <Property Name="03_08" Type="float" />
+          <Property Name="03_09" Type="float" />
+          <Property Name="03_10" Type="float" />
+          <Property Name="03_11" Type="float" />
+          <Property Name="03_12" Type="float" />
+          <Property Name="03_13" Type="float" />
+          <Property Name="03_14" Type="float" />
+          <Property Name="03_15" Type="float" />
+          <Property Name="03_16" Type="float" />
+          <Property Name="03_17" Type="float" />
+          <Property Name="03_18" Type="float" />
+          <Property Name="03_19" Type="float" />
+          <Property Name="03_20" Type="float" />
+          <Property Name="03_21" Type="float" />
+          <Property Name="03_22" Type="float" />
+          <Property Name="03_23" Type="float" />
+          <Property Name="04_00" Type="float" />
+          <Property Name="04_01" Type="float" />
+          <Property Name="04_02" Type="float" />
+          <Property Name="04_03" Type="float" />
+          <Property Name="04_04" Type="float" />
+          <Property Name="04_05" Type="float" />
+          <Property Name="04_06" Type="float" />
+          <Property Name="04_07" Type="float" />
+          <Property Name="04_08" Type="float" />
+          <Property Name="04_09" Type="float" />
+          <Property Name="04_10" Type="float" />
+          <Property Name="04_11" Type="float" />
+          <Property Name="04_12" Type="float" />
+          <Property Name="04_13" Type="float" />
+          <Property Name="04_14" Type="float" />
+          <Property Name="04_15" Type="float" />
+          <Property Name="04_16" Type="float" />
+          <Property Name="04_17" Type="float" />
+          <Property Name="04_18" Type="float" />
+          <Property Name="04_19" Type="float" />
+          <Property Name="04_20" Type="float" />
+          <Property Name="04_21" Type="float" />
+          <Property Name="04_22" Type="float" />
+          <Property Name="04_23" Type="float" />
+          <Property Name="05_00" Type="float" />
+          <Property Name="05_01" Type="float" />
+          <Property Name="05_02" Type="float" />
+          <Property Name="05_03" Type="float" />
+          <Property Name="05_04" Type="float" />
+          <Property Name="05_05" Type="float" />
+          <Property Name="05_06" Type="float" />
+          <Property Name="05_07" Type="float" />
+          <Property Name="05_08" Type="float" />
+          <Property Name="05_09" Type="float" />
+          <Property Name="05_10" Type="float" />
+          <Property Name="05_11" Type="float" />
+          <Property Name="05_12" Type="float" />
+          <Property Name="05_13" Type="float" />
+          <Property Name="05_14" Type="float" />
+          <Property Name="05_15" Type="float" />
+          <Property Name="05_16" Type="float" />
+          <Property Name="05_17" Type="float" />
+          <Property Name="05_18" Type="float" />
+          <Property Name="05_19" Type="float" />
+          <Property Name="05_20" Type="float" />
+          <Property Name="05_21" Type="float" />
+          <Property Name="05_22" Type="float" />
+          <Property Name="05_23" Type="float" />
+          <Property Name="06_00" Type="float" />
+          <Property Name="06_01" Type="float" />
+          <Property Name="06_02" Type="float" />
+          <Property Name="06_03" Type="float" />
+          <Property Name="06_04" Type="float" />
+          <Property Name="06_05" Type="float" />
+          <Property Name="06_06" Type="float" />
+          <Property Name="06_07" Type="float" />
+          <Property Name="06_08" Type="float" />
+          <Property Name="06_09" Type="float" />
+          <Property Name="06_10" Type="float" />
+          <Property Name="06_11" Type="float" />
+          <Property Name="06_12" Type="float" />
+          <Property Name="06_13" Type="float" />
+          <Property Name="06_14" Type="float" />
+          <Property Name="06_15" Type="float" />
+          <Property Name="06_16" Type="float" />
+          <Property Name="06_17" Type="float" />
+          <Property Name="06_18" Type="float" />
+          <Property Name="06_19" Type="float" />
+          <Property Name="06_20" Type="float" />
+          <Property Name="06_21" Type="float" />
+          <Property Name="06_22" Type="float" />
+          <Property Name="06_23" Type="float" />
+          <Property Name="07_00" Type="float" />
+          <Property Name="07_01" Type="float" />
+          <Property Name="07_02" Type="float" />
+          <Property Name="07_03" Type="float" />
+          <Property Name="07_04" Type="float" />
+          <Property Name="07_05" Type="float" />
+          <Property Name="07_06" Type="float" />
+          <Property Name="07_07" Type="float" />
+          <Property Name="07_08" Type="float" />
+          <Property Name="07_09" Type="float" />
+          <Property Name="07_10" Type="float" />
+          <Property Name="07_11" Type="float" />
+          <Property Name="07_12" Type="float" />
+          <Property Name="07_13" Type="float" />
+          <Property Name="07_14" Type="float" />
+          <Property Name="07_15" Type="float" />
+          <Property Name="07_16" Type="float" />
+          <Property Name="07_17" Type="float" />
+          <Property Name="07_18" Type="float" />
+          <Property Name="07_19" Type="float" />
+          <Property Name="07_20" Type="float" />
+          <Property Name="07_21" Type="float" />
+          <Property Name="07_22" Type="float" />
+          <Property Name="07_23" Type="float" />
+          <Property Name="08_00" Type="float" />
+          <Property Name="08_01" Type="float" />
+          <Property Name="08_02" Type="float" />
+          <Property Name="08_03" Type="float" />
+          <Property Name="08_04" Type="float" />
+          <Property Name="08_05" Type="float" />
+          <Property Name="08_06" Type="float" />
+          <Property Name="08_07" Type="float" />
+          <Property Name="08_08" Type="float" />
+          <Property Name="08_09" Type="float" />
+          <Property Name="08_10" Type="float" />
+          <Property Name="08_11" Type="float" />
+          <Property Name="08_12" Type="float" />
+          <Property Name="08_13" Type="float" />
+          <Property Name="08_14" Type="float" />
+          <Property Name="08_15" Type="float" />
+          <Property Name="08_16" Type="float" />
+          <Property Name="08_17" Type="float" />
+          <Property Name="08_18" Type="float" />
+          <Property Name="08_19" Type="float" />
+          <Property Name="08_20" Type="float" />
+          <Property Name="08_21" Type="float" />
+          <Property Name="08_22" Type="float" />
+          <Property Name="08_23" Type="float" />
+          <Property Name="09_00" Type="float" />
+          <Property Name="09_01" Type="float" />
+          <Property Name="09_02" Type="float" />
+          <Property Name="09_03" Type="float" />
+          <Property Name="09_04" Type="float" />
+          <Property Name="09_05" Type="float" />
+          <Property Name="09_06" Type="float" />
+          <Property Name="09_07" Type="float" />
+          <Property Name="09_08" Type="float" />
+          <Property Name="09_09" Type="float" />
+          <Property Name="09_10" Type="float" />
+          <Property Name="09_11" Type="float" />
+          <Property Name="09_12" Type="float" />
+          <Property Name="09_13" Type="float" />
+          <Property Name="09_14" Type="float" />
+          <Property Name="09_15" Type="float" />
+          <Property Name="09_16" Type="float" />
+          <Property Name="09_17" Type="float" />
+          <Property Name="09_18" Type="float" />
+          <Property Name="09_19" Type="float" />
+          <Property Name="09_20" Type="float" />
+          <Property Name="09_21" Type="float" />
+          <Property Name="09_22" Type="float" />
+          <Property Name="09_23" Type="float" />
+          <Property Name="10_00" Type="float" />
+          <Property Name="10_01" Type="float" />
+          <Property Name="10_02" Type="float" />
+          <Property Name="10_03" Type="float" />
+          <Property Name="10_04" Type="float" />
+          <Property Name="10_05" Type="float" />
+          <Property Name="10_06" Type="float" />
+          <Property Name="10_07" Type="float" />
+          <Property Name="10_08" Type="float" />
+          <Property Name="10_09" Type="float" />
+          <Property Name="10_10" Type="float" />
+          <Property Name="10_11" Type="float" />
+          <Property Name="10_12" Type="float" />
+          <Property Name="10_13" Type="float" />
+          <Property Name="10_14" Type="float" />
+          <Property Name="10_15" Type="float" />
+          <Property Name="10_16" Type="float" />
+          <Property Name="10_17" Type="float" />
+          <Property Name="10_18" Type="float" />
+          <Property Name="10_19" Type="float" />
+          <Property Name="10_20" Type="float" />
+          <Property Name="10_21" Type="float" />
+          <Property Name="10_22" Type="float" />
+          <Property Name="10_23" Type="float" />
+          <Property Name="11_00" Type="float" />
+          <Property Name="11_01" Type="float" />
+          <Property Name="11_02" Type="float" />
+          <Property Name="11_03" Type="float" />
+          <Property Name="11_04" Type="float" />
+          <Property Name="11_05" Type="float" />
+          <Property Name="11_06" Type="float" />
+          <Property Name="11_07" Type="float" />
+          <Property Name="11_08" Type="float" />
+          <Property Name="11_09" Type="float" />
+          <Property Name="11_10" Type="float" />
+          <Property Name="11_11" Type="float" />
+          <Property Name="11_12" Type="float" />
+          <Property Name="11_13" Type="float" />
+          <Property Name="11_14" Type="float" />
+          <Property Name="11_15" Type="float" />
+          <Property Name="11_16" Type="float" />
+          <Property Name="11_17" Type="float" />
+          <Property Name="11_18" Type="float" />
+          <Property Name="11_19" Type="float" />
+          <Property Name="11_20" Type="float" />
+          <Property Name="11_21" Type="float" />
+          <Property Name="11_22" Type="float" />
+          <Property Name="11_23" Type="float" />
+          <Property Name="12_00" Type="float" />
+          <Property Name="12_01" Type="float" />
+          <Property Name="12_02" Type="float" />
+          <Property Name="12_03" Type="float" />
+          <Property Name="12_04" Type="float" />
+          <Property Name="12_05" Type="float" />
+          <Property Name="12_06" Type="float" />
+          <Property Name="12_07" Type="float" />
+          <Property Name="12_08" Type="float" />
+          <Property Name="12_09" Type="float" />
+          <Property Name="12_10" Type="float" />
+          <Property Name="12_11" Type="float" />
+          <Property Name="12_12" Type="float" />
+          <Property Name="12_13" Type="float" />
+          <Property Name="12_14" Type="float" />
+          <Property Name="12_15" Type="float" />
+          <Property Name="12_16" Type="float" />
+          <Property Name="12_17" Type="float" />
+          <Property Name="12_18" Type="float" />
+          <Property Name="12_19" Type="float" />
+          <Property Name="12_20" Type="float" />
+          <Property Name="12_21" Type="float" />
+          <Property Name="12_22" Type="float" />
+          <Property Name="12_23" Type="float" />
+        </EntityType>
+        <EntityType Name="BemsPriceType">
+          <Key>
+            <PropertyRef Name="PriceTypeId" />
+          </Key>
+          <Property Name="PriceTypeId" Type="int" Nullable="false" />
+          <Property Name="PriceTypeIdDesc" Type="varchar" MaxLength="200" />
+          <Property Name="FuelTypeId" Type="smallint" Nullable="false" />
+        </EntityType>
+        <EntityType Name="BemsRentalRate">
+          <Key>
+            <PropertyRef Name="Date" />
+            <PropertyRef Name="SiteId" />
+          </Key>
+          <Property Name="Date" Type="nvarchar" MaxLength="5" Nullable="false" />
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="m1" Type="nvarchar" MaxLength="50" />
+          <Property Name="m2" Type="nvarchar" MaxLength="50" />
+          <Property Name="m3" Type="nvarchar" MaxLength="50" />
+          <Property Name="m4" Type="nvarchar" MaxLength="50" />
+          <Property Name="m5" Type="nvarchar" MaxLength="50" />
+          <Property Name="m6" Type="nvarchar" MaxLength="50" />
+          <Property Name="m7" Type="nvarchar" MaxLength="50" />
+          <Property Name="m8" Type="nvarchar" MaxLength="50" />
+          <Property Name="m9" Type="nvarchar" MaxLength="50" />
+          <Property Name="m10" Type="nvarchar" MaxLength="50" />
+          <Property Name="m11" Type="nvarchar" MaxLength="50" />
+          <Property Name="m12" Type="nvarchar" MaxLength="50" />
+        </EntityType>
+        <EntityType Name="BemsReportFormat">
+          <Key>
+            <PropertyRef Name="ReportFormatId" />
+            <PropertyRef Name="parts" />
+          </Key>
+          <Property Name="ReportFormatId" Type="int" Nullable="false" />
+          <Property Name="FormatName" Type="varchar" MaxLength="50" Nullable="false" />
+          <Property Name="Content" Type="varchar(max)" />
+          <Property Name="parts" Type="int" Nullable="false" />
+        </EntityType>
+        <EntityType Name="BemsReportHistory">
+          <Key>
+            <PropertyRef Name="Seq" />
+            <PropertyRef Name="DateTime" />
+            <PropertyRef Name="ReportFormatId" />
+            <PropertyRef Name="parts" />
+          </Key>
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="Seq" Type="int" Nullable="false" />
+          <Property Name="DateTime" Type="datetime" Nullable="false" />
+          <Property Name="ReportName" Type="varchar" MaxLength="200" Nullable="false" />
+          <Property Name="ReportFormatId" Type="int" Nullable="false" />
+          <Property Name="FormatName" Type="varchar" MaxLength="50" Nullable="false" />
+          <Property Name="Content" Type="varchar(max)" />
+          <Property Name="Writer" Type="varchar" MaxLength="50" />
+          <Property Name="Confirm1" Type="varchar" MaxLength="50" />
+          <Property Name="Confirm2" Type="varchar" MaxLength="50" />
+          <Property Name="parts" Type="int" Nullable="false" />
+          <Property Name="FileName" Type="nvarchar" MaxLength="100" />
+        </EntityType>
+        <EntityType Name="BemsServiceType">
+          <Key>
+            <PropertyRef Name="ServiceTypeId" />
+          </Key>
+          <Property Name="ServiceTypeId" Type="smallint" Nullable="false" />
+          <Property Name="Name" Type="nvarchar" MaxLength="48" />
+        </EntityType>
+        <EntityType Name="BemsSitePrice">
+          <Key>
+            <PropertyRef Name="SiteID" />
+            <PropertyRef Name="FuelTypeId" />
+            <PropertyRef Name="PriceTypeId" />
+            <PropertyRef Name="PriceCode" />
+          </Key>
+          <Property Name="SiteID" Type="int" Nullable="false" />
+          <Property Name="FuelTypeId" Type="smallint" Nullable="false" />
+          <Property Name="PriceTypeId" Type="int" Nullable="false" />
+          <Property Name="PriceCode" Type="varchar" MaxLength="20" Nullable="false" />
+          <Property Name="UseYN" Type="varchar" MaxLength="1" Nullable="false" />
+        </EntityType>
+        <EntityType Name="BemsSitePriceHistory">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="FuelTypeId" />
+            <PropertyRef Name="PriceTypeId" />
+            <PropertyRef Name="PriceCode" />
+            <PropertyRef Name="PayDate" />
+          </Key>
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="FuelTypeId" Type="smallint" Nullable="false" />
+          <Property Name="PriceTypeId" Type="int" Nullable="false" />
+          <Property Name="PriceCode" Type="varchar" MaxLength="20" Nullable="false" />
+          <Property Name="PriceValue" Type="varchar" MaxLength="200" />
+          <Property Name="PayDate" Type="varchar" MaxLength="6" Nullable="false" />
+          <Property Name="StartDate" Type="datetime" />
+          <Property Name="EndDate" Type="datetime" />
+          <Property Name="PayCharge" Type="varchar" MaxLength="200" />
+        </EntityType>
+        <EntityType Name="CmAlarmAdmin">
+          <Key>
+            <PropertyRef Name="SiteId" />
+          </Key>
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="UserCode" Type="nvarchar" MaxLength="50" />
+          <Property Name="DeptCode" Type="nvarchar" MaxLength="50" />
+          <Property Name="PhoneNo" Type="nvarchar" MaxLength="50" />
+          <Property Name="EmailAddress" Type="nvarchar" MaxLength="50" />
+          <Property Name="EmailPassword" Type="nvarchar" MaxLength="50" />
+        </EntityType>
+        <EntityType Name="CmAnnouncement">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="AnnouncementId" />
+          </Key>
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="AnnouncementId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+          <Property Name="BusinessFieldId" Type="int" Nullable="false" />
+          <Property Name="Title" Type="nvarchar" MaxLength="128" Nullable="false" />
+          <Property Name="Contents" Type="nvarchar" MaxLength="1024" Nullable="false" />
+          <Property Name="RegisterUserId" Type="nvarchar" MaxLength="24" Nullable="false" />
+          <Property Name="FileId" Type="int" />
+          <Property Name="AddDate" Type="datetime" Nullable="false" />
+          <Property Name="UpdateDate" Type="datetime" Nullable="false" />
+          <Property Name="IsUse" Type="bit" />
+          <Property Name="ReadCount" Type="int" Nullable="false" />
+        </EntityType>
+        <EntityType Name="CmBuilding">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="BuildingId" />
+          </Key>
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="BuildingId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+          <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
+          <Property Name="FileId" Type="int" />
+          <Property Name="IsUse" Type="bit" />
+          <Property Name="SortOrderNo" Type="int" />
+        </EntityType>
+        <EntityType Name="CmBusinessField">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="BusinessFieldId" />
+          </Key>
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="BusinessFieldId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+          <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
+          <Property Name="IsUse" Type="bit" />
+        </EntityType>
+        <EntityType Name="CmCompany">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="CompanyId" />
+          </Key>
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="CompanyId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+          <Property Name="CompanyTypeId" Type="int" Nullable="false" />
+          <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
+          <Property Name="PhoneNo" Type="nvarchar" MaxLength="20" Nullable="false" />
+          <Property Name="FaxNo" Type="nvarchar" MaxLength="20" />
+          <Property Name="RepresentativeName" Type="nvarchar" MaxLength="20" Nullable="false" />
+          <Property Name="SalesName" Type="nvarchar" MaxLength="20" />
+          <Property Name="SalesPhoneNo" Type="nvarchar" MaxLength="20" />
+          <Property Name="AddressZip1" Type="nchar" MaxLength="5" />
+          <Property Name="AddressZip2" Type="nchar" MaxLength="3" />
+          <Property Name="Address1" Type="nvarchar" MaxLength="50" />
+          <Property Name="Adderss2" Type="nvarchar" MaxLength="100" />
+          <Property Name="Homepage" Type="nvarchar" MaxLength="100" />
+          <Property Name="Comment" Type="nvarchar" MaxLength="1024" />
+          <Property Name="IsUse" Type="bit" />
+        </EntityType>
+        <EntityType Name="CmCompanyType">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="CompanyTypeId" />
+          </Key>
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="CompanyTypeId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+          <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
+          <Property Name="IsUse" Type="bit" />
+        </EntityType>
+        <EntityType Name="CmDepartment">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="CompanyId" />
+            <PropertyRef Name="DepartmentId" />
+          </Key>
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="CompanyId" Type="int" Nullable="false" />
+          <Property Name="DepartmentId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+          <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
+          <Property Name="ShortName" Type="nvarchar" MaxLength="50" />
+          <Property Name="FaxNo" Type="nvarchar" MaxLength="50" />
+          <Property Name="PhoneNo" Type="nvarchar" MaxLength="50" />
+          <Property Name="Comment" Type="nvarchar" MaxLength="1024" />
+          <Property Name="IsUse" Type="bit" />
+        </EntityType>
+        <EntityType Name="CmFacility">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="FacilityCode" />
+          </Key>
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="FacilityTypeId" Type="int" Nullable="false" />
+          <Property Name="FacilityCode" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+          <Property Name="FirstClassId" Type="int" />
+          <Property Name="SecondClassId" Type="int" />
+          <Property Name="ThirdClassId" Type="int" />
+          <Property Name="DeviceType" Type="nvarchar" MaxLength="48" />
+          <Property Name="ParentFacilityCode" Type="int" />
+          <Property Name="Name" Type="nvarchar" MaxLength="80" Nullable="false" />
+          <Property Name="Nickname" Type="nvarchar" MaxLength="40" />
+          <Property Name="Rfid" Type="nvarchar" MaxLength="52" />
+          <Property Name="Manufacturer" Type="nvarchar" MaxLength="40" />
+          <Property Name="ManufactureDate" Type="date" />
+          <Property Name="ManufactureSerial" Type="nvarchar" MaxLength="20" />
+          <Property Name="ManufactureModel" Type="nvarchar" MaxLength="40" />
+          <Property Name="Supplier" Type="nvarchar" MaxLength="40" />
+          <Property Name="SupplierPhoneNo" Type="nvarchar" MaxLength="20" />
+          <Property Name="BuildingId" Type="int" />
+          <Property Name="FloorId" Type="int" />
+          <Property Name="ZoneId" Type="int" />
+          <Property Name="InstallDate" Type="date" />
+          <Property Name="OperationStartDate" Type="date" />
+          <Property Name="FacilityCapacity" Type="nvarchar" MaxLength="40" />
+          <Property Name="FacilityCost" Type="int" />
+          <Property Name="FacilityCount" Type="int" />
+          <Property Name="FacilitySeviceLifeYear" Type="int" />
+          <Property Name="FacilityUsage" Type="nvarchar" MaxLength="80" />
+          <Property Name="RatedPowerConsumption" Type="nvarchar" MaxLength="40" />
+          <Property Name="RatedCOP" Type="float" />
+          <Property Name="MainContactorUserId" Type="nvarchar" MaxLength="24" />
+          <Property Name="SubContactorUserId" Type="nvarchar" MaxLength="24" />
+          <Property Name="Note" Type="nvarchar" MaxLength="1024" />
+          <Property Name="Reserved1" Type="nvarchar" MaxLength="64" />
+          <Property Name="Reserved2" Type="nvarchar" MaxLength="64" />
+          <Property Name="IsUse" Type="bit" />
+          <Property Name="FileId" Type="int" />
+          <Property Name="IsVirtualFacility" Type="bit" Nullable="false" />
+          <Property Name="FuelTypeId" Type="smallint" />
+          <Property Name="ContractType" Type="smallint" />
+        </EntityType>
+        <EntityType Name="CmFacilityFile">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="FileId" />
+          </Key>
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="FileId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+          <Property Name="FacilityCode" Type="int" Nullable="false" />
+          <Property Name="InsertedDate" Type="datetime" />
+          <Property Name="InsertedUserId" Type="nvarchar" MaxLength="24" />
+          <Property Name="UpdatedDate" Type="datetime" />
+          <Property Name="UpdatedUserId" Type="nvarchar" MaxLength="24" />
+        </EntityType>
+        <EntityType Name="CmFacilityTempSet">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="FacilityCode" />
+          </Key>
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="FacilityCode" Type="int" Nullable="false" />
+          <Property Name="T1" Type="float" Nullable="false" />
+          <Property Name="T2" Type="float" Nullable="false" />
+          <Property Name="T3" Type="float" Nullable="false" />
+          <Property Name="T4" Type="float" Nullable="false" />
+          <Property Name="T5" Type="float" Nullable="false" />
+          <Property Name="T6" Type="float" Nullable="false" />
+          <Property Name="T7" Type="float" Nullable="false" />
+          <Property Name="T8" Type="float" Nullable="false" />
+          <Property Name="T9" Type="float" Nullable="false" />
+          <Property Name="T10" Type="float" Nullable="false" />
+          <Property Name="T11" Type="float" Nullable="false" />
+          <Property Name="T12" Type="float" Nullable="false" />
+        </EntityType>
+        <EntityType Name="CmFile">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="FileId" />
+          </Key>
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="FileId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+          <Property Name="FileCategoryId" Type="int" Nullable="false" />
+          <Property Name="Name" Type="nvarchar" MaxLength="256" Nullable="false" />
+          <Property Name="FileSize" Type="int" />
+          <Property Name="CreatedDate" Type="datetime" />
+          <Property Name="ContentType" Type="nvarchar" MaxLength="128" />
+        </EntityType>
+        <EntityType Name="CmFileCategory">
+          <Key>
+            <PropertyRef Name="FileCategoryId" />
+          </Key>
+          <Property Name="FileCategoryId" Type="int" Nullable="false" />
+          <Property Name="Name" Type="nvarchar" MaxLength="32" Nullable="false" />
+        </EntityType>
+        <EntityType Name="CmFloor">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="BuildingId" />
+            <PropertyRef Name="FloorId" />
+          </Key>
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="BuildingId" Type="int" Nullable="false" />
+          <Property Name="FloorId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+          <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
+        </EntityType>
+        <EntityType Name="CmHoliday">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="HolidayMonth" />
+            <PropertyRef Name="HolidayDay" />
+            <PropertyRef Name="IsLunar" />
+          </Key>
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="HolidayMonth" Type="smallint" Nullable="false" />
+          <Property Name="HolidayDay" Type="smallint" Nullable="false" />
+          <Property Name="IsLunar" Type="bit" Nullable="false" />
+          <Property Name="Name" Type="nvarchar" MaxLength="16" Nullable="false" />
+          <Property Name="IsUse" Type="bit" />
+        </EntityType>
+        <EntityType Name="CmHolidayCustom">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="HolidayDate" />
+          </Key>
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="HolidayDate" Type="datetime" Nullable="false" />
+          <Property Name="Name" Type="nvarchar" MaxLength="16" Nullable="false" />
+          <Property Name="IsUse" Type="bit" />
+        </EntityType>
+        <EntityType Name="CmHolidayWeekend">
+          <Key>
+            <PropertyRef Name="SiteId" />
+          </Key>
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="Saturday" Type="bit" Nullable="false" />
+          <Property Name="Sunday" Type="bit" Nullable="false" />
+          <Property Name="IsUse" Type="bit" />
+        </EntityType>
+        <EntityType Name="CmMenu">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="MenuId" />
+          </Key>
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="MenuId" Type="nvarchar" MaxLength="50" Nullable="false" />
+          <Property Name="Used" Type="bit" />
+          <Property Name="MenuPath" Type="nvarchar" MaxLength="255" />
+          <Property Name="Name" Type="nvarchar" MaxLength="50" />
+        </EntityType>
+        <EntityType Name="CmPartner">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="PartnerId" />
+          </Key>
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="PartnerId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+          <Property Name="PartnerTypeId" Type="int" Nullable="false" />
+          <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
+          <Property Name="RegistrationNo" Type="nvarchar" MaxLength="24" />
+          <Property Name="RepresentativeName" Type="nvarchar" MaxLength="20" />
+          <Property Name="PhoneNo" Type="nvarchar" MaxLength="20" />
+          <Property Name="FaxNo" Type="nvarchar" MaxLength="20" />
+          <Property Name="SalesName" Type="nvarchar" MaxLength="20" />
+          <Property Name="SalesPhoneNo" Type="nvarchar" MaxLength="20" />
+          <Property Name="AddressZip1" Type="nchar" MaxLength="3" />
+          <Property Name="AddressZip2" Type="nchar" MaxLength="3" />
+          <Property Name="Address1" Type="nvarchar" MaxLength="50" />
+          <Property Name="Adderss2" Type="nvarchar" MaxLength="100" />
+          <Property Name="HomepageUri" Type="nvarchar" MaxLength="100" />
+          <Property Name="Note" Type="nvarchar" MaxLength="1024" />
+          <Property Name="IsUse" Type="bit" />
+        </EntityType>
+        <EntityType Name="CmPartnerType">
+          <Key>
+            <PropertyRef Name="PartnerTypeId" />
+          </Key>
+          <Property Name="PartnerTypeId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+          <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
+          <Property Name="IsUse" Type="bit" />
+        </EntityType>
+        <EntityType Name="CmPatrolCourse">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="PatrolCourseId" />
+          </Key>
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="PatrolCourseId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+          <Property Name="Name" Type="nvarchar" MaxLength="48" Nullable="false" />
+        </EntityType>
+        <EntityType Name="CmPatrolCoursePos">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="PatrolCourseId" />
+            <PropertyRef Name="BuildingId" />
+            <PropertyRef Name="FloorId" />
+            <PropertyRef Name="PosId" />
+          </Key>
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="PatrolCourseId" Type="int" Nullable="false" />
+          <Property Name="BuildingId" Type="int" Nullable="false" />
+          <Property Name="FloorId" Type="int" Nullable="false" />
+          <Property Name="PosId" Type="int" Nullable="false" />
+          <Property Name="CourseOrder" Type="int" Nullable="false" />
+        </EntityType>
+        <EntityType Name="CmPatrolGroup">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="PatrolGroupId" />
+          </Key>
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="PatrolGroupId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+          <Property Name="Name" Type="nvarchar" MaxLength="48" Nullable="false" />
+        </EntityType>
+        <EntityType Name="CmPatrolGroupUser">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="PatrolGroupId" />
+            <PropertyRef Name="UserId" />
+          </Key>
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="PatrolGroupId" Type="int" Nullable="false" />
+          <Property Name="UserId" Type="nvarchar" MaxLength="24" Nullable="false" />
+        </EntityType>
+        <EntityType Name="CmPatrolHistory">
+          <Key>
+            <PropertyRef Name="PatrolHistoryId" />
+          </Key>
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="PatrolHistoryId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+          <Property Name="ScheduleId" Type="int" Nullable="false" />
+          <Property Name="startDate" Type="datetime" Nullable="false" />
+          <Property Name="endDate" Type="datetime" />
+          <Property Name="resultTypeId" Type="int" Nullable="false" />
+          <Property Name="resultDesc" Type="varchar" MaxLength="1024" />
+          <Property Name="resultPosCnt" Type="int" />
+          <Property Name="resultNormalCnt" Type="int" />
+          <Property Name="resultAbnormalCnt" Type="int" />
+        </EntityType>
+        <EntityType Name="CmPatrolHistoryPos">
+          <Key>
+            <PropertyRef Name="mId" />
+          </Key>
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="PatrolHistoryId" Type="int" Nullable="false" />
+          <Property Name="PosId" Type="int" Nullable="false" />
+          <Property Name="PatrolTime" Type="datetime" Nullable="false" />
+          <Property Name="term" Type="int" />
+          <Property Name="resultType" Type="int" Nullable="false" />
+          <Property Name="mId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+        </EntityType>
+        <EntityType Name="CmPatrolPlan">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="PatrolPlanId" />
+          </Key>
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="PatrolPlanId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+          <Property Name="GroupId" Type="int" Nullable="false" />
+          <Property Name="CourseId" Type="int" Nullable="false" />
+          <Property Name="Name" Type="varchar" MaxLength="48" Nullable="false" />
+          <Property Name="PlanDesc" Type="varchar" MaxLength="1024" />
+          <Property Name="term" Type="int" Nullable="false" />
+          <Property Name="inDate" Type="datetime" />
+        </EntityType>
+        <EntityType Name="CmPatrolPos">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="PosId" />
+          </Key>
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="BuildingId" Type="int" Nullable="false" />
+          <Property Name="FloorId" Type="int" Nullable="false" />
+          <Property Name="PosId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+          <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
+          <Property Name="TagId" Type="nvarchar" MaxLength="32" />
+          <Property Name="PosDesc" Type="nvarchar" MaxLength="1024" />
+        </EntityType>
+        <EntityType Name="CmPatrolSchedule">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="ScheduleId" />
+          </Key>
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="ScheduleId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+          <Property Name="PlanId" Type="int" Nullable="false" />
+          <Property Name="Name" Type="varchar" MaxLength="48" Nullable="false" />
+          <Property Name="ScheduleDesc" Type="varchar" MaxLength="128" />
+          <Property Name="inDate" Type="datetime" />
+          <Property Name="patrolDateTime" Type="datetime" Nullable="false" />
+        </EntityType>
+        <EntityType Name="CmPatrolType">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="PatrolTypeId" />
+          </Key>
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="PatrolTypeId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+          <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
+          <Property Name="IsUse" Type="bit" />
+        </EntityType>
+        <EntityType Name="CmPosition">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="PositionId" />
+          </Key>
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="PositionId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+          <Property Name="Name" Type="nvarchar" MaxLength="40" Nullable="false" />
+          <Property Name="IsUse" Type="bit" />
+          <Property Name="Position" Type="int" />
+        </EntityType>
+        <EntityType Name="CmServiceEnergyCalcDay">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="calDate" />
+            <PropertyRef Name="ServiceTypeId" />
+          </Key>
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="calDate" Type="datetime" Nullable="false" />
+          <Property Name="ServiceTypeId" Type="smallint" Nullable="false" />
+          <Property Name="Value" Type="float" />
+        </EntityType>
+        <EntityType Name="CmServiceEnergyCalcMonth">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="calDate" />
+            <PropertyRef Name="ServiceTypeId" />
+          </Key>
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="calDate" Type="datetime" Nullable="false" />
+          <Property Name="ServiceTypeId" Type="smallint" Nullable="false" />
+          <Property Name="Value" Type="float" />
+        </EntityType>
+        <EntityType Name="CmSite">
+          <Key>
+            <PropertyRef Name="SiteId" />
+          </Key>
+          <Property Name="SiteId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+          <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
+          <Property Name="AddressZip1" Type="nchar" MaxLength="5" />
+          <Property Name="AddressZip2" Type="nchar" MaxLength="3" />
+          <Property Name="Address1" Type="nvarchar" MaxLength="100" />
+          <Property Name="Adderss2" Type="nvarchar" MaxLength="100" />
+          <Property Name="PhoneNo" Type="nvarchar" MaxLength="24" />
+          <Property Name="URL" Type="nvarchar" MaxLength="100" />
+          <Property Name="Comment" Type="nvarchar" MaxLength="1024" />
+          <Property Name="IsUse" Type="bit" />
+          <Property Name="SortOrderNo" Type="int" />
+          <Property Name="InsertedDate" Type="datetime" />
+          <Property Name="InsertedUserId" Type="nvarchar" MaxLength="24" />
+          <Property Name="UpdatedDate" Type="datetime" />
+          <Property Name="UpdatedUserId" Type="nvarchar" MaxLength="24" />
+          <Property Name="IsControlSchedule" Type="bit" />
+          <Property Name="ScheduleCheckHour" Type="int" />
+          <Property Name="MaxPeak" Type="float" />
+          <Property Name="lat" Type="float" />
+          <Property Name="lng" Type="float" />
+          <Property Name="controlSchedule" Type="bit" />
+          <Property Name="HDD" Type="nvarchar" MaxLength="24" />
+          <Property Name="CDD" Type="nvarchar" MaxLength="24" />
+          <Property Name="BuildingSize" Type="nvarchar" MaxLength="50" />
+          <Property Name="GrossArea" Type="nvarchar" MaxLength="24" />
+          <Property Name="BuildingArea" Type="nvarchar" MaxLength="24" />
+          <Property Name="FloorAreaRatio" Type="nvarchar" MaxLength="24" />
+          <Property Name="BuildingCoverageRatio" Type="nvarchar" MaxLength="24" />
+          <Property Name="MainUse" Type="nvarchar" MaxLength="10" />
+          <Property Name="CompletionDate" Type="nvarchar" MaxLength="24" />
+          <Property Name="Standard" Type="nvarchar" MaxLength="24" />
+          <Property Name="MainUseIndex" Type="int" />
+        </EntityType>
+        <EntityType Name="CmUser">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="UserId" />
+          </Key>
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="UserId" Type="nvarchar" MaxLength="24" Nullable="false" />
+          <Property Name="CompanyId" Type="int" />
+          <Property Name="DepartmentId" Type="int" />
+          <Property Name="PositionId" Type="int" />
+          <Property Name="BusinessFieldId" Type="int" />
+          <Property Name="UserGroupId" Type="int" />
+          <Property Name="Name" Type="nvarchar" MaxLength="30" Nullable="false" />
+          <Property Name="Passwd" Type="nvarchar" MaxLength="30" Nullable="false" />
+          <Property Name="Birthday" Type="datetime" />
+          <Property Name="Lunar" Type="bit" />
+          <Property Name="StateId" Type="int" />
+          <Property Name="EmploymentType" Type="int" />
+          <Property Name="EmploymentStatus" Type="int" />
+          <Property Name="OfficePhoneNo" Type="nvarchar" MaxLength="50" />
+          <Property Name="HomePhoneNo" Type="nvarchar" MaxLength="50" />
+          <Property Name="MobilePhoneNo" Type="nvarchar" MaxLength="50" />
+          <Property Name="HomeZip1" Type="char" MaxLength="3" />
+          <Property Name="HomeZip2" Type="char" MaxLength="3" />
+          <Property Name="HomeAddress1" Type="nvarchar" MaxLength="50" />
+          <Property Name="HomeAdderss2" Type="nvarchar" MaxLength="100" />
+          <Property Name="Email" Type="nvarchar" MaxLength="50" />
+          <Property Name="EnterDate" Type="datetime" />
+          <Property Name="RetireDate" Type="datetime" />
+          <Property Name="Comment" Type="nvarchar" MaxLength="1024" />
+          <Property Name="Rfcsn" Type="nvarchar" MaxLength="30" />
+          <Property Name="PasswordUpdatedDate" Type="datetime" />
+          <Property Name="FileId" Type="int" />
+          <Property Name="IsBems" Type="bit" />
+          <Property Name="IsUse" Type="bit" />
+          <Property Name="IsScheduleUser" Type="bit" />
+          <Property Name="Certificated" Type="nvarchar" MaxLength="512" />
+          <Property Name="IsSI" Type="bit" />
+          <Property Name="IsMobile" Type="bit" />
+          <Property Name="Devicetoken" Type="nvarchar" MaxLength="500" />
+        </EntityType>
+        <EntityType Name="CmUserGroup">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="UserGroupId" />
+          </Key>
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="UserGroupId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+          <Property Name="Name" Type="nvarchar" MaxLength="32" Nullable="false" />
+        </EntityType>
+        <EntityType Name="CmUserGroupPermission">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="UserGroupId" />
+            <PropertyRef Name="MenuId" />
+          </Key>
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="UserGroupId" Type="int" Nullable="false" />
+          <Property Name="MenuId" Type="nvarchar" MaxLength="50" Nullable="false" />
+          <Property Name="MenuPermission" Type="smallint" />
+        </EntityType>
+        <EntityType Name="CmUserLoginHistory">
+          <Key>
+            <PropertyRef Name="LoginHistoryId" />
+          </Key>
+          <Property Name="LoginHistoryId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="UserId" Type="nvarchar" MaxLength="24" Nullable="false" />
+          <Property Name="Type" Type="nvarchar" MaxLength="10" Nullable="false" />
+          <Property Name="TraceTime" Type="datetime" Nullable="false" />
+          <Property Name="IpAddress" Type="nvarchar" MaxLength="16" />
+        </EntityType>
+        <EntityType Name="CmUserToLicense">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="UserId" />
+            <PropertyRef Name="LicenseId" />
+          </Key>
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="UserId" Type="nvarchar" MaxLength="24" Nullable="false" />
+          <Property Name="LicenseId" Type="int" Nullable="false" />
+        </EntityType>
+        <EntityType Name="CmZone">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="BuildingId" />
+            <PropertyRef Name="FloorId" />
+            <PropertyRef Name="ZoneId" />
+          </Key>
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="BuildingId" Type="int" Nullable="false" />
+          <Property Name="FloorId" Type="int" Nullable="false" />
+          <Property Name="ZoneId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+          <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
+          <Property Name="Target_temperature" Type="float" />
+          <Property Name="Target_humidity" Type="smallint" />
+        </EntityType>
+        <EntityType Name="CmZoneTempHumiSet">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="BuildingId" />
+            <PropertyRef Name="FloorId" />
+            <PropertyRef Name="ZoneId" />
+          </Key>
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="BuildingId" Type="int" Nullable="false" />
+          <Property Name="FloorId" Type="int" Nullable="false" />
+          <Property Name="ZoneId" Type="int" Nullable="false" />
+          <Property Name="T1" Type="float" Nullable="false" />
+          <Property Name="T2" Type="float" Nullable="false" />
+          <Property Name="T3" Type="float" Nullable="false" />
+          <Property Name="T4" Type="float" Nullable="false" />
+          <Property Name="T5" Type="float" Nullable="false" />
+          <Property Name="T6" Type="float" Nullable="false" />
+          <Property Name="T7" Type="float" Nullable="false" />
+          <Property Name="T8" Type="float" Nullable="false" />
+          <Property Name="T9" Type="float" Nullable="false" />
+          <Property Name="T10" Type="float" Nullable="false" />
+          <Property Name="T11" Type="float" Nullable="false" />
+          <Property Name="T12" Type="float" Nullable="false" />
+          <Property Name="H1" Type="smallint" Nullable="false" />
+          <Property Name="H2" Type="smallint" Nullable="false" />
+          <Property Name="H3" Type="smallint" Nullable="false" />
+          <Property Name="H4" Type="smallint" Nullable="false" />
+          <Property Name="H5" Type="smallint" Nullable="false" />
+          <Property Name="H6" Type="smallint" Nullable="false" />
+          <Property Name="H7" Type="smallint" Nullable="false" />
+          <Property Name="H8" Type="smallint" Nullable="false" />
+          <Property Name="H9" Type="smallint" Nullable="false" />
+          <Property Name="H10" Type="smallint" Nullable="false" />
+          <Property Name="H11" Type="smallint" Nullable="false" />
+          <Property Name="H12" Type="smallint" Nullable="false" />
+        </EntityType>
+        <EntityType Name="FmsAccident">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="AccidentId" />
+          </Key>
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="AccidentId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+          <Property Name="Name" Type="nvarchar" MaxLength="256" Nullable="false" />
+          <Property Name="StartDate" Type="datetime" />
+          <Property Name="EndDate" Type="datetime" />
+          <Property Name="AccidentTypeId" Type="int" Nullable="false" />
+          <Property Name="DepartmentId" Type="int" />
+          <Property Name="AccidentLocation" Type="nvarchar" MaxLength="256" />
+          <Property Name="Reason" Type="nvarchar" MaxLength="1024" />
+          <Property Name="Action" Type="nvarchar" MaxLength="1024" />
+          <Property Name="Damage" Type="nvarchar" MaxLength="1024" />
+          <Property Name="Measurement" Type="nvarchar" MaxLength="1024" />
+          <Property Name="FileId1" Type="int" />
+          <Property Name="FileId2" Type="int" />
+          <Property Name="FileId3" Type="int" />
+          <Property Name="CompanyId" Type="int" />
+        </EntityType>
+        <EntityType Name="FmsAccidentCodeType">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="AccidentTypeId" />
+          </Key>
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="AccidentTypeId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+          <Property Name="Name" Type="nvarchar" MaxLength="24" Nullable="false" />
+          <Property Name="IsUse" Type="bit" Nullable="false" />
+        </EntityType>
+        <EntityType Name="FmsBudget">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="Year" />
+          </Key>
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="Year" Type="int" Nullable="false" />
+        </EntityType>
+        <EntityType Name="FmsBudgetCodeClass">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="BudgetClassId" />
+          </Key>
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="BudgetClassId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+          <Property Name="BudgetSeq" Type="nvarchar" MaxLength="6" Nullable="false" />
+          <Property Name="RootBudgetClassId" Type="int" />
+          <Property Name="ParentBudgetClassId" Type="int" />
+          <Property Name="Depth" Type="int" Nullable="false" />
+          <Property Name="Name" Type="nvarchar" MaxLength="32" Nullable="false" />
+          <Property Name="Abbreviation" Type="nvarchar" MaxLength="16" />
+          <Property Name="IsUse" Type="bit" />
+          <Property Name="YearlyBudget" Type="float" />
+          <Property Name="MonthlyBudget" Type="float" />
+        </EntityType>
+        <EntityType Name="FmsBudgetDetail">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="Year" />
+            <PropertyRef Name="BudgetClassId" />
+            <PropertyRef Name="ParentBudgetClassId" />
+          </Key>
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="Year" Type="int" Nullable="false" />
+          <Property Name="BudgetClassId" Type="int" Nullable="false" />
+          <Property Name="BudgetSeq" Type="nvarchar" MaxLength="6" Nullable="false" />
+          <Property Name="ParentBudgetClassId" Type="int" Nullable="false" />
+          <Property Name="RootBudgetClassId" Type="int" />
+          <Property Name="Depth" Type="int" Nullable="false" />
+          <Property Name="Name" Type="nvarchar" MaxLength="32" Nullable="false" />
+          <Property Name="Abbreviation" Type="nvarchar" MaxLength="16" />
+          <Property Name="IsUse" Type="bit" />
+          <Property Name="YearlyBudget" Type="float" Nullable="false" />
+          <Property Name="MonthlyBudget" Type="float" Nullable="false" />
+        </EntityType>
+        <EntityType Name="FmsBudgetDetailExecution">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="Year" />
+            <PropertyRef Name="BudgetClassId" />
+            <PropertyRef Name="ParentBudgetClassId" />
+            <PropertyRef Name="Month" />
+          </Key>
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="Year" Type="int" Nullable="false" />
+          <Property Name="BudgetClassId" Type="int" Nullable="false" />
+          <Property Name="RootBudgetClassId" Type="int" />
+          <Property Name="ParentBudgetClassId" Type="int" Nullable="false" />
+          <Property Name="Month" Type="int" Nullable="false" />
+          <Property Name="YearlyBudget" Type="float" Nullable="false" />
+          <Property Name="MonthlyBudget" Type="float" Nullable="false" />
+          <Property Name="YearlyExecution" Type="float" Nullable="false" />
+          <Property Name="MonthlyExecution" Type="float" Nullable="false" />
+        </EntityType>
+        <EntityType Name="FmsCompanyEstimationCodeClass">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="CompanyEstimationClassId" />
+          </Key>
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="CompanyEstimationClassId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+          <Property Name="Name" Type="nvarchar" MaxLength="32" Nullable="false" />
+          <Property Name="IsUse" Type="bit" />
+        </EntityType>
+        <EntityType Name="FmsConstruction">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="ConstructionId" />
+          </Key>
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="ConstructionId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+          <Property Name="Name" Type="nvarchar" MaxLength="256" Nullable="false" />
+          <Property Name="ConstructionTypeId" Type="int" Nullable="false" />
+          <Property Name="StartDate" Type="datetime" Nullable="false" />
+          <Property Name="EndDate" Type="datetime" Nullable="false" />
+          <Property Name="PartnerId" Type="int" Nullable="false" />
+          <Property Name="ConstructLocation" Type="nvarchar" MaxLength="256" Nullable="false" />
+          <Property Name="OwnerShipName" Type="nvarchar" MaxLength="24" Nullable="false" />
+          <Property Name="CommitmentMan" Type="smallint" />
+          <Property Name="OwnerShipPhoneNo" Type="nvarchar" MaxLength="20" Nullable="false" />
+          <Property Name="WeldWorkStartTime" Type="datetime" />
+          <Property Name="WeldWorkEndTime" Type="datetime" />
+          <Property Name="GasWorkStartTime" Type="datetime" />
+          <Property Name="GasWorkEndTime" Type="datetime" />
+          <Property Name="PaintWorkStartTime" Type="datetime" />
+          <Property Name="PaintWorkEndTime" Type="datetime" />
+          <Property Name="Comment" Type="nvarchar" MaxLength="1024" />
+          <Property Name="ProgressId" Type="smallint" Nullable="false" />
+          <Property Name="AddDate" Type="datetime" Nullable="false" />
+          <Property Name="UpdateDate" Type="datetime" Nullable="false" />
+          <Property Name="ConstructionDetail" Type="nvarchar" MaxLength="1024" />
+          <Property Name="InOutStockName" Type="nvarchar" MaxLength="1024" />
+          <Property Name="FileId1" Type="int" />
+          <Property Name="FileId2" Type="int" />
+          <Property Name="FileId3" Type="int" />
+        </EntityType>
+        <EntityType Name="FmsConstructionCodeProgress">
+          <Key>
+            <PropertyRef Name="ProgressId" />
+          </Key>
+          <Property Name="ProgressId" Type="smallint" Nullable="false" />
+          <Property Name="Name" Type="nvarchar" MaxLength="24" Nullable="false" />
+          <Property Name="Description" Type="nvarchar" MaxLength="100" />
+        </EntityType>
+        <EntityType Name="FmsConstructionCodeType">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="ConstructionTypeId" />
+          </Key>
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="ConstructionTypeId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+          <Property Name="Name" Type="nvarchar" MaxLength="24" Nullable="false" />
+          <Property Name="IsUse" Type="bit" Nullable="false" />
+        </EntityType>
+        <EntityType Name="FmsConstructionEstimation">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="ConstructionId" />
+          </Key>
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="ConstructionId" Type="int" Nullable="false" />
+          <Property Name="EstimateDate" Type="datetime" Nullable="false" />
+          <Property Name="EstimateUserId" Type="nvarchar" MaxLength="24" Nullable="false" />
+          <Property Name="Safety01_CleanUp" Type="bit" />
+          <Property Name="Safety02_PersonalProtection" Type="bit" />
+          <Property Name="Safety03_FireExtinguisher" Type="bit" />
+          <Property Name="Safety04_HighPlaceWork" Type="bit" />
+          <Property Name="Safety05_Weld" Type="bit" />
+          <Property Name="Safety06_SurroundingCleanUp" Type="bit" />
+          <Property Name="Safety07_SurroundingHealthy" Type="bit" />
+          <Property Name="Safety08_Noise" Type="bit" />
+          <Property Name="Safety09_FacilityProtection" Type="bit" />
+          <Property Name="Safety10_Waste" Type="bit" />
+          <Property Name="Safety11_Execution" Type="bit" />
+          <Property Name="Safety12_Announcement" Type="bit" />
+          <Property Name="Ability01_Compliance" Type="bit" />
+          <Property Name="Ability02_Fault" Type="bit" />
+          <Property Name="Ability03_SkillLevel" Type="bit" />
+          <Property Name="Ability04_ProcessManagement" Type="bit" />
+          <Property Name="Ability05_Collaboration" Type="bit" />
+          <Property Name="Service01_Compliance" Type="bit" />
+          <Property Name="Service02_SkillLevel" Type="bit" />
+          <Property Name="Comment" Type="nvarchar" MaxLength="1024" />
+          <Property Name="TotalEstimateScore" Type="float" />
+          <Property Name="SafetyScore" Type="float" />
+          <Property Name="AbilityScore" Type="float" />
+          <Property Name="ServiceScore" Type="float" />
+        </EntityType>
+        <EntityType Name="FmsContract">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="ContractId" />
+          </Key>
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="ContractId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+          <Property Name="Name" Type="nvarchar" MaxLength="256" Nullable="false" />
+          <Property Name="PartnerTypeId" Type="int" />
+          <Property Name="PartnerId" Type="int" />
+          <Property Name="ContractDate" Type="datetime" />
+          <Property Name="StartDate" Type="datetime" />
+          <Property Name="EndDate" Type="datetime" />
+          <Property Name="OwnerShipName" Type="nvarchar" MaxLength="24" />
+          <Property Name="OwnerShipPhoneNo" Type="nvarchar" MaxLength="20" />
+          <Property Name="CommitmentMan" Type="smallint" />
+          <Property Name="Comment" Type="nvarchar" MaxLength="1024" />
+          <Property Name="ContractClassId" Type="int" />
+          <Property Name="ContractTypeId" Type="int" />
+          <Property Name="ContractMethodId" Type="int" />
+          <Property Name="PaymentTypeId" Type="int" />
+        </EntityType>
+        <EntityType Name="FmsContractClass">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="ContractClassId" />
+          </Key>
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="ContractClassId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+          <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
+          <Property Name="IsUse" Type="bit" />
+        </EntityType>
+        <EntityType Name="FmsContractMethod">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="ContractMethodId" />
+          </Key>
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="ContractMethodId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+          <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
+          <Property Name="IsUse" Type="bit" />
+        </EntityType>
+        <EntityType Name="FmsContractType">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="ContractTypeId" />
+          </Key>
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="ContractTypeId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+          <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
+          <Property Name="IsUse" Type="bit" />
+        </EntityType>
+        <EntityType Name="FmsDailyCheckReport">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="DailyCheckReportId" />
+          </Key>
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="DailyCheckReportId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+          <Property Name="Name" Type="nvarchar" MaxLength="128" Nullable="false" />
+          <Property Name="Contents" Type="nvarchar" MaxLength="1024" Nullable="false" />
+          <Property Name="RegisterUserId" Type="nvarchar" MaxLength="24" Nullable="false" />
+          <Property Name="AddDate" Type="datetime" Nullable="false" />
+        </EntityType>
+        <EntityType Name="FmsDailyReport">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="AddDate" />
+            <PropertyRef Name="BusinessFieldId" />
+          </Key>
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="DailyReportId" Type="int" />
+          <Property Name="Name" Type="nvarchar" MaxLength="128" Nullable="false" />
+          <Property Name="Contents" Type="nvarchar" MaxLength="1024" />
+          <Property Name="RegisterUserId" Type="nvarchar" MaxLength="24" Nullable="false" />
+          <Property Name="AddDate" Type="date" Nullable="false" />
+          <Property Name="BusinessFieldId" Type="int" Nullable="false" />
+          <Property Name="Datas" Type="varchar(max)" />
+          <Property Name="ApproverUserId" Type="nvarchar" MaxLength="24" />
+          <Property Name="ApproveDate" Type="date" />
+          <Property Name="RegisterDate" Type="date" />
+          <Property Name="ApproverUserId2" Type="nvarchar" MaxLength="24" />
+          <Property Name="ApproveDate2" Type="date" />
+          <Property Name="ApproverUserId3" Type="nvarchar" MaxLength="24" />
+          <Property Name="ApproveDate3" Type="date" />
+          <Property Name="ApproverUserId4" Type="nvarchar" MaxLength="24" />
+          <Property Name="ApproveDate4" Type="date" />
+          <Property Name="ApproverUserId5" Type="nvarchar" MaxLength="24" />
+          <Property Name="ApproveDate5" Type="date" />
+        </EntityType>
+        <EntityType Name="FmsDrawing">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="DrawingId" />
+          </Key>
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="DrawingId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+          <Property Name="DrawingNo" Type="nvarchar" MaxLength="20" Nullable="false" />
+          <Property Name="DrawingGroupId" Type="int" Nullable="false" />
+          <Property Name="DrawingTypeId" Type="int" Nullable="false" />
+          <Property Name="Name" Type="nvarchar" MaxLength="200" Nullable="false" />
+          <Property Name="Description" Type="nvarchar" MaxLength="2000" />
+        </EntityType>
+        <EntityType Name="FmsDrawingCodeGroup">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="DrawingGroupId" />
+          </Key>
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="DrawingGroupId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+          <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
+          <Property Name="IsUse" Type="bit" />
+        </EntityType>
+        <EntityType Name="FmsDrawingCodeType">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="DrawingTypeId" />
+          </Key>
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="DrawingTypeId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+          <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
+          <Property Name="IsUse" Type="bit" />
+        </EntityType>
+        <EntityType Name="FmsDrawingHistory">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="DrawingId" />
+            <PropertyRef Name="HistoryId" />
+          </Key>
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="DrawingId" Type="int" Nullable="false" />
+          <Property Name="HistoryId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+          <Property Name="RevisionNo" Type="int" />
+          <Property Name="FileId" Type="int" />
+          <Property Name="Description" Type="nvarchar" MaxLength="2000" />
+          <Property Name="UpdatedDate" Type="datetime" />
+          <Property Name="UpdatedUserId" Type="nvarchar" MaxLength="24" />
+        </EntityType>
+        <EntityType Name="FmsEquipment">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="EquipmentId" />
+          </Key>
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="EquipmentId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+          <Property Name="Name" Type="nvarchar" MaxLength="48" Nullable="false" />
+          <Property Name="EquipmentTypeId" Type="int" Nullable="false" />
+          <Property Name="WarehouseId" Type="int" />
+          <Property Name="Unit" Type="nvarchar" MaxLength="12" />
+          <Property Name="Standard" Type="nvarchar" MaxLength="20" />
+          <Property Name="AddDate" Type="datetime" />
+          <Property Name="UpdateDate" Type="datetime" />
+          <Property Name="RegisterUserId" Type="nvarchar" MaxLength="24" Nullable="false" />
+          <Property Name="SupplierName" Type="nvarchar" MaxLength="256" />
+          <Property Name="SupplierPhoneNo" Type="nvarchar" MaxLength="20" />
+          <Property Name="ImageFileId" Type="int" />
+        </EntityType>
+        <EntityType Name="FmsEquipmentCodeStateType">
+          <Key>
+            <PropertyRef Name="EquipmentStateTypeId" />
+          </Key>
+          <Property Name="EquipmentStateTypeId" Type="smallint" Nullable="false" />
+          <Property Name="Name" Type="nvarchar" MaxLength="24" Nullable="false" />
+          <Property Name="Comment" Type="nvarchar" MaxLength="1024" />
+        </EntityType>
+        <EntityType Name="FmsEquipmentCodeType">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="EquipmentTypeId" />
+          </Key>
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="EquipmentTypeId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+          <Property Name="Name" Type="nvarchar" MaxLength="24" Nullable="false" />
+          <Property Name="IsUse" Type="bit" Nullable="false" />
+          <Property Name="Description" Type="nvarchar" MaxLength="255" />
+        </EntityType>
+        <EntityType Name="FmsEquipmentHistory">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="EquipmentHistoryId" />
+            <PropertyRef Name="EquipmentId" />
+          </Key>
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="EquipmentHistoryId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+          <Property Name="EquipmentId" Type="int" Nullable="false" />
+          <Property Name="TotalStockCount" Type="int" />
+          <Property Name="CurrentStockCount" Type="int" />
+          <Property Name="RentCount" Type="int" />
+          <Property Name="CurrentRentCount" Type="int" />
+          <Property Name="ReturnCount" Type="int" />
+          <Property Name="LossCount" Type="int" />
+          <Property Name="StoredCount" Type="int" />
+          <Property Name="EquipmentRentId" Type="int" />
+          <Property Name="EquipmentStateTypeId" Type="smallint" />
+          <Property Name="AddDate" Type="datetime" />
+          <Property Name="UpdateDate" Type="datetime" />
+          <Property Name="IsReturned" Type="bit" />
+        </EntityType>
+        <EntityType Name="FmsEquipmentRentInfo">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="EquipmentRentId" />
+          </Key>
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="EquipmentRentId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+          <Property Name="RegisterUserId" Type="nvarchar" MaxLength="24" Nullable="false" />
+          <Property Name="RentUserId" Type="nvarchar" MaxLength="24" />
+          <Property Name="RegisterDate" Type="nchar" MaxLength="10" />
+          <Property Name="RentDate" Type="datetime" />
+          <Property Name="ReturnDueDate" Type="datetime" />
+          <Property Name="ReturnFixDate" Type="datetime" />
+          <Property Name="EquipmentStateTypeId" Type="smallint" />
+          <Property Name="Comment" Type="nvarchar" MaxLength="1024" />
+          <Property Name="Title" Type="nvarchar" MaxLength="128" Nullable="false" />
+          <Property Name="RentUser" Type="nvarchar" MaxLength="128" />
+        </EntityType>
+        <EntityType Name="FmsFacilityCheckItem">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="FacilityCode" />
+            <PropertyRef Name="CheckItemId" />
+          </Key>
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="FacilityCode" Type="int" Nullable="false" />
+          <Property Name="CheckItemId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+          <Property Name="WorkTypeId" Type="int" Nullable="false" />
+          <Property Name="CycleUnitId" Type="int" Nullable="false" />
+          <Property Name="Name" Type="nvarchar" MaxLength="100" Nullable="false" />
+          <Property Name="IsYesNoResult" Type="bit" Nullable="false" />
+          <Property Name="IsUse" Type="bit" />
+        </EntityType>
+        <EntityType Name="FmsFacilityCodeClass">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="FacilityClassId" />
+          </Key>
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="FacilityClassId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+          <Property Name="ParentFacilityClassId" Type="int" />
+          <Property Name="Depth" Type="int" Nullable="false" />
+          <Property Name="Name" Type="nvarchar" MaxLength="80" Nullable="false" />
+          <Property Name="Abbreviation" Type="nvarchar" MaxLength="40" />
+          <Property Name="IsUse" Type="bit" />
+        </EntityType>
+        <EntityType Name="FmsFacilityManual">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="FacilityCode" />
+            <PropertyRef Name="ManualId" />
+          </Key>
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="FacilityCode" Type="int" Nullable="false" />
+          <Property Name="ManualId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+          <Property Name="BusinessFieldId" Type="int" Nullable="false" />
+          <Property Name="Name" Type="nvarchar" MaxLength="100" />
+          <Property Name="Description" Type="nvarchar" MaxLength="1024" />
+          <Property Name="Keyword" Type="nvarchar" MaxLength="100" />
+          <Property Name="FileId" Type="int" />
+          <Property Name="IsUse" Type="bit" />
+        </EntityType>
+        <EntityType Name="FmsFacilityOperationItem">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="ItemId" />
+          </Key>
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="FacilityCode" Type="int" Nullable="false" />
+          <Property Name="ItemId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+          <Property Name="Name" Type="nvarchar" MaxLength="100" />
+          <Property Name="ResultUnit" Type="nvarchar" MaxLength="10" Nullable="false" />
+          <Property Name="PointId" Type="nvarchar" MaxLength="50" />
+          <Property Name="SystemId" Type="int" />
+          <Property Name="EnergyCode" Type="bit" />
+          <Property Name="IsUse" Type="bit" />
+          <Property Name="SortOrderNo" Type="int" />
+          <Property Name="InsertedDate" Type="datetime" />
+          <Property Name="InsertedUserId" Type="nvarchar" MaxLength="24" />
+          <Property Name="UpdatedDate" Type="datetime" />
+          <Property Name="UpdatedUserId" Type="nvarchar" MaxLength="24" />
+        </EntityType>
+        <EntityType Name="FmsFacilityOperationReport">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="FacilityOperationReportId" />
+          </Key>
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="FacilityOperationReportId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+          <Property Name="Name" Type="nvarchar" MaxLength="128" Nullable="false" />
+          <Property Name="Contents" Type="nvarchar" MaxLength="1024" Nullable="false" />
+          <Property Name="RegisterUserId" Type="nvarchar" MaxLength="24" Nullable="false" />
+          <Property Name="AddDate" Type="datetime" Nullable="false" />
+        </EntityType>
+        <EntityType Name="FmsInvestmentCost">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="InsvestmentCostId" />
+          </Key>
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="InsvestmentCostId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+          <Property Name="Name" Type="nvarchar" MaxLength="32" Nullable="false" />
+          <Property Name="Comment" Type="nvarchar" MaxLength="1024" />
+          <Property Name="InsvestmentCost" Type="float" Nullable="false" />
+        </EntityType>
+        <EntityType Name="FmsLicense">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="LicenseId" />
+          </Key>
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="LicenseId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+          <Property Name="Name" Type="nvarchar" MaxLength="52" Nullable="false" />
+          <Property Name="IssuingOffice" Type="nvarchar" MaxLength="52" Nullable="false" />
+          <Property Name="BusinessFieldId" Type="int" />
+          <Property Name="EducationalInstitute" Type="nvarchar" MaxLength="52" />
+          <Property Name="Note" Type="nvarchar" MaxLength="256" />
+          <Property Name="IsUse" Type="bit" />
+        </EntityType>
+        <EntityType Name="FmsManual">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="ManualId" />
+          </Key>
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="ManualId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+          <Property Name="ManualNo" Type="nvarchar" MaxLength="20" Nullable="false" />
+          <Property Name="ManualTypeId" Type="int" Nullable="false" />
+          <Property Name="Name" Type="nvarchar" MaxLength="200" Nullable="false" />
+          <Property Name="Description" Type="nvarchar" MaxLength="2000" />
+        </EntityType>
+        <EntityType Name="FmsManualHistory">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="ManualId" />
+            <PropertyRef Name="HistoryId" />
+          </Key>
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="ManualId" Type="int" Nullable="false" />
+          <Property Name="HistoryId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+          <Property Name="RevisionNo" Type="int" />
+          <Property Name="FileId" Type="int" />
+          <Property Name="Description" Type="nvarchar" MaxLength="2000" />
+          <Property Name="UpdatedDate" Type="datetime" />
+          <Property Name="UpdatedUserId" Type="nvarchar" MaxLength="24" />
+        </EntityType>
+        <EntityType Name="FmsManualType">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="ManualTypeId" />
+          </Key>
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="ManualTypeId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+          <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
+          <Property Name="IsUse" Type="bit" />
+        </EntityType>
+        <EntityType Name="FmsMaterial">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="MaterialId" />
+          </Key>
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="BusinessFieldId" Type="int" Nullable="false" />
+          <Property Name="MaterialId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+          <Property Name="MaterialCode" Type="nvarchar" MaxLength="48" Nullable="false" />
+          <Property Name="Name" Type="nvarchar" MaxLength="48" Nullable="false" />
+          <Property Name="FirstClassId" Type="int" />
+          <Property Name="SecondClassId" Type="int" />
+          <Property Name="ThirdClassId" Type="int" />
+          <Property Name="LocationId" Type="int" />
+          <Property Name="MaterialTypeId" Type="int" />
+          <Property Name="WarehouseId" Type="int" />
+          <Property Name="TradeCompanyId" Type="int" />
+          <Property Name="Rfid" Type="nvarchar" MaxLength="52" />
+          <Property Name="Unit" Type="nvarchar" MaxLength="12" />
+          <Property Name="DurableYears" Type="smallint" />
+          <Property Name="ReasonableStockCount" Type="smallint" />
+          <Property Name="Manufacturer" Type="nvarchar" MaxLength="40" />
+          <Property Name="Standard" Type="nvarchar" MaxLength="20" />
+          <Property Name="FinalPrice" Type="int" />
+          <Property Name="ImageFileId" Type="int" />
+          <Property Name="Note" Type="nvarchar" MaxLength="512" />
+          <Property Name="IsDiscontinued" Type="bit" />
+          <Property Name="IsUse" Type="bit" Nullable="false" />
+          <Property Name="FinalStockCount" Type="int" Nullable="false" />
+          <Property Name="FinalTotalStockAmount" Type="int" Nullable="false" />
+        </EntityType>
+        <EntityType Name="FmsMaterialCarriedForward">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="ClosedDate" />
+            <PropertyRef Name="BusinessFieldId" />
+            <PropertyRef Name="WarehouseId" />
+            <PropertyRef Name="MaterialId" />
+          </Key>
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="ClosedDate" Type="datetime" Nullable="false" />
+          <Property Name="BusinessFieldId" Type="int" Nullable="false" />
+          <Property Name="WarehouseId" Type="int" Nullable="false" />
+          <Property Name="MaterialId" Type="int" Nullable="false" />
+          <Property Name="StockCount" Type="int" Nullable="false" />
+          <Property Name="StockTotalCost" Type="int" Nullable="false" />
+        </EntityType>
+        <EntityType Name="FmsMaterialCodeAdjustmentType">
+          <Key>
+            <PropertyRef Name="AdjustmentTypeId" />
+          </Key>
+          <Property Name="AdjustmentTypeId" Type="smallint" Nullable="false" />
+          <Property Name="Name" Type="nvarchar" MaxLength="24" Nullable="false" />
+          <Property Name="Comment" Type="nvarchar" MaxLength="1024" />
+        </EntityType>
+        <EntityType Name="FmsMaterialCodeClass">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="MaterialClassId" />
+          </Key>
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="MaterialClassId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+          <Property Name="ParentMaterialClassId" Type="int" />
+          <Property Name="Depth" Type="int" Nullable="false" />
+          <Property Name="Name" Type="nvarchar" MaxLength="32" Nullable="false" />
+          <Property Name="Abbreviation" Type="nvarchar" MaxLength="16" />
+          <Property Name="IsUse" Type="bit" />
+        </EntityType>
+        <EntityType Name="FmsMaterialCodeLocation">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="LocationId" />
+          </Key>
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="LocationId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+          <Property Name="BusinessFieldId" Type="int" Nullable="false" />
+          <Property Name="Name" Type="nvarchar" MaxLength="48" Nullable="false" />
+          <Property Name="IsUse" Type="bit" Nullable="false" />
+        </EntityType>
+        <EntityType Name="FmsMaterialCodeProgress">
+          <Key>
+            <PropertyRef Name="ProgressId" />
+          </Key>
+          <Property Name="ProgressId" Type="smallint" Nullable="false" />
+          <Property Name="Name" Type="nvarchar" MaxLength="24" Nullable="false" />
+          <Property Name="Description" Type="nvarchar" MaxLength="100" />
+        </EntityType>
+        <EntityType Name="FmsMaterialCodePurchaseType">
+          <Key>
+            <PropertyRef Name="PurchaseTypeId" />
+          </Key>
+          <Property Name="PurchaseTypeId" Type="smallint" StoreGeneratedPattern="Identity" Nullable="false" />
+          <Property Name="Name" Type="nvarchar" MaxLength="24" Nullable="false" />
+          <Property Name="Comment" Type="nvarchar" MaxLength="1024" />
+        </EntityType>
+        <EntityType Name="FmsMaterialCodeReleaseType">
+          <Key>
+            <PropertyRef Name="ReleaseTypeId" />
+          </Key>
+          <Property Name="ReleaseTypeId" Type="smallint" Nullable="false" />
+          <Property Name="Name" Type="nvarchar" MaxLength="24" Nullable="false" />
+          <Property Name="Description" Type="nvarchar" MaxLength="255" />
+        </EntityType>
+        <EntityType Name="FmsMaterialCodeType">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="MaterialTypeId" />
+          </Key>
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="MaterialTypeId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+          <Property Name="Name" Type="nvarchar" MaxLength="24" Nullable="false" />
+          <Property Name="Nickname" Type="nvarchar" MaxLength="24" Nullable="false" />
+          <Property Name="IsUse" Type="bit" Nullable="false" />
+        </EntityType>
+        <EntityType Name="FmsMaterialPurchaseOrder">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="PurchaseOrderId" />
+          </Key>
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="BusinessFieldId" Type="int" Nullable="false" />
+          <Property Name="PurchaseOrderId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+          <Property Name="PurchaseRequestId" Type="int" Nullable="false" />
+          <Property Name="TradeCompanyId" Type="int" />
+          <Property Name="OrderDate" Type="datetime" Nullable="false" />
+          <Property Name="OrderUserId" Type="nvarchar" MaxLength="24" Nullable="false" />
+          <Property Name="Title" Type="nvarchar" MaxLength="256" Nullable="false" />
+          <Property Name="Reason" Type="nvarchar" MaxLength="2000" />
+          <Property Name="StoredDueDate" Type="datetime" />
+          <Property Name="FileId" Type="int" />
+        </EntityType>
+        <EntityType Name="FmsMaterialPurchaseOrderMaterial">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="PurchaseOrderId" />
+            <PropertyRef Name="MaterialId" />
+          </Key>
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="BusinessFieldId" Type="int" Nullable="false" />
+          <Property Name="PurchaseOrderId" Type="int" Nullable="false" />
+          <Property Name="MaterialId" Type="int" Nullable="false" />
+          <Property Name="MaterialCount" Type="int" Nullable="false" />
+          <Property Name="UnitCost" Type="int" Nullable="false" />
+        </EntityType>
+        <EntityType Name="FmsMaterialPurchaseRequest">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="PurchaseRequestId" />
+          </Key>
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="BusinessFieldId" Type="int" Nullable="false" />
+          <Property Name="PurchaseRequestId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+          <Property Name="PurchaseTypeId" Type="smallint" Nullable="false" />
+          <Property Name="RequestDate" Type="datetime" Nullable="false" />
+          <Property Name="RequestUserId" Type="nvarchar" MaxLength="24" Nullable="false" />
+          <Property Name="PurchaseHopeDate" Type="datetime" />
+          <Property Name="Title" Type="nvarchar" MaxLength="256" Nullable="false" />
+          <Property Name="Reason" Type="nvarchar" MaxLength="2000" Nullable="false" />
+          <Property Name="ProgressId" Type="smallint" Nullable="false" />
+          <Property Name="ApprovalDate" Type="datetime" />
+          <Property Name="ApprovalUserId" Type="nvarchar" MaxLength="24" />
+          <Property Name="bSameOrder" Type="bit" />
+        </EntityType>
+        <EntityType Name="FmsMaterialPurchaseRequestMaterial">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="PurchaseRequestId" />
+            <PropertyRef Name="MaterialId" />
+          </Key>
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="BusinessFieldId" Type="int" Nullable="false" />
+          <Property Name="PurchaseRequestId" Type="int" Nullable="false" />
+          <Property Name="MaterialId" Type="int" Nullable="false" />
+          <Property Name="MaterialCount" Type="int" Nullable="false" />
+        </EntityType>
+        <EntityType Name="FmsMaterialRelease">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="MaterialReleaseId" />
+          </Key>
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="BusinessFieldId" Type="int" Nullable="false" />
+          <Property Name="ReleaseDate" Type="datetime" Nullable="false" />
+          <Property Name="MaterialReleaseId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+          <Property Name="ReleaseTypeId" Type="smallint" Nullable="false" />
+          <Property Name="WorkRequestId" Type="int" />
+          <Property Name="WarehouseId" Type="int" />
+          <Property Name="MaterialId" Type="int" />
+          <Property Name="MaterialCount" Type="int" />
+          <Property Name="StockCountByPoint" Type="int" />
+          <Property Name="ReleaseTotalCost" Type="int" />
+          <Property Name="AdjustmentTypeId" Type="smallint" Nullable="false" />
+          <Property Name="AdjustmentUserId" Type="nvarchar" MaxLength="24" />
+          <Property Name="ConfirmedUserId" Type="nvarchar" MaxLength="24" />
+          <Property Name="ConfirmedDate" Type="datetime" />
+          <Property Name="IsConfirmed" Type="bit" Nullable="false" />
+          <Property Name="Comment" Type="nvarchar" MaxLength="1024" />
+        </EntityType>
+        <EntityType Name="FmsMaterialStored">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="MaterialStoredId" />
+          </Key>
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="BusinessFieldId" Type="int" Nullable="false" />
+          <Property Name="StoredDate" Type="datetime" Nullable="false" />
+          <Property Name="MaterialStoredId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+          <Property Name="PurchaseOrderId" Type="int" />
+          <Property Name="WarehouseId" Type="int" Nullable="false" />
+          <Property Name="MaterialId" Type="int" Nullable="false" />
+          <Property Name="StoredCount" Type="int" Nullable="false" />
+          <Property Name="RemainStoredCount" Type="int" Nullable="false" />
+          <Property Name="UnitCost" Type="int" Nullable="false" />
+          <Property Name="StockCount" Type="int" Nullable="false" />
+          <Property Name="Note" Type="nvarchar" MaxLength="1024" />
+          <Property Name="StoredUserId" Type="nvarchar" MaxLength="24" Nullable="false" />
+          <Property Name="ApprovalDate" Type="datetime" />
+          <Property Name="ApprovalUserId" Type="nvarchar" MaxLength="24" />
+          <Property Name="IsApproval" Type="bit" Nullable="false" />
+          <Property Name="LocationInWarehouse" Type="nvarchar" MaxLength="100" />
+        </EntityType>
+        <EntityType Name="FmsMaterialTradeCompany">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="TradeCompanyId" />
+          </Key>
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="TradeCompanyId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+          <Property Name="Name" Type="nvarchar" MaxLength="48" Nullable="false" />
+          <Property Name="RegistrationNo" Type="nvarchar" MaxLength="24" Nullable="false" />
+          <Property Name="RepresentativeName" Type="nvarchar" MaxLength="24" />
+          <Property Name="PhoneNo" Type="nvarchar" MaxLength="20" />
+          <Property Name="FaxNo" Type="nvarchar" MaxLength="20" />
+          <Property Name="SalesName" Type="nvarchar" MaxLength="20" />
+          <Property Name="SalesPhoneNo" Type="nvarchar" MaxLength="20" />
+          <Property Name="AddressZip1" Type="nchar" MaxLength="5" />
+          <Property Name="AddressZip2" Type="nchar" MaxLength="3" />
+          <Property Name="Address1" Type="nvarchar" MaxLength="100" />
+          <Property Name="Adderss2" Type="nvarchar" MaxLength="100" />
+          <Property Name="HomepageUri" Type="nvarchar" MaxLength="200" />
+          <Property Name="Note" Type="nvarchar" MaxLength="1024" />
+          <Property Name="IsUse" Type="bit" Nullable="false" />
+        </EntityType>
+        <EntityType Name="FmsMaterialWarehouse">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="WarehouseId" />
+          </Key>
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="BusinessFieldId" Type="int" Nullable="false" />
+          <Property Name="WarehouseId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+          <Property Name="Name" Type="nvarchar" MaxLength="48" Nullable="false" />
+          <Property Name="IsUse" Type="bit" Nullable="false" />
+        </EntityType>
+        <EntityType Name="FmsMonthlyReport">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="MonthlyReportId" />
+          </Key>
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="MonthlyReportId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+          <Property Name="Name" Type="nvarchar" MaxLength="128" Nullable="false" />
+          <Property Name="Contents" Type="nvarchar" MaxLength="1024" Nullable="false" />
+          <Property Name="RegisterUserId" Type="nvarchar" MaxLength="24" Nullable="false" />
+          <Property Name="AddDate" Type="datetime" Nullable="false" />
+        </EntityType>
+        <EntityType Name="FmsPaymentType">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="PaymentTypeId" />
+          </Key>
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="PaymentTypeId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+          <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
+          <Property Name="IsUse" Type="bit" />
+        </EntityType>
+        <EntityType Name="FmsReport">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="RId" />
+          </Key>
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="RId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+          <Property Name="Title" Type="nvarchar" MaxLength="128" />
+          <Property Name="Contents" Type="nvarchar" MaxLength="1024" />
+          <Property Name="RegisterUserId" Type="nvarchar" MaxLength="24" />
+          <Property Name="FileId" Type="int" />
+          <Property Name="MakeDate" Type="datetime" Nullable="false" />
+          <Property Name="ConfirmUserId1" Type="nvarchar" MaxLength="24" />
+          <Property Name="ConfirmUserId2" Type="nvarchar" MaxLength="24" />
+          <Property Name="BusinessFieldId" Type="int" Nullable="false" />
+        </EntityType>
+        <EntityType Name="FmsWorkCodeCauseClass">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="CauseClassId" />
+          </Key>
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="CauseClassId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+          <Property Name="ParentId" Type="int" Nullable="false" />
+          <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
+          <Property Name="IsUse" Type="bit" />
+        </EntityType>
+        <EntityType Name="FmsWorkCodeCycleUnit">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="CycleUnitId" />
+          </Key>
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="CycleUnitId" Type="int" Nullable="false" />
+          <Property Name="Name" Type="nvarchar" MaxLength="24" Nullable="false" />
+          <Property Name="Description" Type="nvarchar" MaxLength="200" />
+        </EntityType>
+        <EntityType Name="FmsWorkCodeEmergency">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="EmergencyId" />
+          </Key>
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="EmergencyId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+          <Property Name="Name" Type="nvarchar" MaxLength="50" />
+          <Property Name="IsUse" Type="bit" />
+        </EntityType>
+        <EntityType Name="FmsWorkCodeHolidayWorkType">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="HolidayWorkTypeId" />
+          </Key>
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="HolidayWorkTypeId" Type="int" Nullable="false" />
+          <Property Name="Name" Type="nvarchar" MaxLength="50" />
+          <Property Name="IsUse" Type="bit" />
+        </EntityType>
+        <EntityType Name="FmsWorkCodeLegalInspectionAgency">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="InspectionAgencyId" />
+          </Key>
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="InspectionAgencyId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+          <Property Name="Name" Type="nvarchar" MaxLength="24" Nullable="false" />
+          <Property Name="IsUse" Type="bit" />
+        </EntityType>
+        <EntityType Name="FmsWorkCodeProgress">
+          <Key>
+            <PropertyRef Name="WorkProgressId" />
+          </Key>
+          <Property Name="WorkProgressId" Type="int" Nullable="false" />
+          <Property Name="Name" Type="nvarchar" MaxLength="24" Nullable="false" />
+          <Property Name="Description" Type="nvarchar" MaxLength="512" />
+        </EntityType>
+        <EntityType Name="FmsWorkCodeType">
+          <Key>
+            <PropertyRef Name="WorkTypeId" />
+          </Key>
+          <Property Name="WorkTypeId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+          <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
+          <Property Name="Description" Type="nvarchar" MaxLength="512" />
+        </EntityType>
+        <EntityType Name="FmsWorkOrder">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="WorkRequestId" />
+          </Key>
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="WorkRequestId" Type="int" Nullable="false" />
+          <Property Name="BusinessFieldId" Type="int" Nullable="false" />
+          <Property Name="EmergencyId" Type="int" />
+          <Property Name="OrderUserId" Type="nvarchar" MaxLength="24" Nullable="false" />
+          <Property Name="OrderDate" Type="datetime" Nullable="false" />
+          <Property Name="StartWorkDate" Type="datetime" Nullable="false" />
+          <Property Name="Title" Type="nvarchar" MaxLength="200" Nullable="false" />
+          <Property Name="Content" Type="nvarchar" MaxLength="2000" />
+        </EntityType>
+        <EntityType Name="FmsWorkOrderToFacility">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="WorkRequestId" />
+            <PropertyRef Name="FacilityCode" />
+          </Key>
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="WorkRequestId" Type="int" Nullable="false" />
+          <Property Name="FacilityCode" Type="int" Nullable="false" />
+        </EntityType>
+        <EntityType Name="FmsWorkRequest">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="WorkRequestId" />
+          </Key>
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="WorkRequestId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+          <Property Name="WorkTypeId" Type="int" Nullable="false" />
+          <Property Name="BusinessFieldId" Type="int" Nullable="false" />
+          <Property Name="WorkScheduleId" Type="int" />
+          <Property Name="WorkProgressId" Type="int" Nullable="false" />
+          <Property Name="Title" Type="nvarchar" MaxLength="200" Nullable="false" />
+          <Property Name="Content" Type="nvarchar" MaxLength="1024" />
+          <Property Name="RequestUserId" Type="nvarchar" MaxLength="24" />
+          <Property Name="RequestDate" Type="datetime" Nullable="false" />
+          <Property Name="StartWorkDate" Type="datetime" Nullable="false" />
+          <Property Name="RejectUserId" Type="nvarchar" MaxLength="24" />
+          <Property Name="RejectDate" Type="datetime" />
+          <Property Name="RejectReason" Type="nvarchar" MaxLength="512" />
+          <Property Name="InspectionAgencyId" Type="int" />
+        </EntityType>
+        <EntityType Name="FmsWorkRequestToFacility">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="WorkRequestId" />
+            <PropertyRef Name="FacilityCode" />
+          </Key>
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="WorkRequestId" Type="int" Nullable="false" />
+          <Property Name="FacilityCode" Type="int" Nullable="false" />
+        </EntityType>
+        <EntityType Name="FmsWorkResult">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="WorkRequestId" />
+          </Key>
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="WorkRequestId" Type="int" Nullable="false" />
+          <Property Name="WorkerUserId" Type="nvarchar" MaxLength="24" Nullable="false" />
+          <Property Name="StartDate" Type="datetime" Nullable="false" />
+          <Property Name="EndDate" Type="datetime" Nullable="false" />
+          <Property Name="CauseClassId" Type="int" />
+          <Property Name="Content" Type="nvarchar" MaxLength="1024" />
+          <Property Name="ConfirmedDate" Type="datetime" />
+          <Property Name="ConfirmedUserId" Type="nvarchar" MaxLength="24" />
+          <Property Name="IsConfirmed" Type="bit" Nullable="false" />
+          <Property Name="ConfirmDesc" Type="nvarchar" MaxLength="1024" />
+        </EntityType>
+        <EntityType Name="FmsWorkResultCheckItem">
+          <Key>
+            <PropertyRef Name="CheckItemId" />
+          </Key>
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="WorkRequestId" Type="int" Nullable="false" />
+          <Property Name="FacilityCode" Type="int" />
+          <Property Name="CheckItemId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+          <Property Name="BoolResult" Type="bit" />
+          <Property Name="TextResult" Type="nvarchar" MaxLength="1024" />
+          <Property Name="CheckDate" Type="datetime" Nullable="false" />
+          <Property Name="FileId1" Type="int" />
+          <Property Name="FileId2" Type="int" />
+        </EntityType>
+        <EntityType Name="FmsWorkResultCheckItemMaterial">
+          <Key>
+            <PropertyRef Name="CheckItemMaterialId" />
+          </Key>
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="WorkRequestId" Type="int" Nullable="false" />
+          <Property Name="CheckItemId" Type="int" Nullable="false" />
+          <Property Name="CheckItemMaterialId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+          <Property Name="MaterialId" Type="int" Nullable="false" />
+          <Property Name="MaterialCount" Type="int" Nullable="false" />
+          <Property Name="MaterialCode" Type="nvarchar" MaxLength="48" />
+          <Property Name="Name" Type="nvarchar" MaxLength="48" />
+        </EntityType>
+        <EntityType Name="FmsWorkResultFile">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="WorkRequestId" />
+          </Key>
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="WorkRequestId" Type="int" Nullable="false" />
+          <Property Name="FileId" Type="int" Nullable="false" />
+        </EntityType>
+        <EntityType Name="FmsWorkResultLaw">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="WorkRequestId" />
+          </Key>
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="WorkRequestId" Type="int" Nullable="false" />
+          <Property Name="CertificationNo" Type="nvarchar" MaxLength="50" />
+          <Property Name="CheckCommission" Type="numeric" Precision="10" Scale="0" />
+          <Property Name="CheckResult" Type="bit" />
+        </EntityType>
+        <EntityType Name="FmsWorkResultToFacility">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="WorkRequestId" />
+            <PropertyRef Name="FacilityCode" />
+          </Key>
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="WorkRequestId" Type="int" Nullable="false" />
+          <Property Name="FacilityCode" Type="int" Nullable="false" />
+        </EntityType>
+        <EntityType Name="FmsWorkSchedule">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="WorkScheduleId" />
+          </Key>
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="WorkScheduleId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+          <Property Name="WorkTypeId" Type="int" Nullable="false" />
+          <Property Name="BusinessFieldId" Type="int" Nullable="false" />
+          <Property Name="Name" Type="nvarchar" MaxLength="100" Nullable="false" />
+          <Property Name="InspectionAgencyId" Type="int" />
+          <Property Name="CycleSize" Type="int" Nullable="false" />
+          <Property Name="CycleUnitId" Type="int" Nullable="false" />
+          <Property Name="HolidayWorkTypeId" Type="int" Nullable="false" />
+          <Property Name="WorkDueDate" Type="datetime" Nullable="false" />
+          <Property Name="UpdateUserId" Type="nvarchar" MaxLength="24" Nullable="false" />
+          <Property Name="IsUse" Type="bit" Nullable="false" />
+          <Property Name="IsAutoOrder" Type="bit" Nullable="false" />
+          <Property Name="Content" Type="nvarchar" MaxLength="1024" />
+        </EntityType>
+        <EntityType Name="FmsWorkScheduleToFacility">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="WorkScheduleId" />
+            <PropertyRef Name="FacilityCode" />
+          </Key>
+          <Property Name="SiteId" Type="int" Nullable="false" />
+          <Property Name="WorkScheduleId" Type="int" Nullable="false" />
+          <Property Name="FacilityCode" Type="int" Nullable="false" />
+        </EntityType>
+        <EntityType Name="sysdiagrams">
+          <Key>
+            <PropertyRef Name="diagram_id" />
+          </Key>
+          <Property Name="name" Type="nvarchar" MaxLength="128" Nullable="false" />
+          <Property Name="principal_id" Type="int" Nullable="false" />
+          <Property Name="diagram_id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+          <Property Name="version" Type="int" />
+          <Property Name="definition" Type="varbinary(max)" />
+        </EntityType>
+        <EntityType Name="WeatherDongNaeForecast">
+          <Key>
+            <PropertyRef Name="BaseTime" />
+            <PropertyRef Name="ForecastTime" />
+          </Key>
+          <Property Name="BaseTime" Type="datetime" Nullable="false" />
+          <Property Name="nx" Type="int" />
+          <Property Name="ny" Type="int" />
+          <Property Name="ForecastTime" Type="datetime" Nullable="false" />
+          <Property Name="POP" Type="float" />
+          <Property Name="PTY" Type="float" />
+          <Property Name="R06" Type="float" />
+          <Property Name="REH" Type="float" />
+          <Property Name="S06" Type="float" />
+          <Property Name="SKY" Type="float" />
+          <Property Name="T3H" Type="float" />
+          <Property Name="TMN" Type="float" />
+          <Property Name="TMX" Type="float" />
+          <Property Name="UUU" Type="float" />
+          <Property Name="VVV" Type="float" />
+          <Property Name="VEC" Type="float" />
+          <Property Name="WSD" Type="float" />
+          <Property Name="Type" Type="int" />
+          <Property Name="DBTime" Type="datetime" />
+          <Property Name="Version" Type="int" />
+        </EntityType>
+        <Association Name="FK__BemsEnerg__SiteI__7954A4F6">
+          <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
+          <End Role="BemsEnergyConfigPercentMonth" Type="Self.BemsEnergyConfigPercentMonth" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmSite">
+              <PropertyRef Name="SiteId" />
+            </Principal>
+            <Dependent Role="BemsEnergyConfigPercentMonth">
+              <PropertyRef Name="SiteId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__BemsEnerg__SiteI__7C3111A1">
+          <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
+          <End Role="BemsEnergyConfigPercentWeek" Type="Self.BemsEnergyConfigPercentWeek" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmSite">
+              <PropertyRef Name="SiteId" />
+            </Principal>
+            <Dependent Role="BemsEnergyConfigPercentWeek">
+              <PropertyRef Name="SiteId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__BemsEnergyDaily__BemsFuelType">
+          <End Role="BemsFuelType" Type="Self.BemsFuelType" Multiplicity="1" />
+          <End Role="BemsEnergyDaily" Type="Self.BemsEnergyDaily" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="BemsFuelType">
+              <PropertyRef Name="FuelTypeId" />
+            </Principal>
+            <Dependent Role="BemsEnergyDaily">
+              <PropertyRef Name="FuelTypeId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__BemsEnergyDaily__BemsServiceType">
+          <End Role="BemsServiceType" Type="Self.BemsServiceType" Multiplicity="1" />
+          <End Role="BemsEnergyDaily" Type="Self.BemsEnergyDaily" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="BemsServiceType">
+              <PropertyRef Name="ServiceTypeId" />
+            </Principal>
+            <Dependent Role="BemsEnergyDaily">
+              <PropertyRef Name="ServiceTypeId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__BemsEnergyDaily__CmBuilding">
+          <End Role="CmBuilding" Type="Self.CmBuilding" Multiplicity="1" />
+          <End Role="BemsEnergyDaily" Type="Self.BemsEnergyDaily" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmBuilding">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="BuildingId" />
+            </Principal>
+            <Dependent Role="BemsEnergyDaily">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="BuildingId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__BemsFactorCo2__BemsFuelType">
+          <End Role="BemsFuelType" Type="Self.BemsFuelType" Multiplicity="1" />
+          <End Role="BemsFactorCo2" Type="Self.BemsFactorCo2" Multiplicity="0..1" />
+          <ReferentialConstraint>
+            <Principal Role="BemsFuelType">
+              <PropertyRef Name="FuelTypeId" />
+            </Principal>
+            <Dependent Role="BemsFactorCo2">
+              <PropertyRef Name="FuelTypeId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__BemsFactorToe__BemsFuelType">
+          <End Role="BemsFuelType" Type="Self.BemsFuelType" Multiplicity="1" />
+          <End Role="BemsFactorToe" Type="Self.BemsFactorToe" Multiplicity="0..1" />
+          <ReferentialConstraint>
+            <Principal Role="BemsFuelType">
+              <PropertyRef Name="FuelTypeId" />
+            </Principal>
+            <Dependent Role="BemsFactorToe">
+              <PropertyRef Name="FuelTypeId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__BemsFormula__BemsFormulaBase">
+          <End Role="BemsFormulaBase" Type="Self.BemsFormulaBase" Multiplicity="1" />
+          <End Role="BemsFormula" Type="Self.BemsFormula" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="BemsFormulaBase">
+              <PropertyRef Name="FacilityTypeId" />
+              <PropertyRef Name="FormulaId" />
+            </Principal>
+            <Dependent Role="BemsFormula">
+              <PropertyRef Name="FacilityTypeId" />
+              <PropertyRef Name="FormulaId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__BemsFormulaParameter__BemsFormula">
+          <End Role="BemsFormula" Type="Self.BemsFormula" Multiplicity="1" />
+          <End Role="BemsFormulaParameter" Type="Self.BemsFormulaParameter" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="BemsFormula">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FacilityTypeId" />
+              <PropertyRef Name="FacilityCode" />
+              <PropertyRef Name="FormulaId" />
+            </Principal>
+            <Dependent Role="BemsFormulaParameter">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FacilityTypeId" />
+              <PropertyRef Name="FacilityCode" />
+              <PropertyRef Name="FormulaId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__BemsFormulaTableValue__BemsFormulaTable">
+          <End Role="BemsFormulaTable" Type="Self.BemsFormulaTable" Multiplicity="1" />
+          <End Role="BemsFormulaTableValue" Type="Self.BemsFormulaTableValue" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="BemsFormulaTable">
+              <PropertyRef Name="TableId" />
+            </Principal>
+            <Dependent Role="BemsFormulaTableValue">
+              <PropertyRef Name="TableId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__BemsMonitoringPo__1372D2FE">
+          <End Role="BemsAnalysisType" Type="Self.BemsAnalysisType" Multiplicity="1" />
+          <End Role="BemsMonitoringPointToAnlaysisType" Type="Self.BemsMonitoringPointToAnlaysisType" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="BemsAnalysisType">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="AnalysisType" />
+            </Principal>
+            <Dependent Role="BemsMonitoringPointToAnlaysisType">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="AnalysisType" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__BemsMonitoringPo__155B1B70">
+          <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="1" />
+          <End Role="BemsMonitoringPointToAnlaysisType" Type="Self.BemsMonitoringPointToAnlaysisType" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="BemsMonitoringPoint">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FacilityCode" />
+              <PropertyRef Name="PropertyId" />
+            </Principal>
+            <Dependent Role="BemsMonitoringPointToAnlaysisType">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FacilityCode" />
+              <PropertyRef Name="PropertyId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__BemsMonitoringPoint__BemsFuelType">
+          <End Role="BemsFuelType" Type="Self.BemsFuelType" Multiplicity="0..1" />
+          <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="BemsFuelType">
+              <PropertyRef Name="FuelTypeId" />
+            </Principal>
+            <Dependent Role="BemsMonitoringPoint">
+              <PropertyRef Name="FuelTypeId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__BemsMonitoringPoint__BemsServiceType">
+          <End Role="BemsServiceType" Type="Self.BemsServiceType" Multiplicity="0..1" />
+          <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="BemsServiceType">
+              <PropertyRef Name="ServiceTypeId" />
+            </Principal>
+            <Dependent Role="BemsMonitoringPoint">
+              <PropertyRef Name="ServiceTypeId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__BemsMonitoringPoint__CmBuilding">
+          <End Role="CmBuilding" Type="Self.CmBuilding" Multiplicity="0..1" />
+          <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmBuilding">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="BuildingId" />
+            </Principal>
+            <Dependent Role="BemsMonitoringPoint">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="BuildingId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__BemsMonitoringPoint__CmFloor">
+          <End Role="CmFloor" Type="Self.CmFloor" Multiplicity="0..1" />
+          <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmFloor">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="BuildingId" />
+              <PropertyRef Name="FloorId" />
+            </Principal>
+            <Dependent Role="BemsMonitoringPoint">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="BuildingId" />
+              <PropertyRef Name="FloorId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__BemsMonitoringPoint__CmZone">
+          <End Role="CmZone" Type="Self.CmZone" Multiplicity="0..1" />
+          <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmZone">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="BuildingId" />
+              <PropertyRef Name="FloorId" />
+              <PropertyRef Name="ZoneId" />
+            </Principal>
+            <Dependent Role="BemsMonitoringPoint">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="BuildingId" />
+              <PropertyRef Name="FloorId" />
+              <PropertyRef Name="ZoneId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__BemsMonitoringPointBaseData__BemsFacilityType">
+          <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
+          <End Role="BemsMonitoringPointBaseData" Type="Self.BemsMonitoringPointBaseData" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="BemsFacilityType">
+              <PropertyRef Name="FacilityTypeId" />
+            </Principal>
+            <Dependent Role="BemsMonitoringPointBaseData">
+              <PropertyRef Name="FacilityTypeId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__BemsMonitoringPointBaseData__BemsFuelType">
+          <End Role="BemsFuelType" Type="Self.BemsFuelType" Multiplicity="0..1" />
+          <End Role="BemsMonitoringPointBaseData" Type="Self.BemsMonitoringPointBaseData" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="BemsFuelType">
+              <PropertyRef Name="FuelTypeId" />
+            </Principal>
+            <Dependent Role="BemsMonitoringPointBaseData">
+              <PropertyRef Name="FuelTypeId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__BemsMonitoringPointBaseData__BemsServiceType">
+          <End Role="BemsServiceType" Type="Self.BemsServiceType" Multiplicity="0..1" />
+          <End Role="BemsMonitoringPointBaseData" Type="Self.BemsMonitoringPointBaseData" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="BemsServiceType">
+              <PropertyRef Name="ServiceTypeId" />
+            </Principal>
+            <Dependent Role="BemsMonitoringPointBaseData">
+              <PropertyRef Name="ServiceTypeId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__BemsMonitoringPointHistory15min__BemsFacilityType">
+          <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
+          <End Role="BemsMonitoringPointHistory15min" Type="Self.BemsMonitoringPointHistory15min" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="BemsFacilityType">
+              <PropertyRef Name="FacilityTypeId" />
+            </Principal>
+            <Dependent Role="BemsMonitoringPointHistory15min">
+              <PropertyRef Name="FacilityTypeId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__BemsMonitoringPointHistory15min__BemsMonitoringPoint">
+          <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="1" />
+          <End Role="BemsMonitoringPointHistory15min" Type="Self.BemsMonitoringPointHistory15min" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="BemsMonitoringPoint">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FacilityCode" />
+              <PropertyRef Name="PropertyId" />
+            </Principal>
+            <Dependent Role="BemsMonitoringPointHistory15min">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FacilityCode" />
+              <PropertyRef Name="PropertyId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__BemsMonitoringPointHistory15minRawData__BemsFacilityType">
+          <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
+          <End Role="BemsMonitoringPointHistory15minRawData" Type="Self.BemsMonitoringPointHistory15minRawData" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="BemsFacilityType">
+              <PropertyRef Name="FacilityTypeId" />
+            </Principal>
+            <Dependent Role="BemsMonitoringPointHistory15minRawData">
+              <PropertyRef Name="FacilityTypeId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__BemsMonitoringPointHistory15minRawData__BemsMonitoringPoint">
+          <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="1" />
+          <End Role="BemsMonitoringPointHistory15minRawData" Type="Self.BemsMonitoringPointHistory15minRawData" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="BemsMonitoringPoint">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FacilityCode" />
+              <PropertyRef Name="PropertyId" />
+            </Principal>
+            <Dependent Role="BemsMonitoringPointHistory15minRawData">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FacilityCode" />
+              <PropertyRef Name="PropertyId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__BemsMonitoringPointHistoryDaily__BemsFacilityType">
+          <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
+          <End Role="BemsMonitoringPointHistoryDaily" Type="Self.BemsMonitoringPointHistoryDaily" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="BemsFacilityType">
+              <PropertyRef Name="FacilityTypeId" />
+            </Principal>
+            <Dependent Role="BemsMonitoringPointHistoryDaily">
+              <PropertyRef Name="FacilityTypeId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__BemsMonitoringPointHistoryDaily__BemsMonitoringPoint">
+          <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="1" />
+          <End Role="BemsMonitoringPointHistoryDaily" Type="Self.BemsMonitoringPointHistoryDaily" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="BemsMonitoringPoint">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FacilityCode" />
+              <PropertyRef Name="PropertyId" />
+            </Principal>
+            <Dependent Role="BemsMonitoringPointHistoryDaily">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FacilityCode" />
+              <PropertyRef Name="PropertyId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__BemsMonitoringPointHistoryHourly__BemsFacilityType">
+          <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
+          <End Role="BemsMonitoringPointHistoryHourly" Type="Self.BemsMonitoringPointHistoryHourly" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="BemsFacilityType">
+              <PropertyRef Name="FacilityTypeId" />
+            </Principal>
+            <Dependent Role="BemsMonitoringPointHistoryHourly">
+              <PropertyRef Name="FacilityTypeId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__BemsMonitoringPointHistoryHourly__BemsMonitoringPoint">
+          <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="1" />
+          <End Role="BemsMonitoringPointHistoryHourly" Type="Self.BemsMonitoringPointHistoryHourly" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="BemsMonitoringPoint">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FacilityCode" />
+              <PropertyRef Name="PropertyId" />
+            </Principal>
+            <Dependent Role="BemsMonitoringPointHistoryHourly">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FacilityCode" />
+              <PropertyRef Name="PropertyId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__BemsMonitoringPointToAnlaysisType__BemsFacilityType">
+          <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
+          <End Role="BemsMonitoringPointToAnlaysisType" Type="Self.BemsMonitoringPointToAnlaysisType" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="BemsFacilityType">
+              <PropertyRef Name="FacilityTypeId" />
+            </Principal>
+            <Dependent Role="BemsMonitoringPointToAnlaysisType">
+              <PropertyRef Name="FacilityTypeId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__BemsNoticePriceBase__BemsNoticePriceContractType">
+          <End Role="BemsNoticePriceContractType" Type="Self.BemsNoticePriceContractType" Multiplicity="1" />
+          <End Role="BemsNoticePriceBase" Type="Self.BemsNoticePriceBase" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="BemsNoticePriceContractType">
+              <PropertyRef Name="FuelTypeId" />
+              <PropertyRef Name="ContractType" />
+            </Principal>
+            <Dependent Role="BemsNoticePriceBase">
+              <PropertyRef Name="FuelTypeId" />
+              <PropertyRef Name="ContractType" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__BemsNoticePriceContractType__BemsFuelType">
+          <End Role="BemsFuelType" Type="Self.BemsFuelType" Multiplicity="1" />
+          <End Role="BemsNoticePriceContractType" Type="Self.BemsNoticePriceContractType" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="BemsFuelType">
+              <PropertyRef Name="FuelTypeId" />
+            </Principal>
+            <Dependent Role="BemsNoticePriceContractType">
+              <PropertyRef Name="FuelTypeId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__BemsNoticePriceDetail__BemsNoticePriceBase">
+          <End Role="BemsNoticePriceBase" Type="Self.BemsNoticePriceBase" Multiplicity="1" />
+          <End Role="BemsNoticePriceDetail" Type="Self.BemsNoticePriceDetail" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="BemsNoticePriceBase">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FuelTypeId" />
+              <PropertyRef Name="ApplyDate" />
+              <PropertyRef Name="ContractType" />
+            </Principal>
+            <Dependent Role="BemsNoticePriceDetail">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FuelTypeId" />
+              <PropertyRef Name="ApplyDate" />
+              <PropertyRef Name="ContractType" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__CmCompany__345EC57D">
+          <End Role="CmCompanyType" Type="Self.CmCompanyType" Multiplicity="1" />
+          <End Role="CmCompany" Type="Self.CmCompany" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmCompanyType">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="CompanyTypeId" />
+            </Principal>
+            <Dependent Role="CmCompany">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="CompanyTypeId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__CmCompany__SiteI__336AA144">
+          <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
+          <End Role="CmCompany" Type="Self.CmCompany" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmSite">
+              <PropertyRef Name="SiteId" />
+            </Principal>
+            <Dependent Role="CmCompany">
+              <PropertyRef Name="SiteId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__CmDepartment__3552E9B6">
+          <End Role="CmCompany" Type="Self.CmCompany" Multiplicity="1" />
+          <End Role="CmDepartment" Type="Self.CmDepartment" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmCompany">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="CompanyId" />
+            </Principal>
+            <Dependent Role="CmDepartment">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="CompanyId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__CmFacility__CmFacility">
+          <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="0..1" />
+          <End Role="CmFacility1" Type="Self.CmFacility" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmFacility">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FacilityCode" />
+            </Principal>
+            <Dependent Role="CmFacility1">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="ParentFacilityCode" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__CmFacilityFile__7720AD13">
+          <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="1" />
+          <End Role="CmFacilityFile" Type="Self.CmFacilityFile" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmFacility">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FacilityCode" />
+            </Principal>
+            <Dependent Role="CmFacilityFile">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FacilityCode" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__CmFacilityFile__CmFile">
+          <End Role="CmFile" Type="Self.CmFile" Multiplicity="1" />
+          <End Role="CmFacilityFile" Type="Self.CmFacilityFile" Multiplicity="0..1" />
+          <ReferentialConstraint>
+            <Principal Role="CmFile">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FileId" />
+            </Principal>
+            <Dependent Role="CmFacilityFile">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FileId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__CmFacilityManual__79FD19BE">
+          <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="1" />
+          <End Role="FmsFacilityManual" Type="Self.FmsFacilityManual" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmFacility">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FacilityCode" />
+            </Principal>
+            <Dependent Role="FmsFacilityManual">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FacilityCode" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__CmFacilityManual__7BE56230">
+          <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
+          <End Role="FmsFacilityManual" Type="Self.FmsFacilityManual" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmBusinessField">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="BusinessFieldId" />
+            </Principal>
+            <Dependent Role="FmsFacilityManual">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="BusinessFieldId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__CmFile__CmFileCategory">
+          <End Role="CmFileCategory" Type="Self.CmFileCategory" Multiplicity="1" />
+          <End Role="CmFile" Type="Self.CmFile" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmFileCategory">
+              <PropertyRef Name="FileCategoryId" />
+            </Principal>
+            <Dependent Role="CmFile">
+              <PropertyRef Name="FileCategoryId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__CmFile__SiteId__2759D01A">
+          <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
+          <End Role="CmFile" Type="Self.CmFile" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmSite">
+              <PropertyRef Name="SiteId" />
+            </Principal>
+            <Dependent Role="CmFile">
+              <PropertyRef Name="SiteId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__CmFloor__3CF40B7E">
+          <End Role="CmBuilding" Type="Self.CmBuilding" Multiplicity="1" />
+          <End Role="CmFloor" Type="Self.CmFloor" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmBuilding">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="BuildingId" />
+            </Principal>
+            <Dependent Role="CmFloor">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="BuildingId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__CmHoliday__SiteI__0BB1B5A5">
+          <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
+          <End Role="CmHoliday" Type="Self.CmHoliday" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmSite">
+              <PropertyRef Name="SiteId" />
+            </Principal>
+            <Dependent Role="CmHoliday">
+              <PropertyRef Name="SiteId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__CmHoliday__SiteI__0D99FE17">
+          <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
+          <End Role="CmHolidayWeekend" Type="Self.CmHolidayWeekend" Multiplicity="0..1" />
+          <ReferentialConstraint>
+            <Principal Role="CmSite">
+              <PropertyRef Name="SiteId" />
+            </Principal>
+            <Dependent Role="CmHolidayWeekend">
+              <PropertyRef Name="SiteId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__CmHoliday__SiteI__10766AC2">
+          <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
+          <End Role="CmHolidayCustom" Type="Self.CmHolidayCustom" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmSite">
+              <PropertyRef Name="SiteId" />
+            </Principal>
+            <Dependent Role="CmHolidayCustom">
+              <PropertyRef Name="SiteId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__CmHoliday__SiteI__65AC084E">
+          <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
+          <End Role="CmHoliday" Type="Self.CmHoliday" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmSite">
+              <PropertyRef Name="SiteId" />
+            </Principal>
+            <Dependent Role="CmHoliday">
+              <PropertyRef Name="SiteId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__CmHoliday__SiteI__66A02C87">
+          <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
+          <End Role="CmHolidayCustom" Type="Self.CmHolidayCustom" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmSite">
+              <PropertyRef Name="SiteId" />
+            </Principal>
+            <Dependent Role="CmHolidayCustom">
+              <PropertyRef Name="SiteId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__CmLocation__3DE82FB7">
+          <End Role="CmFloor" Type="Self.CmFloor" Multiplicity="1" />
+          <End Role="CmZone" Type="Self.CmZone" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmFloor">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="BuildingId" />
+              <PropertyRef Name="FloorId" />
+            </Principal>
+            <Dependent Role="CmZone">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="BuildingId" />
+              <PropertyRef Name="FloorId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__CmPositio__SiteI__6A70BD6B">
+          <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
+          <End Role="CmPosition" Type="Self.CmPosition" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmSite">
+              <PropertyRef Name="SiteId" />
+            </Principal>
+            <Dependent Role="CmPosition">
+              <PropertyRef Name="SiteId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__CmUserGro__SiteI__53D770D6">
+          <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
+          <End Role="CmUserGroup" Type="Self.CmUserGroup" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmSite">
+              <PropertyRef Name="SiteId" />
+            </Principal>
+            <Dependent Role="CmUserGroup">
+              <PropertyRef Name="SiteId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__CmUserGroupPermission__CmUserGroup">
+          <End Role="CmUserGroup" Type="Self.CmUserGroup" Multiplicity="1">
+            <OnDelete Action="Cascade" />
+          </End>
+          <End Role="CmUserGroupPermission" Type="Self.CmUserGroupPermission" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmUserGroup">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="UserGroupId" />
+            </Principal>
+            <Dependent Role="CmUserGroupPermission">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="UserGroupId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__CmUserPos__SiteI__44952D46">
+          <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
+          <End Role="CmPosition" Type="Self.CmPosition" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmSite">
+              <PropertyRef Name="SiteId" />
+            </Principal>
+            <Dependent Role="CmPosition">
+              <PropertyRef Name="SiteId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__CmUserToLicense__CmUser">
+          <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
+          <End Role="CmUserToLicense" Type="Self.CmUserToLicense" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmUser">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="UserId" />
+            </Principal>
+            <Dependent Role="CmUserToLicense">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="UserId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__CmUserToLicense__FmsLicense">
+          <End Role="FmsLicense" Type="Self.FmsLicense" Multiplicity="1" />
+          <End Role="CmUserToLicense" Type="Self.CmUserToLicense" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="FmsLicense">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="LicenseId" />
+            </Principal>
+            <Dependent Role="CmUserToLicense">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="LicenseId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__CmZone__CmBuilding">
+          <End Role="CmBuilding" Type="Self.CmBuilding" Multiplicity="1" />
+          <End Role="CmZone" Type="Self.CmZone" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmBuilding">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="BuildingId" />
+            </Principal>
+            <Dependent Role="CmZone">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="BuildingId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsDrawin__SiteI__6B79F03D">
+          <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
+          <End Role="FmsDrawingCodeGroup" Type="Self.FmsDrawingCodeGroup" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmSite">
+              <PropertyRef Name="SiteId" />
+            </Principal>
+            <Dependent Role="FmsDrawingCodeGroup">
+              <PropertyRef Name="SiteId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsDrawin__SiteI__6C6E1476">
+          <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
+          <End Role="FmsDrawingCodeType" Type="Self.FmsDrawingCodeType" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmSite">
+              <PropertyRef Name="SiteId" />
+            </Principal>
+            <Dependent Role="FmsDrawingCodeType">
+              <PropertyRef Name="SiteId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsDrawin__SiteI__6D6238AF">
+          <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
+          <End Role="FmsDrawing" Type="Self.FmsDrawing" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmSite">
+              <PropertyRef Name="SiteId" />
+            </Principal>
+            <Dependent Role="FmsDrawing">
+              <PropertyRef Name="SiteId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsDrawin__SiteI__6F357288">
+          <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
+          <End Role="FmsDrawingCodeGroup" Type="Self.FmsDrawingCodeGroup" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmSite">
+              <PropertyRef Name="SiteId" />
+            </Principal>
+            <Dependent Role="FmsDrawingCodeGroup">
+              <PropertyRef Name="SiteId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsDrawin__SiteI__702996C1">
+          <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
+          <End Role="FmsDrawingCodeType" Type="Self.FmsDrawingCodeType" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmSite">
+              <PropertyRef Name="SiteId" />
+            </Principal>
+            <Dependent Role="FmsDrawingCodeType">
+              <PropertyRef Name="SiteId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsDrawing__6E565CE8">
+          <End Role="FmsDrawingCodeGroup" Type="Self.FmsDrawingCodeGroup" Multiplicity="1" />
+          <End Role="FmsDrawing" Type="Self.FmsDrawing" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="FmsDrawingCodeGroup">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="DrawingGroupId" />
+            </Principal>
+            <Dependent Role="FmsDrawing">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="DrawingGroupId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsDrawing__6F4A8121">
+          <End Role="FmsDrawingCodeType" Type="Self.FmsDrawingCodeType" Multiplicity="1" />
+          <End Role="FmsDrawing" Type="Self.FmsDrawing" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="FmsDrawingCodeType">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="DrawingTypeId" />
+            </Principal>
+            <Dependent Role="FmsDrawing">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="DrawingTypeId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsDrawingHistor__04DA9AE4">
+          <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
+          <End Role="FmsDrawingHistory" Type="Self.FmsDrawingHistory" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmFile">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FileId" />
+            </Principal>
+            <Dependent Role="FmsDrawingHistory">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FileId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsDrawingHistor__7132C993">
+          <End Role="FmsDrawing" Type="Self.FmsDrawing" Multiplicity="1">
+            <OnDelete Action="Cascade" />
+          </End>
+          <End Role="FmsDrawingHistory" Type="Self.FmsDrawingHistory" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="FmsDrawing">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="DrawingId" />
+            </Principal>
+            <Dependent Role="FmsDrawingHistory">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="DrawingId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsDrawingHistory__CmUser">
+          <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
+          <End Role="FmsDrawingHistory" Type="Self.FmsDrawingHistory" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmUser">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="UserId" />
+            </Principal>
+            <Dependent Role="FmsDrawingHistory">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="UpdatedUserId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsFacilityCheckItem__FmsWorkCodeCycleUnit">
+          <End Role="FmsWorkCodeCycleUnit" Type="Self.FmsWorkCodeCycleUnit" Multiplicity="1" />
+          <End Role="FmsFacilityCheckItem" Type="Self.FmsFacilityCheckItem" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="FmsWorkCodeCycleUnit">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="CycleUnitId" />
+            </Principal>
+            <Dependent Role="FmsFacilityCheckItem">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="CycleUnitId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsFacilityCheckItem__FmsWorkCodeWorkType">
+          <End Role="FmsWorkCodeType" Type="Self.FmsWorkCodeType" Multiplicity="1" />
+          <End Role="FmsFacilityCheckItem" Type="Self.FmsFacilityCheckItem" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="FmsWorkCodeType">
+              <PropertyRef Name="WorkTypeId" />
+            </Principal>
+            <Dependent Role="FmsFacilityCheckItem">
+              <PropertyRef Name="WorkTypeId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsFacilityCodeClass__CmSite">
+          <End Role="CmSite" Type="Self.CmSite" Multiplicity="1">
+            <OnDelete Action="Cascade" />
+          </End>
+          <End Role="FmsFacilityCodeClass" Type="Self.FmsFacilityCodeClass" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmSite">
+              <PropertyRef Name="SiteId" />
+            </Principal>
+            <Dependent Role="FmsFacilityCodeClass">
+              <PropertyRef Name="SiteId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsFacilityCodeClass__FmsFacilityCodeClass">
+          <End Role="FmsFacilityCodeClass" Type="Self.FmsFacilityCodeClass" Multiplicity="0..1" />
+          <End Role="FmsFacilityCodeClass1" Type="Self.FmsFacilityCodeClass" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="FmsFacilityCodeClass">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FacilityClassId" />
+            </Principal>
+            <Dependent Role="FmsFacilityCodeClass1">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="ParentFacilityClassId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsFacilityOpera__725BF7F6">
+          <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="1" />
+          <End Role="FmsFacilityOperationItem" Type="Self.FmsFacilityOperationItem" Multiplicity="0..1" />
+          <ReferentialConstraint>
+            <Principal Role="CmFacility">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FacilityCode" />
+            </Principal>
+            <Dependent Role="FmsFacilityOperationItem">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="ItemId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsLicense__CmBusinessField">
+          <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="0..1" />
+          <End Role="FmsLicense" Type="Self.FmsLicense" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmBusinessField">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="BusinessFieldId" />
+            </Principal>
+            <Dependent Role="FmsLicense">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="BusinessFieldId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsLicense__CmSite">
+          <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
+          <End Role="FmsLicense" Type="Self.FmsLicense" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmSite">
+              <PropertyRef Name="SiteId" />
+            </Principal>
+            <Dependent Role="FmsLicense">
+              <PropertyRef Name="SiteId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsMaterial__FmsMaterialCodeClass_AsFirstClassId">
+          <End Role="FmsMaterialCodeClass" Type="Self.FmsMaterialCodeClass" Multiplicity="0..1" />
+          <End Role="FmsMaterial" Type="Self.FmsMaterial" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="FmsMaterialCodeClass">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="MaterialClassId" />
+            </Principal>
+            <Dependent Role="FmsMaterial">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FirstClassId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsMaterial__FmsMaterialCodeClass_AsSecondClassId">
+          <End Role="FmsMaterialCodeClass" Type="Self.FmsMaterialCodeClass" Multiplicity="0..1" />
+          <End Role="FmsMaterial" Type="Self.FmsMaterial" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="FmsMaterialCodeClass">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="MaterialClassId" />
+            </Principal>
+            <Dependent Role="FmsMaterial">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="SecondClassId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsMaterial__FmsMaterialCodeClass_AsThirdClassId">
+          <End Role="FmsMaterialCodeClass" Type="Self.FmsMaterialCodeClass" Multiplicity="0..1" />
+          <End Role="FmsMaterial" Type="Self.FmsMaterial" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="FmsMaterialCodeClass">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="MaterialClassId" />
+            </Principal>
+            <Dependent Role="FmsMaterial">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="ThirdClassId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsMaterialCarriedForward__CmBusinessField">
+          <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
+          <End Role="FmsMaterialCarriedForward" Type="Self.FmsMaterialCarriedForward" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmBusinessField">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="BusinessFieldId" />
+            </Principal>
+            <Dependent Role="FmsMaterialCarriedForward">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="BusinessFieldId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsMaterialCarriedForward__CmSite">
+          <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
+          <End Role="FmsMaterialCarriedForward" Type="Self.FmsMaterialCarriedForward" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmSite">
+              <PropertyRef Name="SiteId" />
+            </Principal>
+            <Dependent Role="FmsMaterialCarriedForward">
+              <PropertyRef Name="SiteId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsMaterialCodeClass__CmSite">
+          <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
+          <End Role="FmsMaterialCodeClass" Type="Self.FmsMaterialCodeClass" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmSite">
+              <PropertyRef Name="SiteId" />
+            </Principal>
+            <Dependent Role="FmsMaterialCodeClass">
+              <PropertyRef Name="SiteId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsMaterialCodeClass__FmsMaterialCodeClass">
+          <End Role="FmsMaterialCodeClass" Type="Self.FmsMaterialCodeClass" Multiplicity="0..1" />
+          <End Role="FmsMaterialCodeClass1" Type="Self.FmsMaterialCodeClass" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="FmsMaterialCodeClass">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="MaterialClassId" />
+            </Principal>
+            <Dependent Role="FmsMaterialCodeClass1">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="ParentMaterialClassId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsMaterialCodeLocation__CmBusinessField">
+          <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
+          <End Role="FmsMaterialCodeLocation" Type="Self.FmsMaterialCodeLocation" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmBusinessField">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="BusinessFieldId" />
+            </Principal>
+            <Dependent Role="FmsMaterialCodeLocation">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="BusinessFieldId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsMaterialCodeLocation__CmSite">
+          <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
+          <End Role="FmsMaterialCodeLocation" Type="Self.FmsMaterialCodeLocation" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmSite">
+              <PropertyRef Name="SiteId" />
+            </Principal>
+            <Dependent Role="FmsMaterialCodeLocation">
+              <PropertyRef Name="SiteId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsMaterialCodeType__CmSite">
+          <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
+          <End Role="FmsMaterialCodeType" Type="Self.FmsMaterialCodeType" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmSite">
+              <PropertyRef Name="SiteId" />
+            </Principal>
+            <Dependent Role="FmsMaterialCodeType">
+              <PropertyRef Name="SiteId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsMaterialOrder__CmBusinessField">
+          <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
+          <End Role="FmsMaterialPurchaseOrder" Type="Self.FmsMaterialPurchaseOrder" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmBusinessField">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="BusinessFieldId" />
+            </Principal>
+            <Dependent Role="FmsMaterialPurchaseOrder">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="BusinessFieldId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsMaterialOrder__CmSite">
+          <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
+          <End Role="FmsMaterialPurchaseOrder" Type="Self.FmsMaterialPurchaseOrder" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmSite">
+              <PropertyRef Name="SiteId" />
+            </Principal>
+            <Dependent Role="FmsMaterialPurchaseOrder">
+              <PropertyRef Name="SiteId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsMaterialOrder__CmUser">
+          <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
+          <End Role="FmsMaterialPurchaseOrder" Type="Self.FmsMaterialPurchaseOrder" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmUser">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="UserId" />
+            </Principal>
+            <Dependent Role="FmsMaterialPurchaseOrder">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="OrderUserId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsMaterialPurchaseOrder__CmFile">
+          <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
+          <End Role="FmsMaterialPurchaseOrder" Type="Self.FmsMaterialPurchaseOrder" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmFile">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FileId" />
+            </Principal>
+            <Dependent Role="FmsMaterialPurchaseOrder">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FileId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsMaterialPurchaseOrder__FmsMaterialTradeCompany">
+          <End Role="FmsMaterialTradeCompany" Type="Self.FmsMaterialTradeCompany" Multiplicity="0..1" />
+          <End Role="FmsMaterialPurchaseOrder" Type="Self.FmsMaterialPurchaseOrder" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="FmsMaterialTradeCompany">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="TradeCompanyId" />
+            </Principal>
+            <Dependent Role="FmsMaterialPurchaseOrder">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="TradeCompanyId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsMaterialPurchaseRequest__CmUser_AsRequestUserId">
+          <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
+          <End Role="FmsMaterialPurchaseRequest" Type="Self.FmsMaterialPurchaseRequest" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmUser">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="UserId" />
+            </Principal>
+            <Dependent Role="FmsMaterialPurchaseRequest">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="RequestUserId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsMaterialPurchaseRequest__CmUser1_AsApprovalUserId">
+          <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
+          <End Role="FmsMaterialPurchaseRequest" Type="Self.FmsMaterialPurchaseRequest" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmUser">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="UserId" />
+            </Principal>
+            <Dependent Role="FmsMaterialPurchaseRequest">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="ApprovalUserId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsMaterialPurchasingRequest__CmBusinessField">
+          <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
+          <End Role="FmsMaterialPurchaseRequest" Type="Self.FmsMaterialPurchaseRequest" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmBusinessField">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="BusinessFieldId" />
+            </Principal>
+            <Dependent Role="FmsMaterialPurchaseRequest">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="BusinessFieldId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsMaterialPurchasingRequest__CmSite">
+          <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
+          <End Role="FmsMaterialPurchaseRequest" Type="Self.FmsMaterialPurchaseRequest" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmSite">
+              <PropertyRef Name="SiteId" />
+            </Principal>
+            <Dependent Role="FmsMaterialPurchaseRequest">
+              <PropertyRef Name="SiteId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsMaterialPurchasingRequest__FmsMaterialCodeProcess">
+          <End Role="FmsMaterialCodeProgress" Type="Self.FmsMaterialCodeProgress" Multiplicity="1" />
+          <End Role="FmsMaterialPurchaseRequest" Type="Self.FmsMaterialPurchaseRequest" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="FmsMaterialCodeProgress">
+              <PropertyRef Name="ProgressId" />
+            </Principal>
+            <Dependent Role="FmsMaterialPurchaseRequest">
+              <PropertyRef Name="ProgressId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsMaterialStored__CmBusinessField">
+          <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
+          <End Role="FmsMaterialStored" Type="Self.FmsMaterialStored" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmBusinessField">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="BusinessFieldId" />
+            </Principal>
+            <Dependent Role="FmsMaterialStored">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="BusinessFieldId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsMaterialStored__CmSite">
+          <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
+          <End Role="FmsMaterialStored" Type="Self.FmsMaterialStored" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmSite">
+              <PropertyRef Name="SiteId" />
+            </Principal>
+            <Dependent Role="FmsMaterialStored">
+              <PropertyRef Name="SiteId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsMaterialStored__CmUser_AsStoredUserId">
+          <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
+          <End Role="FmsMaterialStored" Type="Self.FmsMaterialStored" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmUser">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="UserId" />
+            </Principal>
+            <Dependent Role="FmsMaterialStored">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="StoredUserId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsMaterialStored__CmUser1_AsApprovalUserId">
+          <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
+          <End Role="FmsMaterialStored" Type="Self.FmsMaterialStored" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmUser">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="UserId" />
+            </Principal>
+            <Dependent Role="FmsMaterialStored">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="ApprovalUserId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsMaterialTradeCompany__CmSite">
+          <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
+          <End Role="FmsMaterialTradeCompany" Type="Self.FmsMaterialTradeCompany" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmSite">
+              <PropertyRef Name="SiteId" />
+            </Principal>
+            <Dependent Role="FmsMaterialTradeCompany">
+              <PropertyRef Name="SiteId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsMaterialWarehouse__CmBusinessField">
+          <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
+          <End Role="FmsMaterialWarehouse" Type="Self.FmsMaterialWarehouse" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmBusinessField">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="BusinessFieldId" />
+            </Principal>
+            <Dependent Role="FmsMaterialWarehouse">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="BusinessFieldId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsMaterialWarehouse__CmSite">
+          <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
+          <End Role="FmsMaterialWarehouse" Type="Self.FmsMaterialWarehouse" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmSite">
+              <PropertyRef Name="SiteId" />
+            </Principal>
+            <Dependent Role="FmsMaterialWarehouse">
+              <PropertyRef Name="SiteId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsWorkCodeCauseClass__CmSite">
+          <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
+          <End Role="FmsWorkCodeCauseClass" Type="Self.FmsWorkCodeCauseClass" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmSite">
+              <PropertyRef Name="SiteId" />
+            </Principal>
+            <Dependent Role="FmsWorkCodeCauseClass">
+              <PropertyRef Name="SiteId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsWorkCodeCycleUnit__CmSite">
+          <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
+          <End Role="FmsWorkCodeCycleUnit" Type="Self.FmsWorkCodeCycleUnit" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmSite">
+              <PropertyRef Name="SiteId" />
+            </Principal>
+            <Dependent Role="FmsWorkCodeCycleUnit">
+              <PropertyRef Name="SiteId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsWorkCodeEmergency__CmSite">
+          <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
+          <End Role="FmsWorkCodeEmergency" Type="Self.FmsWorkCodeEmergency" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmSite">
+              <PropertyRef Name="SiteId" />
+            </Principal>
+            <Dependent Role="FmsWorkCodeEmergency">
+              <PropertyRef Name="SiteId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsWorkCodeHolidayWorkType__CmSite">
+          <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
+          <End Role="FmsWorkCodeHolidayWorkType" Type="Self.FmsWorkCodeHolidayWorkType" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmSite">
+              <PropertyRef Name="SiteId" />
+            </Principal>
+            <Dependent Role="FmsWorkCodeHolidayWorkType">
+              <PropertyRef Name="SiteId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsWorkCodeLegalInspectionAgency__CmSite">
+          <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
+          <End Role="FmsWorkCodeLegalInspectionAgency" Type="Self.FmsWorkCodeLegalInspectionAgency" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmSite">
+              <PropertyRef Name="SiteId" />
+            </Principal>
+            <Dependent Role="FmsWorkCodeLegalInspectionAgency">
+              <PropertyRef Name="SiteId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsWorkOrder__CmBusinessField">
+          <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
+          <End Role="FmsWorkOrder" Type="Self.FmsWorkOrder" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmBusinessField">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="BusinessFieldId" />
+            </Principal>
+            <Dependent Role="FmsWorkOrder">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="BusinessFieldId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsWorkOrder__CmSite">
+          <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
+          <End Role="FmsWorkOrder" Type="Self.FmsWorkOrder" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmSite">
+              <PropertyRef Name="SiteId" />
+            </Principal>
+            <Dependent Role="FmsWorkOrder">
+              <PropertyRef Name="SiteId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsWorkOrder__CmUser">
+          <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
+          <End Role="FmsWorkOrder" Type="Self.FmsWorkOrder" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmUser">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="UserId" />
+            </Principal>
+            <Dependent Role="FmsWorkOrder">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="OrderUserId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsWorkOrder__FmsWorkCodeEmergency">
+          <End Role="FmsWorkCodeEmergency" Type="Self.FmsWorkCodeEmergency" Multiplicity="0..1" />
+          <End Role="FmsWorkOrder" Type="Self.FmsWorkOrder" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="FmsWorkCodeEmergency">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="EmergencyId" />
+            </Principal>
+            <Dependent Role="FmsWorkOrder">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="EmergencyId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsWorkOrder__FmsWorkRequest">
+          <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="1" />
+          <End Role="FmsWorkOrder" Type="Self.FmsWorkOrder" Multiplicity="0..1" />
+          <ReferentialConstraint>
+            <Principal Role="FmsWorkRequest">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="WorkRequestId" />
+            </Principal>
+            <Dependent Role="FmsWorkOrder">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="WorkRequestId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsWorkOrderToFacility__FmsWorkOrder">
+          <End Role="FmsWorkOrder" Type="Self.FmsWorkOrder" Multiplicity="1">
+            <OnDelete Action="Cascade" />
+          </End>
+          <End Role="FmsWorkOrderToFacility" Type="Self.FmsWorkOrderToFacility" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="FmsWorkOrder">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="WorkRequestId" />
+            </Principal>
+            <Dependent Role="FmsWorkOrderToFacility">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="WorkRequestId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsWorkRequest__CmBusinessField">
+          <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
+          <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmBusinessField">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="BusinessFieldId" />
+            </Principal>
+            <Dependent Role="FmsWorkRequest">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="BusinessFieldId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsWorkRequest__CmSite">
+          <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
+          <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmSite">
+              <PropertyRef Name="SiteId" />
+            </Principal>
+            <Dependent Role="FmsWorkRequest">
+              <PropertyRef Name="SiteId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsWorkRequest__CmUser_AsRequestUserId">
+          <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
+          <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmUser">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="UserId" />
+            </Principal>
+            <Dependent Role="FmsWorkRequest">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="RequestUserId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsWorkRequest__CmUser1_AsRejectUserId">
+          <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
+          <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmUser">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="UserId" />
+            </Principal>
+            <Dependent Role="FmsWorkRequest">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="RejectUserId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsWorkRequest__FmsWorkCodeProgress">
+          <End Role="FmsWorkCodeProgress" Type="Self.FmsWorkCodeProgress" Multiplicity="1" />
+          <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="FmsWorkCodeProgress">
+              <PropertyRef Name="WorkProgressId" />
+            </Principal>
+            <Dependent Role="FmsWorkRequest">
+              <PropertyRef Name="WorkProgressId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsWorkRequest__FmsWorkCodeWorkType">
+          <End Role="FmsWorkCodeType" Type="Self.FmsWorkCodeType" Multiplicity="1" />
+          <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="FmsWorkCodeType">
+              <PropertyRef Name="WorkTypeId" />
+            </Principal>
+            <Dependent Role="FmsWorkRequest">
+              <PropertyRef Name="WorkTypeId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsWorkRequest__FmsWorkSchedule">
+          <End Role="FmsWorkSchedule" Type="Self.FmsWorkSchedule" Multiplicity="0..1" />
+          <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="FmsWorkSchedule">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="WorkScheduleId" />
+            </Principal>
+            <Dependent Role="FmsWorkRequest">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="WorkScheduleId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsWorkRequestToFacility__FmsWorkRequest">
+          <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="1">
+            <OnDelete Action="Cascade" />
+          </End>
+          <End Role="FmsWorkRequestToFacility" Type="Self.FmsWorkRequestToFacility" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="FmsWorkRequest">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="WorkRequestId" />
+            </Principal>
+            <Dependent Role="FmsWorkRequestToFacility">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="WorkRequestId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsWorkResult__CmUser_AsWorkerUserId">
+          <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
+          <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmUser">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="UserId" />
+            </Principal>
+            <Dependent Role="FmsWorkResult">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="WorkerUserId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsWorkResult__CmUser1_AsConfirmedUserId">
+          <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
+          <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmUser">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="UserId" />
+            </Principal>
+            <Dependent Role="FmsWorkResult">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="ConfirmedUserId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsWorkResult__FmsWorkCodeCauseClass">
+          <End Role="FmsWorkCodeCauseClass" Type="Self.FmsWorkCodeCauseClass" Multiplicity="0..1" />
+          <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="FmsWorkCodeCauseClass">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="CauseClassId" />
+            </Principal>
+            <Dependent Role="FmsWorkResult">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="CauseClassId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsWorkResult__FmsWorkOrder">
+          <End Role="FmsWorkOrder" Type="Self.FmsWorkOrder" Multiplicity="1" />
+          <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="0..1" />
+          <ReferentialConstraint>
+            <Principal Role="FmsWorkOrder">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="WorkRequestId" />
+            </Principal>
+            <Dependent Role="FmsWorkResult">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="WorkRequestId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsWorkResult__FmsWorkRequest">
+          <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="1" />
+          <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="0..1" />
+          <ReferentialConstraint>
+            <Principal Role="FmsWorkRequest">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="WorkRequestId" />
+            </Principal>
+            <Dependent Role="FmsWorkResult">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="WorkRequestId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsWorkResultCheckItem__CmFacility">
+          <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="0..1" />
+          <End Role="FmsWorkResultCheckItem" Type="Self.FmsWorkResultCheckItem" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmFacility">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FacilityCode" />
+            </Principal>
+            <Dependent Role="FmsWorkResultCheckItem">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FacilityCode" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsWorkResultCheckItem__FmsFacilityCheckItem">
+          <End Role="FmsFacilityCheckItem" Type="Self.FmsFacilityCheckItem" Multiplicity="0..1" />
+          <End Role="FmsWorkResultCheckItem" Type="Self.FmsWorkResultCheckItem" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="FmsFacilityCheckItem">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FacilityCode" />
+              <PropertyRef Name="CheckItemId" />
+            </Principal>
+            <Dependent Role="FmsWorkResultCheckItem">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FacilityCode" />
+              <PropertyRef Name="CheckItemId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsWorkResultCheckItem__FmsWorkResult">
+          <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="1">
+            <OnDelete Action="Cascade" />
+          </End>
+          <End Role="FmsWorkResultCheckItem" Type="Self.FmsWorkResultCheckItem" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="FmsWorkResult">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="WorkRequestId" />
+            </Principal>
+            <Dependent Role="FmsWorkResultCheckItem">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="WorkRequestId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsWorkResultFile__CmFile">
+          <End Role="CmFile" Type="Self.CmFile" Multiplicity="1" />
+          <End Role="FmsWorkResultFile" Type="Self.FmsWorkResultFile" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmFile">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FileId" />
+            </Principal>
+            <Dependent Role="FmsWorkResultFile">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FileId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsWorkResultFile__FmsWorkResult">
+          <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="1" />
+          <End Role="FmsWorkResultFile" Type="Self.FmsWorkResultFile" Multiplicity="0..1" />
+          <ReferentialConstraint>
+            <Principal Role="FmsWorkResult">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="WorkRequestId" />
+            </Principal>
+            <Dependent Role="FmsWorkResultFile">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="WorkRequestId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsWorkResultLaw__FmsWorkResult">
+          <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="1" />
+          <End Role="FmsWorkResultLaw" Type="Self.FmsWorkResultLaw" Multiplicity="0..1" />
+          <ReferentialConstraint>
+            <Principal Role="FmsWorkResult">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="WorkRequestId" />
+            </Principal>
+            <Dependent Role="FmsWorkResultLaw">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="WorkRequestId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsWorkResultToFacility__CmFacility">
+          <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="1" />
+          <End Role="FmsWorkResultToFacility" Type="Self.FmsWorkResultToFacility" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmFacility">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FacilityCode" />
+            </Principal>
+            <Dependent Role="FmsWorkResultToFacility">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FacilityCode" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsWorkResultToFacility__FmsWorkOrder">
+          <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="1">
+            <OnDelete Action="Cascade" />
+          </End>
+          <End Role="FmsWorkResultToFacility" Type="Self.FmsWorkResultToFacility" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="FmsWorkResult">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="WorkRequestId" />
+            </Principal>
+            <Dependent Role="FmsWorkResultToFacility">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="WorkRequestId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsWorkSchedule__CmBusinessField">
+          <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
+          <End Role="FmsWorkSchedule" Type="Self.FmsWorkSchedule" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmBusinessField">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="BusinessFieldId" />
+            </Principal>
+            <Dependent Role="FmsWorkSchedule">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="BusinessFieldId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsWorkSchedule__CmUser">
+          <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
+          <End Role="FmsWorkSchedule" Type="Self.FmsWorkSchedule" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmUser">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="UserId" />
+            </Principal>
+            <Dependent Role="FmsWorkSchedule">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="UpdateUserId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsWorkSchedule__FmsWorkCodeCycleUnit">
+          <End Role="FmsWorkCodeCycleUnit" Type="Self.FmsWorkCodeCycleUnit" Multiplicity="1" />
+          <End Role="FmsWorkSchedule" Type="Self.FmsWorkSchedule" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="FmsWorkCodeCycleUnit">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="CycleUnitId" />
+            </Principal>
+            <Dependent Role="FmsWorkSchedule">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="CycleUnitId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsWorkSchedule__FmsWorkCodeHolidayWorkType">
+          <End Role="FmsWorkCodeHolidayWorkType" Type="Self.FmsWorkCodeHolidayWorkType" Multiplicity="1" />
+          <End Role="FmsWorkSchedule" Type="Self.FmsWorkSchedule" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="FmsWorkCodeHolidayWorkType">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="HolidayWorkTypeId" />
+            </Principal>
+            <Dependent Role="FmsWorkSchedule">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="HolidayWorkTypeId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsWorkSchedule__FmsWorkCodeWorkType">
+          <End Role="FmsWorkCodeType" Type="Self.FmsWorkCodeType" Multiplicity="1" />
+          <End Role="FmsWorkSchedule" Type="Self.FmsWorkSchedule" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="FmsWorkCodeType">
+              <PropertyRef Name="WorkTypeId" />
+            </Principal>
+            <Dependent Role="FmsWorkSchedule">
+              <PropertyRef Name="WorkTypeId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsWorkScheduleToFacility__FmsWorkSchedule">
+          <End Role="FmsWorkSchedule" Type="Self.FmsWorkSchedule" Multiplicity="1" />
+          <End Role="FmsWorkScheduleToFacility" Type="Self.FmsWorkScheduleToFacility" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="FmsWorkSchedule">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="WorkScheduleId" />
+            </Principal>
+            <Dependent Role="FmsWorkScheduleToFacility">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="WorkScheduleId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_BemsAlarmLog_BemsAlarmSetting">
+          <End Role="BemsAlarmSetting" Type="Self.BemsAlarmSetting" Multiplicity="1" />
+          <End Role="BemsAlarmLog" Type="Self.BemsAlarmLog" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="BemsAlarmSetting">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FacilityTypeId" />
+              <PropertyRef Name="FacilityCode" />
+              <PropertyRef Name="PropertyId" />
+              <PropertyRef Name="FormulaId" />
+            </Principal>
+            <Dependent Role="BemsAlarmLog">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FacilityTypeId" />
+              <PropertyRef Name="FacilityCode" />
+              <PropertyRef Name="PropertyId" />
+              <PropertyRef Name="FormulaId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_BemsAlarmSetting_BemsFacilityType">
+          <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
+          <End Role="BemsAlarmSetting" Type="Self.BemsAlarmSetting" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="BemsFacilityType">
+              <PropertyRef Name="FacilityTypeId" />
+            </Principal>
+            <Dependent Role="BemsAlarmSetting">
+              <PropertyRef Name="FacilityTypeId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_BemsAlarmSetting_CmFacility">
+          <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="1" />
+          <End Role="BemsAlarmSetting" Type="Self.BemsAlarmSetting" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmFacility">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FacilityCode" />
+            </Principal>
+            <Dependent Role="BemsAlarmSetting">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FacilityCode" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_BemsAlarmSetting_CmSite1">
+          <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
+          <End Role="BemsAlarmSetting" Type="Self.BemsAlarmSetting" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmSite">
+              <PropertyRef Name="SiteId" />
+            </Principal>
+            <Dependent Role="BemsAlarmSetting">
+              <PropertyRef Name="SiteId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_BemsChartInfo_BemsFacilityType">
+          <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
+          <End Role="BemsChartInfo" Type="Self.BemsChartInfo" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="BemsFacilityType">
+              <PropertyRef Name="FacilityTypeId" />
+            </Principal>
+            <Dependent Role="BemsChartInfo">
+              <PropertyRef Name="FacilityTypeId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_BemsChartInfo_CmSite">
+          <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
+          <End Role="BemsChartInfo" Type="Self.BemsChartInfo" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmSite">
+              <PropertyRef Name="SiteId" />
+            </Principal>
+            <Dependent Role="BemsChartInfo">
+              <PropertyRef Name="SiteId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_BemsControlPointHistory_BemsFacilityType">
+          <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
+          <End Role="BemsControlPointHistory" Type="Self.BemsControlPointHistory" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="BemsFacilityType">
+              <PropertyRef Name="FacilityTypeId" />
+            </Principal>
+            <Dependent Role="BemsControlPointHistory">
+              <PropertyRef Name="FacilityTypeId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_BemsControlPointHistory_BemsMonitoringPoint">
+          <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="1" />
+          <End Role="BemsControlPointHistory" Type="Self.BemsControlPointHistory" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="BemsMonitoringPoint">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FacilityCode" />
+              <PropertyRef Name="PropertyId" />
+            </Principal>
+            <Dependent Role="BemsControlPointHistory">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FacilityCode" />
+              <PropertyRef Name="PropertyId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_BemsEnergyCost_CmFacility">
+          <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="1" />
+          <End Role="BemsEnergyCost" Type="Self.BemsEnergyCost" Multiplicity="0..1" />
+          <ReferentialConstraint>
+            <Principal Role="CmFacility">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FacilityCode" />
+            </Principal>
+            <Dependent Role="BemsEnergyCost">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FacilityCode" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_BemsEnergyDailyRegression_CmSite">
+          <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
+          <End Role="BemsEnergyDailyRegression" Type="Self.BemsEnergyDailyRegression" Multiplicity="0..1" />
+          <ReferentialConstraint>
+            <Principal Role="CmSite">
+              <PropertyRef Name="SiteId" />
+            </Principal>
+            <Dependent Role="BemsEnergyDailyRegression">
+              <PropertyRef Name="SiteId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_BemsFormulaParameter_CmFacility">
+          <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="1" />
+          <End Role="BemsFormulaParameter" Type="Self.BemsFormulaParameter" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmFacility">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FacilityCode" />
+            </Principal>
+            <Dependent Role="BemsFormulaParameter">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FacilityCode" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_BemsMonitoringPoint_BemsFacilityType">
+          <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
+          <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="BemsFacilityType">
+              <PropertyRef Name="FacilityTypeId" />
+            </Principal>
+            <Dependent Role="BemsMonitoringPoint">
+              <PropertyRef Name="FacilityTypeId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_BemsMonitoringPoint_CmFacility">
+          <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="1" />
+          <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmFacility">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FacilityCode" />
+            </Principal>
+            <Dependent Role="BemsMonitoringPoint">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FacilityCode" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_BemsMonitoringPointConfig_BemsFacilityType1">
+          <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
+          <End Role="BemsMonitoringPointConfig" Type="Self.BemsMonitoringPointConfig" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="BemsFacilityType">
+              <PropertyRef Name="FacilityTypeId" />
+            </Principal>
+            <Dependent Role="BemsMonitoringPointConfig">
+              <PropertyRef Name="FacilityTypeId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_BemsMonitoringPointConfig_BemsMonitoringPoint">
+          <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="1" />
+          <End Role="BemsMonitoringPointConfig" Type="Self.BemsMonitoringPointConfig" Multiplicity="0..1" />
+          <ReferentialConstraint>
+            <Principal Role="BemsMonitoringPoint">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FacilityCode" />
+              <PropertyRef Name="PropertyId" />
+            </Principal>
+            <Dependent Role="BemsMonitoringPointConfig">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FacilityCode" />
+              <PropertyRef Name="PropertyId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_BemsPeakFacility_CmFacility">
+          <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="1" />
+          <End Role="BemsPeakFacility" Type="Self.BemsPeakFacility" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmFacility">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FacilityCode" />
+            </Principal>
+            <Dependent Role="BemsPeakFacility">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FacilityCode" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_BemsPeakHIstory_CmSite">
+          <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
+          <End Role="BemsPeakHistory" Type="Self.BemsPeakHistory" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmSite">
+              <PropertyRef Name="SiteId" />
+            </Principal>
+            <Dependent Role="BemsPeakHistory">
+              <PropertyRef Name="SiteId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_BemsPeakInfo_CmSite">
+          <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
+          <End Role="BemsPeakInfo" Type="Self.BemsPeakInfo" Multiplicity="0..1" />
+          <ReferentialConstraint>
+            <Principal Role="CmSite">
+              <PropertyRef Name="SiteId" />
+            </Principal>
+            <Dependent Role="BemsPeakInfo">
+              <PropertyRef Name="SiteId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_BemsPeopleIncrease_CmSite">
+          <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
+          <End Role="BemsPeopleIncrease" Type="Self.BemsPeopleIncrease" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmSite">
+              <PropertyRef Name="SiteId" />
+            </Principal>
+            <Dependent Role="BemsPeopleIncrease">
+              <PropertyRef Name="SiteId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_BemsPriceCode_BemsFuelType">
+          <End Role="BemsFuelType" Type="Self.BemsFuelType" Multiplicity="1" />
+          <End Role="BemsPriceCode" Type="Self.BemsPriceCode" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="BemsFuelType">
+              <PropertyRef Name="FuelTypeId" />
+            </Principal>
+            <Dependent Role="BemsPriceCode">
+              <PropertyRef Name="FuelTypeId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_BemsPriceFormula_BemsFormula">
+          <End Role="BemsFormula" Type="Self.BemsFormula" Multiplicity="1" />
+          <End Role="BemsPriceFormula" Type="Self.BemsPriceFormula" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="BemsFormula">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FacilityTypeId" />
+              <PropertyRef Name="FacilityCode" />
+              <PropertyRef Name="FormulaId" />
+            </Principal>
+            <Dependent Role="BemsPriceFormula">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FacilityTypeId" />
+              <PropertyRef Name="FacilityCode" />
+              <PropertyRef Name="FormulaId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_BemsPriceFormula_BemsPriceType">
+          <End Role="BemsPriceType" Type="Self.BemsPriceType" Multiplicity="1" />
+          <End Role="BemsPriceFormula" Type="Self.BemsPriceFormula" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="BemsPriceType">
+              <PropertyRef Name="PriceTypeId" />
+            </Principal>
+            <Dependent Role="BemsPriceFormula">
+              <PropertyRef Name="PriceTypeId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_BemsPriceMeta_BemsPriceType">
+          <End Role="BemsPriceType" Type="Self.BemsPriceType" Multiplicity="1" />
+          <End Role="BemsPriceMeta" Type="Self.BemsPriceMeta" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="BemsPriceType">
+              <PropertyRef Name="PriceTypeId" />
+            </Principal>
+            <Dependent Role="BemsPriceMeta">
+              <PropertyRef Name="PriceTypeId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_BemsPriceType_BemsFuelType1">
+          <End Role="BemsFuelType" Type="Self.BemsFuelType" Multiplicity="1" />
+          <End Role="BemsPriceType" Type="Self.BemsPriceType" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="BemsFuelType">
+              <PropertyRef Name="FuelTypeId" />
+            </Principal>
+            <Dependent Role="BemsPriceType">
+              <PropertyRef Name="FuelTypeId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_BemsRentalRate_CmSite">
+          <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
+          <End Role="BemsRentalRate" Type="Self.BemsRentalRate" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmSite">
+              <PropertyRef Name="SiteId" />
+            </Principal>
+            <Dependent Role="BemsRentalRate">
+              <PropertyRef Name="SiteId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_BemsSitePrice_BemsFuelType">
+          <End Role="BemsFuelType" Type="Self.BemsFuelType" Multiplicity="1" />
+          <End Role="BemsSitePrice" Type="Self.BemsSitePrice" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="BemsFuelType">
+              <PropertyRef Name="FuelTypeId" />
+            </Principal>
+            <Dependent Role="BemsSitePrice">
+              <PropertyRef Name="FuelTypeId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_BemsSitePrice_BemsPriceCode">
+          <End Role="BemsPriceCode" Type="Self.BemsPriceCode" Multiplicity="1" />
+          <End Role="BemsSitePrice" Type="Self.BemsSitePrice" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="BemsPriceCode">
+              <PropertyRef Name="PriceCode" />
+            </Principal>
+            <Dependent Role="BemsSitePrice">
+              <PropertyRef Name="PriceCode" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_BemsSitePrice_BemsPriceType">
+          <End Role="BemsPriceType" Type="Self.BemsPriceType" Multiplicity="1" />
+          <End Role="BemsSitePrice" Type="Self.BemsSitePrice" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="BemsPriceType">
+              <PropertyRef Name="PriceTypeId" />
+            </Principal>
+            <Dependent Role="BemsSitePrice">
+              <PropertyRef Name="PriceTypeId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_BemsSitePrice_CmSite1">
+          <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
+          <End Role="BemsSitePrice" Type="Self.BemsSitePrice" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmSite">
+              <PropertyRef Name="SiteId" />
+            </Principal>
+            <Dependent Role="BemsSitePrice">
+              <PropertyRef Name="SiteID" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_BemsSitePriceHistory_BemsFuelType">
+          <End Role="BemsFuelType" Type="Self.BemsFuelType" Multiplicity="1" />
+          <End Role="BemsSitePriceHistory" Type="Self.BemsSitePriceHistory" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="BemsFuelType">
+              <PropertyRef Name="FuelTypeId" />
+            </Principal>
+            <Dependent Role="BemsSitePriceHistory">
+              <PropertyRef Name="FuelTypeId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_BemsSitePriceHistory_BemsPriceCode">
+          <End Role="BemsPriceCode" Type="Self.BemsPriceCode" Multiplicity="1" />
+          <End Role="BemsSitePriceHistory" Type="Self.BemsSitePriceHistory" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="BemsPriceCode">
+              <PropertyRef Name="PriceCode" />
+            </Principal>
+            <Dependent Role="BemsSitePriceHistory">
+              <PropertyRef Name="PriceCode" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_BemsSitePriceHistory_BemsPriceType">
+          <End Role="BemsPriceType" Type="Self.BemsPriceType" Multiplicity="1" />
+          <End Role="BemsSitePriceHistory" Type="Self.BemsSitePriceHistory" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="BemsPriceType">
+              <PropertyRef Name="PriceTypeId" />
+            </Principal>
+            <Dependent Role="BemsSitePriceHistory">
+              <PropertyRef Name="PriceTypeId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_BemsSitePriceHistory_CmSite">
+          <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
+          <End Role="BemsSitePriceHistory" Type="Self.BemsSitePriceHistory" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmSite">
+              <PropertyRef Name="SiteId" />
+            </Principal>
+            <Dependent Role="BemsSitePriceHistory">
+              <PropertyRef Name="SiteId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_CmAnnouncement_CmBusinessField">
+          <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
+          <End Role="CmAnnouncement" Type="Self.CmAnnouncement" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmBusinessField">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="BusinessFieldId" />
+            </Principal>
+            <Dependent Role="CmAnnouncement">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="BusinessFieldId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_CmAnnouncement_CmFile">
+          <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
+          <End Role="CmAnnouncement" Type="Self.CmAnnouncement" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmFile">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FileId" />
+            </Principal>
+            <Dependent Role="CmAnnouncement">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FileId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_CmAnnouncement_CmUser">
+          <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
+          <End Role="CmAnnouncement" Type="Self.CmAnnouncement" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmUser">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="UserId" />
+            </Principal>
+            <Dependent Role="CmAnnouncement">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="RegisterUserId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_CmFacilityTempSet_CmFacility">
+          <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="1" />
+          <End Role="CmFacilityTempSet" Type="Self.CmFacilityTempSet" Multiplicity="0..1" />
+          <ReferentialConstraint>
+            <Principal Role="CmFacility">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FacilityCode" />
+            </Principal>
+            <Dependent Role="CmFacilityTempSet">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FacilityCode" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_CmFacilityTempSet_CmSite">
+          <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
+          <End Role="CmFacilityTempSet" Type="Self.CmFacilityTempSet" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmSite">
+              <PropertyRef Name="SiteId" />
+            </Principal>
+            <Dependent Role="CmFacilityTempSet">
+              <PropertyRef Name="SiteId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_CmMenu_CmSite">
+          <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
+          <End Role="CmMenu" Type="Self.CmMenu" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmSite">
+              <PropertyRef Name="SiteId" />
+            </Principal>
+            <Dependent Role="CmMenu">
+              <PropertyRef Name="SiteId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_CmPartnerType_CmPartner">
+          <End Role="CmPartnerType" Type="Self.CmPartnerType" Multiplicity="1" />
+          <End Role="CmPartner" Type="Self.CmPartner" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmPartnerType">
+              <PropertyRef Name="PartnerTypeId" />
+            </Principal>
+            <Dependent Role="CmPartner">
+              <PropertyRef Name="PartnerTypeId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_CmPatrolCourse_CmSite">
+          <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
+          <End Role="CmPatrolCourse" Type="Self.CmPatrolCourse" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmSite">
+              <PropertyRef Name="SiteId" />
+            </Principal>
+            <Dependent Role="CmPatrolCourse">
+              <PropertyRef Name="SiteId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_CmPatrolCoursePos_CmPatrolCourse">
+          <End Role="CmPatrolCourse" Type="Self.CmPatrolCourse" Multiplicity="1" />
+          <End Role="CmPatrolCoursePos" Type="Self.CmPatrolCoursePos" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmPatrolCourse">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="PatrolCourseId" />
+            </Principal>
+            <Dependent Role="CmPatrolCoursePos">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="PatrolCourseId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_CmPatrolCoursePos_CmSite">
+          <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
+          <End Role="CmPatrolCoursePos" Type="Self.CmPatrolCoursePos" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmSite">
+              <PropertyRef Name="SiteId" />
+            </Principal>
+            <Dependent Role="CmPatrolCoursePos">
+              <PropertyRef Name="SiteId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_CmPatrolGroup_CmSite">
+          <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
+          <End Role="CmPatrolGroup" Type="Self.CmPatrolGroup" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmSite">
+              <PropertyRef Name="SiteId" />
+            </Principal>
+            <Dependent Role="CmPatrolGroup">
+              <PropertyRef Name="SiteId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_CmPatrolGroupUser_CmPatrolGroup">
+          <End Role="CmPatrolGroup" Type="Self.CmPatrolGroup" Multiplicity="1" />
+          <End Role="CmPatrolGroupUser" Type="Self.CmPatrolGroupUser" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmPatrolGroup">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="PatrolGroupId" />
+            </Principal>
+            <Dependent Role="CmPatrolGroupUser">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="PatrolGroupId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_CmPatrolGroupUser_CmUser">
+          <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
+          <End Role="CmPatrolGroupUser" Type="Self.CmPatrolGroupUser" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmUser">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="UserId" />
+            </Principal>
+            <Dependent Role="CmPatrolGroupUser">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="UserId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_CmPatrolHistory_CmPatrolSchedule">
+          <End Role="CmPatrolSchedule" Type="Self.CmPatrolSchedule" Multiplicity="1" />
+          <End Role="CmPatrolHistory" Type="Self.CmPatrolHistory" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmPatrolSchedule">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="ScheduleId" />
+            </Principal>
+            <Dependent Role="CmPatrolHistory">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="ScheduleId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_CmPatrolHistory_CmPatrolType">
+          <End Role="CmPatrolType" Type="Self.CmPatrolType" Multiplicity="1" />
+          <End Role="CmPatrolHistory" Type="Self.CmPatrolHistory" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmPatrolType">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="PatrolTypeId" />
+            </Principal>
+            <Dependent Role="CmPatrolHistory">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="resultTypeId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_CmPatrolHistory_CmSite">
+          <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
+          <End Role="CmPatrolHistory" Type="Self.CmPatrolHistory" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmSite">
+              <PropertyRef Name="SiteId" />
+            </Principal>
+            <Dependent Role="CmPatrolHistory">
+              <PropertyRef Name="SiteId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_CmPatrolHistoryPos_CmPatrolPos">
+          <End Role="CmPatrolPos" Type="Self.CmPatrolPos" Multiplicity="1" />
+          <End Role="CmPatrolHistoryPos" Type="Self.CmPatrolHistoryPos" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmPatrolPos">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="PosId" />
+            </Principal>
+            <Dependent Role="CmPatrolHistoryPos">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="PosId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_CmPatrolHistoryPos_CmPatrolType">
+          <End Role="CmPatrolType" Type="Self.CmPatrolType" Multiplicity="1" />
+          <End Role="CmPatrolHistoryPos" Type="Self.CmPatrolHistoryPos" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmPatrolType">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="PatrolTypeId" />
+            </Principal>
+            <Dependent Role="CmPatrolHistoryPos">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="resultType" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_CmPatrolHistoryPos_CmSite">
+          <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
+          <End Role="CmPatrolHistoryPos" Type="Self.CmPatrolHistoryPos" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmSite">
+              <PropertyRef Name="SiteId" />
+            </Principal>
+            <Dependent Role="CmPatrolHistoryPos">
+              <PropertyRef Name="SiteId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_CmPatrolPlan_CmPatrolCourse">
+          <End Role="CmPatrolCourse" Type="Self.CmPatrolCourse" Multiplicity="1" />
+          <End Role="CmPatrolPlan" Type="Self.CmPatrolPlan" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmPatrolCourse">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="PatrolCourseId" />
+            </Principal>
+            <Dependent Role="CmPatrolPlan">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="CourseId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_CmPatrolPlan_CmPatrolGroup">
+          <End Role="CmPatrolGroup" Type="Self.CmPatrolGroup" Multiplicity="1" />
+          <End Role="CmPatrolPlan" Type="Self.CmPatrolPlan" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmPatrolGroup">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="PatrolGroupId" />
+            </Principal>
+            <Dependent Role="CmPatrolPlan">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="GroupId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_CmPatrolPlan_CmSite">
+          <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
+          <End Role="CmPatrolPlan" Type="Self.CmPatrolPlan" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmSite">
+              <PropertyRef Name="SiteId" />
+            </Principal>
+            <Dependent Role="CmPatrolPlan">
+              <PropertyRef Name="SiteId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_CmPatrolPos_CmBuilding">
+          <End Role="CmBuilding" Type="Self.CmBuilding" Multiplicity="1" />
+          <End Role="CmPatrolPos" Type="Self.CmPatrolPos" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmBuilding">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="BuildingId" />
+            </Principal>
+            <Dependent Role="CmPatrolPos">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="BuildingId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_CmPatrolPos_CmFloor">
+          <End Role="CmFloor" Type="Self.CmFloor" Multiplicity="1" />
+          <End Role="CmPatrolPos" Type="Self.CmPatrolPos" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmFloor">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="BuildingId" />
+              <PropertyRef Name="FloorId" />
+            </Principal>
+            <Dependent Role="CmPatrolPos">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="BuildingId" />
+              <PropertyRef Name="FloorId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_CmPatrolPos_CmSite">
+          <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
+          <End Role="CmPatrolPos" Type="Self.CmPatrolPos" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmSite">
+              <PropertyRef Name="SiteId" />
+            </Principal>
+            <Dependent Role="CmPatrolPos">
+              <PropertyRef Name="SiteId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_CmPatrolSchedule_CmPatrolPlan">
+          <End Role="CmPatrolPlan" Type="Self.CmPatrolPlan" Multiplicity="1" />
+          <End Role="CmPatrolSchedule" Type="Self.CmPatrolSchedule" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmPatrolPlan">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="PatrolPlanId" />
+            </Principal>
+            <Dependent Role="CmPatrolSchedule">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="PlanId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_CmPatrolSchedule_CmSite">
+          <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
+          <End Role="CmPatrolSchedule" Type="Self.CmPatrolSchedule" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmSite">
+              <PropertyRef Name="SiteId" />
+            </Principal>
+            <Dependent Role="CmPatrolSchedule">
+              <PropertyRef Name="SiteId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_CmPatrolType_CmSite">
+          <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
+          <End Role="CmPatrolType" Type="Self.CmPatrolType" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmSite">
+              <PropertyRef Name="SiteId" />
+            </Principal>
+            <Dependent Role="CmPatrolType">
+              <PropertyRef Name="SiteId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_CmUser_CmBusinessField">
+          <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="0..1" />
+          <End Role="CmUser" Type="Self.CmUser" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmBusinessField">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="BusinessFieldId" />
+            </Principal>
+            <Dependent Role="CmUser">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="BusinessFieldId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_CmUser_CmCompany">
+          <End Role="CmCompany" Type="Self.CmCompany" Multiplicity="0..1" />
+          <End Role="CmUser" Type="Self.CmUser" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmCompany">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="CompanyId" />
+            </Principal>
+            <Dependent Role="CmUser">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="CompanyId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_CmUser_CmDepartment">
+          <End Role="CmDepartment" Type="Self.CmDepartment" Multiplicity="0..1" />
+          <End Role="CmUser" Type="Self.CmUser" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmDepartment">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="CompanyId" />
+              <PropertyRef Name="DepartmentId" />
+            </Principal>
+            <Dependent Role="CmUser">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="CompanyId" />
+              <PropertyRef Name="DepartmentId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_CmUser_CmPosition">
+          <End Role="CmPosition" Type="Self.CmPosition" Multiplicity="0..1" />
+          <End Role="CmUser" Type="Self.CmUser" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmPosition">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="PositionId" />
+            </Principal>
+            <Dependent Role="CmUser">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="PositionId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_CmUser_CmUserGroup">
+          <End Role="CmUserGroup" Type="Self.CmUserGroup" Multiplicity="0..1" />
+          <End Role="CmUser" Type="Self.CmUser" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmUserGroup">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="UserGroupId" />
+            </Principal>
+            <Dependent Role="CmUser">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="UserGroupId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_CmUserLoginHistory_CmUser">
+          <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
+          <End Role="CmUserLoginHistory" Type="Self.CmUserLoginHistory" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmUser">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="UserId" />
+            </Principal>
+            <Dependent Role="CmUserLoginHistory">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="UserId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_CmZoneTempHumiSet_CmBuilding">
+          <End Role="CmBuilding" Type="Self.CmBuilding" Multiplicity="1" />
+          <End Role="CmZoneTempHumiSet" Type="Self.CmZoneTempHumiSet" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmBuilding">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="BuildingId" />
+            </Principal>
+            <Dependent Role="CmZoneTempHumiSet">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="BuildingId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_CmZoneTempHumiSet_CmFloor">
+          <End Role="CmFloor" Type="Self.CmFloor" Multiplicity="1" />
+          <End Role="CmZoneTempHumiSet" Type="Self.CmZoneTempHumiSet" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmFloor">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="BuildingId" />
+              <PropertyRef Name="FloorId" />
+            </Principal>
+            <Dependent Role="CmZoneTempHumiSet">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="BuildingId" />
+              <PropertyRef Name="FloorId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_CmZoneTempHumiSet_CmSite">
+          <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
+          <End Role="CmZoneTempHumiSet" Type="Self.CmZoneTempHumiSet" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmSite">
+              <PropertyRef Name="SiteId" />
+            </Principal>
+            <Dependent Role="CmZoneTempHumiSet">
+              <PropertyRef Name="SiteId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_CmZoneTempHumiSet_CmZone">
+          <End Role="CmZone" Type="Self.CmZone" Multiplicity="1" />
+          <End Role="CmZoneTempHumiSet" Type="Self.CmZoneTempHumiSet" Multiplicity="0..1" />
+          <ReferentialConstraint>
+            <Principal Role="CmZone">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="BuildingId" />
+              <PropertyRef Name="FloorId" />
+              <PropertyRef Name="ZoneId" />
+            </Principal>
+            <Dependent Role="CmZoneTempHumiSet">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="BuildingId" />
+              <PropertyRef Name="FloorId" />
+              <PropertyRef Name="ZoneId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsAccident_CmCompany">
+          <End Role="CmCompany" Type="Self.CmCompany" Multiplicity="0..1" />
+          <End Role="FmsAccident" Type="Self.FmsAccident" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmCompany">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="CompanyId" />
+            </Principal>
+            <Dependent Role="FmsAccident">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="CompanyId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsAccident_CmDepartment">
+          <End Role="CmDepartment" Type="Self.CmDepartment" Multiplicity="0..1" />
+          <End Role="FmsAccident" Type="Self.FmsAccident" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmDepartment">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="CompanyId" />
+              <PropertyRef Name="DepartmentId" />
+            </Principal>
+            <Dependent Role="FmsAccident">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="CompanyId" />
+              <PropertyRef Name="DepartmentId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsAccident_CmFile1">
+          <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
+          <End Role="FmsAccident" Type="Self.FmsAccident" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmFile">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FileId" />
+            </Principal>
+            <Dependent Role="FmsAccident">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FileId1" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsAccident_CmFile2">
+          <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
+          <End Role="FmsAccident" Type="Self.FmsAccident" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmFile">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FileId" />
+            </Principal>
+            <Dependent Role="FmsAccident">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FileId2" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsAccident_CmFile3">
+          <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
+          <End Role="FmsAccident" Type="Self.FmsAccident" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmFile">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FileId" />
+            </Principal>
+            <Dependent Role="FmsAccident">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FileId3" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsAccident_FmsAccidentCodeType">
+          <End Role="FmsAccidentCodeType" Type="Self.FmsAccidentCodeType" Multiplicity="1" />
+          <End Role="FmsAccident" Type="Self.FmsAccident" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="FmsAccidentCodeType">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="AccidentTypeId" />
+            </Principal>
+            <Dependent Role="FmsAccident">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="AccidentTypeId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsBudgetDetail_FmsBudget">
+          <End Role="FmsBudget" Type="Self.FmsBudget" Multiplicity="1">
+            <OnDelete Action="Cascade" />
+          </End>
+          <End Role="FmsBudgetDetail" Type="Self.FmsBudgetDetail" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="FmsBudget">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="Year" />
+            </Principal>
+            <Dependent Role="FmsBudgetDetail">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="Year" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsBudgetDetail_FmsBudgetCodeClass">
+          <End Role="FmsBudgetCodeClass" Type="Self.FmsBudgetCodeClass" Multiplicity="1" />
+          <End Role="FmsBudgetDetail" Type="Self.FmsBudgetDetail" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="FmsBudgetCodeClass">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="BudgetClassId" />
+            </Principal>
+            <Dependent Role="FmsBudgetDetail">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="BudgetClassId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsBudgetDetailExecution_FmsBudgetDetail">
+          <End Role="FmsBudgetDetail" Type="Self.FmsBudgetDetail" Multiplicity="1" />
+          <End Role="FmsBudgetDetailExecution" Type="Self.FmsBudgetDetailExecution" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="FmsBudgetDetail">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="Year" />
+              <PropertyRef Name="BudgetClassId" />
+              <PropertyRef Name="ParentBudgetClassId" />
+            </Principal>
+            <Dependent Role="FmsBudgetDetailExecution">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="Year" />
+              <PropertyRef Name="BudgetClassId" />
+              <PropertyRef Name="ParentBudgetClassId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsConstruction_CmFile1">
+          <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
+          <End Role="FmsConstruction" Type="Self.FmsConstruction" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmFile">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FileId" />
+            </Principal>
+            <Dependent Role="FmsConstruction">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FileId1" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsConstruction_CmFile2">
+          <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
+          <End Role="FmsConstruction" Type="Self.FmsConstruction" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmFile">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FileId" />
+            </Principal>
+            <Dependent Role="FmsConstruction">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FileId2" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsConstruction_CmFile3">
+          <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
+          <End Role="FmsConstruction" Type="Self.FmsConstruction" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmFile">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FileId" />
+            </Principal>
+            <Dependent Role="FmsConstruction">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FileId3" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsConstruction_CmPartner">
+          <End Role="CmPartner" Type="Self.CmPartner" Multiplicity="1" />
+          <End Role="FmsConstruction" Type="Self.FmsConstruction" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmPartner">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="PartnerId" />
+            </Principal>
+            <Dependent Role="FmsConstruction">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="PartnerId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsConstruction_FmsConstructionCodeProgress">
+          <End Role="FmsConstructionCodeProgress" Type="Self.FmsConstructionCodeProgress" Multiplicity="1" />
+          <End Role="FmsConstruction" Type="Self.FmsConstruction" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="FmsConstructionCodeProgress">
+              <PropertyRef Name="ProgressId" />
+            </Principal>
+            <Dependent Role="FmsConstruction">
+              <PropertyRef Name="ProgressId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsConstruction_FmsConstructionCodeType">
+          <End Role="FmsConstructionCodeType" Type="Self.FmsConstructionCodeType" Multiplicity="1" />
+          <End Role="FmsConstruction" Type="Self.FmsConstruction" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="FmsConstructionCodeType">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="ConstructionTypeId" />
+            </Principal>
+            <Dependent Role="FmsConstruction">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="ConstructionTypeId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsConstructionEstimation_CmUser">
+          <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
+          <End Role="FmsConstructionEstimation" Type="Self.FmsConstructionEstimation" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmUser">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="UserId" />
+            </Principal>
+            <Dependent Role="FmsConstructionEstimation">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="EstimateUserId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsConstructionEstimation_FmsConstruction">
+          <End Role="FmsConstruction" Type="Self.FmsConstruction" Multiplicity="1" />
+          <End Role="FmsConstructionEstimation" Type="Self.FmsConstructionEstimation" Multiplicity="0..1" />
+          <ReferentialConstraint>
+            <Principal Role="FmsConstruction">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="ConstructionId" />
+            </Principal>
+            <Dependent Role="FmsConstructionEstimation">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="ConstructionId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsContract_CmPartner">
+          <End Role="CmPartner" Type="Self.CmPartner" Multiplicity="0..1" />
+          <End Role="FmsContract" Type="Self.FmsContract" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmPartner">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="PartnerId" />
+            </Principal>
+            <Dependent Role="FmsContract">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="PartnerId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsContract_CmPartnerType">
+          <End Role="CmPartnerType" Type="Self.CmPartnerType" Multiplicity="0..1" />
+          <End Role="FmsContract" Type="Self.FmsContract" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmPartnerType">
+              <PropertyRef Name="PartnerTypeId" />
+            </Principal>
+            <Dependent Role="FmsContract">
+              <PropertyRef Name="PartnerTypeId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsContract_FmsContractClass">
+          <End Role="FmsContractClass" Type="Self.FmsContractClass" Multiplicity="0..1" />
+          <End Role="FmsContract" Type="Self.FmsContract" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="FmsContractClass">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="ContractClassId" />
+            </Principal>
+            <Dependent Role="FmsContract">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="ContractClassId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsContract_FmsContractMethod">
+          <End Role="FmsContractMethod" Type="Self.FmsContractMethod" Multiplicity="0..1" />
+          <End Role="FmsContract" Type="Self.FmsContract" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="FmsContractMethod">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="ContractMethodId" />
+            </Principal>
+            <Dependent Role="FmsContract">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="ContractMethodId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsContract_FmsContractType">
+          <End Role="FmsContractType" Type="Self.FmsContractType" Multiplicity="0..1" />
+          <End Role="FmsContract" Type="Self.FmsContract" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="FmsContractType">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="ContractTypeId" />
+            </Principal>
+            <Dependent Role="FmsContract">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="ContractTypeId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsContract_FmsPaymentType">
+          <End Role="FmsPaymentType" Type="Self.FmsPaymentType" Multiplicity="0..1" />
+          <End Role="FmsContract" Type="Self.FmsContract" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="FmsPaymentType">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="PaymentTypeId" />
+            </Principal>
+            <Dependent Role="FmsContract">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="PartnerTypeId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsDailyCheckReport_CmUser">
+          <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
+          <End Role="FmsDailyCheckReport" Type="Self.FmsDailyCheckReport" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmUser">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="UserId" />
+            </Principal>
+            <Dependent Role="FmsDailyCheckReport">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="RegisterUserId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsDailyReport_CmBusinessField">
+          <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
+          <End Role="FmsDailyReport" Type="Self.FmsDailyReport" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmBusinessField">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="BusinessFieldId" />
+            </Principal>
+            <Dependent Role="FmsDailyReport">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="BusinessFieldId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsDailyReport_CmUser">
+          <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
+          <End Role="FmsDailyReport" Type="Self.FmsDailyReport" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmUser">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="UserId" />
+            </Principal>
+            <Dependent Role="FmsDailyReport">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="RegisterUserId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsEquipment_CmUser">
+          <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
+          <End Role="FmsEquipment" Type="Self.FmsEquipment" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmUser">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="UserId" />
+            </Principal>
+            <Dependent Role="FmsEquipment">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="RegisterUserId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsEquipment_FmsEquipmentCodeType">
+          <End Role="FmsEquipmentCodeType" Type="Self.FmsEquipmentCodeType" Multiplicity="1" />
+          <End Role="FmsEquipment" Type="Self.FmsEquipment" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="FmsEquipmentCodeType">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="EquipmentTypeId" />
+            </Principal>
+            <Dependent Role="FmsEquipment">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="EquipmentTypeId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsEquipment_FmsMaterialWarehouse">
+          <End Role="FmsMaterialWarehouse" Type="Self.FmsMaterialWarehouse" Multiplicity="0..1" />
+          <End Role="FmsEquipment" Type="Self.FmsEquipment" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="FmsMaterialWarehouse">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="WarehouseId" />
+            </Principal>
+            <Dependent Role="FmsEquipment">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="WarehouseId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsEquipmentHistory_FmsEquipment">
+          <End Role="FmsEquipment" Type="Self.FmsEquipment" Multiplicity="1" />
+          <End Role="FmsEquipmentHistory" Type="Self.FmsEquipmentHistory" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="FmsEquipment">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="EquipmentId" />
+            </Principal>
+            <Dependent Role="FmsEquipmentHistory">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="EquipmentId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsEquipmentHistory_FmsEquipmentCodeStateType">
+          <End Role="FmsEquipmentCodeStateType" Type="Self.FmsEquipmentCodeStateType" Multiplicity="0..1" />
+          <End Role="FmsEquipmentHistory" Type="Self.FmsEquipmentHistory" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="FmsEquipmentCodeStateType">
+              <PropertyRef Name="EquipmentStateTypeId" />
+            </Principal>
+            <Dependent Role="FmsEquipmentHistory">
+              <PropertyRef Name="EquipmentStateTypeId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsEquipmentHistory_FmsEquipmentRentInfo">
+          <End Role="FmsEquipmentRentInfo" Type="Self.FmsEquipmentRentInfo" Multiplicity="0..1">
+            <OnDelete Action="Cascade" />
+          </End>
+          <End Role="FmsEquipmentHistory" Type="Self.FmsEquipmentHistory" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="FmsEquipmentRentInfo">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="EquipmentRentId" />
+            </Principal>
+            <Dependent Role="FmsEquipmentHistory">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="EquipmentRentId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsEquipmentRentInfo_CmUser">
+          <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
+          <End Role="FmsEquipmentRentInfo" Type="Self.FmsEquipmentRentInfo" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmUser">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="UserId" />
+            </Principal>
+            <Dependent Role="FmsEquipmentRentInfo">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="RegisterUserId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsEquipmentRentInfo_CmUser1">
+          <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
+          <End Role="FmsEquipmentRentInfo" Type="Self.FmsEquipmentRentInfo" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmUser">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="UserId" />
+            </Principal>
+            <Dependent Role="FmsEquipmentRentInfo">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="RentUserId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsEquipmentRentInfo_FmsEquipmentCodeStateType">
+          <End Role="FmsEquipmentCodeStateType" Type="Self.FmsEquipmentCodeStateType" Multiplicity="0..1" />
+          <End Role="FmsEquipmentRentInfo" Type="Self.FmsEquipmentRentInfo" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="FmsEquipmentCodeStateType">
+              <PropertyRef Name="EquipmentStateTypeId" />
+            </Principal>
+            <Dependent Role="FmsEquipmentRentInfo">
+              <PropertyRef Name="EquipmentStateTypeId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsFacilityOperationReport_CmUser">
+          <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
+          <End Role="FmsFacilityOperationReport" Type="Self.FmsFacilityOperationReport" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmUser">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="UserId" />
+            </Principal>
+            <Dependent Role="FmsFacilityOperationReport">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="RegisterUserId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsManual_FmsManualType">
+          <End Role="FmsManualType" Type="Self.FmsManualType" Multiplicity="1" />
+          <End Role="FmsManual" Type="Self.FmsManual" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="FmsManualType">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="ManualTypeId" />
+            </Principal>
+            <Dependent Role="FmsManual">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="ManualTypeId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsManualHistory_CmFile">
+          <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
+          <End Role="FmsManualHistory" Type="Self.FmsManualHistory" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmFile">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FileId" />
+            </Principal>
+            <Dependent Role="FmsManualHistory">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FileId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsManualHistory_CmUser">
+          <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
+          <End Role="FmsManualHistory" Type="Self.FmsManualHistory" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmUser">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="UserId" />
+            </Principal>
+            <Dependent Role="FmsManualHistory">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="UpdatedUserId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsManualHistory_FmsManual">
+          <End Role="FmsManual" Type="Self.FmsManual" Multiplicity="1" />
+          <End Role="FmsManualHistory" Type="Self.FmsManualHistory" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="FmsManual">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="ManualId" />
+            </Principal>
+            <Dependent Role="FmsManualHistory">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="ManualId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsMaterial_CmBusinessField">
+          <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
+          <End Role="FmsMaterial" Type="Self.FmsMaterial" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmBusinessField">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="BusinessFieldId" />
+            </Principal>
+            <Dependent Role="FmsMaterial">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="BusinessFieldId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsMaterial_CmFile">
+          <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
+          <End Role="FmsMaterial" Type="Self.FmsMaterial" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmFile">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FileId" />
+            </Principal>
+            <Dependent Role="FmsMaterial">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="ImageFileId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsMaterial_CmSite">
+          <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
+          <End Role="FmsMaterial" Type="Self.FmsMaterial" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmSite">
+              <PropertyRef Name="SiteId" />
+            </Principal>
+            <Dependent Role="FmsMaterial">
+              <PropertyRef Name="SiteId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsMaterial_FmsMaterialCodeLocation">
+          <End Role="FmsMaterialCodeLocation" Type="Self.FmsMaterialCodeLocation" Multiplicity="0..1" />
+          <End Role="FmsMaterial" Type="Self.FmsMaterial" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="FmsMaterialCodeLocation">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="LocationId" />
+            </Principal>
+            <Dependent Role="FmsMaterial">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="LocationId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsMaterial_FmsMaterialCodeType">
+          <End Role="FmsMaterialCodeType" Type="Self.FmsMaterialCodeType" Multiplicity="0..1" />
+          <End Role="FmsMaterial" Type="Self.FmsMaterial" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="FmsMaterialCodeType">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="MaterialTypeId" />
+            </Principal>
+            <Dependent Role="FmsMaterial">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="MaterialTypeId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsMaterial_FmsMaterialTradeCompany">
+          <End Role="FmsMaterialTradeCompany" Type="Self.FmsMaterialTradeCompany" Multiplicity="0..1" />
+          <End Role="FmsMaterial" Type="Self.FmsMaterial" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="FmsMaterialTradeCompany">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="TradeCompanyId" />
+            </Principal>
+            <Dependent Role="FmsMaterial">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="TradeCompanyId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsMaterial_FmsMaterialWarehouse">
+          <End Role="FmsMaterialWarehouse" Type="Self.FmsMaterialWarehouse" Multiplicity="0..1" />
+          <End Role="FmsMaterial" Type="Self.FmsMaterial" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="FmsMaterialWarehouse">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="WarehouseId" />
+            </Principal>
+            <Dependent Role="FmsMaterial">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="WarehouseId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsMaterialPurchaseOrder_FmsMaterialPurchaseRequest">
+          <End Role="FmsMaterialPurchaseRequest" Type="Self.FmsMaterialPurchaseRequest" Multiplicity="1" />
+          <End Role="FmsMaterialPurchaseOrder" Type="Self.FmsMaterialPurchaseOrder" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="FmsMaterialPurchaseRequest">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="PurchaseRequestId" />
+            </Principal>
+            <Dependent Role="FmsMaterialPurchaseOrder">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="PurchaseRequestId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsMaterialPurchaseOrderMaterial_FmsMaterial">
+          <End Role="FmsMaterial" Type="Self.FmsMaterial" Multiplicity="1" />
+          <End Role="FmsMaterialPurchaseOrderMaterial" Type="Self.FmsMaterialPurchaseOrderMaterial" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="FmsMaterial">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="MaterialId" />
+            </Principal>
+            <Dependent Role="FmsMaterialPurchaseOrderMaterial">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="MaterialId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsMaterialPurchaseOrderMaterial_FmsMaterialPurchaseOrder">
+          <End Role="FmsMaterialPurchaseOrder" Type="Self.FmsMaterialPurchaseOrder" Multiplicity="1">
+            <OnDelete Action="Cascade" />
+          </End>
+          <End Role="FmsMaterialPurchaseOrderMaterial" Type="Self.FmsMaterialPurchaseOrderMaterial" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="FmsMaterialPurchaseOrder">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="PurchaseOrderId" />
+            </Principal>
+            <Dependent Role="FmsMaterialPurchaseOrderMaterial">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="PurchaseOrderId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsMaterialPurchaseRequest_FmsMaterialCodePurchaseType">
+          <End Role="FmsMaterialCodePurchaseType" Type="Self.FmsMaterialCodePurchaseType" Multiplicity="1" />
+          <End Role="FmsMaterialPurchaseRequest" Type="Self.FmsMaterialPurchaseRequest" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="FmsMaterialCodePurchaseType">
+              <PropertyRef Name="PurchaseTypeId" />
+            </Principal>
+            <Dependent Role="FmsMaterialPurchaseRequest">
+              <PropertyRef Name="PurchaseTypeId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsMaterialPurchaseRequestMaterial_FmsMaterial">
+          <End Role="FmsMaterial" Type="Self.FmsMaterial" Multiplicity="1" />
+          <End Role="FmsMaterialPurchaseRequestMaterial" Type="Self.FmsMaterialPurchaseRequestMaterial" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="FmsMaterial">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="MaterialId" />
+            </Principal>
+            <Dependent Role="FmsMaterialPurchaseRequestMaterial">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="MaterialId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsMaterialPurchaseRequestMaterial_FmsMaterialPurchaseRequest">
+          <End Role="FmsMaterialPurchaseRequest" Type="Self.FmsMaterialPurchaseRequest" Multiplicity="1">
+            <OnDelete Action="Cascade" />
+          </End>
+          <End Role="FmsMaterialPurchaseRequestMaterial" Type="Self.FmsMaterialPurchaseRequestMaterial" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="FmsMaterialPurchaseRequest">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="PurchaseRequestId" />
+            </Principal>
+            <Dependent Role="FmsMaterialPurchaseRequestMaterial">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="PurchaseRequestId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsMaterialRelease_CmBusinessField">
+          <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
+          <End Role="FmsMaterialRelease" Type="Self.FmsMaterialRelease" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmBusinessField">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="BusinessFieldId" />
+            </Principal>
+            <Dependent Role="FmsMaterialRelease">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="BusinessFieldId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsMaterialRelease_CmSite">
+          <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
+          <End Role="FmsMaterialRelease" Type="Self.FmsMaterialRelease" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmSite">
+              <PropertyRef Name="SiteId" />
+            </Principal>
+            <Dependent Role="FmsMaterialRelease">
+              <PropertyRef Name="SiteId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsMaterialRelease_CmUser">
+          <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
+          <End Role="FmsMaterialRelease" Type="Self.FmsMaterialRelease" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmUser">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="UserId" />
+            </Principal>
+            <Dependent Role="FmsMaterialRelease">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="ConfirmedUserId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsMaterialRelease_CmUser1">
+          <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
+          <End Role="FmsMaterialRelease" Type="Self.FmsMaterialRelease" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmUser">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="UserId" />
+            </Principal>
+            <Dependent Role="FmsMaterialRelease">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="AdjustmentUserId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsMaterialRelease_FmsMaterial">
+          <End Role="FmsMaterial" Type="Self.FmsMaterial" Multiplicity="0..1" />
+          <End Role="FmsMaterialRelease" Type="Self.FmsMaterialRelease" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="FmsMaterial">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="MaterialId" />
+            </Principal>
+            <Dependent Role="FmsMaterialRelease">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="MaterialId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsMaterialRelease_FmsMaterialCodeAdjustmentType">
+          <End Role="FmsMaterialCodeAdjustmentType" Type="Self.FmsMaterialCodeAdjustmentType" Multiplicity="1" />
+          <End Role="FmsMaterialRelease" Type="Self.FmsMaterialRelease" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="FmsMaterialCodeAdjustmentType">
+              <PropertyRef Name="AdjustmentTypeId" />
+            </Principal>
+            <Dependent Role="FmsMaterialRelease">
+              <PropertyRef Name="AdjustmentTypeId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsMaterialRelease_FmsMaterialCodeReleaseType">
+          <End Role="FmsMaterialCodeReleaseType" Type="Self.FmsMaterialCodeReleaseType" Multiplicity="1" />
+          <End Role="FmsMaterialRelease" Type="Self.FmsMaterialRelease" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="FmsMaterialCodeReleaseType">
+              <PropertyRef Name="ReleaseTypeId" />
+            </Principal>
+            <Dependent Role="FmsMaterialRelease">
+              <PropertyRef Name="ReleaseTypeId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsMaterialRelease_FmsWorkResult">
+          <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="0..1" />
+          <End Role="FmsMaterialRelease" Type="Self.FmsMaterialRelease" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="FmsWorkResult">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="WorkRequestId" />
+            </Principal>
+            <Dependent Role="FmsMaterialRelease">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="WorkRequestId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsMaterialStored_FmsMaterial">
+          <End Role="FmsMaterial" Type="Self.FmsMaterial" Multiplicity="1" />
+          <End Role="FmsMaterialStored" Type="Self.FmsMaterialStored" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="FmsMaterial">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="MaterialId" />
+            </Principal>
+            <Dependent Role="FmsMaterialStored">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="MaterialId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsMaterialStored_FmsMaterialPurchaseOrder">
+          <End Role="FmsMaterialPurchaseOrder" Type="Self.FmsMaterialPurchaseOrder" Multiplicity="0..1" />
+          <End Role="FmsMaterialStored" Type="Self.FmsMaterialStored" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="FmsMaterialPurchaseOrder">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="PurchaseOrderId" />
+            </Principal>
+            <Dependent Role="FmsMaterialStored">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="PurchaseOrderId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsMaterialStored_FmsMaterialWarehouse">
+          <End Role="FmsMaterialWarehouse" Type="Self.FmsMaterialWarehouse" Multiplicity="1" />
+          <End Role="FmsMaterialStored" Type="Self.FmsMaterialStored" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="FmsMaterialWarehouse">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="WarehouseId" />
+            </Principal>
+            <Dependent Role="FmsMaterialStored">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="WarehouseId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsMonthlyReport_CmUser">
+          <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
+          <End Role="FmsMonthlyReport" Type="Self.FmsMonthlyReport" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmUser">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="UserId" />
+            </Principal>
+            <Dependent Role="FmsMonthlyReport">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="RegisterUserId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsReport_CmBusinessField">
+          <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
+          <End Role="FmsReport" Type="Self.FmsReport" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmBusinessField">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="BusinessFieldId" />
+            </Principal>
+            <Dependent Role="FmsReport">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="BusinessFieldId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsReport_CmFile">
+          <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
+          <End Role="FmsReport" Type="Self.FmsReport" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmFile">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FileId" />
+            </Principal>
+            <Dependent Role="FmsReport">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FileId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsReport_CmSite">
+          <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
+          <End Role="FmsReport" Type="Self.FmsReport" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmSite">
+              <PropertyRef Name="SiteId" />
+            </Principal>
+            <Dependent Role="FmsReport">
+              <PropertyRef Name="SiteId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsReport_CmUser">
+          <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
+          <End Role="FmsReport" Type="Self.FmsReport" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmUser">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="UserId" />
+            </Principal>
+            <Dependent Role="FmsReport">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="RegisterUserId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsReport_CmUser1">
+          <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
+          <End Role="FmsReport" Type="Self.FmsReport" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmUser">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="UserId" />
+            </Principal>
+            <Dependent Role="FmsReport">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="ConfirmUserId1" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsReport_CmUser2">
+          <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
+          <End Role="FmsReport" Type="Self.FmsReport" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmUser">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="UserId" />
+            </Principal>
+            <Dependent Role="FmsReport">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="ConfirmUserId2" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsWorkOrderToFacility_CmFacility">
+          <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="1" />
+          <End Role="FmsWorkOrderToFacility" Type="Self.FmsWorkOrderToFacility" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmFacility">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FacilityCode" />
+            </Principal>
+            <Dependent Role="FmsWorkOrderToFacility">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FacilityCode" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsWorkRequest_CmPartner">
+          <End Role="CmPartner" Type="Self.CmPartner" Multiplicity="0..1" />
+          <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmPartner">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="PartnerId" />
+            </Principal>
+            <Dependent Role="FmsWorkRequest">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="InspectionAgencyId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsWorkRequestToFacility_CmFacility">
+          <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="1" />
+          <End Role="FmsWorkRequestToFacility" Type="Self.FmsWorkRequestToFacility" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmFacility">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FacilityCode" />
+            </Principal>
+            <Dependent Role="FmsWorkRequestToFacility">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FacilityCode" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsWorkResultCheckItemMaterial_FmsMaterial">
+          <End Role="FmsMaterial" Type="Self.FmsMaterial" Multiplicity="1" />
+          <End Role="FmsWorkResultCheckItemMaterial" Type="Self.FmsWorkResultCheckItemMaterial" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="FmsMaterial">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="MaterialId" />
+            </Principal>
+            <Dependent Role="FmsWorkResultCheckItemMaterial">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="MaterialId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsWorkResultCheckItemMaterial_FmsWorkResult">
+          <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="1" />
+          <End Role="FmsWorkResultCheckItemMaterial" Type="Self.FmsWorkResultCheckItemMaterial" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="FmsWorkResult">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="WorkRequestId" />
+            </Principal>
+            <Dependent Role="FmsWorkResultCheckItemMaterial">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="WorkRequestId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsWorkResultCheckItemMaterial_FmsWorkResultCheckItem">
+          <End Role="FmsWorkResultCheckItem" Type="Self.FmsWorkResultCheckItem" Multiplicity="1" />
+          <End Role="FmsWorkResultCheckItemMaterial" Type="Self.FmsWorkResultCheckItemMaterial" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="FmsWorkResultCheckItem">
+              <PropertyRef Name="CheckItemId" />
+            </Principal>
+            <Dependent Role="FmsWorkResultCheckItemMaterial">
+              <PropertyRef Name="CheckItemId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsWorkSchedule_CmPartner">
+          <End Role="CmPartner" Type="Self.CmPartner" Multiplicity="0..1" />
+          <End Role="FmsWorkSchedule" Type="Self.FmsWorkSchedule" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmPartner">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="PartnerId" />
+            </Principal>
+            <Dependent Role="FmsWorkSchedule">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="InspectionAgencyId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsWorkScheduleToFacility_CmFacility">
+          <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="1" />
+          <End Role="FmsWorkScheduleToFacility" Type="Self.FmsWorkScheduleToFacility" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmFacility">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FacilityCode" />
+            </Principal>
+            <Dependent Role="FmsWorkScheduleToFacility">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FacilityCode" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <EntityContainer Name="iBemsModelStoreContainer">
+          <EntitySet Name="BemsAlarmGroup" EntityType="Self.BemsAlarmGroup" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="BemsAlarmGroupUser" EntityType="Self.BemsAlarmGroupUser" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="BemsAlarmLog" EntityType="Self.BemsAlarmLog" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="BemsAlarmSetting" EntityType="Self.BemsAlarmSetting" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="BemsAnalysisType" EntityType="Self.BemsAnalysisType" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="BemsChartInfo" EntityType="Self.BemsChartInfo" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="BemsConfigData" EntityType="Self.BemsConfigData" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="BemsControlAHUTempConfig" EntityType="Self.BemsControlAHUTempConfig" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="BemsControlPointHistory" EntityType="Self.BemsControlPointHistory" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="BemsEnergyConfigPercentMonth" EntityType="Self.BemsEnergyConfigPercentMonth" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="BemsEnergyConfigPercentWeek" EntityType="Self.BemsEnergyConfigPercentWeek" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="BemsEnergyCost" EntityType="Self.BemsEnergyCost" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="BemsEnergyDaily" EntityType="Self.BemsEnergyDaily" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="BemsEnergyDailyRegression" EntityType="Self.BemsEnergyDailyRegression" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="BemsFacilityType" EntityType="Self.BemsFacilityType" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="BemsFactorCo2" EntityType="Self.BemsFactorCo2" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="BemsFactorToe" EntityType="Self.BemsFactorToe" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="BemsFloorPlan" EntityType="Self.BemsFloorPlan" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="BemsFloorStatus" EntityType="Self.BemsFloorStatus" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="BemsFormula" EntityType="Self.BemsFormula" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="BemsFormulaBase" EntityType="Self.BemsFormulaBase" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="BemsFormulaParameter" EntityType="Self.BemsFormulaParameter" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="BemsFormulaTable" EntityType="Self.BemsFormulaTable" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="BemsFormulaTableValue" EntityType="Self.BemsFormulaTableValue" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="BemsFuelType" EntityType="Self.BemsFuelType" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="BemsIceThermalStorageSimulation" EntityType="Self.BemsIceThermalStorageSimulation" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="BemsMonitoringPoint" EntityType="Self.BemsMonitoringPoint" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="BemsMonitoringPointBaseData" EntityType="Self.BemsMonitoringPointBaseData" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="BemsMonitoringPointConfig" EntityType="Self.BemsMonitoringPointConfig" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="BemsMonitoringPointForecastingDayAhead" EntityType="Self.BemsMonitoringPointForecastingDayAhead" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="BemsMonitoringPointForecastingHourAhead" EntityType="Self.BemsMonitoringPointForecastingHourAhead" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="BemsMonitoringPointHistory15min" EntityType="Self.BemsMonitoringPointHistory15min" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="BemsMonitoringPointHistory15minRawData" EntityType="Self.BemsMonitoringPointHistory15minRawData" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="BemsMonitoringPointHistoryDaily" EntityType="Self.BemsMonitoringPointHistoryDaily" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="BemsMonitoringPointHistoryHourly" EntityType="Self.BemsMonitoringPointHistoryHourly" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="BemsMonitoringPointToAnlaysisType" EntityType="Self.BemsMonitoringPointToAnlaysisType" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="BemsMonitoringPointWeatherForecasted" EntityType="Self.BemsMonitoringPointWeatherForecasted" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="BemsNoticePriceBase" EntityType="Self.BemsNoticePriceBase" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="BemsNoticePriceContractType" EntityType="Self.BemsNoticePriceContractType" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="BemsNoticePriceDetail" EntityType="Self.BemsNoticePriceDetail" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="BemsPeakFacility" EntityType="Self.BemsPeakFacility" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="BemsPeakHistory" EntityType="Self.BemsPeakHistory" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="BemsPeakHistoryDaily" EntityType="Self.BemsPeakHistoryDaily" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="BemsPeakInfo" EntityType="Self.BemsPeakInfo" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="BemsPeopleIncrease" EntityType="Self.BemsPeopleIncrease" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="BemsPriceCode" EntityType="Self.BemsPriceCode" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="BemsPriceFormula" EntityType="Self.BemsPriceFormula" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="BemsPriceMeta" EntityType="Self.BemsPriceMeta" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="BemsPriceType" EntityType="Self.BemsPriceType" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="BemsRentalRate" EntityType="Self.BemsRentalRate" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="BemsReportFormat" EntityType="Self.BemsReportFormat" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="BemsReportHistory" EntityType="Self.BemsReportHistory" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="BemsServiceType" EntityType="Self.BemsServiceType" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="BemsSitePrice" EntityType="Self.BemsSitePrice" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="BemsSitePriceHistory" EntityType="Self.BemsSitePriceHistory" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="CmAlarmAdmin" EntityType="Self.CmAlarmAdmin" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="CmAnnouncement" EntityType="Self.CmAnnouncement" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="CmBuilding" EntityType="Self.CmBuilding" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="CmBusinessField" EntityType="Self.CmBusinessField" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="CmCompany" EntityType="Self.CmCompany" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="CmCompanyType" EntityType="Self.CmCompanyType" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="CmDepartment" EntityType="Self.CmDepartment" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="CmFacility" EntityType="Self.CmFacility" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="CmFacilityFile" EntityType="Self.CmFacilityFile" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="CmFacilityTempSet" EntityType="Self.CmFacilityTempSet" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="CmFile" EntityType="Self.CmFile" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="CmFileCategory" EntityType="Self.CmFileCategory" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="CmFloor" EntityType="Self.CmFloor" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="CmHoliday" EntityType="Self.CmHoliday" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="CmHolidayCustom" EntityType="Self.CmHolidayCustom" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="CmHolidayWeekend" EntityType="Self.CmHolidayWeekend" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="CmMenu" EntityType="Self.CmMenu" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="CmPartner" EntityType="Self.CmPartner" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="CmPartnerType" EntityType="Self.CmPartnerType" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="CmPatrolCourse" EntityType="Self.CmPatrolCourse" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="CmPatrolCoursePos" EntityType="Self.CmPatrolCoursePos" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="CmPatrolGroup" EntityType="Self.CmPatrolGroup" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="CmPatrolGroupUser" EntityType="Self.CmPatrolGroupUser" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="CmPatrolHistory" EntityType="Self.CmPatrolHistory" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="CmPatrolHistoryPos" EntityType="Self.CmPatrolHistoryPos" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="CmPatrolPlan" EntityType="Self.CmPatrolPlan" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="CmPatrolPos" EntityType="Self.CmPatrolPos" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="CmPatrolSchedule" EntityType="Self.CmPatrolSchedule" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="CmPatrolType" EntityType="Self.CmPatrolType" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="CmPosition" EntityType="Self.CmPosition" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="CmServiceEnergyCalcDay" EntityType="Self.CmServiceEnergyCalcDay" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="CmServiceEnergyCalcMonth" EntityType="Self.CmServiceEnergyCalcMonth" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="CmSite" EntityType="Self.CmSite" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="CmUser" EntityType="Self.CmUser" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="CmUserGroup" EntityType="Self.CmUserGroup" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="CmUserGroupPermission" EntityType="Self.CmUserGroupPermission" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="CmUserLoginHistory" EntityType="Self.CmUserLoginHistory" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="CmUserToLicense" EntityType="Self.CmUserToLicense" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="CmZone" EntityType="Self.CmZone" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="CmZoneTempHumiSet" EntityType="Self.CmZoneTempHumiSet" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="FmsAccident" EntityType="Self.FmsAccident" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="FmsAccidentCodeType" EntityType="Self.FmsAccidentCodeType" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="FmsBudget" EntityType="Self.FmsBudget" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="FmsBudgetCodeClass" EntityType="Self.FmsBudgetCodeClass" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="FmsBudgetDetail" EntityType="Self.FmsBudgetDetail" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="FmsBudgetDetailExecution" EntityType="Self.FmsBudgetDetailExecution" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="FmsCompanyEstimationCodeClass" EntityType="Self.FmsCompanyEstimationCodeClass" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="FmsConstruction" EntityType="Self.FmsConstruction" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="FmsConstructionCodeProgress" EntityType="Self.FmsConstructionCodeProgress" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="FmsConstructionCodeType" EntityType="Self.FmsConstructionCodeType" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="FmsConstructionEstimation" EntityType="Self.FmsConstructionEstimation" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="FmsContract" EntityType="Self.FmsContract" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="FmsContractClass" EntityType="Self.FmsContractClass" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="FmsContractMethod" EntityType="Self.FmsContractMethod" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="FmsContractType" EntityType="Self.FmsContractType" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="FmsDailyCheckReport" EntityType="Self.FmsDailyCheckReport" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="FmsDailyReport" EntityType="Self.FmsDailyReport" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="FmsDrawing" EntityType="Self.FmsDrawing" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="FmsDrawingCodeGroup" EntityType="Self.FmsDrawingCodeGroup" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="FmsDrawingCodeType" EntityType="Self.FmsDrawingCodeType" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="FmsDrawingHistory" EntityType="Self.FmsDrawingHistory" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="FmsEquipment" EntityType="Self.FmsEquipment" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="FmsEquipmentCodeStateType" EntityType="Self.FmsEquipmentCodeStateType" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="FmsEquipmentCodeType" EntityType="Self.FmsEquipmentCodeType" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="FmsEquipmentHistory" EntityType="Self.FmsEquipmentHistory" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="FmsEquipmentRentInfo" EntityType="Self.FmsEquipmentRentInfo" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="FmsFacilityCheckItem" EntityType="Self.FmsFacilityCheckItem" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="FmsFacilityCodeClass" EntityType="Self.FmsFacilityCodeClass" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="FmsFacilityManual" EntityType="Self.FmsFacilityManual" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="FmsFacilityOperationItem" EntityType="Self.FmsFacilityOperationItem" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="FmsFacilityOperationReport" EntityType="Self.FmsFacilityOperationReport" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="FmsInvestmentCost" EntityType="Self.FmsInvestmentCost" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="FmsLicense" EntityType="Self.FmsLicense" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="FmsManual" EntityType="Self.FmsManual" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="FmsManualHistory" EntityType="Self.FmsManualHistory" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="FmsManualType" EntityType="Self.FmsManualType" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="FmsMaterial" EntityType="Self.FmsMaterial" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="FmsMaterialCarriedForward" EntityType="Self.FmsMaterialCarriedForward" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="FmsMaterialCodeAdjustmentType" EntityType="Self.FmsMaterialCodeAdjustmentType" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="FmsMaterialCodeClass" EntityType="Self.FmsMaterialCodeClass" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="FmsMaterialCodeLocation" EntityType="Self.FmsMaterialCodeLocation" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="FmsMaterialCodeProgress" EntityType="Self.FmsMaterialCodeProgress" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="FmsMaterialCodePurchaseType" EntityType="Self.FmsMaterialCodePurchaseType" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="FmsMaterialCodeReleaseType" EntityType="Self.FmsMaterialCodeReleaseType" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="FmsMaterialCodeType" EntityType="Self.FmsMaterialCodeType" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="FmsMaterialPurchaseOrder" EntityType="Self.FmsMaterialPurchaseOrder" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="FmsMaterialPurchaseOrderMaterial" EntityType="Self.FmsMaterialPurchaseOrderMaterial" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="FmsMaterialPurchaseRequest" EntityType="Self.FmsMaterialPurchaseRequest" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="FmsMaterialPurchaseRequestMaterial" EntityType="Self.FmsMaterialPurchaseRequestMaterial" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="FmsMaterialRelease" EntityType="Self.FmsMaterialRelease" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="FmsMaterialStored" EntityType="Self.FmsMaterialStored" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="FmsMaterialTradeCompany" EntityType="Self.FmsMaterialTradeCompany" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="FmsMaterialWarehouse" EntityType="Self.FmsMaterialWarehouse" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="FmsMonthlyReport" EntityType="Self.FmsMonthlyReport" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="FmsPaymentType" EntityType="Self.FmsPaymentType" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="FmsReport" EntityType="Self.FmsReport" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="FmsWorkCodeCauseClass" EntityType="Self.FmsWorkCodeCauseClass" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="FmsWorkCodeCycleUnit" EntityType="Self.FmsWorkCodeCycleUnit" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="FmsWorkCodeEmergency" EntityType="Self.FmsWorkCodeEmergency" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="FmsWorkCodeHolidayWorkType" EntityType="Self.FmsWorkCodeHolidayWorkType" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="FmsWorkCodeLegalInspectionAgency" EntityType="Self.FmsWorkCodeLegalInspectionAgency" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="FmsWorkCodeProgress" EntityType="Self.FmsWorkCodeProgress" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="FmsWorkCodeType" EntityType="Self.FmsWorkCodeType" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="FmsWorkOrder" EntityType="Self.FmsWorkOrder" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="FmsWorkOrderToFacility" EntityType="Self.FmsWorkOrderToFacility" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="FmsWorkRequest" EntityType="Self.FmsWorkRequest" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="FmsWorkRequestToFacility" EntityType="Self.FmsWorkRequestToFacility" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="FmsWorkResult" EntityType="Self.FmsWorkResult" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="FmsWorkResultCheckItem" EntityType="Self.FmsWorkResultCheckItem" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="FmsWorkResultCheckItemMaterial" EntityType="Self.FmsWorkResultCheckItemMaterial" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="FmsWorkResultFile" EntityType="Self.FmsWorkResultFile" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="FmsWorkResultLaw" EntityType="Self.FmsWorkResultLaw" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="FmsWorkResultToFacility" EntityType="Self.FmsWorkResultToFacility" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="FmsWorkSchedule" EntityType="Self.FmsWorkSchedule" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="FmsWorkScheduleToFacility" EntityType="Self.FmsWorkScheduleToFacility" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="sysdiagrams" EntityType="Self.sysdiagrams" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="WeatherDongNaeForecast" EntityType="Self.WeatherDongNaeForecast" Schema="dbo" store:Type="Tables" />
+          <AssociationSet Name="FK__BemsEnerg__SiteI__7954A4F6" Association="Self.FK__BemsEnerg__SiteI__7954A4F6">
+            <End Role="CmSite" EntitySet="CmSite" />
+            <End Role="BemsEnergyConfigPercentMonth" EntitySet="BemsEnergyConfigPercentMonth" />
+          </AssociationSet>
+          <AssociationSet Name="FK__BemsEnerg__SiteI__7C3111A1" Association="Self.FK__BemsEnerg__SiteI__7C3111A1">
+            <End Role="CmSite" EntitySet="CmSite" />
+            <End Role="BemsEnergyConfigPercentWeek" EntitySet="BemsEnergyConfigPercentWeek" />
+          </AssociationSet>
+          <AssociationSet Name="FK__BemsEnergyDaily__BemsFuelType" Association="Self.FK__BemsEnergyDaily__BemsFuelType">
+            <End Role="BemsFuelType" EntitySet="BemsFuelType" />
+            <End Role="BemsEnergyDaily" EntitySet="BemsEnergyDaily" />
+          </AssociationSet>
+          <AssociationSet Name="FK__BemsEnergyDaily__BemsServiceType" Association="Self.FK__BemsEnergyDaily__BemsServiceType">
+            <End Role="BemsServiceType" EntitySet="BemsServiceType" />
+            <End Role="BemsEnergyDaily" EntitySet="BemsEnergyDaily" />
+          </AssociationSet>
+          <AssociationSet Name="FK__BemsEnergyDaily__CmBuilding" Association="Self.FK__BemsEnergyDaily__CmBuilding">
+            <End Role="CmBuilding" EntitySet="CmBuilding" />
+            <End Role="BemsEnergyDaily" EntitySet="BemsEnergyDaily" />
+          </AssociationSet>
+          <AssociationSet Name="FK__BemsFactorCo2__BemsFuelType" Association="Self.FK__BemsFactorCo2__BemsFuelType">
+            <End Role="BemsFuelType" EntitySet="BemsFuelType" />
+            <End Role="BemsFactorCo2" EntitySet="BemsFactorCo2" />
+          </AssociationSet>
+          <AssociationSet Name="FK__BemsFactorToe__BemsFuelType" Association="Self.FK__BemsFactorToe__BemsFuelType">
+            <End Role="BemsFuelType" EntitySet="BemsFuelType" />
+            <End Role="BemsFactorToe" EntitySet="BemsFactorToe" />
+          </AssociationSet>
+          <AssociationSet Name="FK__BemsFormula__BemsFormulaBase" Association="Self.FK__BemsFormula__BemsFormulaBase">
+            <End Role="BemsFormulaBase" EntitySet="BemsFormulaBase" />
+            <End Role="BemsFormula" EntitySet="BemsFormula" />
+          </AssociationSet>
+          <AssociationSet Name="FK__BemsFormulaParameter__BemsFormula" Association="Self.FK__BemsFormulaParameter__BemsFormula">
+            <End Role="BemsFormula" EntitySet="BemsFormula" />
+            <End Role="BemsFormulaParameter" EntitySet="BemsFormulaParameter" />
+          </AssociationSet>
+          <AssociationSet Name="FK__BemsFormulaTableValue__BemsFormulaTable" Association="Self.FK__BemsFormulaTableValue__BemsFormulaTable">
+            <End Role="BemsFormulaTable" EntitySet="BemsFormulaTable" />
+            <End Role="BemsFormulaTableValue" EntitySet="BemsFormulaTableValue" />
+          </AssociationSet>
+          <AssociationSet Name="FK__BemsMonitoringPo__1372D2FE" Association="Self.FK__BemsMonitoringPo__1372D2FE">
+            <End Role="BemsAnalysisType" EntitySet="BemsAnalysisType" />
+            <End Role="BemsMonitoringPointToAnlaysisType" EntitySet="BemsMonitoringPointToAnlaysisType" />
+          </AssociationSet>
+          <AssociationSet Name="FK__BemsMonitoringPo__155B1B70" Association="Self.FK__BemsMonitoringPo__155B1B70">
+            <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
+            <End Role="BemsMonitoringPointToAnlaysisType" EntitySet="BemsMonitoringPointToAnlaysisType" />
+          </AssociationSet>
+          <AssociationSet Name="FK__BemsMonitoringPoint__BemsFuelType" Association="Self.FK__BemsMonitoringPoint__BemsFuelType">
+            <End Role="BemsFuelType" EntitySet="BemsFuelType" />
+            <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
+          </AssociationSet>
+          <AssociationSet Name="FK__BemsMonitoringPoint__BemsServiceType" Association="Self.FK__BemsMonitoringPoint__BemsServiceType">
+            <End Role="BemsServiceType" EntitySet="BemsServiceType" />
+            <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
+          </AssociationSet>
+          <AssociationSet Name="FK__BemsMonitoringPoint__CmBuilding" Association="Self.FK__BemsMonitoringPoint__CmBuilding">
+            <End Role="CmBuilding" EntitySet="CmBuilding" />
+            <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
+          </AssociationSet>
+          <AssociationSet Name="FK__BemsMonitoringPoint__CmFloor" Association="Self.FK__BemsMonitoringPoint__CmFloor">
+            <End Role="CmFloor" EntitySet="CmFloor" />
+            <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
+          </AssociationSet>
+          <AssociationSet Name="FK__BemsMonitoringPoint__CmZone" Association="Self.FK__BemsMonitoringPoint__CmZone">
+            <End Role="CmZone" EntitySet="CmZone" />
+            <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
+          </AssociationSet>
+          <AssociationSet Name="FK__BemsMonitoringPointBaseData__BemsFacilityType" Association="Self.FK__BemsMonitoringPointBaseData__BemsFacilityType">
+            <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
+            <End Role="BemsMonitoringPointBaseData" EntitySet="BemsMonitoringPointBaseData" />
+          </AssociationSet>
+          <AssociationSet Name="FK__BemsMonitoringPointBaseData__BemsFuelType" Association="Self.FK__BemsMonitoringPointBaseData__BemsFuelType">
+            <End Role="BemsFuelType" EntitySet="BemsFuelType" />
+            <End Role="BemsMonitoringPointBaseData" EntitySet="BemsMonitoringPointBaseData" />
+          </AssociationSet>
+          <AssociationSet Name="FK__BemsMonitoringPointBaseData__BemsServiceType" Association="Self.FK__BemsMonitoringPointBaseData__BemsServiceType">
+            <End Role="BemsServiceType" EntitySet="BemsServiceType" />
+            <End Role="BemsMonitoringPointBaseData" EntitySet="BemsMonitoringPointBaseData" />
+          </AssociationSet>
+          <AssociationSet Name="FK__BemsMonitoringPointHistory15min__BemsFacilityType" Association="Self.FK__BemsMonitoringPointHistory15min__BemsFacilityType">
+            <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
+            <End Role="BemsMonitoringPointHistory15min" EntitySet="BemsMonitoringPointHistory15min" />
+          </AssociationSet>
+          <AssociationSet Name="FK__BemsMonitoringPointHistory15min__BemsMonitoringPoint" Association="Self.FK__BemsMonitoringPointHistory15min__BemsMonitoringPoint">
+            <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
+            <End Role="BemsMonitoringPointHistory15min" EntitySet="BemsMonitoringPointHistory15min" />
+          </AssociationSet>
+          <AssociationSet Name="FK__BemsMonitoringPointHistory15minRawData__BemsFacilityType" Association="Self.FK__BemsMonitoringPointHistory15minRawData__BemsFacilityType">
+            <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
+            <End Role="BemsMonitoringPointHistory15minRawData" EntitySet="BemsMonitoringPointHistory15minRawData" />
+          </AssociationSet>
+          <AssociationSet Name="FK__BemsMonitoringPointHistory15minRawData__BemsMonitoringPoint" Association="Self.FK__BemsMonitoringPointHistory15minRawData__BemsMonitoringPoint">
+            <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
+            <End Role="BemsMonitoringPointHistory15minRawData" EntitySet="BemsMonitoringPointHistory15minRawData" />
+          </AssociationSet>
+          <AssociationSet Name="FK__BemsMonitoringPointHistoryDaily__BemsFacilityType" Association="Self.FK__BemsMonitoringPointHistoryDaily__BemsFacilityType">
+            <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
+            <End Role="BemsMonitoringPointHistoryDaily" EntitySet="BemsMonitoringPointHistoryDaily" />
+          </AssociationSet>
+          <AssociationSet Name="FK__BemsMonitoringPointHistoryDaily__BemsMonitoringPoint" Association="Self.FK__BemsMonitoringPointHistoryDaily__BemsMonitoringPoint">
+            <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
+            <End Role="BemsMonitoringPointHistoryDaily" EntitySet="BemsMonitoringPointHistoryDaily" />
+          </AssociationSet>
+          <AssociationSet Name="FK__BemsMonitoringPointHistoryHourly__BemsFacilityType" Association="Self.FK__BemsMonitoringPointHistoryHourly__BemsFacilityType">
+            <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
+            <End Role="BemsMonitoringPointHistoryHourly" EntitySet="BemsMonitoringPointHistoryHourly" />
+          </AssociationSet>
+          <AssociationSet Name="FK__BemsMonitoringPointHistoryHourly__BemsMonitoringPoint" Association="Self.FK__BemsMonitoringPointHistoryHourly__BemsMonitoringPoint">
+            <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
+            <End Role="BemsMonitoringPointHistoryHourly" EntitySet="BemsMonitoringPointHistoryHourly" />
+          </AssociationSet>
+          <AssociationSet Name="FK__BemsMonitoringPointToAnlaysisType__BemsFacilityType" Association="Self.FK__BemsMonitoringPointToAnlaysisType__BemsFacilityType">
+            <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
+            <End Role="BemsMonitoringPointToAnlaysisType" EntitySet="BemsMonitoringPointToAnlaysisType" />
+          </AssociationSet>
+          <AssociationSet Name="FK__BemsNoticePriceBase__BemsNoticePriceContractType" Association="Self.FK__BemsNoticePriceBase__BemsNoticePriceContractType">
+            <End Role="BemsNoticePriceContractType" EntitySet="BemsNoticePriceContractType" />
+            <End Role="BemsNoticePriceBase" EntitySet="BemsNoticePriceBase" />
+          </AssociationSet>
+          <AssociationSet Name="FK__BemsNoticePriceContractType__BemsFuelType" Association="Self.FK__BemsNoticePriceContractType__BemsFuelType">
+            <End Role="BemsFuelType" EntitySet="BemsFuelType" />
+            <End Role="BemsNoticePriceContractType" EntitySet="BemsNoticePriceContractType" />
+          </AssociationSet>
+          <AssociationSet Name="FK__BemsNoticePriceDetail__BemsNoticePriceBase" Association="Self.FK__BemsNoticePriceDetail__BemsNoticePriceBase">
+            <End Role="BemsNoticePriceBase" EntitySet="BemsNoticePriceBase" />
+            <End Role="BemsNoticePriceDetail" EntitySet="BemsNoticePriceDetail" />
+          </AssociationSet>
+          <AssociationSet Name="FK__CmCompany__345EC57D" Association="Self.FK__CmCompany__345EC57D">
+            <End Role="CmCompanyType" EntitySet="CmCompanyType" />
+            <End Role="CmCompany" EntitySet="CmCompany" />
+          </AssociationSet>
+          <AssociationSet Name="FK__CmCompany__SiteI__336AA144" Association="Self.FK__CmCompany__SiteI__336AA144">
+            <End Role="CmSite" EntitySet="CmSite" />
+            <End Role="CmCompany" EntitySet="CmCompany" />
+          </AssociationSet>
+          <AssociationSet Name="FK__CmDepartment__3552E9B6" Association="Self.FK__CmDepartment__3552E9B6">
+            <End Role="CmCompany" EntitySet="CmCompany" />
+            <End Role="CmDepartment" EntitySet="CmDepartment" />
+          </AssociationSet>
+          <AssociationSet Name="FK__CmFacility__CmFacility" Association="Self.FK__CmFacility__CmFacility">
+            <End Role="CmFacility" EntitySet="CmFacility" />
+            <End Role="CmFacility1" EntitySet="CmFacility" />
+          </AssociationSet>
+          <AssociationSet Name="FK__CmFacilityFile__7720AD13" Association="Self.FK__CmFacilityFile__7720AD13">
+            <End Role="CmFacility" EntitySet="CmFacility" />
+            <End Role="CmFacilityFile" EntitySet="CmFacilityFile" />
+          </AssociationSet>
+          <AssociationSet Name="FK__CmFacilityFile__CmFile" Association="Self.FK__CmFacilityFile__CmFile">
+            <End Role="CmFile" EntitySet="CmFile" />
+            <End Role="CmFacilityFile" EntitySet="CmFacilityFile" />
+          </AssociationSet>
+          <AssociationSet Name="FK__CmFacilityManual__79FD19BE" Association="Self.FK__CmFacilityManual__79FD19BE">
+            <End Role="CmFacility" EntitySet="CmFacility" />
+            <End Role="FmsFacilityManual" EntitySet="FmsFacilityManual" />
+          </AssociationSet>
+          <AssociationSet Name="FK__CmFacilityManual__7BE56230" Association="Self.FK__CmFacilityManual__7BE56230">
+            <End Role="CmBusinessField" EntitySet="CmBusinessField" />
+            <End Role="FmsFacilityManual" EntitySet="FmsFacilityManual" />
+          </AssociationSet>
+          <AssociationSet Name="FK__CmFile__CmFileCategory" Association="Self.FK__CmFile__CmFileCategory">
+            <End Role="CmFileCategory" EntitySet="CmFileCategory" />
+            <End Role="CmFile" EntitySet="CmFile" />
+          </AssociationSet>
+          <AssociationSet Name="FK__CmFile__SiteId__2759D01A" Association="Self.FK__CmFile__SiteId__2759D01A">
+            <End Role="CmSite" EntitySet="CmSite" />
+            <End Role="CmFile" EntitySet="CmFile" />
+          </AssociationSet>
+          <AssociationSet Name="FK__CmFloor__3CF40B7E" Association="Self.FK__CmFloor__3CF40B7E">
+            <End Role="CmBuilding" EntitySet="CmBuilding" />
+            <End Role="CmFloor" EntitySet="CmFloor" />
+          </AssociationSet>
+          <AssociationSet Name="FK__CmHoliday__SiteI__0BB1B5A5" Association="Self.FK__CmHoliday__SiteI__0BB1B5A5">
+            <End Role="CmSite" EntitySet="CmSite" />
+            <End Role="CmHoliday" EntitySet="CmHoliday" />
+          </AssociationSet>
+          <AssociationSet Name="FK__CmHoliday__SiteI__0D99FE17" Association="Self.FK__CmHoliday__SiteI__0D99FE17">
+            <End Role="CmSite" EntitySet="CmSite" />
+            <End Role="CmHolidayWeekend" EntitySet="CmHolidayWeekend" />
+          </AssociationSet>
+          <AssociationSet Name="FK__CmHoliday__SiteI__10766AC2" Association="Self.FK__CmHoliday__SiteI__10766AC2">
+            <End Role="CmSite" EntitySet="CmSite" />
+            <End Role="CmHolidayCustom" EntitySet="CmHolidayCustom" />
+          </AssociationSet>
+          <AssociationSet Name="FK__CmHoliday__SiteI__65AC084E" Association="Self.FK__CmHoliday__SiteI__65AC084E">
+            <End Role="CmSite" EntitySet="CmSite" />
+            <End Role="CmHoliday" EntitySet="CmHoliday" />
+          </AssociationSet>
+          <AssociationSet Name="FK__CmHoliday__SiteI__66A02C87" Association="Self.FK__CmHoliday__SiteI__66A02C87">
+            <End Role="CmSite" EntitySet="CmSite" />
+            <End Role="CmHolidayCustom" EntitySet="CmHolidayCustom" />
+          </AssociationSet>
+          <AssociationSet Name="FK__CmLocation__3DE82FB7" Association="Self.FK__CmLocation__3DE82FB7">
+            <End Role="CmFloor" EntitySet="CmFloor" />
+            <End Role="CmZone" EntitySet="CmZone" />
+          </AssociationSet>
+          <AssociationSet Name="FK__CmPositio__SiteI__6A70BD6B" Association="Self.FK__CmPositio__SiteI__6A70BD6B">
+            <End Role="CmSite" EntitySet="CmSite" />
+            <End Role="CmPosition" EntitySet="CmPosition" />
+          </AssociationSet>
+          <AssociationSet Name="FK__CmUserGro__SiteI__53D770D6" Association="Self.FK__CmUserGro__SiteI__53D770D6">
+            <End Role="CmSite" EntitySet="CmSite" />
+            <End Role="CmUserGroup" EntitySet="CmUserGroup" />
+          </AssociationSet>
+          <AssociationSet Name="FK__CmUserGroupPermission__CmUserGroup" Association="Self.FK__CmUserGroupPermission__CmUserGroup">
+            <End Role="CmUserGroup" EntitySet="CmUserGroup" />
+            <End Role="CmUserGroupPermission" EntitySet="CmUserGroupPermission" />
+          </AssociationSet>
+          <AssociationSet Name="FK__CmUserPos__SiteI__44952D46" Association="Self.FK__CmUserPos__SiteI__44952D46">
+            <End Role="CmSite" EntitySet="CmSite" />
+            <End Role="CmPosition" EntitySet="CmPosition" />
+          </AssociationSet>
+          <AssociationSet Name="FK__CmUserToLicense__CmUser" Association="Self.FK__CmUserToLicense__CmUser">
+            <End Role="CmUser" EntitySet="CmUser" />
+            <End Role="CmUserToLicense" EntitySet="CmUserToLicense" />
+          </AssociationSet>
+          <AssociationSet Name="FK__CmUserToLicense__FmsLicense" Association="Self.FK__CmUserToLicense__FmsLicense">
+            <End Role="FmsLicense" EntitySet="FmsLicense" />
+            <End Role="CmUserToLicense" EntitySet="CmUserToLicense" />
+          </AssociationSet>
+          <AssociationSet Name="FK__CmZone__CmBuilding" Association="Self.FK__CmZone__CmBuilding">
+            <End Role="CmBuilding" EntitySet="CmBuilding" />
+            <End Role="CmZone" EntitySet="CmZone" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsDrawin__SiteI__6B79F03D" Association="Self.FK__FmsDrawin__SiteI__6B79F03D">
+            <End Role="CmSite" EntitySet="CmSite" />
+            <End Role="FmsDrawingCodeGroup" EntitySet="FmsDrawingCodeGroup" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsDrawin__SiteI__6C6E1476" Association="Self.FK__FmsDrawin__SiteI__6C6E1476">
+            <End Role="CmSite" EntitySet="CmSite" />
+            <End Role="FmsDrawingCodeType" EntitySet="FmsDrawingCodeType" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsDrawin__SiteI__6D6238AF" Association="Self.FK__FmsDrawin__SiteI__6D6238AF">
+            <End Role="CmSite" EntitySet="CmSite" />
+            <End Role="FmsDrawing" EntitySet="FmsDrawing" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsDrawin__SiteI__6F357288" Association="Self.FK__FmsDrawin__SiteI__6F357288">
+            <End Role="CmSite" EntitySet="CmSite" />
+            <End Role="FmsDrawingCodeGroup" EntitySet="FmsDrawingCodeGroup" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsDrawin__SiteI__702996C1" Association="Self.FK__FmsDrawin__SiteI__702996C1">
+            <End Role="CmSite" EntitySet="CmSite" />
+            <End Role="FmsDrawingCodeType" EntitySet="FmsDrawingCodeType" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsDrawing__6E565CE8" Association="Self.FK__FmsDrawing__6E565CE8">
+            <End Role="FmsDrawingCodeGroup" EntitySet="FmsDrawingCodeGroup" />
+            <End Role="FmsDrawing" EntitySet="FmsDrawing" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsDrawing__6F4A8121" Association="Self.FK__FmsDrawing__6F4A8121">
+            <End Role="FmsDrawingCodeType" EntitySet="FmsDrawingCodeType" />
+            <End Role="FmsDrawing" EntitySet="FmsDrawing" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsDrawingHistor__04DA9AE4" Association="Self.FK__FmsDrawingHistor__04DA9AE4">
+            <End Role="CmFile" EntitySet="CmFile" />
+            <End Role="FmsDrawingHistory" EntitySet="FmsDrawingHistory" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsDrawingHistor__7132C993" Association="Self.FK__FmsDrawingHistor__7132C993">
+            <End Role="FmsDrawing" EntitySet="FmsDrawing" />
+            <End Role="FmsDrawingHistory" EntitySet="FmsDrawingHistory" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsDrawingHistory__CmUser" Association="Self.FK__FmsDrawingHistory__CmUser">
+            <End Role="CmUser" EntitySet="CmUser" />
+            <End Role="FmsDrawingHistory" EntitySet="FmsDrawingHistory" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsFacilityCheckItem__FmsWorkCodeCycleUnit" Association="Self.FK__FmsFacilityCheckItem__FmsWorkCodeCycleUnit">
+            <End Role="FmsWorkCodeCycleUnit" EntitySet="FmsWorkCodeCycleUnit" />
+            <End Role="FmsFacilityCheckItem" EntitySet="FmsFacilityCheckItem" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsFacilityCheckItem__FmsWorkCodeWorkType" Association="Self.FK__FmsFacilityCheckItem__FmsWorkCodeWorkType">
+            <End Role="FmsWorkCodeType" EntitySet="FmsWorkCodeType" />
+            <End Role="FmsFacilityCheckItem" EntitySet="FmsFacilityCheckItem" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsFacilityCodeClass__CmSite" Association="Self.FK__FmsFacilityCodeClass__CmSite">
+            <End Role="CmSite" EntitySet="CmSite" />
+            <End Role="FmsFacilityCodeClass" EntitySet="FmsFacilityCodeClass" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsFacilityCodeClass__FmsFacilityCodeClass" Association="Self.FK__FmsFacilityCodeClass__FmsFacilityCodeClass">
+            <End Role="FmsFacilityCodeClass" EntitySet="FmsFacilityCodeClass" />
+            <End Role="FmsFacilityCodeClass1" EntitySet="FmsFacilityCodeClass" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsFacilityOpera__725BF7F6" Association="Self.FK__FmsFacilityOpera__725BF7F6">
+            <End Role="CmFacility" EntitySet="CmFacility" />
+            <End Role="FmsFacilityOperationItem" EntitySet="FmsFacilityOperationItem" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsLicense__CmBusinessField" Association="Self.FK__FmsLicense__CmBusinessField">
+            <End Role="CmBusinessField" EntitySet="CmBusinessField" />
+            <End Role="FmsLicense" EntitySet="FmsLicense" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsLicense__CmSite" Association="Self.FK__FmsLicense__CmSite">
+            <End Role="CmSite" EntitySet="CmSite" />
+            <End Role="FmsLicense" EntitySet="FmsLicense" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsMaterial__FmsMaterialCodeClass_AsFirstClassId" Association="Self.FK__FmsMaterial__FmsMaterialCodeClass_AsFirstClassId">
+            <End Role="FmsMaterialCodeClass" EntitySet="FmsMaterialCodeClass" />
+            <End Role="FmsMaterial" EntitySet="FmsMaterial" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsMaterial__FmsMaterialCodeClass_AsSecondClassId" Association="Self.FK__FmsMaterial__FmsMaterialCodeClass_AsSecondClassId">
+            <End Role="FmsMaterialCodeClass" EntitySet="FmsMaterialCodeClass" />
+            <End Role="FmsMaterial" EntitySet="FmsMaterial" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsMaterial__FmsMaterialCodeClass_AsThirdClassId" Association="Self.FK__FmsMaterial__FmsMaterialCodeClass_AsThirdClassId">
+            <End Role="FmsMaterialCodeClass" EntitySet="FmsMaterialCodeClass" />
+            <End Role="FmsMaterial" EntitySet="FmsMaterial" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsMaterialCarriedForward__CmBusinessField" Association="Self.FK__FmsMaterialCarriedForward__CmBusinessField">
+            <End Role="CmBusinessField" EntitySet="CmBusinessField" />
+            <End Role="FmsMaterialCarriedForward" EntitySet="FmsMaterialCarriedForward" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsMaterialCarriedForward__CmSite" Association="Self.FK__FmsMaterialCarriedForward__CmSite">
+            <End Role="CmSite" EntitySet="CmSite" />
+            <End Role="FmsMaterialCarriedForward" EntitySet="FmsMaterialCarriedForward" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsMaterialCodeClass__CmSite" Association="Self.FK__FmsMaterialCodeClass__CmSite">
+            <End Role="CmSite" EntitySet="CmSite" />
+            <End Role="FmsMaterialCodeClass" EntitySet="FmsMaterialCodeClass" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsMaterialCodeClass__FmsMaterialCodeClass" Association="Self.FK__FmsMaterialCodeClass__FmsMaterialCodeClass">
+            <End Role="FmsMaterialCodeClass" EntitySet="FmsMaterialCodeClass" />
+            <End Role="FmsMaterialCodeClass1" EntitySet="FmsMaterialCodeClass" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsMaterialCodeLocation__CmBusinessField" Association="Self.FK__FmsMaterialCodeLocation__CmBusinessField">
+            <End Role="CmBusinessField" EntitySet="CmBusinessField" />
+            <End Role="FmsMaterialCodeLocation" EntitySet="FmsMaterialCodeLocation" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsMaterialCodeLocation__CmSite" Association="Self.FK__FmsMaterialCodeLocation__CmSite">
+            <End Role="CmSite" EntitySet="CmSite" />
+            <End Role="FmsMaterialCodeLocation" EntitySet="FmsMaterialCodeLocation" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsMaterialCodeType__CmSite" Association="Self.FK__FmsMaterialCodeType__CmSite">
+            <End Role="CmSite" EntitySet="CmSite" />
+            <End Role="FmsMaterialCodeType" EntitySet="FmsMaterialCodeType" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsMaterialOrder__CmBusinessField" Association="Self.FK__FmsMaterialOrder__CmBusinessField">
+            <End Role="CmBusinessField" EntitySet="CmBusinessField" />
+            <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsMaterialOrder__CmSite" Association="Self.FK__FmsMaterialOrder__CmSite">
+            <End Role="CmSite" EntitySet="CmSite" />
+            <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsMaterialOrder__CmUser" Association="Self.FK__FmsMaterialOrder__CmUser">
+            <End Role="CmUser" EntitySet="CmUser" />
+            <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsMaterialPurchaseOrder__CmFile" Association="Self.FK__FmsMaterialPurchaseOrder__CmFile">
+            <End Role="CmFile" EntitySet="CmFile" />
+            <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsMaterialPurchaseOrder__FmsMaterialTradeCompany" Association="Self.FK__FmsMaterialPurchaseOrder__FmsMaterialTradeCompany">
+            <End Role="FmsMaterialTradeCompany" EntitySet="FmsMaterialTradeCompany" />
+            <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsMaterialPurchaseRequest__CmUser_AsRequestUserId" Association="Self.FK__FmsMaterialPurchaseRequest__CmUser_AsRequestUserId">
+            <End Role="CmUser" EntitySet="CmUser" />
+            <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsMaterialPurchaseRequest__CmUser1_AsApprovalUserId" Association="Self.FK__FmsMaterialPurchaseRequest__CmUser1_AsApprovalUserId">
+            <End Role="CmUser" EntitySet="CmUser" />
+            <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsMaterialPurchasingRequest__CmBusinessField" Association="Self.FK__FmsMaterialPurchasingRequest__CmBusinessField">
+            <End Role="CmBusinessField" EntitySet="CmBusinessField" />
+            <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsMaterialPurchasingRequest__CmSite" Association="Self.FK__FmsMaterialPurchasingRequest__CmSite">
+            <End Role="CmSite" EntitySet="CmSite" />
+            <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsMaterialPurchasingRequest__FmsMaterialCodeProcess" Association="Self.FK__FmsMaterialPurchasingRequest__FmsMaterialCodeProcess">
+            <End Role="FmsMaterialCodeProgress" EntitySet="FmsMaterialCodeProgress" />
+            <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsMaterialStored__CmBusinessField" Association="Self.FK__FmsMaterialStored__CmBusinessField">
+            <End Role="CmBusinessField" EntitySet="CmBusinessField" />
+            <End Role="FmsMaterialStored" EntitySet="FmsMaterialStored" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsMaterialStored__CmSite" Association="Self.FK__FmsMaterialStored__CmSite">
+            <End Role="CmSite" EntitySet="CmSite" />
+            <End Role="FmsMaterialStored" EntitySet="FmsMaterialStored" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsMaterialStored__CmUser_AsStoredUserId" Association="Self.FK__FmsMaterialStored__CmUser_AsStoredUserId">
+            <End Role="CmUser" EntitySet="CmUser" />
+            <End Role="FmsMaterialStored" EntitySet="FmsMaterialStored" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsMaterialStored__CmUser1_AsApprovalUserId" Association="Self.FK__FmsMaterialStored__CmUser1_AsApprovalUserId">
+            <End Role="CmUser" EntitySet="CmUser" />
+            <End Role="FmsMaterialStored" EntitySet="FmsMaterialStored" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsMaterialTradeCompany__CmSite" Association="Self.FK__FmsMaterialTradeCompany__CmSite">
+            <End Role="CmSite" EntitySet="CmSite" />
+            <End Role="FmsMaterialTradeCompany" EntitySet="FmsMaterialTradeCompany" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsMaterialWarehouse__CmBusinessField" Association="Self.FK__FmsMaterialWarehouse__CmBusinessField">
+            <End Role="CmBusinessField" EntitySet="CmBusinessField" />
+            <End Role="FmsMaterialWarehouse" EntitySet="FmsMaterialWarehouse" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsMaterialWarehouse__CmSite" Association="Self.FK__FmsMaterialWarehouse__CmSite">
+            <End Role="CmSite" EntitySet="CmSite" />
+            <End Role="FmsMaterialWarehouse" EntitySet="FmsMaterialWarehouse" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsWorkCodeCauseClass__CmSite" Association="Self.FK__FmsWorkCodeCauseClass__CmSite">
+            <End Role="CmSite" EntitySet="CmSite" />
+            <End Role="FmsWorkCodeCauseClass" EntitySet="FmsWorkCodeCauseClass" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsWorkCodeCycleUnit__CmSite" Association="Self.FK__FmsWorkCodeCycleUnit__CmSite">
+            <End Role="CmSite" EntitySet="CmSite" />
+            <End Role="FmsWorkCodeCycleUnit" EntitySet="FmsWorkCodeCycleUnit" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsWorkCodeEmergency__CmSite" Association="Self.FK__FmsWorkCodeEmergency__CmSite">
+            <End Role="CmSite" EntitySet="CmSite" />
+            <End Role="FmsWorkCodeEmergency" EntitySet="FmsWorkCodeEmergency" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsWorkCodeHolidayWorkType__CmSite" Association="Self.FK__FmsWorkCodeHolidayWorkType__CmSite">
+            <End Role="CmSite" EntitySet="CmSite" />
+            <End Role="FmsWorkCodeHolidayWorkType" EntitySet="FmsWorkCodeHolidayWorkType" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsWorkCodeLegalInspectionAgency__CmSite" Association="Self.FK__FmsWorkCodeLegalInspectionAgency__CmSite">
+            <End Role="CmSite" EntitySet="CmSite" />
+            <End Role="FmsWorkCodeLegalInspectionAgency" EntitySet="FmsWorkCodeLegalInspectionAgency" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsWorkOrder__CmBusinessField" Association="Self.FK__FmsWorkOrder__CmBusinessField">
+            <End Role="CmBusinessField" EntitySet="CmBusinessField" />
+            <End Role="FmsWorkOrder" EntitySet="FmsWorkOrder" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsWorkOrder__CmSite" Association="Self.FK__FmsWorkOrder__CmSite">
+            <End Role="CmSite" EntitySet="CmSite" />
+            <End Role="FmsWorkOrder" EntitySet="FmsWorkOrder" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsWorkOrder__CmUser" Association="Self.FK__FmsWorkOrder__CmUser">
+            <End Role="CmUser" EntitySet="CmUser" />
+            <End Role="FmsWorkOrder" EntitySet="FmsWorkOrder" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsWorkOrder__FmsWorkCodeEmergency" Association="Self.FK__FmsWorkOrder__FmsWorkCodeEmergency">
+            <End Role="FmsWorkCodeEmergency" EntitySet="FmsWorkCodeEmergency" />
+            <End Role="FmsWorkOrder" EntitySet="FmsWorkOrder" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsWorkOrder__FmsWorkRequest" Association="Self.FK__FmsWorkOrder__FmsWorkRequest">
+            <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
+            <End Role="FmsWorkOrder" EntitySet="FmsWorkOrder" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsWorkOrderToFacility__FmsWorkOrder" Association="Self.FK__FmsWorkOrderToFacility__FmsWorkOrder">
+            <End Role="FmsWorkOrder" EntitySet="FmsWorkOrder" />
+            <End Role="FmsWorkOrderToFacility" EntitySet="FmsWorkOrderToFacility" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsWorkRequest__CmBusinessField" Association="Self.FK__FmsWorkRequest__CmBusinessField">
+            <End Role="CmBusinessField" EntitySet="CmBusinessField" />
+            <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsWorkRequest__CmSite" Association="Self.FK__FmsWorkRequest__CmSite">
+            <End Role="CmSite" EntitySet="CmSite" />
+            <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsWorkRequest__CmUser_AsRequestUserId" Association="Self.FK__FmsWorkRequest__CmUser_AsRequestUserId">
+            <End Role="CmUser" EntitySet="CmUser" />
+            <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsWorkRequest__CmUser1_AsRejectUserId" Association="Self.FK__FmsWorkRequest__CmUser1_AsRejectUserId">
+            <End Role="CmUser" EntitySet="CmUser" />
+            <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsWorkRequest__FmsWorkCodeProgress" Association="Self.FK__FmsWorkRequest__FmsWorkCodeProgress">
+            <End Role="FmsWorkCodeProgress" EntitySet="FmsWorkCodeProgress" />
+            <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsWorkRequest__FmsWorkCodeWorkType" Association="Self.FK__FmsWorkRequest__FmsWorkCodeWorkType">
+            <End Role="FmsWorkCodeType" EntitySet="FmsWorkCodeType" />
+            <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsWorkRequest__FmsWorkSchedule" Association="Self.FK__FmsWorkRequest__FmsWorkSchedule">
+            <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
+            <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsWorkRequestToFacility__FmsWorkRequest" Association="Self.FK__FmsWorkRequestToFacility__FmsWorkRequest">
+            <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
+            <End Role="FmsWorkRequestToFacility" EntitySet="FmsWorkRequestToFacility" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsWorkResult__CmUser_AsWorkerUserId" Association="Self.FK__FmsWorkResult__CmUser_AsWorkerUserId">
+            <End Role="CmUser" EntitySet="CmUser" />
+            <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsWorkResult__CmUser1_AsConfirmedUserId" Association="Self.FK__FmsWorkResult__CmUser1_AsConfirmedUserId">
+            <End Role="CmUser" EntitySet="CmUser" />
+            <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsWorkResult__FmsWorkCodeCauseClass" Association="Self.FK__FmsWorkResult__FmsWorkCodeCauseClass">
+            <End Role="FmsWorkCodeCauseClass" EntitySet="FmsWorkCodeCauseClass" />
+            <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsWorkResult__FmsWorkOrder" Association="Self.FK__FmsWorkResult__FmsWorkOrder">
+            <End Role="FmsWorkOrder" EntitySet="FmsWorkOrder" />
+            <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsWorkResult__FmsWorkRequest" Association="Self.FK__FmsWorkResult__FmsWorkRequest">
+            <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
+            <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsWorkResultCheckItem__CmFacility" Association="Self.FK__FmsWorkResultCheckItem__CmFacility">
+            <End Role="CmFacility" EntitySet="CmFacility" />
+            <End Role="FmsWorkResultCheckItem" EntitySet="FmsWorkResultCheckItem" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsWorkResultCheckItem__FmsFacilityCheckItem" Association="Self.FK__FmsWorkResultCheckItem__FmsFacilityCheckItem">
+            <End Role="FmsFacilityCheckItem" EntitySet="FmsFacilityCheckItem" />
+            <End Role="FmsWorkResultCheckItem" EntitySet="FmsWorkResultCheckItem" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsWorkResultCheckItem__FmsWorkResult" Association="Self.FK__FmsWorkResultCheckItem__FmsWorkResult">
+            <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
+            <End Role="FmsWorkResultCheckItem" EntitySet="FmsWorkResultCheckItem" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsWorkResultFile__CmFile" Association="Self.FK__FmsWorkResultFile__CmFile">
+            <End Role="CmFile" EntitySet="CmFile" />
+            <End Role="FmsWorkResultFile" EntitySet="FmsWorkResultFile" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsWorkResultFile__FmsWorkResult" Association="Self.FK__FmsWorkResultFile__FmsWorkResult">
+            <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
+            <End Role="FmsWorkResultFile" EntitySet="FmsWorkResultFile" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsWorkResultLaw__FmsWorkResult" Association="Self.FK__FmsWorkResultLaw__FmsWorkResult">
+            <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
+            <End Role="FmsWorkResultLaw" EntitySet="FmsWorkResultLaw" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsWorkResultToFacility__CmFacility" Association="Self.FK__FmsWorkResultToFacility__CmFacility">
+            <End Role="CmFacility" EntitySet="CmFacility" />
+            <End Role="FmsWorkResultToFacility" EntitySet="FmsWorkResultToFacility" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsWorkResultToFacility__FmsWorkOrder" Association="Self.FK__FmsWorkResultToFacility__FmsWorkOrder">
+            <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
+            <End Role="FmsWorkResultToFacility" EntitySet="FmsWorkResultToFacility" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsWorkSchedule__CmBusinessField" Association="Self.FK__FmsWorkSchedule__CmBusinessField">
+            <End Role="CmBusinessField" EntitySet="CmBusinessField" />
+            <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsWorkSchedule__CmUser" Association="Self.FK__FmsWorkSchedule__CmUser">
+            <End Role="CmUser" EntitySet="CmUser" />
+            <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsWorkSchedule__FmsWorkCodeCycleUnit" Association="Self.FK__FmsWorkSchedule__FmsWorkCodeCycleUnit">
+            <End Role="FmsWorkCodeCycleUnit" EntitySet="FmsWorkCodeCycleUnit" />
+            <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsWorkSchedule__FmsWorkCodeHolidayWorkType" Association="Self.FK__FmsWorkSchedule__FmsWorkCodeHolidayWorkType">
+            <End Role="FmsWorkCodeHolidayWorkType" EntitySet="FmsWorkCodeHolidayWorkType" />
+            <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsWorkSchedule__FmsWorkCodeWorkType" Association="Self.FK__FmsWorkSchedule__FmsWorkCodeWorkType">
+            <End Role="FmsWorkCodeType" EntitySet="FmsWorkCodeType" />
+            <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsWorkScheduleToFacility__FmsWorkSchedule" Association="Self.FK__FmsWorkScheduleToFacility__FmsWorkSchedule">
+            <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
+            <End Role="FmsWorkScheduleToFacility" EntitySet="FmsWorkScheduleToFacility" />
+          </AssociationSet>
+          <AssociationSet Name="FK_BemsAlarmLog_BemsAlarmSetting" Association="Self.FK_BemsAlarmLog_BemsAlarmSetting">
+            <End Role="BemsAlarmSetting" EntitySet="BemsAlarmSetting" />
+            <End Role="BemsAlarmLog" EntitySet="BemsAlarmLog" />
+          </AssociationSet>
+          <AssociationSet Name="FK_BemsAlarmSetting_BemsFacilityType" Association="Self.FK_BemsAlarmSetting_BemsFacilityType">
+            <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
+            <End Role="BemsAlarmSetting" EntitySet="BemsAlarmSetting" />
+          </AssociationSet>
+          <AssociationSet Name="FK_BemsAlarmSetting_CmFacility" Association="Self.FK_BemsAlarmSetting_CmFacility">
+            <End Role="CmFacility" EntitySet="CmFacility" />
+            <End Role="BemsAlarmSetting" EntitySet="BemsAlarmSetting" />
+          </AssociationSet>
+          <AssociationSet Name="FK_BemsAlarmSetting_CmSite1" Association="Self.FK_BemsAlarmSetting_CmSite1">
+            <End Role="CmSite" EntitySet="CmSite" />
+            <End Role="BemsAlarmSetting" EntitySet="BemsAlarmSetting" />
+          </AssociationSet>
+          <AssociationSet Name="FK_BemsChartInfo_BemsFacilityType" Association="Self.FK_BemsChartInfo_BemsFacilityType">
+            <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
+            <End Role="BemsChartInfo" EntitySet="BemsChartInfo" />
+          </AssociationSet>
+          <AssociationSet Name="FK_BemsChartInfo_CmSite" Association="Self.FK_BemsChartInfo_CmSite">
+            <End Role="CmSite" EntitySet="CmSite" />
+            <End Role="BemsChartInfo" EntitySet="BemsChartInfo" />
+          </AssociationSet>
+          <AssociationSet Name="FK_BemsControlPointHistory_BemsFacilityType" Association="Self.FK_BemsControlPointHistory_BemsFacilityType">
+            <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
+            <End Role="BemsControlPointHistory" EntitySet="BemsControlPointHistory" />
+          </AssociationSet>
+          <AssociationSet Name="FK_BemsControlPointHistory_BemsMonitoringPoint" Association="Self.FK_BemsControlPointHistory_BemsMonitoringPoint">
+            <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
+            <End Role="BemsControlPointHistory" EntitySet="BemsControlPointHistory" />
+          </AssociationSet>
+          <AssociationSet Name="FK_BemsEnergyCost_CmFacility" Association="Self.FK_BemsEnergyCost_CmFacility">
+            <End Role="CmFacility" EntitySet="CmFacility" />
+            <End Role="BemsEnergyCost" EntitySet="BemsEnergyCost" />
+          </AssociationSet>
+          <AssociationSet Name="FK_BemsEnergyDailyRegression_CmSite" Association="Self.FK_BemsEnergyDailyRegression_CmSite">
+            <End Role="CmSite" EntitySet="CmSite" />
+            <End Role="BemsEnergyDailyRegression" EntitySet="BemsEnergyDailyRegression" />
+          </AssociationSet>
+          <AssociationSet Name="FK_BemsFormulaParameter_CmFacility" Association="Self.FK_BemsFormulaParameter_CmFacility">
+            <End Role="CmFacility" EntitySet="CmFacility" />
+            <End Role="BemsFormulaParameter" EntitySet="BemsFormulaParameter" />
+          </AssociationSet>
+          <AssociationSet Name="FK_BemsMonitoringPoint_BemsFacilityType" Association="Self.FK_BemsMonitoringPoint_BemsFacilityType">
+            <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
+            <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
+          </AssociationSet>
+          <AssociationSet Name="FK_BemsMonitoringPoint_CmFacility" Association="Self.FK_BemsMonitoringPoint_CmFacility">
+            <End Role="CmFacility" EntitySet="CmFacility" />
+            <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
+          </AssociationSet>
+          <AssociationSet Name="FK_BemsMonitoringPointConfig_BemsFacilityType1" Association="Self.FK_BemsMonitoringPointConfig_BemsFacilityType1">
+            <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
+            <End Role="BemsMonitoringPointConfig" EntitySet="BemsMonitoringPointConfig" />
+          </AssociationSet>
+          <AssociationSet Name="FK_BemsMonitoringPointConfig_BemsMonitoringPoint" Association="Self.FK_BemsMonitoringPointConfig_BemsMonitoringPoint">
+            <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
+            <End Role="BemsMonitoringPointConfig" EntitySet="BemsMonitoringPointConfig" />
+          </AssociationSet>
+          <AssociationSet Name="FK_BemsPeakFacility_CmFacility" Association="Self.FK_BemsPeakFacility_CmFacility">
+            <End Role="CmFacility" EntitySet="CmFacility" />
+            <End Role="BemsPeakFacility" EntitySet="BemsPeakFacility" />
+          </AssociationSet>
+          <AssociationSet Name="FK_BemsPeakHIstory_CmSite" Association="Self.FK_BemsPeakHIstory_CmSite">
+            <End Role="CmSite" EntitySet="CmSite" />
+            <End Role="BemsPeakHistory" EntitySet="BemsPeakHistory" />
+          </AssociationSet>
+          <AssociationSet Name="FK_BemsPeakInfo_CmSite" Association="Self.FK_BemsPeakInfo_CmSite">
+            <End Role="CmSite" EntitySet="CmSite" />
+            <End Role="BemsPeakInfo" EntitySet="BemsPeakInfo" />
+          </AssociationSet>
+          <AssociationSet Name="FK_BemsPeopleIncrease_CmSite" Association="Self.FK_BemsPeopleIncrease_CmSite">
+            <End Role="CmSite" EntitySet="CmSite" />
+            <End Role="BemsPeopleIncrease" EntitySet="BemsPeopleIncrease" />
+          </AssociationSet>
+          <AssociationSet Name="FK_BemsPriceCode_BemsFuelType" Association="Self.FK_BemsPriceCode_BemsFuelType">
+            <End Role="BemsFuelType" EntitySet="BemsFuelType" />
+            <End Role="BemsPriceCode" EntitySet="BemsPriceCode" />
+          </AssociationSet>
+          <AssociationSet Name="FK_BemsPriceFormula_BemsFormula" Association="Self.FK_BemsPriceFormula_BemsFormula">
+            <End Role="BemsFormula" EntitySet="BemsFormula" />
+            <End Role="BemsPriceFormula" EntitySet="BemsPriceFormula" />
+          </AssociationSet>
+          <AssociationSet Name="FK_BemsPriceFormula_BemsPriceType" Association="Self.FK_BemsPriceFormula_BemsPriceType">
+            <End Role="BemsPriceType" EntitySet="BemsPriceType" />
+            <End Role="BemsPriceFormula" EntitySet="BemsPriceFormula" />
+          </AssociationSet>
+          <AssociationSet Name="FK_BemsPriceMeta_BemsPriceType" Association="Self.FK_BemsPriceMeta_BemsPriceType">
+            <End Role="BemsPriceType" EntitySet="BemsPriceType" />
+            <End Role="BemsPriceMeta" EntitySet="BemsPriceMeta" />
+          </AssociationSet>
+          <AssociationSet Name="FK_BemsPriceType_BemsFuelType1" Association="Self.FK_BemsPriceType_BemsFuelType1">
+            <End Role="BemsFuelType" EntitySet="BemsFuelType" />
+            <End Role="BemsPriceType" EntitySet="BemsPriceType" />
+          </AssociationSet>
+          <AssociationSet Name="FK_BemsRentalRate_CmSite" Association="Self.FK_BemsRentalRate_CmSite">
+            <End Role="CmSite" EntitySet="CmSite" />
+            <End Role="BemsRentalRate" EntitySet="BemsRentalRate" />
+          </AssociationSet>
+          <AssociationSet Name="FK_BemsSitePrice_BemsFuelType" Association="Self.FK_BemsSitePrice_BemsFuelType">
+            <End Role="BemsFuelType" EntitySet="BemsFuelType" />
+            <End Role="BemsSitePrice" EntitySet="BemsSitePrice" />
+          </AssociationSet>
+          <AssociationSet Name="FK_BemsSitePrice_BemsPriceCode" Association="Self.FK_BemsSitePrice_BemsPriceCode">
+            <End Role="BemsPriceCode" EntitySet="BemsPriceCode" />
+            <End Role="BemsSitePrice" EntitySet="BemsSitePrice" />
+          </AssociationSet>
+          <AssociationSet Name="FK_BemsSitePrice_BemsPriceType" Association="Self.FK_BemsSitePrice_BemsPriceType">
+            <End Role="BemsPriceType" EntitySet="BemsPriceType" />
+            <End Role="BemsSitePrice" EntitySet="BemsSitePrice" />
+          </AssociationSet>
+          <AssociationSet Name="FK_BemsSitePrice_CmSite1" Association="Self.FK_BemsSitePrice_CmSite1">
+            <End Role="CmSite" EntitySet="CmSite" />
+            <End Role="BemsSitePrice" EntitySet="BemsSitePrice" />
+          </AssociationSet>
+          <AssociationSet Name="FK_BemsSitePriceHistory_BemsFuelType" Association="Self.FK_BemsSitePriceHistory_BemsFuelType">
+            <End Role="BemsFuelType" EntitySet="BemsFuelType" />
+            <End Role="BemsSitePriceHistory" EntitySet="BemsSitePriceHistory" />
+          </AssociationSet>
+          <AssociationSet Name="FK_BemsSitePriceHistory_BemsPriceCode" Association="Self.FK_BemsSitePriceHistory_BemsPriceCode">
+            <End Role="BemsPriceCode" EntitySet="BemsPriceCode" />
+            <End Role="BemsSitePriceHistory" EntitySet="BemsSitePriceHistory" />
+          </AssociationSet>
+          <AssociationSet Name="FK_BemsSitePriceHistory_BemsPriceType" Association="Self.FK_BemsSitePriceHistory_BemsPriceType">
+            <End Role="BemsPriceType" EntitySet="BemsPriceType" />
+            <End Role="BemsSitePriceHistory" EntitySet="BemsSitePriceHistory" />
+          </AssociationSet>
+          <AssociationSet Name="FK_BemsSitePriceHistory_CmSite" Association="Self.FK_BemsSitePriceHistory_CmSite">
+            <End Role="CmSite" EntitySet="CmSite" />
+            <End Role="BemsSitePriceHistory" EntitySet="BemsSitePriceHistory" />
+          </AssociationSet>
+          <AssociationSet Name="FK_CmAnnouncement_CmBusinessField" Association="Self.FK_CmAnnouncement_CmBusinessField">
+            <End Role="CmBusinessField" EntitySet="CmBusinessField" />
+            <End Role="CmAnnouncement" EntitySet="CmAnnouncement" />
+          </AssociationSet>
+          <AssociationSet Name="FK_CmAnnouncement_CmFile" Association="Self.FK_CmAnnouncement_CmFile">
+            <End Role="CmFile" EntitySet="CmFile" />
+            <End Role="CmAnnouncement" EntitySet="CmAnnouncement" />
+          </AssociationSet>
+          <AssociationSet Name="FK_CmAnnouncement_CmUser" Association="Self.FK_CmAnnouncement_CmUser">
+            <End Role="CmUser" EntitySet="CmUser" />
+            <End Role="CmAnnouncement" EntitySet="CmAnnouncement" />
+          </AssociationSet>
+          <AssociationSet Name="FK_CmFacilityTempSet_CmFacility" Association="Self.FK_CmFacilityTempSet_CmFacility">
+            <End Role="CmFacility" EntitySet="CmFacility" />
+            <End Role="CmFacilityTempSet" EntitySet="CmFacilityTempSet" />
+          </AssociationSet>
+          <AssociationSet Name="FK_CmFacilityTempSet_CmSite" Association="Self.FK_CmFacilityTempSet_CmSite">
+            <End Role="CmSite" EntitySet="CmSite" />
+            <End Role="CmFacilityTempSet" EntitySet="CmFacilityTempSet" />
+          </AssociationSet>
+          <AssociationSet Name="FK_CmMenu_CmSite" Association="Self.FK_CmMenu_CmSite">
+            <End Role="CmSite" EntitySet="CmSite" />
+            <End Role="CmMenu" EntitySet="CmMenu" />
+          </AssociationSet>
+          <AssociationSet Name="FK_CmPartnerType_CmPartner" Association="Self.FK_CmPartnerType_CmPartner">
+            <End Role="CmPartnerType" EntitySet="CmPartnerType" />
+            <End Role="CmPartner" EntitySet="CmPartner" />
+          </AssociationSet>
+          <AssociationSet Name="FK_CmPatrolCourse_CmSite" Association="Self.FK_CmPatrolCourse_CmSite">
+            <End Role="CmSite" EntitySet="CmSite" />
+            <End Role="CmPatrolCourse" EntitySet="CmPatrolCourse" />
+          </AssociationSet>
+          <AssociationSet Name="FK_CmPatrolCoursePos_CmPatrolCourse" Association="Self.FK_CmPatrolCoursePos_CmPatrolCourse">
+            <End Role="CmPatrolCourse" EntitySet="CmPatrolCourse" />
+            <End Role="CmPatrolCoursePos" EntitySet="CmPatrolCoursePos" />
+          </AssociationSet>
+          <AssociationSet Name="FK_CmPatrolCoursePos_CmSite" Association="Self.FK_CmPatrolCoursePos_CmSite">
+            <End Role="CmSite" EntitySet="CmSite" />
+            <End Role="CmPatrolCoursePos" EntitySet="CmPatrolCoursePos" />
+          </AssociationSet>
+          <AssociationSet Name="FK_CmPatrolGroup_CmSite" Association="Self.FK_CmPatrolGroup_CmSite">
+            <End Role="CmSite" EntitySet="CmSite" />
+            <End Role="CmPatrolGroup" EntitySet="CmPatrolGroup" />
+          </AssociationSet>
+          <AssociationSet Name="FK_CmPatrolGroupUser_CmPatrolGroup" Association="Self.FK_CmPatrolGroupUser_CmPatrolGroup">
+            <End Role="CmPatrolGroup" EntitySet="CmPatrolGroup" />
+            <End Role="CmPatrolGroupUser" EntitySet="CmPatrolGroupUser" />
+          </AssociationSet>
+          <AssociationSet Name="FK_CmPatrolGroupUser_CmUser" Association="Self.FK_CmPatrolGroupUser_CmUser">
+            <End Role="CmUser" EntitySet="CmUser" />
+            <End Role="CmPatrolGroupUser" EntitySet="CmPatrolGroupUser" />
+          </AssociationSet>
+          <AssociationSet Name="FK_CmPatrolHistory_CmPatrolSchedule" Association="Self.FK_CmPatrolHistory_CmPatrolSchedule">
+            <End Role="CmPatrolSchedule" EntitySet="CmPatrolSchedule" />
+            <End Role="CmPatrolHistory" EntitySet="CmPatrolHistory" />
+          </AssociationSet>
+          <AssociationSet Name="FK_CmPatrolHistory_CmPatrolType" Association="Self.FK_CmPatrolHistory_CmPatrolType">
+            <End Role="CmPatrolType" EntitySet="CmPatrolType" />
+            <End Role="CmPatrolHistory" EntitySet="CmPatrolHistory" />
+          </AssociationSet>
+          <AssociationSet Name="FK_CmPatrolHistory_CmSite" Association="Self.FK_CmPatrolHistory_CmSite">
+            <End Role="CmSite" EntitySet="CmSite" />
+            <End Role="CmPatrolHistory" EntitySet="CmPatrolHistory" />
+          </AssociationSet>
+          <AssociationSet Name="FK_CmPatrolHistoryPos_CmPatrolPos" Association="Self.FK_CmPatrolHistoryPos_CmPatrolPos">
+            <End Role="CmPatrolPos" EntitySet="CmPatrolPos" />
+            <End Role="CmPatrolHistoryPos" EntitySet="CmPatrolHistoryPos" />
+          </AssociationSet>
+          <AssociationSet Name="FK_CmPatrolHistoryPos_CmPatrolType" Association="Self.FK_CmPatrolHistoryPos_CmPatrolType">
+            <End Role="CmPatrolType" EntitySet="CmPatrolType" />
+            <End Role="CmPatrolHistoryPos" EntitySet="CmPatrolHistoryPos" />
+          </AssociationSet>
+          <AssociationSet Name="FK_CmPatrolHistoryPos_CmSite" Association="Self.FK_CmPatrolHistoryPos_CmSite">
+            <End Role="CmSite" EntitySet="CmSite" />
+            <End Role="CmPatrolHistoryPos" EntitySet="CmPatrolHistoryPos" />
+          </AssociationSet>
+          <AssociationSet Name="FK_CmPatrolPlan_CmPatrolCourse" Association="Self.FK_CmPatrolPlan_CmPatrolCourse">
+            <End Role="CmPatrolCourse" EntitySet="CmPatrolCourse" />
+            <End Role="CmPatrolPlan" EntitySet="CmPatrolPlan" />
+          </AssociationSet>
+          <AssociationSet Name="FK_CmPatrolPlan_CmPatrolGroup" Association="Self.FK_CmPatrolPlan_CmPatrolGroup">
+            <End Role="CmPatrolGroup" EntitySet="CmPatrolGroup" />
+            <End Role="CmPatrolPlan" EntitySet="CmPatrolPlan" />
+          </AssociationSet>
+          <AssociationSet Name="FK_CmPatrolPlan_CmSite" Association="Self.FK_CmPatrolPlan_CmSite">
+            <End Role="CmSite" EntitySet="CmSite" />
+            <End Role="CmPatrolPlan" EntitySet="CmPatrolPlan" />
+          </AssociationSet>
+          <AssociationSet Name="FK_CmPatrolPos_CmBuilding" Association="Self.FK_CmPatrolPos_CmBuilding">
+            <End Role="CmBuilding" EntitySet="CmBuilding" />
+            <End Role="CmPatrolPos" EntitySet="CmPatrolPos" />
+          </AssociationSet>
+          <AssociationSet Name="FK_CmPatrolPos_CmFloor" Association="Self.FK_CmPatrolPos_CmFloor">
+            <End Role="CmFloor" EntitySet="CmFloor" />
+            <End Role="CmPatrolPos" EntitySet="CmPatrolPos" />
+          </AssociationSet>
+          <AssociationSet Name="FK_CmPatrolPos_CmSite" Association="Self.FK_CmPatrolPos_CmSite">
+            <End Role="CmSite" EntitySet="CmSite" />
+            <End Role="CmPatrolPos" EntitySet="CmPatrolPos" />
+          </AssociationSet>
+          <AssociationSet Name="FK_CmPatrolSchedule_CmPatrolPlan" Association="Self.FK_CmPatrolSchedule_CmPatrolPlan">
+            <End Role="CmPatrolPlan" EntitySet="CmPatrolPlan" />
+            <End Role="CmPatrolSchedule" EntitySet="CmPatrolSchedule" />
+          </AssociationSet>
+          <AssociationSet Name="FK_CmPatrolSchedule_CmSite" Association="Self.FK_CmPatrolSchedule_CmSite">
+            <End Role="CmSite" EntitySet="CmSite" />
+            <End Role="CmPatrolSchedule" EntitySet="CmPatrolSchedule" />
+          </AssociationSet>
+          <AssociationSet Name="FK_CmPatrolType_CmSite" Association="Self.FK_CmPatrolType_CmSite">
+            <End Role="CmSite" EntitySet="CmSite" />
+            <End Role="CmPatrolType" EntitySet="CmPatrolType" />
+          </AssociationSet>
+          <AssociationSet Name="FK_CmUser_CmBusinessField" Association="Self.FK_CmUser_CmBusinessField">
+            <End Role="CmBusinessField" EntitySet="CmBusinessField" />
+            <End Role="CmUser" EntitySet="CmUser" />
+          </AssociationSet>
+          <AssociationSet Name="FK_CmUser_CmCompany" Association="Self.FK_CmUser_CmCompany">
+            <End Role="CmCompany" EntitySet="CmCompany" />
+            <End Role="CmUser" EntitySet="CmUser" />
+          </AssociationSet>
+          <AssociationSet Name="FK_CmUser_CmDepartment" Association="Self.FK_CmUser_CmDepartment">
+            <End Role="CmDepartment" EntitySet="CmDepartment" />
+            <End Role="CmUser" EntitySet="CmUser" />
+          </AssociationSet>
+          <AssociationSet Name="FK_CmUser_CmPosition" Association="Self.FK_CmUser_CmPosition">
+            <End Role="CmPosition" EntitySet="CmPosition" />
+            <End Role="CmUser" EntitySet="CmUser" />
+          </AssociationSet>
+          <AssociationSet Name="FK_CmUser_CmUserGroup" Association="Self.FK_CmUser_CmUserGroup">
+            <End Role="CmUserGroup" EntitySet="CmUserGroup" />
+            <End Role="CmUser" EntitySet="CmUser" />
+          </AssociationSet>
+          <AssociationSet Name="FK_CmUserLoginHistory_CmUser" Association="Self.FK_CmUserLoginHistory_CmUser">
+            <End Role="CmUser" EntitySet="CmUser" />
+            <End Role="CmUserLoginHistory" EntitySet="CmUserLoginHistory" />
+          </AssociationSet>
+          <AssociationSet Name="FK_CmZoneTempHumiSet_CmBuilding" Association="Self.FK_CmZoneTempHumiSet_CmBuilding">
+            <End Role="CmBuilding" EntitySet="CmBuilding" />
+            <End Role="CmZoneTempHumiSet" EntitySet="CmZoneTempHumiSet" />
+          </AssociationSet>
+          <AssociationSet Name="FK_CmZoneTempHumiSet_CmFloor" Association="Self.FK_CmZoneTempHumiSet_CmFloor">
+            <End Role="CmFloor" EntitySet="CmFloor" />
+            <End Role="CmZoneTempHumiSet" EntitySet="CmZoneTempHumiSet" />
+          </AssociationSet>
+          <AssociationSet Name="FK_CmZoneTempHumiSet_CmSite" Association="Self.FK_CmZoneTempHumiSet_CmSite">
+            <End Role="CmSite" EntitySet="CmSite" />
+            <End Role="CmZoneTempHumiSet" EntitySet="CmZoneTempHumiSet" />
+          </AssociationSet>
+          <AssociationSet Name="FK_CmZoneTempHumiSet_CmZone" Association="Self.FK_CmZoneTempHumiSet_CmZone">
+            <End Role="CmZone" EntitySet="CmZone" />
+            <End Role="CmZoneTempHumiSet" EntitySet="CmZoneTempHumiSet" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsAccident_CmCompany" Association="Self.FK_FmsAccident_CmCompany">
+            <End Role="CmCompany" EntitySet="CmCompany" />
+            <End Role="FmsAccident" EntitySet="FmsAccident" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsAccident_CmDepartment" Association="Self.FK_FmsAccident_CmDepartment">
+            <End Role="CmDepartment" EntitySet="CmDepartment" />
+            <End Role="FmsAccident" EntitySet="FmsAccident" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsAccident_CmFile1" Association="Self.FK_FmsAccident_CmFile1">
+            <End Role="CmFile" EntitySet="CmFile" />
+            <End Role="FmsAccident" EntitySet="FmsAccident" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsAccident_CmFile2" Association="Self.FK_FmsAccident_CmFile2">
+            <End Role="CmFile" EntitySet="CmFile" />
+            <End Role="FmsAccident" EntitySet="FmsAccident" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsAccident_CmFile3" Association="Self.FK_FmsAccident_CmFile3">
+            <End Role="CmFile" EntitySet="CmFile" />
+            <End Role="FmsAccident" EntitySet="FmsAccident" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsAccident_FmsAccidentCodeType" Association="Self.FK_FmsAccident_FmsAccidentCodeType">
+            <End Role="FmsAccidentCodeType" EntitySet="FmsAccidentCodeType" />
+            <End Role="FmsAccident" EntitySet="FmsAccident" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsBudgetDetail_FmsBudget" Association="Self.FK_FmsBudgetDetail_FmsBudget">
+            <End Role="FmsBudget" EntitySet="FmsBudget" />
+            <End Role="FmsBudgetDetail" EntitySet="FmsBudgetDetail" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsBudgetDetail_FmsBudgetCodeClass" Association="Self.FK_FmsBudgetDetail_FmsBudgetCodeClass">
+            <End Role="FmsBudgetCodeClass" EntitySet="FmsBudgetCodeClass" />
+            <End Role="FmsBudgetDetail" EntitySet="FmsBudgetDetail" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsBudgetDetailExecution_FmsBudgetDetail" Association="Self.FK_FmsBudgetDetailExecution_FmsBudgetDetail">
+            <End Role="FmsBudgetDetail" EntitySet="FmsBudgetDetail" />
+            <End Role="FmsBudgetDetailExecution" EntitySet="FmsBudgetDetailExecution" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsConstruction_CmFile1" Association="Self.FK_FmsConstruction_CmFile1">
+            <End Role="CmFile" EntitySet="CmFile" />
+            <End Role="FmsConstruction" EntitySet="FmsConstruction" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsConstruction_CmFile2" Association="Self.FK_FmsConstruction_CmFile2">
+            <End Role="CmFile" EntitySet="CmFile" />
+            <End Role="FmsConstruction" EntitySet="FmsConstruction" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsConstruction_CmFile3" Association="Self.FK_FmsConstruction_CmFile3">
+            <End Role="CmFile" EntitySet="CmFile" />
+            <End Role="FmsConstruction" EntitySet="FmsConstruction" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsConstruction_CmPartner" Association="Self.FK_FmsConstruction_CmPartner">
+            <End Role="CmPartner" EntitySet="CmPartner" />
+            <End Role="FmsConstruction" EntitySet="FmsConstruction" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsConstruction_FmsConstructionCodeProgress" Association="Self.FK_FmsConstruction_FmsConstructionCodeProgress">
+            <End Role="FmsConstructionCodeProgress" EntitySet="FmsConstructionCodeProgress" />
+            <End Role="FmsConstruction" EntitySet="FmsConstruction" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsConstruction_FmsConstructionCodeType" Association="Self.FK_FmsConstruction_FmsConstructionCodeType">
+            <End Role="FmsConstructionCodeType" EntitySet="FmsConstructionCodeType" />
+            <End Role="FmsConstruction" EntitySet="FmsConstruction" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsConstructionEstimation_CmUser" Association="Self.FK_FmsConstructionEstimation_CmUser">
+            <End Role="CmUser" EntitySet="CmUser" />
+            <End Role="FmsConstructionEstimation" EntitySet="FmsConstructionEstimation" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsConstructionEstimation_FmsConstruction" Association="Self.FK_FmsConstructionEstimation_FmsConstruction">
+            <End Role="FmsConstruction" EntitySet="FmsConstruction" />
+            <End Role="FmsConstructionEstimation" EntitySet="FmsConstructionEstimation" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsContract_CmPartner" Association="Self.FK_FmsContract_CmPartner">
+            <End Role="CmPartner" EntitySet="CmPartner" />
+            <End Role="FmsContract" EntitySet="FmsContract" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsContract_CmPartnerType" Association="Self.FK_FmsContract_CmPartnerType">
+            <End Role="CmPartnerType" EntitySet="CmPartnerType" />
+            <End Role="FmsContract" EntitySet="FmsContract" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsContract_FmsContractClass" Association="Self.FK_FmsContract_FmsContractClass">
+            <End Role="FmsContractClass" EntitySet="FmsContractClass" />
+            <End Role="FmsContract" EntitySet="FmsContract" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsContract_FmsContractMethod" Association="Self.FK_FmsContract_FmsContractMethod">
+            <End Role="FmsContractMethod" EntitySet="FmsContractMethod" />
+            <End Role="FmsContract" EntitySet="FmsContract" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsContract_FmsContractType" Association="Self.FK_FmsContract_FmsContractType">
+            <End Role="FmsContractType" EntitySet="FmsContractType" />
+            <End Role="FmsContract" EntitySet="FmsContract" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsContract_FmsPaymentType" Association="Self.FK_FmsContract_FmsPaymentType">
+            <End Role="FmsPaymentType" EntitySet="FmsPaymentType" />
+            <End Role="FmsContract" EntitySet="FmsContract" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsDailyCheckReport_CmUser" Association="Self.FK_FmsDailyCheckReport_CmUser">
+            <End Role="CmUser" EntitySet="CmUser" />
+            <End Role="FmsDailyCheckReport" EntitySet="FmsDailyCheckReport" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsDailyReport_CmBusinessField" Association="Self.FK_FmsDailyReport_CmBusinessField">
+            <End Role="CmBusinessField" EntitySet="CmBusinessField" />
+            <End Role="FmsDailyReport" EntitySet="FmsDailyReport" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsDailyReport_CmUser" Association="Self.FK_FmsDailyReport_CmUser">
+            <End Role="CmUser" EntitySet="CmUser" />
+            <End Role="FmsDailyReport" EntitySet="FmsDailyReport" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsEquipment_CmUser" Association="Self.FK_FmsEquipment_CmUser">
+            <End Role="CmUser" EntitySet="CmUser" />
+            <End Role="FmsEquipment" EntitySet="FmsEquipment" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsEquipment_FmsEquipmentCodeType" Association="Self.FK_FmsEquipment_FmsEquipmentCodeType">
+            <End Role="FmsEquipmentCodeType" EntitySet="FmsEquipmentCodeType" />
+            <End Role="FmsEquipment" EntitySet="FmsEquipment" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsEquipment_FmsMaterialWarehouse" Association="Self.FK_FmsEquipment_FmsMaterialWarehouse">
+            <End Role="FmsMaterialWarehouse" EntitySet="FmsMaterialWarehouse" />
+            <End Role="FmsEquipment" EntitySet="FmsEquipment" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsEquipmentHistory_FmsEquipment" Association="Self.FK_FmsEquipmentHistory_FmsEquipment">
+            <End Role="FmsEquipment" EntitySet="FmsEquipment" />
+            <End Role="FmsEquipmentHistory" EntitySet="FmsEquipmentHistory" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsEquipmentHistory_FmsEquipmentCodeStateType" Association="Self.FK_FmsEquipmentHistory_FmsEquipmentCodeStateType">
+            <End Role="FmsEquipmentCodeStateType" EntitySet="FmsEquipmentCodeStateType" />
+            <End Role="FmsEquipmentHistory" EntitySet="FmsEquipmentHistory" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsEquipmentHistory_FmsEquipmentRentInfo" Association="Self.FK_FmsEquipmentHistory_FmsEquipmentRentInfo">
+            <End Role="FmsEquipmentRentInfo" EntitySet="FmsEquipmentRentInfo" />
+            <End Role="FmsEquipmentHistory" EntitySet="FmsEquipmentHistory" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsEquipmentRentInfo_CmUser" Association="Self.FK_FmsEquipmentRentInfo_CmUser">
+            <End Role="CmUser" EntitySet="CmUser" />
+            <End Role="FmsEquipmentRentInfo" EntitySet="FmsEquipmentRentInfo" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsEquipmentRentInfo_CmUser1" Association="Self.FK_FmsEquipmentRentInfo_CmUser1">
+            <End Role="CmUser" EntitySet="CmUser" />
+            <End Role="FmsEquipmentRentInfo" EntitySet="FmsEquipmentRentInfo" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsEquipmentRentInfo_FmsEquipmentCodeStateType" Association="Self.FK_FmsEquipmentRentInfo_FmsEquipmentCodeStateType">
+            <End Role="FmsEquipmentCodeStateType" EntitySet="FmsEquipmentCodeStateType" />
+            <End Role="FmsEquipmentRentInfo" EntitySet="FmsEquipmentRentInfo" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsFacilityOperationReport_CmUser" Association="Self.FK_FmsFacilityOperationReport_CmUser">
+            <End Role="CmUser" EntitySet="CmUser" />
+            <End Role="FmsFacilityOperationReport" EntitySet="FmsFacilityOperationReport" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsManual_FmsManualType" Association="Self.FK_FmsManual_FmsManualType">
+            <End Role="FmsManualType" EntitySet="FmsManualType" />
+            <End Role="FmsManual" EntitySet="FmsManual" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsManualHistory_CmFile" Association="Self.FK_FmsManualHistory_CmFile">
+            <End Role="CmFile" EntitySet="CmFile" />
+            <End Role="FmsManualHistory" EntitySet="FmsManualHistory" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsManualHistory_CmUser" Association="Self.FK_FmsManualHistory_CmUser">
+            <End Role="CmUser" EntitySet="CmUser" />
+            <End Role="FmsManualHistory" EntitySet="FmsManualHistory" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsManualHistory_FmsManual" Association="Self.FK_FmsManualHistory_FmsManual">
+            <End Role="FmsManual" EntitySet="FmsManual" />
+            <End Role="FmsManualHistory" EntitySet="FmsManualHistory" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsMaterial_CmBusinessField" Association="Self.FK_FmsMaterial_CmBusinessField">
+            <End Role="CmBusinessField" EntitySet="CmBusinessField" />
+            <End Role="FmsMaterial" EntitySet="FmsMaterial" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsMaterial_CmFile" Association="Self.FK_FmsMaterial_CmFile">
+            <End Role="CmFile" EntitySet="CmFile" />
+            <End Role="FmsMaterial" EntitySet="FmsMaterial" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsMaterial_CmSite" Association="Self.FK_FmsMaterial_CmSite">
+            <End Role="CmSite" EntitySet="CmSite" />
+            <End Role="FmsMaterial" EntitySet="FmsMaterial" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsMaterial_FmsMaterialCodeLocation" Association="Self.FK_FmsMaterial_FmsMaterialCodeLocation">
+            <End Role="FmsMaterialCodeLocation" EntitySet="FmsMaterialCodeLocation" />
+            <End Role="FmsMaterial" EntitySet="FmsMaterial" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsMaterial_FmsMaterialCodeType" Association="Self.FK_FmsMaterial_FmsMaterialCodeType">
+            <End Role="FmsMaterialCodeType" EntitySet="FmsMaterialCodeType" />
+            <End Role="FmsMaterial" EntitySet="FmsMaterial" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsMaterial_FmsMaterialTradeCompany" Association="Self.FK_FmsMaterial_FmsMaterialTradeCompany">
+            <End Role="FmsMaterialTradeCompany" EntitySet="FmsMaterialTradeCompany" />
+            <End Role="FmsMaterial" EntitySet="FmsMaterial" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsMaterial_FmsMaterialWarehouse" Association="Self.FK_FmsMaterial_FmsMaterialWarehouse">
+            <End Role="FmsMaterialWarehouse" EntitySet="FmsMaterialWarehouse" />
+            <End Role="FmsMaterial" EntitySet="FmsMaterial" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsMaterialPurchaseOrder_FmsMaterialPurchaseRequest" Association="Self.FK_FmsMaterialPurchaseOrder_FmsMaterialPurchaseRequest">
+            <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
+            <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsMaterialPurchaseOrderMaterial_FmsMaterial" Association="Self.FK_FmsMaterialPurchaseOrderMaterial_FmsMaterial">
+            <End Role="FmsMaterial" EntitySet="FmsMaterial" />
+            <End Role="FmsMaterialPurchaseOrderMaterial" EntitySet="FmsMaterialPurchaseOrderMaterial" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsMaterialPurchaseOrderMaterial_FmsMaterialPurchaseOrder" Association="Self.FK_FmsMaterialPurchaseOrderMaterial_FmsMaterialPurchaseOrder">
+            <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
+            <End Role="FmsMaterialPurchaseOrderMaterial" EntitySet="FmsMaterialPurchaseOrderMaterial" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsMaterialPurchaseRequest_FmsMaterialCodePurchaseType" Association="Self.FK_FmsMaterialPurchaseRequest_FmsMaterialCodePurchaseType">
+            <End Role="FmsMaterialCodePurchaseType" EntitySet="FmsMaterialCodePurchaseType" />
+            <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsMaterialPurchaseRequestMaterial_FmsMaterial" Association="Self.FK_FmsMaterialPurchaseRequestMaterial_FmsMaterial">
+            <End Role="FmsMaterial" EntitySet="FmsMaterial" />
+            <End Role="FmsMaterialPurchaseRequestMaterial" EntitySet="FmsMaterialPurchaseRequestMaterial" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsMaterialPurchaseRequestMaterial_FmsMaterialPurchaseRequest" Association="Self.FK_FmsMaterialPurchaseRequestMaterial_FmsMaterialPurchaseRequest">
+            <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
+            <End Role="FmsMaterialPurchaseRequestMaterial" EntitySet="FmsMaterialPurchaseRequestMaterial" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsMaterialRelease_CmBusinessField" Association="Self.FK_FmsMaterialRelease_CmBusinessField">
+            <End Role="CmBusinessField" EntitySet="CmBusinessField" />
+            <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsMaterialRelease_CmSite" Association="Self.FK_FmsMaterialRelease_CmSite">
+            <End Role="CmSite" EntitySet="CmSite" />
+            <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsMaterialRelease_CmUser" Association="Self.FK_FmsMaterialRelease_CmUser">
+            <End Role="CmUser" EntitySet="CmUser" />
+            <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsMaterialRelease_CmUser1" Association="Self.FK_FmsMaterialRelease_CmUser1">
+            <End Role="CmUser" EntitySet="CmUser" />
+            <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsMaterialRelease_FmsMaterial" Association="Self.FK_FmsMaterialRelease_FmsMaterial">
+            <End Role="FmsMaterial" EntitySet="FmsMaterial" />
+            <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsMaterialRelease_FmsMaterialCodeAdjustmentType" Association="Self.FK_FmsMaterialRelease_FmsMaterialCodeAdjustmentType">
+            <End Role="FmsMaterialCodeAdjustmentType" EntitySet="FmsMaterialCodeAdjustmentType" />
+            <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsMaterialRelease_FmsMaterialCodeReleaseType" Association="Self.FK_FmsMaterialRelease_FmsMaterialCodeReleaseType">
+            <End Role="FmsMaterialCodeReleaseType" EntitySet="FmsMaterialCodeReleaseType" />
+            <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsMaterialRelease_FmsWorkResult" Association="Self.FK_FmsMaterialRelease_FmsWorkResult">
+            <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
+            <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsMaterialStored_FmsMaterial" Association="Self.FK_FmsMaterialStored_FmsMaterial">
+            <End Role="FmsMaterial" EntitySet="FmsMaterial" />
+            <End Role="FmsMaterialStored" EntitySet="FmsMaterialStored" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsMaterialStored_FmsMaterialPurchaseOrder" Association="Self.FK_FmsMaterialStored_FmsMaterialPurchaseOrder">
+            <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
+            <End Role="FmsMaterialStored" EntitySet="FmsMaterialStored" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsMaterialStored_FmsMaterialWarehouse" Association="Self.FK_FmsMaterialStored_FmsMaterialWarehouse">
+            <End Role="FmsMaterialWarehouse" EntitySet="FmsMaterialWarehouse" />
+            <End Role="FmsMaterialStored" EntitySet="FmsMaterialStored" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsMonthlyReport_CmUser" Association="Self.FK_FmsMonthlyReport_CmUser">
+            <End Role="CmUser" EntitySet="CmUser" />
+            <End Role="FmsMonthlyReport" EntitySet="FmsMonthlyReport" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsReport_CmBusinessField" Association="Self.FK_FmsReport_CmBusinessField">
+            <End Role="CmBusinessField" EntitySet="CmBusinessField" />
+            <End Role="FmsReport" EntitySet="FmsReport" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsReport_CmFile" Association="Self.FK_FmsReport_CmFile">
+            <End Role="CmFile" EntitySet="CmFile" />
+            <End Role="FmsReport" EntitySet="FmsReport" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsReport_CmSite" Association="Self.FK_FmsReport_CmSite">
+            <End Role="CmSite" EntitySet="CmSite" />
+            <End Role="FmsReport" EntitySet="FmsReport" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsReport_CmUser" Association="Self.FK_FmsReport_CmUser">
+            <End Role="CmUser" EntitySet="CmUser" />
+            <End Role="FmsReport" EntitySet="FmsReport" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsReport_CmUser1" Association="Self.FK_FmsReport_CmUser1">
+            <End Role="CmUser" EntitySet="CmUser" />
+            <End Role="FmsReport" EntitySet="FmsReport" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsReport_CmUser2" Association="Self.FK_FmsReport_CmUser2">
+            <End Role="CmUser" EntitySet="CmUser" />
+            <End Role="FmsReport" EntitySet="FmsReport" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsWorkOrderToFacility_CmFacility" Association="Self.FK_FmsWorkOrderToFacility_CmFacility">
+            <End Role="CmFacility" EntitySet="CmFacility" />
+            <End Role="FmsWorkOrderToFacility" EntitySet="FmsWorkOrderToFacility" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsWorkRequest_CmPartner" Association="Self.FK_FmsWorkRequest_CmPartner">
+            <End Role="CmPartner" EntitySet="CmPartner" />
+            <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsWorkRequestToFacility_CmFacility" Association="Self.FK_FmsWorkRequestToFacility_CmFacility">
+            <End Role="CmFacility" EntitySet="CmFacility" />
+            <End Role="FmsWorkRequestToFacility" EntitySet="FmsWorkRequestToFacility" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsWorkResultCheckItemMaterial_FmsMaterial" Association="Self.FK_FmsWorkResultCheckItemMaterial_FmsMaterial">
+            <End Role="FmsMaterial" EntitySet="FmsMaterial" />
+            <End Role="FmsWorkResultCheckItemMaterial" EntitySet="FmsWorkResultCheckItemMaterial" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsWorkResultCheckItemMaterial_FmsWorkResult" Association="Self.FK_FmsWorkResultCheckItemMaterial_FmsWorkResult">
+            <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
+            <End Role="FmsWorkResultCheckItemMaterial" EntitySet="FmsWorkResultCheckItemMaterial" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsWorkResultCheckItemMaterial_FmsWorkResultCheckItem" Association="Self.FK_FmsWorkResultCheckItemMaterial_FmsWorkResultCheckItem">
+            <End Role="FmsWorkResultCheckItem" EntitySet="FmsWorkResultCheckItem" />
+            <End Role="FmsWorkResultCheckItemMaterial" EntitySet="FmsWorkResultCheckItemMaterial" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsWorkSchedule_CmPartner" Association="Self.FK_FmsWorkSchedule_CmPartner">
+            <End Role="CmPartner" EntitySet="CmPartner" />
+            <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsWorkScheduleToFacility_CmFacility" Association="Self.FK_FmsWorkScheduleToFacility_CmFacility">
+            <End Role="CmFacility" EntitySet="CmFacility" />
+            <End Role="FmsWorkScheduleToFacility" EntitySet="FmsWorkScheduleToFacility" />
+          </AssociationSet>
+        </EntityContainer>
+      </Schema></edmx:StorageModels>
+    <!-- CSDL content -->
+    <edmx:ConceptualModels>
+      <Schema Namespace="iBemsModel" Alias="Self" annotation:UseStrongSpatialTypes="false" xmlns:annotation="http://schemas.microsoft.com/ado/2009/02/edm/annotation" xmlns="http://schemas.microsoft.com/ado/2009/11/edm">
+        <EntityType Name="BemsAnalysisType">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="AnalysisType" />
+          </Key>
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="AnalysisType" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+          <Property Name="Name" Type="String" MaxLength="48" FixedLength="false" Unicode="true" />
+          <NavigationProperty Name="BemsMonitoringPointToAnlaysisType" Relationship="Self.FK__BemsMonitoringPo__1372D2FE" FromRole="BemsAnalysisType" ToRole="BemsMonitoringPointToAnlaysisType" />
+        </EntityType>
+        <EntityType Name="BemsControlPointHistory">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="FacilityCode" />
+            <PropertyRef Name="PropertyId" />
+            <PropertyRef Name="CreateDateTime" />
+          </Key>
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
+          <Property Name="FacilityCode" Type="Int32" Nullable="false" />
+          <Property Name="PropertyId" Type="Int32" Nullable="false" />
+          <Property Name="CreateDateTime" Type="DateTime" Nullable="false" Precision="3" />
+          <Property Name="ControlValue" Type="Double" Nullable="false" />
+          <Property Name="WriteServiceName" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
+          <Property Name="ActionDateTime" Type="DateTime" Precision="3" />
+          <NavigationProperty Name="BemsFacilityType" Relationship="Self.FK_BemsControlPointHistory_BemsFacilityType" FromRole="BemsControlPointHistory" ToRole="BemsFacilityType" />
+          <NavigationProperty Name="BemsMonitoringPoint" Relationship="Self.FK_BemsControlPointHistory_BemsMonitoringPoint" FromRole="BemsControlPointHistory" ToRole="BemsMonitoringPoint" />
+        </EntityType>
+        <EntityType Name="BemsFacilityType">
+          <Key>
+            <PropertyRef Name="FacilityTypeId" />
+          </Key>
+          <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
+          <Property Name="Name" Type="String" MaxLength="48" FixedLength="false" Unicode="true" />
+          <NavigationProperty Name="BemsControlPointHistory" Relationship="Self.FK_BemsControlPointHistory_BemsFacilityType" FromRole="BemsFacilityType" ToRole="BemsControlPointHistory" />
+          <NavigationProperty Name="BemsMonitoringPointBaseData" Relationship="Self.FK__BemsMonitoringPointBaseData__BemsFacilityType" FromRole="BemsFacilityType" ToRole="BemsMonitoringPointBaseData" />
+          <NavigationProperty Name="BemsMonitoringPointHistory15min" Relationship="Self.FK__BemsMonitoringPointHistory15min__BemsFacilityType" FromRole="BemsFacilityType" ToRole="BemsMonitoringPointHistory15min" />
+          <NavigationProperty Name="BemsMonitoringPointHistoryDaily" Relationship="Self.FK__BemsMonitoringPointHistoryDaily__BemsFacilityType" FromRole="BemsFacilityType" ToRole="BemsMonitoringPointHistoryDaily" />
+          <NavigationProperty Name="BemsMonitoringPointHistoryHourly" Relationship="Self.FK__BemsMonitoringPointHistoryHourly__BemsFacilityType" FromRole="BemsFacilityType" ToRole="BemsMonitoringPointHistoryHourly" />
+          <NavigationProperty Name="BemsMonitoringPointToAnlaysisType" Relationship="Self.FK__BemsMonitoringPointToAnlaysisType__BemsFacilityType" FromRole="BemsFacilityType" ToRole="BemsMonitoringPointToAnlaysisType" />
+          <NavigationProperty Name="BemsMonitoringPoint" Relationship="Self.FK_BemsMonitoringPoint_BemsFacilityType" FromRole="BemsFacilityType" ToRole="BemsMonitoringPoint" />
+          <NavigationProperty Name="BemsChartInfo" Relationship="iBemsModel.FK_BemsChartInfo_BemsFacilityType" FromRole="BemsFacilityType" ToRole="BemsChartInfo" />
+          <NavigationProperty Name="BemsMonitoringPointConfig" Relationship="iBemsModel.FK_BemsMonitoringPointConfig_BemsFacilityType1" FromRole="BemsFacilityType" ToRole="BemsMonitoringPointConfig" />
+          <NavigationProperty Name="BemsAlarmSetting" Relationship="iBemsModel.FK_BemsAlarmSetting_BemsFacilityType" FromRole="BemsFacilityType" ToRole="BemsAlarmSetting" />
+          <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK__CmFacility__BemsFacilityType" FromRole="BemsFacilityType" ToRole="CmFacility" />
+          <NavigationProperty Name="BemsMonitoringPointHistory15minRawData" Relationship="iBemsModel.FK__BemsMonitoringPointHistory15minRawData__BemsFacilityType" FromRole="BemsFacilityType" ToRole="BemsMonitoringPointHistory15minRawData" />
+        </EntityType>
+        <EntityType Name="BemsFactorCo2">
+          <Key>
+            <PropertyRef Name="FuelTypeId" />
+          </Key>
+          <Property Name="FuelTypeId" Type="Int16" Nullable="false" />
+          <Property Name="Factor" Type="Double" Nullable="false" />
+          <NavigationProperty Name="BemsFuelType" Relationship="iBemsModel.FK__BemsFactorCo2__BemsFuelType" FromRole="BemsFactorCo2" ToRole="BemsFuelType" />
+        </EntityType>
+        <EntityType Name="BemsFactorToe">
+          <Key>
+            <PropertyRef Name="FuelTypeId" />
+          </Key>
+          <Property Name="FuelTypeId" Type="Int16" Nullable="false" />
+          <Property Name="TotalFactor" Type="Double" Nullable="false" />
+          <Property Name="PureFactor" Type="Double" Nullable="false" />
+          <Property Name="kcal" Type="Double" />
+          <NavigationProperty Name="BemsFuelType" Relationship="iBemsModel.FK__BemsFactorToe__BemsFuelType" FromRole="BemsFactorToe" ToRole="BemsFuelType" />
+        </EntityType>
+        <EntityType Name="BemsFormula">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="FacilityTypeId" />
+            <PropertyRef Name="FacilityCode" />
+            <PropertyRef Name="FormulaId" />
+          </Key>
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
+          <Property Name="FacilityCode" Type="Int32" Nullable="false" />
+          <Property Name="FormulaId" Type="Int32" Nullable="false" />
+          <Property Name="Formula" Type="String" MaxLength="120" FixedLength="false" Unicode="true" Nullable="false" />
+          <NavigationProperty Name="BemsFormulaBase" Relationship="Self.FK__BemsFormula__BemsFormulaBase" FromRole="BemsFormula" ToRole="BemsFormulaBase" />
+          <NavigationProperty Name="BemsFormulaParameter" Relationship="Self.FK__BemsFormulaParameter__BemsFormula" FromRole="BemsFormula" ToRole="BemsFormulaParameter" />
+          <NavigationProperty Name="BemsPriceFormula" Relationship="iBemsModel.FK_BemsPriceFormula_BemsFormula" FromRole="BemsFormula" ToRole="BemsPriceFormula" />
+        </EntityType>
+        <EntityType Name="BemsFormulaBase">
+          <Key>
+            <PropertyRef Name="FacilityTypeId" />
+            <PropertyRef Name="FormulaId" />
+          </Key>
+          <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
+          <Property Name="FormulaId" Type="Int32" Nullable="false" />
+          <Property Name="Name" Type="String" MaxLength="32" FixedLength="false" Unicode="true" Nullable="false" />
+          <NavigationProperty Name="BemsFormula" Relationship="Self.FK__BemsFormula__BemsFormulaBase" FromRole="BemsFormulaBase" ToRole="BemsFormula" />
+        </EntityType>
+        <EntityType Name="BemsFormulaParameter">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="FacilityCode" />
+            <PropertyRef Name="FormulaId" />
+            <PropertyRef Name="ParameterId" />
+          </Key>
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
+          <Property Name="FacilityCode" Type="Int32" Nullable="false" />
+          <Property Name="FormulaId" Type="Int32" Nullable="false" />
+          <Property Name="ParameterId" Type="String" MaxLength="1" FixedLength="true" Unicode="true" Nullable="false" />
+          <Property Name="ParameterFacilityCode" Type="Int32" Nullable="false" />
+          <Property Name="ParameterPropertyId" Type="Int32" Nullable="false" />
+          <NavigationProperty Name="BemsFormula" Relationship="Self.FK__BemsFormulaParameter__BemsFormula" FromRole="BemsFormulaParameter" ToRole="BemsFormula" />
+          <NavigationProperty Name="BemsMonitoringPoint" Relationship="Self.FK__BemsFormulaParameter__BemsMonitoringPoint" FromRole="BemsFormulaParameter" ToRole="BemsMonitoringPoint" />
+          <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK_BemsFormulaParameter_CmFacility" FromRole="BemsFormulaParameter" ToRole="CmFacility" />
+        </EntityType>
+        <EntityType Name="BemsFormulaTable">
+          <Key>
+            <PropertyRef Name="TableId" />
+          </Key>
+          <Property Name="TableId" Type="Int32" Nullable="false" />
+          <Property Name="FunctionName" Type="String" MaxLength="20" FixedLength="false" Unicode="true" Nullable="false" />
+          <Property Name="Description" Type="String" MaxLength="80" FixedLength="false" Unicode="true" Nullable="false" />
+          <NavigationProperty Name="BemsFormulaTableValue" Relationship="Self.FK__BemsFormulaTableValue__BemsFormulaTable" FromRole="BemsFormulaTable" ToRole="BemsFormulaTableValue" />
+        </EntityType>
+        <EntityType Name="BemsFormulaTableValue">
+          <Key>
+            <PropertyRef Name="TableId" />
+            <PropertyRef Name="XValue" />
+          </Key>
+          <Property Name="TableId" Type="Int32" Nullable="false" />
+          <Property Name="XValue" Type="Double" Nullable="false" />
+          <Property Name="YValue" Type="Double" Nullable="false" />
+          <NavigationProperty Name="BemsFormulaTable" Relationship="Self.FK__BemsFormulaTableValue__BemsFormulaTable" FromRole="BemsFormulaTableValue" ToRole="BemsFormulaTable" />
+        </EntityType>
+        <EntityType Name="BemsMonitoringPoint">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="FacilityCode" />
+            <PropertyRef Name="PropertyId" />
+          </Key>
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
+          <Property Name="FacilityCode" Type="Int32" Nullable="false" />
+          <Property Name="PropertyId" Type="Int32" Nullable="false" />
+          <Property Name="ValueType" Type="Int32" Nullable="false" />
+          <Property Name="ServiceTypeId" Type="Int16" />
+          <Property Name="FuelTypeId" Type="Int16" />
+          <Property Name="Name" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
+          <Property Name="Description" Type="String" MaxLength="256" FixedLength="false" Unicode="true" />
+          <Property Name="BuildingId" Type="Int32" />
+          <Property Name="FloorId" Type="Int32" />
+          <Property Name="ZoneId" Type="Int32" />
+          <NavigationProperty Name="BemsControlPointHistory" Relationship="Self.FK_BemsControlPointHistory_BemsMonitoringPoint" FromRole="BemsMonitoringPoint" ToRole="BemsControlPointHistory" />
+          <NavigationProperty Name="BemsFacilityType" Relationship="Self.FK_BemsMonitoringPoint_BemsFacilityType" FromRole="BemsMonitoringPoint" ToRole="BemsFacilityType" />
+          <NavigationProperty Name="BemsFormulaParameter" Relationship="Self.FK__BemsFormulaParameter__BemsMonitoringPoint" FromRole="BemsMonitoringPoint" ToRole="BemsFormulaParameter" />
+          <NavigationProperty Name="BemsMonitoringPointToAnlaysisType" Relationship="Self.FK__BemsMonitoringPo__155B1B70" FromRole="BemsMonitoringPoint" ToRole="BemsMonitoringPointToAnlaysisType" />
+          <NavigationProperty Name="BemsServiceType" Relationship="Self.FK__BemsMonitoringPoint__BemsServiceType" FromRole="BemsMonitoringPoint" ToRole="BemsServiceType" />
+          <NavigationProperty Name="CmBuilding" Relationship="Self.FK__BemsMonitoringPoint__CmBuilding" FromRole="BemsMonitoringPoint" ToRole="CmBuilding" />
+          <NavigationProperty Name="CmFloor" Relationship="Self.FK__BemsMonitoringPoint__CmFloor" FromRole="BemsMonitoringPoint" ToRole="CmFloor" />
+          <NavigationProperty Name="CmZone" Relationship="Self.FK__BemsMonitoringPoint__CmZone" FromRole="BemsMonitoringPoint" ToRole="CmZone" />
+          <NavigationProperty Name="BemsMonitoringPointHistory15min" Relationship="Self.FK__BemsMonitoringPointHistory15min__BemsMonitoringPoint" FromRole="BemsMonitoringPoint" ToRole="BemsMonitoringPointHistory15min" />
+          <NavigationProperty Name="BemsMonitoringPointHistoryDaily" Relationship="Self.FK__BemsMonitoringPointHistoryDaily__BemsMonitoringPoint" FromRole="BemsMonitoringPoint" ToRole="BemsMonitoringPointHistoryDaily" />
+          <NavigationProperty Name="BemsMonitoringPointHistoryHourly" Relationship="Self.FK__BemsMonitoringPointHistoryHourly__BemsMonitoringPoint" FromRole="BemsMonitoringPoint" ToRole="BemsMonitoringPointHistoryHourly" />
+          <NavigationProperty Name="BemsMonitoringPointConfig" Relationship="iBemsModel.FK_BemsMonitoringPointConfig_BemsMonitoringPoint" FromRole="BemsMonitoringPoint" ToRole="BemsMonitoringPointConfig" />
+          <NavigationProperty Name="BemsFuelType" Relationship="iBemsModel.FK__BemsMonitoringPoint__BemsFuelType" FromRole="BemsMonitoringPoint" ToRole="BemsFuelType" />
+          <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK_BemsMonitoringPoint_CmFacility" FromRole="BemsMonitoringPoint" ToRole="CmFacility" />
+          <NavigationProperty Name="BemsMonitoringPointHistory15minRawData" Relationship="iBemsModel.FK__BemsMonitoringPointHistory15minRawData__BemsMonitoringPoint" FromRole="BemsMonitoringPoint" ToRole="BemsMonitoringPointHistory15minRawData" />
+        </EntityType>
+        <EntityType Name="BemsMonitoringPointBaseData">
+          <Key>
+            <PropertyRef Name="FacilityTypeId" />
+            <PropertyRef Name="PropertyId" />
+          </Key>
+          <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
+          <Property Name="PropertyId" Type="Int32" Nullable="false" />
+          <Property Name="ValueType" Type="Int32" Nullable="false" />
+          <Property Name="IsAccumulated" Type="Boolean" Nullable="false" />
+          <Property Name="ServiceTypeId" Type="Int16" />
+          <Property Name="FuelTypeId" Type="Int16" />
+          <Property Name="Name" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
+          <Property Name="Description" Type="String" MaxLength="256" FixedLength="false" Unicode="true" />
+          <Property Name="IsSampled" Type="Boolean" />
+          <NavigationProperty Name="BemsFacilityType" Relationship="Self.FK__BemsMonitoringPointBaseData__BemsFacilityType" FromRole="BemsMonitoringPointBaseData" ToRole="BemsFacilityType" />
+          <NavigationProperty Name="BemsServiceType" Relationship="Self.FK__BemsMonitoringPointBaseData__BemsServiceType" FromRole="BemsMonitoringPointBaseData" ToRole="BemsServiceType" />
+          <Property Name="IsConverted" Type="Boolean" />
+          <NavigationProperty Name="BemsFuelType" Relationship="iBemsModel.FK__BemsMonitoringPointBaseData__BemsFuelType" FromRole="BemsMonitoringPointBaseData" ToRole="BemsFuelType" />
+        </EntityType>
+        <EntityType Name="BemsMonitoringPointHistory15min">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="FacilityCode" />
+            <PropertyRef Name="PropertyId" />
+            <PropertyRef Name="CreatedDateTime" />
+          </Key>
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
+          <Property Name="FacilityCode" Type="Int32" Nullable="false" />
+          <Property Name="PropertyId" Type="Int32" Nullable="false" />
+          <Property Name="CreatedDateTime" Type="DateTime" Nullable="false" Precision="3" />
+          <Property Name="CurrentValue" Type="Double" Nullable="false" />
+          <NavigationProperty Name="BemsFacilityType" Relationship="Self.FK__BemsMonitoringPointHistory15min__BemsFacilityType" FromRole="BemsMonitoringPointHistory15min" ToRole="BemsFacilityType" />
+          <NavigationProperty Name="BemsMonitoringPoint" Relationship="Self.FK__BemsMonitoringPointHistory15min__BemsMonitoringPoint" FromRole="BemsMonitoringPointHistory15min" ToRole="BemsMonitoringPoint" />
+        </EntityType>
+        <EntityType Name="BemsMonitoringPointHistoryDaily">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="FacilityCode" />
+            <PropertyRef Name="PropertyId" />
+            <PropertyRef Name="CreatedDateTime" />
+          </Key>
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
+          <Property Name="FacilityCode" Type="Int32" Nullable="false" />
+          <Property Name="PropertyId" Type="Int32" Nullable="false" />
+          <Property Name="CreatedDateTime" Type="DateTime" Nullable="false" Precision="3" />
+          <Property Name="DailyValue" Type="Double" Nullable="false" />
+          <Property Name="MaxValue" Type="Double" />
+          <Property Name="MinValue" Type="Double" />
+          <NavigationProperty Name="BemsFacilityType" Relationship="Self.FK__BemsMonitoringPointHistoryDaily__BemsFacilityType" FromRole="BemsMonitoringPointHistoryDaily" ToRole="BemsFacilityType" />
+          <NavigationProperty Name="BemsMonitoringPoint" Relationship="Self.FK__BemsMonitoringPointHistoryDaily__BemsMonitoringPoint" FromRole="BemsMonitoringPointHistoryDaily" ToRole="BemsMonitoringPoint" />
+        </EntityType>
+        <EntityType Name="BemsMonitoringPointHistoryHourly">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="FacilityCode" />
+            <PropertyRef Name="PropertyId" />
+            <PropertyRef Name="CreatedDateTime" />
+          </Key>
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
+          <Property Name="FacilityCode" Type="Int32" Nullable="false" />
+          <Property Name="PropertyId" Type="Int32" Nullable="false" />
+          <Property Name="CreatedDateTime" Type="DateTime" Nullable="false" Precision="3" />
+          <Property Name="CurrentValue" Type="Double" Nullable="false" />
+          <NavigationProperty Name="BemsFacilityType" Relationship="Self.FK__BemsMonitoringPointHistoryHourly__BemsFacilityType" FromRole="BemsMonitoringPointHistoryHourly" ToRole="BemsFacilityType" />
+          <NavigationProperty Name="BemsMonitoringPoint" Relationship="Self.FK__BemsMonitoringPointHistoryHourly__BemsMonitoringPoint" FromRole="BemsMonitoringPointHistoryHourly" ToRole="BemsMonitoringPoint" />
+        </EntityType>
+        <EntityType Name="BemsMonitoringPointToAnlaysisType">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="FacilityTypeId" />
+            <PropertyRef Name="FacilityCode" />
+            <PropertyRef Name="PropertyId" />
+            <PropertyRef Name="AnalysisType" />
+          </Key>
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
+          <Property Name="FacilityCode" Type="Int32" Nullable="false" />
+          <Property Name="PropertyId" Type="Int32" Nullable="false" />
+          <Property Name="AnalysisType" Type="Int32" Nullable="false" />
+          <NavigationProperty Name="BemsAnalysisType" Relationship="Self.FK__BemsMonitoringPo__1372D2FE" FromRole="BemsMonitoringPointToAnlaysisType" ToRole="BemsAnalysisType" />
+          <NavigationProperty Name="BemsFacilityType" Relationship="Self.FK__BemsMonitoringPointToAnlaysisType__BemsFacilityType" FromRole="BemsMonitoringPointToAnlaysisType" ToRole="BemsFacilityType" />
+          <NavigationProperty Name="BemsMonitoringPoint" Relationship="Self.FK__BemsMonitoringPo__155B1B70" FromRole="BemsMonitoringPointToAnlaysisType" ToRole="BemsMonitoringPoint" />
+        </EntityType>
+        <EntityType Name="BemsServiceType">
+          <Key>
+            <PropertyRef Name="ServiceTypeId" />
+          </Key>
+          <Property Name="ServiceTypeId" Type="Int16" Nullable="false" />
+          <Property Name="Name" Type="String" MaxLength="48" FixedLength="false" Unicode="true" />
+          <NavigationProperty Name="BemsMonitoringPoint" Relationship="Self.FK__BemsMonitoringPoint__BemsServiceType" FromRole="BemsServiceType" ToRole="BemsMonitoringPoint" />
+          <NavigationProperty Name="BemsMonitoringPointBaseData" Relationship="Self.FK__BemsMonitoringPointBaseData__BemsServiceType" FromRole="BemsServiceType" ToRole="BemsMonitoringPointBaseData" />
+          <NavigationProperty Name="BemsEnergyDaily" Relationship="iBemsModel.FK__BemsEnergyDaily__BemsServiceType" FromRole="BemsServiceType" ToRole="BemsEnergyDaily" />
+        </EntityType>
+        <EntityType Name="CmAnnouncement">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="AnnouncementId" />
+          </Key>
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="AnnouncementId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+          <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
+          <Property Name="Title" Type="String" MaxLength="128" FixedLength="false" Unicode="true" Nullable="false" />
+          <Property Name="Contents" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" Nullable="false" />
+          <Property Name="RegisterUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
+          <Property Name="FileId" Type="Int32" />
+          <Property Name="AddDate" Type="DateTime" Nullable="false" Precision="3" />
+          <Property Name="UpdateDate" Type="DateTime" Nullable="false" Precision="3" />
+          <Property Name="IsUse" Type="Boolean" />
+          <Property Name="ReadCount" Type="Int32" Nullable="false" />
+          <NavigationProperty Name="CmBusinessField" Relationship="Self.FK_CmAnnouncement_CmBusinessField" FromRole="CmAnnouncement" ToRole="CmBusinessField" />
+          <NavigationProperty Name="CmFile" Relationship="Self.FK_CmAnnouncement_CmFile" FromRole="CmAnnouncement" ToRole="CmFile" />
+          <NavigationProperty Name="CmUser" Relationship="Self.FK_CmAnnouncement_CmUser" FromRole="CmAnnouncement" ToRole="CmUser" />
+        </EntityType>
+        <EntityType Name="CmBuilding">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="BuildingId" />
+          </Key>
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="BuildingId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+          <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
+          <NavigationProperty Name="BemsMonitoringPoint" Relationship="Self.FK__BemsMonitoringPoint__CmBuilding" FromRole="CmBuilding" ToRole="BemsMonitoringPoint" />
+          <NavigationProperty Name="CmFloor" Relationship="Self.FK__CmFloor__3CF40B7E" FromRole="CmBuilding" ToRole="CmFloor" />
+          <NavigationProperty Name="CmZone" Relationship="Self.FK__CmZone__CmBuilding" FromRole="CmBuilding" ToRole="CmZone" />
+          <NavigationProperty Name="CmZoneTempHumiSet" Relationship="Self.FK_CmZoneTempHumiSet_CmBuilding" FromRole="CmBuilding" ToRole="CmZoneTempHumiSet" />
+          <Property Name="FileId" Type="Int32" />
+          <Property Name="IsUse" Type="Boolean" />
+          <Property Name="SortOrderNo" Type="Int32" />
+          <NavigationProperty Name="CmPatrolPos" Relationship="iBemsModel.FK_CmPatrolPos_CmBuilding" FromRole="CmBuilding" ToRole="CmPatrolPos" />
+          <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__CmBuildin__SiteI__3BFFE745" FromRole="CmBuilding" ToRole="CmSite" />
+          <NavigationProperty Name="BemsEnergyDaily" Relationship="iBemsModel.FK__BemsEnergyDaily__CmBuilding" FromRole="CmBuilding" ToRole="BemsEnergyDaily" />
+          <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK__CmFacility__CmBuilding" FromRole="CmBuilding" ToRole="CmFacility" />
+        </EntityType>
+        <EntityType Name="CmBusinessField">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="BusinessFieldId" />
+          </Key>
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="BusinessFieldId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+          <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
+          <Property Name="IsUse" Type="Boolean" />
+          <NavigationProperty Name="CmAnnouncement" Relationship="Self.FK_CmAnnouncement_CmBusinessField" FromRole="CmBusinessField" ToRole="CmAnnouncement" />
+          <NavigationProperty Name="FmsFacilityManual" Relationship="Self.FK__CmFacilityManual__7BE56230" FromRole="CmBusinessField" ToRole="FmsFacilityManual" />
+          <NavigationProperty Name="FmsLicense" Relationship="Self.FK__FmsLicense__CmBusinessField" FromRole="CmBusinessField" ToRole="FmsLicense" />
+          <NavigationProperty Name="FmsMaterialCarriedForward" Relationship="Self.FK__FmsMaterialCarriedForward__CmBusinessField" FromRole="CmBusinessField" ToRole="FmsMaterialCarriedForward" />
+          <NavigationProperty Name="FmsMaterialCodeLocation" Relationship="Self.FK__FmsMaterialCodeLocation__CmBusinessField" FromRole="CmBusinessField" ToRole="FmsMaterialCodeLocation" />
+          <NavigationProperty Name="FmsMaterialPurchaseOrder" Relationship="Self.FK__FmsMaterialOrder__CmBusinessField" FromRole="CmBusinessField" ToRole="FmsMaterialPurchaseOrder" />
+          <NavigationProperty Name="FmsMaterialPurchaseRequest" Relationship="Self.FK__FmsMaterialPurchasingRequest__CmBusinessField" FromRole="CmBusinessField" ToRole="FmsMaterialPurchaseRequest" />
+          <NavigationProperty Name="FmsMaterialStored" Relationship="Self.FK__FmsMaterialStored__CmBusinessField" FromRole="CmBusinessField" ToRole="FmsMaterialStored" />
+          <NavigationProperty Name="FmsMaterialWarehouse" Relationship="Self.FK__FmsMaterialWarehouse__CmBusinessField" FromRole="CmBusinessField" ToRole="FmsMaterialWarehouse" />
+          <NavigationProperty Name="FmsWorkOrder" Relationship="Self.FK__FmsWorkOrder__CmBusinessField" FromRole="CmBusinessField" ToRole="FmsWorkOrder" />
+          <NavigationProperty Name="FmsWorkRequest" Relationship="Self.FK__FmsWorkRequest__CmBusinessField" FromRole="CmBusinessField" ToRole="FmsWorkRequest" />
+          <NavigationProperty Name="FmsWorkSchedule" Relationship="Self.FK__FmsWorkSchedule__CmBusinessField" FromRole="CmBusinessField" ToRole="FmsWorkSchedule" />
+          <NavigationProperty Name="CmUser" Relationship="Self.FK_CmUser_CmBusinessField" FromRole="CmBusinessField" ToRole="CmUser" />
+          <NavigationProperty Name="FmsMaterial" Relationship="iBemsModel.FK_FmsMaterial_CmBusinessField" FromRole="CmBusinessField" ToRole="FmsMaterial" />
+          <NavigationProperty Name="FmsMaterialRelease" Relationship="iBemsModel.FK_FmsMaterialRelease_CmBusinessField" FromRole="CmBusinessField" ToRole="FmsMaterialRelease" />
+          <NavigationProperty Name="FmsReport" Relationship="iBemsModel.FK_FmsReport_CmBusinessField" FromRole="CmBusinessField" ToRole="FmsReport" />
+          <NavigationProperty Name="FmsDailyReport" Relationship="iBemsModel.FK_FmsDailyReport_CmBusinessField" FromRole="CmBusinessField" ToRole="FmsDailyReport" />
+        </EntityType>
+        <EntityType Name="CmCompany">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="CompanyId" />
+          </Key>
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="CompanyId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+          <Property Name="CompanyTypeId" Type="Int32" Nullable="false" />
+          <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
+          <Property Name="PhoneNo" Type="String" MaxLength="20" FixedLength="false" Unicode="true" Nullable="false" />
+          <Property Name="FaxNo" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
+          <Property Name="RepresentativeName" Type="String" MaxLength="20" FixedLength="false" Unicode="true" Nullable="false" />
+          <Property Name="SalesName" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
+          <Property Name="SalesPhoneNo" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
+          <Property Name="AddressZip1" Type="String" MaxLength="5" FixedLength="true" Unicode="true" />
+          <Property Name="AddressZip2" Type="String" MaxLength="3" FixedLength="true" Unicode="true" />
+          <Property Name="Address1" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
+          <Property Name="Adderss2" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
+          <Property Name="Homepage" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
+          <Property Name="Comment" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
+          <Property Name="IsUse" Type="Boolean" />
+          <NavigationProperty Name="CmCompanyType" Relationship="Self.FK__CmCompany__345EC57D" FromRole="CmCompany" ToRole="CmCompanyType" />
+          <NavigationProperty Name="CmDepartment" Relationship="Self.FK__CmDepartment__3552E9B6" FromRole="CmCompany" ToRole="CmDepartment" />
+          <NavigationProperty Name="CmUser" Relationship="Self.FK_CmUser_CmCompany" FromRole="CmCompany" ToRole="CmUser" />
+          <NavigationProperty Name="FmsAccident" Relationship="iBemsModel.FK_FmsAccident_CmCompany" FromRole="CmCompany" ToRole="FmsAccident" />
+          <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__CmCompany__SiteI__336AA144" FromRole="CmCompany" ToRole="CmSite" />
+        </EntityType>
+        <EntityType Name="CmCompanyType">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="CompanyTypeId" />
+          </Key>
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="CompanyTypeId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+          <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
+          <Property Name="IsUse" Type="Boolean" />
+          <NavigationProperty Name="CmCompany" Relationship="Self.FK__CmCompany__345EC57D" FromRole="CmCompanyType" ToRole="CmCompany" />
+        </EntityType>
+        <EntityType Name="CmDepartment">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="CompanyId" />
+            <PropertyRef Name="DepartmentId" />
+          </Key>
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="CompanyId" Type="Int32" Nullable="false" />
+          <Property Name="DepartmentId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+          <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
+          <Property Name="ShortName" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
+          <Property Name="FaxNo" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
+          <Property Name="PhoneNo" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
+          <Property Name="Comment" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
+          <Property Name="IsUse" Type="Boolean" />
+          <NavigationProperty Name="CmCompany" Relationship="Self.FK__CmDepartment__3552E9B6" FromRole="CmDepartment" ToRole="CmCompany" />
+          <NavigationProperty Name="CmUser" Relationship="Self.FK_CmUser_CmDepartment" FromRole="CmDepartment" ToRole="CmUser" />
+          <NavigationProperty Name="FmsAccident" Relationship="Self.FK_FmsAccident_CmDepartment" FromRole="CmDepartment" ToRole="FmsAccident" />
+        </EntityType>
+        <EntityType Name="CmFacilityFile">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="FileId" />
+          </Key>
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="FileId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+          <Property Name="FacilityCode" Type="Int32" Nullable="false" />
+          <Property Name="InsertedDate" Type="DateTime" Precision="3" />
+          <Property Name="InsertedUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
+          <Property Name="UpdatedDate" Type="DateTime" Precision="3" />
+          <Property Name="UpdatedUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
+          <NavigationProperty Name="CmFile" Relationship="Self.FK__CmFacilityFile__CmFile" FromRole="CmFacilityFile" ToRole="CmFile" />
+          <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK__CmFacilityFile__7720AD13" FromRole="CmFacilityFile" ToRole="CmFacility" />
+        </EntityType>
+        <EntityType Name="CmFacilityTempSet">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="FacilityCode" />
+          </Key>
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="FacilityCode" Type="Int32" Nullable="false" />
+          <Property Name="T1" Type="Double" Nullable="false" />
+          <Property Name="T2" Type="Double" Nullable="false" />
+          <Property Name="T3" Type="Double" Nullable="false" />
+          <Property Name="T4" Type="Double" Nullable="false" />
+          <Property Name="T5" Type="Double" Nullable="false" />
+          <Property Name="T6" Type="Double" Nullable="false" />
+          <Property Name="T7" Type="Double" Nullable="false" />
+          <Property Name="T8" Type="Double" Nullable="false" />
+          <Property Name="T9" Type="Double" Nullable="false" />
+          <Property Name="T10" Type="Double" Nullable="false" />
+          <Property Name="T11" Type="Double" Nullable="false" />
+          <Property Name="T12" Type="Double" Nullable="false" />
+          <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_CmFacilityTempSet_CmSite" FromRole="CmFacilityTempSet" ToRole="CmSite" />
+          <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK_CmFacilityTempSet_CmFacility" FromRole="CmFacilityTempSet" ToRole="CmFacility" />
+        </EntityType>
+        <EntityType Name="CmFile" m:HasStream="true" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="FileId" />
+          </Key>
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="FileId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+          <Property Name="FileCategoryId" Type="Int32" Nullable="false" />
+          <Property Name="Name" Type="String" MaxLength="256" FixedLength="false" Unicode="true" Nullable="false" />
+          <Property Name="FileSize" Type="Int32" />
+          <Property Name="CreatedDate" Type="DateTime" Precision="3" />
+          <Property Name="ContentType" Type="String" MaxLength="128" FixedLength="false" Unicode="true" />
+          <NavigationProperty Name="CmAnnouncement" Relationship="Self.FK_CmAnnouncement_CmFile" FromRole="CmFile" ToRole="CmAnnouncement" />
+          <NavigationProperty Name="CmFacilityFile" Relationship="Self.FK__CmFacilityFile__CmFile" FromRole="CmFile" ToRole="CmFacilityFile" />
+          <NavigationProperty Name="CmFileCategory" Relationship="Self.FK__CmFile__CmFileCategory" FromRole="CmFile" ToRole="CmFileCategory" />
+          <NavigationProperty Name="FmsDrawingHistory" Relationship="Self.FK__FmsDrawingHistor__04DA9AE4" FromRole="CmFile" ToRole="FmsDrawingHistory" />
+          <NavigationProperty Name="FmsMaterialPurchaseOrder" Relationship="Self.FK__FmsMaterialPurchaseOrder__CmFile" FromRole="CmFile" ToRole="FmsMaterialPurchaseOrder" />
+          <NavigationProperty Name="FmsWorkResultFile" Relationship="Self.FK__FmsWorkResultFile__CmFile" FromRole="CmFile" ToRole="FmsWorkResultFile" />
+          <NavigationProperty Name="FmsAccident" Relationship="Self.FK_FmsAccident_CmFile1" FromRole="CmFile" ToRole="FmsAccident" />
+          <NavigationProperty Name="FmsAccident1" Relationship="Self.FK_FmsAccident_CmFile2" FromRole="CmFile" ToRole="FmsAccident" />
+          <NavigationProperty Name="FmsAccident2" Relationship="Self.FK_FmsAccident_CmFile3" FromRole="CmFile" ToRole="FmsAccident" />
+          <NavigationProperty Name="FmsConstruction" Relationship="Self.FK_FmsConstruction_CmFile1" FromRole="CmFile" ToRole="FmsConstruction" />
+          <NavigationProperty Name="FmsConstruction1" Relationship="Self.FK_FmsConstruction_CmFile2" FromRole="CmFile" ToRole="FmsConstruction" />
+          <NavigationProperty Name="FmsConstruction2" Relationship="Self.FK_FmsConstruction_CmFile3" FromRole="CmFile" ToRole="FmsConstruction" />
+          <NavigationProperty Name="FmsManualHistory" Relationship="Self.FK_FmsManualHistory_CmFile" FromRole="CmFile" ToRole="FmsManualHistory" />
+          <NavigationProperty Name="FmsMaterial" Relationship="iBemsModel.FK_FmsMaterial_CmFile" FromRole="CmFile" ToRole="FmsMaterial" />
+          <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__CmFile__SiteId__2759D01A" FromRole="CmFile" ToRole="CmSite" />
+          <NavigationProperty Name="FmsReport" Relationship="iBemsModel.FK_FmsReport_CmFile" FromRole="CmFile" ToRole="FmsReport" />
+          <NavigationProperty Name="FmsWorkResultCheckItem" Relationship="iBemsModel.FK_FmsWorkResultCheckItem_CmFile" FromRole="CmFile" ToRole="FmsWorkResultCheckItem" />
+          <NavigationProperty Name="FmsWorkResultCheckItem1" Relationship="iBemsModel.FK_FmsWorkResultCheckItem_CmFile1" FromRole="CmFile" ToRole="FmsWorkResultCheckItem" />
+          <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK__CmFacility__CmFile" FromRole="CmFile" ToRole="CmFacility" />
+        </EntityType>
+        <EntityType Name="CmFileCategory">
+          <Key>
+            <PropertyRef Name="FileCategoryId" />
+          </Key>
+          <Property Name="FileCategoryId" Type="Int32" Nullable="false" />
+          <Property Name="Name" Type="String" MaxLength="32" FixedLength="false" Unicode="true" Nullable="false" />
+          <NavigationProperty Name="CmFile" Relationship="Self.FK__CmFile__CmFileCategory" FromRole="CmFileCategory" ToRole="CmFile" />
+        </EntityType>
+        <EntityType Name="CmFloor">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="BuildingId" />
+            <PropertyRef Name="FloorId" />
+          </Key>
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="BuildingId" Type="Int32" Nullable="false" />
+          <Property Name="FloorId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+          <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
+          <NavigationProperty Name="BemsMonitoringPoint" Relationship="Self.FK__BemsMonitoringPoint__CmFloor" FromRole="CmFloor" ToRole="BemsMonitoringPoint" />
+          <NavigationProperty Name="CmBuilding" Relationship="Self.FK__CmFloor__3CF40B7E" FromRole="CmFloor" ToRole="CmBuilding" />
+          <NavigationProperty Name="CmZone" Relationship="Self.FK__CmLocation__3DE82FB7" FromRole="CmFloor" ToRole="CmZone" />
+          <NavigationProperty Name="CmZoneTempHumiSet" Relationship="Self.FK_CmZoneTempHumiSet_CmFloor" FromRole="CmFloor" ToRole="CmZoneTempHumiSet" />
+          <NavigationProperty Name="CmPatrolPos" Relationship="iBemsModel.FK_CmPatrolPos_CmFloor" FromRole="CmFloor" ToRole="CmPatrolPos" />
+          <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK__CmFacility__74444068" FromRole="CmFloor" ToRole="CmFacility" />
+        </EntityType>
+        <EntityType Name="CmHoliday">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="HolidayMonth" />
+            <PropertyRef Name="HolidayDay" />
+            <PropertyRef Name="IsLunar" />
+          </Key>
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="HolidayMonth" Type="Int16" Nullable="false" />
+          <Property Name="HolidayDay" Type="Int16" Nullable="false" />
+          <Property Name="IsLunar" Type="Boolean" Nullable="false" />
+          <Property Name="Name" Type="String" MaxLength="16" FixedLength="false" Unicode="true" Nullable="false" />
+          <Property Name="IsUse" Type="Boolean" />
+          <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__CmHoliday__SiteI__0BB1B5A5" FromRole="CmHoliday" ToRole="CmSite" />
+          <NavigationProperty Name="CmSite1" Relationship="iBemsModel.FK__CmHoliday__SiteI__65AC084E" FromRole="CmHoliday" ToRole="CmSite" />
+          </EntityType>
+        <EntityType Name="CmHolidayCustom">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="HolidayDate" />
+          </Key>
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="HolidayDate" Type="DateTime" Nullable="false" Precision="3" />
+          <Property Name="Name" Type="String" MaxLength="16" FixedLength="false" Unicode="true" Nullable="false" />
+          <Property Name="IsUse" Type="Boolean" />
+          <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__CmHoliday__SiteI__10766AC2" FromRole="CmHolidayCustom" ToRole="CmSite" />
+          <NavigationProperty Name="CmSite1" Relationship="iBemsModel.FK__CmHoliday__SiteI__66A02C87" FromRole="CmHolidayCustom" ToRole="CmSite" />
+          </EntityType>
+        <EntityType Name="CmPosition">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="PositionId" />
+          </Key>
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="PositionId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+          <Property Name="Name" Type="String" MaxLength="40" FixedLength="false" Unicode="true" Nullable="false" />
+          <Property Name="IsUse" Type="Boolean" />
+          <NavigationProperty Name="CmUser" Relationship="Self.FK_CmUser_CmPosition" FromRole="CmPosition" ToRole="CmUser" />
+          <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__CmPositio__SiteI__6A70BD6B" FromRole="CmPosition" ToRole="CmSite" />
+          <NavigationProperty Name="CmSite1" Relationship="iBemsModel.FK__CmUserPos__SiteI__44952D46" FromRole="CmPosition" ToRole="CmSite" />
+          <Property Name="Position" Type="Int32" />
+        </EntityType>
+        <EntityType Name="CmUser">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="UserId" />
+          </Key>
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="UserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
+          <Property Name="CompanyId" Type="Int32" />
+          <Property Name="DepartmentId" Type="Int32" />
+          <Property Name="PositionId" Type="Int32" />
+          <Property Name="BusinessFieldId" Type="Int32" />
+          <Property Name="UserGroupId" Type="Int32" />
+          <Property Name="Name" Type="String" MaxLength="30" FixedLength="false" Unicode="true" Nullable="false" />
+          <Property Name="Passwd" Type="String" MaxLength="30" FixedLength="false" Unicode="true" Nullable="false" />
+          <Property Name="Birthday" Type="DateTime" Precision="3" />
+          <Property Name="Lunar" Type="Boolean" />
+          <Property Name="StateId" Type="Int32" />
+          <Property Name="EmploymentType" Type="Int32" />
+          <Property Name="EmploymentStatus" Type="Int32" />
+          <Property Name="OfficePhoneNo" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
+          <Property Name="HomePhoneNo" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
+          <Property Name="MobilePhoneNo" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
+          <Property Name="HomeZip1" Type="String" MaxLength="3" FixedLength="true" Unicode="false" />
+          <Property Name="HomeZip2" Type="String" MaxLength="3" FixedLength="true" Unicode="false" />
+          <Property Name="HomeAddress1" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
+          <Property Name="HomeAdderss2" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
+          <Property Name="Email" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
+          <Property Name="EnterDate" Type="DateTime" Precision="3" />
+          <Property Name="RetireDate" Type="DateTime" Precision="3" />
+          <Property Name="Comment" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
+          <Property Name="Rfcsn" Type="String" MaxLength="30" FixedLength="false" Unicode="true" />
+          <Property Name="PasswordUpdatedDate" Type="DateTime" Precision="3" />
+          <Property Name="FileId" Type="Int32" />
+          <Property Name="IsBems" Type="Boolean" />
+          <Property Name="IsUse" Type="Boolean" />
+          <Property Name="Certificated" Type="String" MaxLength="512" FixedLength="false" Unicode="true" />
+          <NavigationProperty Name="CmAnnouncement" Relationship="Self.FK_CmAnnouncement_CmUser" FromRole="CmUser" ToRole="CmAnnouncement" />
+          <NavigationProperty Name="CmBusinessField" Relationship="Self.FK_CmUser_CmBusinessField" FromRole="CmUser" ToRole="CmBusinessField" />
+          <NavigationProperty Name="CmCompany" Relationship="Self.FK_CmUser_CmCompany" FromRole="CmUser" ToRole="CmCompany" />
+          <NavigationProperty Name="CmDepartment" Relationship="Self.FK_CmUser_CmDepartment" FromRole="CmUser" ToRole="CmDepartment" />
+          <NavigationProperty Name="CmPosition" Relationship="Self.FK_CmUser_CmPosition" FromRole="CmUser" ToRole="CmPosition" />
+          <NavigationProperty Name="CmUserToLicense" Relationship="Self.FK__CmUserToLicense__CmUser" FromRole="CmUser" ToRole="CmUserToLicense" />
+          <NavigationProperty Name="FmsDrawingHistory" Relationship="Self.FK__FmsDrawingHistory__CmUser" FromRole="CmUser" ToRole="FmsDrawingHistory" />
+          <NavigationProperty Name="FmsMaterialPurchaseOrder" Relationship="Self.FK__FmsMaterialOrder__CmUser" FromRole="CmUser" ToRole="FmsMaterialPurchaseOrder" />
+          <NavigationProperty Name="FmsMaterialPurchaseRequest" Relationship="Self.FK__FmsMaterialPurchaseRequest__CmUser_AsRequestUserId" FromRole="CmUser" ToRole="FmsMaterialPurchaseRequest" />
+          <NavigationProperty Name="FmsMaterialPurchaseRequest1" Relationship="Self.FK__FmsMaterialPurchaseRequest__CmUser1_AsApprovalUserId" FromRole="CmUser" ToRole="FmsMaterialPurchaseRequest" />
+          <NavigationProperty Name="FmsMaterialStored" Relationship="Self.FK__FmsMaterialStored__CmUser_AsStoredUserId" FromRole="CmUser" ToRole="FmsMaterialStored" />
+          <NavigationProperty Name="FmsMaterialStored1" Relationship="Self.FK__FmsMaterialStored__CmUser1_AsApprovalUserId" FromRole="CmUser" ToRole="FmsMaterialStored" />
+          <NavigationProperty Name="FmsWorkOrder" Relationship="Self.FK__FmsWorkOrder__CmUser" FromRole="CmUser" ToRole="FmsWorkOrder" />
+          <NavigationProperty Name="FmsWorkRequest" Relationship="Self.FK__FmsWorkRequest__CmUser_AsRequestUserId" FromRole="CmUser" ToRole="FmsWorkRequest" />
+          <NavigationProperty Name="FmsWorkRequest1" Relationship="Self.FK__FmsWorkRequest__CmUser1_AsRejectUserId" FromRole="CmUser" ToRole="FmsWorkRequest" />
+          <NavigationProperty Name="FmsWorkResult" Relationship="Self.FK__FmsWorkResult__CmUser_AsWorkerUserId" FromRole="CmUser" ToRole="FmsWorkResult" />
+          <NavigationProperty Name="FmsWorkResult1" Relationship="Self.FK__FmsWorkResult__CmUser1_AsConfirmedUserId" FromRole="CmUser" ToRole="FmsWorkResult" />
+          <NavigationProperty Name="FmsWorkSchedule" Relationship="Self.FK__FmsWorkSchedule__CmUser" FromRole="CmUser" ToRole="FmsWorkSchedule" />
+          <NavigationProperty Name="CmUserGroup" Relationship="Self.FK_CmUser_CmUserGroup" FromRole="CmUser" ToRole="CmUserGroup" />
+          <NavigationProperty Name="CmUserLoginHistory" Relationship="Self.FK_CmUserLoginHistory_CmUser" FromRole="CmUser" ToRole="CmUserLoginHistory" />
+          <NavigationProperty Name="FmsConstructionEstimation" Relationship="Self.FK_FmsConstructionEstimation_CmUser" FromRole="CmUser" ToRole="FmsConstructionEstimation" />
+          <NavigationProperty Name="FmsManualHistory" Relationship="Self.FK_FmsManualHistory_CmUser" FromRole="CmUser" ToRole="FmsManualHistory" />
+          <NavigationProperty Name="FmsDailyCheckReport" Relationship="iBemsModel.FK_FmsDailyCheckReport_CmUser" FromRole="CmUser" ToRole="FmsDailyCheckReport" />
+          <NavigationProperty Name="FmsFacilityOperationReport" Relationship="iBemsModel.FK_FmsFacilityOperationReport_CmUser" FromRole="CmUser" ToRole="FmsFacilityOperationReport" />
+          <Property Name="IsScheduleUser" Type="Boolean" />
+          <NavigationProperty Name="FmsMonthlyReport" Relationship="iBemsModel.FK_FmsMonthlyReport_CmUser" FromRole="CmUser" ToRole="FmsMonthlyReport" />
+          <NavigationProperty Name="FmsMaterialRelease" Relationship="iBemsModel.FK_FmsMaterialRelease_CmUser" FromRole="CmUser" ToRole="FmsMaterialRelease" />
+          <NavigationProperty Name="FmsMaterialRelease1" Relationship="iBemsModel.FK_FmsMaterialRelease_CmUser1" FromRole="CmUser" ToRole="FmsMaterialRelease" />
+          <Property Name="IsSI" Type="Boolean" Nullable="true" />
+          <Property Name="IsMobile" Type="Boolean" Nullable="true" />
+          <NavigationProperty Name="CmPatrolGroupUser" Relationship="iBemsModel.FK_CmPatrolGroupUser_CmUser" FromRole="CmUser" ToRole="CmPatrolGroupUser" />
+          <NavigationProperty Name="FmsReport" Relationship="iBemsModel.FK_FmsReport_CmUser" FromRole="CmUser" ToRole="FmsReport" />
+          <NavigationProperty Name="FmsReport1" Relationship="iBemsModel.FK_FmsReport_CmUser1" FromRole="CmUser" ToRole="FmsReport" />
+          <NavigationProperty Name="FmsReport2" Relationship="iBemsModel.FK_FmsReport_CmUser2" FromRole="CmUser" ToRole="FmsReport" />
+          <Property Name="Devicetoken" Type="String" MaxLength="500" FixedLength="false" Unicode="true" />
+          <NavigationProperty Name="FmsEquipmentRentInfo" Relationship="iBemsModel.FK_FmsEquipmentRentInfo_CmUser" FromRole="CmUser" ToRole="FmsEquipmentRentInfo" />
+          <NavigationProperty Name="FmsEquipmentRentInfo1" Relationship="iBemsModel.FK_FmsEquipmentRentInfo_CmUser1" FromRole="CmUser" ToRole="FmsEquipmentRentInfo" />
+          <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK__CmFacility__753864A1" FromRole="CmUser" ToRole="CmFacility" />
+          <NavigationProperty Name="CmFacility1" Relationship="iBemsModel.FK__CmFacility__762C88DA" FromRole="CmUser" ToRole="CmFacility" />
+          <NavigationProperty Name="CmFacility2" Relationship="iBemsModel.FK_CmFacility_CmUser" FromRole="CmUser" ToRole="CmFacility" />
+          <NavigationProperty Name="CmFacility3" Relationship="iBemsModel.FK_CmFacility_CmUser1" FromRole="CmUser" ToRole="CmFacility" />
+          <NavigationProperty Name="FmsDailyReport" Relationship="iBemsModel.FK_FmsDailyReport_CmUser" FromRole="CmUser" ToRole="FmsDailyReport" />
+          <NavigationProperty Name="FmsEquipment" Relationship="iBemsModel.FK_FmsEquipment_CmUser" FromRole="CmUser" ToRole="FmsEquipment" />
+          </EntityType>
+        <EntityType Name="CmUserGroup">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="UserGroupId" />
+          </Key>
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="UserGroupId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+          <Property Name="Name" Type="String" MaxLength="32" FixedLength="false" Unicode="true" Nullable="false" />
+          <NavigationProperty Name="CmUser" Relationship="Self.FK_CmUser_CmUserGroup" FromRole="CmUserGroup" ToRole="CmUser" />
+          <NavigationProperty Name="CmUserGroupPermission" Relationship="Self.FK__CmUserGroupPermission__CmUserGroup" FromRole="CmUserGroup" ToRole="CmUserGroupPermission" />
+          <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__CmUserGro__SiteI__53D770D6" FromRole="CmUserGroup" ToRole="CmSite" />
+        </EntityType>
+        <EntityType Name="CmUserGroupPermission">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="UserGroupId" />
+            <PropertyRef Name="MenuId" />
+          </Key>
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="UserGroupId" Type="Int32" Nullable="false" />
+          <Property Name="MenuId" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
+          <Property Name="MenuPermission" Type="Int16" />
+          <NavigationProperty Name="CmUserGroup" Relationship="Self.FK__CmUserGroupPermission__CmUserGroup" FromRole="CmUserGroupPermission" ToRole="CmUserGroup" />
+        </EntityType>
+        <EntityType Name="CmUserLoginHistory">
+          <Key>
+            <PropertyRef Name="LoginHistoryId" />
+          </Key>
+          <Property Name="LoginHistoryId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="UserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
+          <Property Name="Type" Type="String" MaxLength="10" FixedLength="false" Unicode="true" Nullable="false" />
+          <Property Name="TraceTime" Type="DateTime" Nullable="false" Precision="3" />
+          <Property Name="IpAddress" Type="String" MaxLength="16" FixedLength="false" Unicode="true" />
+          <NavigationProperty Name="CmUser" Relationship="Self.FK_CmUserLoginHistory_CmUser" FromRole="CmUserLoginHistory" ToRole="CmUser" />
+        </EntityType>
+        <EntityType Name="CmUserToLicense">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="UserId" />
+            <PropertyRef Name="LicenseId" />
+          </Key>
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="UserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
+          <Property Name="LicenseId" Type="Int32" Nullable="false" />
+          <NavigationProperty Name="CmUser" Relationship="Self.FK__CmUserToLicense__CmUser" FromRole="CmUserToLicense" ToRole="CmUser" />
+          <NavigationProperty Name="FmsLicense" Relationship="Self.FK__CmUserToLicense__FmsLicense" FromRole="CmUserToLicense" ToRole="FmsLicense" />
+        </EntityType>
+        <EntityType Name="CmZone">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="BuildingId" />
+            <PropertyRef Name="FloorId" />
+            <PropertyRef Name="ZoneId" />
+          </Key>
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="BuildingId" Type="Int32" Nullable="false" />
+          <Property Name="FloorId" Type="Int32" Nullable="false" />
+          <Property Name="ZoneId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+          <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
+          <Property Name="Target_temperature" Type="Double" />
+          <Property Name="Target_humidity" Type="Int16" />
+          <NavigationProperty Name="BemsMonitoringPoint" Relationship="Self.FK__BemsMonitoringPoint__CmZone" FromRole="CmZone" ToRole="BemsMonitoringPoint" />
+          <NavigationProperty Name="CmBuilding" Relationship="Self.FK__CmZone__CmBuilding" FromRole="CmZone" ToRole="CmBuilding" />
+          <NavigationProperty Name="CmFloor" Relationship="Self.FK__CmLocation__3DE82FB7" FromRole="CmZone" ToRole="CmFloor" />
+          <NavigationProperty Name="CmZoneTempHumiSet" Relationship="Self.FK_CmZoneTempHumiSet_CmZone" FromRole="CmZone" ToRole="CmZoneTempHumiSet" />
+          <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK__CmFacility__CmZone" FromRole="CmZone" ToRole="CmFacility" />
+        </EntityType>
+        <EntityType Name="CmZoneTempHumiSet">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="BuildingId" />
+            <PropertyRef Name="FloorId" />
+            <PropertyRef Name="ZoneId" />
+          </Key>
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="BuildingId" Type="Int32" Nullable="false" />
+          <Property Name="FloorId" Type="Int32" Nullable="false" />
+          <Property Name="ZoneId" Type="Int32" Nullable="false" />
+          <Property Name="T1" Type="Double" Nullable="false" />
+          <Property Name="T2" Type="Double" Nullable="false" />
+          <Property Name="T3" Type="Double" Nullable="false" />
+          <Property Name="T4" Type="Double" Nullable="false" />
+          <Property Name="T5" Type="Double" Nullable="false" />
+          <Property Name="T6" Type="Double" Nullable="false" />
+          <Property Name="T7" Type="Double" Nullable="false" />
+          <Property Name="T8" Type="Double" Nullable="false" />
+          <Property Name="T9" Type="Double" Nullable="false" />
+          <Property Name="T10" Type="Double" Nullable="false" />
+          <Property Name="T11" Type="Double" Nullable="false" />
+          <Property Name="T12" Type="Double" Nullable="false" />
+          <Property Name="H1" Type="Int16" Nullable="false" />
+          <Property Name="H2" Type="Int16" Nullable="false" />
+          <Property Name="H3" Type="Int16" Nullable="false" />
+          <Property Name="H4" Type="Int16" Nullable="false" />
+          <Property Name="H5" Type="Int16" Nullable="false" />
+          <Property Name="H6" Type="Int16" Nullable="false" />
+          <Property Name="H7" Type="Int16" Nullable="false" />
+          <Property Name="H8" Type="Int16" Nullable="false" />
+          <Property Name="H9" Type="Int16" Nullable="false" />
+          <Property Name="H10" Type="Int16" Nullable="false" />
+          <Property Name="H11" Type="Int16" Nullable="false" />
+          <Property Name="H12" Type="Int16" Nullable="false" />
+          <NavigationProperty Name="CmBuilding" Relationship="Self.FK_CmZoneTempHumiSet_CmBuilding" FromRole="CmZoneTempHumiSet" ToRole="CmBuilding" />
+          <NavigationProperty Name="CmFloor" Relationship="Self.FK_CmZoneTempHumiSet_CmFloor" FromRole="CmZoneTempHumiSet" ToRole="CmFloor" />
+          <NavigationProperty Name="CmZone" Relationship="Self.FK_CmZoneTempHumiSet_CmZone" FromRole="CmZoneTempHumiSet" ToRole="CmZone" />
+          <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_CmZoneTempHumiSet_CmSite" FromRole="CmZoneTempHumiSet" ToRole="CmSite" />
+        </EntityType>
+        <EntityType Name="FmsAccident">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="AccidentId" />
+          </Key>
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="AccidentId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+          <Property Name="Name" Type="String" MaxLength="256" FixedLength="false" Unicode="true" Nullable="false" />
+          <Property Name="StartDate" Type="DateTime" Precision="3" />
+          <Property Name="EndDate" Type="DateTime" Precision="3" />
+          <Property Name="AccidentTypeId" Type="Int32" Nullable="false" />
+          <Property Name="DepartmentId" Type="Int32" />
+          <Property Name="AccidentLocation" Type="String" MaxLength="256" FixedLength="false" Unicode="true" />
+          <Property Name="Reason" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
+          <Property Name="Action" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
+          <Property Name="Damage" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
+          <Property Name="Measurement" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
+          <Property Name="FileId1" Type="Int32" />
+          <Property Name="FileId2" Type="Int32" />
+          <Property Name="FileId3" Type="Int32" />
+          <Property Name="CompanyId" Type="Int32" />
+          <NavigationProperty Name="CmDepartment" Relationship="Self.FK_FmsAccident_CmDepartment" FromRole="FmsAccident" ToRole="CmDepartment" />
+          <NavigationProperty Name="CmFile" Relationship="Self.FK_FmsAccident_CmFile1" FromRole="FmsAccident" ToRole="CmFile" />
+          <NavigationProperty Name="CmFile1" Relationship="Self.FK_FmsAccident_CmFile2" FromRole="FmsAccident" ToRole="CmFile" />
+          <NavigationProperty Name="CmFile2" Relationship="Self.FK_FmsAccident_CmFile3" FromRole="FmsAccident" ToRole="CmFile" />
+          <NavigationProperty Name="FmsAccidentCodeType" Relationship="Self.FK_FmsAccident_FmsAccidentCodeType" FromRole="FmsAccident" ToRole="FmsAccidentCodeType" />
+          <NavigationProperty Name="CmCompany" Relationship="iBemsModel.FK_FmsAccident_CmCompany" FromRole="FmsAccident" ToRole="CmCompany" />
+        </EntityType>
+        <EntityType Name="FmsAccidentCodeType">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="AccidentTypeId" />
+          </Key>
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="AccidentTypeId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+          <Property Name="Name" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
+          <Property Name="IsUse" Type="Boolean" Nullable="false" />
+          <NavigationProperty Name="FmsAccident" Relationship="Self.FK_FmsAccident_FmsAccidentCodeType" FromRole="FmsAccidentCodeType" ToRole="FmsAccident" />
+        </EntityType>
+        <EntityType Name="FmsBudget">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="Year" />
+          </Key>
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="Year" Type="Int32" Nullable="false" />
+          <NavigationProperty Name="FmsBudgetDetail" Relationship="iBemsModel.FK_FmsBudgetDetail_FmsBudget" FromRole="FmsBudget" ToRole="FmsBudgetDetail" />
+        </EntityType>
+        <EntityType Name="FmsBudgetCodeClass">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="BudgetClassId" />
+          </Key>
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="BudgetClassId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+          <Property Name="BudgetSeq" Type="String" MaxLength="6" FixedLength="false" Unicode="true" Nullable="false" />
+          <Property Name="ParentBudgetClassId" Type="Int32" />
+          <Property Name="Depth" Type="Int32" Nullable="false" />
+          <Property Name="Name" Type="String" MaxLength="32" FixedLength="false" Unicode="true" Nullable="false" />
+          <Property Name="Abbreviation" Type="String" MaxLength="16" FixedLength="false" Unicode="true" />
+          <Property Name="IsUse" Type="Boolean" />
+          <Property Name="YearlyBudget" Type="Double" />
+          <Property Name="MonthlyBudget" Type="Double" />
+          <NavigationProperty Name="FmsBudgetDetail" Relationship="iBemsModel.FK_FmsBudgetDetail_FmsBudgetCodeClass" FromRole="FmsBudgetCodeClass" ToRole="FmsBudgetDetail" />
+          <Property Name="RootBudgetClassId" Type="Int32" />
+        </EntityType>
+        <EntityType Name="FmsCompanyEstimationCodeClass">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="CompanyEstimationClassId" />
+          </Key>
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="CompanyEstimationClassId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+          <Property Name="Name" Type="String" MaxLength="32" FixedLength="false" Unicode="true" Nullable="false" />
+          <Property Name="IsUse" Type="Boolean" />
+        </EntityType>
+        <EntityType Name="FmsConstruction">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="ConstructionId" />
+          </Key>
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="ConstructionId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+          <Property Name="Name" Type="String" MaxLength="256" FixedLength="false" Unicode="true" Nullable="false" />
+          <Property Name="ConstructionTypeId" Type="Int32" Nullable="false" />
+          <Property Name="StartDate" Type="DateTime" Nullable="false" Precision="3" />
+          <Property Name="EndDate" Type="DateTime" Nullable="false" Precision="3" />
+          <Property Name="PartnerId" Type="Int32" Nullable="false" />
+          <Property Name="ConstructLocation" Type="String" MaxLength="256" FixedLength="false" Unicode="true" Nullable="false" />
+          <Property Name="OwnerShipName" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
+          <Property Name="CommitmentMan" Type="Int16" />
+          <Property Name="OwnerShipPhoneNo" Type="String" MaxLength="20" FixedLength="false" Unicode="true" Nullable="false" />
+          <Property Name="WeldWorkStartTime" Type="DateTime" Precision="3" />
+          <Property Name="WeldWorkEndTime" Type="DateTime" Precision="3" />
+          <Property Name="GasWorkStartTime" Type="DateTime" Precision="3" />
+          <Property Name="GasWorkEndTime" Type="DateTime" Precision="3" />
+          <Property Name="PaintWorkStartTime" Type="DateTime" Precision="3" />
+          <Property Name="PaintWorkEndTime" Type="DateTime" Precision="3" />
+          <Property Name="Comment" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
+          <Property Name="ProgressId" Type="Int16" Nullable="false" />
+          <Property Name="AddDate" Type="DateTime" Nullable="false" Precision="3" />
+          <Property Name="UpdateDate" Type="DateTime" Nullable="false" Precision="3" />
+          <Property Name="ConstructionDetail" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
+          <Property Name="InOutStockName" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
+          <Property Name="FileId1" Type="Int32" />
+          <Property Name="FileId2" Type="Int32" />
+          <Property Name="FileId3" Type="Int32" />
+          <NavigationProperty Name="CmFile" Relationship="Self.FK_FmsConstruction_CmFile1" FromRole="FmsConstruction" ToRole="CmFile" />
+          <NavigationProperty Name="CmFile1" Relationship="Self.FK_FmsConstruction_CmFile2" FromRole="FmsConstruction" ToRole="CmFile" />
+          <NavigationProperty Name="CmFile2" Relationship="Self.FK_FmsConstruction_CmFile3" FromRole="FmsConstruction" ToRole="CmFile" />
+          <NavigationProperty Name="FmsConstructionCodeProgress" Relationship="Self.FK_FmsConstruction_FmsConstructionCodeProgress" FromRole="FmsConstruction" ToRole="FmsConstructionCodeProgress" />
+          <NavigationProperty Name="FmsConstructionCodeType" Relationship="Self.FK_FmsConstruction_FmsConstructionCodeType" FromRole="FmsConstruction" ToRole="FmsConstructionCodeType" />
+          <NavigationProperty Name="FmsConstructionEstimation" Relationship="Self.FK_FmsConstructionEstimation_FmsConstruction" FromRole="FmsConstruction" ToRole="FmsConstructionEstimation" />
+          <NavigationProperty Name="CmPartner" Relationship="iBemsModel.FK_FmsConstruction_CmPartner" FromRole="FmsConstruction" ToRole="CmPartner" />
+        </EntityType>
+        <EntityType Name="FmsConstructionCodeProgress">
+          <Key>
+            <PropertyRef Name="ProgressId" />
+          </Key>
+          <Property Name="ProgressId" Type="Int16" Nullable="false" />
+          <Property Name="Name" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
+          <Property Name="Description" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
+          <NavigationProperty Name="FmsConstruction" Relationship="Self.FK_FmsConstruction_FmsConstructionCodeProgress" FromRole="FmsConstructionCodeProgress" ToRole="FmsConstruction" />
+        </EntityType>
+        <EntityType Name="FmsConstructionCodeType">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="ConstructionTypeId" />
+          </Key>
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="ConstructionTypeId" Type="Int32" Nullable="false" />
+          <Property Name="Name" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
+          <Property Name="IsUse" Type="Boolean" Nullable="false" />
+          <NavigationProperty Name="FmsConstruction" Relationship="Self.FK_FmsConstruction_FmsConstructionCodeType" FromRole="FmsConstructionCodeType" ToRole="FmsConstruction" />
+        </EntityType>
+        <EntityType Name="FmsConstructionEstimation">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="ConstructionId" />
+          </Key>
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="ConstructionId" Type="Int32" Nullable="false" />
+          <Property Name="EstimateDate" Type="DateTime" Nullable="false" Precision="3" />
+          <Property Name="EstimateUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
+          <Property Name="Safety01_CleanUp" Type="Boolean" />
+          <Property Name="Safety02_PersonalProtection" Type="Boolean" />
+          <Property Name="Safety03_FireExtinguisher" Type="Boolean" />
+          <Property Name="Safety04_HighPlaceWork" Type="Boolean" />
+          <Property Name="Safety05_Weld" Type="Boolean" />
+          <Property Name="Safety06_SurroundingCleanUp" Type="Boolean" />
+          <Property Name="Safety07_SurroundingHealthy" Type="Boolean" />
+          <Property Name="Safety08_Noise" Type="Boolean" />
+          <Property Name="Safety09_FacilityProtection" Type="Boolean" />
+          <Property Name="Safety10_Waste" Type="Boolean" />
+          <Property Name="Safety11_Execution" Type="Boolean" />
+          <Property Name="Safety12_Announcement" Type="Boolean" />
+          <Property Name="Ability01_Compliance" Type="Boolean" />
+          <Property Name="Ability02_Fault" Type="Boolean" />
+          <Property Name="Ability03_SkillLevel" Type="Boolean" />
+          <Property Name="Ability04_ProcessManagement" Type="Boolean" />
+          <Property Name="Ability05_Collaboration" Type="Boolean" />
+          <Property Name="Service01_Compliance" Type="Boolean" />
+          <Property Name="Service02_SkillLevel" Type="Boolean" />
+          <Property Name="Comment" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
+          <Property Name="TotalEstimateScore" Type="Double" />
+          <Property Name="SafetyScore" Type="Double" />
+          <Property Name="AbilityScore" Type="Double" />
+          <Property Name="ServiceScore" Type="Double" />
+          <NavigationProperty Name="CmUser" Relationship="Self.FK_FmsConstructionEstimation_CmUser" FromRole="FmsConstructionEstimation" ToRole="CmUser" />
+          <NavigationProperty Name="FmsConstruction" Relationship="Self.FK_FmsConstructionEstimation_FmsConstruction" FromRole="FmsConstructionEstimation" ToRole="FmsConstruction" />
+        </EntityType>
+        <EntityType Name="FmsContractClass">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="ContractClassId" />
+          </Key>
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="ContractClassId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+          <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
+          <Property Name="IsUse" Type="Boolean" />
+          <NavigationProperty Name="FmsContract" Relationship="iBemsModel.FK_FmsContract_FmsContractClass" FromRole="FmsContractClass" ToRole="FmsContract" />
+        </EntityType>
+        <EntityType Name="FmsContractMethod">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="ContractMethodId" />
+          </Key>
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="ContractMethodId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+          <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
+          <Property Name="IsUse" Type="Boolean" />
+          <NavigationProperty Name="FmsContract" Relationship="iBemsModel.FK_FmsContract_FmsContractMethod" FromRole="FmsContractMethod" ToRole="FmsContract" />
+        </EntityType>
+        <EntityType Name="FmsContractType">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="ContractTypeId" />
+          </Key>
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="ContractTypeId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+          <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
+          <Property Name="IsUse" Type="Boolean" />
+          <NavigationProperty Name="FmsContract" Relationship="iBemsModel.FK_FmsContract_FmsContractType" FromRole="FmsContractType" ToRole="FmsContract" />
+        </EntityType>
+        <EntityType Name="FmsDrawing">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="DrawingId" />
+          </Key>
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="DrawingId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+          <Property Name="DrawingNo" Type="String" MaxLength="20" FixedLength="false" Unicode="true" Nullable="false" />
+          <Property Name="DrawingGroupId" Type="Int32" Nullable="false" />
+          <Property Name="DrawingTypeId" Type="Int32" Nullable="false" />
+          <Property Name="Name" Type="String" MaxLength="200" FixedLength="false" Unicode="true" Nullable="false" />
+          <Property Name="Description" Type="String" MaxLength="2000" FixedLength="false" Unicode="true" />
+          <NavigationProperty Name="FmsDrawingCodeGroup" Relationship="Self.FK__FmsDrawing__6E565CE8" FromRole="FmsDrawing" ToRole="FmsDrawingCodeGroup" />
+          <NavigationProperty Name="FmsDrawingCodeType" Relationship="Self.FK__FmsDrawing__6F4A8121" FromRole="FmsDrawing" ToRole="FmsDrawingCodeType" />
+          <NavigationProperty Name="FmsDrawingHistory" Relationship="Self.FK__FmsDrawingHistor__7132C993" FromRole="FmsDrawing" ToRole="FmsDrawingHistory" />
+          <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsDrawin__SiteI__6D6238AF" FromRole="FmsDrawing" ToRole="CmSite" />
+        </EntityType>
+        <EntityType Name="FmsDrawingCodeGroup">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="DrawingGroupId" />
+          </Key>
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="DrawingGroupId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+          <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
+          <Property Name="IsUse" Type="Boolean" />
+          <NavigationProperty Name="FmsDrawing" Relationship="Self.FK__FmsDrawing__6E565CE8" FromRole="FmsDrawingCodeGroup" ToRole="FmsDrawing" />
+          <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsDrawin__SiteI__6B79F03D" FromRole="FmsDrawingCodeGroup" ToRole="CmSite" />
+          <NavigationProperty Name="CmSite1" Relationship="iBemsModel.FK__FmsDrawin__SiteI__6F357288" FromRole="FmsDrawingCodeGroup" ToRole="CmSite" />
+        </EntityType>
+        <EntityType Name="FmsDrawingCodeType">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="DrawingTypeId" />
+          </Key>
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="DrawingTypeId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+          <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
+          <Property Name="IsUse" Type="Boolean" />
+          <NavigationProperty Name="FmsDrawing" Relationship="Self.FK__FmsDrawing__6F4A8121" FromRole="FmsDrawingCodeType" ToRole="FmsDrawing" />
+          <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsDrawin__SiteI__6C6E1476" FromRole="FmsDrawingCodeType" ToRole="CmSite" />
+          <NavigationProperty Name="CmSite1" Relationship="iBemsModel.FK__FmsDrawin__SiteI__702996C1" FromRole="FmsDrawingCodeType" ToRole="CmSite" />
+        </EntityType>
+        <EntityType Name="FmsDrawingHistory">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="DrawingId" />
+            <PropertyRef Name="HistoryId" />
+          </Key>
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="DrawingId" Type="Int32" Nullable="false" />
+          <Property Name="HistoryId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+          <Property Name="RevisionNo" Type="Int32" />
+          <Property Name="FileId" Type="Int32" />
+          <Property Name="Description" Type="String" MaxLength="2000" FixedLength="false" Unicode="true" />
+          <Property Name="UpdatedDate" Type="DateTime" Precision="3" />
+          <Property Name="UpdatedUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
+          <NavigationProperty Name="CmFile" Relationship="Self.FK__FmsDrawingHistor__04DA9AE4" FromRole="FmsDrawingHistory" ToRole="CmFile" />
+          <NavigationProperty Name="CmUser" Relationship="Self.FK__FmsDrawingHistory__CmUser" FromRole="FmsDrawingHistory" ToRole="CmUser" />
+          <NavigationProperty Name="FmsDrawing" Relationship="Self.FK__FmsDrawingHistor__7132C993" FromRole="FmsDrawingHistory" ToRole="FmsDrawing" />
+        </EntityType>
+        <EntityType Name="FmsEquipmentCodeStateType">
+          <Key>
+            <PropertyRef Name="EquipmentStateTypeId" />
+          </Key>
+          <Property Name="EquipmentStateTypeId" Type="Int16" Nullable="false" />
+          <Property Name="Name" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
+          <Property Name="Comment" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
+          <NavigationProperty Name="FmsEquipmentHistory" Relationship="Self.FK_FmsEquipmentHistory_FmsEquipmentCodeStateType" FromRole="FmsEquipmentCodeStateType" ToRole="FmsEquipmentHistory" />
+          <NavigationProperty Name="FmsEquipmentRentInfo" Relationship="iBemsModel.FK_FmsEquipmentRentInfo_FmsEquipmentCodeStateType" FromRole="FmsEquipmentCodeStateType" ToRole="FmsEquipmentRentInfo" />
+        </EntityType>
+        <EntityType Name="FmsEquipmentCodeType">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="EquipmentTypeId" />
+          </Key>
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="EquipmentTypeId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+          <Property Name="Name" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
+          <Property Name="IsUse" Type="Boolean" Nullable="false" />
+          <Property Name="Description" Type="String" MaxLength="255" FixedLength="false" Unicode="true" />
+          <NavigationProperty Name="FmsEquipment" Relationship="iBemsModel.FK_FmsEquipment_FmsEquipmentCodeType" FromRole="FmsEquipmentCodeType" ToRole="FmsEquipment" />
+        </EntityType>
+        <EntityType Name="FmsEquipmentHistory">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="EquipmentHistoryId" />
+            <PropertyRef Name="EquipmentId" />
+          </Key>
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="EquipmentHistoryId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+          <Property Name="EquipmentId" Type="Int32" Nullable="false" />
+          <Property Name="TotalStockCount" Type="Int32" />
+          <Property Name="CurrentStockCount" Type="Int32" />
+          <Property Name="RentCount" Type="Int32" />
+          <Property Name="CurrentRentCount" Type="Int32" />
+          <Property Name="ReturnCount" Type="Int32" />
+          <Property Name="LossCount" Type="Int32" />
+          <Property Name="StoredCount" Type="Int32" />
+          <Property Name="EquipmentRentId" Type="Int32" />
+          <Property Name="EquipmentStateTypeId" Type="Int16" />
+          <Property Name="AddDate" Type="DateTime" Precision="3" />
+          <Property Name="UpdateDate" Type="DateTime" Precision="3" />
+          <Property Name="IsReturned" Type="Boolean" />
+          <NavigationProperty Name="FmsEquipmentCodeStateType" Relationship="Self.FK_FmsEquipmentHistory_FmsEquipmentCodeStateType" FromRole="FmsEquipmentHistory" ToRole="FmsEquipmentCodeStateType" />
+          <NavigationProperty Name="FmsEquipmentRentInfo" Relationship="iBemsModel.FK_FmsEquipmentHistory_FmsEquipmentRentInfo" FromRole="FmsEquipmentHistory" ToRole="FmsEquipmentRentInfo" />
+          <NavigationProperty Name="FmsEquipment" Relationship="iBemsModel.FK_FmsEquipmentHistory_FmsEquipment" FromRole="FmsEquipmentHistory" ToRole="FmsEquipment" />
+        </EntityType>
+        <EntityType Name="FmsFacilityCheckItem">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="FacilityCode" />
+            <PropertyRef Name="CheckItemId" />
+          </Key>
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="FacilityCode" Type="Int32" Nullable="false" />
+          <Property Name="CheckItemId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+          <Property Name="WorkTypeId" Type="Int32" Nullable="false" />
+          <Property Name="CycleUnitId" Type="Int32" Nullable="false" />
+          <Property Name="Name" Type="String" MaxLength="100" FixedLength="false" Unicode="true" Nullable="false" />
+          <Property Name="IsYesNoResult" Type="Boolean" Nullable="false" />
+          <Property Name="IsUse" Type="Boolean" />
+          <NavigationProperty Name="FmsWorkCodeCycleUnit" Relationship="Self.FK__FmsFacilityCheckItem__FmsWorkCodeCycleUnit" FromRole="FmsFacilityCheckItem" ToRole="FmsWorkCodeCycleUnit" />
+          <NavigationProperty Name="FmsWorkCodeType" Relationship="Self.FK__FmsFacilityCheckItem__FmsWorkCodeWorkType" FromRole="FmsFacilityCheckItem" ToRole="FmsWorkCodeType" />
+          <NavigationProperty Name="FmsWorkResultCheckItem" Relationship="Self.FK__FmsWorkResultCheckItem__FmsFacilityCheckItem" FromRole="FmsFacilityCheckItem" ToRole="FmsWorkResultCheckItem" />
+        </EntityType>
+        <EntityType Name="FmsFacilityCodeClass">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="FacilityClassId" />
+          </Key>
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="FacilityClassId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+          <Property Name="ParentFacilityClassId" Type="Int32" />
+          <Property Name="Depth" Type="Int32" Nullable="false" />
+          <Property Name="Name" Type="String" MaxLength="80" FixedLength="false" Unicode="true" Nullable="false" />
+          <Property Name="Abbreviation" Type="String" MaxLength="40" FixedLength="false" Unicode="true" />
+          <Property Name="IsUse" Type="Boolean" />
+          <NavigationProperty Name="FmsFacilityCodeClass1" Relationship="Self.FK__FmsFacilityCodeClass__FmsFacilityCodeClass" FromRole="FmsFacilityCodeClass" ToRole="FmsFacilityCodeClass1" />
+          <NavigationProperty Name="FmsFacilityCodeClass2" Relationship="Self.FK__FmsFacilityCodeClass__FmsFacilityCodeClass" FromRole="FmsFacilityCodeClass1" ToRole="FmsFacilityCodeClass" />
+          <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsFacilityCodeClass__CmSite" FromRole="FmsFacilityCodeClass" ToRole="CmSite" />
+          <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK__CmFacility__FmsFacilityCodeClassAsFirst" FromRole="FmsFacilityCodeClass" ToRole="CmFacility" />
+          <NavigationProperty Name="CmFacility1" Relationship="iBemsModel.FK__CmFacility__FmsFacilityCodeClassAsSecond" FromRole="FmsFacilityCodeClass" ToRole="CmFacility" />
+          <NavigationProperty Name="CmFacility2" Relationship="iBemsModel.FK__CmFacility__FmsFacilityCodeClassAsThird" FromRole="FmsFacilityCodeClass" ToRole="CmFacility" />
+          </EntityType>
+        <EntityType Name="FmsFacilityManual">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="FacilityCode" />
+            <PropertyRef Name="ManualId" />
+          </Key>
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="FacilityCode" Type="Int32" Nullable="false" />
+          <Property Name="ManualId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+          <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
+          <Property Name="Name" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
+          <Property Name="Description" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
+          <Property Name="Keyword" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
+          <Property Name="FileId" Type="Int32" />
+          <Property Name="IsUse" Type="Boolean" />
+          <NavigationProperty Name="CmBusinessField" Relationship="Self.FK__CmFacilityManual__7BE56230" FromRole="FmsFacilityManual" ToRole="CmBusinessField" />
+          <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK__CmFacilityManual__79FD19BE" FromRole="FmsFacilityManual" ToRole="CmFacility" />
+        </EntityType>
+        <EntityType Name="FmsFacilityOperationItem">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="ItemId" />
+          </Key>
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="FacilityCode" Type="Int32" Nullable="false" />
+          <Property Name="ItemId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+          <Property Name="Name" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
+          <Property Name="ResultUnit" Type="String" MaxLength="10" FixedLength="false" Unicode="true" Nullable="false" />
+          <Property Name="PointId" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
+          <Property Name="SystemId" Type="Int32" />
+          <Property Name="EnergyCode" Type="Boolean" />
+          <Property Name="IsUse" Type="Boolean" />
+          <Property Name="SortOrderNo" Type="Int32" />
+          <Property Name="InsertedDate" Type="DateTime" Precision="3" />
+          <Property Name="InsertedUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
+          <Property Name="UpdatedDate" Type="DateTime" Precision="3" />
+          <Property Name="UpdatedUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
+          <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK__FmsFacilityOpera__725BF7F6" FromRole="FmsFacilityOperationItem" ToRole="CmFacility" />
+        </EntityType>
+        <EntityType Name="FmsLicense">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="LicenseId" />
+          </Key>
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="LicenseId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+          <Property Name="Name" Type="String" MaxLength="52" FixedLength="false" Unicode="true" Nullable="false" />
+          <Property Name="IssuingOffice" Type="String" MaxLength="52" FixedLength="false" Unicode="true" Nullable="false" />
+          <Property Name="BusinessFieldId" Type="Int32" />
+          <Property Name="EducationalInstitute" Type="String" MaxLength="52" FixedLength="false" Unicode="true" />
+          <Property Name="Note" Type="String" MaxLength="256" FixedLength="false" Unicode="true" />
+          <Property Name="IsUse" Type="Boolean" />
+          <NavigationProperty Name="CmBusinessField" Relationship="Self.FK__FmsLicense__CmBusinessField" FromRole="FmsLicense" ToRole="CmBusinessField" />
+          <NavigationProperty Name="CmUserToLicense" Relationship="Self.FK__CmUserToLicense__FmsLicense" FromRole="FmsLicense" ToRole="CmUserToLicense" />
+          <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsLicense__CmSite" FromRole="FmsLicense" ToRole="CmSite" />
+        </EntityType>
+        <EntityType Name="FmsManual">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="ManualId" />
+          </Key>
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="ManualId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+          <Property Name="ManualNo" Type="String" MaxLength="20" FixedLength="false" Unicode="true" Nullable="false" />
+          <Property Name="ManualTypeId" Type="Int32" Nullable="false" />
+          <Property Name="Name" Type="String" MaxLength="200" FixedLength="false" Unicode="true" Nullable="false" />
+          <Property Name="Description" Type="String" MaxLength="2000" FixedLength="false" Unicode="true" />
+          <NavigationProperty Name="FmsManualType" Relationship="Self.FK_FmsManual_FmsManualType" FromRole="FmsManual" ToRole="FmsManualType" />
+          <NavigationProperty Name="FmsManualHistory" Relationship="Self.FK_FmsManualHistory_FmsManual" FromRole="FmsManual" ToRole="FmsManualHistory" />
+        </EntityType>
+        <EntityType Name="FmsManualHistory">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="ManualId" />
+            <PropertyRef Name="HistoryId" />
+          </Key>
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="ManualId" Type="Int32" Nullable="false" />
+          <Property Name="HistoryId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+          <Property Name="RevisionNo" Type="Int32" />
+          <Property Name="FileId" Type="Int32" />
+          <Property Name="Description" Type="String" MaxLength="2000" FixedLength="false" Unicode="true" />
+          <Property Name="UpdatedDate" Type="DateTime" Precision="3" />
+          <Property Name="UpdatedUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
+          <NavigationProperty Name="CmFile" Relationship="Self.FK_FmsManualHistory_CmFile" FromRole="FmsManualHistory" ToRole="CmFile" />
+          <NavigationProperty Name="CmUser" Relationship="Self.FK_FmsManualHistory_CmUser" FromRole="FmsManualHistory" ToRole="CmUser" />
+          <NavigationProperty Name="FmsManual" Relationship="Self.FK_FmsManualHistory_FmsManual" FromRole="FmsManualHistory" ToRole="FmsManual" />
+        </EntityType>
+        <EntityType Name="FmsManualType">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="ManualTypeId" />
+          </Key>
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="ManualTypeId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+          <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
+          <Property Name="IsUse" Type="Boolean" />
+          <NavigationProperty Name="FmsManual" Relationship="Self.FK_FmsManual_FmsManualType" FromRole="FmsManualType" ToRole="FmsManual" />
+        </EntityType>
+        <EntityType Name="FmsMaterialCarriedForward">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="ClosedDate" />
+            <PropertyRef Name="BusinessFieldId" />
+            <PropertyRef Name="WarehouseId" />
+            <PropertyRef Name="MaterialId" />
+          </Key>
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="ClosedDate" Type="DateTime" Nullable="false" Precision="3" />
+          <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
+          <Property Name="WarehouseId" Type="Int32" Nullable="false" />
+          <Property Name="MaterialId" Type="Int32" Nullable="false" />
+          <Property Name="StockCount" Type="Int32" Nullable="false" />
+          <Property Name="StockTotalCost" Type="Int32" Nullable="false" />
+          <NavigationProperty Name="CmBusinessField" Relationship="Self.FK__FmsMaterialCarriedForward__CmBusinessField" FromRole="FmsMaterialCarriedForward" ToRole="CmBusinessField" />
+          <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsMaterialCarriedForward__CmSite" FromRole="FmsMaterialCarriedForward" ToRole="CmSite" />
+        </EntityType>
+        <EntityType Name="FmsMaterialCodeAdjustmentType">
+          <Key>
+            <PropertyRef Name="AdjustmentTypeId" />
+          </Key>
+          <Property Name="AdjustmentTypeId" Type="Int16" Nullable="false" />
+          <Property Name="Name" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
+          <Property Name="Comment" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
+          <NavigationProperty Name="FmsMaterialRelease" Relationship="iBemsModel.FK_FmsMaterialRelease_FmsMaterialCodeAdjustmentType" FromRole="FmsMaterialCodeAdjustmentType" ToRole="FmsMaterialRelease" />
+        </EntityType>
+        <EntityType Name="FmsMaterialCodeClass">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="MaterialClassId" />
+          </Key>
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="MaterialClassId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+          <Property Name="ParentMaterialClassId" Type="Int32" />
+          <Property Name="Depth" Type="Int32" Nullable="false" />
+          <Property Name="Name" Type="String" MaxLength="32" FixedLength="false" Unicode="true" Nullable="false" />
+          <Property Name="Abbreviation" Type="String" MaxLength="16" FixedLength="false" Unicode="true" />
+          <Property Name="IsUse" Type="Boolean" />
+          <NavigationProperty Name="FmsMaterialCodeClass1" Relationship="Self.FK__FmsMaterialCodeClass__FmsMaterialCodeClass" FromRole="FmsMaterialCodeClass" ToRole="FmsMaterialCodeClass1" />
+          <NavigationProperty Name="FmsMaterialCodeClass2" Relationship="Self.FK__FmsMaterialCodeClass__FmsMaterialCodeClass" FromRole="FmsMaterialCodeClass1" ToRole="FmsMaterialCodeClass" />
+          <NavigationProperty Name="FmsMaterial" Relationship="iBemsModel.FK__FmsMaterial__FmsMaterialCodeClass_AsFirstClassId" FromRole="FmsMaterialCodeClass" ToRole="FmsMaterial" />
+          <NavigationProperty Name="FmsMaterial1" Relationship="iBemsModel.FK__FmsMaterial__FmsMaterialCodeClass_AsSecondClassId" FromRole="FmsMaterialCodeClass" ToRole="FmsMaterial" />
+          <NavigationProperty Name="FmsMaterial2" Relationship="iBemsModel.FK__FmsMaterial__FmsMaterialCodeClass_AsThirdClassId" FromRole="FmsMaterialCodeClass" ToRole="FmsMaterial" />
+          <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsMaterialCodeClass__CmSite" FromRole="FmsMaterialCodeClass" ToRole="CmSite" />
+        </EntityType>
+        <EntityType Name="FmsMaterialCodeLocation">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="LocationId" />
+          </Key>
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="LocationId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+          <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
+          <Property Name="Name" Type="String" MaxLength="48" FixedLength="false" Unicode="true" Nullable="false" />
+          <Property Name="IsUse" Type="Boolean" Nullable="false" />
+          <NavigationProperty Name="CmBusinessField" Relationship="Self.FK__FmsMaterialCodeLocation__CmBusinessField" FromRole="FmsMaterialCodeLocation" ToRole="CmBusinessField" />
+          <NavigationProperty Name="FmsMaterial" Relationship="iBemsModel.FK_FmsMaterial_FmsMaterialCodeLocation" FromRole="FmsMaterialCodeLocation" ToRole="FmsMaterial" />
+          <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsMaterialCodeLocation__CmSite" FromRole="FmsMaterialCodeLocation" ToRole="CmSite" />
+        </EntityType>
+        <EntityType Name="FmsMaterialCodeProgress">
+          <Key>
+            <PropertyRef Name="ProgressId" />
+          </Key>
+          <Property Name="ProgressId" Type="Int16" Nullable="false" />
+          <Property Name="Name" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
+          <Property Name="Description" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
+          <NavigationProperty Name="FmsMaterialPurchaseRequest" Relationship="Self.FK__FmsMaterialPurchasingRequest__FmsMaterialCodeProcess" FromRole="FmsMaterialCodeProgress" ToRole="FmsMaterialPurchaseRequest" />
+        </EntityType>
+        <EntityType Name="FmsMaterialCodePurchaseType">
+          <Key>
+            <PropertyRef Name="PurchaseTypeId" />
+          </Key>
+          <Property Name="PurchaseTypeId" Type="Int16" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+          <Property Name="Name" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
+          <Property Name="Comment" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
+          <NavigationProperty Name="FmsMaterialPurchaseRequest" Relationship="Self.FK_FmsMaterialPurchaseRequest_FmsMaterialCodePurchaseType" FromRole="FmsMaterialCodePurchaseType" ToRole="FmsMaterialPurchaseRequest" />
+        </EntityType>
+        <EntityType Name="FmsMaterialCodeReleaseType">
+          <Key>
+            <PropertyRef Name="ReleaseTypeId" />
+          </Key>
+          <Property Name="ReleaseTypeId" Type="Int16" Nullable="false" />
+          <Property Name="Name" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
+          <Property Name="Description" Type="String" MaxLength="255" FixedLength="false" Unicode="true" />
+          <NavigationProperty Name="FmsMaterialRelease" Relationship="iBemsModel.FK_FmsMaterialRelease_FmsMaterialCodeReleaseType" FromRole="FmsMaterialCodeReleaseType" ToRole="FmsMaterialRelease" />
+        </EntityType>
+        <EntityType Name="FmsMaterialCodeType">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="MaterialTypeId" />
+          </Key>
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="MaterialTypeId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+          <Property Name="Name" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
+          <Property Name="Nickname" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
+          <Property Name="IsUse" Type="Boolean" Nullable="false" />
+          <NavigationProperty Name="FmsMaterial" Relationship="iBemsModel.FK_FmsMaterial_FmsMaterialCodeType" FromRole="FmsMaterialCodeType" ToRole="FmsMaterial" />
+          <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsMaterialCodeType__CmSite" FromRole="FmsMaterialCodeType" ToRole="CmSite" />
+        </EntityType>
+        <EntityType Name="FmsMaterialPurchaseOrder">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="PurchaseOrderId" />
+          </Key>
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
+          <Property Name="PurchaseOrderId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+          <Property Name="PurchaseRequestId" Type="Int32" Nullable="false" />
+          <Property Name="TradeCompanyId" Type="Int32" />
+          <Property Name="OrderDate" Type="DateTime" Nullable="false" Precision="3" />
+          <Property Name="OrderUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
+          <Property Name="Title" Type="String" MaxLength="256" FixedLength="false" Unicode="true" Nullable="false" />
+          <Property Name="Reason" Type="String" MaxLength="2000" FixedLength="false" Unicode="true" />
+          <Property Name="StoredDueDate" Type="DateTime" Precision="3" />
+          <Property Name="FileId" Type="Int32" />
+          <NavigationProperty Name="CmBusinessField" Relationship="Self.FK__FmsMaterialOrder__CmBusinessField" FromRole="FmsMaterialPurchaseOrder" ToRole="CmBusinessField" />
+          <NavigationProperty Name="CmFile" Relationship="Self.FK__FmsMaterialPurchaseOrder__CmFile" FromRole="FmsMaterialPurchaseOrder" ToRole="CmFile" />
+          <NavigationProperty Name="CmUser" Relationship="Self.FK__FmsMaterialOrder__CmUser" FromRole="FmsMaterialPurchaseOrder" ToRole="CmUser" />
+          <NavigationProperty Name="FmsMaterialTradeCompany" Relationship="Self.FK__FmsMaterialPurchaseOrder__FmsMaterialTradeCompany" FromRole="FmsMaterialPurchaseOrder" ToRole="FmsMaterialTradeCompany" />
+          <NavigationProperty Name="FmsMaterialPurchaseRequest" Relationship="Self.FK_FmsMaterialPurchaseOrder_FmsMaterialPurchaseRequest" FromRole="FmsMaterialPurchaseOrder" ToRole="FmsMaterialPurchaseRequest" />
+          <NavigationProperty Name="FmsMaterialPurchaseOrderMaterial" Relationship="Self.FK_FmsMaterialPurchaseOrderMaterial_FmsMaterialPurchaseOrder" FromRole="FmsMaterialPurchaseOrder" ToRole="FmsMaterialPurchaseOrderMaterial" />
+          <NavigationProperty Name="FmsMaterialStored" Relationship="Self.FK_FmsMaterialStored_FmsMaterialPurchaseOrder" FromRole="FmsMaterialPurchaseOrder" ToRole="FmsMaterialStored" />
+          <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsMaterialOrder__CmSite" FromRole="FmsMaterialPurchaseOrder" ToRole="CmSite" />
+        </EntityType>
+        <EntityType Name="FmsMaterialPurchaseOrderMaterial">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="PurchaseOrderId" />
+            <PropertyRef Name="MaterialId" />
+          </Key>
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
+          <Property Name="PurchaseOrderId" Type="Int32" Nullable="false" />
+          <Property Name="MaterialId" Type="Int32" Nullable="false" />
+          <Property Name="MaterialCount" Type="Int32" Nullable="false" />
+          <Property Name="UnitCost" Type="Int32" Nullable="false" />
+          <NavigationProperty Name="FmsMaterialPurchaseOrder" Relationship="Self.FK_FmsMaterialPurchaseOrderMaterial_FmsMaterialPurchaseOrder" FromRole="FmsMaterialPurchaseOrderMaterial" ToRole="FmsMaterialPurchaseOrder" />
+          <NavigationProperty Name="FmsMaterial" Relationship="iBemsModel.FK_FmsMaterialPurchaseOrderMaterial_FmsMaterial" FromRole="FmsMaterialPurchaseOrderMaterial" ToRole="FmsMaterial" />
+        </EntityType>
+        <EntityType Name="FmsMaterialPurchaseRequest">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="PurchaseRequestId" />
+          </Key>
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
+          <Property Name="PurchaseRequestId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+          <Property Name="PurchaseTypeId" Type="Int16" Nullable="false" />
+          <Property Name="RequestDate" Type="DateTime" Nullable="false" Precision="3" />
+          <Property Name="RequestUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
+          <Property Name="PurchaseHopeDate" Type="DateTime" Precision="3" />
+          <Property Name="Title" Type="String" MaxLength="256" FixedLength="false" Unicode="true" Nullable="false" />
+          <Property Name="Reason" Type="String" MaxLength="2000" FixedLength="false" Unicode="true" Nullable="false" />
+          <Property Name="ProgressId" Type="Int16" Nullable="false" />
+          <Property Name="ApprovalDate" Type="DateTime" Precision="3" />
+          <Property Name="ApprovalUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
+          <NavigationProperty Name="CmBusinessField" Relationship="Self.FK__FmsMaterialPurchasingRequest__CmBusinessField" FromRole="FmsMaterialPurchaseRequest" ToRole="CmBusinessField" />
+          <NavigationProperty Name="CmUser" Relationship="Self.FK__FmsMaterialPurchaseRequest__CmUser_AsRequestUserId" FromRole="FmsMaterialPurchaseRequest" ToRole="CmUser" />
+          <NavigationProperty Name="CmUser1" Relationship="Self.FK__FmsMaterialPurchaseRequest__CmUser1_AsApprovalUserId" FromRole="FmsMaterialPurchaseRequest" ToRole="CmUser" />
+          <NavigationProperty Name="FmsMaterialCodeProgress" Relationship="Self.FK__FmsMaterialPurchasingRequest__FmsMaterialCodeProcess" FromRole="FmsMaterialPurchaseRequest" ToRole="FmsMaterialCodeProgress" />
+          <NavigationProperty Name="FmsMaterialCodePurchaseType" Relationship="Self.FK_FmsMaterialPurchaseRequest_FmsMaterialCodePurchaseType" FromRole="FmsMaterialPurchaseRequest" ToRole="FmsMaterialCodePurchaseType" />
+          <NavigationProperty Name="FmsMaterialPurchaseOrder" Relationship="Self.FK_FmsMaterialPurchaseOrder_FmsMaterialPurchaseRequest" FromRole="FmsMaterialPurchaseRequest" ToRole="FmsMaterialPurchaseOrder" />
+          <NavigationProperty Name="FmsMaterialPurchaseRequestMaterial" Relationship="Self.FK_FmsMaterialPurchaseRequestMaterial_FmsMaterialPurchaseRequest" FromRole="FmsMaterialPurchaseRequest" ToRole="FmsMaterialPurchaseRequestMaterial" />
+          <Property Name="bSameOrder" Type="Boolean" />
+          <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsMaterialPurchasingRequest__CmSite" FromRole="FmsMaterialPurchaseRequest" ToRole="CmSite" />
+        </EntityType>
+        <EntityType Name="FmsMaterialPurchaseRequestMaterial">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="PurchaseRequestId" />
+            <PropertyRef Name="MaterialId" />
+          </Key>
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
+          <Property Name="PurchaseRequestId" Type="Int32" Nullable="false" />
+          <Property Name="MaterialId" Type="Int32" Nullable="false" />
+          <Property Name="MaterialCount" Type="Int32" Nullable="false" />
+          <NavigationProperty Name="FmsMaterialPurchaseRequest" Relationship="Self.FK_FmsMaterialPurchaseRequestMaterial_FmsMaterialPurchaseRequest" FromRole="FmsMaterialPurchaseRequestMaterial" ToRole="FmsMaterialPurchaseRequest" />
+          <NavigationProperty Name="FmsMaterial" Relationship="iBemsModel.FK_FmsMaterialPurchaseRequestMaterial_FmsMaterial" FromRole="FmsMaterialPurchaseRequestMaterial" ToRole="FmsMaterial" />
+        </EntityType>
+        <EntityType Name="FmsMaterialStored">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="MaterialStoredId" />
+          </Key>
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
+          <Property Name="StoredDate" Type="DateTime" Nullable="false" Precision="3" />
+          <Property Name="MaterialStoredId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+          <Property Name="PurchaseOrderId" Type="Int32" />
+          <Property Name="WarehouseId" Type="Int32" Nullable="false" />
+          <Property Name="MaterialId" Type="Int32" Nullable="false" />
+          <Property Name="StoredCount" Type="Int32" Nullable="false" />
+          <Property Name="RemainStoredCount" Type="Int32" Nullable="false" />
+          <Property Name="UnitCost" Type="Int32" Nullable="false" />
+          <Property Name="StockCount" Type="Int32" Nullable="false" />
+          <Property Name="Note" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
+          <Property Name="StoredUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
+          <Property Name="ApprovalDate" Type="DateTime" Precision="3" />
+          <Property Name="ApprovalUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
+          <Property Name="IsApproval" Type="Boolean" Nullable="false" />
+          <Property Name="LocationInWarehouse" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
+          <NavigationProperty Name="CmBusinessField" Relationship="Self.FK__FmsMaterialStored__CmBusinessField" FromRole="FmsMaterialStored" ToRole="CmBusinessField" />
+          <NavigationProperty Name="CmUser" Relationship="Self.FK__FmsMaterialStored__CmUser_AsStoredUserId" FromRole="FmsMaterialStored" ToRole="CmUser" />
+          <NavigationProperty Name="CmUser1" Relationship="Self.FK__FmsMaterialStored__CmUser1_AsApprovalUserId" FromRole="FmsMaterialStored" ToRole="CmUser" />
+          <NavigationProperty Name="FmsMaterialPurchaseOrder" Relationship="Self.FK_FmsMaterialStored_FmsMaterialPurchaseOrder" FromRole="FmsMaterialStored" ToRole="FmsMaterialPurchaseOrder" />
+          <NavigationProperty Name="FmsMaterialWarehouse" Relationship="Self.FK_FmsMaterialStored_FmsMaterialWarehouse" FromRole="FmsMaterialStored" ToRole="FmsMaterialWarehouse" />
+          <NavigationProperty Name="FmsMaterial" Relationship="iBemsModel.FK_FmsMaterialStored_FmsMaterial" FromRole="FmsMaterialStored" ToRole="FmsMaterial" />
+          <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsMaterialStored__CmSite" FromRole="FmsMaterialStored" ToRole="CmSite" />
+        </EntityType>
+        <EntityType Name="FmsMaterialTradeCompany">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="TradeCompanyId" />
+          </Key>
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="TradeCompanyId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+          <Property Name="Name" Type="String" MaxLength="48" FixedLength="false" Unicode="true" Nullable="false" />
+          <Property Name="RegistrationNo" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
+          <Property Name="RepresentativeName" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
+          <Property Name="PhoneNo" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
+          <Property Name="FaxNo" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
+          <Property Name="SalesName" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
+          <Property Name="SalesPhoneNo" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
+          <Property Name="AddressZip1" Type="String" MaxLength="5" FixedLength="true" Unicode="true" />
+          <Property Name="AddressZip2" Type="String" MaxLength="3" FixedLength="true" Unicode="true" />
+          <Property Name="Address1" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
+          <Property Name="Adderss2" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
+          <Property Name="HomepageUri" Type="String" MaxLength="200" FixedLength="false" Unicode="true" />
+          <Property Name="Note" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
+          <Property Name="IsUse" Type="Boolean" Nullable="false" />
+          <NavigationProperty Name="FmsMaterialPurchaseOrder" Relationship="Self.FK__FmsMaterialPurchaseOrder__FmsMaterialTradeCompany" FromRole="FmsMaterialTradeCompany" ToRole="FmsMaterialPurchaseOrder" />
+          <NavigationProperty Name="FmsMaterial" Relationship="iBemsModel.FK_FmsMaterial_FmsMaterialTradeCompany" FromRole="FmsMaterialTradeCompany" ToRole="FmsMaterial" />
+          <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsMaterialTradeCompany__CmSite" FromRole="FmsMaterialTradeCompany" ToRole="CmSite" />
+        </EntityType>
+        <EntityType Name="FmsMaterialWarehouse">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="WarehouseId" />
+          </Key>
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
+          <Property Name="WarehouseId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+          <Property Name="Name" Type="String" MaxLength="48" FixedLength="false" Unicode="true" Nullable="false" />
+          <Property Name="IsUse" Type="Boolean" Nullable="false" />
+          <NavigationProperty Name="CmBusinessField" Relationship="Self.FK__FmsMaterialWarehouse__CmBusinessField" FromRole="FmsMaterialWarehouse" ToRole="CmBusinessField" />
+          <NavigationProperty Name="FmsMaterialStored" Relationship="Self.FK_FmsMaterialStored_FmsMaterialWarehouse" FromRole="FmsMaterialWarehouse" ToRole="FmsMaterialStored" />
+          <NavigationProperty Name="FmsMaterial" Relationship="iBemsModel.FK_FmsMaterial_FmsMaterialWarehouse" FromRole="FmsMaterialWarehouse" ToRole="FmsMaterial" />
+          <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsMaterialWarehouse__CmSite" FromRole="FmsMaterialWarehouse" ToRole="CmSite" />
+          <NavigationProperty Name="FmsEquipment" Relationship="iBemsModel.FK_FmsEquipment_FmsMaterialWarehouse" FromRole="FmsMaterialWarehouse" ToRole="FmsEquipment" />
+        </EntityType>
+        <EntityType Name="FmsPaymentType">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="PaymentTypeId" />
+          </Key>
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="PaymentTypeId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+          <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
+          <Property Name="IsUse" Type="Boolean" />
+          <NavigationProperty Name="FmsContract" Relationship="iBemsModel.FK_FmsContract_FmsPaymentType" FromRole="FmsPaymentType" ToRole="FmsContract" />
+        </EntityType>
+        <EntityType Name="FmsWorkCodeCauseClass">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="CauseClassId" />
+          </Key>
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="CauseClassId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+          <Property Name="ParentId" Type="Int32" Nullable="false" />
+          <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
+          <Property Name="IsUse" Type="Boolean" />
+          <NavigationProperty Name="FmsWorkResult" Relationship="Self.FK__FmsWorkResult__FmsWorkCodeCauseClass" FromRole="FmsWorkCodeCauseClass" ToRole="FmsWorkResult" />
+          <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsWorkCodeCauseClass__CmSite" FromRole="FmsWorkCodeCauseClass" ToRole="CmSite" />
+        </EntityType>
+        <EntityType Name="FmsWorkCodeCycleUnit">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="CycleUnitId" />
+          </Key>
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="CycleUnitId" Type="Int32" Nullable="false" />
+          <Property Name="Name" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
+          <Property Name="Description" Type="String" MaxLength="200" FixedLength="false" Unicode="true" />
+          <NavigationProperty Name="FmsFacilityCheckItem" Relationship="Self.FK__FmsFacilityCheckItem__FmsWorkCodeCycleUnit" FromRole="FmsWorkCodeCycleUnit" ToRole="FmsFacilityCheckItem" />
+          <NavigationProperty Name="FmsWorkSchedule" Relationship="Self.FK__FmsWorkSchedule__FmsWorkCodeCycleUnit" FromRole="FmsWorkCodeCycleUnit" ToRole="FmsWorkSchedule" />
+          <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsWorkCodeCycleUnit__CmSite" FromRole="FmsWorkCodeCycleUnit" ToRole="CmSite" />
+        </EntityType>
+        <EntityType Name="FmsWorkCodeEmergency">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="EmergencyId" />
+          </Key>
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="EmergencyId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+          <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
+          <Property Name="IsUse" Type="Boolean" />
+          <NavigationProperty Name="FmsWorkOrder" Relationship="Self.FK__FmsWorkOrder__FmsWorkCodeEmergency" FromRole="FmsWorkCodeEmergency" ToRole="FmsWorkOrder" />
+          <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsWorkCodeEmergency__CmSite" FromRole="FmsWorkCodeEmergency" ToRole="CmSite" />
+        </EntityType>
+        <EntityType Name="FmsWorkCodeHolidayWorkType">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="HolidayWorkTypeId" />
+          </Key>
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="HolidayWorkTypeId" Type="Int32" Nullable="false" />
+          <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
+          <Property Name="IsUse" Type="Boolean" />
+          <NavigationProperty Name="FmsWorkSchedule" Relationship="Self.FK__FmsWorkSchedule__FmsWorkCodeHolidayWorkType" FromRole="FmsWorkCodeHolidayWorkType" ToRole="FmsWorkSchedule" />
+          <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsWorkCodeHolidayWorkType__CmSite" FromRole="FmsWorkCodeHolidayWorkType" ToRole="CmSite" />
+        </EntityType>
+        <EntityType Name="FmsWorkCodeLegalInspectionAgency">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="InspectionAgencyId" />
+          </Key>
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="InspectionAgencyId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+          <Property Name="Name" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
+          <Property Name="IsUse" Type="Boolean" />
+          <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsWorkCodeLegalInspectionAgency__CmSite" FromRole="FmsWorkCodeLegalInspectionAgency" ToRole="CmSite" />
+        </EntityType>
+        <EntityType Name="FmsWorkCodeProgress">
+          <Key>
+            <PropertyRef Name="WorkProgressId" />
+          </Key>
+          <Property Name="WorkProgressId" Type="Int32" Nullable="false" />
+          <Property Name="Name" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
+          <Property Name="Description" Type="String" MaxLength="512" FixedLength="false" Unicode="true" />
+          <NavigationProperty Name="FmsWorkRequest" Relationship="Self.FK__FmsWorkRequest__FmsWorkCodeProgress" FromRole="FmsWorkCodeProgress" ToRole="FmsWorkRequest" />
+        </EntityType>
+        <EntityType Name="FmsWorkCodeType">
+          <Key>
+            <PropertyRef Name="WorkTypeId" />
+          </Key>
+          <Property Name="WorkTypeId" Type="Int32" Nullable="false" />
+          <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
+          <Property Name="Description" Type="String" MaxLength="512" FixedLength="false" Unicode="true" />
+          <NavigationProperty Name="FmsFacilityCheckItem" Relationship="Self.FK__FmsFacilityCheckItem__FmsWorkCodeWorkType" FromRole="FmsWorkCodeType" ToRole="FmsFacilityCheckItem" />
+          <NavigationProperty Name="FmsWorkRequest" Relationship="Self.FK__FmsWorkRequest__FmsWorkCodeWorkType" FromRole="FmsWorkCodeType" ToRole="FmsWorkRequest" />
+          <NavigationProperty Name="FmsWorkSchedule" Relationship="Self.FK__FmsWorkSchedule__FmsWorkCodeWorkType" FromRole="FmsWorkCodeType" ToRole="FmsWorkSchedule" />
+        </EntityType>
+        <EntityType Name="FmsWorkOrder">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="WorkRequestId" />
+          </Key>
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="WorkRequestId" Type="Int32" Nullable="false" />
+          <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
+          <Property Name="EmergencyId" Type="Int32" />
+          <Property Name="OrderUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
+          <Property Name="OrderDate" Type="DateTime" Nullable="false" Precision="3" />
+          <Property Name="StartWorkDate" Type="DateTime" Nullable="false" Precision="3" />
+          <Property Name="Title" Type="String" MaxLength="200" FixedLength="false" Unicode="true" Nullable="false" />
+          <Property Name="Content" Type="String" MaxLength="2000" FixedLength="false" Unicode="true" />
+          <NavigationProperty Name="CmBusinessField" Relationship="Self.FK__FmsWorkOrder__CmBusinessField" FromRole="FmsWorkOrder" ToRole="CmBusinessField" />
+          <NavigationProperty Name="CmUser" Relationship="Self.FK__FmsWorkOrder__CmUser" FromRole="FmsWorkOrder" ToRole="CmUser" />
+          <NavigationProperty Name="FmsWorkCodeEmergency" Relationship="Self.FK__FmsWorkOrder__FmsWorkCodeEmergency" FromRole="FmsWorkOrder" ToRole="FmsWorkCodeEmergency" />
+          <NavigationProperty Name="FmsWorkRequest" Relationship="Self.FK__FmsWorkOrder__FmsWorkRequest" FromRole="FmsWorkOrder" ToRole="FmsWorkRequest" />
+          <NavigationProperty Name="FmsWorkOrderToFacility" Relationship="Self.FK__FmsWorkOrderToFacility__FmsWorkOrder" FromRole="FmsWorkOrder" ToRole="FmsWorkOrderToFacility" />
+          <NavigationProperty Name="FmsWorkResult" Relationship="Self.FK__FmsWorkResult__FmsWorkOrder" FromRole="FmsWorkOrder" ToRole="FmsWorkResult" />
+          <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsWorkOrder__CmSite" FromRole="FmsWorkOrder" ToRole="CmSite" />
+        </EntityType>
+        <EntityType Name="FmsWorkOrderToFacility">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="WorkRequestId" />
+            <PropertyRef Name="FacilityCode" />
+          </Key>
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="WorkRequestId" Type="Int32" Nullable="false" />
+          <Property Name="FacilityCode" Type="Int32" Nullable="false" />
+          <NavigationProperty Name="FmsWorkOrder" Relationship="Self.FK__FmsWorkOrderToFacility__FmsWorkOrder" FromRole="FmsWorkOrderToFacility" ToRole="FmsWorkOrder" />
+          <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK_FmsWorkOrderToFacility_CmFacility" FromRole="FmsWorkOrderToFacility" ToRole="CmFacility" />
+        </EntityType>
+        <EntityType Name="FmsWorkRequest">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="WorkRequestId" />
+          </Key>
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="WorkRequestId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+          <Property Name="WorkTypeId" Type="Int32" Nullable="false" />
+          <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
+          <Property Name="WorkScheduleId" Type="Int32" />
+          <Property Name="WorkProgressId" Type="Int32" Nullable="false" />
+          <Property Name="Title" Type="String" MaxLength="200" FixedLength="false" Unicode="true" Nullable="false" />
+          <Property Name="Content" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
+          <Property Name="RequestUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
+          <Property Name="RequestDate" Type="DateTime" Nullable="false" Precision="3" />
+          <Property Name="StartWorkDate" Type="DateTime" Nullable="false" Precision="3" />
+          <Property Name="RejectUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
+          <Property Name="RejectDate" Type="DateTime" Precision="3" />
+          <Property Name="RejectReason" Type="String" MaxLength="512" FixedLength="false" Unicode="true" />
+          <Property Name="InspectionAgencyId" Type="Int32" />
+          <NavigationProperty Name="CmBusinessField" Relationship="Self.FK__FmsWorkRequest__CmBusinessField" FromRole="FmsWorkRequest" ToRole="CmBusinessField" />
+          <NavigationProperty Name="CmUser" Relationship="Self.FK__FmsWorkRequest__CmUser_AsRequestUserId" FromRole="FmsWorkRequest" ToRole="CmUser" />
+          <NavigationProperty Name="CmUser1" Relationship="Self.FK__FmsWorkRequest__CmUser1_AsRejectUserId" FromRole="FmsWorkRequest" ToRole="CmUser" />
+          <NavigationProperty Name="FmsWorkCodeProgress" Relationship="Self.FK__FmsWorkRequest__FmsWorkCodeProgress" FromRole="FmsWorkRequest" ToRole="FmsWorkCodeProgress" />
+          <NavigationProperty Name="FmsWorkCodeType" Relationship="Self.FK__FmsWorkRequest__FmsWorkCodeWorkType" FromRole="FmsWorkRequest" ToRole="FmsWorkCodeType" />
+          <NavigationProperty Name="FmsWorkOrder" Relationship="Self.FK__FmsWorkOrder__FmsWorkRequest" FromRole="FmsWorkRequest" ToRole="FmsWorkOrder" />
+          <NavigationProperty Name="FmsWorkSchedule" Relationship="Self.FK__FmsWorkRequest__FmsWorkSchedule" FromRole="FmsWorkRequest" ToRole="FmsWorkSchedule" />
+          <NavigationProperty Name="FmsWorkRequestToFacility" Relationship="Self.FK__FmsWorkRequestToFacility__FmsWorkRequest" FromRole="FmsWorkRequest" ToRole="FmsWorkRequestToFacility" />
+          <NavigationProperty Name="FmsWorkResult" Relationship="Self.FK__FmsWorkResult__FmsWorkRequest" FromRole="FmsWorkRequest" ToRole="FmsWorkResult" />
+          <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsWorkRequest__CmSite" FromRole="FmsWorkRequest" ToRole="CmSite" />
+          <NavigationProperty Name="CmPartner" Relationship="iBemsModel.FK_FmsWorkRequest_CmPartner" FromRole="FmsWorkRequest" ToRole="CmPartner" />
+        </EntityType>
+        <EntityType Name="FmsWorkRequestToFacility">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="WorkRequestId" />
+            <PropertyRef Name="FacilityCode" />
+          </Key>
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="WorkRequestId" Type="Int32" Nullable="false" />
+          <Property Name="FacilityCode" Type="Int32" Nullable="false" />
+          <NavigationProperty Name="FmsWorkRequest" Relationship="Self.FK__FmsWorkRequestToFacility__FmsWorkRequest" FromRole="FmsWorkRequestToFacility" ToRole="FmsWorkRequest" />
+          <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK_FmsWorkRequestToFacility_CmFacility" FromRole="FmsWorkRequestToFacility" ToRole="CmFacility" />
+        </EntityType>
+        <EntityType Name="FmsWorkResult">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="WorkRequestId" />
+          </Key>
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="WorkRequestId" Type="Int32" Nullable="false" />
+          <Property Name="WorkerUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
+          <Property Name="StartDate" Type="DateTime" Nullable="false" Precision="3" />
+          <Property Name="EndDate" Type="DateTime" Nullable="false" Precision="3" />
+          <Property Name="CauseClassId" Type="Int32" />
+          <Property Name="Content" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
+          <Property Name="ConfirmedDate" Type="DateTime" Precision="3" />
+          <Property Name="ConfirmedUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
+          <Property Name="IsConfirmed" Type="Boolean" Nullable="false" />
+          <NavigationProperty Name="CmUser" Relationship="Self.FK__FmsWorkResult__CmUser_AsWorkerUserId" FromRole="FmsWorkResult" ToRole="CmUser" />
+          <NavigationProperty Name="CmUser1" Relationship="Self.FK__FmsWorkResult__CmUser1_AsConfirmedUserId" FromRole="FmsWorkResult" ToRole="CmUser" />
+          <NavigationProperty Name="FmsWorkCodeCauseClass" Relationship="Self.FK__FmsWorkResult__FmsWorkCodeCauseClass" FromRole="FmsWorkResult" ToRole="FmsWorkCodeCauseClass" />
+          <NavigationProperty Name="FmsWorkOrder" Relationship="Self.FK__FmsWorkResult__FmsWorkOrder" FromRole="FmsWorkResult" ToRole="FmsWorkOrder" />
+          <NavigationProperty Name="FmsWorkRequest" Relationship="Self.FK__FmsWorkResult__FmsWorkRequest" FromRole="FmsWorkResult" ToRole="FmsWorkRequest" />
+          <NavigationProperty Name="FmsWorkResultCheckItem" Relationship="Self.FK__FmsWorkResultCheckItem__FmsWorkResult" FromRole="FmsWorkResult" ToRole="FmsWorkResultCheckItem" />
+          <NavigationProperty Name="FmsWorkResultFile" Relationship="Self.FK__FmsWorkResultFile__FmsWorkResult" FromRole="FmsWorkResult" ToRole="FmsWorkResultFile" />
+          <NavigationProperty Name="FmsWorkResultLaw" Relationship="Self.FK__FmsWorkResultLaw__FmsWorkResult" FromRole="FmsWorkResult" ToRole="FmsWorkResultLaw" />
+          <NavigationProperty Name="FmsWorkResultToFacility" Relationship="Self.FK__FmsWorkResultToFacility__FmsWorkOrder" FromRole="FmsWorkResult" ToRole="FmsWorkResultToFacility" />
+          <NavigationProperty Name="FmsMaterialRelease" Relationship="iBemsModel.FK_FmsMaterialRelease_FmsWorkResult" FromRole="FmsWorkResult" ToRole="FmsMaterialRelease" />
+          <NavigationProperty Name="FmsWorkResultCheckItemMaterial" Relationship="iBemsModel.FK_FmsWorkResultCheckItemMaterial_FmsWorkResult" FromRole="FmsWorkResult" ToRole="FmsWorkResultCheckItemMaterial" />
+          <Property Name="ConfirmDesc" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
+        </EntityType>
+        <EntityType Name="FmsWorkResultCheckItem">
+          <Key>
+            <PropertyRef Name="CheckItemId" />
+          </Key>
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="WorkRequestId" Type="Int32" Nullable="false" />
+          <Property Name="FacilityCode" Type="Int32" />
+          <Property Name="CheckItemId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+          <Property Name="BoolResult" Type="Boolean" />
+          <Property Name="TextResult" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
+          <Property Name="CheckDate" Type="DateTime" Nullable="false" Precision="3" />
+          <NavigationProperty Name="FmsFacilityCheckItem" Relationship="Self.FK__FmsWorkResultCheckItem__FmsFacilityCheckItem" FromRole="FmsWorkResultCheckItem" ToRole="FmsFacilityCheckItem" />
+          <NavigationProperty Name="FmsWorkResult" Relationship="Self.FK__FmsWorkResultCheckItem__FmsWorkResult" FromRole="FmsWorkResultCheckItem" ToRole="FmsWorkResult" />
+          <NavigationProperty Name="FmsWorkResultCheckItemMaterial" Relationship="Self.FK_FmsWorkResultCheckItemMaterial_FmsWorkResultCheckItem" FromRole="FmsWorkResultCheckItem" ToRole="FmsWorkResultCheckItemMaterial" />
+          <Property Name="FileId1" Type="Int32" />
+          <Property Name="FileId2" Type="Int32" />
+          <NavigationProperty Name="CmFile" Relationship="iBemsModel.FK_FmsWorkResultCheckItem_CmFile" FromRole="FmsWorkResultCheckItem" ToRole="CmFile" />
+          <NavigationProperty Name="CmFile1" Relationship="iBemsModel.FK_FmsWorkResultCheckItem_CmFile1" FromRole="FmsWorkResultCheckItem" ToRole="CmFile" />
+          <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK__FmsWorkResultCheckItem__CmFacility" FromRole="FmsWorkResultCheckItem" ToRole="CmFacility" />
+        </EntityType>
+        <EntityType Name="FmsWorkResultCheckItemMaterial">
+          <Key>
+            <PropertyRef Name="CheckItemMaterialId" />
+          </Key>
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="WorkRequestId" Type="Int32" Nullable="false" />
+          <Property Name="CheckItemId" Type="Int32" Nullable="false" />
+          <Property Name="CheckItemMaterialId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+          <Property Name="MaterialId" Type="Int32" Nullable="false" />
+          <Property Name="MaterialCount" Type="Int32" Nullable="false" />
+          <Property Name="MaterialCode" Type="String" MaxLength="48" FixedLength="false" Unicode="true" />
+          <Property Name="Name" Type="String" MaxLength="48" FixedLength="false" Unicode="true" />
+          <NavigationProperty Name="FmsWorkResultCheckItem" Relationship="Self.FK_FmsWorkResultCheckItemMaterial_FmsWorkResultCheckItem" FromRole="FmsWorkResultCheckItemMaterial" ToRole="FmsWorkResultCheckItem" />
+          <NavigationProperty Name="FmsMaterial" Relationship="iBemsModel.FK_FmsWorkResultCheckItemMaterial_FmsMaterial" FromRole="FmsWorkResultCheckItemMaterial" ToRole="FmsMaterial" />
+          <NavigationProperty Name="FmsWorkResult" Relationship="iBemsModel.FK_FmsWorkResultCheckItemMaterial_FmsWorkResult" FromRole="FmsWorkResultCheckItemMaterial" ToRole="FmsWorkResult" />
+        </EntityType>
+        <EntityType Name="FmsWorkResultFile">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="WorkRequestId" />
+          </Key>
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="WorkRequestId" Type="Int32" Nullable="false" />
+          <Property Name="FileId" Type="Int32" Nullable="false" />
+          <NavigationProperty Name="CmFile" Relationship="Self.FK__FmsWorkResultFile__CmFile" FromRole="FmsWorkResultFile" ToRole="CmFile" />
+          <NavigationProperty Name="FmsWorkResult" Relationship="Self.FK__FmsWorkResultFile__FmsWorkResult" FromRole="FmsWorkResultFile" ToRole="FmsWorkResult" />
+        </EntityType>
+        <EntityType Name="FmsWorkResultLaw">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="WorkRequestId" />
+          </Key>
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="WorkRequestId" Type="Int32" Nullable="false" />
+          <Property Name="CertificationNo" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
+          <Property Name="CheckCommission" Type="Decimal" Precision="10" Scale="0" />
+          <Property Name="CheckResult" Type="Boolean" />
+          <NavigationProperty Name="FmsWorkResult" Relationship="Self.FK__FmsWorkResultLaw__FmsWorkResult" FromRole="FmsWorkResultLaw" ToRole="FmsWorkResult" />
+        </EntityType>
+        <EntityType Name="FmsWorkResultToFacility">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="WorkRequestId" />
+            <PropertyRef Name="FacilityCode" />
+          </Key>
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="WorkRequestId" Type="Int32" Nullable="false" />
+          <Property Name="FacilityCode" Type="Int32" Nullable="false" />
+          <NavigationProperty Name="FmsWorkResult" Relationship="Self.FK__FmsWorkResultToFacility__FmsWorkOrder" FromRole="FmsWorkResultToFacility" ToRole="FmsWorkResult" />
+          <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK__FmsWorkResultToFacility__CmFacility" FromRole="FmsWorkResultToFacility" ToRole="CmFacility" />
+        </EntityType>
+        <EntityType Name="FmsWorkScheduleToFacility">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="WorkScheduleId" />
+            <PropertyRef Name="FacilityCode" />
+          </Key>
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="WorkScheduleId" Type="Int32" Nullable="false" />
+          <Property Name="FacilityCode" Type="Int32" Nullable="false" />
+          <NavigationProperty Name="FmsWorkSchedule" Relationship="Self.FK__FmsWorkScheduleToFacility__FmsWorkSchedule" FromRole="FmsWorkScheduleToFacility" ToRole="FmsWorkSchedule" />
+          <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK_FmsWorkScheduleToFacility_CmFacility" FromRole="FmsWorkScheduleToFacility" ToRole="CmFacility" />
+        </EntityType>
+        <EntityType Name="sysdiagrams">
+          <Key>
+            <PropertyRef Name="diagram_id" />
+          </Key>
+          <Property Name="name" Type="String" MaxLength="128" FixedLength="false" Unicode="true" Nullable="false" />
+          <Property Name="principal_id" Type="Int32" Nullable="false" />
+          <Property Name="diagram_id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+          <Property Name="version" Type="Int32" />
+          <Property Name="definition" Type="Binary" MaxLength="Max" FixedLength="false" />
+        </EntityType>
+        <Association Name="FK__BemsMonitoringPo__1372D2FE">
+          <End Role="BemsAnalysisType" Type="Self.BemsAnalysisType" Multiplicity="1" />
+          <End Role="BemsMonitoringPointToAnlaysisType" Type="Self.BemsMonitoringPointToAnlaysisType" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="BemsAnalysisType">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="AnalysisType" />
+            </Principal>
+            <Dependent Role="BemsMonitoringPointToAnlaysisType">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="AnalysisType" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_BemsControlPointHistory_BemsFacilityType">
+          <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
+          <End Role="BemsControlPointHistory" Type="Self.BemsControlPointHistory" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="BemsFacilityType">
+              <PropertyRef Name="FacilityTypeId" />
+            </Principal>
+            <Dependent Role="BemsControlPointHistory">
+              <PropertyRef Name="FacilityTypeId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_BemsControlPointHistory_BemsMonitoringPoint">
+          <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="1" />
+          <End Role="BemsControlPointHistory" Type="Self.BemsControlPointHistory" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="BemsMonitoringPoint">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FacilityCode" />
+              <PropertyRef Name="PropertyId" />
+            </Principal>
+            <Dependent Role="BemsControlPointHistory">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FacilityCode" />
+              <PropertyRef Name="PropertyId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__BemsMonitoringPointBaseData__BemsFacilityType">
+          <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
+          <End Role="BemsMonitoringPointBaseData" Type="Self.BemsMonitoringPointBaseData" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="BemsFacilityType">
+              <PropertyRef Name="FacilityTypeId" />
+            </Principal>
+            <Dependent Role="BemsMonitoringPointBaseData">
+              <PropertyRef Name="FacilityTypeId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__BemsMonitoringPointHistory15min__BemsFacilityType">
+          <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
+          <End Role="BemsMonitoringPointHistory15min" Type="Self.BemsMonitoringPointHistory15min" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="BemsFacilityType">
+              <PropertyRef Name="FacilityTypeId" />
+            </Principal>
+            <Dependent Role="BemsMonitoringPointHistory15min">
+              <PropertyRef Name="FacilityTypeId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__BemsMonitoringPointHistoryDaily__BemsFacilityType">
+          <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
+          <End Role="BemsMonitoringPointHistoryDaily" Type="Self.BemsMonitoringPointHistoryDaily" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="BemsFacilityType">
+              <PropertyRef Name="FacilityTypeId" />
+            </Principal>
+            <Dependent Role="BemsMonitoringPointHistoryDaily">
+              <PropertyRef Name="FacilityTypeId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__BemsMonitoringPointHistoryHourly__BemsFacilityType">
+          <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
+          <End Role="BemsMonitoringPointHistoryHourly" Type="Self.BemsMonitoringPointHistoryHourly" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="BemsFacilityType">
+              <PropertyRef Name="FacilityTypeId" />
+            </Principal>
+            <Dependent Role="BemsMonitoringPointHistoryHourly">
+              <PropertyRef Name="FacilityTypeId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__BemsMonitoringPointToAnlaysisType__BemsFacilityType">
+          <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
+          <End Role="BemsMonitoringPointToAnlaysisType" Type="Self.BemsMonitoringPointToAnlaysisType" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="BemsFacilityType">
+              <PropertyRef Name="FacilityTypeId" />
+            </Principal>
+            <Dependent Role="BemsMonitoringPointToAnlaysisType">
+              <PropertyRef Name="FacilityTypeId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_BemsMonitoringPoint_BemsFacilityType">
+          <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
+          <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="BemsFacilityType">
+              <PropertyRef Name="FacilityTypeId" />
+            </Principal>
+            <Dependent Role="BemsMonitoringPoint">
+              <PropertyRef Name="FacilityTypeId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__BemsFormula__BemsFormulaBase">
+          <End Role="BemsFormulaBase" Type="Self.BemsFormulaBase" Multiplicity="1" />
+          <End Role="BemsFormula" Type="Self.BemsFormula" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="BemsFormulaBase">
+              <PropertyRef Name="FacilityTypeId" />
+              <PropertyRef Name="FormulaId" />
+            </Principal>
+            <Dependent Role="BemsFormula">
+              <PropertyRef Name="FacilityTypeId" />
+              <PropertyRef Name="FormulaId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__BemsFormulaParameter__BemsFormula">
+          <End Role="BemsFormula" Type="Self.BemsFormula" Multiplicity="1" />
+          <End Role="BemsFormulaParameter" Type="Self.BemsFormulaParameter" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="BemsFormula">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FacilityTypeId" />
+              <PropertyRef Name="FacilityCode" />
+              <PropertyRef Name="FormulaId" />
+            </Principal>
+            <Dependent Role="BemsFormulaParameter">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FacilityTypeId" />
+              <PropertyRef Name="FacilityCode" />
+              <PropertyRef Name="FormulaId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__BemsFormulaParameter__BemsMonitoringPoint">
+          <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="1" />
+          <End Role="BemsFormulaParameter" Type="Self.BemsFormulaParameter" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="BemsMonitoringPoint">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FacilityCode" />
+              <PropertyRef Name="PropertyId" />
+            </Principal>
+            <Dependent Role="BemsFormulaParameter">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="ParameterFacilityCode" />
+              <PropertyRef Name="ParameterPropertyId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__BemsFormulaTableValue__BemsFormulaTable">
+          <End Role="BemsFormulaTable" Type="Self.BemsFormulaTable" Multiplicity="1" />
+          <End Role="BemsFormulaTableValue" Type="Self.BemsFormulaTableValue" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="BemsFormulaTable">
+              <PropertyRef Name="TableId" />
+            </Principal>
+            <Dependent Role="BemsFormulaTableValue">
+              <PropertyRef Name="TableId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__BemsMonitoringPo__155B1B70">
+          <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="1" />
+          <End Role="BemsMonitoringPointToAnlaysisType" Type="Self.BemsMonitoringPointToAnlaysisType" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="BemsMonitoringPoint">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FacilityCode" />
+              <PropertyRef Name="PropertyId" />
+            </Principal>
+            <Dependent Role="BemsMonitoringPointToAnlaysisType">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FacilityCode" />
+              <PropertyRef Name="PropertyId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__BemsMonitoringPoint__BemsServiceType">
+          <End Role="BemsServiceType" Type="Self.BemsServiceType" Multiplicity="0..1" />
+          <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="BemsServiceType">
+              <PropertyRef Name="ServiceTypeId" />
+            </Principal>
+            <Dependent Role="BemsMonitoringPoint">
+              <PropertyRef Name="ServiceTypeId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__BemsMonitoringPoint__CmBuilding">
+          <End Role="CmBuilding" Type="Self.CmBuilding" Multiplicity="0..1" />
+          <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmBuilding">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="BuildingId" />
+            </Principal>
+            <Dependent Role="BemsMonitoringPoint">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="BuildingId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__BemsMonitoringPoint__CmFloor">
+          <End Role="CmFloor" Type="Self.CmFloor" Multiplicity="0..1" />
+          <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmFloor">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="BuildingId" />
+              <PropertyRef Name="FloorId" />
+            </Principal>
+            <Dependent Role="BemsMonitoringPoint">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="BuildingId" />
+              <PropertyRef Name="FloorId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__BemsMonitoringPoint__CmZone">
+          <End Role="CmZone" Type="Self.CmZone" Multiplicity="0..1" />
+          <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmZone">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="BuildingId" />
+              <PropertyRef Name="FloorId" />
+              <PropertyRef Name="ZoneId" />
+            </Principal>
+            <Dependent Role="BemsMonitoringPoint">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="BuildingId" />
+              <PropertyRef Name="FloorId" />
+              <PropertyRef Name="ZoneId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__BemsMonitoringPointHistory15min__BemsMonitoringPoint">
+          <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="1" />
+          <End Role="BemsMonitoringPointHistory15min" Type="Self.BemsMonitoringPointHistory15min" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="BemsMonitoringPoint">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FacilityCode" />
+              <PropertyRef Name="PropertyId" />
+            </Principal>
+            <Dependent Role="BemsMonitoringPointHistory15min">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FacilityCode" />
+              <PropertyRef Name="PropertyId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__BemsMonitoringPointHistoryDaily__BemsMonitoringPoint">
+          <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="1" />
+          <End Role="BemsMonitoringPointHistoryDaily" Type="Self.BemsMonitoringPointHistoryDaily" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="BemsMonitoringPoint">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FacilityCode" />
+              <PropertyRef Name="PropertyId" />
+            </Principal>
+            <Dependent Role="BemsMonitoringPointHistoryDaily">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FacilityCode" />
+              <PropertyRef Name="PropertyId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__BemsMonitoringPointHistoryHourly__BemsMonitoringPoint">
+          <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="1" />
+          <End Role="BemsMonitoringPointHistoryHourly" Type="Self.BemsMonitoringPointHistoryHourly" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="BemsMonitoringPoint">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FacilityCode" />
+              <PropertyRef Name="PropertyId" />
+            </Principal>
+            <Dependent Role="BemsMonitoringPointHistoryHourly">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FacilityCode" />
+              <PropertyRef Name="PropertyId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__BemsMonitoringPointBaseData__BemsServiceType">
+          <End Role="BemsServiceType" Type="Self.BemsServiceType" Multiplicity="0..1" />
+          <End Role="BemsMonitoringPointBaseData" Type="Self.BemsMonitoringPointBaseData" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="BemsServiceType">
+              <PropertyRef Name="ServiceTypeId" />
+            </Principal>
+            <Dependent Role="BemsMonitoringPointBaseData">
+              <PropertyRef Name="ServiceTypeId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_CmAnnouncement_CmBusinessField">
+          <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
+          <End Role="CmAnnouncement" Type="Self.CmAnnouncement" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmBusinessField">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="BusinessFieldId" />
+            </Principal>
+            <Dependent Role="CmAnnouncement">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="BusinessFieldId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_CmAnnouncement_CmFile">
+          <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
+          <End Role="CmAnnouncement" Type="Self.CmAnnouncement" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmFile">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FileId" />
+            </Principal>
+            <Dependent Role="CmAnnouncement">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FileId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_CmAnnouncement_CmUser">
+          <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
+          <End Role="CmAnnouncement" Type="Self.CmAnnouncement" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmUser">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="UserId" />
+            </Principal>
+            <Dependent Role="CmAnnouncement">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="RegisterUserId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__CmFloor__3CF40B7E">
+          <End Role="CmBuilding" Type="Self.CmBuilding" Multiplicity="1" />
+          <End Role="CmFloor" Type="Self.CmFloor" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmBuilding">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="BuildingId" />
+            </Principal>
+            <Dependent Role="CmFloor">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="BuildingId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__CmZone__CmBuilding">
+          <End Role="CmBuilding" Type="Self.CmBuilding" Multiplicity="1" />
+          <End Role="CmZone" Type="Self.CmZone" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmBuilding">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="BuildingId" />
+            </Principal>
+            <Dependent Role="CmZone">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="BuildingId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_CmZoneTempHumiSet_CmBuilding">
+          <End Role="CmBuilding" Type="Self.CmBuilding" Multiplicity="1" />
+          <End Role="CmZoneTempHumiSet" Type="Self.CmZoneTempHumiSet" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmBuilding">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="BuildingId" />
+            </Principal>
+            <Dependent Role="CmZoneTempHumiSet">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="BuildingId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__CmFacilityManual__7BE56230">
+          <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
+          <End Role="FmsFacilityManual" Type="Self.FmsFacilityManual" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmBusinessField">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="BusinessFieldId" />
+            </Principal>
+            <Dependent Role="FmsFacilityManual">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="BusinessFieldId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsLicense__CmBusinessField">
+          <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="0..1" />
+          <End Role="FmsLicense" Type="Self.FmsLicense" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmBusinessField">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="BusinessFieldId" />
+            </Principal>
+            <Dependent Role="FmsLicense">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="BusinessFieldId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsMaterialCarriedForward__CmBusinessField">
+          <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
+          <End Role="FmsMaterialCarriedForward" Type="Self.FmsMaterialCarriedForward" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmBusinessField">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="BusinessFieldId" />
+            </Principal>
+            <Dependent Role="FmsMaterialCarriedForward">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="BusinessFieldId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsMaterialCodeLocation__CmBusinessField">
+          <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
+          <End Role="FmsMaterialCodeLocation" Type="Self.FmsMaterialCodeLocation" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmBusinessField">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="BusinessFieldId" />
+            </Principal>
+            <Dependent Role="FmsMaterialCodeLocation">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="BusinessFieldId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsMaterialOrder__CmBusinessField">
+          <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
+          <End Role="FmsMaterialPurchaseOrder" Type="Self.FmsMaterialPurchaseOrder" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmBusinessField">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="BusinessFieldId" />
+            </Principal>
+            <Dependent Role="FmsMaterialPurchaseOrder">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="BusinessFieldId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsMaterialPurchasingRequest__CmBusinessField">
+          <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
+          <End Role="FmsMaterialPurchaseRequest" Type="Self.FmsMaterialPurchaseRequest" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmBusinessField">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="BusinessFieldId" />
+            </Principal>
+            <Dependent Role="FmsMaterialPurchaseRequest">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="BusinessFieldId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsMaterialStored__CmBusinessField">
+          <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
+          <End Role="FmsMaterialStored" Type="Self.FmsMaterialStored" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmBusinessField">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="BusinessFieldId" />
+            </Principal>
+            <Dependent Role="FmsMaterialStored">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="BusinessFieldId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsMaterialWarehouse__CmBusinessField">
+          <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
+          <End Role="FmsMaterialWarehouse" Type="Self.FmsMaterialWarehouse" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmBusinessField">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="BusinessFieldId" />
+            </Principal>
+            <Dependent Role="FmsMaterialWarehouse">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="BusinessFieldId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsWorkOrder__CmBusinessField">
+          <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
+          <End Role="FmsWorkOrder" Type="Self.FmsWorkOrder" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmBusinessField">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="BusinessFieldId" />
+            </Principal>
+            <Dependent Role="FmsWorkOrder">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="BusinessFieldId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsWorkRequest__CmBusinessField">
+          <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
+          <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmBusinessField">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="BusinessFieldId" />
+            </Principal>
+            <Dependent Role="FmsWorkRequest">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="BusinessFieldId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_CmUser_CmBusinessField">
+          <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="0..1" />
+          <End Role="CmUser" Type="Self.CmUser" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmBusinessField">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="BusinessFieldId" />
+            </Principal>
+            <Dependent Role="CmUser">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="BusinessFieldId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__CmCompany__345EC57D">
+          <End Role="CmCompanyType" Type="Self.CmCompanyType" Multiplicity="1" />
+          <End Role="CmCompany" Type="Self.CmCompany" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmCompanyType">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="CompanyTypeId" />
+            </Principal>
+            <Dependent Role="CmCompany">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="CompanyTypeId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__CmDepartment__3552E9B6">
+          <End Role="CmCompany" Type="Self.CmCompany" Multiplicity="1" />
+          <End Role="CmDepartment" Type="Self.CmDepartment" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmCompany">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="CompanyId" />
+            </Principal>
+            <Dependent Role="CmDepartment">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="CompanyId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_CmUser_CmCompany">
+          <End Role="CmCompany" Type="Self.CmCompany" Multiplicity="0..1" />
+          <End Role="CmUser" Type="Self.CmUser" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmCompany">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="CompanyId" />
+            </Principal>
+            <Dependent Role="CmUser">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="CompanyId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_CmUser_CmDepartment">
+          <End Role="CmDepartment" Type="Self.CmDepartment" Multiplicity="0..1" />
+          <End Role="CmUser" Type="Self.CmUser" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmDepartment">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="CompanyId" />
+              <PropertyRef Name="DepartmentId" />
+            </Principal>
+            <Dependent Role="CmUser">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="CompanyId" />
+              <PropertyRef Name="DepartmentId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsAccident_CmDepartment">
+          <End Role="CmDepartment" Type="Self.CmDepartment" Multiplicity="0..1" />
+          <End Role="FmsAccident" Type="Self.FmsAccident" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmDepartment">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="CompanyId" />
+              <PropertyRef Name="DepartmentId" />
+            </Principal>
+            <Dependent Role="FmsAccident">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="CompanyId" />
+              <PropertyRef Name="DepartmentId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__CmFacilityFile__CmFile">
+          <End Role="CmFile" Type="Self.CmFile" Multiplicity="1" />
+          <End Role="CmFacilityFile" Type="Self.CmFacilityFile" Multiplicity="0..1" />
+          <ReferentialConstraint>
+            <Principal Role="CmFile">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FileId" />
+            </Principal>
+            <Dependent Role="CmFacilityFile">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FileId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__CmFile__CmFileCategory">
+          <End Role="CmFileCategory" Type="Self.CmFileCategory" Multiplicity="1" />
+          <End Role="CmFile" Type="Self.CmFile" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmFileCategory">
+              <PropertyRef Name="FileCategoryId" />
+            </Principal>
+            <Dependent Role="CmFile">
+              <PropertyRef Name="FileCategoryId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsDrawingHistor__04DA9AE4">
+          <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
+          <End Role="FmsDrawingHistory" Type="Self.FmsDrawingHistory" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmFile">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FileId" />
+            </Principal>
+            <Dependent Role="FmsDrawingHistory">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FileId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsMaterialPurchaseOrder__CmFile">
+          <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
+          <End Role="FmsMaterialPurchaseOrder" Type="Self.FmsMaterialPurchaseOrder" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmFile">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FileId" />
+            </Principal>
+            <Dependent Role="FmsMaterialPurchaseOrder">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FileId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsWorkResultFile__CmFile">
+          <End Role="CmFile" Type="Self.CmFile" Multiplicity="1" />
+          <End Role="FmsWorkResultFile" Type="Self.FmsWorkResultFile" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmFile">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FileId" />
+            </Principal>
+            <Dependent Role="FmsWorkResultFile">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FileId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsAccident_CmFile1">
+          <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
+          <End Role="FmsAccident" Type="Self.FmsAccident" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmFile">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FileId" />
+            </Principal>
+            <Dependent Role="FmsAccident">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FileId1" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsAccident_CmFile2">
+          <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
+          <End Role="FmsAccident" Type="Self.FmsAccident" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmFile">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FileId" />
+            </Principal>
+            <Dependent Role="FmsAccident">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FileId2" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsAccident_CmFile3">
+          <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
+          <End Role="FmsAccident" Type="Self.FmsAccident" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmFile">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FileId" />
+            </Principal>
+            <Dependent Role="FmsAccident">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FileId3" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsConstruction_CmFile1">
+          <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
+          <End Role="FmsConstruction" Type="Self.FmsConstruction" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmFile">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FileId" />
+            </Principal>
+            <Dependent Role="FmsConstruction">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FileId1" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsConstruction_CmFile2">
+          <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
+          <End Role="FmsConstruction" Type="Self.FmsConstruction" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmFile">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FileId" />
+            </Principal>
+            <Dependent Role="FmsConstruction">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FileId2" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsConstruction_CmFile3">
+          <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
+          <End Role="FmsConstruction" Type="Self.FmsConstruction" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmFile">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FileId" />
+            </Principal>
+            <Dependent Role="FmsConstruction">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FileId3" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsManualHistory_CmFile">
+          <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
+          <End Role="FmsManualHistory" Type="Self.FmsManualHistory" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmFile">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FileId" />
+            </Principal>
+            <Dependent Role="FmsManualHistory">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FileId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__CmLocation__3DE82FB7">
+          <End Role="CmFloor" Type="Self.CmFloor" Multiplicity="1" />
+          <End Role="CmZone" Type="Self.CmZone" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmFloor">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="BuildingId" />
+              <PropertyRef Name="FloorId" />
+            </Principal>
+            <Dependent Role="CmZone">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="BuildingId" />
+              <PropertyRef Name="FloorId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_CmZoneTempHumiSet_CmFloor">
+          <End Role="CmFloor" Type="Self.CmFloor" Multiplicity="1" />
+          <End Role="CmZoneTempHumiSet" Type="Self.CmZoneTempHumiSet" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmFloor">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="BuildingId" />
+              <PropertyRef Name="FloorId" />
+            </Principal>
+            <Dependent Role="CmZoneTempHumiSet">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="BuildingId" />
+              <PropertyRef Name="FloorId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_CmUser_CmPosition">
+          <End Role="CmPosition" Type="Self.CmPosition" Multiplicity="0..1" />
+          <End Role="CmUser" Type="Self.CmUser" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmPosition">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="PositionId" />
+            </Principal>
+            <Dependent Role="CmUser">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="PositionId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__CmUserToLicense__CmUser">
+          <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
+          <End Role="CmUserToLicense" Type="Self.CmUserToLicense" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmUser">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="UserId" />
+            </Principal>
+            <Dependent Role="CmUserToLicense">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="UserId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsDrawingHistory__CmUser">
+          <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
+          <End Role="FmsDrawingHistory" Type="Self.FmsDrawingHistory" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmUser">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="UserId" />
+            </Principal>
+            <Dependent Role="FmsDrawingHistory">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="UpdatedUserId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsMaterialOrder__CmUser">
+          <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
+          <End Role="FmsMaterialPurchaseOrder" Type="Self.FmsMaterialPurchaseOrder" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmUser">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="UserId" />
+            </Principal>
+            <Dependent Role="FmsMaterialPurchaseOrder">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="OrderUserId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsMaterialPurchaseRequest__CmUser_AsRequestUserId">
+          <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
+          <End Role="FmsMaterialPurchaseRequest" Type="Self.FmsMaterialPurchaseRequest" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmUser">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="UserId" />
+            </Principal>
+            <Dependent Role="FmsMaterialPurchaseRequest">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="RequestUserId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsMaterialPurchaseRequest__CmUser1_AsApprovalUserId">
+          <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
+          <End Role="FmsMaterialPurchaseRequest" Type="Self.FmsMaterialPurchaseRequest" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmUser">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="UserId" />
+            </Principal>
+            <Dependent Role="FmsMaterialPurchaseRequest">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="ApprovalUserId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsMaterialStored__CmUser_AsStoredUserId">
+          <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
+          <End Role="FmsMaterialStored" Type="Self.FmsMaterialStored" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmUser">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="UserId" />
+            </Principal>
+            <Dependent Role="FmsMaterialStored">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="StoredUserId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsMaterialStored__CmUser1_AsApprovalUserId">
+          <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
+          <End Role="FmsMaterialStored" Type="Self.FmsMaterialStored" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmUser">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="UserId" />
+            </Principal>
+            <Dependent Role="FmsMaterialStored">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="ApprovalUserId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsWorkOrder__CmUser">
+          <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
+          <End Role="FmsWorkOrder" Type="Self.FmsWorkOrder" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmUser">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="UserId" />
+            </Principal>
+            <Dependent Role="FmsWorkOrder">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="OrderUserId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsWorkRequest__CmUser_AsRequestUserId">
+          <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
+          <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmUser">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="UserId" />
+            </Principal>
+            <Dependent Role="FmsWorkRequest">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="RequestUserId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsWorkRequest__CmUser1_AsRejectUserId">
+          <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
+          <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmUser">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="UserId" />
+            </Principal>
+            <Dependent Role="FmsWorkRequest">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="RejectUserId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsWorkResult__CmUser_AsWorkerUserId">
+          <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
+          <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmUser">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="UserId" />
+            </Principal>
+            <Dependent Role="FmsWorkResult">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="WorkerUserId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsWorkResult__CmUser1_AsConfirmedUserId">
+          <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
+          <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmUser">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="UserId" />
+            </Principal>
+            <Dependent Role="FmsWorkResult">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="ConfirmedUserId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_CmUser_CmUserGroup">
+          <End Role="CmUserGroup" Type="Self.CmUserGroup" Multiplicity="0..1" />
+          <End Role="CmUser" Type="Self.CmUser" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmUserGroup">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="UserGroupId" />
+            </Principal>
+            <Dependent Role="CmUser">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="UserGroupId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_CmUserLoginHistory_CmUser">
+          <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
+          <End Role="CmUserLoginHistory" Type="Self.CmUserLoginHistory" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmUser">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="UserId" />
+            </Principal>
+            <Dependent Role="CmUserLoginHistory">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="UserId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsConstructionEstimation_CmUser">
+          <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
+          <End Role="FmsConstructionEstimation" Type="Self.FmsConstructionEstimation" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmUser">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="UserId" />
+            </Principal>
+            <Dependent Role="FmsConstructionEstimation">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="EstimateUserId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsManualHistory_CmUser">
+          <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
+          <End Role="FmsManualHistory" Type="Self.FmsManualHistory" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmUser">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="UserId" />
+            </Principal>
+            <Dependent Role="FmsManualHistory">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="UpdatedUserId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__CmUserGroupPermission__CmUserGroup">
+          <End Role="CmUserGroup" Type="Self.CmUserGroup" Multiplicity="1">
+            <OnDelete Action="Cascade" />
+          </End>
+          <End Role="CmUserGroupPermission" Type="Self.CmUserGroupPermission" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmUserGroup">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="UserGroupId" />
+            </Principal>
+            <Dependent Role="CmUserGroupPermission">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="UserGroupId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__CmUserToLicense__FmsLicense">
+          <End Role="FmsLicense" Type="Self.FmsLicense" Multiplicity="1" />
+          <End Role="CmUserToLicense" Type="Self.CmUserToLicense" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="FmsLicense">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="LicenseId" />
+            </Principal>
+            <Dependent Role="CmUserToLicense">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="LicenseId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_CmZoneTempHumiSet_CmZone">
+          <End Role="CmZone" Type="Self.CmZone" Multiplicity="1" />
+          <End Role="CmZoneTempHumiSet" Type="Self.CmZoneTempHumiSet" Multiplicity="0..1" />
+          <ReferentialConstraint>
+            <Principal Role="CmZone">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="BuildingId" />
+              <PropertyRef Name="FloorId" />
+              <PropertyRef Name="ZoneId" />
+            </Principal>
+            <Dependent Role="CmZoneTempHumiSet">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="BuildingId" />
+              <PropertyRef Name="FloorId" />
+              <PropertyRef Name="ZoneId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsAccident_FmsAccidentCodeType">
+          <End Role="FmsAccidentCodeType" Type="Self.FmsAccidentCodeType" Multiplicity="1" />
+          <End Role="FmsAccident" Type="Self.FmsAccident" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="FmsAccidentCodeType">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="AccidentTypeId" />
+            </Principal>
+            <Dependent Role="FmsAccident">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="AccidentTypeId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsConstruction_FmsConstructionCodeProgress">
+          <End Role="FmsConstructionCodeProgress" Type="Self.FmsConstructionCodeProgress" Multiplicity="1" />
+          <End Role="FmsConstruction" Type="Self.FmsConstruction" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="FmsConstructionCodeProgress">
+              <PropertyRef Name="ProgressId" />
+            </Principal>
+            <Dependent Role="FmsConstruction">
+              <PropertyRef Name="ProgressId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsConstruction_FmsConstructionCodeType">
+          <End Role="FmsConstructionCodeType" Type="Self.FmsConstructionCodeType" Multiplicity="1" />
+          <End Role="FmsConstruction" Type="Self.FmsConstruction" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="FmsConstructionCodeType">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="ConstructionTypeId" />
+            </Principal>
+            <Dependent Role="FmsConstruction">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="ConstructionTypeId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsConstructionEstimation_FmsConstruction">
+          <End Role="FmsConstruction" Type="Self.FmsConstruction" Multiplicity="1" />
+          <End Role="FmsConstructionEstimation" Type="Self.FmsConstructionEstimation" Multiplicity="0..1" />
+          <ReferentialConstraint>
+            <Principal Role="FmsConstruction">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="ConstructionId" />
+            </Principal>
+            <Dependent Role="FmsConstructionEstimation">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="ConstructionId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsDrawing__6E565CE8">
+          <End Role="FmsDrawingCodeGroup" Type="Self.FmsDrawingCodeGroup" Multiplicity="1" />
+          <End Role="FmsDrawing" Type="Self.FmsDrawing" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="FmsDrawingCodeGroup">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="DrawingGroupId" />
+            </Principal>
+            <Dependent Role="FmsDrawing">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="DrawingGroupId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsDrawing__6F4A8121">
+          <End Role="FmsDrawingCodeType" Type="Self.FmsDrawingCodeType" Multiplicity="1" />
+          <End Role="FmsDrawing" Type="Self.FmsDrawing" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="FmsDrawingCodeType">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="DrawingTypeId" />
+            </Principal>
+            <Dependent Role="FmsDrawing">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="DrawingTypeId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsDrawingHistor__7132C993">
+          <End Role="FmsDrawing" Type="Self.FmsDrawing" Multiplicity="1" />
+          <End Role="FmsDrawingHistory" Type="Self.FmsDrawingHistory" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="FmsDrawing">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="DrawingId" />
+            </Principal>
+            <Dependent Role="FmsDrawingHistory">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="DrawingId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsEquipmentHistory_FmsEquipmentCodeStateType">
+          <End Role="FmsEquipmentCodeStateType" Type="Self.FmsEquipmentCodeStateType" Multiplicity="0..1" />
+          <End Role="FmsEquipmentHistory" Type="Self.FmsEquipmentHistory" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="FmsEquipmentCodeStateType">
+              <PropertyRef Name="EquipmentStateTypeId" />
+            </Principal>
+            <Dependent Role="FmsEquipmentHistory">
+              <PropertyRef Name="EquipmentStateTypeId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsFacilityCheckItem__FmsWorkCodeCycleUnit">
+          <End Role="FmsWorkCodeCycleUnit" Type="Self.FmsWorkCodeCycleUnit" Multiplicity="1" />
+          <End Role="FmsFacilityCheckItem" Type="Self.FmsFacilityCheckItem" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="FmsWorkCodeCycleUnit">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="CycleUnitId" />
+            </Principal>
+            <Dependent Role="FmsFacilityCheckItem">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="CycleUnitId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsFacilityCheckItem__FmsWorkCodeWorkType">
+          <End Role="FmsWorkCodeType" Type="Self.FmsWorkCodeType" Multiplicity="1" />
+          <End Role="FmsFacilityCheckItem" Type="Self.FmsFacilityCheckItem" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="FmsWorkCodeType">
+              <PropertyRef Name="WorkTypeId" />
+            </Principal>
+            <Dependent Role="FmsFacilityCheckItem">
+              <PropertyRef Name="WorkTypeId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsWorkResultCheckItem__FmsFacilityCheckItem">
+          <End Role="FmsFacilityCheckItem" Type="Self.FmsFacilityCheckItem" Multiplicity="0..1" />
+          <End Role="FmsWorkResultCheckItem" Type="Self.FmsWorkResultCheckItem" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="FmsFacilityCheckItem">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FacilityCode" />
+              <PropertyRef Name="CheckItemId" />
+            </Principal>
+            <Dependent Role="FmsWorkResultCheckItem">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FacilityCode" />
+              <PropertyRef Name="CheckItemId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsFacilityCodeClass__FmsFacilityCodeClass">
+          <End Role="FmsFacilityCodeClass" Type="Self.FmsFacilityCodeClass" Multiplicity="0..1" />
+          <End Role="FmsFacilityCodeClass1" Type="Self.FmsFacilityCodeClass" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="FmsFacilityCodeClass">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FacilityClassId" />
+            </Principal>
+            <Dependent Role="FmsFacilityCodeClass1">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="ParentFacilityClassId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsManual_FmsManualType">
+          <End Role="FmsManualType" Type="Self.FmsManualType" Multiplicity="1" />
+          <End Role="FmsManual" Type="Self.FmsManual" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="FmsManualType">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="ManualTypeId" />
+            </Principal>
+            <Dependent Role="FmsManual">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="ManualTypeId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsManualHistory_FmsManual">
+          <End Role="FmsManual" Type="Self.FmsManual" Multiplicity="1" />
+          <End Role="FmsManualHistory" Type="Self.FmsManualHistory" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="FmsManual">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="ManualId" />
+            </Principal>
+            <Dependent Role="FmsManualHistory">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="ManualId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsMaterialCodeClass__FmsMaterialCodeClass">
+          <End Role="FmsMaterialCodeClass" Type="Self.FmsMaterialCodeClass" Multiplicity="0..1" />
+          <End Role="FmsMaterialCodeClass1" Type="Self.FmsMaterialCodeClass" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="FmsMaterialCodeClass">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="MaterialClassId" />
+            </Principal>
+            <Dependent Role="FmsMaterialCodeClass1">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="ParentMaterialClassId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsMaterialPurchasingRequest__FmsMaterialCodeProcess">
+          <End Role="FmsMaterialCodeProgress" Type="Self.FmsMaterialCodeProgress" Multiplicity="1" />
+          <End Role="FmsMaterialPurchaseRequest" Type="Self.FmsMaterialPurchaseRequest" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="FmsMaterialCodeProgress">
+              <PropertyRef Name="ProgressId" />
+            </Principal>
+            <Dependent Role="FmsMaterialPurchaseRequest">
+              <PropertyRef Name="ProgressId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsMaterialPurchaseRequest_FmsMaterialCodePurchaseType">
+          <End Role="FmsMaterialCodePurchaseType" Type="Self.FmsMaterialCodePurchaseType" Multiplicity="1" />
+          <End Role="FmsMaterialPurchaseRequest" Type="Self.FmsMaterialPurchaseRequest" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="FmsMaterialCodePurchaseType">
+              <PropertyRef Name="PurchaseTypeId" />
+            </Principal>
+            <Dependent Role="FmsMaterialPurchaseRequest">
+              <PropertyRef Name="PurchaseTypeId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsMaterialPurchaseOrder__FmsMaterialTradeCompany">
+          <End Role="FmsMaterialTradeCompany" Type="Self.FmsMaterialTradeCompany" Multiplicity="0..1" />
+          <End Role="FmsMaterialPurchaseOrder" Type="Self.FmsMaterialPurchaseOrder" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="FmsMaterialTradeCompany">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="TradeCompanyId" />
+            </Principal>
+            <Dependent Role="FmsMaterialPurchaseOrder">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="TradeCompanyId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsMaterialPurchaseOrder_FmsMaterialPurchaseRequest">
+          <End Role="FmsMaterialPurchaseRequest" Type="Self.FmsMaterialPurchaseRequest" Multiplicity="1" />
+          <End Role="FmsMaterialPurchaseOrder" Type="Self.FmsMaterialPurchaseOrder" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="FmsMaterialPurchaseRequest">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="PurchaseRequestId" />
+            </Principal>
+            <Dependent Role="FmsMaterialPurchaseOrder">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="PurchaseRequestId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsMaterialPurchaseOrderMaterial_FmsMaterialPurchaseOrder">
+          <End Role="FmsMaterialPurchaseOrder" Type="Self.FmsMaterialPurchaseOrder" Multiplicity="1">
+            <OnDelete Action="Cascade" />
+          </End>
+          <End Role="FmsMaterialPurchaseOrderMaterial" Type="Self.FmsMaterialPurchaseOrderMaterial" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="FmsMaterialPurchaseOrder">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="PurchaseOrderId" />
+            </Principal>
+            <Dependent Role="FmsMaterialPurchaseOrderMaterial">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="PurchaseOrderId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsMaterialStored_FmsMaterialPurchaseOrder">
+          <End Role="FmsMaterialPurchaseOrder" Type="Self.FmsMaterialPurchaseOrder" Multiplicity="0..1" />
+          <End Role="FmsMaterialStored" Type="Self.FmsMaterialStored" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="FmsMaterialPurchaseOrder">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="PurchaseOrderId" />
+            </Principal>
+            <Dependent Role="FmsMaterialStored">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="PurchaseOrderId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsMaterialPurchaseRequestMaterial_FmsMaterialPurchaseRequest">
+          <End Role="FmsMaterialPurchaseRequest" Type="Self.FmsMaterialPurchaseRequest" Multiplicity="1">
+            <OnDelete Action="Cascade" />
+          </End>
+          <End Role="FmsMaterialPurchaseRequestMaterial" Type="Self.FmsMaterialPurchaseRequestMaterial" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="FmsMaterialPurchaseRequest">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="PurchaseRequestId" />
+            </Principal>
+            <Dependent Role="FmsMaterialPurchaseRequestMaterial">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="PurchaseRequestId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsMaterialStored_FmsMaterialWarehouse">
+          <End Role="FmsMaterialWarehouse" Type="Self.FmsMaterialWarehouse" Multiplicity="1" />
+          <End Role="FmsMaterialStored" Type="Self.FmsMaterialStored" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="FmsMaterialWarehouse">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="WarehouseId" />
+            </Principal>
+            <Dependent Role="FmsMaterialStored">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="WarehouseId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsWorkResult__FmsWorkCodeCauseClass">
+          <End Role="FmsWorkCodeCauseClass" Type="Self.FmsWorkCodeCauseClass" Multiplicity="0..1" />
+          <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="FmsWorkCodeCauseClass">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="CauseClassId" />
+            </Principal>
+            <Dependent Role="FmsWorkResult">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="CauseClassId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsWorkOrder__FmsWorkCodeEmergency">
+          <End Role="FmsWorkCodeEmergency" Type="Self.FmsWorkCodeEmergency" Multiplicity="0..1" />
+          <End Role="FmsWorkOrder" Type="Self.FmsWorkOrder" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="FmsWorkCodeEmergency">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="EmergencyId" />
+            </Principal>
+            <Dependent Role="FmsWorkOrder">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="EmergencyId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsWorkRequest__FmsWorkCodeProgress">
+          <End Role="FmsWorkCodeProgress" Type="Self.FmsWorkCodeProgress" Multiplicity="1" />
+          <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="FmsWorkCodeProgress">
+              <PropertyRef Name="WorkProgressId" />
+            </Principal>
+            <Dependent Role="FmsWorkRequest">
+              <PropertyRef Name="WorkProgressId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsWorkRequest__FmsWorkCodeWorkType">
+          <End Role="FmsWorkCodeType" Type="Self.FmsWorkCodeType" Multiplicity="1" />
+          <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="FmsWorkCodeType">
+              <PropertyRef Name="WorkTypeId" />
+            </Principal>
+            <Dependent Role="FmsWorkRequest">
+              <PropertyRef Name="WorkTypeId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsWorkOrder__FmsWorkRequest">
+          <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="1" />
+          <End Role="FmsWorkOrder" Type="Self.FmsWorkOrder" Multiplicity="0..1" />
+          <ReferentialConstraint>
+            <Principal Role="FmsWorkRequest">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="WorkRequestId" />
+            </Principal>
+            <Dependent Role="FmsWorkOrder">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="WorkRequestId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsWorkOrderToFacility__FmsWorkOrder">
+          <End Role="FmsWorkOrder" Type="Self.FmsWorkOrder" Multiplicity="1">
+            <OnDelete Action="Cascade" />
+          </End>
+          <End Role="FmsWorkOrderToFacility" Type="Self.FmsWorkOrderToFacility" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="FmsWorkOrder">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="WorkRequestId" />
+            </Principal>
+            <Dependent Role="FmsWorkOrderToFacility">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="WorkRequestId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsWorkResult__FmsWorkOrder">
+          <End Role="FmsWorkOrder" Type="Self.FmsWorkOrder" Multiplicity="1" />
+          <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="0..1" />
+          <ReferentialConstraint>
+            <Principal Role="FmsWorkOrder">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="WorkRequestId" />
+            </Principal>
+            <Dependent Role="FmsWorkResult">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="WorkRequestId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsWorkRequestToFacility__FmsWorkRequest">
+          <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="1">
+            <OnDelete Action="Cascade" />
+          </End>
+          <End Role="FmsWorkRequestToFacility" Type="Self.FmsWorkRequestToFacility" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="FmsWorkRequest">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="WorkRequestId" />
+            </Principal>
+            <Dependent Role="FmsWorkRequestToFacility">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="WorkRequestId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsWorkResult__FmsWorkRequest">
+          <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="1" />
+          <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="0..1" />
+          <ReferentialConstraint>
+            <Principal Role="FmsWorkRequest">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="WorkRequestId" />
+            </Principal>
+            <Dependent Role="FmsWorkResult">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="WorkRequestId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsWorkResultCheckItem__FmsWorkResult">
+          <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="1">
+            <OnDelete Action="Cascade" />
+          </End>
+          <End Role="FmsWorkResultCheckItem" Type="Self.FmsWorkResultCheckItem" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="FmsWorkResult">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="WorkRequestId" />
+            </Principal>
+            <Dependent Role="FmsWorkResultCheckItem">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="WorkRequestId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsWorkResultFile__FmsWorkResult">
+          <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="1" />
+          <End Role="FmsWorkResultFile" Type="Self.FmsWorkResultFile" Multiplicity="0..1" />
+          <ReferentialConstraint>
+            <Principal Role="FmsWorkResult">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="WorkRequestId" />
+            </Principal>
+            <Dependent Role="FmsWorkResultFile">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="WorkRequestId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsWorkResultLaw__FmsWorkResult">
+          <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="1" />
+          <End Role="FmsWorkResultLaw" Type="Self.FmsWorkResultLaw" Multiplicity="0..1" />
+          <ReferentialConstraint>
+            <Principal Role="FmsWorkResult">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="WorkRequestId" />
+            </Principal>
+            <Dependent Role="FmsWorkResultLaw">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="WorkRequestId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsWorkResultToFacility__FmsWorkOrder">
+          <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="1">
+            <OnDelete Action="Cascade" />
+          </End>
+          <End Role="FmsWorkResultToFacility" Type="Self.FmsWorkResultToFacility" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="FmsWorkResult">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="WorkRequestId" />
+            </Principal>
+            <Dependent Role="FmsWorkResultToFacility">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="WorkRequestId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsWorkResultCheckItemMaterial_FmsWorkResultCheckItem">
+          <End Role="FmsWorkResultCheckItem" Type="Self.FmsWorkResultCheckItem" Multiplicity="1">
+            <OnDelete Action="Cascade" />
+          </End>
+          <End Role="FmsWorkResultCheckItemMaterial" Type="Self.FmsWorkResultCheckItemMaterial" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="FmsWorkResultCheckItem">
+              <PropertyRef Name="CheckItemId" />
+            </Principal>
+            <Dependent Role="FmsWorkResultCheckItemMaterial">
+              <PropertyRef Name="CheckItemId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <EntityContainer Name="iBemsEntities" annotation:LazyLoadingEnabled="true">
+          <EntitySet Name="BemsAnalysisType" EntityType="Self.BemsAnalysisType" />
+          <EntitySet Name="BemsControlPointHistory" EntityType="Self.BemsControlPointHistory" />
+          <EntitySet Name="BemsFacilityType" EntityType="Self.BemsFacilityType" />
+          <EntitySet Name="BemsFactorCo2" EntityType="Self.BemsFactorCo2" />
+          <EntitySet Name="BemsFactorToe" EntityType="Self.BemsFactorToe" />
+          <EntitySet Name="BemsFormula" EntityType="Self.BemsFormula" />
+          <EntitySet Name="BemsFormulaBase" EntityType="Self.BemsFormulaBase" />
+          <EntitySet Name="BemsFormulaParameter" EntityType="Self.BemsFormulaParameter" />
+          <EntitySet Name="BemsFormulaTable" EntityType="Self.BemsFormulaTable" />
+          <EntitySet Name="BemsFormulaTableValue" EntityType="Self.BemsFormulaTableValue" />
+          <EntitySet Name="BemsMonitoringPoint" EntityType="Self.BemsMonitoringPoint" />
+          <EntitySet Name="BemsMonitoringPointBaseData" EntityType="Self.BemsMonitoringPointBaseData" />
+          <EntitySet Name="BemsMonitoringPointHistory15min" EntityType="Self.BemsMonitoringPointHistory15min" />
+          <EntitySet Name="BemsMonitoringPointHistoryDaily" EntityType="Self.BemsMonitoringPointHistoryDaily" />
+          <EntitySet Name="BemsMonitoringPointHistoryHourly" EntityType="Self.BemsMonitoringPointHistoryHourly" />
+          <EntitySet Name="BemsMonitoringPointToAnlaysisType" EntityType="Self.BemsMonitoringPointToAnlaysisType" />
+          <EntitySet Name="BemsServiceType" EntityType="Self.BemsServiceType" />
+          <EntitySet Name="CmAnnouncement" EntityType="Self.CmAnnouncement" />
+          <EntitySet Name="CmBuilding" EntityType="Self.CmBuilding" />
+          <EntitySet Name="CmBusinessField" EntityType="Self.CmBusinessField" />
+          <EntitySet Name="CmCompany" EntityType="Self.CmCompany" />
+          <EntitySet Name="CmCompanyType" EntityType="Self.CmCompanyType" />
+          <EntitySet Name="CmDepartment" EntityType="Self.CmDepartment" />
+          <EntitySet Name="CmFacilityFile" EntityType="Self.CmFacilityFile" />
+          <EntitySet Name="CmFacilityTempSet" EntityType="Self.CmFacilityTempSet" />
+          <EntitySet Name="CmFile" EntityType="Self.CmFile" />
+          <EntitySet Name="CmFileCategory" EntityType="Self.CmFileCategory" />
+          <EntitySet Name="CmFloor" EntityType="Self.CmFloor" />
+          <EntitySet Name="CmHoliday" EntityType="Self.CmHoliday" />
+          <EntitySet Name="CmHolidayCustom" EntityType="Self.CmHolidayCustom" />
+          <EntitySet Name="CmPosition" EntityType="Self.CmPosition" />
+          <EntitySet Name="CmUser" EntityType="Self.CmUser" />
+          <EntitySet Name="CmUserGroup" EntityType="Self.CmUserGroup" />
+          <EntitySet Name="CmUserGroupPermission" EntityType="Self.CmUserGroupPermission" />
+          <EntitySet Name="CmUserLoginHistory" EntityType="Self.CmUserLoginHistory" />
+          <EntitySet Name="CmUserToLicense" EntityType="Self.CmUserToLicense" />
+          <EntitySet Name="CmZone" EntityType="Self.CmZone" />
+          <EntitySet Name="CmZoneTempHumiSet" EntityType="Self.CmZoneTempHumiSet" />
+          <EntitySet Name="FmsAccident" EntityType="Self.FmsAccident" />
+          <EntitySet Name="FmsAccidentCodeType" EntityType="Self.FmsAccidentCodeType" />
+          <EntitySet Name="FmsBudget" EntityType="Self.FmsBudget" />
+          <EntitySet Name="FmsBudgetCodeClass" EntityType="Self.FmsBudgetCodeClass" />
+          <EntitySet Name="FmsCompanyEstimationCodeClass" EntityType="Self.FmsCompanyEstimationCodeClass" />
+          <EntitySet Name="FmsConstruction" EntityType="Self.FmsConstruction" />
+          <EntitySet Name="FmsConstructionCodeProgress" EntityType="Self.FmsConstructionCodeProgress" />
+          <EntitySet Name="FmsConstructionCodeType" EntityType="Self.FmsConstructionCodeType" />
+          <EntitySet Name="FmsConstructionEstimation" EntityType="Self.FmsConstructionEstimation" />
+          <EntitySet Name="FmsContractClass" EntityType="Self.FmsContractClass" />
+          <EntitySet Name="FmsContractMethod" EntityType="Self.FmsContractMethod" />
+          <EntitySet Name="FmsContractType" EntityType="Self.FmsContractType" />
+          <EntitySet Name="FmsDrawing" EntityType="Self.FmsDrawing" />
+          <EntitySet Name="FmsDrawingCodeGroup" EntityType="Self.FmsDrawingCodeGroup" />
+          <EntitySet Name="FmsDrawingCodeType" EntityType="Self.FmsDrawingCodeType" />
+          <EntitySet Name="FmsDrawingHistory" EntityType="Self.FmsDrawingHistory" />
+          <EntitySet Name="FmsEquipmentCodeStateType" EntityType="Self.FmsEquipmentCodeStateType" />
+          <EntitySet Name="FmsEquipmentCodeType" EntityType="Self.FmsEquipmentCodeType" />
+          <EntitySet Name="FmsEquipmentHistory" EntityType="Self.FmsEquipmentHistory" />
+          <EntitySet Name="FmsFacilityCheckItem" EntityType="Self.FmsFacilityCheckItem" />
+          <EntitySet Name="FmsFacilityCodeClass" EntityType="Self.FmsFacilityCodeClass" />
+          <EntitySet Name="FmsFacilityManual" EntityType="Self.FmsFacilityManual" />
+          <EntitySet Name="FmsFacilityOperationItem" EntityType="Self.FmsFacilityOperationItem" />
+          <EntitySet Name="FmsLicense" EntityType="Self.FmsLicense" />
+          <EntitySet Name="FmsManual" EntityType="Self.FmsManual" />
+          <EntitySet Name="FmsManualHistory" EntityType="Self.FmsManualHistory" />
+          <EntitySet Name="FmsManualType" EntityType="Self.FmsManualType" />
+          <EntitySet Name="FmsMaterialCarriedForward" EntityType="Self.FmsMaterialCarriedForward" />
+          <EntitySet Name="FmsMaterialCodeAdjustmentType" EntityType="Self.FmsMaterialCodeAdjustmentType" />
+          <EntitySet Name="FmsMaterialCodeClass" EntityType="Self.FmsMaterialCodeClass" />
+          <EntitySet Name="FmsMaterialCodeLocation" EntityType="Self.FmsMaterialCodeLocation" />
+          <EntitySet Name="FmsMaterialCodeProgress" EntityType="Self.FmsMaterialCodeProgress" />
+          <EntitySet Name="FmsMaterialCodePurchaseType" EntityType="Self.FmsMaterialCodePurchaseType" />
+          <EntitySet Name="FmsMaterialCodeReleaseType" EntityType="Self.FmsMaterialCodeReleaseType" />
+          <EntitySet Name="FmsMaterialCodeType" EntityType="Self.FmsMaterialCodeType" />
+          <EntitySet Name="FmsMaterialPurchaseOrder" EntityType="Self.FmsMaterialPurchaseOrder" />
+          <EntitySet Name="FmsMaterialPurchaseOrderMaterial" EntityType="Self.FmsMaterialPurchaseOrderMaterial" />
+          <EntitySet Name="FmsMaterialPurchaseRequest" EntityType="Self.FmsMaterialPurchaseRequest" />
+          <EntitySet Name="FmsMaterialPurchaseRequestMaterial" EntityType="Self.FmsMaterialPurchaseRequestMaterial" />
+          <EntitySet Name="FmsMaterialStored" EntityType="Self.FmsMaterialStored" />
+          <EntitySet Name="FmsMaterialTradeCompany" EntityType="Self.FmsMaterialTradeCompany" />
+          <EntitySet Name="FmsMaterialWarehouse" EntityType="Self.FmsMaterialWarehouse" />
+          <EntitySet Name="FmsPaymentType" EntityType="Self.FmsPaymentType" />
+          <EntitySet Name="FmsWorkCodeCauseClass" EntityType="Self.FmsWorkCodeCauseClass" />
+          <EntitySet Name="FmsWorkCodeCycleUnit" EntityType="Self.FmsWorkCodeCycleUnit" />
+          <EntitySet Name="FmsWorkCodeEmergency" EntityType="Self.FmsWorkCodeEmergency" />
+          <EntitySet Name="FmsWorkCodeHolidayWorkType" EntityType="Self.FmsWorkCodeHolidayWorkType" />
+          <EntitySet Name="FmsWorkCodeLegalInspectionAgency" EntityType="Self.FmsWorkCodeLegalInspectionAgency" />
+          <EntitySet Name="FmsWorkCodeProgress" EntityType="Self.FmsWorkCodeProgress" />
+          <EntitySet Name="FmsWorkCodeType" EntityType="Self.FmsWorkCodeType" />
+          <EntitySet Name="FmsWorkOrder" EntityType="Self.FmsWorkOrder" />
+          <EntitySet Name="FmsWorkOrderToFacility" EntityType="Self.FmsWorkOrderToFacility" />
+          <EntitySet Name="FmsWorkRequest" EntityType="Self.FmsWorkRequest" />
+          <EntitySet Name="FmsWorkRequestToFacility" EntityType="Self.FmsWorkRequestToFacility" />
+          <EntitySet Name="FmsWorkResult" EntityType="Self.FmsWorkResult" />
+          <EntitySet Name="FmsWorkResultCheckItem" EntityType="Self.FmsWorkResultCheckItem" />
+          <EntitySet Name="FmsWorkResultCheckItemMaterial" EntityType="Self.FmsWorkResultCheckItemMaterial" />
+          <EntitySet Name="FmsWorkResultFile" EntityType="Self.FmsWorkResultFile" />
+          <EntitySet Name="FmsWorkResultLaw" EntityType="Self.FmsWorkResultLaw" />
+          <EntitySet Name="FmsWorkResultToFacility" EntityType="Self.FmsWorkResultToFacility" />
+          <EntitySet Name="FmsWorkScheduleToFacility" EntityType="Self.FmsWorkScheduleToFacility" />
+          <EntitySet Name="sysdiagrams" EntityType="Self.sysdiagrams" />
+          <AssociationSet Name="FK__BemsMonitoringPo__1372D2FE" Association="Self.FK__BemsMonitoringPo__1372D2FE">
+            <End Role="BemsAnalysisType" EntitySet="BemsAnalysisType" />
+            <End Role="BemsMonitoringPointToAnlaysisType" EntitySet="BemsMonitoringPointToAnlaysisType" />
+          </AssociationSet>
+          <AssociationSet Name="FK_BemsControlPointHistory_BemsFacilityType" Association="Self.FK_BemsControlPointHistory_BemsFacilityType">
+            <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
+            <End Role="BemsControlPointHistory" EntitySet="BemsControlPointHistory" />
+          </AssociationSet>
+          <AssociationSet Name="FK_BemsControlPointHistory_BemsMonitoringPoint" Association="Self.FK_BemsControlPointHistory_BemsMonitoringPoint">
+            <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
+            <End Role="BemsControlPointHistory" EntitySet="BemsControlPointHistory" />
+          </AssociationSet>
+          <AssociationSet Name="FK__BemsMonitoringPointBaseData__BemsFacilityType" Association="Self.FK__BemsMonitoringPointBaseData__BemsFacilityType">
+            <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
+            <End Role="BemsMonitoringPointBaseData" EntitySet="BemsMonitoringPointBaseData" />
+          </AssociationSet>
+          <AssociationSet Name="FK__BemsMonitoringPointHistory15min__BemsFacilityType" Association="Self.FK__BemsMonitoringPointHistory15min__BemsFacilityType">
+            <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
+            <End Role="BemsMonitoringPointHistory15min" EntitySet="BemsMonitoringPointHistory15min" />
+          </AssociationSet>
+          <AssociationSet Name="FK__BemsMonitoringPointHistoryDaily__BemsFacilityType" Association="Self.FK__BemsMonitoringPointHistoryDaily__BemsFacilityType">
+            <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
+            <End Role="BemsMonitoringPointHistoryDaily" EntitySet="BemsMonitoringPointHistoryDaily" />
+          </AssociationSet>
+          <AssociationSet Name="FK__BemsMonitoringPointHistoryHourly__BemsFacilityType" Association="Self.FK__BemsMonitoringPointHistoryHourly__BemsFacilityType">
+            <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
+            <End Role="BemsMonitoringPointHistoryHourly" EntitySet="BemsMonitoringPointHistoryHourly" />
+          </AssociationSet>
+          <AssociationSet Name="FK__BemsMonitoringPointToAnlaysisType__BemsFacilityType" Association="Self.FK__BemsMonitoringPointToAnlaysisType__BemsFacilityType">
+            <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
+            <End Role="BemsMonitoringPointToAnlaysisType" EntitySet="BemsMonitoringPointToAnlaysisType" />
+          </AssociationSet>
+          <AssociationSet Name="FK_BemsMonitoringPoint_BemsFacilityType" Association="Self.FK_BemsMonitoringPoint_BemsFacilityType">
+            <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
+            <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
+          </AssociationSet>
+          <AssociationSet Name="FK__BemsFormula__BemsFormulaBase" Association="Self.FK__BemsFormula__BemsFormulaBase">
+            <End Role="BemsFormulaBase" EntitySet="BemsFormulaBase" />
+            <End Role="BemsFormula" EntitySet="BemsFormula" />
+          </AssociationSet>
+          <AssociationSet Name="FK__BemsFormulaParameter__BemsFormula" Association="Self.FK__BemsFormulaParameter__BemsFormula">
+            <End Role="BemsFormula" EntitySet="BemsFormula" />
+            <End Role="BemsFormulaParameter" EntitySet="BemsFormulaParameter" />
+          </AssociationSet>
+          <AssociationSet Name="FK__BemsFormulaParameter__BemsMonitoringPoint" Association="Self.FK__BemsFormulaParameter__BemsMonitoringPoint">
+            <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
+            <End Role="BemsFormulaParameter" EntitySet="BemsFormulaParameter" />
+          </AssociationSet>
+          <AssociationSet Name="FK__BemsFormulaTableValue__BemsFormulaTable" Association="Self.FK__BemsFormulaTableValue__BemsFormulaTable">
+            <End Role="BemsFormulaTable" EntitySet="BemsFormulaTable" />
+            <End Role="BemsFormulaTableValue" EntitySet="BemsFormulaTableValue" />
+          </AssociationSet>
+          <AssociationSet Name="FK__BemsMonitoringPo__155B1B70" Association="Self.FK__BemsMonitoringPo__155B1B70">
+            <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
+            <End Role="BemsMonitoringPointToAnlaysisType" EntitySet="BemsMonitoringPointToAnlaysisType" />
+          </AssociationSet>
+          <AssociationSet Name="FK__BemsMonitoringPoint__BemsServiceType" Association="Self.FK__BemsMonitoringPoint__BemsServiceType">
+            <End Role="BemsServiceType" EntitySet="BemsServiceType" />
+            <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
+          </AssociationSet>
+          <AssociationSet Name="FK__BemsMonitoringPoint__CmBuilding" Association="Self.FK__BemsMonitoringPoint__CmBuilding">
+            <End Role="CmBuilding" EntitySet="CmBuilding" />
+            <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
+          </AssociationSet>
+          <AssociationSet Name="FK__BemsMonitoringPoint__CmFloor" Association="Self.FK__BemsMonitoringPoint__CmFloor">
+            <End Role="CmFloor" EntitySet="CmFloor" />
+            <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
+          </AssociationSet>
+          <AssociationSet Name="FK__BemsMonitoringPoint__CmZone" Association="Self.FK__BemsMonitoringPoint__CmZone">
+            <End Role="CmZone" EntitySet="CmZone" />
+            <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
+          </AssociationSet>
+          <AssociationSet Name="FK__BemsMonitoringPointHistory15min__BemsMonitoringPoint" Association="Self.FK__BemsMonitoringPointHistory15min__BemsMonitoringPoint">
+            <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
+            <End Role="BemsMonitoringPointHistory15min" EntitySet="BemsMonitoringPointHistory15min" />
+          </AssociationSet>
+          <AssociationSet Name="FK__BemsMonitoringPointHistoryDaily__BemsMonitoringPoint" Association="Self.FK__BemsMonitoringPointHistoryDaily__BemsMonitoringPoint">
+            <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
+            <End Role="BemsMonitoringPointHistoryDaily" EntitySet="BemsMonitoringPointHistoryDaily" />
+          </AssociationSet>
+          <AssociationSet Name="FK__BemsMonitoringPointHistoryHourly__BemsMonitoringPoint" Association="Self.FK__BemsMonitoringPointHistoryHourly__BemsMonitoringPoint">
+            <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
+            <End Role="BemsMonitoringPointHistoryHourly" EntitySet="BemsMonitoringPointHistoryHourly" />
+          </AssociationSet>
+          <AssociationSet Name="FK__BemsMonitoringPointBaseData__BemsServiceType" Association="Self.FK__BemsMonitoringPointBaseData__BemsServiceType">
+            <End Role="BemsServiceType" EntitySet="BemsServiceType" />
+            <End Role="BemsMonitoringPointBaseData" EntitySet="BemsMonitoringPointBaseData" />
+          </AssociationSet>
+          <AssociationSet Name="FK_CmAnnouncement_CmBusinessField" Association="Self.FK_CmAnnouncement_CmBusinessField">
+            <End Role="CmBusinessField" EntitySet="CmBusinessField" />
+            <End Role="CmAnnouncement" EntitySet="CmAnnouncement" />
+          </AssociationSet>
+          <AssociationSet Name="FK_CmAnnouncement_CmFile" Association="Self.FK_CmAnnouncement_CmFile">
+            <End Role="CmFile" EntitySet="CmFile" />
+            <End Role="CmAnnouncement" EntitySet="CmAnnouncement" />
+          </AssociationSet>
+          <AssociationSet Name="FK_CmAnnouncement_CmUser" Association="Self.FK_CmAnnouncement_CmUser">
+            <End Role="CmUser" EntitySet="CmUser" />
+            <End Role="CmAnnouncement" EntitySet="CmAnnouncement" />
+          </AssociationSet>
+          <AssociationSet Name="FK__CmFloor__3CF40B7E" Association="Self.FK__CmFloor__3CF40B7E">
+            <End Role="CmBuilding" EntitySet="CmBuilding" />
+            <End Role="CmFloor" EntitySet="CmFloor" />
+          </AssociationSet>
+          <AssociationSet Name="FK__CmZone__CmBuilding" Association="Self.FK__CmZone__CmBuilding">
+            <End Role="CmBuilding" EntitySet="CmBuilding" />
+            <End Role="CmZone" EntitySet="CmZone" />
+          </AssociationSet>
+          <AssociationSet Name="FK_CmZoneTempHumiSet_CmBuilding" Association="Self.FK_CmZoneTempHumiSet_CmBuilding">
+            <End Role="CmBuilding" EntitySet="CmBuilding" />
+            <End Role="CmZoneTempHumiSet" EntitySet="CmZoneTempHumiSet" />
+          </AssociationSet>
+          <AssociationSet Name="FK__CmFacilityManual__7BE56230" Association="Self.FK__CmFacilityManual__7BE56230">
+            <End Role="CmBusinessField" EntitySet="CmBusinessField" />
+            <End Role="FmsFacilityManual" EntitySet="FmsFacilityManual" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsLicense__CmBusinessField" Association="Self.FK__FmsLicense__CmBusinessField">
+            <End Role="CmBusinessField" EntitySet="CmBusinessField" />
+            <End Role="FmsLicense" EntitySet="FmsLicense" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsMaterialCarriedForward__CmBusinessField" Association="Self.FK__FmsMaterialCarriedForward__CmBusinessField">
+            <End Role="CmBusinessField" EntitySet="CmBusinessField" />
+            <End Role="FmsMaterialCarriedForward" EntitySet="FmsMaterialCarriedForward" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsMaterialCodeLocation__CmBusinessField" Association="Self.FK__FmsMaterialCodeLocation__CmBusinessField">
+            <End Role="CmBusinessField" EntitySet="CmBusinessField" />
+            <End Role="FmsMaterialCodeLocation" EntitySet="FmsMaterialCodeLocation" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsMaterialOrder__CmBusinessField" Association="Self.FK__FmsMaterialOrder__CmBusinessField">
+            <End Role="CmBusinessField" EntitySet="CmBusinessField" />
+            <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsMaterialPurchasingRequest__CmBusinessField" Association="Self.FK__FmsMaterialPurchasingRequest__CmBusinessField">
+            <End Role="CmBusinessField" EntitySet="CmBusinessField" />
+            <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsMaterialStored__CmBusinessField" Association="Self.FK__FmsMaterialStored__CmBusinessField">
+            <End Role="CmBusinessField" EntitySet="CmBusinessField" />
+            <End Role="FmsMaterialStored" EntitySet="FmsMaterialStored" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsMaterialWarehouse__CmBusinessField" Association="Self.FK__FmsMaterialWarehouse__CmBusinessField">
+            <End Role="CmBusinessField" EntitySet="CmBusinessField" />
+            <End Role="FmsMaterialWarehouse" EntitySet="FmsMaterialWarehouse" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsWorkOrder__CmBusinessField" Association="Self.FK__FmsWorkOrder__CmBusinessField">
+            <End Role="CmBusinessField" EntitySet="CmBusinessField" />
+            <End Role="FmsWorkOrder" EntitySet="FmsWorkOrder" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsWorkRequest__CmBusinessField" Association="Self.FK__FmsWorkRequest__CmBusinessField">
+            <End Role="CmBusinessField" EntitySet="CmBusinessField" />
+            <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
+          </AssociationSet>
+          <AssociationSet Name="FK_CmUser_CmBusinessField" Association="Self.FK_CmUser_CmBusinessField">
+            <End Role="CmBusinessField" EntitySet="CmBusinessField" />
+            <End Role="CmUser" EntitySet="CmUser" />
+          </AssociationSet>
+          <AssociationSet Name="FK__CmCompany__345EC57D" Association="Self.FK__CmCompany__345EC57D">
+            <End Role="CmCompanyType" EntitySet="CmCompanyType" />
+            <End Role="CmCompany" EntitySet="CmCompany" />
+          </AssociationSet>
+          <AssociationSet Name="FK__CmDepartment__3552E9B6" Association="Self.FK__CmDepartment__3552E9B6">
+            <End Role="CmCompany" EntitySet="CmCompany" />
+            <End Role="CmDepartment" EntitySet="CmDepartment" />
+          </AssociationSet>
+          <AssociationSet Name="FK_CmUser_CmCompany" Association="Self.FK_CmUser_CmCompany">
+            <End Role="CmCompany" EntitySet="CmCompany" />
+            <End Role="CmUser" EntitySet="CmUser" />
+          </AssociationSet>
+          <AssociationSet Name="FK_CmUser_CmDepartment" Association="Self.FK_CmUser_CmDepartment">
+            <End Role="CmDepartment" EntitySet="CmDepartment" />
+            <End Role="CmUser" EntitySet="CmUser" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsAccident_CmDepartment" Association="Self.FK_FmsAccident_CmDepartment">
+            <End Role="CmDepartment" EntitySet="CmDepartment" />
+            <End Role="FmsAccident" EntitySet="FmsAccident" />
+          </AssociationSet>
+          <AssociationSet Name="FK__CmFacilityFile__CmFile" Association="Self.FK__CmFacilityFile__CmFile">
+            <End Role="CmFile" EntitySet="CmFile" />
+            <End Role="CmFacilityFile" EntitySet="CmFacilityFile" />
+          </AssociationSet>
+          <AssociationSet Name="FK__CmFile__CmFileCategory" Association="Self.FK__CmFile__CmFileCategory">
+            <End Role="CmFileCategory" EntitySet="CmFileCategory" />
+            <End Role="CmFile" EntitySet="CmFile" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsDrawingHistor__04DA9AE4" Association="Self.FK__FmsDrawingHistor__04DA9AE4">
+            <End Role="CmFile" EntitySet="CmFile" />
+            <End Role="FmsDrawingHistory" EntitySet="FmsDrawingHistory" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsMaterialPurchaseOrder__CmFile" Association="Self.FK__FmsMaterialPurchaseOrder__CmFile">
+            <End Role="CmFile" EntitySet="CmFile" />
+            <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsWorkResultFile__CmFile" Association="Self.FK__FmsWorkResultFile__CmFile">
+            <End Role="CmFile" EntitySet="CmFile" />
+            <End Role="FmsWorkResultFile" EntitySet="FmsWorkResultFile" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsAccident_CmFile1" Association="Self.FK_FmsAccident_CmFile1">
+            <End Role="CmFile" EntitySet="CmFile" />
+            <End Role="FmsAccident" EntitySet="FmsAccident" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsAccident_CmFile2" Association="Self.FK_FmsAccident_CmFile2">
+            <End Role="CmFile" EntitySet="CmFile" />
+            <End Role="FmsAccident" EntitySet="FmsAccident" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsAccident_CmFile3" Association="Self.FK_FmsAccident_CmFile3">
+            <End Role="CmFile" EntitySet="CmFile" />
+            <End Role="FmsAccident" EntitySet="FmsAccident" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsConstruction_CmFile1" Association="Self.FK_FmsConstruction_CmFile1">
+            <End Role="CmFile" EntitySet="CmFile" />
+            <End Role="FmsConstruction" EntitySet="FmsConstruction" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsConstruction_CmFile2" Association="Self.FK_FmsConstruction_CmFile2">
+            <End Role="CmFile" EntitySet="CmFile" />
+            <End Role="FmsConstruction" EntitySet="FmsConstruction" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsConstruction_CmFile3" Association="Self.FK_FmsConstruction_CmFile3">
+            <End Role="CmFile" EntitySet="CmFile" />
+            <End Role="FmsConstruction" EntitySet="FmsConstruction" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsManualHistory_CmFile" Association="Self.FK_FmsManualHistory_CmFile">
+            <End Role="CmFile" EntitySet="CmFile" />
+            <End Role="FmsManualHistory" EntitySet="FmsManualHistory" />
+          </AssociationSet>
+          <AssociationSet Name="FK__CmLocation__3DE82FB7" Association="Self.FK__CmLocation__3DE82FB7">
+            <End Role="CmFloor" EntitySet="CmFloor" />
+            <End Role="CmZone" EntitySet="CmZone" />
+          </AssociationSet>
+          <AssociationSet Name="FK_CmZoneTempHumiSet_CmFloor" Association="Self.FK_CmZoneTempHumiSet_CmFloor">
+            <End Role="CmFloor" EntitySet="CmFloor" />
+            <End Role="CmZoneTempHumiSet" EntitySet="CmZoneTempHumiSet" />
+          </AssociationSet>
+          <AssociationSet Name="FK_CmUser_CmPosition" Association="Self.FK_CmUser_CmPosition">
+            <End Role="CmPosition" EntitySet="CmPosition" />
+            <End Role="CmUser" EntitySet="CmUser" />
+          </AssociationSet>
+          <AssociationSet Name="FK__CmUserToLicense__CmUser" Association="Self.FK__CmUserToLicense__CmUser">
+            <End Role="CmUser" EntitySet="CmUser" />
+            <End Role="CmUserToLicense" EntitySet="CmUserToLicense" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsDrawingHistory__CmUser" Association="Self.FK__FmsDrawingHistory__CmUser">
+            <End Role="CmUser" EntitySet="CmUser" />
+            <End Role="FmsDrawingHistory" EntitySet="FmsDrawingHistory" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsMaterialOrder__CmUser" Association="Self.FK__FmsMaterialOrder__CmUser">
+            <End Role="CmUser" EntitySet="CmUser" />
+            <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsMaterialPurchaseRequest__CmUser_AsRequestUserId" Association="Self.FK__FmsMaterialPurchaseRequest__CmUser_AsRequestUserId">
+            <End Role="CmUser" EntitySet="CmUser" />
+            <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsMaterialPurchaseRequest__CmUser1_AsApprovalUserId" Association="Self.FK__FmsMaterialPurchaseRequest__CmUser1_AsApprovalUserId">
+            <End Role="CmUser" EntitySet="CmUser" />
+            <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsMaterialStored__CmUser_AsStoredUserId" Association="Self.FK__FmsMaterialStored__CmUser_AsStoredUserId">
+            <End Role="CmUser" EntitySet="CmUser" />
+            <End Role="FmsMaterialStored" EntitySet="FmsMaterialStored" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsMaterialStored__CmUser1_AsApprovalUserId" Association="Self.FK__FmsMaterialStored__CmUser1_AsApprovalUserId">
+            <End Role="CmUser" EntitySet="CmUser" />
+            <End Role="FmsMaterialStored" EntitySet="FmsMaterialStored" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsWorkOrder__CmUser" Association="Self.FK__FmsWorkOrder__CmUser">
+            <End Role="CmUser" EntitySet="CmUser" />
+            <End Role="FmsWorkOrder" EntitySet="FmsWorkOrder" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsWorkRequest__CmUser_AsRequestUserId" Association="Self.FK__FmsWorkRequest__CmUser_AsRequestUserId">
+            <End Role="CmUser" EntitySet="CmUser" />
+            <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsWorkRequest__CmUser1_AsRejectUserId" Association="Self.FK__FmsWorkRequest__CmUser1_AsRejectUserId">
+            <End Role="CmUser" EntitySet="CmUser" />
+            <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsWorkResult__CmUser_AsWorkerUserId" Association="Self.FK__FmsWorkResult__CmUser_AsWorkerUserId">
+            <End Role="CmUser" EntitySet="CmUser" />
+            <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsWorkResult__CmUser1_AsConfirmedUserId" Association="Self.FK__FmsWorkResult__CmUser1_AsConfirmedUserId">
+            <End Role="CmUser" EntitySet="CmUser" />
+            <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
+          </AssociationSet>
+          <AssociationSet Name="FK_CmUser_CmUserGroup" Association="Self.FK_CmUser_CmUserGroup">
+            <End Role="CmUserGroup" EntitySet="CmUserGroup" />
+            <End Role="CmUser" EntitySet="CmUser" />
+          </AssociationSet>
+          <AssociationSet Name="FK_CmUserLoginHistory_CmUser" Association="Self.FK_CmUserLoginHistory_CmUser">
+            <End Role="CmUser" EntitySet="CmUser" />
+            <End Role="CmUserLoginHistory" EntitySet="CmUserLoginHistory" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsConstructionEstimation_CmUser" Association="Self.FK_FmsConstructionEstimation_CmUser">
+            <End Role="CmUser" EntitySet="CmUser" />
+            <End Role="FmsConstructionEstimation" EntitySet="FmsConstructionEstimation" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsManualHistory_CmUser" Association="Self.FK_FmsManualHistory_CmUser">
+            <End Role="CmUser" EntitySet="CmUser" />
+            <End Role="FmsManualHistory" EntitySet="FmsManualHistory" />
+          </AssociationSet>
+          <AssociationSet Name="FK__CmUserGroupPermission__CmUserGroup" Association="Self.FK__CmUserGroupPermission__CmUserGroup">
+            <End Role="CmUserGroup" EntitySet="CmUserGroup" />
+            <End Role="CmUserGroupPermission" EntitySet="CmUserGroupPermission" />
+          </AssociationSet>
+          <AssociationSet Name="FK__CmUserToLicense__FmsLicense" Association="Self.FK__CmUserToLicense__FmsLicense">
+            <End Role="FmsLicense" EntitySet="FmsLicense" />
+            <End Role="CmUserToLicense" EntitySet="CmUserToLicense" />
+          </AssociationSet>
+          <AssociationSet Name="FK_CmZoneTempHumiSet_CmZone" Association="Self.FK_CmZoneTempHumiSet_CmZone">
+            <End Role="CmZone" EntitySet="CmZone" />
+            <End Role="CmZoneTempHumiSet" EntitySet="CmZoneTempHumiSet" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsAccident_FmsAccidentCodeType" Association="Self.FK_FmsAccident_FmsAccidentCodeType">
+            <End Role="FmsAccidentCodeType" EntitySet="FmsAccidentCodeType" />
+            <End Role="FmsAccident" EntitySet="FmsAccident" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsConstruction_FmsConstructionCodeProgress" Association="Self.FK_FmsConstruction_FmsConstructionCodeProgress">
+            <End Role="FmsConstructionCodeProgress" EntitySet="FmsConstructionCodeProgress" />
+            <End Role="FmsConstruction" EntitySet="FmsConstruction" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsConstruction_FmsConstructionCodeType" Association="Self.FK_FmsConstruction_FmsConstructionCodeType">
+            <End Role="FmsConstructionCodeType" EntitySet="FmsConstructionCodeType" />
+            <End Role="FmsConstruction" EntitySet="FmsConstruction" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsConstructionEstimation_FmsConstruction" Association="Self.FK_FmsConstructionEstimation_FmsConstruction">
+            <End Role="FmsConstruction" EntitySet="FmsConstruction" />
+            <End Role="FmsConstructionEstimation" EntitySet="FmsConstructionEstimation" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsDrawing__6E565CE8" Association="Self.FK__FmsDrawing__6E565CE8">
+            <End Role="FmsDrawingCodeGroup" EntitySet="FmsDrawingCodeGroup" />
+            <End Role="FmsDrawing" EntitySet="FmsDrawing" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsDrawing__6F4A8121" Association="Self.FK__FmsDrawing__6F4A8121">
+            <End Role="FmsDrawingCodeType" EntitySet="FmsDrawingCodeType" />
+            <End Role="FmsDrawing" EntitySet="FmsDrawing" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsDrawingHistor__7132C993" Association="Self.FK__FmsDrawingHistor__7132C993">
+            <End Role="FmsDrawing" EntitySet="FmsDrawing" />
+            <End Role="FmsDrawingHistory" EntitySet="FmsDrawingHistory" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsEquipmentHistory_FmsEquipmentCodeStateType" Association="Self.FK_FmsEquipmentHistory_FmsEquipmentCodeStateType">
+            <End Role="FmsEquipmentCodeStateType" EntitySet="FmsEquipmentCodeStateType" />
+            <End Role="FmsEquipmentHistory" EntitySet="FmsEquipmentHistory" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsFacilityCheckItem__FmsWorkCodeCycleUnit" Association="Self.FK__FmsFacilityCheckItem__FmsWorkCodeCycleUnit">
+            <End Role="FmsWorkCodeCycleUnit" EntitySet="FmsWorkCodeCycleUnit" />
+            <End Role="FmsFacilityCheckItem" EntitySet="FmsFacilityCheckItem" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsFacilityCheckItem__FmsWorkCodeWorkType" Association="Self.FK__FmsFacilityCheckItem__FmsWorkCodeWorkType">
+            <End Role="FmsWorkCodeType" EntitySet="FmsWorkCodeType" />
+            <End Role="FmsFacilityCheckItem" EntitySet="FmsFacilityCheckItem" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsWorkResultCheckItem__FmsFacilityCheckItem" Association="Self.FK__FmsWorkResultCheckItem__FmsFacilityCheckItem">
+            <End Role="FmsFacilityCheckItem" EntitySet="FmsFacilityCheckItem" />
+            <End Role="FmsWorkResultCheckItem" EntitySet="FmsWorkResultCheckItem" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsFacilityCodeClass__FmsFacilityCodeClass" Association="Self.FK__FmsFacilityCodeClass__FmsFacilityCodeClass">
+            <End Role="FmsFacilityCodeClass" EntitySet="FmsFacilityCodeClass" />
+            <End Role="FmsFacilityCodeClass1" EntitySet="FmsFacilityCodeClass" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsManual_FmsManualType" Association="Self.FK_FmsManual_FmsManualType">
+            <End Role="FmsManualType" EntitySet="FmsManualType" />
+            <End Role="FmsManual" EntitySet="FmsManual" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsManualHistory_FmsManual" Association="Self.FK_FmsManualHistory_FmsManual">
+            <End Role="FmsManual" EntitySet="FmsManual" />
+            <End Role="FmsManualHistory" EntitySet="FmsManualHistory" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsMaterialCodeClass__FmsMaterialCodeClass" Association="Self.FK__FmsMaterialCodeClass__FmsMaterialCodeClass">
+            <End Role="FmsMaterialCodeClass" EntitySet="FmsMaterialCodeClass" />
+            <End Role="FmsMaterialCodeClass1" EntitySet="FmsMaterialCodeClass" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsMaterialPurchasingRequest__FmsMaterialCodeProcess" Association="Self.FK__FmsMaterialPurchasingRequest__FmsMaterialCodeProcess">
+            <End Role="FmsMaterialCodeProgress" EntitySet="FmsMaterialCodeProgress" />
+            <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsMaterialPurchaseRequest_FmsMaterialCodePurchaseType" Association="Self.FK_FmsMaterialPurchaseRequest_FmsMaterialCodePurchaseType">
+            <End Role="FmsMaterialCodePurchaseType" EntitySet="FmsMaterialCodePurchaseType" />
+            <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsMaterialPurchaseOrder__FmsMaterialTradeCompany" Association="Self.FK__FmsMaterialPurchaseOrder__FmsMaterialTradeCompany">
+            <End Role="FmsMaterialTradeCompany" EntitySet="FmsMaterialTradeCompany" />
+            <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsMaterialPurchaseOrder_FmsMaterialPurchaseRequest" Association="Self.FK_FmsMaterialPurchaseOrder_FmsMaterialPurchaseRequest">
+            <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
+            <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsMaterialPurchaseOrderMaterial_FmsMaterialPurchaseOrder" Association="Self.FK_FmsMaterialPurchaseOrderMaterial_FmsMaterialPurchaseOrder">
+            <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
+            <End Role="FmsMaterialPurchaseOrderMaterial" EntitySet="FmsMaterialPurchaseOrderMaterial" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsMaterialStored_FmsMaterialPurchaseOrder" Association="Self.FK_FmsMaterialStored_FmsMaterialPurchaseOrder">
+            <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
+            <End Role="FmsMaterialStored" EntitySet="FmsMaterialStored" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsMaterialPurchaseRequestMaterial_FmsMaterialPurchaseRequest" Association="Self.FK_FmsMaterialPurchaseRequestMaterial_FmsMaterialPurchaseRequest">
+            <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
+            <End Role="FmsMaterialPurchaseRequestMaterial" EntitySet="FmsMaterialPurchaseRequestMaterial" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsMaterialStored_FmsMaterialWarehouse" Association="Self.FK_FmsMaterialStored_FmsMaterialWarehouse">
+            <End Role="FmsMaterialWarehouse" EntitySet="FmsMaterialWarehouse" />
+            <End Role="FmsMaterialStored" EntitySet="FmsMaterialStored" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsWorkResult__FmsWorkCodeCauseClass" Association="Self.FK__FmsWorkResult__FmsWorkCodeCauseClass">
+            <End Role="FmsWorkCodeCauseClass" EntitySet="FmsWorkCodeCauseClass" />
+            <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsWorkOrder__FmsWorkCodeEmergency" Association="Self.FK__FmsWorkOrder__FmsWorkCodeEmergency">
+            <End Role="FmsWorkCodeEmergency" EntitySet="FmsWorkCodeEmergency" />
+            <End Role="FmsWorkOrder" EntitySet="FmsWorkOrder" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsWorkRequest__FmsWorkCodeProgress" Association="Self.FK__FmsWorkRequest__FmsWorkCodeProgress">
+            <End Role="FmsWorkCodeProgress" EntitySet="FmsWorkCodeProgress" />
+            <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsWorkRequest__FmsWorkCodeWorkType" Association="Self.FK__FmsWorkRequest__FmsWorkCodeWorkType">
+            <End Role="FmsWorkCodeType" EntitySet="FmsWorkCodeType" />
+            <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsWorkOrder__FmsWorkRequest" Association="Self.FK__FmsWorkOrder__FmsWorkRequest">
+            <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
+            <End Role="FmsWorkOrder" EntitySet="FmsWorkOrder" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsWorkOrderToFacility__FmsWorkOrder" Association="Self.FK__FmsWorkOrderToFacility__FmsWorkOrder">
+            <End Role="FmsWorkOrder" EntitySet="FmsWorkOrder" />
+            <End Role="FmsWorkOrderToFacility" EntitySet="FmsWorkOrderToFacility" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsWorkResult__FmsWorkOrder" Association="Self.FK__FmsWorkResult__FmsWorkOrder">
+            <End Role="FmsWorkOrder" EntitySet="FmsWorkOrder" />
+            <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsWorkRequestToFacility__FmsWorkRequest" Association="Self.FK__FmsWorkRequestToFacility__FmsWorkRequest">
+            <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
+            <End Role="FmsWorkRequestToFacility" EntitySet="FmsWorkRequestToFacility" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsWorkResult__FmsWorkRequest" Association="Self.FK__FmsWorkResult__FmsWorkRequest">
+            <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
+            <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsWorkResultCheckItem__FmsWorkResult" Association="Self.FK__FmsWorkResultCheckItem__FmsWorkResult">
+            <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
+            <End Role="FmsWorkResultCheckItem" EntitySet="FmsWorkResultCheckItem" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsWorkResultFile__FmsWorkResult" Association="Self.FK__FmsWorkResultFile__FmsWorkResult">
+            <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
+            <End Role="FmsWorkResultFile" EntitySet="FmsWorkResultFile" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsWorkResultLaw__FmsWorkResult" Association="Self.FK__FmsWorkResultLaw__FmsWorkResult">
+            <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
+            <End Role="FmsWorkResultLaw" EntitySet="FmsWorkResultLaw" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsWorkResultToFacility__FmsWorkOrder" Association="Self.FK__FmsWorkResultToFacility__FmsWorkOrder">
+            <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
+            <End Role="FmsWorkResultToFacility" EntitySet="FmsWorkResultToFacility" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsWorkResultCheckItemMaterial_FmsWorkResultCheckItem" Association="Self.FK_FmsWorkResultCheckItemMaterial_FmsWorkResultCheckItem">
+            <End Role="FmsWorkResultCheckItem" EntitySet="FmsWorkResultCheckItem" />
+            <End Role="FmsWorkResultCheckItemMaterial" EntitySet="FmsWorkResultCheckItemMaterial" />
+          </AssociationSet>
+          <EntitySet Name="FmsDailyCheckReport" EntityType="iBemsModel.FmsDailyCheckReport" />
+          <EntitySet Name="FmsFacilityOperationReport" EntityType="iBemsModel.FmsFacilityOperationReport" />
+          <AssociationSet Name="FK_FmsDailyCheckReport_CmUser" Association="iBemsModel.FK_FmsDailyCheckReport_CmUser">
+            <End Role="CmUser" EntitySet="CmUser" />
+            <End Role="FmsDailyCheckReport" EntitySet="FmsDailyCheckReport" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsFacilityOperationReport_CmUser" Association="iBemsModel.FK_FmsFacilityOperationReport_CmUser">
+            <End Role="CmUser" EntitySet="CmUser" />
+            <End Role="FmsFacilityOperationReport" EntitySet="FmsFacilityOperationReport" />
+          </AssociationSet>
+          <EntitySet Name="FmsBudgetDetail" EntityType="iBemsModel.FmsBudgetDetail" />
+          <EntitySet Name="FmsBudgetDetailExecution" EntityType="iBemsModel.FmsBudgetDetailExecution" />
+          <AssociationSet Name="FK_FmsBudgetDetail_FmsBudget" Association="iBemsModel.FK_FmsBudgetDetail_FmsBudget">
+            <End Role="FmsBudget" EntitySet="FmsBudget" />
+            <End Role="FmsBudgetDetail" EntitySet="FmsBudgetDetail" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsBudgetDetail_FmsBudgetCodeClass" Association="iBemsModel.FK_FmsBudgetDetail_FmsBudgetCodeClass">
+            <End Role="FmsBudgetCodeClass" EntitySet="FmsBudgetCodeClass" />
+            <End Role="FmsBudgetDetail" EntitySet="FmsBudgetDetail" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsBudgetDetailExecution_FmsBudgetDetail" Association="iBemsModel.FK_FmsBudgetDetailExecution_FmsBudgetDetail">
+            <End Role="FmsBudgetDetail" EntitySet="FmsBudgetDetail" />
+            <End Role="FmsBudgetDetailExecution" EntitySet="FmsBudgetDetailExecution" />
+          </AssociationSet>
+          <EntitySet Name="FmsMonthlyReport" EntityType="iBemsModel.FmsMonthlyReport" />
+          <AssociationSet Name="FK_FmsMonthlyReport_CmUser" Association="iBemsModel.FK_FmsMonthlyReport_CmUser">
+            <End Role="CmUser" EntitySet="CmUser" />
+            <End Role="FmsMonthlyReport" EntitySet="FmsMonthlyReport" />
+          </AssociationSet>
+          <EntitySet Name="FmsInvestmentCost" EntityType="iBemsModel.FmsInvestmentCost" />
+          <EntitySet Name="CmHolidayWeekend" EntityType="iBemsModel.CmHolidayWeekend" />
+          <AssociationSet Name="FK_FmsAccident_CmCompany" Association="iBemsModel.FK_FmsAccident_CmCompany">
+            <End Role="CmCompany" EntitySet="CmCompany" />
+            <End Role="FmsAccident" EntitySet="FmsAccident" />
+          </AssociationSet>
+          <EntitySet Name="FmsMaterial" EntityType="iBemsModel.FmsMaterial" />
+          <EntitySet Name="FmsMaterialRelease" EntityType="iBemsModel.FmsMaterialRelease" />
+          <AssociationSet Name="FK_FmsMaterial_CmBusinessField" Association="iBemsModel.FK_FmsMaterial_CmBusinessField">
+            <End Role="CmBusinessField" EntitySet="CmBusinessField" />
+            <End Role="FmsMaterial" EntitySet="FmsMaterial" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsMaterialRelease_CmBusinessField" Association="iBemsModel.FK_FmsMaterialRelease_CmBusinessField">
+            <End Role="CmBusinessField" EntitySet="CmBusinessField" />
+            <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsMaterial_CmFile" Association="iBemsModel.FK_FmsMaterial_CmFile">
+            <End Role="CmFile" EntitySet="CmFile" />
+            <End Role="FmsMaterial" EntitySet="FmsMaterial" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsMaterialRelease_CmUser" Association="iBemsModel.FK_FmsMaterialRelease_CmUser">
+            <End Role="CmUser" EntitySet="CmUser" />
+            <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsMaterialRelease_CmUser1" Association="iBemsModel.FK_FmsMaterialRelease_CmUser1">
+            <End Role="CmUser" EntitySet="CmUser" />
+            <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsMaterial__FmsMaterialCodeClass_AsFirstClassId" Association="iBemsModel.FK__FmsMaterial__FmsMaterialCodeClass_AsFirstClassId">
+            <End Role="FmsMaterialCodeClass" EntitySet="FmsMaterialCodeClass" />
+            <End Role="FmsMaterial" EntitySet="FmsMaterial" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsMaterial__FmsMaterialCodeClass_AsSecondClassId" Association="iBemsModel.FK__FmsMaterial__FmsMaterialCodeClass_AsSecondClassId">
+            <End Role="FmsMaterialCodeClass" EntitySet="FmsMaterialCodeClass" />
+            <End Role="FmsMaterial" EntitySet="FmsMaterial" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsMaterial__FmsMaterialCodeClass_AsThirdClassId" Association="iBemsModel.FK__FmsMaterial__FmsMaterialCodeClass_AsThirdClassId">
+            <End Role="FmsMaterialCodeClass" EntitySet="FmsMaterialCodeClass" />
+            <End Role="FmsMaterial" EntitySet="FmsMaterial" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsMaterial_FmsMaterialCodeLocation" Association="iBemsModel.FK_FmsMaterial_FmsMaterialCodeLocation">
+            <End Role="FmsMaterialCodeLocation" EntitySet="FmsMaterialCodeLocation" />
+            <End Role="FmsMaterial" EntitySet="FmsMaterial" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsMaterial_FmsMaterialCodeType" Association="iBemsModel.FK_FmsMaterial_FmsMaterialCodeType">
+            <End Role="FmsMaterialCodeType" EntitySet="FmsMaterialCodeType" />
+            <End Role="FmsMaterial" EntitySet="FmsMaterial" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsMaterial_FmsMaterialTradeCompany" Association="iBemsModel.FK_FmsMaterial_FmsMaterialTradeCompany">
+            <End Role="FmsMaterialTradeCompany" EntitySet="FmsMaterialTradeCompany" />
+            <End Role="FmsMaterial" EntitySet="FmsMaterial" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsMaterial_FmsMaterialWarehouse" Association="iBemsModel.FK_FmsMaterial_FmsMaterialWarehouse">
+            <End Role="FmsMaterialWarehouse" EntitySet="FmsMaterialWarehouse" />
+            <End Role="FmsMaterial" EntitySet="FmsMaterial" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsMaterialPurchaseOrderMaterial_FmsMaterial" Association="iBemsModel.FK_FmsMaterialPurchaseOrderMaterial_FmsMaterial">
+            <End Role="FmsMaterial" EntitySet="FmsMaterial" />
+            <End Role="FmsMaterialPurchaseOrderMaterial" EntitySet="FmsMaterialPurchaseOrderMaterial" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsMaterialPurchaseRequestMaterial_FmsMaterial" Association="iBemsModel.FK_FmsMaterialPurchaseRequestMaterial_FmsMaterial">
+            <End Role="FmsMaterial" EntitySet="FmsMaterial" />
+            <End Role="FmsMaterialPurchaseRequestMaterial" EntitySet="FmsMaterialPurchaseRequestMaterial" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsMaterialRelease_FmsMaterial" Association="iBemsModel.FK_FmsMaterialRelease_FmsMaterial">
+            <End Role="FmsMaterial" EntitySet="FmsMaterial" />
+            <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsMaterialStored_FmsMaterial" Association="iBemsModel.FK_FmsMaterialStored_FmsMaterial">
+            <End Role="FmsMaterial" EntitySet="FmsMaterial" />
+            <End Role="FmsMaterialStored" EntitySet="FmsMaterialStored" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsWorkResultCheckItemMaterial_FmsMaterial" Association="iBemsModel.FK_FmsWorkResultCheckItemMaterial_FmsMaterial">
+            <End Role="FmsMaterial" EntitySet="FmsMaterial" />
+            <End Role="FmsWorkResultCheckItemMaterial" EntitySet="FmsWorkResultCheckItemMaterial" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsMaterialRelease_FmsMaterialCodeAdjustmentType" Association="iBemsModel.FK_FmsMaterialRelease_FmsMaterialCodeAdjustmentType">
+            <End Role="FmsMaterialCodeAdjustmentType" EntitySet="FmsMaterialCodeAdjustmentType" />
+            <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsMaterialRelease_FmsMaterialCodeReleaseType" Association="iBemsModel.FK_FmsMaterialRelease_FmsMaterialCodeReleaseType">
+            <End Role="FmsMaterialCodeReleaseType" EntitySet="FmsMaterialCodeReleaseType" />
+            <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsMaterialRelease_FmsWorkResult" Association="iBemsModel.FK_FmsMaterialRelease_FmsWorkResult">
+            <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
+            <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsWorkResultCheckItemMaterial_FmsWorkResult" Association="iBemsModel.FK_FmsWorkResultCheckItemMaterial_FmsWorkResult">
+            <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
+            <End Role="FmsWorkResultCheckItemMaterial" EntitySet="FmsWorkResultCheckItemMaterial" />
+          </AssociationSet>
+          <EntitySet Name="CmPatrolType" EntityType="iBemsModel.CmPatrolType" />
+          <EntitySet Name="CmPatrolGroup" EntityType="iBemsModel.CmPatrolGroup" />
+          <EntitySet Name="CmPatrolGroupUser" EntityType="iBemsModel.CmPatrolGroupUser" />
+          <AssociationSet Name="FK_CmPatrolGroupUser_CmPatrolGroup" Association="iBemsModel.FK_CmPatrolGroupUser_CmPatrolGroup">
+            <End Role="CmPatrolGroup" EntitySet="CmPatrolGroup" />
+            <End Role="CmPatrolGroupUser" EntitySet="CmPatrolGroupUser" />
+          </AssociationSet>
+          <AssociationSet Name="FK_CmPatrolGroupUser_CmUser" Association="iBemsModel.FK_CmPatrolGroupUser_CmUser">
+            <End Role="CmUser" EntitySet="CmUser" />
+            <End Role="CmPatrolGroupUser" EntitySet="CmPatrolGroupUser" />
+          </AssociationSet>
+          <EntitySet Name="CmPatrolPos" EntityType="iBemsModel.CmPatrolPos" />
+          <AssociationSet Name="FK_CmPatrolPos_CmBuilding" Association="iBemsModel.FK_CmPatrolPos_CmBuilding">
+            <End Role="CmBuilding" EntitySet="CmBuilding" />
+            <End Role="CmPatrolPos" EntitySet="CmPatrolPos" />
+          </AssociationSet>
+          <AssociationSet Name="FK_CmPatrolPos_CmFloor" Association="iBemsModel.FK_CmPatrolPos_CmFloor">
+            <End Role="CmFloor" EntitySet="CmFloor" />
+            <End Role="CmPatrolPos" EntitySet="CmPatrolPos" />
+          </AssociationSet>
+          <EntitySet Name="CmPatrolCourse" EntityType="iBemsModel.CmPatrolCourse" />
+          <EntitySet Name="CmPatrolCoursePos" EntityType="iBemsModel.CmPatrolCoursePos" />
+          <AssociationSet Name="FK_CmPatrolCoursePos_CmPatrolCourse" Association="iBemsModel.FK_CmPatrolCoursePos_CmPatrolCourse">
+            <End Role="CmPatrolCourse" EntitySet="CmPatrolCourse" />
+            <End Role="CmPatrolCoursePos" EntitySet="CmPatrolCoursePos" />
+          </AssociationSet>
+          <AssociationSet Name="FK_CmPatrolCoursePos_CmPatrolPos" Association="iBemsModel.FK_CmPatrolCoursePos_CmPatrolPos">
+            <End Role="CmPatrolPos" EntitySet="CmPatrolPos" />
+            <End Role="CmPatrolCoursePos" EntitySet="CmPatrolCoursePos" />
+          </AssociationSet>
+          <EntitySet Name="CmPatrolPlan" EntityType="iBemsModel.CmPatrolPlan" />
+          <AssociationSet Name="FK_CmPatrolPlan_CmPatrolCourse" Association="iBemsModel.FK_CmPatrolPlan_CmPatrolCourse">
+            <End Role="CmPatrolCourse" EntitySet="CmPatrolCourse" />
+            <End Role="CmPatrolPlan" EntitySet="CmPatrolPlan" />
+          </AssociationSet>
+          <AssociationSet Name="FK_CmPatrolPlan_CmPatrolGroup" Association="iBemsModel.FK_CmPatrolPlan_CmPatrolGroup">
+            <End Role="CmPatrolGroup" EntitySet="CmPatrolGroup" />
+            <End Role="CmPatrolPlan" EntitySet="CmPatrolPlan" />
+          </AssociationSet>
+          <EntitySet Name="CmPatrolHistoryPos" EntityType="iBemsModel.CmPatrolHistoryPos" />
+          <AssociationSet Name="FK_CmPatrolHistoryPos_CmPatrolPos" Association="iBemsModel.FK_CmPatrolHistoryPos_CmPatrolPos">
+            <End Role="CmPatrolPos" EntitySet="CmPatrolPos" />
+            <End Role="CmPatrolHistoryPos" EntitySet="CmPatrolHistoryPos" />
+          </AssociationSet>
+          <AssociationSet Name="FK_CmPatrolHistoryPos_CmPatrolType" Association="iBemsModel.FK_CmPatrolHistoryPos_CmPatrolType">
+            <End Role="CmPatrolType" EntitySet="CmPatrolType" />
+            <End Role="CmPatrolHistoryPos" EntitySet="CmPatrolHistoryPos" />
+          </AssociationSet>
+          <EntitySet Name="BemsPeakInfo" EntityType="iBemsModel.BemsPeakInfo" />
+          <EntitySet Name="BemsPeakHistory" EntityType="iBemsModel.BemsPeakHistory" />
+          <EntitySet Name="CmPatrolSchedule" EntityType="iBemsModel.CmPatrolSchedule" />
+          <AssociationSet Name="FK_CmPatrolSchedule_CmPatrolPlan" Association="iBemsModel.FK_CmPatrolSchedule_CmPatrolPlan">
+            <End Role="CmPatrolPlan" EntitySet="CmPatrolPlan" />
+            <End Role="CmPatrolSchedule" EntitySet="CmPatrolSchedule" />
+          </AssociationSet>
+          <EntitySet Name="BemsNoticePriceBase" EntityType="iBemsModel.BemsNoticePriceBase" />
+          <EntitySet Name="BemsNoticePriceContractType" EntityType="iBemsModel.BemsNoticePriceContractType" />
+          <EntitySet Name="BemsNoticePriceDetail" EntityType="iBemsModel.BemsNoticePriceDetail" />
+          <AssociationSet Name="FK__BemsNoticePriceBase__BemsNoticePriceContractType" Association="iBemsModel.FK__BemsNoticePriceBase__BemsNoticePriceContractType">
+            <End Role="BemsNoticePriceContractType" EntitySet="BemsNoticePriceContractType" />
+            <End Role="BemsNoticePriceBase" EntitySet="BemsNoticePriceBase" />
+          </AssociationSet>
+          <AssociationSet Name="FK__BemsNoticePriceDetail__BemsNoticePriceBase" Association="iBemsModel.FK__BemsNoticePriceDetail__BemsNoticePriceBase">
+            <End Role="BemsNoticePriceBase" EntitySet="BemsNoticePriceBase" />
+            <End Role="BemsNoticePriceDetail" EntitySet="BemsNoticePriceDetail" />
+          </AssociationSet>
+          <EntitySet Name="BemsPeakFacility" EntityType="iBemsModel.BemsPeakFacility" />
+          <EntitySet Name="CmSite" EntityType="iBemsModel.CmSite" />
+          <AssociationSet Name="FK_BemsPeakHIstory_CmSite" Association="iBemsModel.FK_BemsPeakHIstory_CmSite">
+            <End Role="CmSite" EntitySet="CmSite" />
+            <End Role="BemsPeakHistory" EntitySet="BemsPeakHistory" />
+          </AssociationSet>
+          <AssociationSet Name="FK_BemsPeakInfo_CmSite" Association="iBemsModel.FK_BemsPeakInfo_CmSite">
+            <End Role="CmSite" EntitySet="CmSite" />
+            <End Role="BemsPeakInfo" EntitySet="BemsPeakInfo" />
+          </AssociationSet>
+          <AssociationSet Name="FK__CmBuildin__SiteI__3BFFE745" Association="iBemsModel.FK__CmBuildin__SiteI__3BFFE745">
+            <End Role="CmSite" EntitySet="CmSite" />
+            <End Role="CmBuilding" EntitySet="CmBuilding" />
+          </AssociationSet>
+          <AssociationSet Name="FK__CmCompany__SiteI__336AA144" Association="iBemsModel.FK__CmCompany__SiteI__336AA144">
+            <End Role="CmSite" EntitySet="CmSite" />
+            <End Role="CmCompany" EntitySet="CmCompany" />
+          </AssociationSet>
+          <AssociationSet Name="FK_CmFacilityTempSet_CmSite" Association="iBemsModel.FK_CmFacilityTempSet_CmSite">
+            <End Role="CmSite" EntitySet="CmSite" />
+            <End Role="CmFacilityTempSet" EntitySet="CmFacilityTempSet" />
+          </AssociationSet>
+          <AssociationSet Name="FK__CmFile__SiteId__2759D01A" Association="iBemsModel.FK__CmFile__SiteId__2759D01A">
+            <End Role="CmSite" EntitySet="CmSite" />
+            <End Role="CmFile" EntitySet="CmFile" />
+          </AssociationSet>
+          <AssociationSet Name="FK__CmHoliday__SiteI__0BB1B5A5" Association="iBemsModel.FK__CmHoliday__SiteI__0BB1B5A5">
+            <End Role="CmSite" EntitySet="CmSite" />
+            <End Role="CmHoliday" EntitySet="CmHoliday" />
+          </AssociationSet>
+          <AssociationSet Name="FK__CmHoliday__SiteI__65AC084E" Association="iBemsModel.FK__CmHoliday__SiteI__65AC084E">
+            <End Role="CmSite" EntitySet="CmSite" />
+            <End Role="CmHoliday" EntitySet="CmHoliday" />
+          </AssociationSet>
+          <AssociationSet Name="FK__CmHoliday__SiteI__10766AC2" Association="iBemsModel.FK__CmHoliday__SiteI__10766AC2">
+            <End Role="CmSite" EntitySet="CmSite" />
+            <End Role="CmHolidayCustom" EntitySet="CmHolidayCustom" />
+          </AssociationSet>
+          <AssociationSet Name="FK__CmHoliday__SiteI__66A02C87" Association="iBemsModel.FK__CmHoliday__SiteI__66A02C87">
+            <End Role="CmSite" EntitySet="CmSite" />
+            <End Role="CmHolidayCustom" EntitySet="CmHolidayCustom" />
+          </AssociationSet>
+          <AssociationSet Name="FK__CmHoliday__SiteI__0D99FE17" Association="iBemsModel.FK__CmHoliday__SiteI__0D99FE17">
+            <End Role="CmSite" EntitySet="CmSite" />
+            <End Role="CmHolidayWeekend" EntitySet="CmHolidayWeekend" />
+          </AssociationSet>
+          <AssociationSet Name="FK_CmPatrolCourse_CmSite" Association="iBemsModel.FK_CmPatrolCourse_CmSite">
+            <End Role="CmSite" EntitySet="CmSite" />
+            <End Role="CmPatrolCourse" EntitySet="CmPatrolCourse" />
+          </AssociationSet>
+          <AssociationSet Name="FK_CmPatrolCoursePos_CmSite" Association="iBemsModel.FK_CmPatrolCoursePos_CmSite">
+            <End Role="CmSite" EntitySet="CmSite" />
+            <End Role="CmPatrolCoursePos" EntitySet="CmPatrolCoursePos" />
+          </AssociationSet>
+          <AssociationSet Name="FK_CmPatrolGroup_CmSite" Association="iBemsModel.FK_CmPatrolGroup_CmSite">
+            <End Role="CmSite" EntitySet="CmSite" />
+            <End Role="CmPatrolGroup" EntitySet="CmPatrolGroup" />
+          </AssociationSet>
+          <AssociationSet Name="FK_CmPatrolHistoryPos_CmSite" Association="iBemsModel.FK_CmPatrolHistoryPos_CmSite">
+            <End Role="CmSite" EntitySet="CmSite" />
+            <End Role="CmPatrolHistoryPos" EntitySet="CmPatrolHistoryPos" />
+          </AssociationSet>
+          <AssociationSet Name="FK_CmPatrolPlan_CmSite" Association="iBemsModel.FK_CmPatrolPlan_CmSite">
+            <End Role="CmSite" EntitySet="CmSite" />
+            <End Role="CmPatrolPlan" EntitySet="CmPatrolPlan" />
+          </AssociationSet>
+          <AssociationSet Name="FK_CmPatrolPos_CmSite" Association="iBemsModel.FK_CmPatrolPos_CmSite">
+            <End Role="CmSite" EntitySet="CmSite" />
+            <End Role="CmPatrolPos" EntitySet="CmPatrolPos" />
+          </AssociationSet>
+          <AssociationSet Name="FK_CmPatrolSchedule_CmSite" Association="iBemsModel.FK_CmPatrolSchedule_CmSite">
+            <End Role="CmSite" EntitySet="CmSite" />
+            <End Role="CmPatrolSchedule" EntitySet="CmPatrolSchedule" />
+          </AssociationSet>
+          <AssociationSet Name="FK_CmPatrolType_CmSite" Association="iBemsModel.FK_CmPatrolType_CmSite">
+            <End Role="CmSite" EntitySet="CmSite" />
+            <End Role="CmPatrolType" EntitySet="CmPatrolType" />
+          </AssociationSet>
+          <AssociationSet Name="FK__CmPositio__SiteI__6A70BD6B" Association="iBemsModel.FK__CmPositio__SiteI__6A70BD6B">
+            <End Role="CmSite" EntitySet="CmSite" />
+            <End Role="CmPosition" EntitySet="CmPosition" />
+          </AssociationSet>
+          <AssociationSet Name="FK__CmUserPos__SiteI__44952D46" Association="iBemsModel.FK__CmUserPos__SiteI__44952D46">
+            <End Role="CmSite" EntitySet="CmSite" />
+            <End Role="CmPosition" EntitySet="CmPosition" />
+          </AssociationSet>
+          <AssociationSet Name="FK__CmUserGro__SiteI__53D770D6" Association="iBemsModel.FK__CmUserGro__SiteI__53D770D6">
+            <End Role="CmSite" EntitySet="CmSite" />
+            <End Role="CmUserGroup" EntitySet="CmUserGroup" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsDrawin__SiteI__6B79F03D" Association="iBemsModel.FK__FmsDrawin__SiteI__6B79F03D">
+            <End Role="CmSite" EntitySet="CmSite" />
+            <End Role="FmsDrawingCodeGroup" EntitySet="FmsDrawingCodeGroup" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsDrawin__SiteI__6C6E1476" Association="iBemsModel.FK__FmsDrawin__SiteI__6C6E1476">
+            <End Role="CmSite" EntitySet="CmSite" />
+            <End Role="FmsDrawingCodeType" EntitySet="FmsDrawingCodeType" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsDrawin__SiteI__6D6238AF" Association="iBemsModel.FK__FmsDrawin__SiteI__6D6238AF">
+            <End Role="CmSite" EntitySet="CmSite" />
+            <End Role="FmsDrawing" EntitySet="FmsDrawing" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsDrawin__SiteI__6F357288" Association="iBemsModel.FK__FmsDrawin__SiteI__6F357288">
+            <End Role="CmSite" EntitySet="CmSite" />
+            <End Role="FmsDrawingCodeGroup" EntitySet="FmsDrawingCodeGroup" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsDrawin__SiteI__702996C1" Association="iBemsModel.FK__FmsDrawin__SiteI__702996C1">
+            <End Role="CmSite" EntitySet="CmSite" />
+            <End Role="FmsDrawingCodeType" EntitySet="FmsDrawingCodeType" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsFacilityCodeClass__CmSite" Association="iBemsModel.FK__FmsFacilityCodeClass__CmSite">
+            <End Role="CmSite" EntitySet="CmSite" />
+            <End Role="FmsFacilityCodeClass" EntitySet="FmsFacilityCodeClass" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsLicense__CmSite" Association="iBemsModel.FK__FmsLicense__CmSite">
+            <End Role="CmSite" EntitySet="CmSite" />
+            <End Role="FmsLicense" EntitySet="FmsLicense" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsMaterialCarriedForward__CmSite" Association="iBemsModel.FK__FmsMaterialCarriedForward__CmSite">
+            <End Role="CmSite" EntitySet="CmSite" />
+            <End Role="FmsMaterialCarriedForward" EntitySet="FmsMaterialCarriedForward" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsMaterialCodeClass__CmSite" Association="iBemsModel.FK__FmsMaterialCodeClass__CmSite">
+            <End Role="CmSite" EntitySet="CmSite" />
+            <End Role="FmsMaterialCodeClass" EntitySet="FmsMaterialCodeClass" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsMaterialCodeLocation__CmSite" Association="iBemsModel.FK__FmsMaterialCodeLocation__CmSite">
+            <End Role="CmSite" EntitySet="CmSite" />
+            <End Role="FmsMaterialCodeLocation" EntitySet="FmsMaterialCodeLocation" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsMaterialCodeType__CmSite" Association="iBemsModel.FK__FmsMaterialCodeType__CmSite">
+            <End Role="CmSite" EntitySet="CmSite" />
+            <End Role="FmsMaterialCodeType" EntitySet="FmsMaterialCodeType" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsMaterialOrder__CmSite" Association="iBemsModel.FK__FmsMaterialOrder__CmSite">
+            <End Role="CmSite" EntitySet="CmSite" />
+            <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsMaterialPurchasingRequest__CmSite" Association="iBemsModel.FK__FmsMaterialPurchasingRequest__CmSite">
+            <End Role="CmSite" EntitySet="CmSite" />
+            <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsMaterialStored__CmSite" Association="iBemsModel.FK__FmsMaterialStored__CmSite">
+            <End Role="CmSite" EntitySet="CmSite" />
+            <End Role="FmsMaterialStored" EntitySet="FmsMaterialStored" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsMaterialTradeCompany__CmSite" Association="iBemsModel.FK__FmsMaterialTradeCompany__CmSite">
+            <End Role="CmSite" EntitySet="CmSite" />
+            <End Role="FmsMaterialTradeCompany" EntitySet="FmsMaterialTradeCompany" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsMaterialWarehouse__CmSite" Association="iBemsModel.FK__FmsMaterialWarehouse__CmSite">
+            <End Role="CmSite" EntitySet="CmSite" />
+            <End Role="FmsMaterialWarehouse" EntitySet="FmsMaterialWarehouse" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsWorkCodeCauseClass__CmSite" Association="iBemsModel.FK__FmsWorkCodeCauseClass__CmSite">
+            <End Role="CmSite" EntitySet="CmSite" />
+            <End Role="FmsWorkCodeCauseClass" EntitySet="FmsWorkCodeCauseClass" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsWorkCodeCycleUnit__CmSite" Association="iBemsModel.FK__FmsWorkCodeCycleUnit__CmSite">
+            <End Role="CmSite" EntitySet="CmSite" />
+            <End Role="FmsWorkCodeCycleUnit" EntitySet="FmsWorkCodeCycleUnit" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsWorkCodeEmergency__CmSite" Association="iBemsModel.FK__FmsWorkCodeEmergency__CmSite">
+            <End Role="CmSite" EntitySet="CmSite" />
+            <End Role="FmsWorkCodeEmergency" EntitySet="FmsWorkCodeEmergency" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsWorkCodeHolidayWorkType__CmSite" Association="iBemsModel.FK__FmsWorkCodeHolidayWorkType__CmSite">
+            <End Role="CmSite" EntitySet="CmSite" />
+            <End Role="FmsWorkCodeHolidayWorkType" EntitySet="FmsWorkCodeHolidayWorkType" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsWorkCodeLegalInspectionAgency__CmSite" Association="iBemsModel.FK__FmsWorkCodeLegalInspectionAgency__CmSite">
+            <End Role="CmSite" EntitySet="CmSite" />
+            <End Role="FmsWorkCodeLegalInspectionAgency" EntitySet="FmsWorkCodeLegalInspectionAgency" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsWorkOrder__CmSite" Association="iBemsModel.FK__FmsWorkOrder__CmSite">
+            <End Role="CmSite" EntitySet="CmSite" />
+            <End Role="FmsWorkOrder" EntitySet="FmsWorkOrder" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsWorkRequest__CmSite" Association="iBemsModel.FK__FmsWorkRequest__CmSite">
+            <End Role="CmSite" EntitySet="CmSite" />
+            <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
+          </AssociationSet>
+          <AssociationSet Name="FK_CmZoneTempHumiSet_CmSite" Association="iBemsModel.FK_CmZoneTempHumiSet_CmSite">
+            <End Role="CmSite" EntitySet="CmSite" />
+            <End Role="CmZoneTempHumiSet" EntitySet="CmZoneTempHumiSet" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsMaterial_CmSite" Association="iBemsModel.FK_FmsMaterial_CmSite">
+            <End Role="CmSite" EntitySet="CmSite" />
+            <End Role="FmsMaterial" EntitySet="FmsMaterial" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsMaterialRelease_CmSite" Association="iBemsModel.FK_FmsMaterialRelease_CmSite">
+            <End Role="CmSite" EntitySet="CmSite" />
+            <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
+          </AssociationSet>
+          <EntitySet Name="FmsReport" EntityType="iBemsModel.FmsReport" />
+          <AssociationSet Name="FK_FmsReport_CmBusinessField" Association="iBemsModel.FK_FmsReport_CmBusinessField">
+            <End Role="CmBusinessField" EntitySet="CmBusinessField" />
+            <End Role="FmsReport" EntitySet="FmsReport" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsReport_CmFile" Association="iBemsModel.FK_FmsReport_CmFile">
+            <End Role="CmFile" EntitySet="CmFile" />
+            <End Role="FmsReport" EntitySet="FmsReport" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsReport_CmSite" Association="iBemsModel.FK_FmsReport_CmSite">
+            <End Role="CmSite" EntitySet="CmSite" />
+            <End Role="FmsReport" EntitySet="FmsReport" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsReport_CmUser" Association="iBemsModel.FK_FmsReport_CmUser">
+            <End Role="CmUser" EntitySet="CmUser" />
+            <End Role="FmsReport" EntitySet="FmsReport" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsReport_CmUser1" Association="iBemsModel.FK_FmsReport_CmUser1">
+            <End Role="CmUser" EntitySet="CmUser" />
+            <End Role="FmsReport" EntitySet="FmsReport" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsReport_CmUser2" Association="iBemsModel.FK_FmsReport_CmUser2">
+            <End Role="CmUser" EntitySet="CmUser" />
+            <End Role="FmsReport" EntitySet="FmsReport" />
+          </AssociationSet>
+          <EntitySet Name="CmServiceEnergyCalcMonth" EntityType="iBemsModel.CmServiceEnergyCalcMonth" />
+          <EntitySet Name="CmServiceEnergyCalcDay" EntityType="iBemsModel.CmServiceEnergyCalcDay" />
+          <EntitySet Name="CmPatrolHistory" EntityType="iBemsModel.CmPatrolHistory" />
+          <AssociationSet Name="FK_CmPatrolHistory_CmPatrolSchedule" Association="iBemsModel.FK_CmPatrolHistory_CmPatrolSchedule">
+            <End Role="CmPatrolSchedule" EntitySet="CmPatrolSchedule" />
+            <End Role="CmPatrolHistory" EntitySet="CmPatrolHistory" />
+          </AssociationSet>
+          <AssociationSet Name="FK_CmPatrolHistory_CmPatrolType" Association="iBemsModel.FK_CmPatrolHistory_CmPatrolType">
+            <End Role="CmPatrolType" EntitySet="CmPatrolType" />
+            <End Role="CmPatrolHistory" EntitySet="CmPatrolHistory" />
+          </AssociationSet>
+          <AssociationSet Name="FK_CmPatrolHistory_CmSite" Association="iBemsModel.FK_CmPatrolHistory_CmSite">
+            <End Role="CmSite" EntitySet="CmSite" />
+            <End Role="CmPatrolHistory" EntitySet="CmPatrolHistory" />
+          </AssociationSet>
+	  
+	  <EntitySet Name="CmMenu" EntityType="iBemsModel.CmMenu" />
+	  <EntitySet Name="BemsChartInfo" EntityType="iBemsModel.BemsChartInfo" />
+          <EntitySet Name="BemsReportFormat" EntityType="iBemsModel.BemsReportFormat" />
+          <EntitySet Name="FmsWorkSchedule" EntityType="iBemsModel.FmsWorkSchedule" />
+	  <AssociationSet Name="FK_CmMenu_CmSite" Association="iBemsModel.FK_CmMenu_CmSite">
+            <End Role="CmSite" EntitySet="CmSite" />
+            <End Role="CmMenu" EntitySet="CmMenu" />
+          </AssociationSet>
+	  <AssociationSet Name="FK_BemsChartInfo_BemsFacilityType" Association="iBemsModel.FK_BemsChartInfo_BemsFacilityType">
+            <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
+            <End Role="BemsChartInfo" EntitySet="BemsChartInfo" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsWorkSchedule__CmBusinessField" Association="iBemsModel.FK__FmsWorkSchedule__CmBusinessField">
+            <End Role="CmBusinessField" EntitySet="CmBusinessField" />
+            <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsWorkSchedule__CmUser" Association="iBemsModel.FK__FmsWorkSchedule__CmUser">
+            <End Role="CmUser" EntitySet="CmUser" />
+            <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsWorkSchedule__FmsWorkCodeCycleUnit" Association="iBemsModel.FK__FmsWorkSchedule__FmsWorkCodeCycleUnit">
+            <End Role="FmsWorkCodeCycleUnit" EntitySet="FmsWorkCodeCycleUnit" />
+            <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsWorkSchedule__FmsWorkCodeHolidayWorkType" Association="iBemsModel.FK__FmsWorkSchedule__FmsWorkCodeHolidayWorkType">
+            <End Role="FmsWorkCodeHolidayWorkType" EntitySet="FmsWorkCodeHolidayWorkType" />
+            <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsWorkSchedule__FmsWorkCodeWorkType" Association="iBemsModel.FK__FmsWorkSchedule__FmsWorkCodeWorkType">
+            <End Role="FmsWorkCodeType" EntitySet="FmsWorkCodeType" />
+            <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsWorkRequest__FmsWorkSchedule" Association="iBemsModel.FK__FmsWorkRequest__FmsWorkSchedule">
+            <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
+            <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsWorkScheduleToFacility__FmsWorkSchedule" Association="iBemsModel.FK__FmsWorkScheduleToFacility__FmsWorkSchedule">
+            <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
+            <End Role="FmsWorkScheduleToFacility" EntitySet="FmsWorkScheduleToFacility" />
+          </AssociationSet>
+	  <AssociationSet Name="FK_FmsWorkResultCheckItem_CmFile" Association="iBemsModel.FK_FmsWorkResultCheckItem_CmFile">
+            <End Role="CmFile" EntitySet="CmFile" />
+            <End Role="FmsWorkResultCheckItem" EntitySet="FmsWorkResultCheckItem" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsWorkResultCheckItem_CmFile1" Association="iBemsModel.FK_FmsWorkResultCheckItem_CmFile1">
+            <End Role="CmFile" EntitySet="CmFile" />
+            <End Role="FmsWorkResultCheckItem" EntitySet="FmsWorkResultCheckItem" />
+          </AssociationSet>
+	  <AssociationSet Name="FK_BemsChartInfo_CmSite" Association="iBemsModel.FK_BemsChartInfo_CmSite">
+            <End Role="CmSite" EntitySet="CmSite" />
+            <End Role="BemsChartInfo" EntitySet="BemsChartInfo" />
+          </AssociationSet>
+          <EntitySet Name="BemsPeopleIncrease" EntityType="iBemsModel.BemsPeopleIncrease" />
+          <EntitySet Name="BemsPriceCode" EntityType="iBemsModel.BemsPriceCode" />
+          <EntitySet Name="BemsPriceFormula" EntityType="iBemsModel.BemsPriceFormula" />
+          <EntitySet Name="BemsPriceMeta" EntityType="iBemsModel.BemsPriceMeta" />
+          <EntitySet Name="BemsPriceType" EntityType="iBemsModel.BemsPriceType" />
+          <EntitySet Name="BemsRentalRate" EntityType="iBemsModel.BemsRentalRate" />
+          <EntitySet Name="BemsSitePrice" EntityType="iBemsModel.BemsSitePrice" />
+          <EntitySet Name="BemsSitePriceHistory" EntityType="iBemsModel.BemsSitePriceHistory" />
+          <AssociationSet Name="FK_BemsPriceFormula_BemsFormula" Association="iBemsModel.FK_BemsPriceFormula_BemsFormula">
+            <End Role="BemsFormula" EntitySet="BemsFormula" />
+            <End Role="BemsPriceFormula" EntitySet="BemsPriceFormula" />
+          </AssociationSet>
+          <AssociationSet Name="FK_BemsPeopleIncrease_CmSite" Association="iBemsModel.FK_BemsPeopleIncrease_CmSite">
+            <End Role="CmSite" EntitySet="CmSite" />
+            <End Role="BemsPeopleIncrease" EntitySet="BemsPeopleIncrease" />
+          </AssociationSet>
+          <AssociationSet Name="FK_BemsSitePrice_BemsPriceCode" Association="iBemsModel.FK_BemsSitePrice_BemsPriceCode">
+            <End Role="BemsPriceCode" EntitySet="BemsPriceCode" />
+            <End Role="BemsSitePrice" EntitySet="BemsSitePrice" />
+          </AssociationSet>
+          <AssociationSet Name="FK_BemsSitePriceHistory_BemsPriceCode" Association="iBemsModel.FK_BemsSitePriceHistory_BemsPriceCode">
+            <End Role="BemsPriceCode" EntitySet="BemsPriceCode" />
+            <End Role="BemsSitePriceHistory" EntitySet="BemsSitePriceHistory" />
+          </AssociationSet>
+          <AssociationSet Name="FK_BemsPriceFormula_BemsPriceType" Association="iBemsModel.FK_BemsPriceFormula_BemsPriceType">
+            <End Role="BemsPriceType" EntitySet="BemsPriceType" />
+            <End Role="BemsPriceFormula" EntitySet="BemsPriceFormula" />
+          </AssociationSet>
+          <AssociationSet Name="FK_BemsPriceMeta_BemsPriceType" Association="iBemsModel.FK_BemsPriceMeta_BemsPriceType">
+            <End Role="BemsPriceType" EntitySet="BemsPriceType" />
+            <End Role="BemsPriceMeta" EntitySet="BemsPriceMeta" />
+          </AssociationSet>
+          <AssociationSet Name="FK_BemsSitePriceHistory_BemsPriceType" Association="iBemsModel.FK_BemsSitePriceHistory_BemsPriceType">
+            <End Role="BemsPriceType" EntitySet="BemsPriceType" />
+            <End Role="BemsSitePriceHistory" EntitySet="BemsSitePriceHistory" />
+          </AssociationSet>
+          <AssociationSet Name="FK_BemsRentalRate_CmSite" Association="iBemsModel.FK_BemsRentalRate_CmSite">
+            <End Role="CmSite" EntitySet="CmSite" />
+            <End Role="BemsRentalRate" EntitySet="BemsRentalRate" />
+          </AssociationSet>
+          <AssociationSet Name="FK_BemsSitePrice_CmSite1" Association="iBemsModel.FK_BemsSitePrice_CmSite1">
+            <End Role="CmSite" EntitySet="CmSite" />
+            <End Role="BemsSitePrice" EntitySet="BemsSitePrice" />
+          </AssociationSet>
+          <AssociationSet Name="FK_BemsSitePriceHistory_CmSite" Association="iBemsModel.FK_BemsSitePriceHistory_CmSite">
+            <End Role="CmSite" EntitySet="CmSite" />
+            <End Role="BemsSitePriceHistory" EntitySet="BemsSitePriceHistory" />
+          </AssociationSet>
+          <AssociationSet Name="FK_BemsSitePrice_BemsPriceType" Association="iBemsModel.FK_BemsSitePrice_BemsPriceType">
+            <End Role="BemsPriceType" EntitySet="BemsPriceType" />
+            <End Role="BemsSitePrice" EntitySet="BemsSitePrice" />
+          </AssociationSet>
+          <EntitySet Name="BemsMonitoringPointConfig" EntityType="iBemsModel.BemsMonitoringPointConfig" />
+          <AssociationSet Name="FK_BemsMonitoringPointConfig_BemsFacilityType1" Association="iBemsModel.FK_BemsMonitoringPointConfig_BemsFacilityType1">
+            <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
+            <End Role="BemsMonitoringPointConfig" EntitySet="BemsMonitoringPointConfig" />
+          </AssociationSet>
+          <AssociationSet Name="FK_BemsMonitoringPointConfig_BemsMonitoringPoint" Association="iBemsModel.FK_BemsMonitoringPointConfig_BemsMonitoringPoint">
+            <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
+            <End Role="BemsMonitoringPointConfig" EntitySet="BemsMonitoringPointConfig" />
+          </AssociationSet>
+          <EntitySet Name="BemsAlarmSetting" EntityType="iBemsModel.BemsAlarmSetting" />
+          <AssociationSet Name="FK_BemsAlarmSetting_BemsFacilityType" Association="iBemsModel.FK_BemsAlarmSetting_BemsFacilityType">
+            <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
+            <End Role="BemsAlarmSetting" EntitySet="BemsAlarmSetting" />
+          </AssociationSet>
+          <AssociationSet Name="FK_BemsAlarmSetting_CmSite1" Association="iBemsModel.FK_BemsAlarmSetting_CmSite1">
+            <End Role="CmSite" EntitySet="CmSite" />
+            <End Role="BemsAlarmSetting" EntitySet="BemsAlarmSetting" />
+          </AssociationSet>
+          <EntitySet Name="BemsAlarmLog" EntityType="iBemsModel.BemsAlarmLog" />
+          <AssociationSet Name="FK_BemsAlarmLog_BemsAlarmSetting" Association="iBemsModel.FK_BemsAlarmLog_BemsAlarmSetting">
+            <End Role="BemsAlarmSetting" EntitySet="BemsAlarmSetting" />
+            <End Role="BemsAlarmLog" EntitySet="BemsAlarmLog" />
+          </AssociationSet>
+          <EntitySet Name="BemsAlarmGroup" EntityType="iBemsModel.BemsAlarmGroup" />
+          <EntitySet Name="BemsAlarmGroupUser" EntityType="iBemsModel.BemsAlarmGroupUser" />
+          <EntitySet Name="BemsEnergyCost" EntityType="iBemsModel.BemsEnergyCost" />
+          <EntitySet Name="BemsEnergyConfigPercentMonth" EntityType="iBemsModel.BemsEnergyConfigPercentMonth" />
+          <EntitySet Name="BemsEnergyConfigPercentWeek" EntityType="iBemsModel.BemsEnergyConfigPercentWeek" />
+          <AssociationSet Name="FK__BemsEnerg__SiteI__7954A4F6" Association="iBemsModel.FK__BemsEnerg__SiteI__7954A4F6">
+            <End Role="CmSite" EntitySet="CmSite" />
+            <End Role="BemsEnergyConfigPercentMonth" EntitySet="BemsEnergyConfigPercentMonth" />
+          </AssociationSet>
+          <AssociationSet Name="FK__BemsEnerg__SiteI__7C3111A1" Association="iBemsModel.FK__BemsEnerg__SiteI__7C3111A1">
+            <End Role="CmSite" EntitySet="CmSite" />
+            <End Role="BemsEnergyConfigPercentWeek" EntitySet="BemsEnergyConfigPercentWeek" />
+          </AssociationSet>
+          <EntitySet Name="BemsEnergyDaily" EntityType="iBemsModel.BemsEnergyDaily" />
+          <AssociationSet Name="FK__BemsEnergyDaily__BemsServiceType" Association="iBemsModel.FK__BemsEnergyDaily__BemsServiceType">
+            <End Role="BemsServiceType" EntitySet="BemsServiceType" />
+            <End Role="BemsEnergyDaily" EntitySet="BemsEnergyDaily" />
+          </AssociationSet>
+          <AssociationSet Name="FK__BemsEnergyDaily__CmBuilding" Association="iBemsModel.FK__BemsEnergyDaily__CmBuilding">
+            <End Role="CmBuilding" EntitySet="CmBuilding" />
+            <End Role="BemsEnergyDaily" EntitySet="BemsEnergyDaily" />
+          </AssociationSet>
+          <EntitySet Name="BemsEnergyDailyRegression" EntityType="iBemsModel.BemsEnergyDailyRegression" />
+          <AssociationSet Name="FK_BemsEnergyDailyRegression_CmSite" Association="iBemsModel.FK_BemsEnergyDailyRegression_CmSite">
+            <End Role="CmSite" EntitySet="CmSite" />
+            <End Role="BemsEnergyDailyRegression" EntitySet="BemsEnergyDailyRegression" />
+          </AssociationSet>
+          <EntitySet Name="WeatherDongNaeForecast" EntityType="iBemsModel.WeatherDongNaeForecast" />
+          <EntitySet Name="FmsEquipmentRentInfo" EntityType="iBemsModel.FmsEquipmentRentInfo" />
+          <AssociationSet Name="FK_FmsEquipmentRentInfo_CmUser" Association="iBemsModel.FK_FmsEquipmentRentInfo_CmUser">
+            <End Role="CmUser" EntitySet="CmUser" />
+            <End Role="FmsEquipmentRentInfo" EntitySet="FmsEquipmentRentInfo" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsEquipmentRentInfo_CmUser1" Association="iBemsModel.FK_FmsEquipmentRentInfo_CmUser1">
+            <End Role="CmUser" EntitySet="CmUser" />
+            <End Role="FmsEquipmentRentInfo" EntitySet="FmsEquipmentRentInfo" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsEquipmentRentInfo_FmsEquipmentCodeStateType" Association="iBemsModel.FK_FmsEquipmentRentInfo_FmsEquipmentCodeStateType">
+            <End Role="FmsEquipmentCodeStateType" EntitySet="FmsEquipmentCodeStateType" />
+            <End Role="FmsEquipmentRentInfo" EntitySet="FmsEquipmentRentInfo" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsEquipmentHistory_FmsEquipmentRentInfo" Association="iBemsModel.FK_FmsEquipmentHistory_FmsEquipmentRentInfo">
+            <End Role="FmsEquipmentRentInfo" EntitySet="FmsEquipmentRentInfo" />
+            <End Role="FmsEquipmentHistory" EntitySet="FmsEquipmentHistory" />
+          </AssociationSet>
+          <EntitySet Name="BemsControlAHUTempConfig" EntityType="iBemsModel.BemsControlAHUTempConfig" />
+          <EntitySet Name="BemsFuelType" EntityType="iBemsModel.BemsFuelType" />
+          <AssociationSet Name="FK__BemsEnergyDaily__BemsFuelType" Association="iBemsModel.FK__BemsEnergyDaily__BemsFuelType">
+            <End Role="BemsFuelType" EntitySet="BemsFuelType" />
+            <End Role="BemsEnergyDaily" EntitySet="BemsEnergyDaily" />
+          </AssociationSet>
+          <AssociationSet Name="FK__BemsFactorCo2__BemsFuelType" Association="iBemsModel.FK__BemsFactorCo2__BemsFuelType">
+            <End Role="BemsFuelType" EntitySet="BemsFuelType" />
+            <End Role="BemsFactorCo2" EntitySet="BemsFactorCo2" />
+          </AssociationSet>
+          <AssociationSet Name="FK__BemsFactorToe__BemsFuelType" Association="iBemsModel.FK__BemsFactorToe__BemsFuelType">
+            <End Role="BemsFuelType" EntitySet="BemsFuelType" />
+            <End Role="BemsFactorToe" EntitySet="BemsFactorToe" />
+          </AssociationSet>
+          <AssociationSet Name="FK__BemsMonitoringPoint__BemsFuelType" Association="iBemsModel.FK__BemsMonitoringPoint__BemsFuelType">
+            <End Role="BemsFuelType" EntitySet="BemsFuelType" />
+            <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
+          </AssociationSet>
+          <AssociationSet Name="FK__BemsMonitoringPointBaseData__BemsFuelType" Association="iBemsModel.FK__BemsMonitoringPointBaseData__BemsFuelType">
+            <End Role="BemsFuelType" EntitySet="BemsFuelType" />
+            <End Role="BemsMonitoringPointBaseData" EntitySet="BemsMonitoringPointBaseData" />
+          </AssociationSet>
+          <AssociationSet Name="FK__BemsNoticePriceContractType__BemsFuelType" Association="iBemsModel.FK__BemsNoticePriceContractType__BemsFuelType">
+            <End Role="BemsFuelType" EntitySet="BemsFuelType" />
+            <End Role="BemsNoticePriceContractType" EntitySet="BemsNoticePriceContractType" />
+          </AssociationSet>
+          <AssociationSet Name="FK_BemsPriceCode_BemsFuelType" Association="iBemsModel.FK_BemsPriceCode_BemsFuelType">
+            <End Role="BemsFuelType" EntitySet="BemsFuelType" />
+            <End Role="BemsPriceCode" EntitySet="BemsPriceCode" />
+          </AssociationSet>
+          <AssociationSet Name="FK_BemsPriceType_BemsFuelType1" Association="iBemsModel.FK_BemsPriceType_BemsFuelType1">
+            <End Role="BemsFuelType" EntitySet="BemsFuelType" />
+            <End Role="BemsPriceType" EntitySet="BemsPriceType" />
+          </AssociationSet>
+          <AssociationSet Name="FK_BemsSitePrice_BemsFuelType" Association="iBemsModel.FK_BemsSitePrice_BemsFuelType">
+            <End Role="BemsFuelType" EntitySet="BemsFuelType" />
+            <End Role="BemsSitePrice" EntitySet="BemsSitePrice" />
+          </AssociationSet>
+          <AssociationSet Name="FK_BemsSitePriceHistory_BemsFuelType" Association="iBemsModel.FK_BemsSitePriceHistory_BemsFuelType">
+            <End Role="BemsFuelType" EntitySet="BemsFuelType" />
+            <End Role="BemsSitePriceHistory" EntitySet="BemsSitePriceHistory" />
+          </AssociationSet>
+          <EntitySet Name="CmFacility" EntityType="iBemsModel.CmFacility" />
+          <AssociationSet Name="FK_BemsAlarmSetting_CmFacility" Association="iBemsModel.FK_BemsAlarmSetting_CmFacility">
+            <End Role="CmFacility" EntitySet="CmFacility" />
+            <End Role="BemsAlarmSetting" EntitySet="BemsAlarmSetting" />
+          </AssociationSet>
+          <AssociationSet Name="FK_BemsEnergyCost_CmFacility" Association="iBemsModel.FK_BemsEnergyCost_CmFacility">
+            <End Role="CmFacility" EntitySet="CmFacility" />
+            <End Role="BemsEnergyCost" EntitySet="BemsEnergyCost" />
+          </AssociationSet>
+          <AssociationSet Name="FK__CmFacility__BemsFacilityType" Association="iBemsModel.FK__CmFacility__BemsFacilityType">
+            <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
+            <End Role="CmFacility" EntitySet="CmFacility" />
+          </AssociationSet>
+          <AssociationSet Name="FK_BemsFormulaParameter_CmFacility" Association="iBemsModel.FK_BemsFormulaParameter_CmFacility">
+            <End Role="CmFacility" EntitySet="CmFacility" />
+            <End Role="BemsFormulaParameter" EntitySet="BemsFormulaParameter" />
+          </AssociationSet>
+	  <AssociationSet Name="FK_CmFacility_BemsFuelType" Association="iBemsModel.FK_CmFacility_BemsFuelType">
+            <End Role="BemsFuelType" EntitySet="BemsFuelType" />
+            <End Role="CmFacility" EntitySet="CmFacility" />
+          </AssociationSet>
+          <AssociationSet Name="FK_BemsMonitoringPoint_CmFacility" Association="iBemsModel.FK_BemsMonitoringPoint_CmFacility">
+            <End Role="CmFacility" EntitySet="CmFacility" />
+            <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
+          </AssociationSet>
+          <AssociationSet Name="FK_CmFacility_BemsNoticePriceContractType" Association="iBemsModel.FK_CmFacility_BemsNoticePriceContractType">
+            <End Role="BemsNoticePriceContractType" EntitySet="BemsNoticePriceContractType" />
+            <End Role="CmFacility" EntitySet="CmFacility" />
+          </AssociationSet>
+          <AssociationSet Name="FK_BemsPeakFacility_CmFacility" Association="iBemsModel.FK_BemsPeakFacility_CmFacility">
+            <End Role="CmFacility" EntitySet="CmFacility" />
+            <End Role="BemsPeakFacility" EntitySet="BemsPeakFacility" />
+          </AssociationSet>
+          <AssociationSet Name="FK__CmFacility__CmBuilding" Association="iBemsModel.FK__CmFacility__CmBuilding">
+            <End Role="CmBuilding" EntitySet="CmBuilding" />
+            <End Role="CmFacility" EntitySet="CmFacility" />
+          </AssociationSet>
+          <AssociationSet Name="FK__CmFacility__74444068" Association="iBemsModel.FK__CmFacility__74444068">
+            <End Role="CmFloor" EntitySet="CmFloor" />
+            <End Role="CmFacility" EntitySet="CmFacility" />
+          </AssociationSet>
+          <AssociationSet Name="FK__CmFacility__753864A1" Association="iBemsModel.FK__CmFacility__753864A1">
+            <End Role="CmUser" EntitySet="CmUser" />
+            <End Role="CmFacility" EntitySet="CmFacility" />
+          </AssociationSet>
+          <AssociationSet Name="FK__CmFacility__762C88DA" Association="iBemsModel.FK__CmFacility__762C88DA">
+            <End Role="CmUser" EntitySet="CmUser" />
+            <End Role="CmFacility" EntitySet="CmFacility" />
+          </AssociationSet>
+          <AssociationSet Name="FK__CmFacility__CmFacility" Association="iBemsModel.FK__CmFacility__CmFacility">
+            <End Role="CmFacility" EntitySet="CmFacility" />
+            <End Role="CmFacility1" EntitySet="CmFacility" />
+          </AssociationSet>
+          <AssociationSet Name="FK__CmFacility__CmFile" Association="iBemsModel.FK__CmFacility__CmFile">
+            <End Role="CmFile" EntitySet="CmFile" />
+            <End Role="CmFacility" EntitySet="CmFacility" />
+          </AssociationSet>
+          <AssociationSet Name="FK__CmFacility__CmZone" Association="iBemsModel.FK__CmFacility__CmZone">
+            <End Role="CmZone" EntitySet="CmZone" />
+            <End Role="CmFacility" EntitySet="CmFacility" />
+          </AssociationSet>
+          <AssociationSet Name="FK__CmFacility__FmsFacilityCodeClassAsFirst" Association="iBemsModel.FK__CmFacility__FmsFacilityCodeClassAsFirst">
+            <End Role="FmsFacilityCodeClass" EntitySet="FmsFacilityCodeClass" />
+            <End Role="CmFacility" EntitySet="CmFacility" />
+          </AssociationSet>
+          <AssociationSet Name="FK__CmFacility__FmsFacilityCodeClassAsSecond" Association="iBemsModel.FK__CmFacility__FmsFacilityCodeClassAsSecond">
+            <End Role="FmsFacilityCodeClass" EntitySet="FmsFacilityCodeClass" />
+            <End Role="CmFacility" EntitySet="CmFacility" />
+          </AssociationSet>
+          <AssociationSet Name="FK__CmFacility__FmsFacilityCodeClassAsThird" Association="iBemsModel.FK__CmFacility__FmsFacilityCodeClassAsThird">
+            <End Role="FmsFacilityCodeClass" EntitySet="FmsFacilityCodeClass" />
+            <End Role="CmFacility" EntitySet="CmFacility" />
+          </AssociationSet>
+          <AssociationSet Name="FK__CmFacilityFile__7720AD13" Association="iBemsModel.FK__CmFacilityFile__7720AD13">
+            <End Role="CmFacility" EntitySet="CmFacility" />
+            <End Role="CmFacilityFile" EntitySet="CmFacilityFile" />
+          </AssociationSet>
+          <AssociationSet Name="FK__CmFacilityManual__79FD19BE" Association="iBemsModel.FK__CmFacilityManual__79FD19BE">
+            <End Role="CmFacility" EntitySet="CmFacility" />
+            <End Role="FmsFacilityManual" EntitySet="FmsFacilityManual" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsFacilityOpera__725BF7F6" Association="iBemsModel.FK__FmsFacilityOpera__725BF7F6">
+            <End Role="CmFacility" EntitySet="CmFacility" />
+            <End Role="FmsFacilityOperationItem" EntitySet="FmsFacilityOperationItem" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsWorkResultCheckItem__CmFacility" Association="iBemsModel.FK__FmsWorkResultCheckItem__CmFacility">
+            <End Role="CmFacility" EntitySet="CmFacility" />
+            <End Role="FmsWorkResultCheckItem" EntitySet="FmsWorkResultCheckItem" />
+          </AssociationSet>
+          <AssociationSet Name="FK__FmsWorkResultToFacility__CmFacility" Association="iBemsModel.FK__FmsWorkResultToFacility__CmFacility">
+            <End Role="CmFacility" EntitySet="CmFacility" />
+            <End Role="FmsWorkResultToFacility" EntitySet="FmsWorkResultToFacility" />
+          </AssociationSet>
+          <AssociationSet Name="FK_CmFacility_CmUser" Association="iBemsModel.FK_CmFacility_CmUser">
+            <End Role="CmUser" EntitySet="CmUser" />
+            <End Role="CmFacility" EntitySet="CmFacility" />
+          </AssociationSet>
+          <AssociationSet Name="FK_CmFacility_CmUser1" Association="iBemsModel.FK_CmFacility_CmUser1">
+            <End Role="CmUser" EntitySet="CmUser" />
+            <End Role="CmFacility" EntitySet="CmFacility" />
+          </AssociationSet>
+          <AssociationSet Name="FK_CmFacilityTempSet_CmFacility" Association="iBemsModel.FK_CmFacilityTempSet_CmFacility">
+            <End Role="CmFacility" EntitySet="CmFacility" />
+            <End Role="CmFacilityTempSet" EntitySet="CmFacilityTempSet" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsWorkOrderToFacility_CmFacility" Association="iBemsModel.FK_FmsWorkOrderToFacility_CmFacility">
+            <End Role="CmFacility" EntitySet="CmFacility" />
+            <End Role="FmsWorkOrderToFacility" EntitySet="FmsWorkOrderToFacility" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsWorkRequestToFacility_CmFacility" Association="iBemsModel.FK_FmsWorkRequestToFacility_CmFacility">
+            <End Role="CmFacility" EntitySet="CmFacility" />
+            <End Role="FmsWorkRequestToFacility" EntitySet="FmsWorkRequestToFacility" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsWorkScheduleToFacility_CmFacility" Association="iBemsModel.FK_FmsWorkScheduleToFacility_CmFacility">
+            <End Role="CmFacility" EntitySet="CmFacility" />
+            <End Role="FmsWorkScheduleToFacility" EntitySet="FmsWorkScheduleToFacility" />
+          </AssociationSet>
+          <EntitySet Name="BemsMonitoringPointHistory15minRawData" EntityType="iBemsModel.BemsMonitoringPointHistory15minRawData" />
+          <AssociationSet Name="FK__BemsMonitoringPointHistory15minRawData__BemsFacilityType" Association="iBemsModel.FK__BemsMonitoringPointHistory15minRawData__BemsFacilityType">
+            <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
+            <End Role="BemsMonitoringPointHistory15minRawData" EntitySet="BemsMonitoringPointHistory15minRawData" />
+          </AssociationSet>
+          <AssociationSet Name="FK__BemsMonitoringPointHistory15minRawData__BemsMonitoringPoint" Association="iBemsModel.FK__BemsMonitoringPointHistory15minRawData__BemsMonitoringPoint">
+            <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
+            <End Role="BemsMonitoringPointHistory15minRawData" EntitySet="BemsMonitoringPointHistory15minRawData" />
+          </AssociationSet>
+          <EntitySet Name="FmsDailyReport" EntityType="iBemsModel.FmsDailyReport" />
+          <AssociationSet Name="FK_FmsDailyReport_CmBusinessField" Association="iBemsModel.FK_FmsDailyReport_CmBusinessField">
+            <End Role="CmBusinessField" EntitySet="CmBusinessField" />
+            <End Role="FmsDailyReport" EntitySet="FmsDailyReport" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsDailyReport_CmUser" Association="iBemsModel.FK_FmsDailyReport_CmUser">
+            <End Role="CmUser" EntitySet="CmUser" />
+            <End Role="FmsDailyReport" EntitySet="FmsDailyReport" />
+          </AssociationSet>
+          <EntitySet Name="BemsPeakHistoryDaily" EntityType="iBemsModel.BemsPeakHistoryDaily" />
+          <EntitySet Name="FmsEquipment" EntityType="iBemsModel.FmsEquipment" />
+          <AssociationSet Name="FK_FmsEquipment_CmUser" Association="iBemsModel.FK_FmsEquipment_CmUser">
+            <End Role="CmUser" EntitySet="CmUser" />
+            <End Role="FmsEquipment" EntitySet="FmsEquipment" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsEquipment_FmsEquipmentCodeType" Association="iBemsModel.FK_FmsEquipment_FmsEquipmentCodeType">
+            <End Role="FmsEquipmentCodeType" EntitySet="FmsEquipmentCodeType" />
+            <End Role="FmsEquipment" EntitySet="FmsEquipment" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsEquipment_FmsMaterialWarehouse" Association="iBemsModel.FK_FmsEquipment_FmsMaterialWarehouse">
+            <End Role="FmsMaterialWarehouse" EntitySet="FmsMaterialWarehouse" />
+            <End Role="FmsEquipment" EntitySet="FmsEquipment" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsEquipmentHistory_FmsEquipment" Association="iBemsModel.FK_FmsEquipmentHistory_FmsEquipment">
+            <End Role="FmsEquipment" EntitySet="FmsEquipment" />
+            <End Role="FmsEquipmentHistory" EntitySet="FmsEquipmentHistory" />
+          </AssociationSet>
+          <EntitySet Name="CmAlarmAdmin" EntityType="iBemsModel.CmAlarmAdmin" />
+          <EntitySet Name="BemsFloorStatus" EntityType="iBemsModel.BemsFloorStatus" />
+          <EntitySet Name="BemsReportHistory" EntityType="iBemsModel.BemsReportHistory" />
+          <EntitySet Name="CmPartner" EntityType="iBemsModel.CmPartner" />
+          <EntitySet Name="CmPartnerType" EntityType="iBemsModel.CmPartnerType" />
+          <AssociationSet Name="FK_CmPartnerType_CmPartner" Association="iBemsModel.FK_CmPartnerType_CmPartner">
+            <End Role="CmPartnerType" EntitySet="CmPartnerType" />
+            <End Role="CmPartner" EntitySet="CmPartner" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsConstruction_CmPartner" Association="iBemsModel.FK_FmsConstruction_CmPartner">
+            <End Role="CmPartner" EntitySet="CmPartner" />
+            <End Role="FmsConstruction" EntitySet="FmsConstruction" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsWorkRequest_CmPartner" Association="iBemsModel.FK_FmsWorkRequest_CmPartner">
+            <End Role="CmPartner" EntitySet="CmPartner" />
+            <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsWorkSchedule_CmPartner" Association="iBemsModel.FK_FmsWorkSchedule_CmPartner">
+            <End Role="CmPartner" EntitySet="CmPartner" />
+            <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
+          </AssociationSet>
+          <EntitySet Name="FmsContract" EntityType="iBemsModel.FmsContract" />
+          <AssociationSet Name="FK_FmsContract_CmPartner" Association="iBemsModel.FK_FmsContract_CmPartner">
+            <End Role="CmPartner" EntitySet="CmPartner" />
+            <End Role="FmsContract" EntitySet="FmsContract" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsContract_CmPartnerType" Association="iBemsModel.FK_FmsContract_CmPartnerType">
+            <End Role="CmPartnerType" EntitySet="CmPartnerType" />
+            <End Role="FmsContract" EntitySet="FmsContract" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsContract_FmsContractClass" Association="iBemsModel.FK_FmsContract_FmsContractClass">
+            <End Role="FmsContractClass" EntitySet="FmsContractClass" />
+            <End Role="FmsContract" EntitySet="FmsContract" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsContract_FmsContractMethod" Association="iBemsModel.FK_FmsContract_FmsContractMethod">
+            <End Role="FmsContractMethod" EntitySet="FmsContractMethod" />
+            <End Role="FmsContract" EntitySet="FmsContract" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsContract_FmsContractType" Association="iBemsModel.FK_FmsContract_FmsContractType">
+            <End Role="FmsContractType" EntitySet="FmsContractType" />
+            <End Role="FmsContract" EntitySet="FmsContract" />
+          </AssociationSet>
+          <AssociationSet Name="FK_FmsContract_FmsPaymentType" Association="iBemsModel.FK_FmsContract_FmsPaymentType">
+            <End Role="FmsPaymentType" EntitySet="FmsPaymentType" />
+            <End Role="FmsContract" EntitySet="FmsContract" />
+          </AssociationSet>
+          <EntitySet Name="BemsMonitoringPointForecastingDayAhead" EntityType="iBemsModel.BemsMonitoringPointForecastingDayAhead" />
+          <EntitySet Name="BemsMonitoringPointForecastingHourAhead" EntityType="iBemsModel.BemsMonitoringPointForecastingHourAhead" />
+          <EntitySet Name="BemsFloorPlan" EntityType="iBemsModel.BemsFloorPlan" />
+          <EntitySet Name="BemsMonitoringPointWeatherForecasted" EntityType="iBemsModel.BemsMonitoringPointWeatherForecasted" />
+          <EntitySet Name="BemsIceThermalStorageSimulation" EntityType="iBemsModel.BemsIceThermalStorageSimulation" />
+          <EntitySet Name="BemsConfigData" EntityType="iBemsModel.BemsConfigData" />
+          </EntityContainer>
+        <EntityType Name="FmsDailyCheckReport">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="DailyCheckReportId" />
+          </Key>
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="DailyCheckReportId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+          <Property Name="Name" Type="String" Nullable="false" MaxLength="128" FixedLength="false" Unicode="true" />
+          <Property Name="Contents" Type="String" Nullable="false" MaxLength="1024" FixedLength="false" Unicode="true" />
+          <Property Name="RegisterUserId" Type="String" Nullable="false" MaxLength="24" FixedLength="false" Unicode="true" />
+          <Property Name="AddDate" Type="DateTime" Nullable="false" Precision="3" />
+          <NavigationProperty Name="CmUser" Relationship="iBemsModel.FK_FmsDailyCheckReport_CmUser" FromRole="FmsDailyCheckReport" ToRole="CmUser" />
+        </EntityType>
+        <EntityType Name="FmsFacilityOperationReport">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="FacilityOperationReportId" />
+          </Key>
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="FacilityOperationReportId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+          <Property Name="Name" Type="String" Nullable="false" MaxLength="128" FixedLength="false" Unicode="true" />
+          <Property Name="Contents" Type="String" Nullable="false" MaxLength="1024" FixedLength="false" Unicode="true" />
+          <Property Name="RegisterUserId" Type="String" Nullable="false" MaxLength="24" FixedLength="false" Unicode="true" />
+          <Property Name="AddDate" Type="DateTime" Nullable="false" Precision="3" />
+          <NavigationProperty Name="CmUser" Relationship="iBemsModel.FK_FmsFacilityOperationReport_CmUser" FromRole="FmsFacilityOperationReport" ToRole="CmUser" />
+        </EntityType>
+        <Association Name="FK_FmsDailyCheckReport_CmUser">
+          <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="1" />
+          <End Type="iBemsModel.FmsDailyCheckReport" Role="FmsDailyCheckReport" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmUser">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="UserId" />
+            </Principal>
+            <Dependent Role="FmsDailyCheckReport">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="RegisterUserId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsFacilityOperationReport_CmUser">
+          <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="1" />
+          <End Type="iBemsModel.FmsFacilityOperationReport" Role="FmsFacilityOperationReport" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmUser">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="UserId" />
+            </Principal>
+            <Dependent Role="FmsFacilityOperationReport">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="RegisterUserId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <EntityType Name="FmsBudgetDetail">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="Year" />
+            <PropertyRef Name="BudgetClassId" />
+            <PropertyRef Name="ParentBudgetClassId" />
+          </Key>
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="Year" Type="Int32" Nullable="false" />
+          <Property Name="BudgetClassId" Type="Int32" Nullable="false" />
+          <Property Name="BudgetSeq" Type="String" Nullable="false" MaxLength="6" FixedLength="false" Unicode="true" />
+          <Property Name="ParentBudgetClassId" Type="Int32" Nullable="false" />
+          <Property Name="Depth" Type="Int32" Nullable="false" />
+          <Property Name="Name" Type="String" Nullable="false" MaxLength="32" FixedLength="false" Unicode="true" />
+          <Property Name="Abbreviation" Type="String" MaxLength="16" FixedLength="false" Unicode="true" />
+          <Property Name="IsUse" Type="Boolean" />
+          <Property Name="YearlyBudget" Type="Double" Nullable="false" />
+          <Property Name="MonthlyBudget" Type="Double" Nullable="false" />
+          <NavigationProperty Name="FmsBudget" Relationship="iBemsModel.FK_FmsBudgetDetail_FmsBudget" FromRole="FmsBudgetDetail" ToRole="FmsBudget" />
+          <NavigationProperty Name="FmsBudgetCodeClass" Relationship="iBemsModel.FK_FmsBudgetDetail_FmsBudgetCodeClass" FromRole="FmsBudgetDetail" ToRole="FmsBudgetCodeClass" />
+          <NavigationProperty Name="FmsBudgetDetailExecution" Relationship="iBemsModel.FK_FmsBudgetDetailExecution_FmsBudgetDetail" FromRole="FmsBudgetDetail" ToRole="FmsBudgetDetailExecution" />
+          <Property Name="RootBudgetClassId" Type="Int32" />
+        </EntityType>
+        <EntityType Name="FmsBudgetDetailExecution">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="Year" />
+            <PropertyRef Name="BudgetClassId" />
+            <PropertyRef Name="ParentBudgetClassId" />
+            <PropertyRef Name="Month" />
+          </Key>
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="Year" Type="Int32" Nullable="false" />
+          <Property Name="BudgetClassId" Type="Int32" Nullable="false" />
+          <Property Name="ParentBudgetClassId" Type="Int32" Nullable="false" />
+          <Property Name="MonthlyExecution" Type="Double" Nullable="false" />
+          <Property Name="Month" Type="Int32" Nullable="false" />
+          <NavigationProperty Name="FmsBudgetDetail" Relationship="iBemsModel.FK_FmsBudgetDetailExecution_FmsBudgetDetail" FromRole="FmsBudgetDetailExecution" ToRole="FmsBudgetDetail" />
+          <Property Name="YearlyBudget" Type="Double" Nullable="false" />
+          <Property Name="MonthlyBudget" Type="Double" Nullable="false" />
+          <Property Name="YearlyExecution" Type="Double" Nullable="false" />
+          <Property Name="RootBudgetClassId" Type="Int32" />
+        </EntityType>
+        <Association Name="FK_FmsBudgetDetail_FmsBudget">
+          <End Type="iBemsModel.FmsBudget" Role="FmsBudget" Multiplicity="1">
+            <OnDelete Action="Cascade" />
+          </End>
+          <End Type="iBemsModel.FmsBudgetDetail" Role="FmsBudgetDetail" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="FmsBudget">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="Year" />
+            </Principal>
+            <Dependent Role="FmsBudgetDetail">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="Year" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsBudgetDetail_FmsBudgetCodeClass">
+          <End Type="iBemsModel.FmsBudgetCodeClass" Role="FmsBudgetCodeClass" Multiplicity="1" />
+          <End Type="iBemsModel.FmsBudgetDetail" Role="FmsBudgetDetail" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="FmsBudgetCodeClass">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="BudgetClassId" />
+            </Principal>
+            <Dependent Role="FmsBudgetDetail">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="BudgetClassId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsBudgetDetailExecution_FmsBudgetDetail">
+          <End Type="iBemsModel.FmsBudgetDetail" Role="FmsBudgetDetail" Multiplicity="1" />
+          <End Type="iBemsModel.FmsBudgetDetailExecution" Role="FmsBudgetDetailExecution" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="FmsBudgetDetail">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="Year" />
+              <PropertyRef Name="BudgetClassId" />
+              <PropertyRef Name="ParentBudgetClassId" />
+            </Principal>
+            <Dependent Role="FmsBudgetDetailExecution">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="Year" />
+              <PropertyRef Name="BudgetClassId" />
+              <PropertyRef Name="ParentBudgetClassId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <EntityType Name="FmsMonthlyReport">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="MonthlyReportId" />
+          </Key>
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="MonthlyReportId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+          <Property Name="Name" Type="String" Nullable="false" MaxLength="128" FixedLength="false" Unicode="true" />
+          <Property Name="Contents" Type="String" Nullable="false" MaxLength="1024" FixedLength="false" Unicode="true" />
+          <Property Name="RegisterUserId" Type="String" Nullable="false" MaxLength="24" FixedLength="false" Unicode="true" />
+          <Property Name="AddDate" Type="DateTime" Nullable="false" Precision="3" />
+          <NavigationProperty Name="CmUser" Relationship="iBemsModel.FK_FmsMonthlyReport_CmUser" FromRole="FmsMonthlyReport" ToRole="CmUser" />
+        </EntityType>
+        <Association Name="FK_FmsMonthlyReport_CmUser">
+          <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="1" />
+          <End Type="iBemsModel.FmsMonthlyReport" Role="FmsMonthlyReport" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmUser">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="UserId" />
+            </Principal>
+            <Dependent Role="FmsMonthlyReport">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="RegisterUserId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <EntityType Name="FmsInvestmentCost">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="InsvestmentCostId" />
+          </Key>
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="InsvestmentCostId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+          <Property Name="Name" Type="String" Nullable="false" MaxLength="32" FixedLength="false" Unicode="true" />
+          <Property Name="Comment" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
+          <Property Name="InsvestmentCost" Type="Double" Nullable="false" />
+        </EntityType>
+        <EntityType Name="CmHolidayWeekend">
+          <Key>
+            <PropertyRef Name="SiteId" />
+          </Key>
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="Saturday" Type="Boolean" Nullable="false" />
+          <Property Name="Sunday" Type="Boolean" Nullable="false" />
+          <Property Name="IsUse" Type="Boolean" />
+          <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__CmHoliday__SiteI__0D99FE17" FromRole="CmHolidayWeekend" ToRole="CmSite" />
+        </EntityType>
+        <Association Name="FK_FmsAccident_CmCompany">
+          <End Type="iBemsModel.CmCompany" Role="CmCompany" Multiplicity="0..1" />
+          <End Type="iBemsModel.FmsAccident" Role="FmsAccident" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmCompany">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="CompanyId" />
+            </Principal>
+            <Dependent Role="FmsAccident">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="CompanyId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <EntityType Name="FmsMaterial">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="MaterialId" />
+          </Key>
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
+          <Property Name="MaterialId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+          <Property Name="MaterialCode" Type="String" Nullable="false" MaxLength="48" FixedLength="false" Unicode="true" />
+          <Property Name="Name" Type="String" Nullable="false" MaxLength="48" FixedLength="false" Unicode="true" />
+          <Property Name="FirstClassId" Type="Int32" />
+          <Property Name="SecondClassId" Type="Int32" />
+          <Property Name="ThirdClassId" Type="Int32" />
+          <Property Name="LocationId" Type="Int32" />
+          <Property Name="MaterialTypeId" Type="Int32" />
+          <Property Name="WarehouseId" Type="Int32" />
+          <Property Name="TradeCompanyId" Type="Int32" />
+          <Property Name="Rfid" Type="String" MaxLength="52" FixedLength="false" Unicode="true" />
+          <Property Name="Unit" Type="String" MaxLength="12" FixedLength="false" Unicode="true" />
+          <Property Name="DurableYears" Type="Int16" />
+          <Property Name="ReasonableStockCount" Type="Int16" />
+          <Property Name="Manufacturer" Type="String" MaxLength="40" FixedLength="false" Unicode="true" />
+          <Property Name="Standard" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
+          <Property Name="FinalPrice" Type="Int32" />
+          <Property Name="ImageFileId" Type="Int32" />
+          <Property Name="Note" Type="String" MaxLength="512" FixedLength="false" Unicode="true" />
+          <Property Name="IsDiscontinued" Type="Boolean" />
+          <Property Name="IsUse" Type="Boolean" Nullable="false" />
+          <Property Name="FinalStockCount" Type="Int32" Nullable="false" />
+          <Property Name="FinalTotalStockAmount" Type="Int32" Nullable="false" />
+          <NavigationProperty Name="CmBusinessField" Relationship="iBemsModel.FK_FmsMaterial_CmBusinessField" FromRole="FmsMaterial" ToRole="CmBusinessField" />
+          <NavigationProperty Name="CmFile" Relationship="iBemsModel.FK_FmsMaterial_CmFile" FromRole="FmsMaterial" ToRole="CmFile" />
+          <NavigationProperty Name="FmsMaterialCodeClass" Relationship="iBemsModel.FK__FmsMaterial__FmsMaterialCodeClass_AsFirstClassId" FromRole="FmsMaterial" ToRole="FmsMaterialCodeClass" />
+          <NavigationProperty Name="FmsMaterialCodeClass1" Relationship="iBemsModel.FK__FmsMaterial__FmsMaterialCodeClass_AsSecondClassId" FromRole="FmsMaterial" ToRole="FmsMaterialCodeClass" />
+          <NavigationProperty Name="FmsMaterialCodeClass2" Relationship="iBemsModel.FK__FmsMaterial__FmsMaterialCodeClass_AsThirdClassId" FromRole="FmsMaterial" ToRole="FmsMaterialCodeClass" />
+          <NavigationProperty Name="FmsMaterialCodeLocation" Relationship="iBemsModel.FK_FmsMaterial_FmsMaterialCodeLocation" FromRole="FmsMaterial" ToRole="FmsMaterialCodeLocation" />
+          <NavigationProperty Name="FmsMaterialCodeType" Relationship="iBemsModel.FK_FmsMaterial_FmsMaterialCodeType" FromRole="FmsMaterial" ToRole="FmsMaterialCodeType" />
+          <NavigationProperty Name="FmsMaterialTradeCompany" Relationship="iBemsModel.FK_FmsMaterial_FmsMaterialTradeCompany" FromRole="FmsMaterial" ToRole="FmsMaterialTradeCompany" />
+          <NavigationProperty Name="FmsMaterialWarehouse" Relationship="iBemsModel.FK_FmsMaterial_FmsMaterialWarehouse" FromRole="FmsMaterial" ToRole="FmsMaterialWarehouse" />
+          <NavigationProperty Name="FmsMaterialPurchaseOrderMaterial" Relationship="iBemsModel.FK_FmsMaterialPurchaseOrderMaterial_FmsMaterial" FromRole="FmsMaterial" ToRole="FmsMaterialPurchaseOrderMaterial" />
+          <NavigationProperty Name="FmsMaterialPurchaseRequestMaterial" Relationship="iBemsModel.FK_FmsMaterialPurchaseRequestMaterial_FmsMaterial" FromRole="FmsMaterial" ToRole="FmsMaterialPurchaseRequestMaterial" />
+          <NavigationProperty Name="FmsMaterialRelease" Relationship="iBemsModel.FK_FmsMaterialRelease_FmsMaterial" FromRole="FmsMaterial" ToRole="FmsMaterialRelease" />
+          <NavigationProperty Name="FmsMaterialStored" Relationship="iBemsModel.FK_FmsMaterialStored_FmsMaterial" FromRole="FmsMaterial" ToRole="FmsMaterialStored" />
+          <NavigationProperty Name="FmsWorkResultCheckItemMaterial" Relationship="iBemsModel.FK_FmsWorkResultCheckItemMaterial_FmsMaterial" FromRole="FmsMaterial" ToRole="FmsWorkResultCheckItemMaterial" />
+          <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_FmsMaterial_CmSite" FromRole="FmsMaterial" ToRole="CmSite" />
+        </EntityType>
+        <EntityType Name="FmsMaterialRelease">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="MaterialReleaseId" />
+          </Key>
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
+          <Property Name="ReleaseDate" Type="DateTime" Nullable="false" Precision="3" />
+          <Property Name="MaterialReleaseId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+          <Property Name="ReleaseTypeId" Type="Int16" Nullable="false" />
+          <Property Name="WorkRequestId" Type="Int32" />
+          <Property Name="WarehouseId" Type="Int32" />
+          <Property Name="MaterialId" Type="Int32" />
+          <Property Name="MaterialCount" Type="Int32" />
+          <Property Name="ReleaseTotalCost" Type="Int32" />
+          <Property Name="AdjustmentTypeId" Type="Int16" Nullable="false" />
+          <Property Name="AdjustmentUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
+          <Property Name="ConfirmedUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
+          <Property Name="ConfirmedDate" Type="DateTime" Precision="3" />
+          <Property Name="IsConfirmed" Type="Boolean" Nullable="false" />
+          <Property Name="Comment" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
+          <NavigationProperty Name="CmBusinessField" Relationship="iBemsModel.FK_FmsMaterialRelease_CmBusinessField" FromRole="FmsMaterialRelease" ToRole="CmBusinessField" />
+          <NavigationProperty Name="CmUser" Relationship="iBemsModel.FK_FmsMaterialRelease_CmUser" FromRole="FmsMaterialRelease" ToRole="CmUser" />
+          <NavigationProperty Name="CmUser1" Relationship="iBemsModel.FK_FmsMaterialRelease_CmUser1" FromRole="FmsMaterialRelease" ToRole="CmUser" />
+          <NavigationProperty Name="FmsMaterial" Relationship="iBemsModel.FK_FmsMaterialRelease_FmsMaterial" FromRole="FmsMaterialRelease" ToRole="FmsMaterial" />
+          <NavigationProperty Name="FmsMaterialCodeAdjustmentType" Relationship="iBemsModel.FK_FmsMaterialRelease_FmsMaterialCodeAdjustmentType" FromRole="FmsMaterialRelease" ToRole="FmsMaterialCodeAdjustmentType" />
+          <NavigationProperty Name="FmsMaterialCodeReleaseType" Relationship="iBemsModel.FK_FmsMaterialRelease_FmsMaterialCodeReleaseType" FromRole="FmsMaterialRelease" ToRole="FmsMaterialCodeReleaseType" />
+          <NavigationProperty Name="FmsWorkResult" Relationship="iBemsModel.FK_FmsMaterialRelease_FmsWorkResult" FromRole="FmsMaterialRelease" ToRole="FmsWorkResult" />
+          <Property Name="StockCountByPoint" Type="Int32" />
+          <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_FmsMaterialRelease_CmSite" FromRole="FmsMaterialRelease" ToRole="CmSite" />
+        </EntityType>
+        <Association Name="FK_FmsMaterial_CmBusinessField">
+          <End Type="iBemsModel.CmBusinessField" Role="CmBusinessField" Multiplicity="1" />
+          <End Type="iBemsModel.FmsMaterial" Role="FmsMaterial" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmBusinessField">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="BusinessFieldId" />
+            </Principal>
+            <Dependent Role="FmsMaterial">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="BusinessFieldId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsMaterialRelease_CmBusinessField">
+          <End Type="iBemsModel.CmBusinessField" Role="CmBusinessField" Multiplicity="1" />
+          <End Type="iBemsModel.FmsMaterialRelease" Role="FmsMaterialRelease" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmBusinessField">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="BusinessFieldId" />
+            </Principal>
+            <Dependent Role="FmsMaterialRelease">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="BusinessFieldId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsMaterial_CmFile">
+          <End Type="iBemsModel.CmFile" Role="CmFile" Multiplicity="0..1" />
+          <End Type="iBemsModel.FmsMaterial" Role="FmsMaterial" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmFile">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FileId" />
+            </Principal>
+            <Dependent Role="FmsMaterial">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="ImageFileId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsMaterialRelease_CmUser">
+          <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="0..1" />
+          <End Type="iBemsModel.FmsMaterialRelease" Role="FmsMaterialRelease" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmUser">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="UserId" />
+            </Principal>
+            <Dependent Role="FmsMaterialRelease">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="ConfirmedUserId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsMaterialRelease_CmUser1">
+          <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="0..1" />
+          <End Type="iBemsModel.FmsMaterialRelease" Role="FmsMaterialRelease" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmUser">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="UserId" />
+            </Principal>
+            <Dependent Role="FmsMaterialRelease">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="AdjustmentUserId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsMaterial__FmsMaterialCodeClass_AsFirstClassId">
+          <End Type="iBemsModel.FmsMaterialCodeClass" Role="FmsMaterialCodeClass" Multiplicity="0..1" />
+          <End Type="iBemsModel.FmsMaterial" Role="FmsMaterial" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="FmsMaterialCodeClass">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="MaterialClassId" />
+            </Principal>
+            <Dependent Role="FmsMaterial">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FirstClassId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsMaterial__FmsMaterialCodeClass_AsSecondClassId">
+          <End Type="iBemsModel.FmsMaterialCodeClass" Role="FmsMaterialCodeClass" Multiplicity="0..1" />
+          <End Type="iBemsModel.FmsMaterial" Role="FmsMaterial" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="FmsMaterialCodeClass">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="MaterialClassId" />
+            </Principal>
+            <Dependent Role="FmsMaterial">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="SecondClassId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsMaterial__FmsMaterialCodeClass_AsThirdClassId">
+          <End Type="iBemsModel.FmsMaterialCodeClass" Role="FmsMaterialCodeClass" Multiplicity="0..1" />
+          <End Type="iBemsModel.FmsMaterial" Role="FmsMaterial" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="FmsMaterialCodeClass">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="MaterialClassId" />
+            </Principal>
+            <Dependent Role="FmsMaterial">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="ThirdClassId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsMaterial_FmsMaterialCodeLocation">
+          <End Type="iBemsModel.FmsMaterialCodeLocation" Role="FmsMaterialCodeLocation" Multiplicity="0..1" />
+          <End Type="iBemsModel.FmsMaterial" Role="FmsMaterial" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="FmsMaterialCodeLocation">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="LocationId" />
+            </Principal>
+            <Dependent Role="FmsMaterial">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="LocationId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsMaterial_FmsMaterialCodeType">
+          <End Type="iBemsModel.FmsMaterialCodeType" Role="FmsMaterialCodeType" Multiplicity="0..1" />
+          <End Type="iBemsModel.FmsMaterial" Role="FmsMaterial" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="FmsMaterialCodeType">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="MaterialTypeId" />
+            </Principal>
+            <Dependent Role="FmsMaterial">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="MaterialTypeId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsMaterial_FmsMaterialTradeCompany">
+          <End Type="iBemsModel.FmsMaterialTradeCompany" Role="FmsMaterialTradeCompany" Multiplicity="0..1" />
+          <End Type="iBemsModel.FmsMaterial" Role="FmsMaterial" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="FmsMaterialTradeCompany">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="TradeCompanyId" />
+            </Principal>
+            <Dependent Role="FmsMaterial">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="TradeCompanyId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsMaterial_FmsMaterialWarehouse">
+          <End Type="iBemsModel.FmsMaterialWarehouse" Role="FmsMaterialWarehouse" Multiplicity="0..1" />
+          <End Type="iBemsModel.FmsMaterial" Role="FmsMaterial" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="FmsMaterialWarehouse">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="WarehouseId" />
+            </Principal>
+            <Dependent Role="FmsMaterial">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="WarehouseId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsMaterialPurchaseOrderMaterial_FmsMaterial">
+          <End Type="iBemsModel.FmsMaterial" Role="FmsMaterial" Multiplicity="1" />
+          <End Type="iBemsModel.FmsMaterialPurchaseOrderMaterial" Role="FmsMaterialPurchaseOrderMaterial" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="FmsMaterial">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="MaterialId" />
+            </Principal>
+            <Dependent Role="FmsMaterialPurchaseOrderMaterial">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="MaterialId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsMaterialPurchaseRequestMaterial_FmsMaterial">
+          <End Type="iBemsModel.FmsMaterial" Role="FmsMaterial" Multiplicity="1" />
+          <End Type="iBemsModel.FmsMaterialPurchaseRequestMaterial" Role="FmsMaterialPurchaseRequestMaterial" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="FmsMaterial">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="MaterialId" />
+            </Principal>
+            <Dependent Role="FmsMaterialPurchaseRequestMaterial">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="MaterialId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsMaterialRelease_FmsMaterial">
+          <End Type="iBemsModel.FmsMaterial" Role="FmsMaterial" Multiplicity="1" />
+          <End Type="iBemsModel.FmsMaterialRelease" Role="FmsMaterialRelease" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="FmsMaterial">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="MaterialId" />
+            </Principal>
+            <Dependent Role="FmsMaterialRelease">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="MaterialId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsMaterialStored_FmsMaterial">
+          <End Type="iBemsModel.FmsMaterial" Role="FmsMaterial" Multiplicity="1" />
+          <End Type="iBemsModel.FmsMaterialStored" Role="FmsMaterialStored" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="FmsMaterial">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="MaterialId" />
+            </Principal>
+            <Dependent Role="FmsMaterialStored">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="MaterialId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsWorkResultCheckItemMaterial_FmsMaterial">
+          <End Type="iBemsModel.FmsMaterial" Role="FmsMaterial" Multiplicity="1" />
+          <End Type="iBemsModel.FmsWorkResultCheckItemMaterial" Role="FmsWorkResultCheckItemMaterial" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="FmsMaterial">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="MaterialId" />
+            </Principal>
+            <Dependent Role="FmsWorkResultCheckItemMaterial">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="MaterialId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsMaterialRelease_FmsMaterialCodeAdjustmentType">
+          <End Type="iBemsModel.FmsMaterialCodeAdjustmentType" Role="FmsMaterialCodeAdjustmentType" Multiplicity="1" />
+          <End Type="iBemsModel.FmsMaterialRelease" Role="FmsMaterialRelease" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="FmsMaterialCodeAdjustmentType">
+              <PropertyRef Name="AdjustmentTypeId" />
+            </Principal>
+            <Dependent Role="FmsMaterialRelease">
+              <PropertyRef Name="AdjustmentTypeId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsMaterialRelease_FmsMaterialCodeReleaseType">
+          <End Type="iBemsModel.FmsMaterialCodeReleaseType" Role="FmsMaterialCodeReleaseType" Multiplicity="1" />
+          <End Type="iBemsModel.FmsMaterialRelease" Role="FmsMaterialRelease" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="FmsMaterialCodeReleaseType">
+              <PropertyRef Name="ReleaseTypeId" />
+            </Principal>
+            <Dependent Role="FmsMaterialRelease">
+              <PropertyRef Name="ReleaseTypeId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsMaterialRelease_FmsWorkResult">
+          <End Type="iBemsModel.FmsWorkResult" Role="FmsWorkResult" Multiplicity="0..1" />
+          <End Type="iBemsModel.FmsMaterialRelease" Role="FmsMaterialRelease" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="FmsWorkResult">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="WorkRequestId" />
+            </Principal>
+            <Dependent Role="FmsMaterialRelease">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="WorkRequestId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsWorkResultCheckItemMaterial_FmsWorkResult">
+          <End Type="iBemsModel.FmsWorkResult" Role="FmsWorkResult" Multiplicity="1" />
+          <End Type="iBemsModel.FmsWorkResultCheckItemMaterial" Role="FmsWorkResultCheckItemMaterial" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="FmsWorkResult">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="WorkRequestId" />
+            </Principal>
+            <Dependent Role="FmsWorkResultCheckItemMaterial">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="WorkRequestId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <EntityType Name="CmPatrolType">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="PatrolTypeId" />
+          </Key>
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="PatrolTypeId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+          <Property Name="Name" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
+          <Property Name="IsUse" Type="Boolean" />
+          <NavigationProperty Name="CmPatrolHistoryPos" Relationship="iBemsModel.FK_CmPatrolHistoryPos_CmPatrolType" FromRole="CmPatrolType" ToRole="CmPatrolHistoryPos" />
+          <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_CmPatrolType_CmSite" FromRole="CmPatrolType" ToRole="CmSite" />
+          <NavigationProperty Name="CmPatrolHistory" Relationship="iBemsModel.FK_CmPatrolHistory_CmPatrolType" FromRole="CmPatrolType" ToRole="CmPatrolHistory" />
+        </EntityType>
+        <EntityType Name="CmPatrolGroup">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="PatrolGroupId" />
+          </Key>
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="PatrolGroupId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+          <Property Name="Name" Type="String" Nullable="false" MaxLength="48" FixedLength="false" Unicode="true" />
+          <NavigationProperty Name="CmPatrolGroupUser" Relationship="iBemsModel.FK_CmPatrolGroupUser_CmPatrolGroup" FromRole="CmPatrolGroup" ToRole="CmPatrolGroupUser" />
+          <NavigationProperty Name="CmPatrolPlan" Relationship="iBemsModel.FK_CmPatrolPlan_CmPatrolGroup" FromRole="CmPatrolGroup" ToRole="CmPatrolPlan" />
+          <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_CmPatrolGroup_CmSite" FromRole="CmPatrolGroup" ToRole="CmSite" />
+        </EntityType>
+        <EntityType Name="CmPatrolGroupUser">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="PatrolGroupId" />
+            <PropertyRef Name="UserId" />
+          </Key>
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="PatrolGroupId" Type="Int32" Nullable="false" />
+          <Property Name="UserId" Type="String" Nullable="false" MaxLength="24" FixedLength="false" Unicode="true" />
+          <NavigationProperty Name="CmPatrolGroup" Relationship="iBemsModel.FK_CmPatrolGroupUser_CmPatrolGroup" FromRole="CmPatrolGroupUser" ToRole="CmPatrolGroup" />
+          <NavigationProperty Name="CmUser" Relationship="iBemsModel.FK_CmPatrolGroupUser_CmUser" FromRole="CmPatrolGroupUser" ToRole="CmUser" />
+        </EntityType>
+        <Association Name="FK_CmPatrolGroupUser_CmPatrolGroup">
+          <End Type="iBemsModel.CmPatrolGroup" Role="CmPatrolGroup" Multiplicity="1" />
+          <End Type="iBemsModel.CmPatrolGroupUser" Role="CmPatrolGroupUser" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmPatrolGroup">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="PatrolGroupId" />
+            </Principal>
+            <Dependent Role="CmPatrolGroupUser">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="PatrolGroupId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_CmPatrolGroupUser_CmUser">
+          <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="1" />
+          <End Type="iBemsModel.CmPatrolGroupUser" Role="CmPatrolGroupUser" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmUser">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="UserId" />
+            </Principal>
+            <Dependent Role="CmPatrolGroupUser">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="UserId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <EntityType Name="CmPatrolPos">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="PosId" />
+          </Key>
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="BuildingId" Type="Int32" Nullable="false" />
+          <Property Name="FloorId" Type="Int32" Nullable="false" />
+          <Property Name="PosId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+          <Property Name="Name" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
+          <Property Name="TagId" Type="String" MaxLength="32" FixedLength="false" Unicode="true" />
+          <Property Name="PosDesc" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
+          <NavigationProperty Name="CmBuilding" Relationship="iBemsModel.FK_CmPatrolPos_CmBuilding" FromRole="CmPatrolPos" ToRole="CmBuilding" />
+          <NavigationProperty Name="CmFloor" Relationship="iBemsModel.FK_CmPatrolPos_CmFloor" FromRole="CmPatrolPos" ToRole="CmFloor" />
+          <NavigationProperty Name="CmPatrolCoursePos" Relationship="iBemsModel.FK_CmPatrolCoursePos_CmPatrolPos" FromRole="CmPatrolPos" ToRole="CmPatrolCoursePos" />
+          <NavigationProperty Name="CmPatrolHistoryPos" Relationship="iBemsModel.FK_CmPatrolHistoryPos_CmPatrolPos" FromRole="CmPatrolPos" ToRole="CmPatrolHistoryPos" />
+          <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_CmPatrolPos_CmSite" FromRole="CmPatrolPos" ToRole="CmSite" />
+        </EntityType>
+        <Association Name="FK_CmPatrolPos_CmBuilding">
+          <End Type="iBemsModel.CmBuilding" Role="CmBuilding" Multiplicity="1" />
+          <End Type="iBemsModel.CmPatrolPos" Role="CmPatrolPos" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmBuilding">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="BuildingId" />
+            </Principal>
+            <Dependent Role="CmPatrolPos">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="BuildingId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_CmPatrolPos_CmFloor">
+          <End Type="iBemsModel.CmFloor" Role="CmFloor" Multiplicity="1" />
+          <End Type="iBemsModel.CmPatrolPos" Role="CmPatrolPos" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmFloor">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="BuildingId" />
+              <PropertyRef Name="FloorId" />
+            </Principal>
+            <Dependent Role="CmPatrolPos">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="BuildingId" />
+              <PropertyRef Name="FloorId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <EntityType Name="CmPatrolCourse">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="PatrolCourseId" />
+          </Key>
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="PatrolCourseId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+          <Property Name="Name" Type="String" Nullable="false" MaxLength="48" FixedLength="false" Unicode="true" />
+          <NavigationProperty Name="CmPatrolCoursePos" Relationship="iBemsModel.FK_CmPatrolCoursePos_CmPatrolCourse" FromRole="CmPatrolCourse" ToRole="CmPatrolCoursePos" />
+          <NavigationProperty Name="CmPatrolPlan" Relationship="iBemsModel.FK_CmPatrolPlan_CmPatrolCourse" FromRole="CmPatrolCourse" ToRole="CmPatrolPlan" />
+          <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_CmPatrolCourse_CmSite" FromRole="CmPatrolCourse" ToRole="CmSite" />
+        </EntityType>
+        <EntityType Name="CmPatrolCoursePos">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="PatrolCourseId" />
+            <PropertyRef Name="PosId" />
+            <PropertyRef Name="BuildingId" />
+            <PropertyRef Name="FloorId" />
+          </Key>
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="PatrolCourseId" Type="Int32" Nullable="false" />
+          <Property Name="PosId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="None" />
+          <Property Name="CourseOrder" Type="Int32" Nullable="false" />
+          <NavigationProperty Name="CmPatrolCourse" Relationship="iBemsModel.FK_CmPatrolCoursePos_CmPatrolCourse" FromRole="CmPatrolCoursePos" ToRole="CmPatrolCourse" />
+          <Property Name="BuildingId" Type="Int32" Nullable="false" />
+          <Property Name="FloorId" Type="Int32" Nullable="false" />
+          <NavigationProperty Name="CmPatrolPos" Relationship="iBemsModel.FK_CmPatrolCoursePos_CmPatrolPos" FromRole="CmPatrolCoursePos" ToRole="CmPatrolPos" />
+          <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_CmPatrolCoursePos_CmSite" FromRole="CmPatrolCoursePos" ToRole="CmSite" />
+        </EntityType>
+        <Association Name="FK_CmPatrolCoursePos_CmPatrolCourse">
+          <End Type="iBemsModel.CmPatrolCourse" Role="CmPatrolCourse" Multiplicity="1" />
+          <End Type="iBemsModel.CmPatrolCoursePos" Role="CmPatrolCoursePos" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmPatrolCourse">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="PatrolCourseId" />
+            </Principal>
+            <Dependent Role="CmPatrolCoursePos">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="PatrolCourseId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_CmPatrolCoursePos_CmPatrolPos">
+          <End Type="iBemsModel.CmPatrolPos" Role="CmPatrolPos" Multiplicity="1" />
+          <End Type="iBemsModel.CmPatrolCoursePos" Role="CmPatrolCoursePos" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmPatrolPos">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="PosId" />
+            </Principal>
+            <Dependent Role="CmPatrolCoursePos">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="PosId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <EntityType Name="CmPatrolPlan">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="PatrolPlanId" />
+          </Key>
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="PatrolPlanId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+          <Property Name="GroupId" Type="Int32" Nullable="false" />
+          <Property Name="CourseId" Type="Int32" Nullable="false" />
+          <Property Name="Name" Type="String" Nullable="false" MaxLength="48" FixedLength="false" Unicode="false" />
+          <Property Name="PlanDesc" Type="String" MaxLength="1024" FixedLength="false" Unicode="false" />
+          <Property Name="term" Type="Int32" Nullable="false" />
+          <NavigationProperty Name="CmPatrolCourse" Relationship="iBemsModel.FK_CmPatrolPlan_CmPatrolCourse" FromRole="CmPatrolPlan" ToRole="CmPatrolCourse" />
+          <NavigationProperty Name="CmPatrolGroup" Relationship="iBemsModel.FK_CmPatrolPlan_CmPatrolGroup" FromRole="CmPatrolPlan" ToRole="CmPatrolGroup" />
+          <Property Name="inDate" Type="DateTime" Precision="3" />
+          <NavigationProperty Name="CmPatrolSchedule" Relationship="iBemsModel.FK_CmPatrolSchedule_CmPatrolPlan" FromRole="CmPatrolPlan" ToRole="CmPatrolSchedule" />
+          <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_CmPatrolPlan_CmSite" FromRole="CmPatrolPlan" ToRole="CmSite" />
+        </EntityType>
+        <Association Name="FK_CmPatrolPlan_CmPatrolCourse">
+          <End Type="iBemsModel.CmPatrolCourse" Role="CmPatrolCourse" Multiplicity="1" />
+          <End Type="iBemsModel.CmPatrolPlan" Role="CmPatrolPlan" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmPatrolCourse">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="PatrolCourseId" />
+            </Principal>
+            <Dependent Role="CmPatrolPlan">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="CourseId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_CmPatrolPlan_CmPatrolGroup">
+          <End Type="iBemsModel.CmPatrolGroup" Role="CmPatrolGroup" Multiplicity="1" />
+          <End Type="iBemsModel.CmPatrolPlan" Role="CmPatrolPlan" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmPatrolGroup">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="PatrolGroupId" />
+            </Principal>
+            <Dependent Role="CmPatrolPlan">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="GroupId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <EntityType Name="CmPatrolHistoryPos">
+          <Key>
+            <PropertyRef Name="mId" />
+          </Key>
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="PatrolHistoryId" Type="Int32" Nullable="false" />
+          <Property Name="PosId" Type="Int32" Nullable="false" />
+          <Property Name="PatrolTime" Type="DateTime" Nullable="false" Precision="3" />
+          <Property Name="term" Type="Int32" />
+          <Property Name="resultType" Type="Int32" Nullable="false" />
+          <Property Name="mId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+          <NavigationProperty Name="CmPatrolPos" Relationship="iBemsModel.FK_CmPatrolHistoryPos_CmPatrolPos" FromRole="CmPatrolHistoryPos" ToRole="CmPatrolPos" />
+          <NavigationProperty Name="CmPatrolType" Relationship="iBemsModel.FK_CmPatrolHistoryPos_CmPatrolType" FromRole="CmPatrolHistoryPos" ToRole="CmPatrolType" />
+          <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_CmPatrolHistoryPos_CmSite" FromRole="CmPatrolHistoryPos" ToRole="CmSite" />
+        </EntityType>
+        <Association Name="FK_CmPatrolHistoryPos_CmPatrolPos">
+          <End Type="iBemsModel.CmPatrolPos" Role="CmPatrolPos" Multiplicity="1" />
+          <End Type="iBemsModel.CmPatrolHistoryPos" Role="CmPatrolHistoryPos" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmPatrolPos">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="PosId" />
+            </Principal>
+            <Dependent Role="CmPatrolHistoryPos">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="PosId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_CmPatrolHistoryPos_CmPatrolType">
+          <End Type="iBemsModel.CmPatrolType" Role="CmPatrolType" Multiplicity="1" />
+          <End Type="iBemsModel.CmPatrolHistoryPos" Role="CmPatrolHistoryPos" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmPatrolType">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="PatrolTypeId" />
+            </Principal>
+            <Dependent Role="CmPatrolHistoryPos">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="resultType" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <EntityType Name="BemsPeakInfo">
+          <Key>
+            <PropertyRef Name="SiteId" />
+          </Key>
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="MaxDateTime" Type="DateTime" Nullable="false" Precision="3" />
+          <Property Name="MaxPeakValue" Type="Double" Nullable="false" />
+          <Property Name="MinDateTime" Type="DateTime" Nullable="false" Precision="3" />
+          <Property Name="MinPeakValue" Type="Double" Nullable="false" />
+          <Property Name="todayMaxPeakValue" Type="Double" Nullable="false" />
+          <Property Name="todayMinPeakValue" Type="Double" Nullable="false" />
+          <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_BemsPeakInfo_CmSite" FromRole="BemsPeakInfo" ToRole="CmSite" />
+        </EntityType>
+        <EntityType Name="BemsPeakHistory">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="CreatedDateTime" />
+          </Key>
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="CreatedDateTime" Type="DateTime" Nullable="false" Precision="3" />
+          <Property Name="CurrentValue" Type="Double" Nullable="false" />
+          <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_BemsPeakHIstory_CmSite" FromRole="BemsPeakHistory" ToRole="CmSite" />
+        </EntityType>
+        <EntityType Name="CmPatrolSchedule">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="ScheduleId" />
+          </Key>
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="ScheduleId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+          <Property Name="PlanId" Type="Int32" Nullable="false" />
+          <Property Name="Name" Type="String" Nullable="false" MaxLength="48" FixedLength="false" Unicode="false" />
+          <Property Name="ScheduleDesc" Type="String" MaxLength="128" FixedLength="false" Unicode="false" />
+          <Property Name="inDate" Type="DateTime" Precision="3" />
+          <Property Name="patrolDateTime" Type="DateTime" Nullable="false" Precision="3" />
+          <NavigationProperty Name="CmPatrolPlan" Relationship="iBemsModel.FK_CmPatrolSchedule_CmPatrolPlan" FromRole="CmPatrolSchedule" ToRole="CmPatrolPlan" />
+          <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_CmPatrolSchedule_CmSite" FromRole="CmPatrolSchedule" ToRole="CmSite" />
+          <NavigationProperty Name="CmPatrolHistory" Relationship="iBemsModel.FK_CmPatrolHistory_CmPatrolSchedule" FromRole="CmPatrolSchedule" ToRole="CmPatrolHistory" />
+        </EntityType>
+        <Association Name="FK_CmPatrolSchedule_CmPatrolPlan">
+          <End Type="iBemsModel.CmPatrolPlan" Role="CmPatrolPlan" Multiplicity="1" />
+          <End Type="iBemsModel.CmPatrolSchedule" Role="CmPatrolSchedule" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmPatrolPlan">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="PatrolPlanId" />
+            </Principal>
+            <Dependent Role="CmPatrolSchedule">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="PlanId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <EntityType Name="BemsNoticePriceBase">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="FuelTypeId" />
+            <PropertyRef Name="ApplyDate" />
+            <PropertyRef Name="ContractType" />
+          </Key>
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="FuelTypeId" Type="Int16" Nullable="false" />
+          <Property Name="ApplyDate" Type="DateTime" Nullable="false" Precision="0" />
+          <Property Name="ContractType" Type="Int16" Nullable="false" />
+          <Property Name="PrimaryPrice" Type="Int32" />
+          <Property Name="SecondaryPrice" Type="Int32" />
+          <NavigationProperty Name="BemsNoticePriceContractType" Relationship="iBemsModel.FK__BemsNoticePriceBase__BemsNoticePriceContractType" FromRole="BemsNoticePriceBase" ToRole="BemsNoticePriceContractType" />
+          <NavigationProperty Name="BemsNoticePriceDetail" Relationship="iBemsModel.FK__BemsNoticePriceDetail__BemsNoticePriceBase" FromRole="BemsNoticePriceBase" ToRole="BemsNoticePriceDetail" />
+        </EntityType>
+        <EntityType Name="BemsNoticePriceContractType">
+          <Key>
+            <PropertyRef Name="FuelTypeId" />
+            <PropertyRef Name="ContractType" />
+          </Key>
+          <Property Name="FuelTypeId" Type="Int16" Nullable="false" />
+          <Property Name="ContractType" Type="Int16" Nullable="false" />
+          <Property Name="Name" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="false" />
+          <NavigationProperty Name="BemsNoticePriceBase" Relationship="iBemsModel.FK__BemsNoticePriceBase__BemsNoticePriceContractType" FromRole="BemsNoticePriceContractType" ToRole="BemsNoticePriceBase" />
+          <NavigationProperty Name="BemsFuelType" Relationship="iBemsModel.FK__BemsNoticePriceContractType__BemsFuelType" FromRole="BemsNoticePriceContractType" ToRole="BemsFuelType" />
+          <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK_CmFacility_BemsNoticePriceContractType" FromRole="BemsNoticePriceContractType" ToRole="CmFacility" />
+        </EntityType>
+        <EntityType Name="BemsNoticePriceDetail">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="FuelTypeId" />
+            <PropertyRef Name="ApplyDate" />
+            <PropertyRef Name="ContractType" />
+            <PropertyRef Name="DataId" />
+          </Key>
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="FuelTypeId" Type="Int16" Nullable="false" />
+          <Property Name="ApplyDate" Type="DateTime" Nullable="false" Precision="0" />
+          <Property Name="ContractType" Type="Int16" Nullable="false" />
+          <Property Name="DataId" Type="Int16" Nullable="false" />
+          <Property Name="P01" Type="Double" />
+          <Property Name="P02" Type="Double" />
+          <Property Name="P03" Type="Double" />
+          <Property Name="P04" Type="Double" />
+          <Property Name="P05" Type="Double" />
+          <Property Name="P06" Type="Double" />
+          <Property Name="P07" Type="Double" />
+          <Property Name="P08" Type="Double" />
+          <Property Name="P09" Type="Double" />
+          <Property Name="P10" Type="Double" />
+          <Property Name="P11" Type="Double" />
+          <Property Name="P12" Type="Double" />
+          <NavigationProperty Name="BemsNoticePriceBase" Relationship="iBemsModel.FK__BemsNoticePriceDetail__BemsNoticePriceBase" FromRole="BemsNoticePriceDetail" ToRole="BemsNoticePriceBase" />
+        </EntityType>
+        <Association Name="FK__BemsNoticePriceBase__BemsNoticePriceContractType">
+          <End Type="iBemsModel.BemsNoticePriceContractType" Role="BemsNoticePriceContractType" Multiplicity="1" />
+          <End Type="iBemsModel.BemsNoticePriceBase" Role="BemsNoticePriceBase" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="BemsNoticePriceContractType">
+              <PropertyRef Name="FuelTypeId" />
+              <PropertyRef Name="ContractType" />
+            </Principal>
+            <Dependent Role="BemsNoticePriceBase">
+              <PropertyRef Name="FuelTypeId" />
+              <PropertyRef Name="ContractType" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__BemsNoticePriceDetail__BemsNoticePriceBase">
+          <End Type="iBemsModel.BemsNoticePriceBase" Role="BemsNoticePriceBase" Multiplicity="1" />
+          <End Type="iBemsModel.BemsNoticePriceDetail" Role="BemsNoticePriceDetail" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="BemsNoticePriceBase">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FuelTypeId" />
+              <PropertyRef Name="ApplyDate" />
+              <PropertyRef Name="ContractType" />
+            </Principal>
+            <Dependent Role="BemsNoticePriceDetail">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FuelTypeId" />
+              <PropertyRef Name="ApplyDate" />
+              <PropertyRef Name="ContractType" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <EntityType Name="BemsPeakFacility">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="MaxDateTime" />
+            <PropertyRef Name="FacilityCode" />
+          </Key>
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="MaxDateTime" Type="DateTime" Nullable="false" Precision="3" />
+          <Property Name="FacilityCode" Type="Int32" Nullable="false" />
+          <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK_BemsPeakFacility_CmFacility" FromRole="BemsPeakFacility" ToRole="CmFacility" />
+        </EntityType>
+        <EntityType Name="CmSite">
+          <Key>
+            <PropertyRef Name="SiteId" />
+          </Key>
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="Name" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
+          <Property Name="AddressZip1" Type="String" MaxLength="5" FixedLength="true" Unicode="true" />
+          <Property Name="AddressZip2" Type="String" MaxLength="3" FixedLength="true" Unicode="true" />
+          <Property Name="Address1" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
+          <Property Name="Adderss2" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
+          <Property Name="PhoneNo" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
+          <Property Name="URL" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
+          <Property Name="Comment" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
+          <Property Name="IsUse" Type="Boolean" />
+          <Property Name="SortOrderNo" Type="Int32" />
+          <Property Name="InsertedDate" Type="DateTime" Precision="3" />
+          <Property Name="InsertedUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
+          <Property Name="UpdatedDate" Type="DateTime" Precision="3" />
+          <Property Name="UpdatedUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
+          <Property Name="IsControlSchedule" Type="Boolean" />
+          <Property Name="ScheduleCheckHour" Type="Int32" />
+          <Property Name="MaxPeak" Type="Double" />
+          <Property Name="lat" Type="Double" />
+          <Property Name="lng" Type="Double" />
+          <NavigationProperty Name="BemsPeakHistory" Relationship="iBemsModel.FK_BemsPeakHIstory_CmSite" FromRole="CmSite" ToRole="BemsPeakHistory" />
+          <NavigationProperty Name="BemsPeakInfo" Relationship="iBemsModel.FK_BemsPeakInfo_CmSite" FromRole="CmSite" ToRole="BemsPeakInfo" />
+          <NavigationProperty Name="CmBuilding" Relationship="iBemsModel.FK__CmBuildin__SiteI__3BFFE745" FromRole="CmSite" ToRole="CmBuilding" />
+          <NavigationProperty Name="CmCompany" Relationship="iBemsModel.FK__CmCompany__SiteI__336AA144" FromRole="CmSite" ToRole="CmCompany" />
+          <NavigationProperty Name="CmFacilityTempSet" Relationship="iBemsModel.FK_CmFacilityTempSet_CmSite" FromRole="CmSite" ToRole="CmFacilityTempSet" />
+          <NavigationProperty Name="CmFile" Relationship="iBemsModel.FK__CmFile__SiteId__2759D01A" FromRole="CmSite" ToRole="CmFile" />
+          <NavigationProperty Name="CmHoliday" Relationship="iBemsModel.FK__CmHoliday__SiteI__0BB1B5A5" FromRole="CmSite" ToRole="CmHoliday" />
+          <NavigationProperty Name="CmHoliday1" Relationship="iBemsModel.FK__CmHoliday__SiteI__65AC084E" FromRole="CmSite" ToRole="CmHoliday" />
+          <NavigationProperty Name="CmHolidayCustom" Relationship="iBemsModel.FK__CmHoliday__SiteI__10766AC2" FromRole="CmSite" ToRole="CmHolidayCustom" />
+          <NavigationProperty Name="CmHolidayCustom1" Relationship="iBemsModel.FK__CmHoliday__SiteI__66A02C87" FromRole="CmSite" ToRole="CmHolidayCustom" />
+          <NavigationProperty Name="CmHolidayWeekend" Relationship="iBemsModel.FK__CmHoliday__SiteI__0D99FE17" FromRole="CmSite" ToRole="CmHolidayWeekend" />
+          <NavigationProperty Name="CmPatrolCourse" Relationship="iBemsModel.FK_CmPatrolCourse_CmSite" FromRole="CmSite" ToRole="CmPatrolCourse" />
+          <NavigationProperty Name="CmPatrolCoursePos" Relationship="iBemsModel.FK_CmPatrolCoursePos_CmSite" FromRole="CmSite" ToRole="CmPatrolCoursePos" />
+          <NavigationProperty Name="CmPatrolGroup" Relationship="iBemsModel.FK_CmPatrolGroup_CmSite" FromRole="CmSite" ToRole="CmPatrolGroup" />
+          <NavigationProperty Name="CmPatrolHistoryPos" Relationship="iBemsModel.FK_CmPatrolHistoryPos_CmSite" FromRole="CmSite" ToRole="CmPatrolHistoryPos" />
+          <NavigationProperty Name="CmPatrolPlan" Relationship="iBemsModel.FK_CmPatrolPlan_CmSite" FromRole="CmSite" ToRole="CmPatrolPlan" />
+          <NavigationProperty Name="CmPatrolPos" Relationship="iBemsModel.FK_CmPatrolPos_CmSite" FromRole="CmSite" ToRole="CmPatrolPos" />
+          <NavigationProperty Name="CmPatrolSchedule" Relationship="iBemsModel.FK_CmPatrolSchedule_CmSite" FromRole="CmSite" ToRole="CmPatrolSchedule" />
+          <NavigationProperty Name="CmPatrolType" Relationship="iBemsModel.FK_CmPatrolType_CmSite" FromRole="CmSite" ToRole="CmPatrolType" />
+          <NavigationProperty Name="CmPosition" Relationship="iBemsModel.FK__CmPositio__SiteI__6A70BD6B" FromRole="CmSite" ToRole="CmPosition" />
+          <NavigationProperty Name="CmPosition1" Relationship="iBemsModel.FK__CmUserPos__SiteI__44952D46" FromRole="CmSite" ToRole="CmPosition" />
+          <NavigationProperty Name="CmUserGroup" Relationship="iBemsModel.FK__CmUserGro__SiteI__53D770D6" FromRole="CmSite" ToRole="CmUserGroup" />
+          <NavigationProperty Name="FmsDrawingCodeGroup" Relationship="iBemsModel.FK__FmsDrawin__SiteI__6B79F03D" FromRole="CmSite" ToRole="FmsDrawingCodeGroup" />
+          <NavigationProperty Name="FmsDrawingCodeType" Relationship="iBemsModel.FK__FmsDrawin__SiteI__6C6E1476" FromRole="CmSite" ToRole="FmsDrawingCodeType" />
+          <NavigationProperty Name="FmsDrawing" Relationship="iBemsModel.FK__FmsDrawin__SiteI__6D6238AF" FromRole="CmSite" ToRole="FmsDrawing" />
+          <NavigationProperty Name="FmsDrawingCodeGroup1" Relationship="iBemsModel.FK__FmsDrawin__SiteI__6F357288" FromRole="CmSite" ToRole="FmsDrawingCodeGroup" />
+          <NavigationProperty Name="FmsDrawingCodeType1" Relationship="iBemsModel.FK__FmsDrawin__SiteI__702996C1" FromRole="CmSite" ToRole="FmsDrawingCodeType" />
+          <NavigationProperty Name="FmsFacilityCodeClass" Relationship="iBemsModel.FK__FmsFacilityCodeClass__CmSite" FromRole="CmSite" ToRole="FmsFacilityCodeClass" />
+          <NavigationProperty Name="FmsLicense" Relationship="iBemsModel.FK__FmsLicense__CmSite" FromRole="CmSite" ToRole="FmsLicense" />
+          <NavigationProperty Name="FmsMaterialCarriedForward" Relationship="iBemsModel.FK__FmsMaterialCarriedForward__CmSite" FromRole="CmSite" ToRole="FmsMaterialCarriedForward" />
+          <NavigationProperty Name="FmsMaterialCodeClass" Relationship="iBemsModel.FK__FmsMaterialCodeClass__CmSite" FromRole="CmSite" ToRole="FmsMaterialCodeClass" />
+          <NavigationProperty Name="FmsMaterialCodeLocation" Relationship="iBemsModel.FK__FmsMaterialCodeLocation__CmSite" FromRole="CmSite" ToRole="FmsMaterialCodeLocation" />
+          <NavigationProperty Name="FmsMaterialCodeType" Relationship="iBemsModel.FK__FmsMaterialCodeType__CmSite" FromRole="CmSite" ToRole="FmsMaterialCodeType" />
+          <NavigationProperty Name="FmsMaterialPurchaseOrder" Relationship="iBemsModel.FK__FmsMaterialOrder__CmSite" FromRole="CmSite" ToRole="FmsMaterialPurchaseOrder" />
+          <NavigationProperty Name="FmsMaterialPurchaseRequest" Relationship="iBemsModel.FK__FmsMaterialPurchasingRequest__CmSite" FromRole="CmSite" ToRole="FmsMaterialPurchaseRequest" />
+          <NavigationProperty Name="FmsMaterialStored" Relationship="iBemsModel.FK__FmsMaterialStored__CmSite" FromRole="CmSite" ToRole="FmsMaterialStored" />
+          <NavigationProperty Name="FmsMaterialTradeCompany" Relationship="iBemsModel.FK__FmsMaterialTradeCompany__CmSite" FromRole="CmSite" ToRole="FmsMaterialTradeCompany" />
+          <NavigationProperty Name="FmsMaterialWarehouse" Relationship="iBemsModel.FK__FmsMaterialWarehouse__CmSite" FromRole="CmSite" ToRole="FmsMaterialWarehouse" />
+          <NavigationProperty Name="FmsWorkCodeCauseClass" Relationship="iBemsModel.FK__FmsWorkCodeCauseClass__CmSite" FromRole="CmSite" ToRole="FmsWorkCodeCauseClass" />
+          <NavigationProperty Name="FmsWorkCodeCycleUnit" Relationship="iBemsModel.FK__FmsWorkCodeCycleUnit__CmSite" FromRole="CmSite" ToRole="FmsWorkCodeCycleUnit" />
+          <NavigationProperty Name="FmsWorkCodeEmergency" Relationship="iBemsModel.FK__FmsWorkCodeEmergency__CmSite" FromRole="CmSite" ToRole="FmsWorkCodeEmergency" />
+          <NavigationProperty Name="FmsWorkCodeHolidayWorkType" Relationship="iBemsModel.FK__FmsWorkCodeHolidayWorkType__CmSite" FromRole="CmSite" ToRole="FmsWorkCodeHolidayWorkType" />
+          <NavigationProperty Name="FmsWorkCodeLegalInspectionAgency" Relationship="iBemsModel.FK__FmsWorkCodeLegalInspectionAgency__CmSite" FromRole="CmSite" ToRole="FmsWorkCodeLegalInspectionAgency" />
+          <NavigationProperty Name="FmsWorkOrder" Relationship="iBemsModel.FK__FmsWorkOrder__CmSite" FromRole="CmSite" ToRole="FmsWorkOrder" />
+          <NavigationProperty Name="FmsWorkRequest" Relationship="iBemsModel.FK__FmsWorkRequest__CmSite" FromRole="CmSite" ToRole="FmsWorkRequest" />
+          <NavigationProperty Name="CmZoneTempHumiSet" Relationship="iBemsModel.FK_CmZoneTempHumiSet_CmSite" FromRole="CmSite" ToRole="CmZoneTempHumiSet" />
+          <NavigationProperty Name="FmsMaterial" Relationship="iBemsModel.FK_FmsMaterial_CmSite" FromRole="CmSite" ToRole="FmsMaterial" />
+          <NavigationProperty Name="FmsMaterialRelease" Relationship="iBemsModel.FK_FmsMaterialRelease_CmSite" FromRole="CmSite" ToRole="FmsMaterialRelease" />
+          <NavigationProperty Name="FmsReport" Relationship="iBemsModel.FK_FmsReport_CmSite" FromRole="CmSite" ToRole="FmsReport" />
+          <NavigationProperty Name="CmPatrolHistory" Relationship="iBemsModel.FK_CmPatrolHistory_CmSite" FromRole="CmSite" ToRole="CmPatrolHistory" />
+          <Property Name="controlSchedule" Type="Boolean" />
+          <NavigationProperty Name="CmMenu" Relationship="iBemsModel.FK_CmMenu_CmSite" FromRole="CmSite" ToRole="CmMenu" />
+          <NavigationProperty Name="BemsChartInfo" Relationship="iBemsModel.FK_BemsChartInfo_CmSite" FromRole="CmSite" ToRole="BemsChartInfo" />
+          <Property Name="BuildingSize" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
+          <Property Name="GrossArea" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
+          <Property Name="BuildingArea" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
+          <Property Name="FloorAreaRatio" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
+          <Property Name="BuildingCoverageRatio" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
+          <Property Name="MainUse" Type="String" MaxLength="10" FixedLength="false" Unicode="true" />
+          <Property Name="CompletionDate" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
+          <Property Name="Standard" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
+          <Property Name="MainUseIndex" Type="Int32" />
+          <Property Name="HDD" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
+          <Property Name="CDD" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
+          <NavigationProperty Name="BemsPeopleIncrease" Relationship="iBemsModel.FK_BemsPeopleIncrease_CmSite" FromRole="CmSite" ToRole="BemsPeopleIncrease" />
+          <NavigationProperty Name="BemsRentalRate" Relationship="iBemsModel.FK_BemsRentalRate_CmSite" FromRole="CmSite" ToRole="BemsRentalRate" />
+          <NavigationProperty Name="BemsSitePrice" Relationship="iBemsModel.FK_BemsSitePrice_CmSite1" FromRole="CmSite" ToRole="BemsSitePrice" />
+          <NavigationProperty Name="BemsSitePriceHistory" Relationship="iBemsModel.FK_BemsSitePriceHistory_CmSite" FromRole="CmSite" ToRole="BemsSitePriceHistory" />
+          <NavigationProperty Name="BemsAlarmSetting" Relationship="iBemsModel.FK_BemsAlarmSetting_CmSite1" FromRole="CmSite" ToRole="BemsAlarmSetting" />
+          <NavigationProperty Name="BemsEnergyConfigPercentMonth" Relationship="iBemsModel.FK__BemsEnerg__SiteI__7954A4F6" FromRole="CmSite" ToRole="BemsEnergyConfigPercentMonth" />
+          <NavigationProperty Name="BemsEnergyConfigPercentWeek" Relationship="iBemsModel.FK__BemsEnerg__SiteI__7C3111A1" FromRole="CmSite" ToRole="BemsEnergyConfigPercentWeek" />
+          <NavigationProperty Name="BemsEnergyDailyRegression" Relationship="iBemsModel.FK_BemsEnergyDailyRegression_CmSite" FromRole="CmSite" ToRole="BemsEnergyDailyRegression" />
+        </EntityType>
+        <Association Name="FK_BemsPeakHIstory_CmSite">
+          <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
+          <End Type="iBemsModel.BemsPeakHistory" Role="BemsPeakHistory" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmSite">
+              <PropertyRef Name="SiteId" />
+            </Principal>
+            <Dependent Role="BemsPeakHistory">
+              <PropertyRef Name="SiteId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_BemsPeakInfo_CmSite">
+          <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
+          <End Type="iBemsModel.BemsPeakInfo" Role="BemsPeakInfo" Multiplicity="0..1" />
+          <ReferentialConstraint>
+            <Principal Role="CmSite">
+              <PropertyRef Name="SiteId" />
+            </Principal>
+            <Dependent Role="BemsPeakInfo">
+              <PropertyRef Name="SiteId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__CmBuildin__SiteI__3BFFE745">
+          <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
+          <End Type="iBemsModel.CmBuilding" Role="CmBuilding" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmSite">
+              <PropertyRef Name="SiteId" />
+            </Principal>
+            <Dependent Role="CmBuilding">
+              <PropertyRef Name="SiteId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__CmCompany__SiteI__336AA144">
+          <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
+          <End Type="iBemsModel.CmCompany" Role="CmCompany" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmSite">
+              <PropertyRef Name="SiteId" />
+            </Principal>
+            <Dependent Role="CmCompany">
+              <PropertyRef Name="SiteId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_CmFacilityTempSet_CmSite">
+          <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
+          <End Type="iBemsModel.CmFacilityTempSet" Role="CmFacilityTempSet" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmSite">
+              <PropertyRef Name="SiteId" />
+            </Principal>
+            <Dependent Role="CmFacilityTempSet">
+              <PropertyRef Name="SiteId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__CmFile__SiteId__2759D01A">
+          <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
+          <End Type="iBemsModel.CmFile" Role="CmFile" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmSite">
+              <PropertyRef Name="SiteId" />
+            </Principal>
+            <Dependent Role="CmFile">
+              <PropertyRef Name="SiteId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__CmHoliday__SiteI__0BB1B5A5">
+          <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
+          <End Type="iBemsModel.CmHoliday" Role="CmHoliday" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmSite">
+              <PropertyRef Name="SiteId" />
+            </Principal>
+            <Dependent Role="CmHoliday">
+              <PropertyRef Name="SiteId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__CmHoliday__SiteI__65AC084E">
+          <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
+          <End Type="iBemsModel.CmHoliday" Role="CmHoliday" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmSite">
+              <PropertyRef Name="SiteId" />
+            </Principal>
+            <Dependent Role="CmHoliday">
+              <PropertyRef Name="SiteId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__CmHoliday__SiteI__10766AC2">
+          <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
+          <End Type="iBemsModel.CmHolidayCustom" Role="CmHolidayCustom" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmSite">
+              <PropertyRef Name="SiteId" />
+            </Principal>
+            <Dependent Role="CmHolidayCustom">
+              <PropertyRef Name="SiteId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__CmHoliday__SiteI__66A02C87">
+          <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
+          <End Type="iBemsModel.CmHolidayCustom" Role="CmHolidayCustom" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmSite">
+              <PropertyRef Name="SiteId" />
+            </Principal>
+            <Dependent Role="CmHolidayCustom">
+              <PropertyRef Name="SiteId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__CmHoliday__SiteI__0D99FE17">
+          <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
+          <End Type="iBemsModel.CmHolidayWeekend" Role="CmHolidayWeekend" Multiplicity="0..1" />
+          <ReferentialConstraint>
+            <Principal Role="CmSite">
+              <PropertyRef Name="SiteId" />
+            </Principal>
+            <Dependent Role="CmHolidayWeekend">
+              <PropertyRef Name="SiteId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_CmPatrolCourse_CmSite">
+          <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
+          <End Type="iBemsModel.CmPatrolCourse" Role="CmPatrolCourse" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmSite">
+              <PropertyRef Name="SiteId" />
+            </Principal>
+            <Dependent Role="CmPatrolCourse">
+              <PropertyRef Name="SiteId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_CmPatrolCoursePos_CmSite">
+          <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
+          <End Type="iBemsModel.CmPatrolCoursePos" Role="CmPatrolCoursePos" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmSite">
+              <PropertyRef Name="SiteId" />
+            </Principal>
+            <Dependent Role="CmPatrolCoursePos">
+              <PropertyRef Name="SiteId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_CmPatrolGroup_CmSite">
+          <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
+          <End Type="iBemsModel.CmPatrolGroup" Role="CmPatrolGroup" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmSite">
+              <PropertyRef Name="SiteId" />
+            </Principal>
+            <Dependent Role="CmPatrolGroup">
+              <PropertyRef Name="SiteId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_CmPatrolHistoryPos_CmSite">
+          <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
+          <End Type="iBemsModel.CmPatrolHistoryPos" Role="CmPatrolHistoryPos" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmSite">
+              <PropertyRef Name="SiteId" />
+            </Principal>
+            <Dependent Role="CmPatrolHistoryPos">
+              <PropertyRef Name="SiteId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_CmPatrolPlan_CmSite">
+          <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
+          <End Type="iBemsModel.CmPatrolPlan" Role="CmPatrolPlan" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmSite">
+              <PropertyRef Name="SiteId" />
+            </Principal>
+            <Dependent Role="CmPatrolPlan">
+              <PropertyRef Name="SiteId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_CmPatrolPos_CmSite">
+          <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
+          <End Type="iBemsModel.CmPatrolPos" Role="CmPatrolPos" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmSite">
+              <PropertyRef Name="SiteId" />
+            </Principal>
+            <Dependent Role="CmPatrolPos">
+              <PropertyRef Name="SiteId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_CmPatrolSchedule_CmSite">
+          <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
+          <End Type="iBemsModel.CmPatrolSchedule" Role="CmPatrolSchedule" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmSite">
+              <PropertyRef Name="SiteId" />
+            </Principal>
+            <Dependent Role="CmPatrolSchedule">
+              <PropertyRef Name="SiteId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_CmPatrolType_CmSite">
+          <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
+          <End Type="iBemsModel.CmPatrolType" Role="CmPatrolType" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmSite">
+              <PropertyRef Name="SiteId" />
+            </Principal>
+            <Dependent Role="CmPatrolType">
+              <PropertyRef Name="SiteId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__CmPositio__SiteI__6A70BD6B">
+          <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
+          <End Type="iBemsModel.CmPosition" Role="CmPosition" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmSite">
+              <PropertyRef Name="SiteId" />
+            </Principal>
+            <Dependent Role="CmPosition">
+              <PropertyRef Name="SiteId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__CmUserPos__SiteI__44952D46">
+          <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
+          <End Type="iBemsModel.CmPosition" Role="CmPosition" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmSite">
+              <PropertyRef Name="SiteId" />
+            </Principal>
+            <Dependent Role="CmPosition">
+              <PropertyRef Name="SiteId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__CmUserGro__SiteI__53D770D6">
+          <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
+          <End Type="iBemsModel.CmUserGroup" Role="CmUserGroup" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmSite">
+              <PropertyRef Name="SiteId" />
+            </Principal>
+            <Dependent Role="CmUserGroup">
+              <PropertyRef Name="SiteId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsDrawin__SiteI__6B79F03D">
+          <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
+          <End Type="iBemsModel.FmsDrawingCodeGroup" Role="FmsDrawingCodeGroup" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmSite">
+              <PropertyRef Name="SiteId" />
+            </Principal>
+            <Dependent Role="FmsDrawingCodeGroup">
+              <PropertyRef Name="SiteId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsDrawin__SiteI__6C6E1476">
+          <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
+          <End Type="iBemsModel.FmsDrawingCodeType" Role="FmsDrawingCodeType" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmSite">
+              <PropertyRef Name="SiteId" />
+            </Principal>
+            <Dependent Role="FmsDrawingCodeType">
+              <PropertyRef Name="SiteId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsDrawin__SiteI__6D6238AF">
+          <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
+          <End Type="iBemsModel.FmsDrawing" Role="FmsDrawing" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmSite">
+              <PropertyRef Name="SiteId" />
+            </Principal>
+            <Dependent Role="FmsDrawing">
+              <PropertyRef Name="SiteId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsDrawin__SiteI__6F357288">
+          <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
+          <End Type="iBemsModel.FmsDrawingCodeGroup" Role="FmsDrawingCodeGroup" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmSite">
+              <PropertyRef Name="SiteId" />
+            </Principal>
+            <Dependent Role="FmsDrawingCodeGroup">
+              <PropertyRef Name="SiteId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsDrawin__SiteI__702996C1">
+          <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
+          <End Type="iBemsModel.FmsDrawingCodeType" Role="FmsDrawingCodeType" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmSite">
+              <PropertyRef Name="SiteId" />
+            </Principal>
+            <Dependent Role="FmsDrawingCodeType">
+              <PropertyRef Name="SiteId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsFacilityCodeClass__CmSite">
+          <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1">
+            <OnDelete Action="Cascade" />
+          </End>
+          <End Type="iBemsModel.FmsFacilityCodeClass" Role="FmsFacilityCodeClass" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmSite">
+              <PropertyRef Name="SiteId" />
+            </Principal>
+            <Dependent Role="FmsFacilityCodeClass">
+              <PropertyRef Name="SiteId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsLicense__CmSite">
+          <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
+          <End Type="iBemsModel.FmsLicense" Role="FmsLicense" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmSite">
+              <PropertyRef Name="SiteId" />
+            </Principal>
+            <Dependent Role="FmsLicense">
+              <PropertyRef Name="SiteId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsMaterialCarriedForward__CmSite">
+          <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
+          <End Type="iBemsModel.FmsMaterialCarriedForward" Role="FmsMaterialCarriedForward" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmSite">
+              <PropertyRef Name="SiteId" />
+            </Principal>
+            <Dependent Role="FmsMaterialCarriedForward">
+              <PropertyRef Name="SiteId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsMaterialCodeClass__CmSite">
+          <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
+          <End Type="iBemsModel.FmsMaterialCodeClass" Role="FmsMaterialCodeClass" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmSite">
+              <PropertyRef Name="SiteId" />
+            </Principal>
+            <Dependent Role="FmsMaterialCodeClass">
+              <PropertyRef Name="SiteId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsMaterialCodeLocation__CmSite">
+          <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
+          <End Type="iBemsModel.FmsMaterialCodeLocation" Role="FmsMaterialCodeLocation" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmSite">
+              <PropertyRef Name="SiteId" />
+            </Principal>
+            <Dependent Role="FmsMaterialCodeLocation">
+              <PropertyRef Name="SiteId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsMaterialCodeType__CmSite">
+          <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
+          <End Type="iBemsModel.FmsMaterialCodeType" Role="FmsMaterialCodeType" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmSite">
+              <PropertyRef Name="SiteId" />
+            </Principal>
+            <Dependent Role="FmsMaterialCodeType">
+              <PropertyRef Name="SiteId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsMaterialOrder__CmSite">
+          <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
+          <End Type="iBemsModel.FmsMaterialPurchaseOrder" Role="FmsMaterialPurchaseOrder" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmSite">
+              <PropertyRef Name="SiteId" />
+            </Principal>
+            <Dependent Role="FmsMaterialPurchaseOrder">
+              <PropertyRef Name="SiteId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsMaterialPurchasingRequest__CmSite">
+          <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
+          <End Type="iBemsModel.FmsMaterialPurchaseRequest" Role="FmsMaterialPurchaseRequest" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmSite">
+              <PropertyRef Name="SiteId" />
+            </Principal>
+            <Dependent Role="FmsMaterialPurchaseRequest">
+              <PropertyRef Name="SiteId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsMaterialStored__CmSite">
+          <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
+          <End Type="iBemsModel.FmsMaterialStored" Role="FmsMaterialStored" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmSite">
+              <PropertyRef Name="SiteId" />
+            </Principal>
+            <Dependent Role="FmsMaterialStored">
+              <PropertyRef Name="SiteId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsMaterialTradeCompany__CmSite">
+          <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
+          <End Type="iBemsModel.FmsMaterialTradeCompany" Role="FmsMaterialTradeCompany" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmSite">
+              <PropertyRef Name="SiteId" />
+            </Principal>
+            <Dependent Role="FmsMaterialTradeCompany">
+              <PropertyRef Name="SiteId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsMaterialWarehouse__CmSite">
+          <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
+          <End Type="iBemsModel.FmsMaterialWarehouse" Role="FmsMaterialWarehouse" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmSite">
+              <PropertyRef Name="SiteId" />
+            </Principal>
+            <Dependent Role="FmsMaterialWarehouse">
+              <PropertyRef Name="SiteId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsWorkCodeCauseClass__CmSite">
+          <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
+          <End Type="iBemsModel.FmsWorkCodeCauseClass" Role="FmsWorkCodeCauseClass" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmSite">
+              <PropertyRef Name="SiteId" />
+            </Principal>
+            <Dependent Role="FmsWorkCodeCauseClass">
+              <PropertyRef Name="SiteId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsWorkCodeCycleUnit__CmSite">
+          <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
+          <End Type="iBemsModel.FmsWorkCodeCycleUnit" Role="FmsWorkCodeCycleUnit" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmSite">
+              <PropertyRef Name="SiteId" />
+            </Principal>
+            <Dependent Role="FmsWorkCodeCycleUnit">
+              <PropertyRef Name="SiteId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsWorkCodeEmergency__CmSite">
+          <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
+          <End Type="iBemsModel.FmsWorkCodeEmergency" Role="FmsWorkCodeEmergency" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmSite">
+              <PropertyRef Name="SiteId" />
+            </Principal>
+            <Dependent Role="FmsWorkCodeEmergency">
+              <PropertyRef Name="SiteId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsWorkCodeHolidayWorkType__CmSite">
+          <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
+          <End Type="iBemsModel.FmsWorkCodeHolidayWorkType" Role="FmsWorkCodeHolidayWorkType" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmSite">
+              <PropertyRef Name="SiteId" />
+            </Principal>
+            <Dependent Role="FmsWorkCodeHolidayWorkType">
+              <PropertyRef Name="SiteId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsWorkCodeLegalInspectionAgency__CmSite">
+          <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
+          <End Type="iBemsModel.FmsWorkCodeLegalInspectionAgency" Role="FmsWorkCodeLegalInspectionAgency" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmSite">
+              <PropertyRef Name="SiteId" />
+            </Principal>
+            <Dependent Role="FmsWorkCodeLegalInspectionAgency">
+              <PropertyRef Name="SiteId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsWorkOrder__CmSite">
+          <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
+          <End Type="iBemsModel.FmsWorkOrder" Role="FmsWorkOrder" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmSite">
+              <PropertyRef Name="SiteId" />
+            </Principal>
+            <Dependent Role="FmsWorkOrder">
+              <PropertyRef Name="SiteId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsWorkRequest__CmSite">
+          <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
+          <End Type="iBemsModel.FmsWorkRequest" Role="FmsWorkRequest" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmSite">
+              <PropertyRef Name="SiteId" />
+            </Principal>
+            <Dependent Role="FmsWorkRequest">
+              <PropertyRef Name="SiteId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_CmZoneTempHumiSet_CmSite">
+          <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
+          <End Type="iBemsModel.CmZoneTempHumiSet" Role="CmZoneTempHumiSet" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmSite">
+              <PropertyRef Name="SiteId" />
+            </Principal>
+            <Dependent Role="CmZoneTempHumiSet">
+              <PropertyRef Name="SiteId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsMaterial_CmSite">
+          <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
+          <End Type="iBemsModel.FmsMaterial" Role="FmsMaterial" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmSite">
+              <PropertyRef Name="SiteId" />
+            </Principal>
+            <Dependent Role="FmsMaterial">
+              <PropertyRef Name="SiteId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsMaterialRelease_CmSite">
+          <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
+          <End Type="iBemsModel.FmsMaterialRelease" Role="FmsMaterialRelease" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmSite">
+              <PropertyRef Name="SiteId" />
+            </Principal>
+            <Dependent Role="FmsMaterialRelease">
+              <PropertyRef Name="SiteId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <EntityType Name="FmsReport">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="RId" />
+          </Key>
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="RId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+          <Property Name="Title" Type="String" MaxLength="128" FixedLength="false" Unicode="true" />
+          <Property Name="Contents" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
+          <Property Name="RegisterUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
+          <Property Name="FileId" Type="Int32" />
+          <Property Name="MakeDate" Type="DateTime" Nullable="false" Precision="3" />
+          <Property Name="ConfirmUserId1" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
+          <Property Name="ConfirmUserId2" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
+          <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
+          <NavigationProperty Name="CmBusinessField" Relationship="iBemsModel.FK_FmsReport_CmBusinessField" FromRole="FmsReport" ToRole="CmBusinessField" />
+          <NavigationProperty Name="CmFile" Relationship="iBemsModel.FK_FmsReport_CmFile" FromRole="FmsReport" ToRole="CmFile" />
+          <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_FmsReport_CmSite" FromRole="FmsReport" ToRole="CmSite" />
+          <NavigationProperty Name="CmUser" Relationship="iBemsModel.FK_FmsReport_CmUser" FromRole="FmsReport" ToRole="CmUser" />
+          <NavigationProperty Name="CmUser1" Relationship="iBemsModel.FK_FmsReport_CmUser1" FromRole="FmsReport" ToRole="CmUser" />
+          <NavigationProperty Name="CmUser2" Relationship="iBemsModel.FK_FmsReport_CmUser2" FromRole="FmsReport" ToRole="CmUser" />
+        </EntityType>
+        <Association Name="FK_FmsReport_CmBusinessField">
+          <End Type="iBemsModel.CmBusinessField" Role="CmBusinessField" Multiplicity="1" />
+          <End Type="iBemsModel.FmsReport" Role="FmsReport" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmBusinessField">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="BusinessFieldId" />
+            </Principal>
+            <Dependent Role="FmsReport">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="BusinessFieldId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsReport_CmFile">
+          <End Type="iBemsModel.CmFile" Role="CmFile" Multiplicity="0..1" />
+          <End Type="iBemsModel.FmsReport" Role="FmsReport" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmFile">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FileId" />
+            </Principal>
+            <Dependent Role="FmsReport">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FileId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsReport_CmSite">
+          <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
+          <End Type="iBemsModel.FmsReport" Role="FmsReport" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmSite">
+              <PropertyRef Name="SiteId" />
+            </Principal>
+            <Dependent Role="FmsReport">
+              <PropertyRef Name="SiteId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsReport_CmUser">
+          <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="0..1" />
+          <End Type="iBemsModel.FmsReport" Role="FmsReport" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmUser">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="UserId" />
+            </Principal>
+            <Dependent Role="FmsReport">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="RegisterUserId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsReport_CmUser1">
+          <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="0..1" />
+          <End Type="iBemsModel.FmsReport" Role="FmsReport" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmUser">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="UserId" />
+            </Principal>
+            <Dependent Role="FmsReport">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="ConfirmUserId1" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsReport_CmUser2">
+          <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="0..1" />
+          <End Type="iBemsModel.FmsReport" Role="FmsReport" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmUser">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="UserId" />
+            </Principal>
+            <Dependent Role="FmsReport">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="ConfirmUserId2" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <EntityType Name="CmServiceEnergyCalcMonth">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="calDate" />
+            <PropertyRef Name="ServiceTypeId" />
+          </Key>
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="calDate" Type="DateTime" Nullable="false" Precision="3" />
+          <Property Name="ServiceTypeId" Type="Int16" Nullable="false" />
+          <Property Name="Value" Type="Double" />
+        </EntityType>
+        <EntityType Name="CmServiceEnergyCalcDay">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="calDate" />
+            <PropertyRef Name="ServiceTypeId" />
+          </Key>
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="calDate" Type="DateTime" Nullable="false" Precision="3" />
+          <Property Name="ServiceTypeId" Type="Int16" Nullable="false" />
+          <Property Name="Value" Type="Double" />
+        </EntityType>
+        <EntityType Name="CmPatrolHistory">
+          <Key>
+            <PropertyRef Name="PatrolHistoryId" />
+          </Key>
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="PatrolHistoryId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+          <Property Name="ScheduleId" Type="Int32" Nullable="false" />
+          <Property Name="startDate" Type="DateTime" Nullable="false" Precision="3" />
+          <Property Name="endDate" Type="DateTime" Precision="3" />
+          <Property Name="resultTypeId" Type="Int32" Nullable="false" />
+          <Property Name="resultDesc" Type="String" MaxLength="1024" FixedLength="false" Unicode="false" />
+          <Property Name="resultPosCnt" Type="Int32" />
+          <Property Name="resultNormalCnt" Type="Int32" />
+          <Property Name="resultAbnormalCnt" Type="Int32" />
+          <NavigationProperty Name="CmPatrolSchedule" Relationship="iBemsModel.FK_CmPatrolHistory_CmPatrolSchedule" FromRole="CmPatrolHistory" ToRole="CmPatrolSchedule" />
+          <NavigationProperty Name="CmPatrolType" Relationship="iBemsModel.FK_CmPatrolHistory_CmPatrolType" FromRole="CmPatrolHistory" ToRole="CmPatrolType" />
+          <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_CmPatrolHistory_CmSite" FromRole="CmPatrolHistory" ToRole="CmSite" />
+        </EntityType>
+        <Association Name="FK_CmPatrolHistory_CmPatrolSchedule">
+          <End Type="iBemsModel.CmPatrolSchedule" Role="CmPatrolSchedule" Multiplicity="1" />
+          <End Type="iBemsModel.CmPatrolHistory" Role="CmPatrolHistory" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmPatrolSchedule">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="ScheduleId" />
+            </Principal>
+            <Dependent Role="CmPatrolHistory">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="ScheduleId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_CmPatrolHistory_CmPatrolType">
+          <End Type="iBemsModel.CmPatrolType" Role="CmPatrolType" Multiplicity="1" />
+          <End Type="iBemsModel.CmPatrolHistory" Role="CmPatrolHistory" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmPatrolType">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="PatrolTypeId" />
+            </Principal>
+            <Dependent Role="CmPatrolHistory">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="resultTypeId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_CmPatrolHistory_CmSite">
+          <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
+          <End Type="iBemsModel.CmPatrolHistory" Role="CmPatrolHistory" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmSite">
+              <PropertyRef Name="SiteId" />
+            </Principal>
+            <Dependent Role="CmPatrolHistory">
+              <PropertyRef Name="SiteId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <EntityType Name="BemsReportFormat">
+          <Key>
+            <PropertyRef Name="ReportFormatId" />
+            <PropertyRef Name="parts" />
+          </Key>
+          <Property Name="ReportFormatId" Type="Int32" Nullable="false" />
+          <Property Name="FormatName" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="false" />
+          <Property Name="Content" Type="String" MaxLength="Max" FixedLength="false" Unicode="false" />
+          <Property Name="parts" Type="Int32" Nullable="false" />
+        </EntityType>
+        <EntityType Name="FmsWorkSchedule">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="WorkScheduleId" />
+          </Key>
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="WorkScheduleId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+          <Property Name="WorkTypeId" Type="Int32" Nullable="false" />
+          <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
+          <Property Name="Name" Type="String" Nullable="false" MaxLength="100" FixedLength="false" Unicode="true" />
+          <Property Name="InspectionAgencyId" Type="Int32" />
+          <Property Name="CycleSize" Type="Int32" Nullable="false" />
+          <Property Name="CycleUnitId" Type="Int32" Nullable="false" />
+          <Property Name="HolidayWorkTypeId" Type="Int32" Nullable="false" />
+          <Property Name="WorkDueDate" Type="DateTime" Nullable="false" Precision="3" />
+          <Property Name="UpdateUserId" Type="String" Nullable="false" MaxLength="24" FixedLength="false" Unicode="true" />
+          <Property Name="IsUse" Type="Boolean" Nullable="false" />
+          <Property Name="IsAutoOrder" Type="Boolean" Nullable="false" />
+          <Property Name="Content" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
+          <NavigationProperty Name="CmBusinessField" Relationship="iBemsModel.FK__FmsWorkSchedule__CmBusinessField" FromRole="FmsWorkSchedule" ToRole="CmBusinessField" />
+          <NavigationProperty Name="CmUser" Relationship="iBemsModel.FK__FmsWorkSchedule__CmUser" FromRole="FmsWorkSchedule" ToRole="CmUser" />
+          <NavigationProperty Name="FmsWorkCodeCycleUnit" Relationship="iBemsModel.FK__FmsWorkSchedule__FmsWorkCodeCycleUnit" FromRole="FmsWorkSchedule" ToRole="FmsWorkCodeCycleUnit" />
+          <NavigationProperty Name="FmsWorkCodeHolidayWorkType" Relationship="iBemsModel.FK__FmsWorkSchedule__FmsWorkCodeHolidayWorkType" FromRole="FmsWorkSchedule" ToRole="FmsWorkCodeHolidayWorkType" />
+          <NavigationProperty Name="FmsWorkCodeType" Relationship="iBemsModel.FK__FmsWorkSchedule__FmsWorkCodeWorkType" FromRole="FmsWorkSchedule" ToRole="FmsWorkCodeType" />
+          <NavigationProperty Name="FmsWorkRequest" Relationship="iBemsModel.FK__FmsWorkRequest__FmsWorkSchedule" FromRole="FmsWorkSchedule" ToRole="FmsWorkRequest" />
+          <NavigationProperty Name="FmsWorkScheduleToFacility" Relationship="iBemsModel.FK__FmsWorkScheduleToFacility__FmsWorkSchedule" FromRole="FmsWorkSchedule" ToRole="FmsWorkScheduleToFacility" />
+          <NavigationProperty Name="CmPartner" Relationship="iBemsModel.FK_FmsWorkSchedule_CmPartner" FromRole="FmsWorkSchedule" ToRole="CmPartner" />
+        </EntityType>
+        <Association Name="FK__FmsWorkSchedule__CmBusinessField">
+          <End Type="iBemsModel.CmBusinessField" Role="CmBusinessField" Multiplicity="1" />
+          <End Type="iBemsModel.FmsWorkSchedule" Role="FmsWorkSchedule" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmBusinessField">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="BusinessFieldId" />
+            </Principal>
+            <Dependent Role="FmsWorkSchedule">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="BusinessFieldId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsWorkSchedule__CmUser">
+          <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="1" />
+          <End Type="iBemsModel.FmsWorkSchedule" Role="FmsWorkSchedule" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmUser">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="UserId" />
+            </Principal>
+            <Dependent Role="FmsWorkSchedule">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="UpdateUserId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsWorkSchedule__FmsWorkCodeCycleUnit">
+          <End Type="iBemsModel.FmsWorkCodeCycleUnit" Role="FmsWorkCodeCycleUnit" Multiplicity="1" />
+          <End Type="iBemsModel.FmsWorkSchedule" Role="FmsWorkSchedule" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="FmsWorkCodeCycleUnit">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="CycleUnitId" />
+            </Principal>
+            <Dependent Role="FmsWorkSchedule">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="CycleUnitId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsWorkSchedule__FmsWorkCodeHolidayWorkType">
+          <End Type="iBemsModel.FmsWorkCodeHolidayWorkType" Role="FmsWorkCodeHolidayWorkType" Multiplicity="1" />
+          <End Type="iBemsModel.FmsWorkSchedule" Role="FmsWorkSchedule" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="FmsWorkCodeHolidayWorkType">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="HolidayWorkTypeId" />
+            </Principal>
+            <Dependent Role="FmsWorkSchedule">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="HolidayWorkTypeId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsWorkSchedule__FmsWorkCodeWorkType">
+          <End Type="iBemsModel.FmsWorkCodeType" Role="FmsWorkCodeType" Multiplicity="1" />
+          <End Type="iBemsModel.FmsWorkSchedule" Role="FmsWorkSchedule" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="FmsWorkCodeType">
+              <PropertyRef Name="WorkTypeId" />
+            </Principal>
+            <Dependent Role="FmsWorkSchedule">
+              <PropertyRef Name="WorkTypeId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsWorkRequest__FmsWorkSchedule">
+          <End Type="iBemsModel.FmsWorkSchedule" Role="FmsWorkSchedule" Multiplicity="0..1" />
+          <End Type="iBemsModel.FmsWorkRequest" Role="FmsWorkRequest" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="FmsWorkSchedule">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="WorkScheduleId" />
+            </Principal>
+            <Dependent Role="FmsWorkRequest">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="WorkScheduleId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsWorkScheduleToFacility__FmsWorkSchedule">
+          <End Type="iBemsModel.FmsWorkSchedule" Role="FmsWorkSchedule" Multiplicity="1" />
+          <End Type="iBemsModel.FmsWorkScheduleToFacility" Role="FmsWorkScheduleToFacility" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="FmsWorkSchedule">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="WorkScheduleId" />
+            </Principal>
+            <Dependent Role="FmsWorkScheduleToFacility">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="WorkScheduleId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+	<EntityType Name="CmMenu">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="MenuId" />
+          </Key>
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="MenuId" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
+          <Property Name="Used" Type="Boolean" />
+          <Property Name="MenuPath" Type="String" MaxLength="255" FixedLength="false" Unicode="true" />
+          <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
+          <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_CmMenu_CmSite" FromRole="CmMenu" ToRole="CmSite" />
+        </EntityType>
+        <Association Name="FK_FmsWorkResultCheckItem_CmFile">
+          <End Type="iBemsModel.CmFile" Role="CmFile" Multiplicity="0..1" />
+          <End Type="iBemsModel.FmsWorkResultCheckItem" Role="FmsWorkResultCheckItem" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmFile">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FileId" />
+            </Principal>
+            <Dependent Role="FmsWorkResultCheckItem">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FileId1" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsWorkResultCheckItem_CmFile1">
+          <End Type="iBemsModel.CmFile" Role="CmFile" Multiplicity="0..1" />
+          <End Type="iBemsModel.FmsWorkResultCheckItem" Role="FmsWorkResultCheckItem" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmFile">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FileId" />
+            </Principal>
+            <Dependent Role="FmsWorkResultCheckItem">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FileId2" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_CmMenu_CmSite">
+          <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
+          <End Type="iBemsModel.CmMenu" Role="CmMenu" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmSite">
+              <PropertyRef Name="SiteId" />
+            </Principal>
+            <Dependent Role="CmMenu">
+              <PropertyRef Name="SiteId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <EntityType Name="BemsChartInfo">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="FacilityTypeId" />
+            <PropertyRef Name="ChartId" />
+          </Key>
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
+          <Property Name="ChartId" Type="Int32" Nullable="false" />
+          <Property Name="LAxTitle" Type="String" Nullable="false" MaxLength="64" FixedLength="false" Unicode="true" />
+          <Property Name="RAxTitle" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
+          <Property Name="XAxTitle" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
+          <Property Name="XSFmId" Type="Int32" />
+          <Property Name="XSType" Type="String" MaxLength="16" FixedLength="false" Unicode="true" />
+          <Property Name="LSFmId1" Type="Int32" Nullable="false" />
+          <Property Name="LSName1" Type="String" Nullable="false" MaxLength="64" FixedLength="false" Unicode="true" />
+          <Property Name="LSType1" Type="String" Nullable="false" MaxLength="16" FixedLength="false" Unicode="true" />
+          <Property Name="LSFmId2" Type="Int32" />
+          <Property Name="LSName2" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
+          <Property Name="LSType2" Type="String" MaxLength="16" FixedLength="false" Unicode="true" />
+          <Property Name="LSFmId3" Type="Int32" />
+          <Property Name="LSName3" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
+          <Property Name="LSType3" Type="String" MaxLength="16" FixedLength="false" Unicode="true" />
+          <Property Name="LSFmId4" Type="Int32" />
+          <Property Name="LSName4" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
+          <Property Name="LSType4" Type="String" MaxLength="16" FixedLength="false" Unicode="true" />
+          <Property Name="RSFmId1" Type="Int32" />
+          <Property Name="RSName1" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
+          <Property Name="RSType1" Type="String" MaxLength="16" FixedLength="false" Unicode="true" />
+          <Property Name="RSFmId2" Type="Int32" />
+          <Property Name="RSName2" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
+          <Property Name="RSType2" Type="String" MaxLength="16" FixedLength="false" Unicode="true" />
+          <Property Name="RSFmId3" Type="Int32" />
+          <Property Name="RSName3" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
+          <Property Name="RSType3" Type="String" MaxLength="16" FixedLength="false" Unicode="true" />
+          <Property Name="RSFmId4" Type="Int32" />
+          <Property Name="RSName4" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
+          <Property Name="RSType4" Type="String" MaxLength="16" FixedLength="false" Unicode="true" />
+          <Property Name="Title" Type="String" Nullable="false" MaxLength="64" FixedLength="false" Unicode="true" />
+          <Property Name="UseX" Type="Boolean" />
+          <Property Name="UseLAxMinMax" Type="Boolean" />
+          <Property Name="UseRAxMinMax" Type="Boolean" />
+          <Property Name="UseXAxMinMax" Type="Boolean" />
+          <Property Name="LAxMin" Type="Double" />
+          <Property Name="LAxMax" Type="Double" />
+          <Property Name="RAxMin" Type="Double" />
+          <Property Name="RAxMax" Type="Double" />
+          <Property Name="XAxMin" Type="Double" />
+          <Property Name="XAxMax" Type="Double" />
+          <Property Name="Palette" Type="String" Nullable="false" MaxLength="32" FixedLength="false" Unicode="true" />
+          <Property Name="UseChart" Type="Boolean" />
+          <Property Name="UseLCTLine" Type="Boolean" Nullable="false" />
+          <Property Name="LCTLineTitle" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
+          <Property Name="LCTLineValue" Type="Double" />
+          <Property Name="UseRCTLine" Type="Boolean" Nullable="false" />
+          <Property Name="RCTLineTitle" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
+          <Property Name="RCTLineValue" Type="Double" />
+          <NavigationProperty Name="BemsFacilityType" Relationship="iBemsModel.FK_BemsChartInfo_BemsFacilityType" FromRole="BemsChartInfo" ToRole="BemsFacilityType" />
+          <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_BemsChartInfo_CmSite" FromRole="BemsChartInfo" ToRole="CmSite" />
+        </EntityType>
+        <Association Name="FK_BemsChartInfo_BemsFacilityType">
+          <End Type="iBemsModel.BemsFacilityType" Role="BemsFacilityType" Multiplicity="1" />
+          <End Type="iBemsModel.BemsChartInfo" Role="BemsChartInfo" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="BemsFacilityType">
+              <PropertyRef Name="FacilityTypeId" />
+            </Principal>
+            <Dependent Role="BemsChartInfo">
+              <PropertyRef Name="FacilityTypeId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_BemsChartInfo_CmSite">
+          <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
+          <End Type="iBemsModel.BemsChartInfo" Role="BemsChartInfo" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmSite">
+              <PropertyRef Name="SiteId" />
+            </Principal>
+            <Dependent Role="BemsChartInfo">
+              <PropertyRef Name="SiteId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <EntityType Name="BemsPeopleIncrease">
+          <Key>
+            <PropertyRef Name="Date" />
+            <PropertyRef Name="SiteId" />
+          </Key>
+          <Property Name="Date" Type="String" Nullable="false" MaxLength="5" FixedLength="false" Unicode="true" />
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="m1" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
+          <Property Name="m2" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
+          <Property Name="m3" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
+          <Property Name="m4" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
+          <Property Name="m5" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
+          <Property Name="m6" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
+          <Property Name="m7" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
+          <Property Name="m8" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
+          <Property Name="m9" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
+          <Property Name="m10" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
+          <Property Name="m11" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
+          <Property Name="m12" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
+          <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_BemsPeopleIncrease_CmSite" FromRole="BemsPeopleIncrease" ToRole="CmSite" />
+        </EntityType>
+        <EntityType Name="BemsPriceCode">
+          <Key>
+            <PropertyRef Name="PriceCode" />
+          </Key>
+          <Property Name="PriceCode" Type="String" Nullable="false" MaxLength="20" FixedLength="false" Unicode="false" />
+          <Property Name="PriceCodeDesc" Type="String" MaxLength="200" FixedLength="false" Unicode="false" />
+          <Property Name="FuelTypeId" Type="Int16" Nullable="false" />
+          <Property Name="Unit" Type="String" MaxLength="20" FixedLength="false" Unicode="false" />
+          <NavigationProperty Name="BemsSitePrice" Relationship="iBemsModel.FK_BemsSitePrice_BemsPriceCode" FromRole="BemsPriceCode" ToRole="BemsSitePrice" />
+          <NavigationProperty Name="BemsSitePriceHistory" Relationship="iBemsModel.FK_BemsSitePriceHistory_BemsPriceCode" FromRole="BemsPriceCode" ToRole="BemsSitePriceHistory" />
+          <NavigationProperty Name="BemsFuelType" Relationship="iBemsModel.FK_BemsPriceCode_BemsFuelType" FromRole="BemsPriceCode" ToRole="BemsFuelType" />
+        </EntityType>
+        <EntityType Name="BemsPriceFormula">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="PriceTypeId" />
+            <PropertyRef Name="FacilityTypeId" />
+            <PropertyRef Name="FormulaId" />
+            <PropertyRef Name="FacilityCode" />
+          </Key>
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="PriceTypeId" Type="Int32" Nullable="false" />
+          <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
+          <Property Name="FormulaId" Type="Int32" Nullable="false" />
+          <Property Name="FacilityCode" Type="Int32" Nullable="false" />
+          <Property Name="UseYN" Type="String" Nullable="false" MaxLength="1" FixedLength="false" Unicode="true" />
+          <NavigationProperty Name="BemsFormula" Relationship="iBemsModel.FK_BemsPriceFormula_BemsFormula" FromRole="BemsPriceFormula" ToRole="BemsFormula" />
+          <NavigationProperty Name="BemsPriceType" Relationship="iBemsModel.FK_BemsPriceFormula_BemsPriceType" FromRole="BemsPriceFormula" ToRole="BemsPriceType" />
+        </EntityType>
+        <EntityType Name="BemsPriceMeta">
+          <Key>
+            <PropertyRef Name="PriceTypeId" />
+            <PropertyRef Name="PublishDate" />
+          </Key>
+          <Property Name="PriceTypeId" Type="Int32" Nullable="false" />
+          <Property Name="PublishDate" Type="DateTime" Nullable="false" Precision="3" />
+          <Property Name="BasePrice" Type="Int32" />
+          <Property Name="C01_00" Type="Double" />
+          <Property Name="C01_01" Type="Double" />
+          <Property Name="C01_02" Type="Double" />
+          <Property Name="C01_03" Type="Double" />
+          <Property Name="C01_04" Type="Double" />
+          <Property Name="C01_05" Type="Double" />
+          <Property Name="C01_06" Type="Double" />
+          <Property Name="C01_07" Type="Double" />
+          <Property Name="C01_08" Type="Double" />
+          <Property Name="C01_09" Type="Double" />
+          <Property Name="C01_10" Type="Double" />
+          <Property Name="C01_11" Type="Double" />
+          <Property Name="C01_12" Type="Double" />
+          <Property Name="C01_13" Type="Double" />
+          <Property Name="C01_14" Type="Double" />
+          <Property Name="C01_15" Type="Double" />
+          <Property Name="C01_16" Type="Double" />
+          <Property Name="C01_17" Type="Double" />
+          <Property Name="C01_18" Type="Double" />
+          <Property Name="C01_19" Type="Double" />
+          <Property Name="C01_20" Type="Double" />
+          <Property Name="C01_21" Type="Double" />
+          <Property Name="C01_22" Type="Double" />
+          <Property Name="C01_23" Type="Double" />
+          <Property Name="C02_00" Type="Double" />
+          <Property Name="C02_01" Type="Double" />
+          <Property Name="C02_02" Type="Double" />
+          <Property Name="C02_03" Type="Double" />
+          <Property Name="C02_04" Type="Double" />
+          <Property Name="C02_05" Type="Double" />
+          <Property Name="C02_06" Type="Double" />
+          <Property Name="C02_07" Type="Double" />
+          <Property Name="C02_08" Type="Double" />
+          <Property Name="C02_09" Type="Double" />
+          <Property Name="C02_10" Type="Double" />
+          <Property Name="C02_11" Type="Double" />
+          <Property Name="C02_12" Type="Double" />
+          <Property Name="C02_13" Type="Double" />
+          <Property Name="C02_14" Type="Double" />
+          <Property Name="C02_15" Type="Double" />
+          <Property Name="C02_16" Type="Double" />
+          <Property Name="C02_17" Type="Double" />
+          <Property Name="C02_18" Type="Double" />
+          <Property Name="C02_19" Type="Double" />
+          <Property Name="C02_20" Type="Double" />
+          <Property Name="C02_21" Type="Double" />
+          <Property Name="C02_22" Type="Double" />
+          <Property Name="C02_23" Type="Double" />
+          <Property Name="C03_00" Type="Double" />
+          <Property Name="C03_01" Type="Double" />
+          <Property Name="C03_02" Type="Double" />
+          <Property Name="C03_03" Type="Double" />
+          <Property Name="C03_04" Type="Double" />
+          <Property Name="C03_05" Type="Double" />
+          <Property Name="C03_06" Type="Double" />
+          <Property Name="C03_07" Type="Double" />
+          <Property Name="C03_08" Type="Double" />
+          <Property Name="C03_09" Type="Double" />
+          <Property Name="C03_10" Type="Double" />
+          <Property Name="C03_11" Type="Double" />
+          <Property Name="C03_12" Type="Double" />
+          <Property Name="C03_13" Type="Double" />
+          <Property Name="C03_14" Type="Double" />
+          <Property Name="C03_15" Type="Double" />
+          <Property Name="C03_16" Type="Double" />
+          <Property Name="C03_17" Type="Double" />
+          <Property Name="C03_18" Type="Double" />
+          <Property Name="C03_19" Type="Double" />
+          <Property Name="C03_20" Type="Double" />
+          <Property Name="C03_21" Type="Double" />
+          <Property Name="C03_22" Type="Double" />
+          <Property Name="C03_23" Type="Double" />
+          <Property Name="C04_00" Type="Double" />
+          <Property Name="C04_01" Type="Double" />
+          <Property Name="C04_02" Type="Double" />
+          <Property Name="C04_03" Type="Double" />
+          <Property Name="C04_04" Type="Double" />
+          <Property Name="C04_05" Type="Double" />
+          <Property Name="C04_06" Type="Double" />
+          <Property Name="C04_07" Type="Double" />
+          <Property Name="C04_08" Type="Double" />
+          <Property Name="C04_09" Type="Double" />
+          <Property Name="C04_10" Type="Double" />
+          <Property Name="C04_11" Type="Double" />
+          <Property Name="C04_12" Type="Double" />
+          <Property Name="C04_13" Type="Double" />
+          <Property Name="C04_14" Type="Double" />
+          <Property Name="C04_15" Type="Double" />
+          <Property Name="C04_16" Type="Double" />
+          <Property Name="C04_17" Type="Double" />
+          <Property Name="C04_18" Type="Double" />
+          <Property Name="C04_19" Type="Double" />
+          <Property Name="C04_20" Type="Double" />
+          <Property Name="C04_21" Type="Double" />
+          <Property Name="C04_22" Type="Double" />
+          <Property Name="C04_23" Type="Double" />
+          <Property Name="C05_00" Type="Double" />
+          <Property Name="C05_01" Type="Double" />
+          <Property Name="C05_02" Type="Double" />
+          <Property Name="C05_03" Type="Double" />
+          <Property Name="C05_04" Type="Double" />
+          <Property Name="C05_05" Type="Double" />
+          <Property Name="C05_06" Type="Double" />
+          <Property Name="C05_07" Type="Double" />
+          <Property Name="C05_08" Type="Double" />
+          <Property Name="C05_09" Type="Double" />
+          <Property Name="C05_10" Type="Double" />
+          <Property Name="C05_11" Type="Double" />
+          <Property Name="C05_12" Type="Double" />
+          <Property Name="C05_13" Type="Double" />
+          <Property Name="C05_14" Type="Double" />
+          <Property Name="C05_15" Type="Double" />
+          <Property Name="C05_16" Type="Double" />
+          <Property Name="C05_17" Type="Double" />
+          <Property Name="C05_18" Type="Double" />
+          <Property Name="C05_19" Type="Double" />
+          <Property Name="C05_20" Type="Double" />
+          <Property Name="C05_21" Type="Double" />
+          <Property Name="C05_22" Type="Double" />
+          <Property Name="C05_23" Type="Double" />
+          <Property Name="C06_00" Type="Double" />
+          <Property Name="C06_01" Type="Double" />
+          <Property Name="C06_02" Type="Double" />
+          <Property Name="C06_03" Type="Double" />
+          <Property Name="C06_04" Type="Double" />
+          <Property Name="C06_05" Type="Double" />
+          <Property Name="C06_06" Type="Double" />
+          <Property Name="C06_07" Type="Double" />
+          <Property Name="C06_08" Type="Double" />
+          <Property Name="C06_09" Type="Double" />
+          <Property Name="C06_10" Type="Double" />
+          <Property Name="C06_11" Type="Double" />
+          <Property Name="C06_12" Type="Double" />
+          <Property Name="C06_13" Type="Double" />
+          <Property Name="C06_14" Type="Double" />
+          <Property Name="C06_15" Type="Double" />
+          <Property Name="C06_16" Type="Double" />
+          <Property Name="C06_17" Type="Double" />
+          <Property Name="C06_18" Type="Double" />
+          <Property Name="C06_19" Type="Double" />
+          <Property Name="C06_20" Type="Double" />
+          <Property Name="C06_21" Type="Double" />
+          <Property Name="C06_22" Type="Double" />
+          <Property Name="C06_23" Type="Double" />
+          <Property Name="C07_00" Type="Double" />
+          <Property Name="C07_01" Type="Double" />
+          <Property Name="C07_02" Type="Double" />
+          <Property Name="C07_03" Type="Double" />
+          <Property Name="C07_04" Type="Double" />
+          <Property Name="C07_05" Type="Double" />
+          <Property Name="C07_06" Type="Double" />
+          <Property Name="C07_07" Type="Double" />
+          <Property Name="C07_08" Type="Double" />
+          <Property Name="C07_09" Type="Double" />
+          <Property Name="C07_10" Type="Double" />
+          <Property Name="C07_11" Type="Double" />
+          <Property Name="C07_12" Type="Double" />
+          <Property Name="C07_13" Type="Double" />
+          <Property Name="C07_14" Type="Double" />
+          <Property Name="C07_15" Type="Double" />
+          <Property Name="C07_16" Type="Double" />
+          <Property Name="C07_17" Type="Double" />
+          <Property Name="C07_18" Type="Double" />
+          <Property Name="C07_19" Type="Double" />
+          <Property Name="C07_20" Type="Double" />
+          <Property Name="C07_21" Type="Double" />
+          <Property Name="C07_22" Type="Double" />
+          <Property Name="C07_23" Type="Double" />
+          <Property Name="C08_00" Type="Double" />
+          <Property Name="C08_01" Type="Double" />
+          <Property Name="C08_02" Type="Double" />
+          <Property Name="C08_03" Type="Double" />
+          <Property Name="C08_04" Type="Double" />
+          <Property Name="C08_05" Type="Double" />
+          <Property Name="C08_06" Type="Double" />
+          <Property Name="C08_07" Type="Double" />
+          <Property Name="C08_08" Type="Double" />
+          <Property Name="C08_09" Type="Double" />
+          <Property Name="C08_10" Type="Double" />
+          <Property Name="C08_11" Type="Double" />
+          <Property Name="C08_12" Type="Double" />
+          <Property Name="C08_13" Type="Double" />
+          <Property Name="C08_14" Type="Double" />
+          <Property Name="C08_15" Type="Double" />
+          <Property Name="C08_16" Type="Double" />
+          <Property Name="C08_17" Type="Double" />
+          <Property Name="C08_18" Type="Double" />
+          <Property Name="C08_19" Type="Double" />
+          <Property Name="C08_20" Type="Double" />
+          <Property Name="C08_21" Type="Double" />
+          <Property Name="C08_22" Type="Double" />
+          <Property Name="C08_23" Type="Double" />
+          <Property Name="C09_00" Type="Double" />
+          <Property Name="C09_01" Type="Double" />
+          <Property Name="C09_02" Type="Double" />
+          <Property Name="C09_03" Type="Double" />
+          <Property Name="C09_04" Type="Double" />
+          <Property Name="C09_05" Type="Double" />
+          <Property Name="C09_06" Type="Double" />
+          <Property Name="C09_07" Type="Double" />
+          <Property Name="C09_08" Type="Double" />
+          <Property Name="C09_09" Type="Double" />
+          <Property Name="C09_10" Type="Double" />
+          <Property Name="C09_11" Type="Double" />
+          <Property Name="C09_12" Type="Double" />
+          <Property Name="C09_13" Type="Double" />
+          <Property Name="C09_14" Type="Double" />
+          <Property Name="C09_15" Type="Double" />
+          <Property Name="C09_16" Type="Double" />
+          <Property Name="C09_17" Type="Double" />
+          <Property Name="C09_18" Type="Double" />
+          <Property Name="C09_19" Type="Double" />
+          <Property Name="C09_20" Type="Double" />
+          <Property Name="C09_21" Type="Double" />
+          <Property Name="C09_22" Type="Double" />
+          <Property Name="C09_23" Type="Double" />
+          <Property Name="C10_00" Type="Double" />
+          <Property Name="C10_01" Type="Double" />
+          <Property Name="C10_02" Type="Double" />
+          <Property Name="C10_03" Type="Double" />
+          <Property Name="C10_04" Type="Double" />
+          <Property Name="C10_05" Type="Double" />
+          <Property Name="C10_06" Type="Double" />
+          <Property Name="C10_07" Type="Double" />
+          <Property Name="C10_08" Type="Double" />
+          <Property Name="C10_09" Type="Double" />
+          <Property Name="C10_10" Type="Double" />
+          <Property Name="C10_11" Type="Double" />
+          <Property Name="C10_12" Type="Double" />
+          <Property Name="C10_13" Type="Double" />
+          <Property Name="C10_14" Type="Double" />
+          <Property Name="C10_15" Type="Double" />
+          <Property Name="C10_16" Type="Double" />
+          <Property Name="C10_17" Type="Double" />
+          <Property Name="C10_18" Type="Double" />
+          <Property Name="C10_19" Type="Double" />
+          <Property Name="C10_20" Type="Double" />
+          <Property Name="C10_21" Type="Double" />
+          <Property Name="C10_22" Type="Double" />
+          <Property Name="C10_23" Type="Double" />
+          <Property Name="C11_00" Type="Double" />
+          <Property Name="C11_01" Type="Double" />
+          <Property Name="C11_02" Type="Double" />
+          <Property Name="C11_03" Type="Double" />
+          <Property Name="C11_04" Type="Double" />
+          <Property Name="C11_05" Type="Double" />
+          <Property Name="C11_06" Type="Double" />
+          <Property Name="C11_07" Type="Double" />
+          <Property Name="C11_08" Type="Double" />
+          <Property Name="C11_09" Type="Double" />
+          <Property Name="C11_10" Type="Double" />
+          <Property Name="C11_11" Type="Double" />
+          <Property Name="C11_12" Type="Double" />
+          <Property Name="C11_13" Type="Double" />
+          <Property Name="C11_14" Type="Double" />
+          <Property Name="C11_15" Type="Double" />
+          <Property Name="C11_16" Type="Double" />
+          <Property Name="C11_17" Type="Double" />
+          <Property Name="C11_18" Type="Double" />
+          <Property Name="C11_19" Type="Double" />
+          <Property Name="C11_20" Type="Double" />
+          <Property Name="C11_21" Type="Double" />
+          <Property Name="C11_22" Type="Double" />
+          <Property Name="C11_23" Type="Double" />
+          <Property Name="C12_00" Type="Double" />
+          <Property Name="C12_01" Type="Double" />
+          <Property Name="C12_02" Type="Double" />
+          <Property Name="C12_03" Type="Double" />
+          <Property Name="C12_04" Type="Double" />
+          <Property Name="C12_05" Type="Double" />
+          <Property Name="C12_06" Type="Double" />
+          <Property Name="C12_07" Type="Double" />
+          <Property Name="C12_08" Type="Double" />
+          <Property Name="C12_09" Type="Double" />
+          <Property Name="C12_10" Type="Double" />
+          <Property Name="C12_11" Type="Double" />
+          <Property Name="C12_12" Type="Double" />
+          <Property Name="C12_13" Type="Double" />
+          <Property Name="C12_14" Type="Double" />
+          <Property Name="C12_15" Type="Double" />
+          <Property Name="C12_16" Type="Double" />
+          <Property Name="C12_17" Type="Double" />
+          <Property Name="C12_18" Type="Double" />
+          <Property Name="C12_19" Type="Double" />
+          <Property Name="C12_20" Type="Double" />
+          <Property Name="C12_21" Type="Double" />
+          <Property Name="C12_22" Type="Double" />
+          <Property Name="C12_23" Type="Double" />
+          <NavigationProperty Name="BemsPriceType" Relationship="iBemsModel.FK_BemsPriceMeta_BemsPriceType" FromRole="BemsPriceMeta" ToRole="BemsPriceType" />
+        </EntityType>
+        <EntityType Name="BemsPriceType">
+          <Key>
+            <PropertyRef Name="PriceTypeId" />
+          </Key>
+          <Property Name="PriceTypeId" Type="Int32" Nullable="false" />
+          <Property Name="PriceTypeIdDesc" Type="String" MaxLength="200" FixedLength="false" Unicode="false" />
+          <Property Name="FuelTypeId" Type="Int16" Nullable="false" />
+          <NavigationProperty Name="BemsPriceFormula" Relationship="iBemsModel.FK_BemsPriceFormula_BemsPriceType" FromRole="BemsPriceType" ToRole="BemsPriceFormula" />
+          <NavigationProperty Name="BemsPriceMeta" Relationship="iBemsModel.FK_BemsPriceMeta_BemsPriceType" FromRole="BemsPriceType" ToRole="BemsPriceMeta" />
+          <NavigationProperty Name="BemsSitePriceHistory" Relationship="iBemsModel.FK_BemsSitePriceHistory_BemsPriceType" FromRole="BemsPriceType" ToRole="BemsSitePriceHistory" />
+          <NavigationProperty Name="BemsSitePrice" Relationship="iBemsModel.FK_BemsSitePrice_BemsPriceType" FromRole="BemsPriceType" ToRole="BemsSitePrice" />
+          <NavigationProperty Name="BemsFuelType" Relationship="iBemsModel.FK_BemsPriceType_BemsFuelType1" FromRole="BemsPriceType" ToRole="BemsFuelType" />
+        </EntityType>
+        <EntityType Name="BemsRentalRate">
+          <Key>
+            <PropertyRef Name="Date" />
+            <PropertyRef Name="SiteId" />
+          </Key>
+          <Property Name="Date" Type="String" Nullable="false" MaxLength="5" FixedLength="false" Unicode="true" />
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="m1" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
+          <Property Name="m2" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
+          <Property Name="m3" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
+          <Property Name="m4" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
+          <Property Name="m5" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
+          <Property Name="m6" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
+          <Property Name="m7" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
+          <Property Name="m8" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
+          <Property Name="m9" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
+          <Property Name="m10" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
+          <Property Name="m11" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
+          <Property Name="m12" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
+          <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_BemsRentalRate_CmSite" FromRole="BemsRentalRate" ToRole="CmSite" />
+        </EntityType>
+        <EntityType Name="BemsSitePrice">
+          <Key>
+            <PropertyRef Name="SiteID" />
+            <PropertyRef Name="FuelTypeId" />
+            <PropertyRef Name="PriceTypeId" />
+            <PropertyRef Name="PriceCode" />
+          </Key>
+          <Property Name="SiteID" Type="Int32" Nullable="false" />
+          <Property Name="FuelTypeId" Type="Int16" Nullable="false" />
+          <Property Name="PriceTypeId" Type="Int32" Nullable="false" />
+          <Property Name="PriceCode" Type="String" Nullable="false" MaxLength="20" FixedLength="false" Unicode="false" />
+          <Property Name="UseYN" Type="String" Nullable="false" MaxLength="1" FixedLength="false" Unicode="false" />
+          <NavigationProperty Name="BemsPriceCode" Relationship="iBemsModel.FK_BemsSitePrice_BemsPriceCode" FromRole="BemsSitePrice" ToRole="BemsPriceCode" />
+          <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_BemsSitePrice_CmSite1" FromRole="BemsSitePrice" ToRole="CmSite" />
+          <NavigationProperty Name="BemsPriceType" Relationship="iBemsModel.FK_BemsSitePrice_BemsPriceType" FromRole="BemsSitePrice" ToRole="BemsPriceType" />
+          <NavigationProperty Name="BemsFuelType" Relationship="iBemsModel.FK_BemsSitePrice_BemsFuelType" FromRole="BemsSitePrice" ToRole="BemsFuelType" />
+        </EntityType>
+        <EntityType Name="BemsSitePriceHistory">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="FuelTypeId" />
+            <PropertyRef Name="PriceTypeId" />
+            <PropertyRef Name="PriceCode" />
+            <PropertyRef Name="PayDate" />
+          </Key>
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="FuelTypeId" Type="Int16" Nullable="false" />
+          <Property Name="PriceTypeId" Type="Int32" Nullable="false" />
+          <Property Name="PriceCode" Type="String" Nullable="false" MaxLength="20" FixedLength="false" Unicode="false" />
+          <Property Name="PriceValue" Type="String" MaxLength="200" FixedLength="false" Unicode="false" />
+          <Property Name="PayDate" Type="String" Nullable="false" MaxLength="6" FixedLength="false" Unicode="false" />
+          <Property Name="StartDate" Type="DateTime" Precision="3" />
+          <Property Name="EndDate" Type="DateTime" Precision="3" />
+          <Property Name="PayCharge" Type="String" MaxLength="200" FixedLength="false" Unicode="false" />
+          <NavigationProperty Name="BemsPriceCode" Relationship="iBemsModel.FK_BemsSitePriceHistory_BemsPriceCode" FromRole="BemsSitePriceHistory" ToRole="BemsPriceCode" />
+          <NavigationProperty Name="BemsPriceType" Relationship="iBemsModel.FK_BemsSitePriceHistory_BemsPriceType" FromRole="BemsSitePriceHistory" ToRole="BemsPriceType" />
+          <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_BemsSitePriceHistory_CmSite" FromRole="BemsSitePriceHistory" ToRole="CmSite" />
+          <NavigationProperty Name="BemsFuelType" Relationship="iBemsModel.FK_BemsSitePriceHistory_BemsFuelType" FromRole="BemsSitePriceHistory" ToRole="BemsFuelType" />
+        </EntityType>
+        <Association Name="FK_BemsPriceFormula_BemsFormula">
+          <End Type="iBemsModel.BemsFormula" Role="BemsFormula" Multiplicity="1" />
+          <End Type="iBemsModel.BemsPriceFormula" Role="BemsPriceFormula" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="BemsFormula">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FacilityTypeId" />
+              <PropertyRef Name="FacilityCode" />
+              <PropertyRef Name="FormulaId" />
+            </Principal>
+            <Dependent Role="BemsPriceFormula">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FacilityTypeId" />
+              <PropertyRef Name="FacilityCode" />
+              <PropertyRef Name="FormulaId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_BemsPeopleIncrease_CmSite">
+          <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
+          <End Type="iBemsModel.BemsPeopleIncrease" Role="BemsPeopleIncrease" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmSite">
+              <PropertyRef Name="SiteId" />
+            </Principal>
+            <Dependent Role="BemsPeopleIncrease">
+              <PropertyRef Name="SiteId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_BemsSitePrice_BemsPriceCode">
+          <End Type="iBemsModel.BemsPriceCode" Role="BemsPriceCode" Multiplicity="1" />
+          <End Type="iBemsModel.BemsSitePrice" Role="BemsSitePrice" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="BemsPriceCode">
+              <PropertyRef Name="PriceCode" />
+            </Principal>
+            <Dependent Role="BemsSitePrice">
+              <PropertyRef Name="PriceCode" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_BemsSitePriceHistory_BemsPriceCode">
+          <End Type="iBemsModel.BemsPriceCode" Role="BemsPriceCode" Multiplicity="1" />
+          <End Type="iBemsModel.BemsSitePriceHistory" Role="BemsSitePriceHistory" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="BemsPriceCode">
+              <PropertyRef Name="PriceCode" />
+            </Principal>
+            <Dependent Role="BemsSitePriceHistory">
+              <PropertyRef Name="PriceCode" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_BemsPriceFormula_BemsPriceType">
+          <End Type="iBemsModel.BemsPriceType" Role="BemsPriceType" Multiplicity="1" />
+          <End Type="iBemsModel.BemsPriceFormula" Role="BemsPriceFormula" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="BemsPriceType">
+              <PropertyRef Name="PriceTypeId" />
+            </Principal>
+            <Dependent Role="BemsPriceFormula">
+              <PropertyRef Name="PriceTypeId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_BemsPriceMeta_BemsPriceType">
+          <End Type="iBemsModel.BemsPriceType" Role="BemsPriceType" Multiplicity="1" />
+          <End Type="iBemsModel.BemsPriceMeta" Role="BemsPriceMeta" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="BemsPriceType">
+              <PropertyRef Name="PriceTypeId" />
+            </Principal>
+            <Dependent Role="BemsPriceMeta">
+              <PropertyRef Name="PriceTypeId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_BemsSitePriceHistory_BemsPriceType">
+          <End Type="iBemsModel.BemsPriceType" Role="BemsPriceType" Multiplicity="1" />
+          <End Type="iBemsModel.BemsSitePriceHistory" Role="BemsSitePriceHistory" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="BemsPriceType">
+              <PropertyRef Name="PriceTypeId" />
+            </Principal>
+            <Dependent Role="BemsSitePriceHistory">
+              <PropertyRef Name="PriceTypeId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_BemsRentalRate_CmSite">
+          <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
+          <End Type="iBemsModel.BemsRentalRate" Role="BemsRentalRate" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmSite">
+              <PropertyRef Name="SiteId" />
+            </Principal>
+            <Dependent Role="BemsRentalRate">
+              <PropertyRef Name="SiteId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_BemsSitePrice_CmSite1">
+          <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
+          <End Type="iBemsModel.BemsSitePrice" Role="BemsSitePrice" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmSite">
+              <PropertyRef Name="SiteId" />
+            </Principal>
+            <Dependent Role="BemsSitePrice">
+              <PropertyRef Name="SiteID" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_BemsSitePriceHistory_CmSite">
+          <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
+          <End Type="iBemsModel.BemsSitePriceHistory" Role="BemsSitePriceHistory" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmSite">
+              <PropertyRef Name="SiteId" />
+            </Principal>
+            <Dependent Role="BemsSitePriceHistory">
+              <PropertyRef Name="SiteId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_BemsSitePrice_BemsPriceType">
+          <End Type="iBemsModel.BemsPriceType" Role="BemsPriceType" Multiplicity="1" />
+          <End Type="iBemsModel.BemsSitePrice" Role="BemsSitePrice" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="BemsPriceType">
+              <PropertyRef Name="PriceTypeId" />
+            </Principal>
+            <Dependent Role="BemsSitePrice">
+              <PropertyRef Name="PriceTypeId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <EntityType Name="BemsMonitoringPointConfig">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="FacilityCode" />
+            <PropertyRef Name="PropertyId" />
+          </Key>
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
+          <Property Name="FacilityCode" Type="Int32" Nullable="false" />
+          <Property Name="PropertyId" Type="Int32" Nullable="false" />
+          <Property Name="IsAccumulated" Type="Boolean" Nullable="false" />
+          <Property Name="IsSampled" Type="Boolean" Nullable="false" />
+          <Property Name="SaveMode" Type="Int32" Nullable="false" />
+          <Property Name="ControlPointName" Type="String" MaxLength="200" FixedLength="false" Unicode="true" />
+          <Property Name="IsConverted" Type="Boolean" />
+          <NavigationProperty Name="BemsFacilityType" Relationship="iBemsModel.FK_BemsMonitoringPointConfig_BemsFacilityType1" FromRole="BemsMonitoringPointConfig" ToRole="BemsFacilityType" />
+          <NavigationProperty Name="BemsMonitoringPoint" Relationship="iBemsModel.FK_BemsMonitoringPointConfig_BemsMonitoringPoint" FromRole="BemsMonitoringPointConfig" ToRole="BemsMonitoringPoint" />
+        </EntityType>
+        <Association Name="FK_BemsMonitoringPointConfig_BemsFacilityType1">
+          <End Type="iBemsModel.BemsFacilityType" Role="BemsFacilityType" Multiplicity="1" />
+          <End Type="iBemsModel.BemsMonitoringPointConfig" Role="BemsMonitoringPointConfig" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="BemsFacilityType">
+              <PropertyRef Name="FacilityTypeId" />
+            </Principal>
+            <Dependent Role="BemsMonitoringPointConfig">
+              <PropertyRef Name="FacilityTypeId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_BemsMonitoringPointConfig_BemsMonitoringPoint">
+          <End Type="iBemsModel.BemsMonitoringPoint" Role="BemsMonitoringPoint" Multiplicity="1" />
+          <End Type="iBemsModel.BemsMonitoringPointConfig" Role="BemsMonitoringPointConfig" Multiplicity="0..1" />
+          <ReferentialConstraint>
+            <Principal Role="BemsMonitoringPoint">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FacilityCode" />
+              <PropertyRef Name="PropertyId" />
+            </Principal>
+            <Dependent Role="BemsMonitoringPointConfig">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FacilityCode" />
+              <PropertyRef Name="PropertyId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <EntityType Name="BemsAlarmSetting">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="FacilityTypeId" />
+            <PropertyRef Name="FacilityCode" />
+            <PropertyRef Name="PropertyId" />
+            <PropertyRef Name="FormulaId" />
+          </Key>
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
+          <Property Name="FacilityCode" Type="Int32" Nullable="false" />
+          <Property Name="PropertyId" Type="Int32" Nullable="false" />
+          <Property Name="FormulaId" Type="Int32" Nullable="false" />
+          <Property Name="FacilityName" Type="String" Nullable="false" MaxLength="80" FixedLength="false" Unicode="true" />
+          <Property Name="PointName" Type="String" Nullable="false" MaxLength="64" FixedLength="false" Unicode="true" />
+          <Property Name="UseUpperLimit" Type="Boolean" Nullable="false" />
+          <Property Name="UpperLimit" Type="Double" />
+          <Property Name="UseLowerLimit" Type="Boolean" Nullable="false" />
+          <Property Name="LowerLimit" Type="Double" />
+          <Property Name="UseAlarm" Type="Boolean" Nullable="false" />
+          <Property Name="UseSMS" Type="Boolean" Nullable="false" />
+          <Property Name="UseEmail" Type="Boolean" Nullable="false" />
+          <Property Name="AlarmGroupName" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
+          <Property Name="Content" Type="String" MaxLength="1000" FixedLength="false" Unicode="true" />
+          <NavigationProperty Name="BemsFacilityType" Relationship="iBemsModel.FK_BemsAlarmSetting_BemsFacilityType" FromRole="BemsAlarmSetting" ToRole="BemsFacilityType" />
+          <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_BemsAlarmSetting_CmSite1" FromRole="BemsAlarmSetting" ToRole="CmSite" />
+          <NavigationProperty Name="BemsAlarmLog" Relationship="iBemsModel.FK_BemsAlarmLog_BemsAlarmSetting" FromRole="BemsAlarmSetting" ToRole="BemsAlarmLog" />
+          <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK_BemsAlarmSetting_CmFacility" FromRole="BemsAlarmSetting" ToRole="CmFacility" />
+        </EntityType>
+        <Association Name="FK_BemsAlarmSetting_BemsFacilityType">
+          <End Type="iBemsModel.BemsFacilityType" Role="BemsFacilityType" Multiplicity="1" />
+          <End Type="iBemsModel.BemsAlarmSetting" Role="BemsAlarmSetting" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="BemsFacilityType">
+              <PropertyRef Name="FacilityTypeId" />
+            </Principal>
+            <Dependent Role="BemsAlarmSetting">
+              <PropertyRef Name="FacilityTypeId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_BemsAlarmSetting_CmSite1">
+          <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
+          <End Type="iBemsModel.BemsAlarmSetting" Role="BemsAlarmSetting" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmSite">
+              <PropertyRef Name="SiteId" />
+            </Principal>
+            <Dependent Role="BemsAlarmSetting">
+              <PropertyRef Name="SiteId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <EntityType Name="BemsAlarmLog">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="FacilityTypeId" />
+            <PropertyRef Name="FacilityCode" />
+            <PropertyRef Name="PropertyId" />
+            <PropertyRef Name="FormulaId" />
+            <PropertyRef Name="CreatedDateTime" />
+          </Key>
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
+          <Property Name="FacilityCode" Type="Int32" Nullable="false" />
+          <Property Name="PropertyId" Type="Int32" Nullable="false" />
+          <Property Name="FormulaId" Type="Int32" Nullable="false" />
+          <Property Name="CreatedDateTime" Type="DateTime" Nullable="false" Precision="3" />
+          <Property Name="CurrentValue" Type="Double" />
+          <Property Name="SMSResult" Type="String" MaxLength="2" FixedLength="false" Unicode="true" />
+          <Property Name="EmailResult" Type="String" MaxLength="2" FixedLength="false" Unicode="true" />
+          <Property Name="Conform" Type="Boolean" />
+          <NavigationProperty Name="BemsAlarmSetting" Relationship="iBemsModel.FK_BemsAlarmLog_BemsAlarmSetting" FromRole="BemsAlarmLog" ToRole="BemsAlarmSetting" />
+        </EntityType>
+        <Association Name="FK_BemsAlarmLog_BemsAlarmSetting">
+          <End Type="iBemsModel.BemsAlarmSetting" Role="BemsAlarmSetting" Multiplicity="1" />
+          <End Type="iBemsModel.BemsAlarmLog" Role="BemsAlarmLog" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="BemsAlarmSetting">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FacilityTypeId" />
+              <PropertyRef Name="FacilityCode" />
+              <PropertyRef Name="PropertyId" />
+              <PropertyRef Name="FormulaId" />
+            </Principal>
+            <Dependent Role="BemsAlarmLog">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FacilityTypeId" />
+              <PropertyRef Name="FacilityCode" />
+              <PropertyRef Name="PropertyId" />
+              <PropertyRef Name="FormulaId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <EntityType Name="BemsAlarmGroup">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="AlarmGroupId" />
+          </Key>
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="AlarmGroupId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+          <Property Name="Name" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
+        </EntityType>
+        <EntityType Name="BemsAlarmGroupUser">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="AlarmGroupId" />
+            <PropertyRef Name="UserId" />
+          </Key>
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="AlarmGroupId" Type="Int32" Nullable="false" />
+          <Property Name="UserId" Type="String" Nullable="false" MaxLength="24" FixedLength="false" Unicode="true" />
+        </EntityType>
+        <EntityType Name="BemsEnergyCost">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="FacilityCode" />
+          </Key>
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
+          <Property Name="FacilityCode" Type="Int32" Nullable="false" />
+          <Property Name="PowerConsumption1" Type="Double" />
+          <Property Name="PowerConsumption2" Type="Double" />
+          <Property Name="GasConsumption" Type="Double" />
+          <Property Name="GasHeatQuantity" Type="Double" />
+          <Property Name="PowerPriceTypeId" Type="Int32" />
+          <Property Name="GasPriceTypeId" Type="Int32" />
+          <Property Name="IsUse" Type="Boolean" />
+          <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK_BemsEnergyCost_CmFacility" FromRole="BemsEnergyCost" ToRole="CmFacility" />
+        </EntityType>
+        <EntityType Name="BemsEnergyConfigPercentMonth">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="Year" />
+            <PropertyRef Name="Month" />
+          </Key>
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="Year" Type="Int32" Nullable="false" />
+          <Property Name="Month" Type="Int32" Nullable="false" />
+          <Property Name="Electricity" Type="Double" />
+          <Property Name="Gas" Type="Double" />
+          <Property Name="Water" Type="Double" />
+          <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__BemsEnerg__SiteI__7954A4F6" FromRole="BemsEnergyConfigPercentMonth" ToRole="CmSite" />
+        </EntityType>
+        <EntityType Name="BemsEnergyConfigPercentWeek">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="Year" />
+            <PropertyRef Name="Week" />
+          </Key>
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="Year" Type="Int32" Nullable="false" />
+          <Property Name="Week" Type="Int32" Nullable="false" />
+          <Property Name="Electricity" Type="Double" />
+          <Property Name="Gas" Type="Double" />
+          <Property Name="Water" Type="Double" />
+          <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__BemsEnerg__SiteI__7C3111A1" FromRole="BemsEnergyConfigPercentWeek" ToRole="CmSite" />
+        </EntityType>
+        <Association Name="FK__BemsEnerg__SiteI__7954A4F6">
+          <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
+          <End Type="iBemsModel.BemsEnergyConfigPercentMonth" Role="BemsEnergyConfigPercentMonth" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmSite">
+              <PropertyRef Name="SiteId" />
+            </Principal>
+            <Dependent Role="BemsEnergyConfigPercentMonth">
+              <PropertyRef Name="SiteId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__BemsEnerg__SiteI__7C3111A1">
+          <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
+          <End Type="iBemsModel.BemsEnergyConfigPercentWeek" Role="BemsEnergyConfigPercentWeek" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmSite">
+              <PropertyRef Name="SiteId" />
+            </Principal>
+            <Dependent Role="BemsEnergyConfigPercentWeek">
+              <PropertyRef Name="SiteId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <EntityType Name="BemsEnergyDaily">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="BuildingId" />
+            <PropertyRef Name="ServiceTypeId" />
+            <PropertyRef Name="FuelTypeId" />
+            <PropertyRef Name="CreatedDate" />
+          </Key>
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="BuildingId" Type="Int32" Nullable="false" />
+          <Property Name="ServiceTypeId" Type="Int16" Nullable="false" />
+          <Property Name="FuelTypeId" Type="Int16" Nullable="false" />
+          <Property Name="CreatedDate" Type="DateTime" Nullable="false" Precision="0" />
+          <Property Name="Prediction" Type="Double" />
+          <Property Name="Measurement" Type="Double" />
+          <Property Name="Goal" Type="Double" />
+          <Property Name="Prediction_Regression" Type="Double" />
+          <Property Name="MeanT" Type="Double" />
+          <Property Name="HDD" Type="Double" />
+          <Property Name="CDD" Type="Double" />
+          <NavigationProperty Name="BemsServiceType" Relationship="iBemsModel.FK__BemsEnergyDaily__BemsServiceType" FromRole="BemsEnergyDaily" ToRole="BemsServiceType" />
+          <NavigationProperty Name="CmBuilding" Relationship="iBemsModel.FK__BemsEnergyDaily__CmBuilding" FromRole="BemsEnergyDaily" ToRole="CmBuilding" />
+          <NavigationProperty Name="BemsFuelType" Relationship="iBemsModel.FK__BemsEnergyDaily__BemsFuelType" FromRole="BemsEnergyDaily" ToRole="BemsFuelType" />
+        </EntityType>
+        <Association Name="FK__BemsEnergyDaily__BemsServiceType">
+          <End Type="iBemsModel.BemsServiceType" Role="BemsServiceType" Multiplicity="1" />
+          <End Type="iBemsModel.BemsEnergyDaily" Role="BemsEnergyDaily" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="BemsServiceType">
+              <PropertyRef Name="ServiceTypeId" />
+            </Principal>
+            <Dependent Role="BemsEnergyDaily">
+              <PropertyRef Name="ServiceTypeId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__BemsEnergyDaily__CmBuilding">
+          <End Type="iBemsModel.CmBuilding" Role="CmBuilding" Multiplicity="1" />
+          <End Type="iBemsModel.BemsEnergyDaily" Role="BemsEnergyDaily" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmBuilding">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="BuildingId" />
+            </Principal>
+            <Dependent Role="BemsEnergyDaily">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="BuildingId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+	  
+	  
+        <EntityType Name="BemsEnergyDailyRegression">
+          <Key>
+            <PropertyRef Name="SiteId" />
+          </Key>
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="Weekday_Power" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
+          <Property Name="Weekday_Power_Temp" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
+          <Property Name="Weekday_Gas" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
+          <Property Name="Weekday_Gas_Temp" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
+          <Property Name="Weekday_Water" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
+          <Property Name="Weekday_Water_Temp" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
+          <Property Name="Holiday_Power" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
+          <Property Name="Holiday_Power_Temp" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
+          <Property Name="Holiday_Gas" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
+          <Property Name="Holiday_Gas_Temp" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
+          <Property Name="Holiday_Water" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
+          <Property Name="Holiday_Water_Temp" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
+          <Property Name="IsRegression" Type="Boolean" />
+          <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_BemsEnergyDailyRegression_CmSite" FromRole="BemsEnergyDailyRegression" ToRole="CmSite" />
+        </EntityType>
+        <Association Name="FK_BemsEnergyDailyRegression_CmSite">
+          <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
+          <End Type="iBemsModel.BemsEnergyDailyRegression" Role="BemsEnergyDailyRegression" Multiplicity="0..1" />
+          <ReferentialConstraint>
+            <Principal Role="CmSite">
+              <PropertyRef Name="SiteId" />
+            </Principal>
+            <Dependent Role="BemsEnergyDailyRegression">
+              <PropertyRef Name="SiteId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <EntityType Name="WeatherDongNaeForecast">
+          <Key>
+            <PropertyRef Name="BaseTime" />
+            <PropertyRef Name="ForecastTime" />
+          </Key>
+          <Property Name="BaseTime" Type="DateTime" Nullable="false" Precision="3" />
+          <Property Name="nx" Type="Int32" />
+          <Property Name="ny" Type="Int32" />
+          <Property Name="ForecastTime" Type="DateTime" Nullable="false" Precision="3" />
+          <Property Name="POP" Type="Double" />
+          <Property Name="PTY" Type="Double" />
+          <Property Name="R06" Type="Double" />
+          <Property Name="REH" Type="Double" />
+          <Property Name="S06" Type="Double" />
+          <Property Name="SKY" Type="Double" />
+          <Property Name="T3H" Type="Double" />
+          <Property Name="TMN" Type="Double" />
+          <Property Name="TMX" Type="Double" />
+          <Property Name="UUU" Type="Double" />
+          <Property Name="VVV" Type="Double" />
+          <Property Name="VEC" Type="Double" />
+          <Property Name="WSD" Type="Double" />
+          <Property Name="Type" Type="Int32" />
+          <Property Name="DBTime" Type="DateTime" Precision="3" />
+          <Property Name="Version" Type="Int32" />
+        </EntityType>
+        <EntityType Name="FmsEquipmentRentInfo">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="EquipmentRentId" />
+          </Key>
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="EquipmentRentId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+          <Property Name="RegisterUserId" Type="String" Nullable="false" MaxLength="24" FixedLength="false" Unicode="true" />
+          <Property Name="RentUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
+          <Property Name="RegisterDate" Type="String" MaxLength="10" FixedLength="true" Unicode="true" />
+          <Property Name="RentDate" Type="DateTime" Precision="3" />
+          <Property Name="ReturnDueDate" Type="DateTime" Precision="3" />
+          <Property Name="ReturnFixDate" Type="DateTime" Precision="3" />
+          <Property Name="EquipmentStateTypeId" Type="Int16" />
+          <Property Name="Comment" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
+          <Property Name="Title" Type="String" Nullable="false" MaxLength="128" FixedLength="false" Unicode="true" />
+          <Property Name="RentUser" Type="String" MaxLength="128" FixedLength="false" Unicode="true" />
+          <NavigationProperty Name="CmUser" Relationship="iBemsModel.FK_FmsEquipmentRentInfo_CmUser" FromRole="FmsEquipmentRentInfo" ToRole="CmUser" />
+          <NavigationProperty Name="CmUser1" Relationship="iBemsModel.FK_FmsEquipmentRentInfo_CmUser1" FromRole="FmsEquipmentRentInfo" ToRole="CmUser" />
+          <NavigationProperty Name="FmsEquipmentCodeStateType" Relationship="iBemsModel.FK_FmsEquipmentRentInfo_FmsEquipmentCodeStateType" FromRole="FmsEquipmentRentInfo" ToRole="FmsEquipmentCodeStateType" />
+          <NavigationProperty Name="FmsEquipmentHistory" Relationship="iBemsModel.FK_FmsEquipmentHistory_FmsEquipmentRentInfo" FromRole="FmsEquipmentRentInfo" ToRole="FmsEquipmentHistory" />
+        </EntityType>
+        <Association Name="FK_FmsEquipmentRentInfo_CmUser">
+          <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="1" />
+          <End Type="iBemsModel.FmsEquipmentRentInfo" Role="FmsEquipmentRentInfo" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmUser">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="UserId" />
+            </Principal>
+            <Dependent Role="FmsEquipmentRentInfo">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="RegisterUserId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsEquipmentRentInfo_CmUser1">
+          <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="0..1" />
+          <End Type="iBemsModel.FmsEquipmentRentInfo" Role="FmsEquipmentRentInfo" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmUser">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="UserId" />
+            </Principal>
+            <Dependent Role="FmsEquipmentRentInfo">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="RentUserId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsEquipmentRentInfo_FmsEquipmentCodeStateType">
+          <End Type="iBemsModel.FmsEquipmentCodeStateType" Role="FmsEquipmentCodeStateType" Multiplicity="0..1" />
+          <End Type="iBemsModel.FmsEquipmentRentInfo" Role="FmsEquipmentRentInfo" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="FmsEquipmentCodeStateType">
+              <PropertyRef Name="EquipmentStateTypeId" />
+            </Principal>
+            <Dependent Role="FmsEquipmentRentInfo">
+              <PropertyRef Name="EquipmentStateTypeId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsEquipmentHistory_FmsEquipmentRentInfo">
+          <End Type="iBemsModel.FmsEquipmentRentInfo" Role="FmsEquipmentRentInfo" Multiplicity="0..1">
+            <OnDelete Action="Cascade" />
+          </End>
+          <End Type="iBemsModel.FmsEquipmentHistory" Role="FmsEquipmentHistory" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="FmsEquipmentRentInfo">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="EquipmentRentId" />
+            </Principal>
+            <Dependent Role="FmsEquipmentHistory">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="EquipmentRentId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <EntityType Name="BemsControlAHUTempConfig">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="FacilityTypeId" />
+            <PropertyRef Name="FacilityCode" />
+          </Key>
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
+          <Property Name="FacilityCode" Type="Int32" Nullable="false" />
+          <Property Name="MaxTemperature" Type="Double" Nullable="false" />
+          <Property Name="MinTemperature" Type="Double" Nullable="false" />
+        </EntityType>
+        <EntityType Name="BemsFuelType">
+          <Key>
+            <PropertyRef Name="FuelTypeId" />
+          </Key>
+          <Property Name="FuelTypeId" Type="Int16" Nullable="false" />
+          <Property Name="Name" Type="String" MaxLength="48" FixedLength="false" Unicode="true" />
+          <NavigationProperty Name="BemsEnergyDaily" Relationship="iBemsModel.FK__BemsEnergyDaily__BemsFuelType" FromRole="BemsFuelType" ToRole="BemsEnergyDaily" />
+          <NavigationProperty Name="BemsFactorCo2" Relationship="iBemsModel.FK__BemsFactorCo2__BemsFuelType" FromRole="BemsFuelType" ToRole="BemsFactorCo2" />
+          <NavigationProperty Name="BemsFactorToe" Relationship="iBemsModel.FK__BemsFactorToe__BemsFuelType" FromRole="BemsFuelType" ToRole="BemsFactorToe" />
+          <NavigationProperty Name="BemsMonitoringPoint" Relationship="iBemsModel.FK__BemsMonitoringPoint__BemsFuelType" FromRole="BemsFuelType" ToRole="BemsMonitoringPoint" />
+          <NavigationProperty Name="BemsMonitoringPointBaseData" Relationship="iBemsModel.FK__BemsMonitoringPointBaseData__BemsFuelType" FromRole="BemsFuelType" ToRole="BemsMonitoringPointBaseData" />
+	  <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK_CmFacility_BemsFuelType" FromRole="BemsFuelType" ToRole="CmFacility" />
+          <NavigationProperty Name="BemsNoticePriceContractType" Relationship="iBemsModel.FK__BemsNoticePriceContractType__BemsFuelType" FromRole="BemsFuelType" ToRole="BemsNoticePriceContractType" />
+          <NavigationProperty Name="BemsPriceCode" Relationship="iBemsModel.FK_BemsPriceCode_BemsFuelType" FromRole="BemsFuelType" ToRole="BemsPriceCode" />
+          <NavigationProperty Name="BemsPriceType" Relationship="iBemsModel.FK_BemsPriceType_BemsFuelType1" FromRole="BemsFuelType" ToRole="BemsPriceType" />
+          <NavigationProperty Name="BemsSitePrice" Relationship="iBemsModel.FK_BemsSitePrice_BemsFuelType" FromRole="BemsFuelType" ToRole="BemsSitePrice" />
+          <NavigationProperty Name="BemsSitePriceHistory" Relationship="iBemsModel.FK_BemsSitePriceHistory_BemsFuelType" FromRole="BemsFuelType" ToRole="BemsSitePriceHistory" />
+        </EntityType>
+        <Association Name="FK__BemsEnergyDaily__BemsFuelType">
+          <End Type="iBemsModel.BemsFuelType" Role="BemsFuelType" Multiplicity="1" />
+          <End Type="iBemsModel.BemsEnergyDaily" Role="BemsEnergyDaily" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="BemsFuelType">
+              <PropertyRef Name="FuelTypeId" />
+            </Principal>
+            <Dependent Role="BemsEnergyDaily">
+              <PropertyRef Name="FuelTypeId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__BemsFactorCo2__BemsFuelType">
+          <End Type="iBemsModel.BemsFuelType" Role="BemsFuelType" Multiplicity="1" />
+          <End Type="iBemsModel.BemsFactorCo2" Role="BemsFactorCo2" Multiplicity="0..1" />
+          <ReferentialConstraint>
+            <Principal Role="BemsFuelType">
+              <PropertyRef Name="FuelTypeId" />
+            </Principal>
+            <Dependent Role="BemsFactorCo2">
+              <PropertyRef Name="FuelTypeId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__BemsFactorToe__BemsFuelType">
+          <End Type="iBemsModel.BemsFuelType" Role="BemsFuelType" Multiplicity="1" />
+          <End Type="iBemsModel.BemsFactorToe" Role="BemsFactorToe" Multiplicity="0..1" />
+          <ReferentialConstraint>
+            <Principal Role="BemsFuelType">
+              <PropertyRef Name="FuelTypeId" />
+            </Principal>
+            <Dependent Role="BemsFactorToe">
+              <PropertyRef Name="FuelTypeId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__BemsMonitoringPoint__BemsFuelType">
+          <End Type="iBemsModel.BemsFuelType" Role="BemsFuelType" Multiplicity="0..1" />
+          <End Type="iBemsModel.BemsMonitoringPoint" Role="BemsMonitoringPoint" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="BemsFuelType">
+              <PropertyRef Name="FuelTypeId" />
+            </Principal>
+            <Dependent Role="BemsMonitoringPoint">
+              <PropertyRef Name="FuelTypeId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__BemsMonitoringPointBaseData__BemsFuelType">
+          <End Type="iBemsModel.BemsFuelType" Role="BemsFuelType" Multiplicity="0..1" />
+          <End Type="iBemsModel.BemsMonitoringPointBaseData" Role="BemsMonitoringPointBaseData" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="BemsFuelType">
+              <PropertyRef Name="FuelTypeId" />
+            </Principal>
+            <Dependent Role="BemsMonitoringPointBaseData">
+              <PropertyRef Name="FuelTypeId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__BemsNoticePriceContractType__BemsFuelType">
+          <End Type="iBemsModel.BemsFuelType" Role="BemsFuelType" Multiplicity="1" />
+          <End Type="iBemsModel.BemsNoticePriceContractType" Role="BemsNoticePriceContractType" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="BemsFuelType">
+              <PropertyRef Name="FuelTypeId" />
+            </Principal>
+            <Dependent Role="BemsNoticePriceContractType">
+              <PropertyRef Name="FuelTypeId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_BemsPriceCode_BemsFuelType">
+          <End Type="iBemsModel.BemsFuelType" Role="BemsFuelType" Multiplicity="1" />
+          <End Type="iBemsModel.BemsPriceCode" Role="BemsPriceCode" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="BemsFuelType">
+              <PropertyRef Name="FuelTypeId" />
+            </Principal>
+            <Dependent Role="BemsPriceCode">
+              <PropertyRef Name="FuelTypeId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_BemsPriceType_BemsFuelType1">
+          <End Type="iBemsModel.BemsFuelType" Role="BemsFuelType" Multiplicity="1" />
+          <End Type="iBemsModel.BemsPriceType" Role="BemsPriceType" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="BemsFuelType">
+              <PropertyRef Name="FuelTypeId" />
+            </Principal>
+            <Dependent Role="BemsPriceType">
+              <PropertyRef Name="FuelTypeId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_BemsSitePrice_BemsFuelType">
+          <End Type="iBemsModel.BemsFuelType" Role="BemsFuelType" Multiplicity="1" />
+          <End Type="iBemsModel.BemsSitePrice" Role="BemsSitePrice" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="BemsFuelType">
+              <PropertyRef Name="FuelTypeId" />
+            </Principal>
+            <Dependent Role="BemsSitePrice">
+              <PropertyRef Name="FuelTypeId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_BemsSitePriceHistory_BemsFuelType">
+          <End Type="iBemsModel.BemsFuelType" Role="BemsFuelType" Multiplicity="1" />
+          <End Type="iBemsModel.BemsSitePriceHistory" Role="BemsSitePriceHistory" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="BemsFuelType">
+              <PropertyRef Name="FuelTypeId" />
+            </Principal>
+            <Dependent Role="BemsSitePriceHistory">
+              <PropertyRef Name="FuelTypeId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <EntityType Name="CmFacility">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="FacilityCode" />
+          </Key>
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
+          <Property Name="FacilityCode" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+          <Property Name="FirstClassId" Type="Int32" />
+          <Property Name="SecondClassId" Type="Int32" />
+          <Property Name="ThirdClassId" Type="Int32" />
+          <Property Name="DeviceType" Type="String" MaxLength="48" FixedLength="false" Unicode="true" />
+          <Property Name="ParentFacilityCode" Type="Int32" />
+          <Property Name="Name" Type="String" Nullable="false" MaxLength="80" FixedLength="false" Unicode="true" />
+          <Property Name="Nickname" Type="String" MaxLength="40" FixedLength="false" Unicode="true" />
+          <Property Name="Rfid" Type="String" MaxLength="52" FixedLength="false" Unicode="true" />
+          <Property Name="Manufacturer" Type="String" MaxLength="40" FixedLength="false" Unicode="true" />
+          <Property Name="ManufactureDate" Type="DateTime" Precision="0" />
+          <Property Name="ManufactureSerial" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
+          <Property Name="ManufactureModel" Type="String" MaxLength="40" FixedLength="false" Unicode="true" />
+          <Property Name="Supplier" Type="String" MaxLength="40" FixedLength="false" Unicode="true" />
+          <Property Name="SupplierPhoneNo" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
+          <Property Name="BuildingId" Type="Int32" />
+          <Property Name="FloorId" Type="Int32" />
+          <Property Name="ZoneId" Type="Int32" />
+          <Property Name="InstallDate" Type="DateTime" Precision="0" />
+          <Property Name="OperationStartDate" Type="DateTime" Precision="0" />
+          <Property Name="FacilityCapacity" Type="String" MaxLength="40" FixedLength="false" Unicode="true" />
+          <Property Name="FacilityCost" Type="Int32" />
+          <Property Name="FacilityCount" Type="Int32" />
+          <Property Name="FacilitySeviceLifeYear" Type="Int32" />
+          <Property Name="FacilityUsage" Type="String" MaxLength="80" FixedLength="false" Unicode="true" />
+          <Property Name="RatedPowerConsumption" Type="String" MaxLength="40" FixedLength="false" Unicode="true" />
+          <Property Name="RatedCOP" Type="Double" />
+          <Property Name="MainContactorUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
+          <Property Name="SubContactorUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
+          <Property Name="Note" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
+          <Property Name="Reserved1" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
+          <Property Name="Reserved2" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
+          <Property Name="IsUse" Type="Boolean" />
+          <Property Name="FileId" Type="Int32" />
+          <Property Name="IsVirtualFacility" Type="Boolean" Nullable="false" />
+          <Property Name="FuelTypeId" Type="Int16" />
+          <Property Name="ContractType" Type="Int16" />
+          <NavigationProperty Name="BemsAlarmSetting" Relationship="iBemsModel.FK_BemsAlarmSetting_CmFacility" FromRole="CmFacility" ToRole="BemsAlarmSetting" />
+          <NavigationProperty Name="BemsEnergyCost" Relationship="iBemsModel.FK_BemsEnergyCost_CmFacility" FromRole="CmFacility" ToRole="BemsEnergyCost" />
+          <NavigationProperty Name="BemsFacilityType" Relationship="iBemsModel.FK__CmFacility__BemsFacilityType" FromRole="CmFacility" ToRole="BemsFacilityType" />
+          <NavigationProperty Name="BemsFormulaParameter" Relationship="iBemsModel.FK_BemsFormulaParameter_CmFacility" FromRole="CmFacility" ToRole="BemsFormulaParameter" />
+          <NavigationProperty Name="BemsFuelType" Relationship="iBemsModel.FK_CmFacility_BemsFuelType" FromRole="CmFacility" ToRole="BemsFuelType" />
+	  <NavigationProperty Name="BemsMonitoringPoint" Relationship="iBemsModel.FK_BemsMonitoringPoint_CmFacility" FromRole="CmFacility" ToRole="BemsMonitoringPoint" />
+          <NavigationProperty Name="BemsNoticePriceContractType" Relationship="iBemsModel.FK_CmFacility_BemsNoticePriceContractType" FromRole="CmFacility" ToRole="BemsNoticePriceContractType" />
+          <NavigationProperty Name="BemsPeakFacility" Relationship="iBemsModel.FK_BemsPeakFacility_CmFacility" FromRole="CmFacility" ToRole="BemsPeakFacility" />
+          <NavigationProperty Name="CmBuilding" Relationship="iBemsModel.FK__CmFacility__CmBuilding" FromRole="CmFacility" ToRole="CmBuilding" />
+          <NavigationProperty Name="CmFloor" Relationship="iBemsModel.FK__CmFacility__74444068" FromRole="CmFacility" ToRole="CmFloor" />
+          <NavigationProperty Name="CmUser" Relationship="iBemsModel.FK__CmFacility__753864A1" FromRole="CmFacility" ToRole="CmUser" />
+          <NavigationProperty Name="CmUser1" Relationship="iBemsModel.FK__CmFacility__762C88DA" FromRole="CmFacility" ToRole="CmUser" />
+          <NavigationProperty Name="CmFacility1" Relationship="iBemsModel.FK__CmFacility__CmFacility" FromRole="CmFacility" ToRole="CmFacility1" />
+          <NavigationProperty Name="CmFacility2" Relationship="iBemsModel.FK__CmFacility__CmFacility" FromRole="CmFacility1" ToRole="CmFacility" />
+          <NavigationProperty Name="CmFile" Relationship="iBemsModel.FK__CmFacility__CmFile" FromRole="CmFacility" ToRole="CmFile" />
+          <NavigationProperty Name="CmZone" Relationship="iBemsModel.FK__CmFacility__CmZone" FromRole="CmFacility" ToRole="CmZone" />
+          <NavigationProperty Name="FmsFacilityCodeClass" Relationship="iBemsModel.FK__CmFacility__FmsFacilityCodeClassAsFirst" FromRole="CmFacility" ToRole="FmsFacilityCodeClass" />
+          <NavigationProperty Name="FmsFacilityCodeClass1" Relationship="iBemsModel.FK__CmFacility__FmsFacilityCodeClassAsSecond" FromRole="CmFacility" ToRole="FmsFacilityCodeClass" />
+          <NavigationProperty Name="FmsFacilityCodeClass2" Relationship="iBemsModel.FK__CmFacility__FmsFacilityCodeClassAsThird" FromRole="CmFacility" ToRole="FmsFacilityCodeClass" />
+          <NavigationProperty Name="CmFacilityFile" Relationship="iBemsModel.FK__CmFacilityFile__7720AD13" FromRole="CmFacility" ToRole="CmFacilityFile" />
+          <NavigationProperty Name="FmsFacilityManual" Relationship="iBemsModel.FK__CmFacilityManual__79FD19BE" FromRole="CmFacility" ToRole="FmsFacilityManual" />
+          <NavigationProperty Name="FmsFacilityOperationItem" Relationship="iBemsModel.FK__FmsFacilityOpera__725BF7F6" FromRole="CmFacility" ToRole="FmsFacilityOperationItem" />
+          <NavigationProperty Name="FmsWorkResultCheckItem" Relationship="iBemsModel.FK__FmsWorkResultCheckItem__CmFacility" FromRole="CmFacility" ToRole="FmsWorkResultCheckItem" />
+          <NavigationProperty Name="FmsWorkResultToFacility" Relationship="iBemsModel.FK__FmsWorkResultToFacility__CmFacility" FromRole="CmFacility" ToRole="FmsWorkResultToFacility" />
+          <NavigationProperty Name="CmUser2" Relationship="iBemsModel.FK_CmFacility_CmUser" FromRole="CmFacility" ToRole="CmUser" />
+          <NavigationProperty Name="CmUser3" Relationship="iBemsModel.FK_CmFacility_CmUser1" FromRole="CmFacility" ToRole="CmUser" />
+          <NavigationProperty Name="CmFacilityTempSet" Relationship="iBemsModel.FK_CmFacilityTempSet_CmFacility" FromRole="CmFacility" ToRole="CmFacilityTempSet" />
+          <NavigationProperty Name="FmsWorkOrderToFacility" Relationship="iBemsModel.FK_FmsWorkOrderToFacility_CmFacility" FromRole="CmFacility" ToRole="FmsWorkOrderToFacility" />
+          <NavigationProperty Name="FmsWorkRequestToFacility" Relationship="iBemsModel.FK_FmsWorkRequestToFacility_CmFacility" FromRole="CmFacility" ToRole="FmsWorkRequestToFacility" />
+          <NavigationProperty Name="FmsWorkScheduleToFacility" Relationship="iBemsModel.FK_FmsWorkScheduleToFacility_CmFacility" FromRole="CmFacility" ToRole="FmsWorkScheduleToFacility" />
+        </EntityType>
+        <Association Name="FK_BemsAlarmSetting_CmFacility">
+          <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="1" />
+          <End Type="iBemsModel.BemsAlarmSetting" Role="BemsAlarmSetting" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmFacility">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FacilityCode" />
+            </Principal>
+            <Dependent Role="BemsAlarmSetting">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FacilityCode" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_BemsEnergyCost_CmFacility">
+          <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="1" />
+          <End Type="iBemsModel.BemsEnergyCost" Role="BemsEnergyCost" Multiplicity="0..1" />
+          <ReferentialConstraint>
+            <Principal Role="CmFacility">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FacilityCode" />
+            </Principal>
+            <Dependent Role="BemsEnergyCost">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FacilityCode" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__CmFacility__BemsFacilityType">
+          <End Type="iBemsModel.BemsFacilityType" Role="BemsFacilityType" Multiplicity="1" />
+          <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="BemsFacilityType">
+              <PropertyRef Name="FacilityTypeId" />
+            </Principal>
+            <Dependent Role="CmFacility">
+              <PropertyRef Name="FacilityTypeId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_BemsFormulaParameter_CmFacility">
+          <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="1" />
+          <End Type="iBemsModel.BemsFormulaParameter" Role="BemsFormulaParameter" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmFacility">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FacilityCode" />
+            </Principal>
+            <Dependent Role="BemsFormulaParameter">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FacilityCode" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+	<Association Name="FK_CmFacility_BemsFuelType">
+          <End Type="iBemsModel.BemsFuelType" Role="BemsFuelType" Multiplicity="0..1" />
+          <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="BemsFuelType">
+              <PropertyRef Name="FuelTypeId" />
+            </Principal>
+            <Dependent Role="CmFacility">
+              <PropertyRef Name="FuelTypeId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_BemsMonitoringPoint_CmFacility">
+          <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="1" />
+          <End Type="iBemsModel.BemsMonitoringPoint" Role="BemsMonitoringPoint" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmFacility">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FacilityCode" />
+            </Principal>
+            <Dependent Role="BemsMonitoringPoint">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FacilityCode" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_CmFacility_BemsNoticePriceContractType">
+          <End Type="iBemsModel.BemsNoticePriceContractType" Role="BemsNoticePriceContractType" Multiplicity="0..1" />
+          <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="BemsNoticePriceContractType">
+              <PropertyRef Name="FuelTypeId" />
+              <PropertyRef Name="ContractType" />
+            </Principal>
+            <Dependent Role="CmFacility">
+              <PropertyRef Name="FuelTypeId" />
+              <PropertyRef Name="ContractType" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_BemsPeakFacility_CmFacility">
+          <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="1" />
+          <End Type="iBemsModel.BemsPeakFacility" Role="BemsPeakFacility" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmFacility">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FacilityCode" />
+            </Principal>
+            <Dependent Role="BemsPeakFacility">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FacilityCode" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__CmFacility__CmBuilding">
+          <End Type="iBemsModel.CmBuilding" Role="CmBuilding" Multiplicity="0..1" />
+          <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmBuilding">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="BuildingId" />
+            </Principal>
+            <Dependent Role="CmFacility">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="BuildingId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__CmFacility__74444068">
+          <End Type="iBemsModel.CmFloor" Role="CmFloor" Multiplicity="0..1" />
+          <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmFloor">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="BuildingId" />
+              <PropertyRef Name="FloorId" />
+            </Principal>
+            <Dependent Role="CmFacility">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="BuildingId" />
+              <PropertyRef Name="FloorId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__CmFacility__753864A1">
+          <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="0..1" />
+          <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmUser">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="UserId" />
+            </Principal>
+            <Dependent Role="CmFacility">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="MainContactorUserId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__CmFacility__762C88DA">
+          <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="0..1" />
+          <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmUser">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="UserId" />
+            </Principal>
+            <Dependent Role="CmFacility">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="SubContactorUserId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__CmFacility__CmFacility">
+          <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="0..1" />
+          <End Type="iBemsModel.CmFacility" Role="CmFacility1" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmFacility">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FacilityCode" />
+            </Principal>
+            <Dependent Role="CmFacility1">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="ParentFacilityCode" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__CmFacility__CmFile">
+          <End Type="iBemsModel.CmFile" Role="CmFile" Multiplicity="0..1" />
+          <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmFile">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FileId" />
+            </Principal>
+            <Dependent Role="CmFacility">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FileId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__CmFacility__CmZone">
+          <End Type="iBemsModel.CmZone" Role="CmZone" Multiplicity="0..1" />
+          <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmZone">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="BuildingId" />
+              <PropertyRef Name="FloorId" />
+              <PropertyRef Name="ZoneId" />
+            </Principal>
+            <Dependent Role="CmFacility">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="BuildingId" />
+              <PropertyRef Name="FloorId" />
+              <PropertyRef Name="ZoneId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__CmFacility__FmsFacilityCodeClassAsFirst">
+          <End Type="iBemsModel.FmsFacilityCodeClass" Role="FmsFacilityCodeClass" Multiplicity="0..1" />
+          <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="FmsFacilityCodeClass">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FacilityClassId" />
+            </Principal>
+            <Dependent Role="CmFacility">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FirstClassId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__CmFacility__FmsFacilityCodeClassAsSecond">
+          <End Type="iBemsModel.FmsFacilityCodeClass" Role="FmsFacilityCodeClass" Multiplicity="0..1" />
+          <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="FmsFacilityCodeClass">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FacilityClassId" />
+            </Principal>
+            <Dependent Role="CmFacility">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="SecondClassId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__CmFacility__FmsFacilityCodeClassAsThird">
+          <End Type="iBemsModel.FmsFacilityCodeClass" Role="FmsFacilityCodeClass" Multiplicity="0..1" />
+          <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="FmsFacilityCodeClass">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FacilityClassId" />
+            </Principal>
+            <Dependent Role="CmFacility">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="ThirdClassId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__CmFacilityFile__7720AD13">
+          <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="1" />
+          <End Type="iBemsModel.CmFacilityFile" Role="CmFacilityFile" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmFacility">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FacilityCode" />
+            </Principal>
+            <Dependent Role="CmFacilityFile">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FacilityCode" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__CmFacilityManual__79FD19BE">
+          <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="1" />
+          <End Type="iBemsModel.FmsFacilityManual" Role="FmsFacilityManual" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmFacility">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FacilityCode" />
+            </Principal>
+            <Dependent Role="FmsFacilityManual">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FacilityCode" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsFacilityOpera__725BF7F6">
+          <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="1" />
+          <End Type="iBemsModel.FmsFacilityOperationItem" Role="FmsFacilityOperationItem" Multiplicity="0..1" />
+          <ReferentialConstraint>
+            <Principal Role="CmFacility">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FacilityCode" />
+            </Principal>
+            <Dependent Role="FmsFacilityOperationItem">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="ItemId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsWorkResultCheckItem__CmFacility">
+          <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="0..1" />
+          <End Type="iBemsModel.FmsWorkResultCheckItem" Role="FmsWorkResultCheckItem" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmFacility">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FacilityCode" />
+            </Principal>
+            <Dependent Role="FmsWorkResultCheckItem">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FacilityCode" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__FmsWorkResultToFacility__CmFacility">
+          <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="1" />
+          <End Type="iBemsModel.FmsWorkResultToFacility" Role="FmsWorkResultToFacility" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmFacility">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FacilityCode" />
+            </Principal>
+            <Dependent Role="FmsWorkResultToFacility">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FacilityCode" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_CmFacility_CmUser">
+          <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="0..1" />
+          <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmUser">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="UserId" />
+            </Principal>
+            <Dependent Role="CmFacility">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="MainContactorUserId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_CmFacility_CmUser1">
+          <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="0..1" />
+          <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmUser">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="UserId" />
+            </Principal>
+            <Dependent Role="CmFacility">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="SubContactorUserId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_CmFacilityTempSet_CmFacility">
+          <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="1" />
+          <End Type="iBemsModel.CmFacilityTempSet" Role="CmFacilityTempSet" Multiplicity="0..1" />
+          <ReferentialConstraint>
+            <Principal Role="CmFacility">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FacilityCode" />
+            </Principal>
+            <Dependent Role="CmFacilityTempSet">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FacilityCode" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsWorkOrderToFacility_CmFacility">
+          <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="1" />
+          <End Type="iBemsModel.FmsWorkOrderToFacility" Role="FmsWorkOrderToFacility" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmFacility">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FacilityCode" />
+            </Principal>
+            <Dependent Role="FmsWorkOrderToFacility">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FacilityCode" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsWorkRequestToFacility_CmFacility">
+          <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="1" />
+          <End Type="iBemsModel.FmsWorkRequestToFacility" Role="FmsWorkRequestToFacility" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmFacility">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FacilityCode" />
+            </Principal>
+            <Dependent Role="FmsWorkRequestToFacility">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FacilityCode" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsWorkScheduleToFacility_CmFacility">
+          <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="1" />
+          <End Type="iBemsModel.FmsWorkScheduleToFacility" Role="FmsWorkScheduleToFacility" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmFacility">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FacilityCode" />
+            </Principal>
+            <Dependent Role="FmsWorkScheduleToFacility">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FacilityCode" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <EntityType Name="BemsMonitoringPointHistory15minRawData">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="FacilityCode" />
+            <PropertyRef Name="PropertyId" />
+            <PropertyRef Name="CreatedDateTime" />
+          </Key>
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
+          <Property Name="FacilityCode" Type="Int32" Nullable="false" />
+          <Property Name="PropertyId" Type="Int32" Nullable="false" />
+          <Property Name="CreatedDateTime" Type="DateTime" Nullable="false" Precision="3" />
+          <Property Name="CurrentValue" Type="Double" Nullable="false" />
+          <NavigationProperty Name="BemsFacilityType" Relationship="iBemsModel.FK__BemsMonitoringPointHistory15minRawData__BemsFacilityType" FromRole="BemsMonitoringPointHistory15minRawData" ToRole="BemsFacilityType" />
+          <NavigationProperty Name="BemsMonitoringPoint" Relationship="iBemsModel.FK__BemsMonitoringPointHistory15minRawData__BemsMonitoringPoint" FromRole="BemsMonitoringPointHistory15minRawData" ToRole="BemsMonitoringPoint" />
+        </EntityType>
+        <Association Name="FK__BemsMonitoringPointHistory15minRawData__BemsFacilityType">
+          <End Type="iBemsModel.BemsFacilityType" Role="BemsFacilityType" Multiplicity="1" />
+          <End Type="iBemsModel.BemsMonitoringPointHistory15minRawData" Role="BemsMonitoringPointHistory15minRawData" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="BemsFacilityType">
+              <PropertyRef Name="FacilityTypeId" />
+            </Principal>
+            <Dependent Role="BemsMonitoringPointHistory15minRawData">
+              <PropertyRef Name="FacilityTypeId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__BemsMonitoringPointHistory15minRawData__BemsMonitoringPoint">
+          <End Type="iBemsModel.BemsMonitoringPoint" Role="BemsMonitoringPoint" Multiplicity="1" />
+          <End Type="iBemsModel.BemsMonitoringPointHistory15minRawData" Role="BemsMonitoringPointHistory15minRawData" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="BemsMonitoringPoint">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FacilityCode" />
+              <PropertyRef Name="PropertyId" />
+            </Principal>
+            <Dependent Role="BemsMonitoringPointHistory15minRawData">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="FacilityCode" />
+              <PropertyRef Name="PropertyId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <EntityType Name="FmsDailyReport">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="AddDate" />
+            <PropertyRef Name="BusinessFieldId" />
+          </Key>
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="DailyReportId" Type="Int32" />
+          <Property Name="Name" Type="String" Nullable="false" MaxLength="128" FixedLength="false" Unicode="true" />
+          <Property Name="Contents" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
+          <Property Name="RegisterUserId" Type="String" Nullable="false" MaxLength="24" FixedLength="false" Unicode="true" />
+          <Property Name="AddDate" Type="DateTime" Nullable="false" Precision="0" />
+          <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
+          <Property Name="Datas" Type="String" MaxLength="Max" FixedLength="false" Unicode="false" />
+          <Property Name="ApproverUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
+          <Property Name="ApproveDate" Type="DateTime" Precision="0" />
+          <Property Name="RegisterDate" Type="DateTime" Precision="0" />
+          <Property Name="ApproverUserId2" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
+          <Property Name="ApproveDate2" Type="DateTime" Precision="0" />
+          <Property Name="ApproverUserId3" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
+          <Property Name="ApproveDate3" Type="DateTime" Precision="0" />
+          <Property Name="ApproverUserId4" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
+          <Property Name="ApproveDate4" Type="DateTime" Precision="0" />
+          <Property Name="ApproverUserId5" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
+          <Property Name="ApproveDate5" Type="DateTime" Precision="0" />
+          <NavigationProperty Name="CmBusinessField" Relationship="iBemsModel.FK_FmsDailyReport_CmBusinessField" FromRole="FmsDailyReport" ToRole="CmBusinessField" />
+          <NavigationProperty Name="CmUser" Relationship="iBemsModel.FK_FmsDailyReport_CmUser" FromRole="FmsDailyReport" ToRole="CmUser" />
+        </EntityType>
+        <Association Name="FK_FmsDailyReport_CmBusinessField">
+          <End Type="iBemsModel.CmBusinessField" Role="CmBusinessField" Multiplicity="1" />
+          <End Type="iBemsModel.FmsDailyReport" Role="FmsDailyReport" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmBusinessField">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="BusinessFieldId" />
+            </Principal>
+            <Dependent Role="FmsDailyReport">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="BusinessFieldId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsDailyReport_CmUser">
+          <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="1" />
+          <End Type="iBemsModel.FmsDailyReport" Role="FmsDailyReport" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmUser">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="UserId" />
+            </Principal>
+            <Dependent Role="FmsDailyReport">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="RegisterUserId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <EntityType Name="BemsPeakHistoryDaily">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="CreatedDateTime" />
+          </Key>
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="CreatedDateTime" Type="DateTime" Nullable="false" Precision="3" />
+          <Property Name="MaxPeakValue" Type="Double" />
+          <Property Name="MaxDateTime" Type="DateTime" Precision="3" />
+          <Property Name="MinPeakValue" Type="Double" />
+          <Property Name="MinDateTime" Type="DateTime" Precision="3" />
+        </EntityType>
+        <EntityType Name="FmsEquipment">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="EquipmentId" />
+          </Key>
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="EquipmentId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+          <Property Name="Name" Type="String" Nullable="false" MaxLength="48" FixedLength="false" Unicode="true" />
+          <Property Name="EquipmentTypeId" Type="Int32" Nullable="false" />
+          <Property Name="WarehouseId" Type="Int32" />
+          <Property Name="Unit" Type="String" MaxLength="12" FixedLength="false" Unicode="true" />
+          <Property Name="Standard" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
+          <Property Name="AddDate" Type="DateTime" Precision="3" />
+          <Property Name="UpdateDate" Type="DateTime" Precision="3" />
+          <Property Name="RegisterUserId" Type="String" Nullable="false" MaxLength="24" FixedLength="false" Unicode="true" />
+          <Property Name="SupplierName" Type="String" MaxLength="256" FixedLength="false" Unicode="true" />
+          <Property Name="SupplierPhoneNo" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
+          <Property Name="ImageFileId" Type="Int32" />
+          <NavigationProperty Name="CmUser" Relationship="iBemsModel.FK_FmsEquipment_CmUser" FromRole="FmsEquipment" ToRole="CmUser" />
+          <NavigationProperty Name="FmsEquipmentCodeType" Relationship="iBemsModel.FK_FmsEquipment_FmsEquipmentCodeType" FromRole="FmsEquipment" ToRole="FmsEquipmentCodeType" />
+          <NavigationProperty Name="FmsMaterialWarehouse" Relationship="iBemsModel.FK_FmsEquipment_FmsMaterialWarehouse" FromRole="FmsEquipment" ToRole="FmsMaterialWarehouse" />
+          <NavigationProperty Name="FmsEquipmentHistory" Relationship="iBemsModel.FK_FmsEquipmentHistory_FmsEquipment" FromRole="FmsEquipment" ToRole="FmsEquipmentHistory" />
+        </EntityType>
+        <Association Name="FK_FmsEquipment_CmUser">
+          <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="1" />
+          <End Type="iBemsModel.FmsEquipment" Role="FmsEquipment" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmUser">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="UserId" />
+            </Principal>
+            <Dependent Role="FmsEquipment">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="RegisterUserId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsEquipment_FmsEquipmentCodeType">
+          <End Type="iBemsModel.FmsEquipmentCodeType" Role="FmsEquipmentCodeType" Multiplicity="1" />
+          <End Type="iBemsModel.FmsEquipment" Role="FmsEquipment" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="FmsEquipmentCodeType">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="EquipmentTypeId" />
+            </Principal>
+            <Dependent Role="FmsEquipment">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="EquipmentTypeId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsEquipment_FmsMaterialWarehouse">
+          <End Type="iBemsModel.FmsMaterialWarehouse" Role="FmsMaterialWarehouse" Multiplicity="0..1" />
+          <End Type="iBemsModel.FmsEquipment" Role="FmsEquipment" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="FmsMaterialWarehouse">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="WarehouseId" />
+            </Principal>
+            <Dependent Role="FmsEquipment">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="WarehouseId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsEquipmentHistory_FmsEquipment">
+          <End Type="iBemsModel.FmsEquipment" Role="FmsEquipment" Multiplicity="1" />
+          <End Type="iBemsModel.FmsEquipmentHistory" Role="FmsEquipmentHistory" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="FmsEquipment">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="EquipmentId" />
+            </Principal>
+            <Dependent Role="FmsEquipmentHistory">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="EquipmentId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <EntityType Name="CmAlarmAdmin">
+          <Key>
+            <PropertyRef Name="SiteId" />
+          </Key>
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="UserCode" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
+          <Property Name="DeptCode" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
+          <Property Name="PhoneNo" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
+          <Property Name="EmailAddress" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
+          <Property Name="EmailPassword" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
+        </EntityType>
+        <EntityType Name="BemsFloorStatus">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="FloorId" />
+            <PropertyRef Name="FloorName" />
+            <PropertyRef Name="ImageFileId" />
+            <PropertyRef Name="Xvalue" />
+            <PropertyRef Name="Yvalue" />
+            <PropertyRef Name="PropertyId" />
+          </Key>
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="FloorId" Type="Int32" Nullable="false" />
+          <Property Name="FloorName" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
+          <Property Name="ImageFileId" Type="Int32" Nullable="false" />
+          <Property Name="Xvalue" Type="Int32" Nullable="false" />
+          <Property Name="Yvalue" Type="Int32" Nullable="false" />
+          <Property Name="ZoneId" Type="Int32" />
+          <Property Name="ServiceTypeId" Type="Int32" />
+          <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
+          <Property Name="FacilityCode" Type="Int32" Nullable="false" />
+          <Property Name="PropertyId" Type="Int32" Nullable="false" />
+          <Property Name="FacilityName" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
+        </EntityType>
+        <EntityType Name="BemsReportHistory">
+          <Key>
+            <PropertyRef Name="Seq" />
+            <PropertyRef Name="DateTime" />
+            <PropertyRef Name="ReportFormatId" />
+            <PropertyRef Name="parts" />
+          </Key>
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="Seq" Type="Int32" Nullable="false" />
+          <Property Name="DateTime" Type="DateTime" Nullable="false" Precision="3" />
+          <Property Name="ReportName" Type="String" Nullable="false" MaxLength="200" FixedLength="false" Unicode="false" />
+          <Property Name="ReportFormatId" Type="Int32" Nullable="false" />
+          <Property Name="FormatName" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="false" />
+          <Property Name="Content" Type="String" MaxLength="Max" FixedLength="false" Unicode="false" />
+          <Property Name="Writer" Type="String" MaxLength="50" FixedLength="false" Unicode="false" />
+          <Property Name="Confirm1" Type="String" MaxLength="50" FixedLength="false" Unicode="false" />
+          <Property Name="Confirm2" Type="String" MaxLength="50" FixedLength="false" Unicode="false" />
+          <Property Name="parts" Type="Int32" Nullable="false" />
+          <Property Name="FileName" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
+        </EntityType>
+        <EntityType Name="CmPartner">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="PartnerId" />
+          </Key>
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="PartnerId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+          <Property Name="PartnerTypeId" Type="Int32" Nullable="false" />
+          <Property Name="Name" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
+          <Property Name="RegistrationNo" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
+          <Property Name="RepresentativeName" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
+          <Property Name="PhoneNo" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
+          <Property Name="FaxNo" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
+          <Property Name="SalesName" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
+          <Property Name="SalesPhoneNo" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
+          <Property Name="AddressZip1" Type="String" MaxLength="3" FixedLength="true" Unicode="true" />
+          <Property Name="AddressZip2" Type="String" MaxLength="3" FixedLength="true" Unicode="true" />
+          <Property Name="Address1" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
+          <Property Name="Adderss2" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
+          <Property Name="HomepageUri" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
+          <Property Name="Note" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
+          <Property Name="IsUse" Type="Boolean" />
+          <NavigationProperty Name="CmPartnerType" Relationship="iBemsModel.FK_CmPartnerType_CmPartner" FromRole="CmPartner" ToRole="CmPartnerType" />
+          <NavigationProperty Name="FmsConstruction" Relationship="iBemsModel.FK_FmsConstruction_CmPartner" FromRole="CmPartner" ToRole="FmsConstruction" />
+          <NavigationProperty Name="FmsWorkRequest" Relationship="iBemsModel.FK_FmsWorkRequest_CmPartner" FromRole="CmPartner" ToRole="FmsWorkRequest" />
+          <NavigationProperty Name="FmsWorkSchedule" Relationship="iBemsModel.FK_FmsWorkSchedule_CmPartner" FromRole="CmPartner" ToRole="FmsWorkSchedule" />
+          <NavigationProperty Name="FmsContract" Relationship="iBemsModel.FK_FmsContract_CmPartner" FromRole="CmPartner" ToRole="FmsContract" />
+        </EntityType>
+        <EntityType Name="CmPartnerType">
+          <Key>
+            <PropertyRef Name="PartnerTypeId" />
+          </Key>
+          <Property Name="PartnerTypeId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+          <Property Name="Name" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
+          <Property Name="IsUse" Type="Boolean" />
+          <NavigationProperty Name="CmPartner" Relationship="iBemsModel.FK_CmPartnerType_CmPartner" FromRole="CmPartnerType" ToRole="CmPartner" />
+          <NavigationProperty Name="FmsContract" Relationship="iBemsModel.FK_FmsContract_CmPartnerType" FromRole="CmPartnerType" ToRole="FmsContract" />
+        </EntityType>
+        <Association Name="FK_CmPartnerType_CmPartner">
+          <End Type="iBemsModel.CmPartnerType" Role="CmPartnerType" Multiplicity="1" />
+          <End Type="iBemsModel.CmPartner" Role="CmPartner" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmPartnerType">
+              <PropertyRef Name="PartnerTypeId" />
+            </Principal>
+            <Dependent Role="CmPartner">
+              <PropertyRef Name="PartnerTypeId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsConstruction_CmPartner">
+          <End Type="iBemsModel.CmPartner" Role="CmPartner" Multiplicity="1" />
+          <End Type="iBemsModel.FmsConstruction" Role="FmsConstruction" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmPartner">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="PartnerId" />
+            </Principal>
+            <Dependent Role="FmsConstruction">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="PartnerId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsWorkRequest_CmPartner">
+          <End Type="iBemsModel.CmPartner" Role="CmPartner" Multiplicity="0..1" />
+          <End Type="iBemsModel.FmsWorkRequest" Role="FmsWorkRequest" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmPartner">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="PartnerId" />
+            </Principal>
+            <Dependent Role="FmsWorkRequest">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="InspectionAgencyId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsWorkSchedule_CmPartner">
+          <End Type="iBemsModel.CmPartner" Role="CmPartner" Multiplicity="0..1" />
+          <End Type="iBemsModel.FmsWorkSchedule" Role="FmsWorkSchedule" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmPartner">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="PartnerId" />
+            </Principal>
+            <Dependent Role="FmsWorkSchedule">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="InspectionAgencyId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <EntityType Name="FmsContract">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="ContractId" />
+          </Key>
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="ContractId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+          <Property Name="Name" Type="String" Nullable="false" MaxLength="256" FixedLength="false" Unicode="true" />
+          <Property Name="PartnerTypeId" Type="Int32" />
+          <Property Name="PartnerId" Type="Int32" />
+          <Property Name="ContractDate" Type="DateTime" Precision="3" />
+          <Property Name="StartDate" Type="DateTime" Precision="3" />
+          <Property Name="EndDate" Type="DateTime" Precision="3" />
+          <Property Name="OwnerShipName" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
+          <Property Name="OwnerShipPhoneNo" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
+          <Property Name="CommitmentMan" Type="Int16" />
+          <Property Name="Comment" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
+          <Property Name="ContractClassId" Type="Int32" />
+          <Property Name="ContractTypeId" Type="Int32" />
+          <Property Name="ContractMethodId" Type="Int32" />
+          <Property Name="PaymentTypeId" Type="Int32" />
+          <NavigationProperty Name="CmPartner" Relationship="iBemsModel.FK_FmsContract_CmPartner" FromRole="FmsContract" ToRole="CmPartner" />
+          <NavigationProperty Name="CmPartnerType" Relationship="iBemsModel.FK_FmsContract_CmPartnerType" FromRole="FmsContract" ToRole="CmPartnerType" />
+          <NavigationProperty Name="FmsContractClass" Relationship="iBemsModel.FK_FmsContract_FmsContractClass" FromRole="FmsContract" ToRole="FmsContractClass" />
+          <NavigationProperty Name="FmsContractMethod" Relationship="iBemsModel.FK_FmsContract_FmsContractMethod" FromRole="FmsContract" ToRole="FmsContractMethod" />
+          <NavigationProperty Name="FmsContractType" Relationship="iBemsModel.FK_FmsContract_FmsContractType" FromRole="FmsContract" ToRole="FmsContractType" />
+          <NavigationProperty Name="FmsPaymentType" Relationship="iBemsModel.FK_FmsContract_FmsPaymentType" FromRole="FmsContract" ToRole="FmsPaymentType" />
+        </EntityType>
+        <Association Name="FK_FmsContract_CmPartner">
+          <End Type="iBemsModel.CmPartner" Role="CmPartner" Multiplicity="0..1" />
+          <End Type="iBemsModel.FmsContract" Role="FmsContract" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmPartner">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="PartnerId" />
+            </Principal>
+            <Dependent Role="FmsContract">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="PartnerId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsContract_CmPartnerType">
+          <End Type="iBemsModel.CmPartnerType" Role="CmPartnerType" Multiplicity="0..1" />
+          <End Type="iBemsModel.FmsContract" Role="FmsContract" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="CmPartnerType">
+              <PropertyRef Name="PartnerTypeId" />
+            </Principal>
+            <Dependent Role="FmsContract">
+              <PropertyRef Name="PartnerTypeId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsContract_FmsContractClass">
+          <End Type="iBemsModel.FmsContractClass" Role="FmsContractClass" Multiplicity="0..1" />
+          <End Type="iBemsModel.FmsContract" Role="FmsContract" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="FmsContractClass">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="ContractClassId" />
+            </Principal>
+            <Dependent Role="FmsContract">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="ContractClassId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsContract_FmsContractMethod">
+          <End Type="iBemsModel.FmsContractMethod" Role="FmsContractMethod" Multiplicity="0..1" />
+          <End Type="iBemsModel.FmsContract" Role="FmsContract" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="FmsContractMethod">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="ContractMethodId" />
+            </Principal>
+            <Dependent Role="FmsContract">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="ContractMethodId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsContract_FmsContractType">
+          <End Type="iBemsModel.FmsContractType" Role="FmsContractType" Multiplicity="0..1" />
+          <End Type="iBemsModel.FmsContract" Role="FmsContract" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="FmsContractType">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="ContractTypeId" />
+            </Principal>
+            <Dependent Role="FmsContract">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="ContractTypeId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_FmsContract_FmsPaymentType">
+          <End Type="iBemsModel.FmsPaymentType" Role="FmsPaymentType" Multiplicity="0..1" />
+          <End Type="iBemsModel.FmsContract" Role="FmsContract" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="FmsPaymentType">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="PaymentTypeId" />
+            </Principal>
+            <Dependent Role="FmsContract">
+              <PropertyRef Name="SiteId" />
+              <PropertyRef Name="PartnerTypeId" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <EntityType Name="BemsMonitoringPointForecastingDayAhead">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="FacilityCode" />
+            <PropertyRef Name="PropertyId" />
+            <PropertyRef Name="CreatedDateTime" />
+            <PropertyRef Name="TargetDateTime" />
+          </Key>
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
+          <Property Name="FacilityCode" Type="Int32" Nullable="false" />
+          <Property Name="PropertyId" Type="Int32" Nullable="false" />
+          <Property Name="CreatedDateTime" Type="DateTime" Nullable="false" Precision="3" />
+          <Property Name="TargetDateTime" Type="DateTime" Nullable="false" Precision="3" />
+          <Property Name="ForecastedValue" Type="Double" Nullable="false" />
+        </EntityType>
+        <EntityType Name="BemsMonitoringPointForecastingHourAhead">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="FacilityCode" />
+            <PropertyRef Name="PropertyId" />
+            <PropertyRef Name="CreatedDateTime" />
+            <PropertyRef Name="TargetDateTime" />
+          </Key>
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
+          <Property Name="FacilityCode" Type="Int32" Nullable="false" />
+          <Property Name="PropertyId" Type="Int32" Nullable="false" />
+          <Property Name="CreatedDateTime" Type="DateTime" Nullable="false" Precision="3" />
+          <Property Name="TargetDateTime" Type="DateTime" Nullable="false" Precision="3" />
+          <Property Name="ForecastedValue" Type="Double" Nullable="false" />
+        </EntityType>
+        <EntityType Name="BemsFloorPlan">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="Name" />
+          </Key>
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="FloorId" Type="Int32" Nullable="false" />
+          <Property Name="Name" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
+          <Property Name="ImageFileId" Type="Int32" />
+        </EntityType>
+        <EntityType Name="BemsMonitoringPointWeatherForecasted">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="CreatedDateTime" />
+            <PropertyRef Name="Category" />
+            <PropertyRef Name="BaseDateTime" />
+            <PropertyRef Name="ForecastedDateTime" />
+          </Key>
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="CreatedDateTime" Type="DateTime" Nullable="false" Precision="3" />
+          <Property Name="Category" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
+          <Property Name="BaseDateTime" Type="DateTime" Nullable="false" Precision="3" />
+          <Property Name="ForecastedDateTime" Type="DateTime" Nullable="false" Precision="3" />
+          <Property Name="ForecastedValue" Type="Double" Nullable="false" />
+          <Property Name="nx" Type="Int32" Nullable="false" />
+          <Property Name="ny" Type="Int32" Nullable="false" />
+        </EntityType>
+        <EntityType Name="BemsIceThermalStorageSimulation">
+          <Key>
+            <PropertyRef Name="SiteId" />
+            <PropertyRef Name="FacilityCode" />
+            <PropertyRef Name="PropertyId" />
+            <PropertyRef Name="CreatedDateTime" />
+            <PropertyRef Name="TargetDateTime" />
+            <PropertyRef Name="SimulationCase" />
+          </Key>
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
+          <Property Name="FacilityCode" Type="Int32" Nullable="false" />
+          <Property Name="PropertyId" Type="Int32" Nullable="false" />
+          <Property Name="CreatedDateTime" Type="DateTime" Nullable="false" Precision="3" />
+          <Property Name="TargetDateTime" Type="DateTime" Nullable="false" Precision="3" />
+          <Property Name="SimulationValue" Type="Double" />
+          <Property Name="SimulationCase" Type="Int32" Nullable="false" />
+        </EntityType>
+        <EntityType Name="BemsConfigData">
+          <Key>
+            <PropertyRef Name="SiteId" />
+          </Key>
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="LoadDBIP" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
+          <Property Name="LoadDBUserID" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
+          <Property Name="LoadDBUserPW" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
+          <Property Name="LoadDBName" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
+          <Property Name="TargetDBIP" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
+          <Property Name="TargetDBUserID" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
+          <Property Name="TargetDBUserPW" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
+          <Property Name="TargetDBName" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
+        </EntityType>
+        </Schema>
+    </edmx:ConceptualModels>
+    <!-- C-S mapping content -->
+    <edmx:Mappings>
+      <Mapping Space="C-S" xmlns="http://schemas.microsoft.com/ado/2009/11/mapping/cs">
+        <EntityContainerMapping StorageEntityContainer="iBemsModelStoreContainer" CdmEntityContainer="iBemsEntities">
+          <EntitySetMapping Name="BemsAnalysisType">
+            <EntityTypeMapping TypeName="iBemsModel.BemsAnalysisType">
+              <MappingFragment StoreEntitySet="BemsAnalysisType">
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+                <ScalarProperty Name="AnalysisType" ColumnName="AnalysisType" />
+                <ScalarProperty Name="Name" ColumnName="Name" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="BemsControlPointHistory">
+            <EntityTypeMapping TypeName="iBemsModel.BemsControlPointHistory">
+              <MappingFragment StoreEntitySet="BemsControlPointHistory">
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+                <ScalarProperty Name="FacilityTypeId" ColumnName="FacilityTypeId" />
+                <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
+                <ScalarProperty Name="PropertyId" ColumnName="PropertyId" />
+                <ScalarProperty Name="CreateDateTime" ColumnName="CreateDateTime" />
+                <ScalarProperty Name="ControlValue" ColumnName="ControlValue" />
+                <ScalarProperty Name="WriteServiceName" ColumnName="WriteServiceName" />
+                <ScalarProperty Name="ActionDateTime" ColumnName="ActionDateTime" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="BemsFacilityType">
+            <EntityTypeMapping TypeName="iBemsModel.BemsFacilityType">
+              <MappingFragment StoreEntitySet="BemsFacilityType">
+                <ScalarProperty Name="FacilityTypeId" ColumnName="FacilityTypeId" />
+                <ScalarProperty Name="Name" ColumnName="Name" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="BemsFactorCo2">
+            <EntityTypeMapping TypeName="iBemsModel.BemsFactorCo2">
+              <MappingFragment StoreEntitySet="BemsFactorCo2">
+                <ScalarProperty Name="FuelTypeId" ColumnName="FuelTypeId" />
+                <ScalarProperty Name="Factor" ColumnName="Factor" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="BemsFactorToe">
+            <EntityTypeMapping TypeName="iBemsModel.BemsFactorToe">
+              <MappingFragment StoreEntitySet="BemsFactorToe">
+                <ScalarProperty Name="FuelTypeId" ColumnName="FuelTypeId" />
+                <ScalarProperty Name="TotalFactor" ColumnName="TotalFactor" />
+                <ScalarProperty Name="PureFactor" ColumnName="PureFactor" />
+                <ScalarProperty Name="kcal" ColumnName="kcal" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="BemsFormula">
+            <EntityTypeMapping TypeName="iBemsModel.BemsFormula">
+              <MappingFragment StoreEntitySet="BemsFormula">
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+                <ScalarProperty Name="FacilityTypeId" ColumnName="FacilityTypeId" />
+                <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
+                <ScalarProperty Name="FormulaId" ColumnName="FormulaId" />
+                <ScalarProperty Name="Formula" ColumnName="Formula" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="BemsFormulaBase">
+            <EntityTypeMapping TypeName="iBemsModel.BemsFormulaBase">
+              <MappingFragment StoreEntitySet="BemsFormulaBase">
+                <ScalarProperty Name="FacilityTypeId" ColumnName="FacilityTypeId" />
+                <ScalarProperty Name="FormulaId" ColumnName="FormulaId" />
+                <ScalarProperty Name="Name" ColumnName="Name" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="BemsFormulaParameter">
+            <EntityTypeMapping TypeName="iBemsModel.BemsFormulaParameter">
+              <MappingFragment StoreEntitySet="BemsFormulaParameter">
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+                <ScalarProperty Name="FacilityTypeId" ColumnName="FacilityTypeId" />
+                <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
+                <ScalarProperty Name="FormulaId" ColumnName="FormulaId" />
+                <ScalarProperty Name="ParameterId" ColumnName="ParameterId" />
+                <ScalarProperty Name="ParameterFacilityCode" ColumnName="ParameterFacilityCode" />
+                <ScalarProperty Name="ParameterPropertyId" ColumnName="ParameterPropertyId" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="BemsFormulaTable">
+            <EntityTypeMapping TypeName="iBemsModel.BemsFormulaTable">
+              <MappingFragment StoreEntitySet="BemsFormulaTable">
+                <ScalarProperty Name="TableId" ColumnName="TableId" />
+                <ScalarProperty Name="FunctionName" ColumnName="FunctionName" />
+                <ScalarProperty Name="Description" ColumnName="Description" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="BemsFormulaTableValue">
+            <EntityTypeMapping TypeName="iBemsModel.BemsFormulaTableValue">
+              <MappingFragment StoreEntitySet="BemsFormulaTableValue">
+                <ScalarProperty Name="TableId" ColumnName="TableId" />
+                <ScalarProperty Name="XValue" ColumnName="XValue" />
+                <ScalarProperty Name="YValue" ColumnName="YValue" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="BemsMonitoringPoint">
+            <EntityTypeMapping TypeName="iBemsModel.BemsMonitoringPoint">
+              <MappingFragment StoreEntitySet="BemsMonitoringPoint">
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+                <ScalarProperty Name="FacilityTypeId" ColumnName="FacilityTypeId" />
+                <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
+                <ScalarProperty Name="PropertyId" ColumnName="PropertyId" />
+                <ScalarProperty Name="ValueType" ColumnName="ValueType" />
+                <ScalarProperty Name="ServiceTypeId" ColumnName="ServiceTypeId" />
+                <ScalarProperty Name="FuelTypeId" ColumnName="FuelTypeId" />
+                <ScalarProperty Name="Name" ColumnName="Name" />
+                <ScalarProperty Name="Description" ColumnName="Description" />
+                <ScalarProperty Name="BuildingId" ColumnName="BuildingId" />
+                <ScalarProperty Name="FloorId" ColumnName="FloorId" />
+                <ScalarProperty Name="ZoneId" ColumnName="ZoneId" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="BemsMonitoringPointBaseData">
+            <EntityTypeMapping TypeName="iBemsModel.BemsMonitoringPointBaseData">
+              <MappingFragment StoreEntitySet="BemsMonitoringPointBaseData">
+                <ScalarProperty Name="IsConverted" ColumnName="IsConverted" />
+                <ScalarProperty Name="FacilityTypeId" ColumnName="FacilityTypeId" />
+                <ScalarProperty Name="PropertyId" ColumnName="PropertyId" />
+                <ScalarProperty Name="ValueType" ColumnName="ValueType" />
+                <ScalarProperty Name="IsAccumulated" ColumnName="IsAccumulated" />
+                <ScalarProperty Name="ServiceTypeId" ColumnName="ServiceTypeId" />
+                <ScalarProperty Name="FuelTypeId" ColumnName="FuelTypeId" />
+                <ScalarProperty Name="Name" ColumnName="Name" />
+                <ScalarProperty Name="Description" ColumnName="Description" />
+                <ScalarProperty Name="IsSampled" ColumnName="IsSampled" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="BemsMonitoringPointHistory15min">
+            <EntityTypeMapping TypeName="iBemsModel.BemsMonitoringPointHistory15min">
+              <MappingFragment StoreEntitySet="BemsMonitoringPointHistory15min">
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+                <ScalarProperty Name="FacilityTypeId" ColumnName="FacilityTypeId" />
+                <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
+                <ScalarProperty Name="PropertyId" ColumnName="PropertyId" />
+                <ScalarProperty Name="CreatedDateTime" ColumnName="CreatedDateTime" />
+                <ScalarProperty Name="CurrentValue" ColumnName="CurrentValue" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="BemsMonitoringPointHistoryDaily">
+            <EntityTypeMapping TypeName="iBemsModel.BemsMonitoringPointHistoryDaily">
+              <MappingFragment StoreEntitySet="BemsMonitoringPointHistoryDaily">
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+                <ScalarProperty Name="FacilityTypeId" ColumnName="FacilityTypeId" />
+                <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
+                <ScalarProperty Name="PropertyId" ColumnName="PropertyId" />
+                <ScalarProperty Name="CreatedDateTime" ColumnName="CreatedDateTime" />
+                <ScalarProperty Name="DailyValue" ColumnName="DailyValue" />
+                <ScalarProperty Name="MaxValue" ColumnName="MaxValue" />
+                <ScalarProperty Name="MinValue" ColumnName="MinValue" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="BemsMonitoringPointHistoryHourly">
+            <EntityTypeMapping TypeName="iBemsModel.BemsMonitoringPointHistoryHourly">
+              <MappingFragment StoreEntitySet="BemsMonitoringPointHistoryHourly">
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+                <ScalarProperty Name="FacilityTypeId" ColumnName="FacilityTypeId" />
+                <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
+                <ScalarProperty Name="PropertyId" ColumnName="PropertyId" />
+                <ScalarProperty Name="CreatedDateTime" ColumnName="CreatedDateTime" />
+                <ScalarProperty Name="CurrentValue" ColumnName="CurrentValue" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="BemsMonitoringPointToAnlaysisType">
+            <EntityTypeMapping TypeName="iBemsModel.BemsMonitoringPointToAnlaysisType">
+              <MappingFragment StoreEntitySet="BemsMonitoringPointToAnlaysisType">
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+                <ScalarProperty Name="FacilityTypeId" ColumnName="FacilityTypeId" />
+                <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
+                <ScalarProperty Name="PropertyId" ColumnName="PropertyId" />
+                <ScalarProperty Name="AnalysisType" ColumnName="AnalysisType" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="BemsServiceType">
+            <EntityTypeMapping TypeName="iBemsModel.BemsServiceType">
+              <MappingFragment StoreEntitySet="BemsServiceType">
+                <ScalarProperty Name="ServiceTypeId" ColumnName="ServiceTypeId" />
+                <ScalarProperty Name="Name" ColumnName="Name" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="CmAnnouncement">
+            <EntityTypeMapping TypeName="iBemsModel.CmAnnouncement">
+              <MappingFragment StoreEntitySet="CmAnnouncement">
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+                <ScalarProperty Name="AnnouncementId" ColumnName="AnnouncementId" />
+                <ScalarProperty Name="BusinessFieldId" ColumnName="BusinessFieldId" />
+                <ScalarProperty Name="Title" ColumnName="Title" />
+                <ScalarProperty Name="Contents" ColumnName="Contents" />
+                <ScalarProperty Name="RegisterUserId" ColumnName="RegisterUserId" />
+                <ScalarProperty Name="FileId" ColumnName="FileId" />
+                <ScalarProperty Name="AddDate" ColumnName="AddDate" />
+                <ScalarProperty Name="UpdateDate" ColumnName="UpdateDate" />
+                <ScalarProperty Name="IsUse" ColumnName="IsUse" />
+                <ScalarProperty Name="ReadCount" ColumnName="ReadCount" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="CmBuilding">
+            <EntityTypeMapping TypeName="iBemsModel.CmBuilding">
+              <MappingFragment StoreEntitySet="CmBuilding">
+                <ScalarProperty Name="SortOrderNo" ColumnName="SortOrderNo" />
+                <ScalarProperty Name="IsUse" ColumnName="IsUse" />
+                <ScalarProperty Name="FileId" ColumnName="FileId" />
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+                <ScalarProperty Name="BuildingId" ColumnName="BuildingId" />
+                <ScalarProperty Name="Name" ColumnName="Name" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="CmBusinessField">
+            <EntityTypeMapping TypeName="iBemsModel.CmBusinessField">
+              <MappingFragment StoreEntitySet="CmBusinessField">
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+                <ScalarProperty Name="BusinessFieldId" ColumnName="BusinessFieldId" />
+                <ScalarProperty Name="Name" ColumnName="Name" />
+                <ScalarProperty Name="IsUse" ColumnName="IsUse" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="CmCompany">
+            <EntityTypeMapping TypeName="iBemsModel.CmCompany">
+              <MappingFragment StoreEntitySet="CmCompany">
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+                <ScalarProperty Name="CompanyId" ColumnName="CompanyId" />
+                <ScalarProperty Name="CompanyTypeId" ColumnName="CompanyTypeId" />
+                <ScalarProperty Name="Name" ColumnName="Name" />
+                <ScalarProperty Name="PhoneNo" ColumnName="PhoneNo" />
+                <ScalarProperty Name="FaxNo" ColumnName="FaxNo" />
+                <ScalarProperty Name="RepresentativeName" ColumnName="RepresentativeName" />
+                <ScalarProperty Name="SalesName" ColumnName="SalesName" />
+                <ScalarProperty Name="SalesPhoneNo" ColumnName="SalesPhoneNo" />
+                <ScalarProperty Name="AddressZip1" ColumnName="AddressZip1" />
+                <ScalarProperty Name="AddressZip2" ColumnName="AddressZip2" />
+                <ScalarProperty Name="Address1" ColumnName="Address1" />
+                <ScalarProperty Name="Adderss2" ColumnName="Adderss2" />
+                <ScalarProperty Name="Homepage" ColumnName="Homepage" />
+                <ScalarProperty Name="Comment" ColumnName="Comment" />
+                <ScalarProperty Name="IsUse" ColumnName="IsUse" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="CmCompanyType">
+            <EntityTypeMapping TypeName="iBemsModel.CmCompanyType">
+              <MappingFragment StoreEntitySet="CmCompanyType">
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+                <ScalarProperty Name="CompanyTypeId" ColumnName="CompanyTypeId" />
+                <ScalarProperty Name="Name" ColumnName="Name" />
+                <ScalarProperty Name="IsUse" ColumnName="IsUse" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="CmDepartment">
+            <EntityTypeMapping TypeName="iBemsModel.CmDepartment">
+              <MappingFragment StoreEntitySet="CmDepartment">
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+                <ScalarProperty Name="CompanyId" ColumnName="CompanyId" />
+                <ScalarProperty Name="DepartmentId" ColumnName="DepartmentId" />
+                <ScalarProperty Name="Name" ColumnName="Name" />
+                <ScalarProperty Name="ShortName" ColumnName="ShortName" />
+                <ScalarProperty Name="FaxNo" ColumnName="FaxNo" />
+                <ScalarProperty Name="PhoneNo" ColumnName="PhoneNo" />
+                <ScalarProperty Name="Comment" ColumnName="Comment" />
+                <ScalarProperty Name="IsUse" ColumnName="IsUse" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="CmFacilityFile">
+            <EntityTypeMapping TypeName="iBemsModel.CmFacilityFile">
+              <MappingFragment StoreEntitySet="CmFacilityFile">
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+                <ScalarProperty Name="FileId" ColumnName="FileId" />
+                <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
+                <ScalarProperty Name="InsertedDate" ColumnName="InsertedDate" />
+                <ScalarProperty Name="InsertedUserId" ColumnName="InsertedUserId" />
+                <ScalarProperty Name="UpdatedDate" ColumnName="UpdatedDate" />
+                <ScalarProperty Name="UpdatedUserId" ColumnName="UpdatedUserId" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="CmFacilityTempSet">
+            <EntityTypeMapping TypeName="iBemsModel.CmFacilityTempSet">
+              <MappingFragment StoreEntitySet="CmFacilityTempSet">
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+                <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
+                <ScalarProperty Name="T1" ColumnName="T1" />
+                <ScalarProperty Name="T2" ColumnName="T2" />
+                <ScalarProperty Name="T3" ColumnName="T3" />
+                <ScalarProperty Name="T4" ColumnName="T4" />
+                <ScalarProperty Name="T5" ColumnName="T5" />
+                <ScalarProperty Name="T6" ColumnName="T6" />
+                <ScalarProperty Name="T7" ColumnName="T7" />
+                <ScalarProperty Name="T8" ColumnName="T8" />
+                <ScalarProperty Name="T9" ColumnName="T9" />
+                <ScalarProperty Name="T10" ColumnName="T10" />
+                <ScalarProperty Name="T11" ColumnName="T11" />
+                <ScalarProperty Name="T12" ColumnName="T12" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="CmFile">
+            <EntityTypeMapping TypeName="iBemsModel.CmFile">
+              <MappingFragment StoreEntitySet="CmFile">
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+                <ScalarProperty Name="FileId" ColumnName="FileId" />
+                <ScalarProperty Name="FileCategoryId" ColumnName="FileCategoryId" />
+                <ScalarProperty Name="Name" ColumnName="Name" />
+                <ScalarProperty Name="FileSize" ColumnName="FileSize" />
+                <ScalarProperty Name="CreatedDate" ColumnName="CreatedDate" />
+                <ScalarProperty Name="ContentType" ColumnName="ContentType" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="CmFileCategory">
+            <EntityTypeMapping TypeName="iBemsModel.CmFileCategory">
+              <MappingFragment StoreEntitySet="CmFileCategory">
+                <ScalarProperty Name="FileCategoryId" ColumnName="FileCategoryId" />
+                <ScalarProperty Name="Name" ColumnName="Name" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="CmFloor">
+            <EntityTypeMapping TypeName="iBemsModel.CmFloor">
+              <MappingFragment StoreEntitySet="CmFloor">
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+                <ScalarProperty Name="BuildingId" ColumnName="BuildingId" />
+                <ScalarProperty Name="FloorId" ColumnName="FloorId" />
+                <ScalarProperty Name="Name" ColumnName="Name" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="CmHoliday">
+            <EntityTypeMapping TypeName="iBemsModel.CmHoliday">
+              <MappingFragment StoreEntitySet="CmHoliday">
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+                <ScalarProperty Name="HolidayMonth" ColumnName="HolidayMonth" />
+                <ScalarProperty Name="HolidayDay" ColumnName="HolidayDay" />
+                <ScalarProperty Name="IsLunar" ColumnName="IsLunar" />
+                <ScalarProperty Name="Name" ColumnName="Name" />
+                <ScalarProperty Name="IsUse" ColumnName="IsUse" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="CmHolidayCustom">
+            <EntityTypeMapping TypeName="iBemsModel.CmHolidayCustom">
+              <MappingFragment StoreEntitySet="CmHolidayCustom">
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+                <ScalarProperty Name="HolidayDate" ColumnName="HolidayDate" />
+                <ScalarProperty Name="Name" ColumnName="Name" />
+                <ScalarProperty Name="IsUse" ColumnName="IsUse" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="CmPosition">
+            <EntityTypeMapping TypeName="iBemsModel.CmPosition">
+              <MappingFragment StoreEntitySet="CmPosition">
+                <ScalarProperty Name="Position" ColumnName="Position" />
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+                <ScalarProperty Name="PositionId" ColumnName="PositionId" />
+                <ScalarProperty Name="Name" ColumnName="Name" />
+                <ScalarProperty Name="IsUse" ColumnName="IsUse" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="CmUser">
+            <EntityTypeMapping TypeName="iBemsModel.CmUser">
+              <MappingFragment StoreEntitySet="CmUser">
+                <ScalarProperty Name="Devicetoken" ColumnName="Devicetoken" />
+                <ScalarProperty Name="IsSI" ColumnName="IsSI" />
+                <ScalarProperty Name="IsMobile" ColumnName="IsMobile" />
+                <ScalarProperty Name="IsScheduleUser" ColumnName="IsScheduleUser" />
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+                <ScalarProperty Name="UserId" ColumnName="UserId" />
+                <ScalarProperty Name="CompanyId" ColumnName="CompanyId" />
+                <ScalarProperty Name="DepartmentId" ColumnName="DepartmentId" />
+                <ScalarProperty Name="PositionId" ColumnName="PositionId" />
+                <ScalarProperty Name="BusinessFieldId" ColumnName="BusinessFieldId" />
+                <ScalarProperty Name="UserGroupId" ColumnName="UserGroupId" />
+                <ScalarProperty Name="Name" ColumnName="Name" />
+                <ScalarProperty Name="Passwd" ColumnName="Passwd" />
+                <ScalarProperty Name="Birthday" ColumnName="Birthday" />
+                <ScalarProperty Name="Lunar" ColumnName="Lunar" />
+                <ScalarProperty Name="StateId" ColumnName="StateId" />
+                <ScalarProperty Name="EmploymentType" ColumnName="EmploymentType" />
+                <ScalarProperty Name="EmploymentStatus" ColumnName="EmploymentStatus" />
+                <ScalarProperty Name="OfficePhoneNo" ColumnName="OfficePhoneNo" />
+                <ScalarProperty Name="HomePhoneNo" ColumnName="HomePhoneNo" />
+                <ScalarProperty Name="MobilePhoneNo" ColumnName="MobilePhoneNo" />
+                <ScalarProperty Name="HomeZip1" ColumnName="HomeZip1" />
+                <ScalarProperty Name="HomeZip2" ColumnName="HomeZip2" />
+                <ScalarProperty Name="HomeAddress1" ColumnName="HomeAddress1" />
+                <ScalarProperty Name="HomeAdderss2" ColumnName="HomeAdderss2" />
+                <ScalarProperty Name="Email" ColumnName="Email" />
+                <ScalarProperty Name="EnterDate" ColumnName="EnterDate" />
+                <ScalarProperty Name="RetireDate" ColumnName="RetireDate" />
+                <ScalarProperty Name="Comment" ColumnName="Comment" />
+                <ScalarProperty Name="Rfcsn" ColumnName="Rfcsn" />
+                <ScalarProperty Name="PasswordUpdatedDate" ColumnName="PasswordUpdatedDate" />
+                <ScalarProperty Name="FileId" ColumnName="FileId" />
+                <ScalarProperty Name="IsBems" ColumnName="IsBems" />
+                <ScalarProperty Name="IsUse" ColumnName="IsUse" />
+                <ScalarProperty Name="Certificated" ColumnName="Certificated" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="CmUserGroup">
+            <EntityTypeMapping TypeName="iBemsModel.CmUserGroup">
+              <MappingFragment StoreEntitySet="CmUserGroup">
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+                <ScalarProperty Name="UserGroupId" ColumnName="UserGroupId" />
+                <ScalarProperty Name="Name" ColumnName="Name" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="CmUserGroupPermission">
+            <EntityTypeMapping TypeName="iBemsModel.CmUserGroupPermission">
+              <MappingFragment StoreEntitySet="CmUserGroupPermission">
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+                <ScalarProperty Name="UserGroupId" ColumnName="UserGroupId" />
+                <ScalarProperty Name="MenuId" ColumnName="MenuId" />
+                <ScalarProperty Name="MenuPermission" ColumnName="MenuPermission" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="CmUserLoginHistory">
+            <EntityTypeMapping TypeName="iBemsModel.CmUserLoginHistory">
+              <MappingFragment StoreEntitySet="CmUserLoginHistory">
+                <ScalarProperty Name="LoginHistoryId" ColumnName="LoginHistoryId" />
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+                <ScalarProperty Name="UserId" ColumnName="UserId" />
+                <ScalarProperty Name="Type" ColumnName="Type" />
+                <ScalarProperty Name="TraceTime" ColumnName="TraceTime" />
+                <ScalarProperty Name="IpAddress" ColumnName="IpAddress" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="CmUserToLicense">
+            <EntityTypeMapping TypeName="iBemsModel.CmUserToLicense">
+              <MappingFragment StoreEntitySet="CmUserToLicense">
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+                <ScalarProperty Name="UserId" ColumnName="UserId" />
+                <ScalarProperty Name="LicenseId" ColumnName="LicenseId" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="CmZone">
+            <EntityTypeMapping TypeName="iBemsModel.CmZone">
+              <MappingFragment StoreEntitySet="CmZone">
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+                <ScalarProperty Name="BuildingId" ColumnName="BuildingId" />
+                <ScalarProperty Name="FloorId" ColumnName="FloorId" />
+                <ScalarProperty Name="ZoneId" ColumnName="ZoneId" />
+                <ScalarProperty Name="Name" ColumnName="Name" />
+                <ScalarProperty Name="Target_temperature" ColumnName="Target_temperature" />
+                <ScalarProperty Name="Target_humidity" ColumnName="Target_humidity" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="CmZoneTempHumiSet">
+            <EntityTypeMapping TypeName="iBemsModel.CmZoneTempHumiSet">
+              <MappingFragment StoreEntitySet="CmZoneTempHumiSet">
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+                <ScalarProperty Name="BuildingId" ColumnName="BuildingId" />
+                <ScalarProperty Name="FloorId" ColumnName="FloorId" />
+                <ScalarProperty Name="ZoneId" ColumnName="ZoneId" />
+                <ScalarProperty Name="T1" ColumnName="T1" />
+                <ScalarProperty Name="T2" ColumnName="T2" />
+                <ScalarProperty Name="T3" ColumnName="T3" />
+                <ScalarProperty Name="T4" ColumnName="T4" />
+                <ScalarProperty Name="T5" ColumnName="T5" />
+                <ScalarProperty Name="T6" ColumnName="T6" />
+                <ScalarProperty Name="T7" ColumnName="T7" />
+                <ScalarProperty Name="T8" ColumnName="T8" />
+                <ScalarProperty Name="T9" ColumnName="T9" />
+                <ScalarProperty Name="T10" ColumnName="T10" />
+                <ScalarProperty Name="T11" ColumnName="T11" />
+                <ScalarProperty Name="T12" ColumnName="T12" />
+                <ScalarProperty Name="H1" ColumnName="H1" />
+                <ScalarProperty Name="H2" ColumnName="H2" />
+                <ScalarProperty Name="H3" ColumnName="H3" />
+                <ScalarProperty Name="H4" ColumnName="H4" />
+                <ScalarProperty Name="H5" ColumnName="H5" />
+                <ScalarProperty Name="H6" ColumnName="H6" />
+                <ScalarProperty Name="H7" ColumnName="H7" />
+                <ScalarProperty Name="H8" ColumnName="H8" />
+                <ScalarProperty Name="H9" ColumnName="H9" />
+                <ScalarProperty Name="H10" ColumnName="H10" />
+                <ScalarProperty Name="H11" ColumnName="H11" />
+                <ScalarProperty Name="H12" ColumnName="H12" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="FmsAccident">
+            <EntityTypeMapping TypeName="iBemsModel.FmsAccident">
+              <MappingFragment StoreEntitySet="FmsAccident">
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+                <ScalarProperty Name="AccidentId" ColumnName="AccidentId" />
+                <ScalarProperty Name="Name" ColumnName="Name" />
+                <ScalarProperty Name="StartDate" ColumnName="StartDate" />
+                <ScalarProperty Name="EndDate" ColumnName="EndDate" />
+                <ScalarProperty Name="AccidentTypeId" ColumnName="AccidentTypeId" />
+                <ScalarProperty Name="DepartmentId" ColumnName="DepartmentId" />
+                <ScalarProperty Name="AccidentLocation" ColumnName="AccidentLocation" />
+                <ScalarProperty Name="Reason" ColumnName="Reason" />
+                <ScalarProperty Name="Action" ColumnName="Action" />
+                <ScalarProperty Name="Damage" ColumnName="Damage" />
+                <ScalarProperty Name="Measurement" ColumnName="Measurement" />
+                <ScalarProperty Name="FileId1" ColumnName="FileId1" />
+                <ScalarProperty Name="FileId2" ColumnName="FileId2" />
+                <ScalarProperty Name="FileId3" ColumnName="FileId3" />
+                <ScalarProperty Name="CompanyId" ColumnName="CompanyId" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="FmsAccidentCodeType">
+            <EntityTypeMapping TypeName="iBemsModel.FmsAccidentCodeType">
+              <MappingFragment StoreEntitySet="FmsAccidentCodeType">
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+                <ScalarProperty Name="AccidentTypeId" ColumnName="AccidentTypeId" />
+                <ScalarProperty Name="Name" ColumnName="Name" />
+                <ScalarProperty Name="IsUse" ColumnName="IsUse" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="FmsBudget">
+            <EntityTypeMapping TypeName="iBemsModel.FmsBudget">
+              <MappingFragment StoreEntitySet="FmsBudget">
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+                <ScalarProperty Name="Year" ColumnName="Year" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="FmsBudgetCodeClass">
+            <EntityTypeMapping TypeName="iBemsModel.FmsBudgetCodeClass">
+              <MappingFragment StoreEntitySet="FmsBudgetCodeClass">
+                <ScalarProperty Name="RootBudgetClassId" ColumnName="RootBudgetClassId" />
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+                <ScalarProperty Name="BudgetClassId" ColumnName="BudgetClassId" />
+                <ScalarProperty Name="BudgetSeq" ColumnName="BudgetSeq" />
+                <ScalarProperty Name="ParentBudgetClassId" ColumnName="ParentBudgetClassId" />
+                <ScalarProperty Name="Depth" ColumnName="Depth" />
+                <ScalarProperty Name="Name" ColumnName="Name" />
+                <ScalarProperty Name="Abbreviation" ColumnName="Abbreviation" />
+                <ScalarProperty Name="IsUse" ColumnName="IsUse" />
+                <ScalarProperty Name="YearlyBudget" ColumnName="YearlyBudget" />
+                <ScalarProperty Name="MonthlyBudget" ColumnName="MonthlyBudget" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="FmsCompanyEstimationCodeClass">
+            <EntityTypeMapping TypeName="iBemsModel.FmsCompanyEstimationCodeClass">
+              <MappingFragment StoreEntitySet="FmsCompanyEstimationCodeClass">
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+                <ScalarProperty Name="CompanyEstimationClassId" ColumnName="CompanyEstimationClassId" />
+                <ScalarProperty Name="Name" ColumnName="Name" />
+                <ScalarProperty Name="IsUse" ColumnName="IsUse" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="FmsConstruction">
+            <EntityTypeMapping TypeName="iBemsModel.FmsConstruction">
+              <MappingFragment StoreEntitySet="FmsConstruction">
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+                <ScalarProperty Name="ConstructionId" ColumnName="ConstructionId" />
+                <ScalarProperty Name="Name" ColumnName="Name" />
+                <ScalarProperty Name="ConstructionTypeId" ColumnName="ConstructionTypeId" />
+                <ScalarProperty Name="StartDate" ColumnName="StartDate" />
+                <ScalarProperty Name="EndDate" ColumnName="EndDate" />
+                <ScalarProperty Name="PartnerId" ColumnName="PartnerId" />
+                <ScalarProperty Name="ConstructLocation" ColumnName="ConstructLocation" />
+                <ScalarProperty Name="OwnerShipName" ColumnName="OwnerShipName" />
+                <ScalarProperty Name="CommitmentMan" ColumnName="CommitmentMan" />
+                <ScalarProperty Name="OwnerShipPhoneNo" ColumnName="OwnerShipPhoneNo" />
+                <ScalarProperty Name="WeldWorkStartTime" ColumnName="WeldWorkStartTime" />
+                <ScalarProperty Name="WeldWorkEndTime" ColumnName="WeldWorkEndTime" />
+                <ScalarProperty Name="GasWorkStartTime" ColumnName="GasWorkStartTime" />
+                <ScalarProperty Name="GasWorkEndTime" ColumnName="GasWorkEndTime" />
+                <ScalarProperty Name="PaintWorkStartTime" ColumnName="PaintWorkStartTime" />
+                <ScalarProperty Name="PaintWorkEndTime" ColumnName="PaintWorkEndTime" />
+                <ScalarProperty Name="Comment" ColumnName="Comment" />
+                <ScalarProperty Name="ProgressId" ColumnName="ProgressId" />
+                <ScalarProperty Name="AddDate" ColumnName="AddDate" />
+                <ScalarProperty Name="UpdateDate" ColumnName="UpdateDate" />
+                <ScalarProperty Name="ConstructionDetail" ColumnName="ConstructionDetail" />
+                <ScalarProperty Name="InOutStockName" ColumnName="InOutStockName" />
+                <ScalarProperty Name="FileId1" ColumnName="FileId1" />
+                <ScalarProperty Name="FileId2" ColumnName="FileId2" />
+                <ScalarProperty Name="FileId3" ColumnName="FileId3" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="FmsConstructionCodeProgress">
+            <EntityTypeMapping TypeName="iBemsModel.FmsConstructionCodeProgress">
+              <MappingFragment StoreEntitySet="FmsConstructionCodeProgress">
+                <ScalarProperty Name="ProgressId" ColumnName="ProgressId" />
+                <ScalarProperty Name="Name" ColumnName="Name" />
+                <ScalarProperty Name="Description" ColumnName="Description" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="FmsConstructionCodeType">
+            <EntityTypeMapping TypeName="iBemsModel.FmsConstructionCodeType">
+              <MappingFragment StoreEntitySet="FmsConstructionCodeType">
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+                <ScalarProperty Name="ConstructionTypeId" ColumnName="ConstructionTypeId" />
+                <ScalarProperty Name="Name" ColumnName="Name" />
+                <ScalarProperty Name="IsUse" ColumnName="IsUse" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="FmsConstructionEstimation">
+            <EntityTypeMapping TypeName="iBemsModel.FmsConstructionEstimation">
+              <MappingFragment StoreEntitySet="FmsConstructionEstimation">
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+                <ScalarProperty Name="ConstructionId" ColumnName="ConstructionId" />
+                <ScalarProperty Name="EstimateDate" ColumnName="EstimateDate" />
+                <ScalarProperty Name="EstimateUserId" ColumnName="EstimateUserId" />
+                <ScalarProperty Name="Safety01_CleanUp" ColumnName="Safety01_CleanUp" />
+                <ScalarProperty Name="Safety02_PersonalProtection" ColumnName="Safety02_PersonalProtection" />
+                <ScalarProperty Name="Safety03_FireExtinguisher" ColumnName="Safety03_FireExtinguisher" />
+                <ScalarProperty Name="Safety04_HighPlaceWork" ColumnName="Safety04_HighPlaceWork" />
+                <ScalarProperty Name="Safety05_Weld" ColumnName="Safety05_Weld" />
+                <ScalarProperty Name="Safety06_SurroundingCleanUp" ColumnName="Safety06_SurroundingCleanUp" />
+                <ScalarProperty Name="Safety07_SurroundingHealthy" ColumnName="Safety07_SurroundingHealthy" />
+                <ScalarProperty Name="Safety08_Noise" ColumnName="Safety08_Noise" />
+                <ScalarProperty Name="Safety09_FacilityProtection" ColumnName="Safety09_FacilityProtection" />
+                <ScalarProperty Name="Safety10_Waste" ColumnName="Safety10_Waste" />
+                <ScalarProperty Name="Safety11_Execution" ColumnName="Safety11_Execution" />
+                <ScalarProperty Name="Safety12_Announcement" ColumnName="Safety12_Announcement" />
+                <ScalarProperty Name="Ability01_Compliance" ColumnName="Ability01_Compliance" />
+                <ScalarProperty Name="Ability02_Fault" ColumnName="Ability02_Fault" />
+                <ScalarProperty Name="Ability03_SkillLevel" ColumnName="Ability03_SkillLevel" />
+                <ScalarProperty Name="Ability04_ProcessManagement" ColumnName="Ability04_ProcessManagement" />
+                <ScalarProperty Name="Ability05_Collaboration" ColumnName="Ability05_Collaboration" />
+                <ScalarProperty Name="Service01_Compliance" ColumnName="Service01_Compliance" />
+                <ScalarProperty Name="Service02_SkillLevel" ColumnName="Service02_SkillLevel" />
+                <ScalarProperty Name="Comment" ColumnName="Comment" />
+                <ScalarProperty Name="TotalEstimateScore" ColumnName="TotalEstimateScore" />
+                <ScalarProperty Name="SafetyScore" ColumnName="SafetyScore" />
+                <ScalarProperty Name="AbilityScore" ColumnName="AbilityScore" />
+                <ScalarProperty Name="ServiceScore" ColumnName="ServiceScore" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="FmsContractClass">
+            <EntityTypeMapping TypeName="iBemsModel.FmsContractClass">
+              <MappingFragment StoreEntitySet="FmsContractClass">
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+                <ScalarProperty Name="ContractClassId" ColumnName="ContractClassId" />
+                <ScalarProperty Name="Name" ColumnName="Name" />
+                <ScalarProperty Name="IsUse" ColumnName="IsUse" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="FmsContractMethod">
+            <EntityTypeMapping TypeName="iBemsModel.FmsContractMethod">
+              <MappingFragment StoreEntitySet="FmsContractMethod">
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+                <ScalarProperty Name="ContractMethodId" ColumnName="ContractMethodId" />
+                <ScalarProperty Name="Name" ColumnName="Name" />
+                <ScalarProperty Name="IsUse" ColumnName="IsUse" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="FmsContractType">
+            <EntityTypeMapping TypeName="iBemsModel.FmsContractType">
+              <MappingFragment StoreEntitySet="FmsContractType">
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+                <ScalarProperty Name="ContractTypeId" ColumnName="ContractTypeId" />
+                <ScalarProperty Name="Name" ColumnName="Name" />
+                <ScalarProperty Name="IsUse" ColumnName="IsUse" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="FmsDrawing">
+            <EntityTypeMapping TypeName="iBemsModel.FmsDrawing">
+              <MappingFragment StoreEntitySet="FmsDrawing">
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+                <ScalarProperty Name="DrawingId" ColumnName="DrawingId" />
+                <ScalarProperty Name="DrawingNo" ColumnName="DrawingNo" />
+                <ScalarProperty Name="DrawingGroupId" ColumnName="DrawingGroupId" />
+                <ScalarProperty Name="DrawingTypeId" ColumnName="DrawingTypeId" />
+                <ScalarProperty Name="Name" ColumnName="Name" />
+                <ScalarProperty Name="Description" ColumnName="Description" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="FmsDrawingCodeGroup">
+            <EntityTypeMapping TypeName="iBemsModel.FmsDrawingCodeGroup">
+              <MappingFragment StoreEntitySet="FmsDrawingCodeGroup">
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+                <ScalarProperty Name="DrawingGroupId" ColumnName="DrawingGroupId" />
+                <ScalarProperty Name="Name" ColumnName="Name" />
+                <ScalarProperty Name="IsUse" ColumnName="IsUse" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="FmsDrawingCodeType">
+            <EntityTypeMapping TypeName="iBemsModel.FmsDrawingCodeType">
+              <MappingFragment StoreEntitySet="FmsDrawingCodeType">
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+                <ScalarProperty Name="DrawingTypeId" ColumnName="DrawingTypeId" />
+                <ScalarProperty Name="Name" ColumnName="Name" />
+                <ScalarProperty Name="IsUse" ColumnName="IsUse" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="FmsDrawingHistory">
+            <EntityTypeMapping TypeName="iBemsModel.FmsDrawingHistory">
+              <MappingFragment StoreEntitySet="FmsDrawingHistory">
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+                <ScalarProperty Name="DrawingId" ColumnName="DrawingId" />
+                <ScalarProperty Name="HistoryId" ColumnName="HistoryId" />
+                <ScalarProperty Name="RevisionNo" ColumnName="RevisionNo" />
+                <ScalarProperty Name="FileId" ColumnName="FileId" />
+                <ScalarProperty Name="Description" ColumnName="Description" />
+                <ScalarProperty Name="UpdatedDate" ColumnName="UpdatedDate" />
+                <ScalarProperty Name="UpdatedUserId" ColumnName="UpdatedUserId" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="FmsEquipmentCodeStateType">
+            <EntityTypeMapping TypeName="iBemsModel.FmsEquipmentCodeStateType">
+              <MappingFragment StoreEntitySet="FmsEquipmentCodeStateType">
+                <ScalarProperty Name="EquipmentStateTypeId" ColumnName="EquipmentStateTypeId" />
+                <ScalarProperty Name="Name" ColumnName="Name" />
+                <ScalarProperty Name="Comment" ColumnName="Comment" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="FmsEquipmentCodeType">
+            <EntityTypeMapping TypeName="iBemsModel.FmsEquipmentCodeType">
+              <MappingFragment StoreEntitySet="FmsEquipmentCodeType">
+                <ScalarProperty Name="Description" ColumnName="Description" />
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+                <ScalarProperty Name="EquipmentTypeId" ColumnName="EquipmentTypeId" />
+                <ScalarProperty Name="Name" ColumnName="Name" />
+                <ScalarProperty Name="IsUse" ColumnName="IsUse" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="FmsEquipmentHistory">
+            <EntityTypeMapping TypeName="iBemsModel.FmsEquipmentHistory">
+              <MappingFragment StoreEntitySet="FmsEquipmentHistory">
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+                <ScalarProperty Name="EquipmentHistoryId" ColumnName="EquipmentHistoryId" />
+                <ScalarProperty Name="EquipmentId" ColumnName="EquipmentId" />
+                <ScalarProperty Name="TotalStockCount" ColumnName="TotalStockCount" />
+                <ScalarProperty Name="CurrentStockCount" ColumnName="CurrentStockCount" />
+                <ScalarProperty Name="RentCount" ColumnName="RentCount" />
+                <ScalarProperty Name="CurrentRentCount" ColumnName="CurrentRentCount" />
+                <ScalarProperty Name="ReturnCount" ColumnName="ReturnCount" />
+                <ScalarProperty Name="LossCount" ColumnName="LossCount" />
+                <ScalarProperty Name="StoredCount" ColumnName="StoredCount" />
+                <ScalarProperty Name="EquipmentRentId" ColumnName="EquipmentRentId" />
+                <ScalarProperty Name="EquipmentStateTypeId" ColumnName="EquipmentStateTypeId" />
+                <ScalarProperty Name="AddDate" ColumnName="AddDate" />
+                <ScalarProperty Name="UpdateDate" ColumnName="UpdateDate" />
+                <ScalarProperty Name="IsReturned" ColumnName="IsReturned" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="FmsFacilityCheckItem">
+            <EntityTypeMapping TypeName="iBemsModel.FmsFacilityCheckItem">
+              <MappingFragment StoreEntitySet="FmsFacilityCheckItem">
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+                <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
+                <ScalarProperty Name="CheckItemId" ColumnName="CheckItemId" />
+                <ScalarProperty Name="WorkTypeId" ColumnName="WorkTypeId" />
+                <ScalarProperty Name="CycleUnitId" ColumnName="CycleUnitId" />
+                <ScalarProperty Name="Name" ColumnName="Name" />
+                <ScalarProperty Name="IsYesNoResult" ColumnName="IsYesNoResult" />
+                <ScalarProperty Name="IsUse" ColumnName="IsUse" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="FmsFacilityCodeClass">
+            <EntityTypeMapping TypeName="iBemsModel.FmsFacilityCodeClass">
+              <MappingFragment StoreEntitySet="FmsFacilityCodeClass">
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+                <ScalarProperty Name="FacilityClassId" ColumnName="FacilityClassId" />
+                <ScalarProperty Name="ParentFacilityClassId" ColumnName="ParentFacilityClassId" />
+                <ScalarProperty Name="Depth" ColumnName="Depth" />
+                <ScalarProperty Name="Name" ColumnName="Name" />
+                <ScalarProperty Name="Abbreviation" ColumnName="Abbreviation" />
+                <ScalarProperty Name="IsUse" ColumnName="IsUse" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="FmsFacilityManual">
+            <EntityTypeMapping TypeName="iBemsModel.FmsFacilityManual">
+              <MappingFragment StoreEntitySet="FmsFacilityManual">
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+                <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
+                <ScalarProperty Name="ManualId" ColumnName="ManualId" />
+                <ScalarProperty Name="BusinessFieldId" ColumnName="BusinessFieldId" />
+                <ScalarProperty Name="Name" ColumnName="Name" />
+                <ScalarProperty Name="Description" ColumnName="Description" />
+                <ScalarProperty Name="Keyword" ColumnName="Keyword" />
+                <ScalarProperty Name="FileId" ColumnName="FileId" />
+                <ScalarProperty Name="IsUse" ColumnName="IsUse" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="FmsFacilityOperationItem">
+            <EntityTypeMapping TypeName="iBemsModel.FmsFacilityOperationItem">
+              <MappingFragment StoreEntitySet="FmsFacilityOperationItem">
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+                <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
+                <ScalarProperty Name="ItemId" ColumnName="ItemId" />
+                <ScalarProperty Name="Name" ColumnName="Name" />
+                <ScalarProperty Name="ResultUnit" ColumnName="ResultUnit" />
+                <ScalarProperty Name="PointId" ColumnName="PointId" />
+                <ScalarProperty Name="SystemId" ColumnName="SystemId" />
+                <ScalarProperty Name="EnergyCode" ColumnName="EnergyCode" />
+                <ScalarProperty Name="IsUse" ColumnName="IsUse" />
+                <ScalarProperty Name="SortOrderNo" ColumnName="SortOrderNo" />
+                <ScalarProperty Name="InsertedDate" ColumnName="InsertedDate" />
+                <ScalarProperty Name="InsertedUserId" ColumnName="InsertedUserId" />
+                <ScalarProperty Name="UpdatedDate" ColumnName="UpdatedDate" />
+                <ScalarProperty Name="UpdatedUserId" ColumnName="UpdatedUserId" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="FmsLicense">
+            <EntityTypeMapping TypeName="iBemsModel.FmsLicense">
+              <MappingFragment StoreEntitySet="FmsLicense">
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+                <ScalarProperty Name="LicenseId" ColumnName="LicenseId" />
+                <ScalarProperty Name="Name" ColumnName="Name" />
+                <ScalarProperty Name="IssuingOffice" ColumnName="IssuingOffice" />
+                <ScalarProperty Name="BusinessFieldId" ColumnName="BusinessFieldId" />
+                <ScalarProperty Name="EducationalInstitute" ColumnName="EducationalInstitute" />
+                <ScalarProperty Name="Note" ColumnName="Note" />
+                <ScalarProperty Name="IsUse" ColumnName="IsUse" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="FmsManual">
+            <EntityTypeMapping TypeName="iBemsModel.FmsManual">
+              <MappingFragment StoreEntitySet="FmsManual">
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+                <ScalarProperty Name="ManualId" ColumnName="ManualId" />
+                <ScalarProperty Name="ManualNo" ColumnName="ManualNo" />
+                <ScalarProperty Name="ManualTypeId" ColumnName="ManualTypeId" />
+                <ScalarProperty Name="Name" ColumnName="Name" />
+                <ScalarProperty Name="Description" ColumnName="Description" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="FmsManualHistory">
+            <EntityTypeMapping TypeName="iBemsModel.FmsManualHistory">
+              <MappingFragment StoreEntitySet="FmsManualHistory">
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+                <ScalarProperty Name="ManualId" ColumnName="ManualId" />
+                <ScalarProperty Name="HistoryId" ColumnName="HistoryId" />
+                <ScalarProperty Name="RevisionNo" ColumnName="RevisionNo" />
+                <ScalarProperty Name="FileId" ColumnName="FileId" />
+                <ScalarProperty Name="Description" ColumnName="Description" />
+                <ScalarProperty Name="UpdatedDate" ColumnName="UpdatedDate" />
+                <ScalarProperty Name="UpdatedUserId" ColumnName="UpdatedUserId" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="FmsManualType">
+            <EntityTypeMapping TypeName="iBemsModel.FmsManualType">
+              <MappingFragment StoreEntitySet="FmsManualType">
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+                <ScalarProperty Name="ManualTypeId" ColumnName="ManualTypeId" />
+                <ScalarProperty Name="Name" ColumnName="Name" />
+                <ScalarProperty Name="IsUse" ColumnName="IsUse" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="FmsMaterialCarriedForward">
+            <EntityTypeMapping TypeName="iBemsModel.FmsMaterialCarriedForward">
+              <MappingFragment StoreEntitySet="FmsMaterialCarriedForward">
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+                <ScalarProperty Name="ClosedDate" ColumnName="ClosedDate" />
+                <ScalarProperty Name="BusinessFieldId" ColumnName="BusinessFieldId" />
+                <ScalarProperty Name="WarehouseId" ColumnName="WarehouseId" />
+                <ScalarProperty Name="MaterialId" ColumnName="MaterialId" />
+                <ScalarProperty Name="StockCount" ColumnName="StockCount" />
+                <ScalarProperty Name="StockTotalCost" ColumnName="StockTotalCost" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="FmsMaterialCodeAdjustmentType">
+            <EntityTypeMapping TypeName="iBemsModel.FmsMaterialCodeAdjustmentType">
+              <MappingFragment StoreEntitySet="FmsMaterialCodeAdjustmentType">
+                <ScalarProperty Name="AdjustmentTypeId" ColumnName="AdjustmentTypeId" />
+                <ScalarProperty Name="Name" ColumnName="Name" />
+                <ScalarProperty Name="Comment" ColumnName="Comment" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="FmsMaterialCodeClass">
+            <EntityTypeMapping TypeName="iBemsModel.FmsMaterialCodeClass">
+              <MappingFragment StoreEntitySet="FmsMaterialCodeClass">
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+                <ScalarProperty Name="MaterialClassId" ColumnName="MaterialClassId" />
+                <ScalarProperty Name="ParentMaterialClassId" ColumnName="ParentMaterialClassId" />
+                <ScalarProperty Name="Depth" ColumnName="Depth" />
+                <ScalarProperty Name="Name" ColumnName="Name" />
+                <ScalarProperty Name="Abbreviation" ColumnName="Abbreviation" />
+                <ScalarProperty Name="IsUse" ColumnName="IsUse" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="FmsMaterialCodeLocation">
+            <EntityTypeMapping TypeName="iBemsModel.FmsMaterialCodeLocation">
+              <MappingFragment StoreEntitySet="FmsMaterialCodeLocation">
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+                <ScalarProperty Name="LocationId" ColumnName="LocationId" />
+                <ScalarProperty Name="BusinessFieldId" ColumnName="BusinessFieldId" />
+                <ScalarProperty Name="Name" ColumnName="Name" />
+                <ScalarProperty Name="IsUse" ColumnName="IsUse" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="FmsMaterialCodeProgress">
+            <EntityTypeMapping TypeName="iBemsModel.FmsMaterialCodeProgress">
+              <MappingFragment StoreEntitySet="FmsMaterialCodeProgress">
+                <ScalarProperty Name="ProgressId" ColumnName="ProgressId" />
+                <ScalarProperty Name="Name" ColumnName="Name" />
+                <ScalarProperty Name="Description" ColumnName="Description" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="FmsMaterialCodePurchaseType">
+            <EntityTypeMapping TypeName="iBemsModel.FmsMaterialCodePurchaseType">
+              <MappingFragment StoreEntitySet="FmsMaterialCodePurchaseType">
+                <ScalarProperty Name="PurchaseTypeId" ColumnName="PurchaseTypeId" />
+                <ScalarProperty Name="Name" ColumnName="Name" />
+                <ScalarProperty Name="Comment" ColumnName="Comment" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="FmsMaterialCodeReleaseType">
+            <EntityTypeMapping TypeName="iBemsModel.FmsMaterialCodeReleaseType">
+              <MappingFragment StoreEntitySet="FmsMaterialCodeReleaseType">
+                <ScalarProperty Name="ReleaseTypeId" ColumnName="ReleaseTypeId" />
+                <ScalarProperty Name="Name" ColumnName="Name" />
+                <ScalarProperty Name="Description" ColumnName="Description" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="FmsMaterialCodeType">
+            <EntityTypeMapping TypeName="iBemsModel.FmsMaterialCodeType">
+              <MappingFragment StoreEntitySet="FmsMaterialCodeType">
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+                <ScalarProperty Name="MaterialTypeId" ColumnName="MaterialTypeId" />
+                <ScalarProperty Name="Name" ColumnName="Name" />
+                <ScalarProperty Name="Nickname" ColumnName="Nickname" />
+                <ScalarProperty Name="IsUse" ColumnName="IsUse" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="FmsMaterialPurchaseOrder">
+            <EntityTypeMapping TypeName="iBemsModel.FmsMaterialPurchaseOrder">
+              <MappingFragment StoreEntitySet="FmsMaterialPurchaseOrder">
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+                <ScalarProperty Name="BusinessFieldId" ColumnName="BusinessFieldId" />
+                <ScalarProperty Name="PurchaseOrderId" ColumnName="PurchaseOrderId" />
+                <ScalarProperty Name="PurchaseRequestId" ColumnName="PurchaseRequestId" />
+                <ScalarProperty Name="TradeCompanyId" ColumnName="TradeCompanyId" />
+                <ScalarProperty Name="OrderDate" ColumnName="OrderDate" />
+                <ScalarProperty Name="OrderUserId" ColumnName="OrderUserId" />
+                <ScalarProperty Name="Title" ColumnName="Title" />
+                <ScalarProperty Name="Reason" ColumnName="Reason" />
+                <ScalarProperty Name="StoredDueDate" ColumnName="StoredDueDate" />
+                <ScalarProperty Name="FileId" ColumnName="FileId" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="FmsMaterialPurchaseOrderMaterial">
+            <EntityTypeMapping TypeName="iBemsModel.FmsMaterialPurchaseOrderMaterial">
+              <MappingFragment StoreEntitySet="FmsMaterialPurchaseOrderMaterial">
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+                <ScalarProperty Name="BusinessFieldId" ColumnName="BusinessFieldId" />
+                <ScalarProperty Name="PurchaseOrderId" ColumnName="PurchaseOrderId" />
+                <ScalarProperty Name="MaterialId" ColumnName="MaterialId" />
+                <ScalarProperty Name="MaterialCount" ColumnName="MaterialCount" />
+                <ScalarProperty Name="UnitCost" ColumnName="UnitCost" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="FmsMaterialPurchaseRequest">
+            <EntityTypeMapping TypeName="iBemsModel.FmsMaterialPurchaseRequest">
+              <MappingFragment StoreEntitySet="FmsMaterialPurchaseRequest">
+                <ScalarProperty Name="bSameOrder" ColumnName="bSameOrder" />
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+                <ScalarProperty Name="BusinessFieldId" ColumnName="BusinessFieldId" />
+                <ScalarProperty Name="PurchaseRequestId" ColumnName="PurchaseRequestId" />
+                <ScalarProperty Name="PurchaseTypeId" ColumnName="PurchaseTypeId" />
+                <ScalarProperty Name="RequestDate" ColumnName="RequestDate" />
+                <ScalarProperty Name="RequestUserId" ColumnName="RequestUserId" />
+                <ScalarProperty Name="PurchaseHopeDate" ColumnName="PurchaseHopeDate" />
+                <ScalarProperty Name="Title" ColumnName="Title" />
+                <ScalarProperty Name="Reason" ColumnName="Reason" />
+                <ScalarProperty Name="ProgressId" ColumnName="ProgressId" />
+                <ScalarProperty Name="ApprovalDate" ColumnName="ApprovalDate" />
+                <ScalarProperty Name="ApprovalUserId" ColumnName="ApprovalUserId" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="FmsMaterialPurchaseRequestMaterial">
+            <EntityTypeMapping TypeName="iBemsModel.FmsMaterialPurchaseRequestMaterial">
+              <MappingFragment StoreEntitySet="FmsMaterialPurchaseRequestMaterial">
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+                <ScalarProperty Name="BusinessFieldId" ColumnName="BusinessFieldId" />
+                <ScalarProperty Name="PurchaseRequestId" ColumnName="PurchaseRequestId" />
+                <ScalarProperty Name="MaterialId" ColumnName="MaterialId" />
+                <ScalarProperty Name="MaterialCount" ColumnName="MaterialCount" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="FmsMaterialStored">
+            <EntityTypeMapping TypeName="iBemsModel.FmsMaterialStored">
+              <MappingFragment StoreEntitySet="FmsMaterialStored">
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+                <ScalarProperty Name="BusinessFieldId" ColumnName="BusinessFieldId" />
+                <ScalarProperty Name="StoredDate" ColumnName="StoredDate" />
+                <ScalarProperty Name="MaterialStoredId" ColumnName="MaterialStoredId" />
+                <ScalarProperty Name="PurchaseOrderId" ColumnName="PurchaseOrderId" />
+                <ScalarProperty Name="WarehouseId" ColumnName="WarehouseId" />
+                <ScalarProperty Name="MaterialId" ColumnName="MaterialId" />
+                <ScalarProperty Name="StoredCount" ColumnName="StoredCount" />
+                <ScalarProperty Name="RemainStoredCount" ColumnName="RemainStoredCount" />
+                <ScalarProperty Name="UnitCost" ColumnName="UnitCost" />
+                <ScalarProperty Name="StockCount" ColumnName="StockCount" />
+                <ScalarProperty Name="Note" ColumnName="Note" />
+                <ScalarProperty Name="StoredUserId" ColumnName="StoredUserId" />
+                <ScalarProperty Name="ApprovalDate" ColumnName="ApprovalDate" />
+                <ScalarProperty Name="ApprovalUserId" ColumnName="ApprovalUserId" />
+                <ScalarProperty Name="IsApproval" ColumnName="IsApproval" />
+                <ScalarProperty Name="LocationInWarehouse" ColumnName="LocationInWarehouse" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="FmsMaterialTradeCompany">
+            <EntityTypeMapping TypeName="iBemsModel.FmsMaterialTradeCompany">
+              <MappingFragment StoreEntitySet="FmsMaterialTradeCompany">
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+                <ScalarProperty Name="TradeCompanyId" ColumnName="TradeCompanyId" />
+                <ScalarProperty Name="Name" ColumnName="Name" />
+                <ScalarProperty Name="RegistrationNo" ColumnName="RegistrationNo" />
+                <ScalarProperty Name="RepresentativeName" ColumnName="RepresentativeName" />
+                <ScalarProperty Name="PhoneNo" ColumnName="PhoneNo" />
+                <ScalarProperty Name="FaxNo" ColumnName="FaxNo" />
+                <ScalarProperty Name="SalesName" ColumnName="SalesName" />
+                <ScalarProperty Name="SalesPhoneNo" ColumnName="SalesPhoneNo" />
+                <ScalarProperty Name="AddressZip1" ColumnName="AddressZip1" />
+                <ScalarProperty Name="AddressZip2" ColumnName="AddressZip2" />
+                <ScalarProperty Name="Address1" ColumnName="Address1" />
+                <ScalarProperty Name="Adderss2" ColumnName="Adderss2" />
+                <ScalarProperty Name="HomepageUri" ColumnName="HomepageUri" />
+                <ScalarProperty Name="Note" ColumnName="Note" />
+                <ScalarProperty Name="IsUse" ColumnName="IsUse" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="FmsMaterialWarehouse">
+            <EntityTypeMapping TypeName="iBemsModel.FmsMaterialWarehouse">
+              <MappingFragment StoreEntitySet="FmsMaterialWarehouse">
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+                <ScalarProperty Name="BusinessFieldId" ColumnName="BusinessFieldId" />
+                <ScalarProperty Name="WarehouseId" ColumnName="WarehouseId" />
+                <ScalarProperty Name="Name" ColumnName="Name" />
+                <ScalarProperty Name="IsUse" ColumnName="IsUse" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="FmsPaymentType">
+            <EntityTypeMapping TypeName="iBemsModel.FmsPaymentType">
+              <MappingFragment StoreEntitySet="FmsPaymentType">
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+                <ScalarProperty Name="PaymentTypeId" ColumnName="PaymentTypeId" />
+                <ScalarProperty Name="Name" ColumnName="Name" />
+                <ScalarProperty Name="IsUse" ColumnName="IsUse" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="FmsWorkCodeCauseClass">
+            <EntityTypeMapping TypeName="iBemsModel.FmsWorkCodeCauseClass">
+              <MappingFragment StoreEntitySet="FmsWorkCodeCauseClass">
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+                <ScalarProperty Name="CauseClassId" ColumnName="CauseClassId" />
+                <ScalarProperty Name="ParentId" ColumnName="ParentId" />
+                <ScalarProperty Name="Name" ColumnName="Name" />
+                <ScalarProperty Name="IsUse" ColumnName="IsUse" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="FmsWorkCodeCycleUnit">
+            <EntityTypeMapping TypeName="iBemsModel.FmsWorkCodeCycleUnit">
+              <MappingFragment StoreEntitySet="FmsWorkCodeCycleUnit">
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+                <ScalarProperty Name="CycleUnitId" ColumnName="CycleUnitId" />
+                <ScalarProperty Name="Name" ColumnName="Name" />
+                <ScalarProperty Name="Description" ColumnName="Description" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="FmsWorkCodeEmergency">
+            <EntityTypeMapping TypeName="iBemsModel.FmsWorkCodeEmergency">
+              <MappingFragment StoreEntitySet="FmsWorkCodeEmergency">
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+                <ScalarProperty Name="EmergencyId" ColumnName="EmergencyId" />
+                <ScalarProperty Name="Name" ColumnName="Name" />
+                <ScalarProperty Name="IsUse" ColumnName="IsUse" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="FmsWorkCodeHolidayWorkType">
+            <EntityTypeMapping TypeName="iBemsModel.FmsWorkCodeHolidayWorkType">
+              <MappingFragment StoreEntitySet="FmsWorkCodeHolidayWorkType">
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+                <ScalarProperty Name="HolidayWorkTypeId" ColumnName="HolidayWorkTypeId" />
+                <ScalarProperty Name="Name" ColumnName="Name" />
+                <ScalarProperty Name="IsUse" ColumnName="IsUse" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="FmsWorkCodeLegalInspectionAgency">
+            <EntityTypeMapping TypeName="iBemsModel.FmsWorkCodeLegalInspectionAgency">
+              <MappingFragment StoreEntitySet="FmsWorkCodeLegalInspectionAgency">
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+                <ScalarProperty Name="InspectionAgencyId" ColumnName="InspectionAgencyId" />
+                <ScalarProperty Name="Name" ColumnName="Name" />
+                <ScalarProperty Name="IsUse" ColumnName="IsUse" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="FmsWorkCodeProgress">
+            <EntityTypeMapping TypeName="iBemsModel.FmsWorkCodeProgress">
+              <MappingFragment StoreEntitySet="FmsWorkCodeProgress">
+                <ScalarProperty Name="WorkProgressId" ColumnName="WorkProgressId" />
+                <ScalarProperty Name="Name" ColumnName="Name" />
+                <ScalarProperty Name="Description" ColumnName="Description" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="FmsWorkCodeType">
+            <EntityTypeMapping TypeName="iBemsModel.FmsWorkCodeType">
+              <MappingFragment StoreEntitySet="FmsWorkCodeType">
+                <ScalarProperty Name="WorkTypeId" ColumnName="WorkTypeId" />
+                <ScalarProperty Name="Name" ColumnName="Name" />
+                <ScalarProperty Name="Description" ColumnName="Description" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="FmsWorkOrder">
+            <EntityTypeMapping TypeName="iBemsModel.FmsWorkOrder">
+              <MappingFragment StoreEntitySet="FmsWorkOrder">
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+                <ScalarProperty Name="WorkRequestId" ColumnName="WorkRequestId" />
+                <ScalarProperty Name="BusinessFieldId" ColumnName="BusinessFieldId" />
+                <ScalarProperty Name="EmergencyId" ColumnName="EmergencyId" />
+                <ScalarProperty Name="OrderUserId" ColumnName="OrderUserId" />
+                <ScalarProperty Name="OrderDate" ColumnName="OrderDate" />
+                <ScalarProperty Name="StartWorkDate" ColumnName="StartWorkDate" />
+                <ScalarProperty Name="Title" ColumnName="Title" />
+                <ScalarProperty Name="Content" ColumnName="Content" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="FmsWorkOrderToFacility">
+            <EntityTypeMapping TypeName="iBemsModel.FmsWorkOrderToFacility">
+              <MappingFragment StoreEntitySet="FmsWorkOrderToFacility">
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+                <ScalarProperty Name="WorkRequestId" ColumnName="WorkRequestId" />
+                <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="FmsWorkRequest">
+            <EntityTypeMapping TypeName="iBemsModel.FmsWorkRequest">
+              <MappingFragment StoreEntitySet="FmsWorkRequest">
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+                <ScalarProperty Name="WorkRequestId" ColumnName="WorkRequestId" />
+                <ScalarProperty Name="WorkTypeId" ColumnName="WorkTypeId" />
+                <ScalarProperty Name="BusinessFieldId" ColumnName="BusinessFieldId" />
+                <ScalarProperty Name="WorkScheduleId" ColumnName="WorkScheduleId" />
+                <ScalarProperty Name="WorkProgressId" ColumnName="WorkProgressId" />
+                <ScalarProperty Name="Title" ColumnName="Title" />
+                <ScalarProperty Name="Content" ColumnName="Content" />
+                <ScalarProperty Name="RequestUserId" ColumnName="RequestUserId" />
+                <ScalarProperty Name="RequestDate" ColumnName="RequestDate" />
+                <ScalarProperty Name="StartWorkDate" ColumnName="StartWorkDate" />
+                <ScalarProperty Name="RejectUserId" ColumnName="RejectUserId" />
+                <ScalarProperty Name="RejectDate" ColumnName="RejectDate" />
+                <ScalarProperty Name="RejectReason" ColumnName="RejectReason" />
+                <ScalarProperty Name="InspectionAgencyId" ColumnName="InspectionAgencyId" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="FmsWorkRequestToFacility">
+            <EntityTypeMapping TypeName="iBemsModel.FmsWorkRequestToFacility">
+              <MappingFragment StoreEntitySet="FmsWorkRequestToFacility">
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+                <ScalarProperty Name="WorkRequestId" ColumnName="WorkRequestId" />
+                <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="FmsWorkResult">
+            <EntityTypeMapping TypeName="iBemsModel.FmsWorkResult">
+              <MappingFragment StoreEntitySet="FmsWorkResult">
+                <ScalarProperty Name="ConfirmDesc" ColumnName="ConfirmDesc" />
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+                <ScalarProperty Name="WorkRequestId" ColumnName="WorkRequestId" />
+                <ScalarProperty Name="WorkerUserId" ColumnName="WorkerUserId" />
+                <ScalarProperty Name="StartDate" ColumnName="StartDate" />
+                <ScalarProperty Name="EndDate" ColumnName="EndDate" />
+                <ScalarProperty Name="CauseClassId" ColumnName="CauseClassId" />
+                <ScalarProperty Name="Content" ColumnName="Content" />
+                <ScalarProperty Name="ConfirmedDate" ColumnName="ConfirmedDate" />
+                <ScalarProperty Name="ConfirmedUserId" ColumnName="ConfirmedUserId" />
+                <ScalarProperty Name="IsConfirmed" ColumnName="IsConfirmed" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="FmsWorkResultCheckItem">
+            <EntityTypeMapping TypeName="iBemsModel.FmsWorkResultCheckItem">
+              <MappingFragment StoreEntitySet="FmsWorkResultCheckItem">
+                <ScalarProperty Name="FileId2" ColumnName="FileId2" />
+                <ScalarProperty Name="FileId1" ColumnName="FileId1" />
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+                <ScalarProperty Name="WorkRequestId" ColumnName="WorkRequestId" />
+                <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
+                <ScalarProperty Name="CheckItemId" ColumnName="CheckItemId" />
+                <ScalarProperty Name="BoolResult" ColumnName="BoolResult" />
+                <ScalarProperty Name="TextResult" ColumnName="TextResult" />
+                <ScalarProperty Name="CheckDate" ColumnName="CheckDate" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="FmsWorkResultCheckItemMaterial">
+            <EntityTypeMapping TypeName="iBemsModel.FmsWorkResultCheckItemMaterial">
+              <MappingFragment StoreEntitySet="FmsWorkResultCheckItemMaterial">
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+                <ScalarProperty Name="WorkRequestId" ColumnName="WorkRequestId" />
+                <ScalarProperty Name="CheckItemId" ColumnName="CheckItemId" />
+                <ScalarProperty Name="CheckItemMaterialId" ColumnName="CheckItemMaterialId" />
+                <ScalarProperty Name="MaterialId" ColumnName="MaterialId" />
+                <ScalarProperty Name="MaterialCount" ColumnName="MaterialCount" />
+                <ScalarProperty Name="MaterialCode" ColumnName="MaterialCode" />
+                <ScalarProperty Name="Name" ColumnName="Name" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="FmsWorkResultFile">
+            <EntityTypeMapping TypeName="iBemsModel.FmsWorkResultFile">
+              <MappingFragment StoreEntitySet="FmsWorkResultFile">
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+                <ScalarProperty Name="WorkRequestId" ColumnName="WorkRequestId" />
+                <ScalarProperty Name="FileId" ColumnName="FileId" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="FmsWorkResultLaw">
+            <EntityTypeMapping TypeName="iBemsModel.FmsWorkResultLaw">
+              <MappingFragment StoreEntitySet="FmsWorkResultLaw">
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+                <ScalarProperty Name="WorkRequestId" ColumnName="WorkRequestId" />
+                <ScalarProperty Name="CertificationNo" ColumnName="CertificationNo" />
+                <ScalarProperty Name="CheckCommission" ColumnName="CheckCommission" />
+                <ScalarProperty Name="CheckResult" ColumnName="CheckResult" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="FmsWorkResultToFacility">
+            <EntityTypeMapping TypeName="iBemsModel.FmsWorkResultToFacility">
+              <MappingFragment StoreEntitySet="FmsWorkResultToFacility">
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+                <ScalarProperty Name="WorkRequestId" ColumnName="WorkRequestId" />
+                <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="FmsWorkScheduleToFacility">
+            <EntityTypeMapping TypeName="iBemsModel.FmsWorkScheduleToFacility">
+              <MappingFragment StoreEntitySet="FmsWorkScheduleToFacility">
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+                <ScalarProperty Name="WorkScheduleId" ColumnName="WorkScheduleId" />
+                <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="sysdiagrams">
+            <EntityTypeMapping TypeName="iBemsModel.sysdiagrams">
+              <MappingFragment StoreEntitySet="sysdiagrams">
+                <ScalarProperty Name="name" ColumnName="name" />
+                <ScalarProperty Name="principal_id" ColumnName="principal_id" />
+                <ScalarProperty Name="diagram_id" ColumnName="diagram_id" />
+                <ScalarProperty Name="version" ColumnName="version" />
+                <ScalarProperty Name="definition" ColumnName="definition" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="FmsDailyCheckReport">
+            <EntityTypeMapping TypeName="iBemsModel.FmsDailyCheckReport">
+              <MappingFragment StoreEntitySet="FmsDailyCheckReport">
+                <ScalarProperty Name="AddDate" ColumnName="AddDate" />
+                <ScalarProperty Name="RegisterUserId" ColumnName="RegisterUserId" />
+                <ScalarProperty Name="Contents" ColumnName="Contents" />
+                <ScalarProperty Name="Name" ColumnName="Name" />
+                <ScalarProperty Name="DailyCheckReportId" ColumnName="DailyCheckReportId" />
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="FmsFacilityOperationReport">
+            <EntityTypeMapping TypeName="iBemsModel.FmsFacilityOperationReport">
+              <MappingFragment StoreEntitySet="FmsFacilityOperationReport">
+                <ScalarProperty Name="AddDate" ColumnName="AddDate" />
+                <ScalarProperty Name="RegisterUserId" ColumnName="RegisterUserId" />
+                <ScalarProperty Name="Contents" ColumnName="Contents" />
+                <ScalarProperty Name="Name" ColumnName="Name" />
+                <ScalarProperty Name="FacilityOperationReportId" ColumnName="FacilityOperationReportId" />
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="FmsBudgetDetail">
+            <EntityTypeMapping TypeName="iBemsModel.FmsBudgetDetail">
+              <MappingFragment StoreEntitySet="FmsBudgetDetail">
+                <ScalarProperty Name="RootBudgetClassId" ColumnName="RootBudgetClassId" />
+                <ScalarProperty Name="MonthlyBudget" ColumnName="MonthlyBudget" />
+                <ScalarProperty Name="YearlyBudget" ColumnName="YearlyBudget" />
+                <ScalarProperty Name="IsUse" ColumnName="IsUse" />
+                <ScalarProperty Name="Abbreviation" ColumnName="Abbreviation" />
+                <ScalarProperty Name="Name" ColumnName="Name" />
+                <ScalarProperty Name="Depth" ColumnName="Depth" />
+                <ScalarProperty Name="ParentBudgetClassId" ColumnName="ParentBudgetClassId" />
+                <ScalarProperty Name="BudgetSeq" ColumnName="BudgetSeq" />
+                <ScalarProperty Name="BudgetClassId" ColumnName="BudgetClassId" />
+                <ScalarProperty Name="Year" ColumnName="Year" />
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="FmsBudgetDetailExecution">
+            <EntityTypeMapping TypeName="iBemsModel.FmsBudgetDetailExecution">
+              <MappingFragment StoreEntitySet="FmsBudgetDetailExecution">
+                <ScalarProperty Name="RootBudgetClassId" ColumnName="RootBudgetClassId" />
+                <ScalarProperty Name="YearlyExecution" ColumnName="YearlyExecution" />
+                <ScalarProperty Name="MonthlyBudget" ColumnName="MonthlyBudget" />
+                <ScalarProperty Name="YearlyBudget" ColumnName="YearlyBudget" />
+                <ScalarProperty Name="Month" ColumnName="Month" />
+                <ScalarProperty Name="MonthlyExecution" ColumnName="MonthlyExecution" />
+                <ScalarProperty Name="ParentBudgetClassId" ColumnName="ParentBudgetClassId" />
+                <ScalarProperty Name="BudgetClassId" ColumnName="BudgetClassId" />
+                <ScalarProperty Name="Year" ColumnName="Year" />
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="FmsMonthlyReport">
+            <EntityTypeMapping TypeName="iBemsModel.FmsMonthlyReport">
+              <MappingFragment StoreEntitySet="FmsMonthlyReport">
+                <ScalarProperty Name="AddDate" ColumnName="AddDate" />
+                <ScalarProperty Name="RegisterUserId" ColumnName="RegisterUserId" />
+                <ScalarProperty Name="Contents" ColumnName="Contents" />
+                <ScalarProperty Name="Name" ColumnName="Name" />
+                <ScalarProperty Name="MonthlyReportId" ColumnName="MonthlyReportId" />
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="FmsInvestmentCost">
+            <EntityTypeMapping TypeName="iBemsModel.FmsInvestmentCost">
+              <MappingFragment StoreEntitySet="FmsInvestmentCost">
+                <ScalarProperty Name="InsvestmentCost" ColumnName="InsvestmentCost" />
+                <ScalarProperty Name="Comment" ColumnName="Comment" />
+                <ScalarProperty Name="Name" ColumnName="Name" />
+                <ScalarProperty Name="InsvestmentCostId" ColumnName="InsvestmentCostId" />
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="CmHolidayWeekend">
+            <EntityTypeMapping TypeName="iBemsModel.CmHolidayWeekend">
+              <MappingFragment StoreEntitySet="CmHolidayWeekend">
+                <ScalarProperty Name="IsUse" ColumnName="IsUse" />
+                <ScalarProperty Name="Sunday" ColumnName="Sunday" />
+                <ScalarProperty Name="Saturday" ColumnName="Saturday" />
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="FmsMaterial">
+            <EntityTypeMapping TypeName="iBemsModel.FmsMaterial">
+              <MappingFragment StoreEntitySet="FmsMaterial">
+                <ScalarProperty Name="FinalTotalStockAmount" ColumnName="FinalTotalStockAmount" />
+                <ScalarProperty Name="FinalStockCount" ColumnName="FinalStockCount" />
+                <ScalarProperty Name="IsUse" ColumnName="IsUse" />
+                <ScalarProperty Name="IsDiscontinued" ColumnName="IsDiscontinued" />
+                <ScalarProperty Name="Note" ColumnName="Note" />
+                <ScalarProperty Name="ImageFileId" ColumnName="ImageFileId" />
+                <ScalarProperty Name="FinalPrice" ColumnName="FinalPrice" />
+                <ScalarProperty Name="Standard" ColumnName="Standard" />
+                <ScalarProperty Name="Manufacturer" ColumnName="Manufacturer" />
+                <ScalarProperty Name="ReasonableStockCount" ColumnName="ReasonableStockCount" />
+                <ScalarProperty Name="DurableYears" ColumnName="DurableYears" />
+                <ScalarProperty Name="Unit" ColumnName="Unit" />
+                <ScalarProperty Name="Rfid" ColumnName="Rfid" />
+                <ScalarProperty Name="TradeCompanyId" ColumnName="TradeCompanyId" />
+                <ScalarProperty Name="WarehouseId" ColumnName="WarehouseId" />
+                <ScalarProperty Name="MaterialTypeId" ColumnName="MaterialTypeId" />
+                <ScalarProperty Name="LocationId" ColumnName="LocationId" />
+                <ScalarProperty Name="ThirdClassId" ColumnName="ThirdClassId" />
+                <ScalarProperty Name="SecondClassId" ColumnName="SecondClassId" />
+                <ScalarProperty Name="FirstClassId" ColumnName="FirstClassId" />
+                <ScalarProperty Name="Name" ColumnName="Name" />
+                <ScalarProperty Name="MaterialCode" ColumnName="MaterialCode" />
+                <ScalarProperty Name="MaterialId" ColumnName="MaterialId" />
+                <ScalarProperty Name="BusinessFieldId" ColumnName="BusinessFieldId" />
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="FmsMaterialRelease">
+            <EntityTypeMapping TypeName="iBemsModel.FmsMaterialRelease">
+              <MappingFragment StoreEntitySet="FmsMaterialRelease">
+                <ScalarProperty Name="StockCountByPoint" ColumnName="StockCountByPoint" />
+                <ScalarProperty Name="Comment" ColumnName="Comment" />
+                <ScalarProperty Name="IsConfirmed" ColumnName="IsConfirmed" />
+                <ScalarProperty Name="ConfirmedDate" ColumnName="ConfirmedDate" />
+                <ScalarProperty Name="ConfirmedUserId" ColumnName="ConfirmedUserId" />
+                <ScalarProperty Name="AdjustmentUserId" ColumnName="AdjustmentUserId" />
+                <ScalarProperty Name="AdjustmentTypeId" ColumnName="AdjustmentTypeId" />
+                <ScalarProperty Name="ReleaseTotalCost" ColumnName="ReleaseTotalCost" />
+                <ScalarProperty Name="MaterialCount" ColumnName="MaterialCount" />
+                <ScalarProperty Name="MaterialId" ColumnName="MaterialId" />
+                <ScalarProperty Name="WarehouseId" ColumnName="WarehouseId" />
+                <ScalarProperty Name="WorkRequestId" ColumnName="WorkRequestId" />
+                <ScalarProperty Name="ReleaseTypeId" ColumnName="ReleaseTypeId" />
+                <ScalarProperty Name="MaterialReleaseId" ColumnName="MaterialReleaseId" />
+                <ScalarProperty Name="ReleaseDate" ColumnName="ReleaseDate" />
+                <ScalarProperty Name="BusinessFieldId" ColumnName="BusinessFieldId" />
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="CmPatrolType">
+            <EntityTypeMapping TypeName="iBemsModel.CmPatrolType">
+              <MappingFragment StoreEntitySet="CmPatrolType">
+                <ScalarProperty Name="IsUse" ColumnName="IsUse" />
+                <ScalarProperty Name="Name" ColumnName="Name" />
+                <ScalarProperty Name="PatrolTypeId" ColumnName="PatrolTypeId" />
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="CmPatrolGroup">
+            <EntityTypeMapping TypeName="iBemsModel.CmPatrolGroup">
+              <MappingFragment StoreEntitySet="CmPatrolGroup">
+                <ScalarProperty Name="Name" ColumnName="Name" />
+                <ScalarProperty Name="PatrolGroupId" ColumnName="PatrolGroupId" />
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="CmPatrolGroupUser">
+            <EntityTypeMapping TypeName="iBemsModel.CmPatrolGroupUser">
+              <MappingFragment StoreEntitySet="CmPatrolGroupUser">
+                <ScalarProperty Name="UserId" ColumnName="UserId" />
+                <ScalarProperty Name="PatrolGroupId" ColumnName="PatrolGroupId" />
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="CmPatrolPos">
+            <EntityTypeMapping TypeName="iBemsModel.CmPatrolPos">
+              <MappingFragment StoreEntitySet="CmPatrolPos">
+                <ScalarProperty Name="PosDesc" ColumnName="PosDesc" />
+                <ScalarProperty Name="TagId" ColumnName="TagId" />
+                <ScalarProperty Name="Name" ColumnName="Name" />
+                <ScalarProperty Name="PosId" ColumnName="PosId" />
+                <ScalarProperty Name="FloorId" ColumnName="FloorId" />
+                <ScalarProperty Name="BuildingId" ColumnName="BuildingId" />
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="CmPatrolCourse">
+            <EntityTypeMapping TypeName="iBemsModel.CmPatrolCourse">
+              <MappingFragment StoreEntitySet="CmPatrolCourse">
+                <ScalarProperty Name="Name" ColumnName="Name" />
+                <ScalarProperty Name="PatrolCourseId" ColumnName="PatrolCourseId" />
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="CmPatrolCoursePos">
+            <EntityTypeMapping TypeName="iBemsModel.CmPatrolCoursePos">
+              <MappingFragment StoreEntitySet="CmPatrolCoursePos">
+                <ScalarProperty Name="FloorId" ColumnName="FloorId" />
+                <ScalarProperty Name="BuildingId" ColumnName="BuildingId" />
+                <ScalarProperty Name="CourseOrder" ColumnName="CourseOrder" />
+                <ScalarProperty Name="PosId" ColumnName="PosId" />
+                <ScalarProperty Name="PatrolCourseId" ColumnName="PatrolCourseId" />
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="CmPatrolPlan">
+            <EntityTypeMapping TypeName="iBemsModel.CmPatrolPlan">
+              <MappingFragment StoreEntitySet="CmPatrolPlan">
+                <ScalarProperty Name="inDate" ColumnName="inDate" />
+                <ScalarProperty Name="term" ColumnName="term" />
+                <ScalarProperty Name="PlanDesc" ColumnName="PlanDesc" />
+                <ScalarProperty Name="Name" ColumnName="Name" />
+                <ScalarProperty Name="CourseId" ColumnName="CourseId" />
+                <ScalarProperty Name="GroupId" ColumnName="GroupId" />
+                <ScalarProperty Name="PatrolPlanId" ColumnName="PatrolPlanId" />
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="CmPatrolHistoryPos">
+            <EntityTypeMapping TypeName="iBemsModel.CmPatrolHistoryPos">
+              <MappingFragment StoreEntitySet="CmPatrolHistoryPos">
+                <ScalarProperty Name="mId" ColumnName="mId" />
+                <ScalarProperty Name="resultType" ColumnName="resultType" />
+                <ScalarProperty Name="term" ColumnName="term" />
+                <ScalarProperty Name="PatrolTime" ColumnName="PatrolTime" />
+                <ScalarProperty Name="PosId" ColumnName="PosId" />
+                <ScalarProperty Name="PatrolHistoryId" ColumnName="PatrolHistoryId" />
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="BemsPeakInfo">
+            <EntityTypeMapping TypeName="iBemsModel.BemsPeakInfo">
+              <MappingFragment StoreEntitySet="BemsPeakInfo">
+                <ScalarProperty Name="todayMinPeakValue" ColumnName="todayMinPeakValue" />
+                <ScalarProperty Name="todayMaxPeakValue" ColumnName="todayMaxPeakValue" />
+                <ScalarProperty Name="MinPeakValue" ColumnName="MinPeakValue" />
+                <ScalarProperty Name="MinDateTime" ColumnName="MinDateTime" />
+                <ScalarProperty Name="MaxPeakValue" ColumnName="MaxPeakValue" />
+                <ScalarProperty Name="MaxDateTime" ColumnName="MaxDateTime" />
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="BemsPeakHistory">
+            <EntityTypeMapping TypeName="iBemsModel.BemsPeakHistory">
+              <MappingFragment StoreEntitySet="BemsPeakHistory">
+                <ScalarProperty Name="CurrentValue" ColumnName="CurrentValue" />
+                <ScalarProperty Name="CreatedDateTime" ColumnName="CreatedDateTime" />
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="CmPatrolSchedule">
+            <EntityTypeMapping TypeName="iBemsModel.CmPatrolSchedule">
+              <MappingFragment StoreEntitySet="CmPatrolSchedule">
+                <ScalarProperty Name="patrolDateTime" ColumnName="patrolDateTime" />
+                <ScalarProperty Name="inDate" ColumnName="inDate" />
+                <ScalarProperty Name="ScheduleDesc" ColumnName="ScheduleDesc" />
+                <ScalarProperty Name="Name" ColumnName="Name" />
+                <ScalarProperty Name="PlanId" ColumnName="PlanId" />
+                <ScalarProperty Name="ScheduleId" ColumnName="ScheduleId" />
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="BemsNoticePriceBase">
+            <EntityTypeMapping TypeName="iBemsModel.BemsNoticePriceBase">
+              <MappingFragment StoreEntitySet="BemsNoticePriceBase">
+                <ScalarProperty Name="SecondaryPrice" ColumnName="SecondaryPrice" />
+                <ScalarProperty Name="PrimaryPrice" ColumnName="PrimaryPrice" />
+                <ScalarProperty Name="ContractType" ColumnName="ContractType" />
+                <ScalarProperty Name="ApplyDate" ColumnName="ApplyDate" />
+                <ScalarProperty Name="FuelTypeId" ColumnName="FuelTypeId" />
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="BemsNoticePriceContractType">
+            <EntityTypeMapping TypeName="iBemsModel.BemsNoticePriceContractType">
+              <MappingFragment StoreEntitySet="BemsNoticePriceContractType">
+                <ScalarProperty Name="Name" ColumnName="Name" />
+                <ScalarProperty Name="ContractType" ColumnName="ContractType" />
+                <ScalarProperty Name="FuelTypeId" ColumnName="FuelTypeId" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="BemsNoticePriceDetail">
+            <EntityTypeMapping TypeName="iBemsModel.BemsNoticePriceDetail">
+              <MappingFragment StoreEntitySet="BemsNoticePriceDetail">
+                <ScalarProperty Name="P12" ColumnName="P12" />
+                <ScalarProperty Name="P11" ColumnName="P11" />
+                <ScalarProperty Name="P10" ColumnName="P10" />
+                <ScalarProperty Name="P09" ColumnName="P09" />
+                <ScalarProperty Name="P08" ColumnName="P08" />
+                <ScalarProperty Name="P07" ColumnName="P07" />
+                <ScalarProperty Name="P06" ColumnName="P06" />
+                <ScalarProperty Name="P05" ColumnName="P05" />
+                <ScalarProperty Name="P04" ColumnName="P04" />
+                <ScalarProperty Name="P03" ColumnName="P03" />
+                <ScalarProperty Name="P02" ColumnName="P02" />
+                <ScalarProperty Name="P01" ColumnName="P01" />
+                <ScalarProperty Name="DataId" ColumnName="DataId" />
+                <ScalarProperty Name="ContractType" ColumnName="ContractType" />
+                <ScalarProperty Name="ApplyDate" ColumnName="ApplyDate" />
+                <ScalarProperty Name="FuelTypeId" ColumnName="FuelTypeId" />
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="BemsPeakFacility">
+            <EntityTypeMapping TypeName="iBemsModel.BemsPeakFacility">
+              <MappingFragment StoreEntitySet="BemsPeakFacility">
+                <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
+                <ScalarProperty Name="MaxDateTime" ColumnName="MaxDateTime" />
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="CmSite">
+            <EntityTypeMapping TypeName="iBemsModel.CmSite">
+              <MappingFragment StoreEntitySet="CmSite">
+                <ScalarProperty Name="CDD" ColumnName="CDD" />
+                <ScalarProperty Name="HDD" ColumnName="HDD" />
+                <ScalarProperty Name="MainUseIndex" ColumnName="MainUseIndex" />
+                <ScalarProperty Name="Standard" ColumnName="Standard" />
+                <ScalarProperty Name="CompletionDate" ColumnName="CompletionDate" />
+                <ScalarProperty Name="MainUse" ColumnName="MainUse" />
+                <ScalarProperty Name="BuildingCoverageRatio" ColumnName="BuildingCoverageRatio" />
+                <ScalarProperty Name="FloorAreaRatio" ColumnName="FloorAreaRatio" />
+                <ScalarProperty Name="BuildingArea" ColumnName="BuildingArea" />
+                <ScalarProperty Name="GrossArea" ColumnName="GrossArea" />
+                <ScalarProperty Name="BuildingSize" ColumnName="BuildingSize" />
+                <ScalarProperty Name="controlSchedule" ColumnName="controlSchedule" />
+                <ScalarProperty Name="lng" ColumnName="lng" />
+                <ScalarProperty Name="lat" ColumnName="lat" />
+                <ScalarProperty Name="MaxPeak" ColumnName="MaxPeak" />
+                <ScalarProperty Name="ScheduleCheckHour" ColumnName="ScheduleCheckHour" />
+                <ScalarProperty Name="IsControlSchedule" ColumnName="IsControlSchedule" />
+                <ScalarProperty Name="UpdatedUserId" ColumnName="UpdatedUserId" />
+                <ScalarProperty Name="UpdatedDate" ColumnName="UpdatedDate" />
+                <ScalarProperty Name="InsertedUserId" ColumnName="InsertedUserId" />
+                <ScalarProperty Name="InsertedDate" ColumnName="InsertedDate" />
+                <ScalarProperty Name="SortOrderNo" ColumnName="SortOrderNo" />
+                <ScalarProperty Name="IsUse" ColumnName="IsUse" />
+                <ScalarProperty Name="Comment" ColumnName="Comment" />
+                <ScalarProperty Name="URL" ColumnName="URL" />
+                <ScalarProperty Name="PhoneNo" ColumnName="PhoneNo" />
+                <ScalarProperty Name="Adderss2" ColumnName="Adderss2" />
+                <ScalarProperty Name="Address1" ColumnName="Address1" />
+                <ScalarProperty Name="AddressZip2" ColumnName="AddressZip2" />
+                <ScalarProperty Name="AddressZip1" ColumnName="AddressZip1" />
+                <ScalarProperty Name="Name" ColumnName="Name" />
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="FmsReport">
+            <EntityTypeMapping TypeName="iBemsModel.FmsReport">
+              <MappingFragment StoreEntitySet="FmsReport">
+                <ScalarProperty Name="BusinessFieldId" ColumnName="BusinessFieldId" />
+                <ScalarProperty Name="ConfirmUserId2" ColumnName="ConfirmUserId2" />
+                <ScalarProperty Name="ConfirmUserId1" ColumnName="ConfirmUserId1" />
+                <ScalarProperty Name="MakeDate" ColumnName="MakeDate" />
+                <ScalarProperty Name="FileId" ColumnName="FileId" />
+                <ScalarProperty Name="RegisterUserId" ColumnName="RegisterUserId" />
+                <ScalarProperty Name="Contents" ColumnName="Contents" />
+                <ScalarProperty Name="Title" ColumnName="Title" />
+                <ScalarProperty Name="RId" ColumnName="RId" />
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="CmServiceEnergyCalcMonth">
+            <EntityTypeMapping TypeName="iBemsModel.CmServiceEnergyCalcMonth">
+              <MappingFragment StoreEntitySet="CmServiceEnergyCalcMonth">
+                <ScalarProperty Name="Value" ColumnName="Value" />
+                <ScalarProperty Name="ServiceTypeId" ColumnName="ServiceTypeId" />
+                <ScalarProperty Name="calDate" ColumnName="calDate" />
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="CmServiceEnergyCalcDay">
+            <EntityTypeMapping TypeName="iBemsModel.CmServiceEnergyCalcDay">
+              <MappingFragment StoreEntitySet="CmServiceEnergyCalcDay">
+                <ScalarProperty Name="Value" ColumnName="Value" />
+                <ScalarProperty Name="ServiceTypeId" ColumnName="ServiceTypeId" />
+                <ScalarProperty Name="calDate" ColumnName="calDate" />
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="CmPatrolHistory">
+            <EntityTypeMapping TypeName="iBemsModel.CmPatrolHistory">
+              <MappingFragment StoreEntitySet="CmPatrolHistory">
+                <ScalarProperty Name="resultAbnormalCnt" ColumnName="resultAbnormalCnt" />
+                <ScalarProperty Name="resultNormalCnt" ColumnName="resultNormalCnt" />
+                <ScalarProperty Name="resultPosCnt" ColumnName="resultPosCnt" />
+                <ScalarProperty Name="resultDesc" ColumnName="resultDesc" />
+                <ScalarProperty Name="resultTypeId" ColumnName="resultTypeId" />
+                <ScalarProperty Name="endDate" ColumnName="endDate" />
+                <ScalarProperty Name="startDate" ColumnName="startDate" />
+                <ScalarProperty Name="ScheduleId" ColumnName="ScheduleId" />
+                <ScalarProperty Name="PatrolHistoryId" ColumnName="PatrolHistoryId" />
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="BemsReportFormat">
+            <EntityTypeMapping TypeName="iBemsModel.BemsReportFormat">
+              <MappingFragment StoreEntitySet="BemsReportFormat">
+                <ScalarProperty Name="parts" ColumnName="parts" />
+                <ScalarProperty Name="Content" ColumnName="Content" />
+                <ScalarProperty Name="FormatName" ColumnName="FormatName" />
+                <ScalarProperty Name="ReportFormatId" ColumnName="ReportFormatId" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+	  <EntitySetMapping Name="CmMenu">
+            <EntityTypeMapping TypeName="iBemsModel.CmMenu">
+              <MappingFragment StoreEntitySet="CmMenu">
+                <ScalarProperty Name="Name" ColumnName="Name" />
+                <ScalarProperty Name="MenuPath" ColumnName="MenuPath" />
+                <ScalarProperty Name="Used" ColumnName="Used" />
+                <ScalarProperty Name="MenuId" ColumnName="MenuId" />
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+
+          <EntitySetMapping Name="BemsPeopleIncrease">
+            <EntityTypeMapping TypeName="iBemsModel.BemsPeopleIncrease">
+              <MappingFragment StoreEntitySet="BemsPeopleIncrease">
+                <ScalarProperty Name="m12" ColumnName="m12" />
+                <ScalarProperty Name="m11" ColumnName="m11" />
+                <ScalarProperty Name="m10" ColumnName="m10" />
+                <ScalarProperty Name="m9" ColumnName="m9" />
+                <ScalarProperty Name="m8" ColumnName="m8" />
+                <ScalarProperty Name="m7" ColumnName="m7" />
+                <ScalarProperty Name="m6" ColumnName="m6" />
+                <ScalarProperty Name="m5" ColumnName="m5" />
+                <ScalarProperty Name="m4" ColumnName="m4" />
+                <ScalarProperty Name="m3" ColumnName="m3" />
+                <ScalarProperty Name="m2" ColumnName="m2" />
+                <ScalarProperty Name="m1" ColumnName="m1" />
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+                <ScalarProperty Name="Date" ColumnName="Date" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="BemsPriceCode">
+            <EntityTypeMapping TypeName="iBemsModel.BemsPriceCode">
+              <MappingFragment StoreEntitySet="BemsPriceCode">
+                <ScalarProperty Name="Unit" ColumnName="Unit" />
+                <ScalarProperty Name="FuelTypeId" ColumnName="FuelTypeId" />
+                <ScalarProperty Name="PriceCodeDesc" ColumnName="PriceCodeDesc" />
+                <ScalarProperty Name="PriceCode" ColumnName="PriceCode" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="BemsPriceFormula">
+            <EntityTypeMapping TypeName="iBemsModel.BemsPriceFormula">
+              <MappingFragment StoreEntitySet="BemsPriceFormula">
+                <ScalarProperty Name="UseYN" ColumnName="UseYN" />
+                <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
+                <ScalarProperty Name="FormulaId" ColumnName="FormulaId" />
+                <ScalarProperty Name="FacilityTypeId" ColumnName="FacilityTypeId" />
+                <ScalarProperty Name="PriceTypeId" ColumnName="PriceTypeId" />
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="BemsPriceMeta">
+            <EntityTypeMapping TypeName="iBemsModel.BemsPriceMeta">
+              <MappingFragment StoreEntitySet="BemsPriceMeta">
+                <ScalarProperty Name="C12_23" ColumnName="12_23" />
+                <ScalarProperty Name="C12_22" ColumnName="12_22" />
+                <ScalarProperty Name="C12_21" ColumnName="12_21" />
+                <ScalarProperty Name="C12_20" ColumnName="12_20" />
+                <ScalarProperty Name="C12_19" ColumnName="12_19" />
+                <ScalarProperty Name="C12_18" ColumnName="12_18" />
+                <ScalarProperty Name="C12_17" ColumnName="12_17" />
+                <ScalarProperty Name="C12_16" ColumnName="12_16" />
+                <ScalarProperty Name="C12_15" ColumnName="12_15" />
+                <ScalarProperty Name="C12_14" ColumnName="12_14" />
+                <ScalarProperty Name="C12_13" ColumnName="12_13" />
+                <ScalarProperty Name="C12_12" ColumnName="12_12" />
+                <ScalarProperty Name="C12_11" ColumnName="12_11" />
+                <ScalarProperty Name="C12_10" ColumnName="12_10" />
+                <ScalarProperty Name="C12_09" ColumnName="12_09" />
+                <ScalarProperty Name="C12_08" ColumnName="12_08" />
+                <ScalarProperty Name="C12_07" ColumnName="12_07" />
+                <ScalarProperty Name="C12_06" ColumnName="12_06" />
+                <ScalarProperty Name="C12_05" ColumnName="12_05" />
+                <ScalarProperty Name="C12_04" ColumnName="12_04" />
+                <ScalarProperty Name="C12_03" ColumnName="12_03" />
+                <ScalarProperty Name="C12_02" ColumnName="12_02" />
+                <ScalarProperty Name="C12_01" ColumnName="12_01" />
+                <ScalarProperty Name="C12_00" ColumnName="12_00" />
+                <ScalarProperty Name="C11_23" ColumnName="11_23" />
+                <ScalarProperty Name="C11_22" ColumnName="11_22" />
+                <ScalarProperty Name="C11_21" ColumnName="11_21" />
+                <ScalarProperty Name="C11_20" ColumnName="11_20" />
+                <ScalarProperty Name="C11_19" ColumnName="11_19" />
+                <ScalarProperty Name="C11_18" ColumnName="11_18" />
+                <ScalarProperty Name="C11_17" ColumnName="11_17" />
+                <ScalarProperty Name="C11_16" ColumnName="11_16" />
+                <ScalarProperty Name="C11_15" ColumnName="11_15" />
+                <ScalarProperty Name="C11_14" ColumnName="11_14" />
+                <ScalarProperty Name="C11_13" ColumnName="11_13" />
+                <ScalarProperty Name="C11_12" ColumnName="11_12" />
+                <ScalarProperty Name="C11_11" ColumnName="11_11" />
+                <ScalarProperty Name="C11_10" ColumnName="11_10" />
+                <ScalarProperty Name="C11_09" ColumnName="11_09" />
+                <ScalarProperty Name="C11_08" ColumnName="11_08" />
+                <ScalarProperty Name="C11_07" ColumnName="11_07" />
+                <ScalarProperty Name="C11_06" ColumnName="11_06" />
+                <ScalarProperty Name="C11_05" ColumnName="11_05" />
+                <ScalarProperty Name="C11_04" ColumnName="11_04" />
+                <ScalarProperty Name="C11_03" ColumnName="11_03" />
+                <ScalarProperty Name="C11_02" ColumnName="11_02" />
+                <ScalarProperty Name="C11_01" ColumnName="11_01" />
+                <ScalarProperty Name="C11_00" ColumnName="11_00" />
+                <ScalarProperty Name="C10_23" ColumnName="10_23" />
+                <ScalarProperty Name="C10_22" ColumnName="10_22" />
+                <ScalarProperty Name="C10_21" ColumnName="10_21" />
+                <ScalarProperty Name="C10_20" ColumnName="10_20" />
+                <ScalarProperty Name="C10_19" ColumnName="10_19" />
+                <ScalarProperty Name="C10_18" ColumnName="10_18" />
+                <ScalarProperty Name="C10_17" ColumnName="10_17" />
+                <ScalarProperty Name="C10_16" ColumnName="10_16" />
+                <ScalarProperty Name="C10_15" ColumnName="10_15" />
+                <ScalarProperty Name="C10_14" ColumnName="10_14" />
+                <ScalarProperty Name="C10_13" ColumnName="10_13" />
+                <ScalarProperty Name="C10_12" ColumnName="10_12" />
+                <ScalarProperty Name="C10_11" ColumnName="10_11" />
+                <ScalarProperty Name="C10_10" ColumnName="10_10" />
+                <ScalarProperty Name="C10_09" ColumnName="10_09" />
+                <ScalarProperty Name="C10_08" ColumnName="10_08" />
+                <ScalarProperty Name="C10_07" ColumnName="10_07" />
+                <ScalarProperty Name="C10_06" ColumnName="10_06" />
+                <ScalarProperty Name="C10_05" ColumnName="10_05" />
+                <ScalarProperty Name="C10_04" ColumnName="10_04" />
+                <ScalarProperty Name="C10_03" ColumnName="10_03" />
+                <ScalarProperty Name="C10_02" ColumnName="10_02" />
+                <ScalarProperty Name="C10_01" ColumnName="10_01" />
+                <ScalarProperty Name="C10_00" ColumnName="10_00" />
+                <ScalarProperty Name="C09_23" ColumnName="09_23" />
+                <ScalarProperty Name="C09_22" ColumnName="09_22" />
+                <ScalarProperty Name="C09_21" ColumnName="09_21" />
+                <ScalarProperty Name="C09_20" ColumnName="09_20" />
+                <ScalarProperty Name="C09_19" ColumnName="09_19" />
+                <ScalarProperty Name="C09_18" ColumnName="09_18" />
+                <ScalarProperty Name="C09_17" ColumnName="09_17" />
+                <ScalarProperty Name="C09_16" ColumnName="09_16" />
+                <ScalarProperty Name="C09_15" ColumnName="09_15" />
+                <ScalarProperty Name="C09_14" ColumnName="09_14" />
+                <ScalarProperty Name="C09_13" ColumnName="09_13" />
+                <ScalarProperty Name="C09_12" ColumnName="09_12" />
+                <ScalarProperty Name="C09_11" ColumnName="09_11" />
+                <ScalarProperty Name="C09_10" ColumnName="09_10" />
+                <ScalarProperty Name="C09_09" ColumnName="09_09" />
+                <ScalarProperty Name="C09_08" ColumnName="09_08" />
+                <ScalarProperty Name="C09_07" ColumnName="09_07" />
+                <ScalarProperty Name="C09_06" ColumnName="09_06" />
+                <ScalarProperty Name="C09_05" ColumnName="09_05" />
+                <ScalarProperty Name="C09_04" ColumnName="09_04" />
+                <ScalarProperty Name="C09_03" ColumnName="09_03" />
+                <ScalarProperty Name="C09_02" ColumnName="09_02" />
+                <ScalarProperty Name="C09_01" ColumnName="09_01" />
+                <ScalarProperty Name="C09_00" ColumnName="09_00" />
+                <ScalarProperty Name="C08_23" ColumnName="08_23" />
+                <ScalarProperty Name="C08_22" ColumnName="08_22" />
+                <ScalarProperty Name="C08_21" ColumnName="08_21" />
+                <ScalarProperty Name="C08_20" ColumnName="08_20" />
+                <ScalarProperty Name="C08_19" ColumnName="08_19" />
+                <ScalarProperty Name="C08_18" ColumnName="08_18" />
+                <ScalarProperty Name="C08_17" ColumnName="08_17" />
+                <ScalarProperty Name="C08_16" ColumnName="08_16" />
+                <ScalarProperty Name="C08_15" ColumnName="08_15" />
+                <ScalarProperty Name="C08_14" ColumnName="08_14" />
+                <ScalarProperty Name="C08_13" ColumnName="08_13" />
+                <ScalarProperty Name="C08_12" ColumnName="08_12" />
+                <ScalarProperty Name="C08_11" ColumnName="08_11" />
+                <ScalarProperty Name="C08_10" ColumnName="08_10" />
+                <ScalarProperty Name="C08_09" ColumnName="08_09" />
+                <ScalarProperty Name="C08_08" ColumnName="08_08" />
+                <ScalarProperty Name="C08_07" ColumnName="08_07" />
+                <ScalarProperty Name="C08_06" ColumnName="08_06" />
+                <ScalarProperty Name="C08_05" ColumnName="08_05" />
+                <ScalarProperty Name="C08_04" ColumnName="08_04" />
+                <ScalarProperty Name="C08_03" ColumnName="08_03" />
+                <ScalarProperty Name="C08_02" ColumnName="08_02" />
+                <ScalarProperty Name="C08_01" ColumnName="08_01" />
+                <ScalarProperty Name="C08_00" ColumnName="08_00" />
+                <ScalarProperty Name="C07_23" ColumnName="07_23" />
+                <ScalarProperty Name="C07_22" ColumnName="07_22" />
+                <ScalarProperty Name="C07_21" ColumnName="07_21" />
+                <ScalarProperty Name="C07_20" ColumnName="07_20" />
+                <ScalarProperty Name="C07_19" ColumnName="07_19" />
+                <ScalarProperty Name="C07_18" ColumnName="07_18" />
+                <ScalarProperty Name="C07_17" ColumnName="07_17" />
+                <ScalarProperty Name="C07_16" ColumnName="07_16" />
+                <ScalarProperty Name="C07_15" ColumnName="07_15" />
+                <ScalarProperty Name="C07_14" ColumnName="07_14" />
+                <ScalarProperty Name="C07_13" ColumnName="07_13" />
+                <ScalarProperty Name="C07_12" ColumnName="07_12" />
+                <ScalarProperty Name="C07_11" ColumnName="07_11" />
+                <ScalarProperty Name="C07_10" ColumnName="07_10" />
+                <ScalarProperty Name="C07_09" ColumnName="07_09" />
+                <ScalarProperty Name="C07_08" ColumnName="07_08" />
+                <ScalarProperty Name="C07_07" ColumnName="07_07" />
+                <ScalarProperty Name="C07_06" ColumnName="07_06" />
+                <ScalarProperty Name="C07_05" ColumnName="07_05" />
+                <ScalarProperty Name="C07_04" ColumnName="07_04" />
+                <ScalarProperty Name="C07_03" ColumnName="07_03" />
+                <ScalarProperty Name="C07_02" ColumnName="07_02" />
+                <ScalarProperty Name="C07_01" ColumnName="07_01" />
+                <ScalarProperty Name="C07_00" ColumnName="07_00" />
+                <ScalarProperty Name="C06_23" ColumnName="06_23" />
+                <ScalarProperty Name="C06_22" ColumnName="06_22" />
+                <ScalarProperty Name="C06_21" ColumnName="06_21" />
+                <ScalarProperty Name="C06_20" ColumnName="06_20" />
+                <ScalarProperty Name="C06_19" ColumnName="06_19" />
+                <ScalarProperty Name="C06_18" ColumnName="06_18" />
+                <ScalarProperty Name="C06_17" ColumnName="06_17" />
+                <ScalarProperty Name="C06_16" ColumnName="06_16" />
+                <ScalarProperty Name="C06_15" ColumnName="06_15" />
+                <ScalarProperty Name="C06_14" ColumnName="06_14" />
+                <ScalarProperty Name="C06_13" ColumnName="06_13" />
+                <ScalarProperty Name="C06_12" ColumnName="06_12" />
+                <ScalarProperty Name="C06_11" ColumnName="06_11" />
+                <ScalarProperty Name="C06_10" ColumnName="06_10" />
+                <ScalarProperty Name="C06_09" ColumnName="06_09" />
+                <ScalarProperty Name="C06_08" ColumnName="06_08" />
+                <ScalarProperty Name="C06_07" ColumnName="06_07" />
+                <ScalarProperty Name="C06_06" ColumnName="06_06" />
+                <ScalarProperty Name="C06_05" ColumnName="06_05" />
+                <ScalarProperty Name="C06_04" ColumnName="06_04" />
+                <ScalarProperty Name="C06_03" ColumnName="06_03" />
+                <ScalarProperty Name="C06_02" ColumnName="06_02" />
+                <ScalarProperty Name="C06_01" ColumnName="06_01" />
+                <ScalarProperty Name="C06_00" ColumnName="06_00" />
+                <ScalarProperty Name="C05_23" ColumnName="05_23" />
+                <ScalarProperty Name="C05_22" ColumnName="05_22" />
+                <ScalarProperty Name="C05_21" ColumnName="05_21" />
+                <ScalarProperty Name="C05_20" ColumnName="05_20" />
+                <ScalarProperty Name="C05_19" ColumnName="05_19" />
+                <ScalarProperty Name="C05_18" ColumnName="05_18" />
+                <ScalarProperty Name="C05_17" ColumnName="05_17" />
+                <ScalarProperty Name="C05_16" ColumnName="05_16" />
+                <ScalarProperty Name="C05_15" ColumnName="05_15" />
+                <ScalarProperty Name="C05_14" ColumnName="05_14" />
+                <ScalarProperty Name="C05_13" ColumnName="05_13" />
+                <ScalarProperty Name="C05_12" ColumnName="05_12" />
+                <ScalarProperty Name="C05_11" ColumnName="05_11" />
+                <ScalarProperty Name="C05_10" ColumnName="05_10" />
+                <ScalarProperty Name="C05_09" ColumnName="05_09" />
+                <ScalarProperty Name="C05_08" ColumnName="05_08" />
+                <ScalarProperty Name="C05_07" ColumnName="05_07" />
+                <ScalarProperty Name="C05_06" ColumnName="05_06" />
+                <ScalarProperty Name="C05_05" ColumnName="05_05" />
+                <ScalarProperty Name="C05_04" ColumnName="05_04" />
+                <ScalarProperty Name="C05_03" ColumnName="05_03" />
+                <ScalarProperty Name="C05_02" ColumnName="05_02" />
+                <ScalarProperty Name="C05_01" ColumnName="05_01" />
+                <ScalarProperty Name="C05_00" ColumnName="05_00" />
+                <ScalarProperty Name="C04_23" ColumnName="04_23" />
+                <ScalarProperty Name="C04_22" ColumnName="04_22" />
+                <ScalarProperty Name="C04_21" ColumnName="04_21" />
+                <ScalarProperty Name="C04_20" ColumnName="04_20" />
+                <ScalarProperty Name="C04_19" ColumnName="04_19" />
+                <ScalarProperty Name="C04_18" ColumnName="04_18" />
+                <ScalarProperty Name="C04_17" ColumnName="04_17" />
+                <ScalarProperty Name="C04_16" ColumnName="04_16" />
+                <ScalarProperty Name="C04_15" ColumnName="04_15" />
+                <ScalarProperty Name="C04_14" ColumnName="04_14" />
+                <ScalarProperty Name="C04_13" ColumnName="04_13" />
+                <ScalarProperty Name="C04_12" ColumnName="04_12" />
+                <ScalarProperty Name="C04_11" ColumnName="04_11" />
+                <ScalarProperty Name="C04_10" ColumnName="04_10" />
+                <ScalarProperty Name="C04_09" ColumnName="04_09" />
+                <ScalarProperty Name="C04_08" ColumnName="04_08" />
+                <ScalarProperty Name="C04_07" ColumnName="04_07" />
+                <ScalarProperty Name="C04_06" ColumnName="04_06" />
+                <ScalarProperty Name="C04_05" ColumnName="04_05" />
+                <ScalarProperty Name="C04_04" ColumnName="04_04" />
+                <ScalarProperty Name="C04_03" ColumnName="04_03" />
+                <ScalarProperty Name="C04_02" ColumnName="04_02" />
+                <ScalarProperty Name="C04_01" ColumnName="04_01" />
+                <ScalarProperty Name="C04_00" ColumnName="04_00" />
+                <ScalarProperty Name="C03_23" ColumnName="03_23" />
+                <ScalarProperty Name="C03_22" ColumnName="03_22" />
+                <ScalarProperty Name="C03_21" ColumnName="03_21" />
+                <ScalarProperty Name="C03_20" ColumnName="03_20" />
+                <ScalarProperty Name="C03_19" ColumnName="03_19" />
+                <ScalarProperty Name="C03_18" ColumnName="03_18" />
+                <ScalarProperty Name="C03_17" ColumnName="03_17" />
+                <ScalarProperty Name="C03_16" ColumnName="03_16" />
+                <ScalarProperty Name="C03_15" ColumnName="03_15" />
+                <ScalarProperty Name="C03_14" ColumnName="03_14" />
+                <ScalarProperty Name="C03_13" ColumnName="03_13" />
+                <ScalarProperty Name="C03_12" ColumnName="03_12" />
+                <ScalarProperty Name="C03_11" ColumnName="03_11" />
+                <ScalarProperty Name="C03_10" ColumnName="03_10" />
+                <ScalarProperty Name="C03_09" ColumnName="03_09" />
+                <ScalarProperty Name="C03_08" ColumnName="03_08" />
+                <ScalarProperty Name="C03_07" ColumnName="03_07" />
+                <ScalarProperty Name="C03_06" ColumnName="03_06" />
+                <ScalarProperty Name="C03_05" ColumnName="03_05" />
+                <ScalarProperty Name="C03_04" ColumnName="03_04" />
+                <ScalarProperty Name="C03_03" ColumnName="03_03" />
+                <ScalarProperty Name="C03_02" ColumnName="03_02" />
+                <ScalarProperty Name="C03_01" ColumnName="03_01" />
+                <ScalarProperty Name="C03_00" ColumnName="03_00" />
+                <ScalarProperty Name="C02_23" ColumnName="02_23" />
+                <ScalarProperty Name="C02_22" ColumnName="02_22" />
+                <ScalarProperty Name="C02_21" ColumnName="02_21" />
+                <ScalarProperty Name="C02_20" ColumnName="02_20" />
+                <ScalarProperty Name="C02_19" ColumnName="02_19" />
+                <ScalarProperty Name="C02_18" ColumnName="02_18" />
+                <ScalarProperty Name="C02_17" ColumnName="02_17" />
+                <ScalarProperty Name="C02_16" ColumnName="02_16" />
+                <ScalarProperty Name="C02_15" ColumnName="02_15" />
+                <ScalarProperty Name="C02_14" ColumnName="02_14" />
+                <ScalarProperty Name="C02_13" ColumnName="02_13" />
+                <ScalarProperty Name="C02_12" ColumnName="02_12" />
+                <ScalarProperty Name="C02_11" ColumnName="02_11" />
+                <ScalarProperty Name="C02_10" ColumnName="02_10" />
+                <ScalarProperty Name="C02_09" ColumnName="02_09" />
+                <ScalarProperty Name="C02_08" ColumnName="02_08" />
+                <ScalarProperty Name="C02_07" ColumnName="02_07" />
+                <ScalarProperty Name="C02_06" ColumnName="02_06" />
+                <ScalarProperty Name="C02_05" ColumnName="02_05" />
+                <ScalarProperty Name="C02_04" ColumnName="02_04" />
+                <ScalarProperty Name="C02_03" ColumnName="02_03" />
+                <ScalarProperty Name="C02_02" ColumnName="02_02" />
+                <ScalarProperty Name="C02_01" ColumnName="02_01" />
+                <ScalarProperty Name="C02_00" ColumnName="02_00" />
+                <ScalarProperty Name="C01_23" ColumnName="01_23" />
+                <ScalarProperty Name="C01_22" ColumnName="01_22" />
+                <ScalarProperty Name="C01_21" ColumnName="01_21" />
+                <ScalarProperty Name="C01_20" ColumnName="01_20" />
+                <ScalarProperty Name="C01_19" ColumnName="01_19" />
+                <ScalarProperty Name="C01_18" ColumnName="01_18" />
+                <ScalarProperty Name="C01_17" ColumnName="01_17" />
+                <ScalarProperty Name="C01_16" ColumnName="01_16" />
+                <ScalarProperty Name="C01_15" ColumnName="01_15" />
+                <ScalarProperty Name="C01_14" ColumnName="01_14" />
+                <ScalarProperty Name="C01_13" ColumnName="01_13" />
+                <ScalarProperty Name="C01_12" ColumnName="01_12" />
+                <ScalarProperty Name="C01_11" ColumnName="01_11" />
+                <ScalarProperty Name="C01_10" ColumnName="01_10" />
+                <ScalarProperty Name="C01_09" ColumnName="01_09" />
+                <ScalarProperty Name="C01_08" ColumnName="01_08" />
+                <ScalarProperty Name="C01_07" ColumnName="01_07" />
+                <ScalarProperty Name="C01_06" ColumnName="01_06" />
+                <ScalarProperty Name="C01_05" ColumnName="01_05" />
+                <ScalarProperty Name="C01_04" ColumnName="01_04" />
+                <ScalarProperty Name="C01_03" ColumnName="01_03" />
+                <ScalarProperty Name="C01_02" ColumnName="01_02" />
+                <ScalarProperty Name="C01_01" ColumnName="01_01" />
+                <ScalarProperty Name="C01_00" ColumnName="01_00" />
+                <ScalarProperty Name="BasePrice" ColumnName="BasePrice" />
+                <ScalarProperty Name="PublishDate" ColumnName="PublishDate" />
+                <ScalarProperty Name="PriceTypeId" ColumnName="PriceTypeId" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="BemsPriceType">
+            <EntityTypeMapping TypeName="iBemsModel.BemsPriceType">
+              <MappingFragment StoreEntitySet="BemsPriceType">
+                <ScalarProperty Name="FuelTypeId" ColumnName="FuelTypeId" />
+                <ScalarProperty Name="PriceTypeIdDesc" ColumnName="PriceTypeIdDesc" />
+                <ScalarProperty Name="PriceTypeId" ColumnName="PriceTypeId" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="BemsRentalRate">
+            <EntityTypeMapping TypeName="iBemsModel.BemsRentalRate">
+              <MappingFragment StoreEntitySet="BemsRentalRate">
+                <ScalarProperty Name="m12" ColumnName="m12" />
+                <ScalarProperty Name="m11" ColumnName="m11" />
+                <ScalarProperty Name="m10" ColumnName="m10" />
+                <ScalarProperty Name="m9" ColumnName="m9" />
+                <ScalarProperty Name="m8" ColumnName="m8" />
+                <ScalarProperty Name="m7" ColumnName="m7" />
+                <ScalarProperty Name="m6" ColumnName="m6" />
+                <ScalarProperty Name="m5" ColumnName="m5" />
+                <ScalarProperty Name="m4" ColumnName="m4" />
+                <ScalarProperty Name="m3" ColumnName="m3" />
+                <ScalarProperty Name="m2" ColumnName="m2" />
+                <ScalarProperty Name="m1" ColumnName="m1" />
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+                <ScalarProperty Name="Date" ColumnName="Date" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="BemsSitePrice">
+            <EntityTypeMapping TypeName="iBemsModel.BemsSitePrice">
+              <MappingFragment StoreEntitySet="BemsSitePrice">
+                <ScalarProperty Name="UseYN" ColumnName="UseYN" />
+                <ScalarProperty Name="PriceCode" ColumnName="PriceCode" />
+                <ScalarProperty Name="PriceTypeId" ColumnName="PriceTypeId" />
+                <ScalarProperty Name="FuelTypeId" ColumnName="FuelTypeId" />
+                <ScalarProperty Name="SiteID" ColumnName="SiteID" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="BemsSitePriceHistory">
+            <EntityTypeMapping TypeName="iBemsModel.BemsSitePriceHistory">
+              <MappingFragment StoreEntitySet="BemsSitePriceHistory">
+                <ScalarProperty Name="PayCharge" ColumnName="PayCharge" />
+                <ScalarProperty Name="EndDate" ColumnName="EndDate" />
+                <ScalarProperty Name="StartDate" ColumnName="StartDate" />
+                <ScalarProperty Name="PayDate" ColumnName="PayDate" />
+                <ScalarProperty Name="PriceValue" ColumnName="PriceValue" />
+                <ScalarProperty Name="PriceCode" ColumnName="PriceCode" />
+                <ScalarProperty Name="PriceTypeId" ColumnName="PriceTypeId" />
+                <ScalarProperty Name="FuelTypeId" ColumnName="FuelTypeId" />
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="BemsChartInfo">
+            <EntityTypeMapping TypeName="iBemsModel.BemsChartInfo">
+              <MappingFragment StoreEntitySet="BemsChartInfo">
+                <ScalarProperty Name="RCTLineValue" ColumnName="RCTLineValue" />
+                <ScalarProperty Name="RCTLineTitle" ColumnName="RCTLineTitle" />
+                <ScalarProperty Name="UseRCTLine" ColumnName="UseRCTLine" />
+                <ScalarProperty Name="LCTLineValue" ColumnName="LCTLineValue" />
+                <ScalarProperty Name="LCTLineTitle" ColumnName="LCTLineTitle" />
+                <ScalarProperty Name="UseLCTLine" ColumnName="UseLCTLine" />
+                <ScalarProperty Name="UseChart" ColumnName="UseChart" />
+                <ScalarProperty Name="Palette" ColumnName="Palette" />
+                <ScalarProperty Name="XAxMax" ColumnName="XAxMax" />
+                <ScalarProperty Name="XAxMin" ColumnName="XAxMin" />
+                <ScalarProperty Name="RAxMax" ColumnName="RAxMax" />
+                <ScalarProperty Name="RAxMin" ColumnName="RAxMin" />
+                <ScalarProperty Name="LAxMax" ColumnName="LAxMax" />
+                <ScalarProperty Name="LAxMin" ColumnName="LAxMin" />
+                <ScalarProperty Name="UseXAxMinMax" ColumnName="UseXAxMinMax" />
+                <ScalarProperty Name="UseRAxMinMax" ColumnName="UseRAxMinMax" />
+                <ScalarProperty Name="UseLAxMinMax" ColumnName="UseLAxMinMax" />
+                <ScalarProperty Name="UseX" ColumnName="UseX" />
+                <ScalarProperty Name="Title" ColumnName="Title" />
+                <ScalarProperty Name="RSType4" ColumnName="RSType4" />
+                <ScalarProperty Name="RSName4" ColumnName="RSName4" />
+                <ScalarProperty Name="RSFmId4" ColumnName="RSFmId4" />
+                <ScalarProperty Name="RSType3" ColumnName="RSType3" />
+                <ScalarProperty Name="RSName3" ColumnName="RSName3" />
+                <ScalarProperty Name="RSFmId3" ColumnName="RSFmId3" />
+                <ScalarProperty Name="RSType2" ColumnName="RSType2" />
+                <ScalarProperty Name="RSName2" ColumnName="RSName2" />
+                <ScalarProperty Name="RSFmId2" ColumnName="RSFmId2" />
+                <ScalarProperty Name="RSType1" ColumnName="RSType1" />
+                <ScalarProperty Name="RSName1" ColumnName="RSName1" />
+                <ScalarProperty Name="RSFmId1" ColumnName="RSFmId1" />
+                <ScalarProperty Name="LSType4" ColumnName="LSType4" />
+                <ScalarProperty Name="LSName4" ColumnName="LSName4" />
+                <ScalarProperty Name="LSFmId4" ColumnName="LSFmId4" />
+                <ScalarProperty Name="LSType3" ColumnName="LSType3" />
+                <ScalarProperty Name="LSName3" ColumnName="LSName3" />
+                <ScalarProperty Name="LSFmId3" ColumnName="LSFmId3" />
+                <ScalarProperty Name="LSType2" ColumnName="LSType2" />
+                <ScalarProperty Name="LSName2" ColumnName="LSName2" />
+                <ScalarProperty Name="LSFmId2" ColumnName="LSFmId2" />
+                <ScalarProperty Name="LSType1" ColumnName="LSType1" />
+                <ScalarProperty Name="LSName1" ColumnName="LSName1" />
+                <ScalarProperty Name="LSFmId1" ColumnName="LSFmId1" />
+                <ScalarProperty Name="XSType" ColumnName="XSType" />
+                <ScalarProperty Name="XSFmId" ColumnName="XSFmId" />
+                <ScalarProperty Name="XAxTitle" ColumnName="XAxTitle" />
+                <ScalarProperty Name="RAxTitle" ColumnName="RAxTitle" />
+                <ScalarProperty Name="LAxTitle" ColumnName="LAxTitle" />
+                <ScalarProperty Name="ChartId" ColumnName="ChartId" />
+                <ScalarProperty Name="FacilityTypeId" ColumnName="FacilityTypeId" />
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="FmsWorkSchedule">
+            <EntityTypeMapping TypeName="iBemsModel.FmsWorkSchedule">
+              <MappingFragment StoreEntitySet="FmsWorkSchedule">
+                <ScalarProperty Name="Content" ColumnName="Content" />
+                <ScalarProperty Name="IsAutoOrder" ColumnName="IsAutoOrder" />
+                <ScalarProperty Name="IsUse" ColumnName="IsUse" />
+                <ScalarProperty Name="UpdateUserId" ColumnName="UpdateUserId" />
+                <ScalarProperty Name="WorkDueDate" ColumnName="WorkDueDate" />
+                <ScalarProperty Name="HolidayWorkTypeId" ColumnName="HolidayWorkTypeId" />
+                <ScalarProperty Name="CycleUnitId" ColumnName="CycleUnitId" />
+                <ScalarProperty Name="CycleSize" ColumnName="CycleSize" />
+                <ScalarProperty Name="InspectionAgencyId" ColumnName="InspectionAgencyId" />
+                <ScalarProperty Name="Name" ColumnName="Name" />
+                <ScalarProperty Name="BusinessFieldId" ColumnName="BusinessFieldId" />
+                <ScalarProperty Name="WorkTypeId" ColumnName="WorkTypeId" />
+                <ScalarProperty Name="WorkScheduleId" ColumnName="WorkScheduleId" />
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="BemsMonitoringPointConfig">
+            <EntityTypeMapping TypeName="iBemsModel.BemsMonitoringPointConfig">
+              <MappingFragment StoreEntitySet="BemsMonitoringPointConfig">
+                <ScalarProperty Name="IsConverted" ColumnName="IsConverted" />
+                <ScalarProperty Name="ControlPointName" ColumnName="ControlPointName" />
+                <ScalarProperty Name="SaveMode" ColumnName="SaveMode" />
+                <ScalarProperty Name="IsSampled" ColumnName="IsSampled" />
+                <ScalarProperty Name="IsAccumulated" ColumnName="IsAccumulated" />
+                <ScalarProperty Name="PropertyId" ColumnName="PropertyId" />
+                <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
+                <ScalarProperty Name="FacilityTypeId" ColumnName="FacilityTypeId" />
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="BemsAlarmSetting">
+            <EntityTypeMapping TypeName="iBemsModel.BemsAlarmSetting">
+              <MappingFragment StoreEntitySet="BemsAlarmSetting">
+                <ScalarProperty Name="Content" ColumnName="Content" />
+                <ScalarProperty Name="AlarmGroupName" ColumnName="AlarmGroupName" />
+                <ScalarProperty Name="UseEmail" ColumnName="UseEmail" />
+                <ScalarProperty Name="UseSMS" ColumnName="UseSMS" />
+                <ScalarProperty Name="UseAlarm" ColumnName="UseAlarm" />
+                <ScalarProperty Name="LowerLimit" ColumnName="LowerLimit" />
+                <ScalarProperty Name="UseLowerLimit" ColumnName="UseLowerLimit" />
+                <ScalarProperty Name="UpperLimit" ColumnName="UpperLimit" />
+                <ScalarProperty Name="UseUpperLimit" ColumnName="UseUpperLimit" />
+                <ScalarProperty Name="PointName" ColumnName="PointName" />
+                <ScalarProperty Name="FacilityName" ColumnName="FacilityName" />
+                <ScalarProperty Name="FormulaId" ColumnName="FormulaId" />
+                <ScalarProperty Name="PropertyId" ColumnName="PropertyId" />
+                <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
+                <ScalarProperty Name="FacilityTypeId" ColumnName="FacilityTypeId" />
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="BemsAlarmLog">
+            <EntityTypeMapping TypeName="iBemsModel.BemsAlarmLog">
+              <MappingFragment StoreEntitySet="BemsAlarmLog">
+                <ScalarProperty Name="Conform" ColumnName="Conform" />
+                <ScalarProperty Name="EmailResult" ColumnName="EmailResult" />
+                <ScalarProperty Name="SMSResult" ColumnName="SMSResult" />
+                <ScalarProperty Name="CurrentValue" ColumnName="CurrentValue" />
+                <ScalarProperty Name="CreatedDateTime" ColumnName="CreatedDateTime" />
+                <ScalarProperty Name="FormulaId" ColumnName="FormulaId" />
+                <ScalarProperty Name="PropertyId" ColumnName="PropertyId" />
+                <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
+                <ScalarProperty Name="FacilityTypeId" ColumnName="FacilityTypeId" />
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="BemsAlarmGroup">
+            <EntityTypeMapping TypeName="iBemsModel.BemsAlarmGroup">
+              <MappingFragment StoreEntitySet="BemsAlarmGroup">
+                <ScalarProperty Name="Name" ColumnName="Name" />
+                <ScalarProperty Name="AlarmGroupId" ColumnName="AlarmGroupId" />
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="BemsAlarmGroupUser">
+            <EntityTypeMapping TypeName="iBemsModel.BemsAlarmGroupUser">
+              <MappingFragment StoreEntitySet="BemsAlarmGroupUser">
+                <ScalarProperty Name="UserId" ColumnName="UserId" />
+                <ScalarProperty Name="AlarmGroupId" ColumnName="AlarmGroupId" />
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="BemsEnergyCost">
+            <EntityTypeMapping TypeName="iBemsModel.BemsEnergyCost">
+              <MappingFragment StoreEntitySet="BemsEnergyCost">
+                <ScalarProperty Name="IsUse" ColumnName="IsUse" />
+                <ScalarProperty Name="GasPriceTypeId" ColumnName="GasPriceTypeId" />
+                <ScalarProperty Name="PowerPriceTypeId" ColumnName="PowerPriceTypeId" />
+                <ScalarProperty Name="GasHeatQuantity" ColumnName="GasHeatQuantity" />
+                <ScalarProperty Name="GasConsumption" ColumnName="GasConsumption" />
+                <ScalarProperty Name="PowerConsumption2" ColumnName="PowerConsumption2" />
+                <ScalarProperty Name="PowerConsumption1" ColumnName="PowerConsumption1" />
+                <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
+                <ScalarProperty Name="FacilityTypeId" ColumnName="FacilityTypeId" />
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="BemsEnergyConfigPercentMonth">
+            <EntityTypeMapping TypeName="iBemsModel.BemsEnergyConfigPercentMonth">
+              <MappingFragment StoreEntitySet="BemsEnergyConfigPercentMonth">
+                <ScalarProperty Name="Water" ColumnName="Water" />
+                <ScalarProperty Name="Gas" ColumnName="Gas" />
+                <ScalarProperty Name="Electricity" ColumnName="Electricity" />
+                <ScalarProperty Name="Month" ColumnName="Month" />
+                <ScalarProperty Name="Year" ColumnName="Year" />
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="BemsEnergyConfigPercentWeek">
+            <EntityTypeMapping TypeName="iBemsModel.BemsEnergyConfigPercentWeek">
+              <MappingFragment StoreEntitySet="BemsEnergyConfigPercentWeek">
+                <ScalarProperty Name="Water" ColumnName="Water" />
+                <ScalarProperty Name="Gas" ColumnName="Gas" />
+                <ScalarProperty Name="Electricity" ColumnName="Electricity" />
+                <ScalarProperty Name="Week" ColumnName="Week" />
+                <ScalarProperty Name="Year" ColumnName="Year" />
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="BemsEnergyDaily">
+            <EntityTypeMapping TypeName="iBemsModel.BemsEnergyDaily">
+              <MappingFragment StoreEntitySet="BemsEnergyDaily">
+                <ScalarProperty Name="CDD" ColumnName="CDD" />
+                <ScalarProperty Name="HDD" ColumnName="HDD" />
+                <ScalarProperty Name="MeanT" ColumnName="MeanT" />
+                <ScalarProperty Name="Prediction_Regression" ColumnName="Prediction_Regression" />
+                <ScalarProperty Name="Goal" ColumnName="Goal" />
+                <ScalarProperty Name="Measurement" ColumnName="Measurement" />
+                <ScalarProperty Name="Prediction" ColumnName="Prediction" />
+                <ScalarProperty Name="CreatedDate" ColumnName="CreatedDate" />
+                <ScalarProperty Name="FuelTypeId" ColumnName="FuelTypeId" />
+                <ScalarProperty Name="ServiceTypeId" ColumnName="ServiceTypeId" />
+                <ScalarProperty Name="BuildingId" ColumnName="BuildingId" />
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="BemsEnergyDailyRegression">
+            <EntityTypeMapping TypeName="iBemsModel.BemsEnergyDailyRegression">
+              <MappingFragment StoreEntitySet="BemsEnergyDailyRegression">
+                <ScalarProperty Name="IsRegression" ColumnName="IsRegression" />
+                <ScalarProperty Name="Holiday_Water_Temp" ColumnName="Holiday_Water_Temp" />
+                <ScalarProperty Name="Holiday_Water" ColumnName="Holiday_Water" />
+                <ScalarProperty Name="Holiday_Gas_Temp" ColumnName="Holiday_Gas_Temp" />
+                <ScalarProperty Name="Holiday_Gas" ColumnName="Holiday_Gas" />
+                <ScalarProperty Name="Holiday_Power_Temp" ColumnName="Holiday_Power_Temp" />
+                <ScalarProperty Name="Holiday_Power" ColumnName="Holiday_Power" />
+                <ScalarProperty Name="Weekday_Water_Temp" ColumnName="Weekday_Water_Temp" />
+                <ScalarProperty Name="Weekday_Water" ColumnName="Weekday_Water" />
+                <ScalarProperty Name="Weekday_Gas_Temp" ColumnName="Weekday_Gas_Temp" />
+                <ScalarProperty Name="Weekday_Gas" ColumnName="Weekday_Gas" />
+                <ScalarProperty Name="Weekday_Power_Temp" ColumnName="Weekday_Power_Temp" />
+                <ScalarProperty Name="Weekday_Power" ColumnName="Weekday_Power" />
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="WeatherDongNaeForecast">
+            <EntityTypeMapping TypeName="iBemsModel.WeatherDongNaeForecast">
+              <MappingFragment StoreEntitySet="WeatherDongNaeForecast">
+                <ScalarProperty Name="Version" ColumnName="Version" />
+                <ScalarProperty Name="DBTime" ColumnName="DBTime" />
+                <ScalarProperty Name="Type" ColumnName="Type" />
+                <ScalarProperty Name="WSD" ColumnName="WSD" />
+                <ScalarProperty Name="VEC" ColumnName="VEC" />
+                <ScalarProperty Name="VVV" ColumnName="VVV" />
+                <ScalarProperty Name="UUU" ColumnName="UUU" />
+                <ScalarProperty Name="TMX" ColumnName="TMX" />
+                <ScalarProperty Name="TMN" ColumnName="TMN" />
+                <ScalarProperty Name="T3H" ColumnName="T3H" />
+                <ScalarProperty Name="SKY" ColumnName="SKY" />
+                <ScalarProperty Name="S06" ColumnName="S06" />
+                <ScalarProperty Name="REH" ColumnName="REH" />
+                <ScalarProperty Name="R06" ColumnName="R06" />
+                <ScalarProperty Name="PTY" ColumnName="PTY" />
+                <ScalarProperty Name="POP" ColumnName="POP" />
+                <ScalarProperty Name="ForecastTime" ColumnName="ForecastTime" />
+                <ScalarProperty Name="ny" ColumnName="ny" />
+                <ScalarProperty Name="nx" ColumnName="nx" />
+                <ScalarProperty Name="BaseTime" ColumnName="BaseTime" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="FmsEquipmentRentInfo">
+            <EntityTypeMapping TypeName="iBemsModel.FmsEquipmentRentInfo">
+              <MappingFragment StoreEntitySet="FmsEquipmentRentInfo">
+                <ScalarProperty Name="RentUser" ColumnName="RentUser" />
+                <ScalarProperty Name="Title" ColumnName="Title" />
+                <ScalarProperty Name="Comment" ColumnName="Comment" />
+                <ScalarProperty Name="EquipmentStateTypeId" ColumnName="EquipmentStateTypeId" />
+                <ScalarProperty Name="ReturnFixDate" ColumnName="ReturnFixDate" />
+                <ScalarProperty Name="ReturnDueDate" ColumnName="ReturnDueDate" />
+                <ScalarProperty Name="RentDate" ColumnName="RentDate" />
+                <ScalarProperty Name="RegisterDate" ColumnName="RegisterDate" />
+                <ScalarProperty Name="RentUserId" ColumnName="RentUserId" />
+                <ScalarProperty Name="RegisterUserId" ColumnName="RegisterUserId" />
+                <ScalarProperty Name="EquipmentRentId" ColumnName="EquipmentRentId" />
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="BemsControlAHUTempConfig">
+            <EntityTypeMapping TypeName="iBemsModel.BemsControlAHUTempConfig">
+              <MappingFragment StoreEntitySet="BemsControlAHUTempConfig">
+                <ScalarProperty Name="MinTemperature" ColumnName="MinTemperature" />
+                <ScalarProperty Name="MaxTemperature" ColumnName="MaxTemperature" />
+                <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
+                <ScalarProperty Name="FacilityTypeId" ColumnName="FacilityTypeId" />
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="BemsFuelType">
+            <EntityTypeMapping TypeName="iBemsModel.BemsFuelType">
+              <MappingFragment StoreEntitySet="BemsFuelType">
+                <ScalarProperty Name="Name" ColumnName="Name" />
+                <ScalarProperty Name="FuelTypeId" ColumnName="FuelTypeId" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="CmFacility">
+            <EntityTypeMapping TypeName="iBemsModel.CmFacility">
+              <MappingFragment StoreEntitySet="CmFacility">
+                <ScalarProperty Name="ContractType" ColumnName="ContractType" />
+                <ScalarProperty Name="FuelTypeId" ColumnName="FuelTypeId" />
+                <ScalarProperty Name="IsVirtualFacility" ColumnName="IsVirtualFacility" />
+                <ScalarProperty Name="FileId" ColumnName="FileId" />
+                <ScalarProperty Name="IsUse" ColumnName="IsUse" />
+                <ScalarProperty Name="Reserved2" ColumnName="Reserved2" />
+                <ScalarProperty Name="Reserved1" ColumnName="Reserved1" />
+                <ScalarProperty Name="Note" ColumnName="Note" />
+                <ScalarProperty Name="SubContactorUserId" ColumnName="SubContactorUserId" />
+                <ScalarProperty Name="MainContactorUserId" ColumnName="MainContactorUserId" />
+                <ScalarProperty Name="RatedCOP" ColumnName="RatedCOP" />
+                <ScalarProperty Name="RatedPowerConsumption" ColumnName="RatedPowerConsumption" />
+                <ScalarProperty Name="FacilityUsage" ColumnName="FacilityUsage" />
+                <ScalarProperty Name="FacilitySeviceLifeYear" ColumnName="FacilitySeviceLifeYear" />
+                <ScalarProperty Name="FacilityCount" ColumnName="FacilityCount" />
+                <ScalarProperty Name="FacilityCost" ColumnName="FacilityCost" />
+                <ScalarProperty Name="FacilityCapacity" ColumnName="FacilityCapacity" />
+                <ScalarProperty Name="OperationStartDate" ColumnName="OperationStartDate" />
+                <ScalarProperty Name="InstallDate" ColumnName="InstallDate" />
+                <ScalarProperty Name="ZoneId" ColumnName="ZoneId" />
+                <ScalarProperty Name="FloorId" ColumnName="FloorId" />
+                <ScalarProperty Name="BuildingId" ColumnName="BuildingId" />
+                <ScalarProperty Name="SupplierPhoneNo" ColumnName="SupplierPhoneNo" />
+                <ScalarProperty Name="Supplier" ColumnName="Supplier" />
+                <ScalarProperty Name="ManufactureModel" ColumnName="ManufactureModel" />
+                <ScalarProperty Name="ManufactureSerial" ColumnName="ManufactureSerial" />
+                <ScalarProperty Name="ManufactureDate" ColumnName="ManufactureDate" />
+                <ScalarProperty Name="Manufacturer" ColumnName="Manufacturer" />
+                <ScalarProperty Name="Rfid" ColumnName="Rfid" />
+                <ScalarProperty Name="Nickname" ColumnName="Nickname" />
+                <ScalarProperty Name="Name" ColumnName="Name" />
+                <ScalarProperty Name="ParentFacilityCode" ColumnName="ParentFacilityCode" />
+                <ScalarProperty Name="DeviceType" ColumnName="DeviceType" />
+                <ScalarProperty Name="ThirdClassId" ColumnName="ThirdClassId" />
+                <ScalarProperty Name="SecondClassId" ColumnName="SecondClassId" />
+                <ScalarProperty Name="FirstClassId" ColumnName="FirstClassId" />
+                <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
+                <ScalarProperty Name="FacilityTypeId" ColumnName="FacilityTypeId" />
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="BemsMonitoringPointHistory15minRawData">
+            <EntityTypeMapping TypeName="iBemsModel.BemsMonitoringPointHistory15minRawData">
+              <MappingFragment StoreEntitySet="BemsMonitoringPointHistory15minRawData">
+                <ScalarProperty Name="CurrentValue" ColumnName="CurrentValue" />
+                <ScalarProperty Name="CreatedDateTime" ColumnName="CreatedDateTime" />
+                <ScalarProperty Name="PropertyId" ColumnName="PropertyId" />
+                <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
+                <ScalarProperty Name="FacilityTypeId" ColumnName="FacilityTypeId" />
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="FmsDailyReport">
+            <EntityTypeMapping TypeName="iBemsModel.FmsDailyReport">
+              <MappingFragment StoreEntitySet="FmsDailyReport">
+                <ScalarProperty Name="ApproveDate5" ColumnName="ApproveDate5" />
+                <ScalarProperty Name="ApproverUserId5" ColumnName="ApproverUserId5" />
+                <ScalarProperty Name="ApproveDate4" ColumnName="ApproveDate4" />
+                <ScalarProperty Name="ApproverUserId4" ColumnName="ApproverUserId4" />
+                <ScalarProperty Name="ApproveDate3" ColumnName="ApproveDate3" />
+                <ScalarProperty Name="ApproverUserId3" ColumnName="ApproverUserId3" />
+                <ScalarProperty Name="ApproveDate2" ColumnName="ApproveDate2" />
+                <ScalarProperty Name="ApproverUserId2" ColumnName="ApproverUserId2" />
+                <ScalarProperty Name="RegisterDate" ColumnName="RegisterDate" />
+                <ScalarProperty Name="ApproveDate" ColumnName="ApproveDate" />
+                <ScalarProperty Name="ApproverUserId" ColumnName="ApproverUserId" />
+                <ScalarProperty Name="Datas" ColumnName="Datas" />
+                <ScalarProperty Name="BusinessFieldId" ColumnName="BusinessFieldId" />
+                <ScalarProperty Name="AddDate" ColumnName="AddDate" />
+                <ScalarProperty Name="RegisterUserId" ColumnName="RegisterUserId" />
+                <ScalarProperty Name="Contents" ColumnName="Contents" />
+                <ScalarProperty Name="Name" ColumnName="Name" />
+                <ScalarProperty Name="DailyReportId" ColumnName="DailyReportId" />
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="BemsPeakHistoryDaily">
+            <EntityTypeMapping TypeName="iBemsModel.BemsPeakHistoryDaily">
+              <MappingFragment StoreEntitySet="BemsPeakHistoryDaily">
+                <ScalarProperty Name="MinDateTime" ColumnName="MinDateTime" />
+                <ScalarProperty Name="MinPeakValue" ColumnName="MinPeakValue" />
+                <ScalarProperty Name="MaxDateTime" ColumnName="MaxDateTime" />
+                <ScalarProperty Name="MaxPeakValue" ColumnName="MaxPeakValue" />
+                <ScalarProperty Name="CreatedDateTime" ColumnName="CreatedDateTime" />
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="FmsEquipment">
+            <EntityTypeMapping TypeName="iBemsModel.FmsEquipment">
+              <MappingFragment StoreEntitySet="FmsEquipment">
+                <ScalarProperty Name="ImageFileId" ColumnName="ImageFileId" />
+                <ScalarProperty Name="SupplierPhoneNo" ColumnName="SupplierPhoneNo" />
+                <ScalarProperty Name="SupplierName" ColumnName="SupplierName" />
+                <ScalarProperty Name="RegisterUserId" ColumnName="RegisterUserId" />
+                <ScalarProperty Name="UpdateDate" ColumnName="UpdateDate" />
+                <ScalarProperty Name="AddDate" ColumnName="AddDate" />
+                <ScalarProperty Name="Standard" ColumnName="Standard" />
+                <ScalarProperty Name="Unit" ColumnName="Unit" />
+                <ScalarProperty Name="WarehouseId" ColumnName="WarehouseId" />
+                <ScalarProperty Name="EquipmentTypeId" ColumnName="EquipmentTypeId" />
+                <ScalarProperty Name="Name" ColumnName="Name" />
+                <ScalarProperty Name="EquipmentId" ColumnName="EquipmentId" />
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="CmAlarmAdmin">
+            <EntityTypeMapping TypeName="iBemsModel.CmAlarmAdmin">
+              <MappingFragment StoreEntitySet="CmAlarmAdmin">
+                <ScalarProperty Name="EmailPassword" ColumnName="EmailPassword" />
+                <ScalarProperty Name="EmailAddress" ColumnName="EmailAddress" />
+                <ScalarProperty Name="PhoneNo" ColumnName="PhoneNo" />
+                <ScalarProperty Name="DeptCode" ColumnName="DeptCode" />
+                <ScalarProperty Name="UserCode" ColumnName="UserCode" />
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="BemsFloorStatus">
+            <EntityTypeMapping TypeName="iBemsModel.BemsFloorStatus">
+              <MappingFragment StoreEntitySet="BemsFloorStatus">
+                <ScalarProperty Name="FacilityName" ColumnName="FacilityName" />
+                <ScalarProperty Name="PropertyId" ColumnName="PropertyId" />
+                <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
+                <ScalarProperty Name="FacilityTypeId" ColumnName="FacilityTypeId" />
+                <ScalarProperty Name="ServiceTypeId" ColumnName="ServiceTypeId" />
+                <ScalarProperty Name="ZoneId" ColumnName="ZoneId" />
+                <ScalarProperty Name="Yvalue" ColumnName="Yvalue" />
+                <ScalarProperty Name="Xvalue" ColumnName="Xvalue" />
+                <ScalarProperty Name="ImageFileId" ColumnName="ImageFileId" />
+                <ScalarProperty Name="FloorName" ColumnName="FloorName" />
+                <ScalarProperty Name="FloorId" ColumnName="FloorId" />
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="BemsReportHistory">
+            <EntityTypeMapping TypeName="iBemsModel.BemsReportHistory">
+              <MappingFragment StoreEntitySet="BemsReportHistory">
+                <ScalarProperty Name="FileName" ColumnName="FileName" />
+                <ScalarProperty Name="parts" ColumnName="parts" />
+                <ScalarProperty Name="Confirm2" ColumnName="Confirm2" />
+                <ScalarProperty Name="Confirm1" ColumnName="Confirm1" />
+                <ScalarProperty Name="Writer" ColumnName="Writer" />
+                <ScalarProperty Name="Content" ColumnName="Content" />
+                <ScalarProperty Name="FormatName" ColumnName="FormatName" />
+                <ScalarProperty Name="ReportFormatId" ColumnName="ReportFormatId" />
+                <ScalarProperty Name="ReportName" ColumnName="ReportName" />
+                <ScalarProperty Name="DateTime" ColumnName="DateTime" />
+                <ScalarProperty Name="Seq" ColumnName="Seq" />
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="CmPartner">
+            <EntityTypeMapping TypeName="iBemsModel.CmPartner">
+              <MappingFragment StoreEntitySet="CmPartner">
+                <ScalarProperty Name="IsUse" ColumnName="IsUse" />
+                <ScalarProperty Name="Note" ColumnName="Note" />
+                <ScalarProperty Name="HomepageUri" ColumnName="HomepageUri" />
+                <ScalarProperty Name="Adderss2" ColumnName="Adderss2" />
+                <ScalarProperty Name="Address1" ColumnName="Address1" />
+                <ScalarProperty Name="AddressZip2" ColumnName="AddressZip2" />
+                <ScalarProperty Name="AddressZip1" ColumnName="AddressZip1" />
+                <ScalarProperty Name="SalesPhoneNo" ColumnName="SalesPhoneNo" />
+                <ScalarProperty Name="SalesName" ColumnName="SalesName" />
+                <ScalarProperty Name="FaxNo" ColumnName="FaxNo" />
+                <ScalarProperty Name="PhoneNo" ColumnName="PhoneNo" />
+                <ScalarProperty Name="RepresentativeName" ColumnName="RepresentativeName" />
+                <ScalarProperty Name="RegistrationNo" ColumnName="RegistrationNo" />
+                <ScalarProperty Name="Name" ColumnName="Name" />
+                <ScalarProperty Name="PartnerTypeId" ColumnName="PartnerTypeId" />
+                <ScalarProperty Name="PartnerId" ColumnName="PartnerId" />
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="CmPartnerType">
+            <EntityTypeMapping TypeName="iBemsModel.CmPartnerType">
+              <MappingFragment StoreEntitySet="CmPartnerType">
+                <ScalarProperty Name="IsUse" ColumnName="IsUse" />
+                <ScalarProperty Name="Name" ColumnName="Name" />
+                <ScalarProperty Name="PartnerTypeId" ColumnName="PartnerTypeId" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="FmsContract">
+            <EntityTypeMapping TypeName="iBemsModel.FmsContract">
+              <MappingFragment StoreEntitySet="FmsContract">
+                <ScalarProperty Name="PaymentTypeId" ColumnName="PaymentTypeId" />
+                <ScalarProperty Name="ContractMethodId" ColumnName="ContractMethodId" />
+                <ScalarProperty Name="ContractTypeId" ColumnName="ContractTypeId" />
+                <ScalarProperty Name="ContractClassId" ColumnName="ContractClassId" />
+                <ScalarProperty Name="Comment" ColumnName="Comment" />
+                <ScalarProperty Name="CommitmentMan" ColumnName="CommitmentMan" />
+                <ScalarProperty Name="OwnerShipPhoneNo" ColumnName="OwnerShipPhoneNo" />
+                <ScalarProperty Name="OwnerShipName" ColumnName="OwnerShipName" />
+                <ScalarProperty Name="EndDate" ColumnName="EndDate" />
+                <ScalarProperty Name="StartDate" ColumnName="StartDate" />
+                <ScalarProperty Name="ContractDate" ColumnName="ContractDate" />
+                <ScalarProperty Name="PartnerId" ColumnName="PartnerId" />
+                <ScalarProperty Name="PartnerTypeId" ColumnName="PartnerTypeId" />
+                <ScalarProperty Name="Name" ColumnName="Name" />
+                <ScalarProperty Name="ContractId" ColumnName="ContractId" />
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="BemsMonitoringPointForecastingDayAhead">
+            <EntityTypeMapping TypeName="iBemsModel.BemsMonitoringPointForecastingDayAhead">
+              <MappingFragment StoreEntitySet="BemsMonitoringPointForecastingDayAhead">
+                <ScalarProperty Name="ForecastedValue" ColumnName="ForecastedValue" />
+                <ScalarProperty Name="TargetDateTime" ColumnName="TargetDateTime" />
+                <ScalarProperty Name="CreatedDateTime" ColumnName="CreatedDateTime" />
+                <ScalarProperty Name="PropertyId" ColumnName="PropertyId" />
+                <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
+                <ScalarProperty Name="FacilityTypeId" ColumnName="FacilityTypeId" />
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="BemsMonitoringPointForecastingHourAhead">
+            <EntityTypeMapping TypeName="iBemsModel.BemsMonitoringPointForecastingHourAhead">
+              <MappingFragment StoreEntitySet="BemsMonitoringPointForecastingHourAhead">
+                <ScalarProperty Name="ForecastedValue" ColumnName="ForecastedValue" />
+                <ScalarProperty Name="TargetDateTime" ColumnName="TargetDateTime" />
+                <ScalarProperty Name="CreatedDateTime" ColumnName="CreatedDateTime" />
+                <ScalarProperty Name="PropertyId" ColumnName="PropertyId" />
+                <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
+                <ScalarProperty Name="FacilityTypeId" ColumnName="FacilityTypeId" />
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="BemsFloorPlan">
+            <EntityTypeMapping TypeName="iBemsModel.BemsFloorPlan">
+              <MappingFragment StoreEntitySet="BemsFloorPlan">
+                <ScalarProperty Name="ImageFileId" ColumnName="ImageFileId" />
+                <ScalarProperty Name="Name" ColumnName="Name" />
+                <ScalarProperty Name="FloorId" ColumnName="FloorId" />
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="BemsMonitoringPointWeatherForecasted">
+            <EntityTypeMapping TypeName="iBemsModel.BemsMonitoringPointWeatherForecasted">
+              <MappingFragment StoreEntitySet="BemsMonitoringPointWeatherForecasted">
+                <ScalarProperty Name="ny" ColumnName="ny" />
+                <ScalarProperty Name="nx" ColumnName="nx" />
+                <ScalarProperty Name="ForecastedValue" ColumnName="ForecastedValue" />
+                <ScalarProperty Name="ForecastedDateTime" ColumnName="ForecastedDateTime" />
+                <ScalarProperty Name="BaseDateTime" ColumnName="BaseDateTime" />
+                <ScalarProperty Name="Category" ColumnName="Category" />
+                <ScalarProperty Name="CreatedDateTime" ColumnName="CreatedDateTime" />
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="BemsIceThermalStorageSimulation">
+            <EntityTypeMapping TypeName="iBemsModel.BemsIceThermalStorageSimulation">
+              <MappingFragment StoreEntitySet="BemsIceThermalStorageSimulation">
+                <ScalarProperty Name="SimulationCase" ColumnName="SimulationCase" />
+                <ScalarProperty Name="SimulationValue" ColumnName="SimulationValue" />
+                <ScalarProperty Name="TargetDateTime" ColumnName="TargetDateTime" />
+                <ScalarProperty Name="CreatedDateTime" ColumnName="CreatedDateTime" />
+                <ScalarProperty Name="PropertyId" ColumnName="PropertyId" />
+                <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
+                <ScalarProperty Name="FacilityTypeId" ColumnName="FacilityTypeId" />
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="BemsConfigData">
+            <EntityTypeMapping TypeName="iBemsModel.BemsConfigData">
+              <MappingFragment StoreEntitySet="BemsConfigData">
+                <ScalarProperty Name="TargetDBName" ColumnName="TargetDBName" />
+                <ScalarProperty Name="TargetDBUserPW" ColumnName="TargetDBUserPW" />
+                <ScalarProperty Name="TargetDBUserID" ColumnName="TargetDBUserID" />
+                <ScalarProperty Name="TargetDBIP" ColumnName="TargetDBIP" />
+                <ScalarProperty Name="LoadDBName" ColumnName="LoadDBName" />
+                <ScalarProperty Name="LoadDBUserPW" ColumnName="LoadDBUserPW" />
+                <ScalarProperty Name="LoadDBUserID" ColumnName="LoadDBUserID" />
+                <ScalarProperty Name="LoadDBIP" ColumnName="LoadDBIP" />
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+        </EntityContainerMapping>
+      </Mapping>
+    </edmx:Mappings>
+  </edmx:Runtime>
+  <!-- EF Designer content (DO NOT EDIT MANUALLY BELOW HERE) -->
+  <Designer xmlns="http://schemas.microsoft.com/ado/2009/11/edmx">
+    <Connection>
+      <DesignerInfoPropertySet>
+        <DesignerProperty Name="MetadataArtifactProcessing" Value="EmbedInOutputAssembly" />
+      </DesignerInfoPropertySet>
+    </Connection>
+    <Options>
+      <DesignerInfoPropertySet>
+        <DesignerProperty Name="ValidateOnBuild" Value="true" />
+        <DesignerProperty Name="EnablePluralization" Value="false" />
+        <DesignerProperty Name="IncludeForeignKeysInModel" Value="true" />
+        <DesignerProperty Name="UseLegacyProvider" Value="true" />
+        <DesignerProperty Name="CodeGenerationStrategy" Value="없음" />
+      </DesignerInfoPropertySet>
+    </Options>
+    <!-- Diagram content (shape and connector positions) -->
+    <Diagrams></Diagrams>
+  </Designer>
+</edmx:Edmx>

+ 105 - 0
.svn/pristine/f4/f4a52a85f939fe84974e2a231f8b7812c8034130.svn-base

@@ -0,0 +1,105 @@
+BemsWebApplication.ConfigData = function (params, viewInfo) {
+    "use strict";
+
+    var BemsConfigDataDataSource = BemsWebApplication.db.createDataSource('BemsConfigData'),
+        isEmptyData = true;
+    var viewModel = BWA.DataGrid.createViewWithDataGrid(params, viewInfo, 'BemsConfigData', {
+
+        dataSourceOptions: {
+            select: [
+                'SiteId',
+                'LoadDBIP',
+                'LoadDBName ',
+                'TargetDBIP',
+                'TargetDBName'
+            ],
+            filter: [
+                ['SiteId', '=', BWA.UserInfo.SiteId()]
+            ],
+
+            extendOptions: {
+                forceOriginalField: true
+            },
+        },
+        columns: [
+            { dataField: 'SiteId', caption: '번호', width: '8%', alignment: 'center', sortOder: 'desc' },
+            { dataField: 'LoadDBIP', caption: '데이터 로드 DB IP', width: '23%', alignment: 'center' },
+            { dataField: 'LoadDBName', caption: '데이터 로드 DB명', width: '23%', alignment: 'center' },
+            { dataField: 'TargetDBIP', caption: '결과 저장 DB IP', width: '23%', alignment: 'center' },
+            { dataField: 'TargetDBName', caption: '결과 저장 DB명', width: '23%', alignment: 'center' }
+        ],
+        popupWidth: 500,
+
+        NoSearchView: true,     // 2019.07.25 kgpark 검색버튼 삭제
+
+        handleViewShowing: function () {
+            BemsConfigDataDataSource.filter([
+                ["SiteId", "=", BWA.UserInfo.SiteId()]
+            ]);
+            BemsConfigDataDataSource.load().done(function (BemsConfigData) {
+                if (BemsConfigData.length == 0) {
+                    isEmptyData = true;
+                    $("#popupInsertButton").dxCommand("instance").option('disabled', false);
+                }
+                else {
+                    isEmptyData = false;
+                    $("#popupInsertButton").dxCommand("instance").option('disabled', true);
+                }
+            });
+        },
+        handleBeforeDelete: function () {
+            isEmptyData = true;
+            $("#popupInsertButton").dxCommand("instance").option('disabled', false);
+        },
+
+        // 열을 클릭했을 때 실행되는 함수
+        handleDataGridRowClick: function () {
+            viewModel.popupVisible(true);
+        },
+
+        // 팝업 항목에 데이터가 정상적으로 입력되지 않을 경우 예외처리
+        beforeInsertingDataViewModel: function (dataModel, dbModelId) {
+            var dfd = $.Deferred();
+
+            if (dataModel.LoadDBIP() == null || dataModel.TargetDBIP() == null) {
+                return dfd.resolve(false, '필수 항목이 입력되지 않았습니다!');
+            }
+            else {
+                isEmptyData = ko.observable(false);
+                $("#popupInsertButton").dxCommand("instance").option('disabled', true);
+                return dfd.resolve(true);
+            }
+        },
+
+        beforeUpdateDataViewModel: function (dataModel) {
+
+            // if (_.isEmpty(dataModel.LoadDBIP()) || _.isEmpty(dataModel.TargetDBIP()) || _.isEmpty(dataModel.InitialDate())) {
+            if (dataModel.LoadDBIP() == null || dataModel.TargetDBIP() == null) {
+                utils.toast.show('필수 항목이 입력되지 않았습니다.', 'error');
+                return 0;
+            }
+            else {
+                return 2; // 2016 01 19 BaseClass 에서 update한다.
+            }
+        },
+        // 팝업 항목에 데이터가 정상적으로 들어가지 않을 경우 예외처리
+
+    });
+    function InsertButtonClickAction() {
+        if (!isEmptyData) {
+            utils.toast.show('관리자 계정은 하나만 생성할 수 있습니다.', 'error');
+        }
+        else {
+            viewModel.popupInsertView();
+        }
+    }
+    viewModel.popupInsertButtonOptions = {
+        icon: 'add',
+        id: 'create',
+        title: '등록',
+        action: InsertButtonClickAction,
+        disabled: !isEmptyData
+    };
+
+    return viewModel;
+};

BIN
.svn/pristine/fe/fed46509dee0a3db1d00a9d8025a0b7b98d578f3.svn-base


BIN
.svn/wc.db


+ 0 - 25
BemsWebApplication.Desktop/views/02_configuration/28_config_data/config_data-popup.dxview

@@ -53,31 +53,6 @@
                         <div class="dx-field-value" style="width: 310px" data-bind="dxTextBox: { value: dataModel.TargetDBName, placeholder: '데이터베이스 이름 입력' }, css: {'dx-state-invisible': isEditModeInPopup() == false }"></div>
                     </div>
                 </div>
-
-                <p></p>
-                <p class="body_sub_title_2depth" style="font-weight: bold;">데이터 기간 설정</p>
-                <div class="dx-field cw-multi-field">
-                    <div class="dx-field">
-                        <div class="dx-field-label cw-multi-field-label">시작 날짜</div>
-                        <div class="dx-field-value" data-bind="text: $G.date(dataModel.InitialDate()), css: {'dx-state-invisible': isEditModeInPopup }"></div>
-                        <div class="dx-field-value dxDateBox_IconLocation" data-bind="dxDateBox: { value: dataModel.InitialDate, format: 'date', formatString: 'yyyy-MM-dd'}, css: {'dx-state-invisible': isEditModeInPopup() == false }"></div>
-                    </div>
-                </div>
-
-                <p></p>
-                <p class="body_sub_title_2depth" style="font-weight: bold;">데이터 모델 설정</p>
-                <div class="dx-field cw-multi-field">
-                    <div class="dx-field">
-                        <div class="dx-field-label cw-multi-field-label">선형 예측 모델</div>
-                        <div class="dx-field-value" style="width: 310px" data-bind=" text: dataModel.LinearFilterLength, css: {'dx-state-invisible': isEditModeInPopup }"></div>
-                        <div class="dx-field-value" style="width: 310px" data-bind="dxTextBox: { value: dataModel.LinearFilterLength, placeholder: '필터 길이(W/W, N/W, W/N, N/N) (1 ~ 24 사이)' },  css: {'dx-state-invisible': isEditModeInPopup() == false }"></div>
-                    </div>
-                    <div class="dx-field">
-                        <div class=" dx-field-label cw-multi-field-label">비선형 예측 모델</div>
-                        <div class="dx-field-value" data-bind="text: dataModel.NonlinearTestSize, css: {'dx-state-invisible': isEditModeInPopup }"></div>
-                        <div class="dx-field-value" style="width: 310px" data-bind="dxTextBox: { value: dataModel.NonlinearTestSize, placeholder: 'Test 셋 크기 (0 ~ 1 사이)' },  css: {'dx-state-invisible': isEditModeInPopup() == false }"></div>
-                    </div>
-                </div>
             </div>
         </div>
     </div>

+ 9 - 8
BemsWebApplication.Desktop/views/02_configuration/28_config_data/config_data.js

@@ -9,9 +9,9 @@
             select: [
                 'SiteId',
                 'LoadDBIP',
+                'LoadDBName ',
                 'TargetDBIP',
-                'InitialDate',
-                //'EmailPassword',
+                'TargetDBName'
             ],
             filter: [
                 ['SiteId', '=', BWA.UserInfo.SiteId()]
@@ -22,10 +22,11 @@
             },
         },
         columns: [
-            { dataField: 'SiteId', caption: '번호', width: '5%', alignment: 'center', sortOder: 'desc' },
-            { dataField: 'LoadDBIP', caption: '데이터 DB IP', width: '30%', alignment: 'center' },
-            { dataField: 'TargetDBIP', caption: '결과 저장 DB IP', width: '30%', alignment: 'center' },
-            { dataField: 'InitialDate', caption: '데이터 시작일', width: '30%', alignment: 'center' }
+            { dataField: 'SiteId', caption: '번호', width: '8%', alignment: 'center', sortOder: 'desc' },
+            { dataField: 'LoadDBIP', caption: '데이터 로드 DB IP', width: '23%', alignment: 'center' },
+            { dataField: 'LoadDBName', caption: '데이터 로드 DB명', width: '23%', alignment: 'center' },
+            { dataField: 'TargetDBIP', caption: '결과 저장 DB IP', width: '23%', alignment: 'center' },
+            { dataField: 'TargetDBName', caption: '결과 저장 DB명', width: '23%', alignment: 'center' }
         ],
         popupWidth: 500,
 
@@ -60,7 +61,7 @@
         beforeInsertingDataViewModel: function (dataModel, dbModelId) {
             var dfd = $.Deferred();
 
-            if (dataModel.LoadDBIP() == null || dataModel.TargetDBIP() == null || dataModel.InitialDate() == null) {
+            if (dataModel.LoadDBIP() == null || dataModel.TargetDBIP() == null) {
                 return dfd.resolve(false, '필수 항목이 입력되지 않았습니다!');
             }
             else {
@@ -73,7 +74,7 @@
         beforeUpdateDataViewModel: function (dataModel) {
 
             // if (_.isEmpty(dataModel.LoadDBIP()) || _.isEmpty(dataModel.TargetDBIP()) || _.isEmpty(dataModel.InitialDate())) {
-            if (dataModel.LoadDBIP() == null || dataModel.TargetDBIP() == null || dataModel.InitialDate() == null) {
+            if (dataModel.LoadDBIP() == null || dataModel.TargetDBIP() == null) {
                 utils.toast.show('필수 항목이 입력되지 않았습니다.', 'error');
                 return 0;
             }

+ 1 - 1
BemsWebApplication.Desktop/views/09_energy_control/simulator_ice_storage/simulator_ice_storage.js

@@ -1008,7 +1008,7 @@
                }
            }
            else {
-               $('#RefPowerConsume').text("냉동기 계산 전력량(시뮬레이션 모드) : ?,");
+               $('#RefPowerConsume').text("냉동기 계산 전력량(시뮬레이션 모드) : ?");
                utils.toast.show("데이터가 없습니다. (냉동기 계산 전력량)", 'error');
            }
        })

+ 1 - 10
BemsWebApplication.Shared/data/bemsconfigdata-view-model.js

@@ -10,9 +10,6 @@
         this.TargetDBUserID = ko.observable();
         this.TargetDBUserPW = ko.observable();
         this.TargetDBName = ko.observable();
-        this.InitialDate = ko.observable();
-        this.LinearFilterLength = ko.observable();
-        this.NonlinearTestSize = ko.observable();
         if (data)
             this.fromJS(data);
     };
@@ -28,10 +25,7 @@
                 TargetDBIP: this.TargetDBIP(),
                 TargetDBUserID: this.TargetDBUserID(),
                 TargetDBUserPW: this.TargetDBUserPW(),
-                TargetDBName: this.TargetDBName(),
-                InitialDate: this.InitialDate(),
-                LinearFilterLength: this.LinearFilterLength(),
-                NonlinearTestSize: this.NonlinearTestSize(),
+                TargetDBName: this.TargetDBName()
             };
         },
 
@@ -46,9 +40,6 @@
                 this.TargetDBUserID(data.TargetDBUserID);
                 this.TargetDBUserPW(data.TargetDBUserPW);
                 this.TargetDBName(data.TargetDBName);
-                this.InitialDate(data.InitialDate);
-                this.LinearFilterLength(data.LinearFilterLength);
-                this.NonlinearTestSize(data.NonlinearTestSize);
             }
         }
     });

+ 0 - 3
iBemsDataService/Model/BemsConfigData.cs

@@ -23,8 +23,5 @@ namespace iBemsDataService.Model
         public string TargetDBUserID { get; set; }
         public string TargetDBUserPW { get; set; }
         public string TargetDBName { get; set; }
-        public System.DateTime InitialDate { get; set; }
-        public string LinearFilterLength { get; set; }
-        public double NonlinearTestSize { get; set; }
     }
 }

+ 1 - 0
iBemsDataService/Model/CmPosition.cs

@@ -23,6 +23,7 @@ namespace iBemsDataService.Model
         public int PositionId { get; set; }
         public string Name { get; set; }
         public Nullable<bool> IsUse { get; set; }
+        public Nullable<int> Position { get; set; }
     
         public virtual ICollection<CmUser> CmUser { get; set; }
         public virtual CmSite CmSite { get; set; }

+ 1 - 1
iBemsDataService/Model/DataModel.Context.cs

@@ -195,7 +195,7 @@ namespace iBemsDataService.Model
         public DbSet<BemsMonitoringPointForecastingHourAhead> BemsMonitoringPointForecastingHourAhead { get; set; }
         public DbSet<BemsFloorPlan> BemsFloorPlan { get; set; }
         public DbSet<BemsMonitoringPointWeatherForecasted> BemsMonitoringPointWeatherForecasted { get; set; }
-        public DbSet<BemsConfigData> BemsConfigData { get; set; }
         public DbSet<BemsIceThermalStorageSimulation> BemsIceThermalStorageSimulation { get; set; }
+        public DbSet<BemsConfigData> BemsConfigData { get; set; }
     }
 }

+ 1 - 1
iBemsDataService/Model/DataModel.Designer.cs

@@ -1,4 +1,4 @@
-// 모델 'D:\Development\20200728_IceStorage\iBemsDataService\Model\DataModel.edmx'에 대해 T4 코드 생성이 사용됩니다. 
+// 모델 'D:\Development\20200904_ModifiedConfig\iBemsDataService\Model\DataModel.edmx'에 대해 T4 코드 생성이 사용됩니다. 
 // 레거시 코드 생성을 사용하려면 '코드 생성 전략' 디자이너 속성의 값을
 // 'Legacy ObjectContext'로 변경하십시오. 이 속성은 모델이 디자이너에서 열릴 때
 // 속성 창에서 사용할 수 있습니다.

+ 32 - 38
iBemsDataService/Model/DataModel.edmx

@@ -149,9 +149,6 @@
           <Property Name="TargetDBUserID" Type="nvarchar" MaxLength="50" Nullable="false" />
           <Property Name="TargetDBUserPW" Type="nvarchar" MaxLength="50" Nullable="false" />
           <Property Name="TargetDBName" Type="nvarchar" MaxLength="50" Nullable="false" />
-          <Property Name="InitialDate" Type="datetime" Nullable="false" />
-          <Property Name="LinearFilterLength" Type="nvarchar" MaxLength="50" Nullable="false" />
-          <Property Name="NonlinearTestSize" Type="float" Nullable="false" />
         </EntityType>
         <EntityType Name="BemsControlAHUTempConfig">
           <Key>
@@ -1510,6 +1507,7 @@
           <Property Name="PositionId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
           <Property Name="Name" Type="nvarchar" MaxLength="40" Nullable="false" />
           <Property Name="IsUse" Type="bit" />
+          <Property Name="Position" Type="int" />
         </EntityType>
         <EntityType Name="CmServiceEnergyCalcDay">
           <Key>
@@ -8550,6 +8548,7 @@
           <NavigationProperty Name="CmUser" Relationship="Self.FK_CmUser_CmPosition" FromRole="CmPosition" ToRole="CmUser" />
           <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__CmPositio__SiteI__6A70BD6B" FromRole="CmPosition" ToRole="CmSite" />
           <NavigationProperty Name="CmSite1" Relationship="iBemsModel.FK__CmUserPos__SiteI__44952D46" FromRole="CmPosition" ToRole="CmSite" />
+          <Property Name="Position" Type="Int32" />
         </EntityType>
         <EntityType Name="CmUser">
           <Key>
@@ -12754,8 +12753,8 @@
           <EntitySet Name="BemsMonitoringPointForecastingHourAhead" EntityType="iBemsModel.BemsMonitoringPointForecastingHourAhead" />
           <EntitySet Name="BemsFloorPlan" EntityType="iBemsModel.BemsFloorPlan" />
           <EntitySet Name="BemsMonitoringPointWeatherForecasted" EntityType="iBemsModel.BemsMonitoringPointWeatherForecasted" />
-          <EntitySet Name="BemsConfigData" EntityType="iBemsModel.BemsConfigData" />
           <EntitySet Name="BemsIceThermalStorageSimulation" EntityType="iBemsModel.BemsIceThermalStorageSimulation" />
+          <EntitySet Name="BemsConfigData" EntityType="iBemsModel.BemsConfigData" />
           </EntityContainer>
         <EntityType Name="FmsDailyCheckReport">
           <Key>
@@ -16985,23 +16984,6 @@
           <Property Name="nx" Type="Int32" Nullable="false" />
           <Property Name="ny" Type="Int32" Nullable="false" />
         </EntityType>
-        <EntityType Name="BemsConfigData">
-          <Key>
-            <PropertyRef Name="SiteId" />
-          </Key>
-          <Property Name="SiteId" Type="Int32" Nullable="false" />
-          <Property Name="LoadDBIP" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
-          <Property Name="LoadDBUserID" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
-          <Property Name="LoadDBUserPW" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
-          <Property Name="LoadDBName" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
-          <Property Name="TargetDBIP" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
-          <Property Name="TargetDBUserID" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
-          <Property Name="TargetDBUserPW" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
-          <Property Name="TargetDBName" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
-          <Property Name="InitialDate" Type="DateTime" Nullable="false" Precision="3" />
-          <Property Name="LinearFilterLength" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
-          <Property Name="NonlinearTestSize" Type="Double" Nullable="false" />
-        </EntityType>
         <EntityType Name="BemsIceThermalStorageSimulation">
           <Key>
             <PropertyRef Name="SiteId" />
@@ -17020,6 +17002,20 @@
           <Property Name="SimulationValue" Type="Double" />
           <Property Name="SimulationCase" Type="Int32" Nullable="false" />
         </EntityType>
+        <EntityType Name="BemsConfigData">
+          <Key>
+            <PropertyRef Name="SiteId" />
+          </Key>
+          <Property Name="SiteId" Type="Int32" Nullable="false" />
+          <Property Name="LoadDBIP" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
+          <Property Name="LoadDBUserID" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
+          <Property Name="LoadDBUserPW" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
+          <Property Name="LoadDBName" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
+          <Property Name="TargetDBIP" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
+          <Property Name="TargetDBUserID" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
+          <Property Name="TargetDBUserPW" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
+          <Property Name="TargetDBName" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
+        </EntityType>
         </Schema>
     </edmx:ConceptualModels>
     <!-- C-S mapping content -->
@@ -17392,6 +17388,7 @@
           <EntitySetMapping Name="CmPosition">
             <EntityTypeMapping TypeName="iBemsModel.CmPosition">
               <MappingFragment StoreEntitySet="CmPosition">
+                <ScalarProperty Name="Position" ColumnName="Position" />
                 <ScalarProperty Name="SiteId" ColumnName="SiteId" />
                 <ScalarProperty Name="PositionId" ColumnName="PositionId" />
                 <ScalarProperty Name="Name" ColumnName="Name" />
@@ -19718,12 +19715,23 @@
               </MappingFragment>
             </EntityTypeMapping>
           </EntitySetMapping>
+          <EntitySetMapping Name="BemsIceThermalStorageSimulation">
+            <EntityTypeMapping TypeName="iBemsModel.BemsIceThermalStorageSimulation">
+              <MappingFragment StoreEntitySet="BemsIceThermalStorageSimulation">
+                <ScalarProperty Name="SimulationCase" ColumnName="SimulationCase" />
+                <ScalarProperty Name="SimulationValue" ColumnName="SimulationValue" />
+                <ScalarProperty Name="TargetDateTime" ColumnName="TargetDateTime" />
+                <ScalarProperty Name="CreatedDateTime" ColumnName="CreatedDateTime" />
+                <ScalarProperty Name="PropertyId" ColumnName="PropertyId" />
+                <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
+                <ScalarProperty Name="FacilityTypeId" ColumnName="FacilityTypeId" />
+                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
           <EntitySetMapping Name="BemsConfigData">
             <EntityTypeMapping TypeName="iBemsModel.BemsConfigData">
               <MappingFragment StoreEntitySet="BemsConfigData">
-                <ScalarProperty Name="NonlinearTestSize" ColumnName="NonlinearTestSize" />
-                <ScalarProperty Name="LinearFilterLength" ColumnName="LinearFilterLength" />
-                <ScalarProperty Name="InitialDate" ColumnName="InitialDate" />
                 <ScalarProperty Name="TargetDBName" ColumnName="TargetDBName" />
                 <ScalarProperty Name="TargetDBUserPW" ColumnName="TargetDBUserPW" />
                 <ScalarProperty Name="TargetDBUserID" ColumnName="TargetDBUserID" />
@@ -19736,20 +19744,6 @@
               </MappingFragment>
             </EntityTypeMapping>
           </EntitySetMapping>
-          <EntitySetMapping Name="BemsIceThermalStorageSimulation">
-            <EntityTypeMapping TypeName="iBemsModel.BemsIceThermalStorageSimulation">
-              <MappingFragment StoreEntitySet="BemsIceThermalStorageSimulation">
-                <ScalarProperty Name="SimulationCase" ColumnName="SimulationCase" />
-                <ScalarProperty Name="SimulationValue" ColumnName="SimulationValue" />
-                <ScalarProperty Name="TargetDateTime" ColumnName="TargetDateTime" />
-                <ScalarProperty Name="CreatedDateTime" ColumnName="CreatedDateTime" />
-                <ScalarProperty Name="PropertyId" ColumnName="PropertyId" />
-                <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
-                <ScalarProperty Name="FacilityTypeId" ColumnName="FacilityTypeId" />
-                <ScalarProperty Name="SiteId" ColumnName="SiteId" />
-              </MappingFragment>
-            </EntityTypeMapping>
-          </EntitySetMapping>
         </EntityContainerMapping>
       </Mapping>
     </edmx:Mappings>

+ 1 - 1
iBemsDataService/Model/DataModel.edmx.diagram

@@ -481,8 +481,8 @@
         <EntityTypeShape EntityType="iBemsModel.BemsMonitoringPointForecastingHourAhead" Width="1.5" PointX="12.375" PointY="12.75" />
         <EntityTypeShape EntityType="iBemsModel.BemsFloorPlan" Width="1.5" PointX="0.75" PointY="12.75" />
         <EntityTypeShape EntityType="iBemsModel.BemsMonitoringPointWeatherForecasted" Width="1.5" PointX="13.375" PointY="3.75" />
-        <EntityTypeShape EntityType="iBemsModel.BemsConfigData" Width="1.5" PointX="13.375" PointY="7.75" />
         <EntityTypeShape EntityType="iBemsModel.BemsIceThermalStorageSimulation" Width="1.5" PointX="14.375" PointY="12.75" />
+        <EntityTypeShape EntityType="iBemsModel.BemsConfigData" Width="1.5" PointX="13.375" PointY="7.75" />
         </Diagram>
     </edmx:Diagrams>
   </edmx:Designer>