﻿<?xml version="1.0" encoding="utf-8" ?>
<!--主要配置设备图层与中间表的对应关系-->
<config>
  <!--表示一个设备挂接的中间表，如有其他设备，按照该结构添加新的relation节点-->
  <relation>
    <!--设备图层名称-->
    <layerName>接水点</layerName>
    <!--该设备上挂接的中间表，如有多张表，则要配置多个tabel节点，节点值为表的名称，节点属性dbTable表示表在数据库中的表名-->
    <tables>
      <table dbTable="wateruserinfo" gisReferenceField="编号" dbType="MSSQL" auxIDField="用户号"
               connString="server=127.0.0.1;database='waterdb';User id=sa;password=sa;Integrated Security=false">用户信息</table>
    </tables>
  </relation>
  <relation>
    <!--设备图层名称-->
    <layerName>用户</layerName>
    <!--该设备上挂接的中间表，如有多张表，则要配置多个tabel节点，节点值为表的名称，节点属性dbTable表示表在数据库中的表名-->
    <tables>
      <table dbTable="ma43" gisReferenceField="接水点编号" dbType="MSSQL" auxIDField="用户号"
				   connString="server=127.0.0.1;database='waterdb';User id=sa;password=sa;Integrated Security=false">用户附属数据</table>
    </tables>
  </relation>
  <relation>
    <!--设备图层名称-->
    <layerName>高层供水接水点</layerName>
    <!--该设备上挂接的中间表，如有多张表，则要配置多个tabel节点，节点值为表的名称，节点属性dbTable表示表在数据库中的表名-->
    <tables>
      <table dbTable="MA181" gisReferenceField="接水点编号" auxReferenceField="设备编号" dbType="MSSQL" auxIDField="用户号"
				   connString="server=192.168.12.6;database='SXGS1406';User id=sa;password=sa;Integrated Security=false">水箱附属数据</table>
      <table dbTable="ma43" gisReferenceField="接水点编号" auxReferenceField="设备编号" dbType="MSSQL" auxIDField="用户号"
             connString="server=192.168.12.6;database='SXGS1406';User id=sa;password=sa;Integrated Security=false">用户附属数据</table>
      <table dbTable="MA182" gisReferenceField="接水点编号" auxReferenceField="设备编号" dbType="MSSQL" auxIDField="用户号"
             connString="server=192.168.12.6;database='SXGS1406';User id=sa;password=sa;Integrated Security=false">阀门附属数据</table>
    </tables>
  </relation>
</config>