<?xml version="1.0" encoding="utf-16"?>
<!--
参数说明：<Entity> 是根节点 
参数说明：<Entity> 的子节点是实体节点 
参数说明：实体节点包括两个属性 title和logicalDelete, 其中, titie是标题；logicalDelete表示是否支持逻辑删除 
参数说明：实体节点的下级节点是字段，字段包括如下属性 
参数说明：type: 表示字段的类型，可以使用C#中的类型定义，包括 string int float DateTime 枚举 和数组等 
参数说明：query:表示这个字段是否支持查询，缺省是true 
参数说明：unique:表示这个字段是不允许重复的，缺省是false；如果字段设置为unique，则这个字段不允许为空 
参数说明：title:表示字段的标题 
参数说明：allowNull:表示字段是否允许为空，缺省是true 
参数说明：readonly:表示字段是否是只读，只读字段在update中进行复制，缺省是false 
-->
<Entity IsExtendContext="false">
  <NetCompany title="单位查询" type="netEntity" basefilter="" perm="Login" namespace="Kiloway.Project.SBM.TraceApi.Data.NetEntity" generateApi="true" methods="18446744073709551615" extensible="false">
    <Id type="int" namespace="System" basetype="int" title="单位标识" readonly="false" key="true" allowNull="true" unique="false" query="true" createApi="false" createBatchUpdateApi="false" createApiPerm="false" jsonProperty="Id" isEnum="false" />
    <CompanyPath type="string" namespace="System" basetype="string" title="单位查询路径" readonly="false" key="false" allowNull="true" unique="false" query="true" createApi="false" createBatchUpdateApi="false" createApiPerm="false" jsonProperty="CompanyPath" isEnum="false" />
    <CompanyName type="string" namespace="System" basetype="string" title="单位名称" readonly="false" key="false" allowNull="true" unique="false" query="true" createApi="false" createBatchUpdateApi="false" createApiPerm="false" jsonProperty="CompanyName" isEnum="false" />
    <CompanyCode type="string" namespace="System" basetype="string" title="单位编码" readonly="false" key="false" allowNull="true" unique="false" query="true" createApi="false" createBatchUpdateApi="false" createApiPerm="false" jsonProperty="CompanyCode" isEnum="false" />
    <IsDelete type="int" namespace="System" basetype="int" title="是否删除" readonly="false" key="false" allowNull="true" unique="false" query="true" createApi="false" createBatchUpdateApi="false" createApiPerm="false" jsonProperty="IsDelete" isEnum="false" />
  </NetCompany>
  <NetStaff title="用户信息" type="netEntity" basefilter="" perm="Login" namespace="Kiloway.Project.SBM.TraceApi.Data.NetEntity" generateApi="true" methods="18446744073709551615" extensible="false">
    <Id type="Nullable&lt;int&gt;" namespace="System" basetype="int" title="用户标识" readonly="false" key="true" allowNull="true" unique="false" query="true" createApi="false" createBatchUpdateApi="false" createApiPerm="false" jsonProperty="Id" isEnum="false" />
    <CompanyId type="Nullable&lt;int&gt;" namespace="System" basetype="int" title="单位标识" readonly="false" key="false" allowNull="true" unique="false" query="true" createApi="false" createBatchUpdateApi="false" createApiPerm="false" jsonProperty="CompanyId" isEnum="false" />
    <DepartId type="Nullable&lt;int&gt;" namespace="System" basetype="int" title="部门标识" readonly="false" key="false" allowNull="true" unique="false" query="true" createApi="false" createBatchUpdateApi="false" createApiPerm="false" jsonProperty="DepartId" isEnum="false" />
    <Sex type="Nullable&lt;int&gt;" namespace="System" basetype="int" title="性别" readonly="false" key="false" allowNull="true" unique="false" query="true" createApi="false" createBatchUpdateApi="false" createApiPerm="false" jsonProperty="Sex" isEnum="false" />
    <BirthDate type="Nullable&lt;DateTime&gt;" namespace="System" basetype="DateTime" title="出生日期" readonly="false" key="false" allowNull="true" unique="false" query="true" createApi="false" createBatchUpdateApi="false" createApiPerm="false" jsonProperty="BirthDate" isEnum="false" />
    <CardNumber type="string" namespace="System" basetype="string" title="证件号码" readonly="false" key="false" allowNull="true" unique="false" query="true" createApi="false" createBatchUpdateApi="false" createApiPerm="false" jsonProperty="CardNumber" isEnum="false" />
    <StaffName type="string" namespace="System" basetype="string" title="用户名称" readonly="false" key="false" allowNull="false" unique="false" query="true" createApi="false" createBatchUpdateApi="false" createApiPerm="false" jsonProperty="StaffName" isEnum="false" />
    <LoginName type="string" namespace="System" basetype="string" title="登录名称" readonly="false" key="false" allowNull="true" unique="false" query="true" createApi="false" createBatchUpdateApi="false" createApiPerm="false" jsonProperty="LoginName" isEnum="false" />
    <FullName type="string" namespace="System" basetype="string" title="用户全称" readonly="false" key="false" allowNull="false" unique="false" query="true" createApi="false" createBatchUpdateApi="false" createApiPerm="false" jsonProperty="FullName" isEnum="false" />
    <CompanyName type="string" namespace="System" basetype="string" title="单位名称" readonly="false" key="false" allowNull="false" unique="false" query="true" createApi="false" createBatchUpdateApi="false" createApiPerm="false" jsonProperty="CompanyName" isEnum="false" />
    <DepartmentName type="string" namespace="System" basetype="string" title="部门名称" readonly="false" key="false" allowNull="false" unique="false" query="true" createApi="false" createBatchUpdateApi="false" createApiPerm="false" jsonProperty="DepartmentName" isEnum="false" />
    <Picture type="string" namespace="System" basetype="string" title="照片" readonly="false" key="false" allowNull="true" unique="false" query="true" createApi="false" createBatchUpdateApi="false" createApiPerm="false" jsonProperty="Picture" isEnum="false" />
    <Tel type="string" namespace="System" basetype="string" title="联系电话" readonly="false" key="false" allowNull="true" unique="false" query="true" createApi="false" createBatchUpdateApi="false" createApiPerm="false" jsonProperty="Tel" isEnum="false" />
    <JobNumber type="string" namespace="System" basetype="string" title="工作编号" readonly="false" key="false" allowNull="true" unique="false" query="true" createApi="false" createBatchUpdateApi="false" createApiPerm="false" jsonProperty="JobNumber" isEnum="false" />
    <RfidCode type="string" namespace="System" basetype="string" title="RFID编号" readonly="false" key="false" allowNull="true" unique="false" query="true" createApi="false" createBatchUpdateApi="false" createApiPerm="false" jsonProperty="RfidCode" isEnum="false" />
    <RfidId type="Nullable&lt;int&gt;" namespace="System" basetype="int" title="RFID标识" readonly="false" key="false" allowNull="true" unique="false" query="true" createApi="false" createBatchUpdateApi="false" createApiPerm="false" jsonProperty="RfidId" isEnum="false" />
    <CreateUser type="Nullable&lt;int&gt;" namespace="System" basetype="int" title="创建人" readonly="false" key="false" allowNull="true" unique="false" query="true" createApi="false" createBatchUpdateApi="false" createApiPerm="false" jsonProperty="CreateUser" isEnum="false" />
    <CreateTime type="Nullable&lt;DateTime&gt;" namespace="System" basetype="DateTime" title="创建时间" readonly="false" key="false" allowNull="true" unique="false" query="true" createApi="false" createBatchUpdateApi="false" createApiPerm="false" jsonProperty="CreateTime" isEnum="false" />
    <DeleteUser type="Nullable&lt;int&gt;" namespace="System" basetype="int" title="删除人" readonly="false" key="false" allowNull="true" unique="false" query="true" createApi="false" createBatchUpdateApi="false" createApiPerm="false" jsonProperty="DeleteUser" isEnum="false" />
    <DeleteTime type="Nullable&lt;DateTime&gt;" namespace="System" basetype="DateTime" title="删除时间" readonly="false" key="false" allowNull="true" unique="false" query="true" createApi="false" createBatchUpdateApi="false" createApiPerm="false" jsonProperty="DeleteTime" isEnum="false" />
    <DeleteStatus type="int" namespace="System" basetype="int" title="删除状态" readonly="false" key="false" allowNull="true" unique="false" query="true" createApi="false" createBatchUpdateApi="false" createApiPerm="false" jsonProperty="DeleteStatus" isEnum="false" />
    <Platform type="string" namespace="System" basetype="string" title="平台" readonly="false" key="false" allowNull="true" unique="false" query="true" createApi="false" createBatchUpdateApi="false" createApiPerm="false" jsonProperty="Platform" isEnum="false" />
    <IsDefault type="Nullable&lt;int&gt;" namespace="System" basetype="int" title="是否缺省" readonly="false" key="false" allowNull="true" unique="false" query="true" createApi="false" createBatchUpdateApi="false" createApiPerm="false" jsonProperty="IsDefault" isEnum="false" />
  </NetStaff>
  <TestNetEntity title="测试网络实体" type="netEntity" basefilter="" perm="Normal" namespace="Kiloway.Project.SBM.TraceApi.Data.NetEntity" generateApi="true" methods="18446744073709551615" extensible="false">
    <Id type="long" namespace="System" basetype="long" title="标识" readonly="false" key="true" allowNull="true" unique="false" query="false" createApi="false" createBatchUpdateApi="false" createApiPerm="false" jsonProperty="Id" isEnum="false" />
    <Name type="string" namespace="System" basetype="string" title="名称" readonly="false" key="false" allowNull="true" unique="false" query="true" createApi="false" createBatchUpdateApi="false" createApiPerm="false" jsonProperty="Name" isEnum="false" />
  </TestNetEntity>
  <TraceRecord title="追溯记录" type="table" basefilter="" perm="Normal" namespace="Kiloway.Project.SBM.TraceApi.Data.Entity" generateApi="true" methods="18446744073709551615" extensible="false">
    <Id type="long" namespace="System" basetype="long" title="标识" readonly="false" key="true" allowNull="true" unique="false" query="true" createApi="false" createBatchUpdateApi="false" createApiPerm="false" jsonProperty="Id" isEnum="false" />
    <ProductDetailId type="long" namespace="System" basetype="long" title="产品标识" readonly="false" key="false" allowNull="true" unique="false" query="true" createApi="false" createBatchUpdateApi="false" createApiPerm="false" jsonProperty="ProductDetailId" isEnum="false" />
    <Imei type="string" namespace="System" basetype="string" title="手机号" readonly="false" key="false" allowNull="true" unique="false" query="true" createApi="false" createBatchUpdateApi="false" createApiPerm="false" jsonProperty="Imei" isEnum="false" />
    <TraceTime type="Nullable&lt;DateTime&gt;" namespace="System" basetype="DateTime" title="追溯时间" readonly="false" key="false" allowNull="true" unique="false" query="true" createApi="false" createBatchUpdateApi="false" createApiPerm="false" jsonProperty="TraceTime" isEnum="false" />
    <UserId type="Nullable&lt;int&gt;" namespace="System" basetype="int" title="追溯人员" readonly="false" key="false" allowNull="true" unique="false" query="true" createApi="false" createBatchUpdateApi="false" createApiPerm="false" jsonProperty="UserId" isEnum="false" />
    <IpAddress type="string" namespace="System" basetype="string" title="IP地址" readonly="false" key="false" allowNull="true" unique="false" query="true" createApi="false" createBatchUpdateApi="false" createApiPerm="false" jsonProperty="IpAddress" isEnum="false" />
    <ProductName type="string" namespace="System" basetype="string" title="产品名称" readonly="true" key="false" allowNull="true" unique="false" query="false" createApi="false" createBatchUpdateApi="false" createApiPerm="false" jsonProperty="ProductName" isEnum="false" />
    <ProductId type="Nullable&lt;long&gt;" namespace="System" basetype="long" title="产品标识" readonly="false" key="false" allowNull="true" unique="false" query="true" createApi="false" createBatchUpdateApi="false" createApiPerm="false" jsonProperty="ProductId" isEnum="false" />
    <Country type="string" namespace="System" basetype="string" title="国家" readonly="false" key="false" allowNull="true" unique="false" query="true" createApi="false" createBatchUpdateApi="false" createApiPerm="false" jsonProperty="Country" isEnum="false" />
    <Province type="string" namespace="System" basetype="string" title="省" readonly="false" key="false" allowNull="true" unique="false" query="true" createApi="false" createBatchUpdateApi="false" createApiPerm="false" jsonProperty="Province" isEnum="false" />
    <City type="string" namespace="System" basetype="string" title="城市" readonly="false" key="false" allowNull="true" unique="false" query="true" createApi="false" createBatchUpdateApi="false" createApiPerm="false" jsonProperty="City" isEnum="false" />
    <District type="string" namespace="System" basetype="string" title="区域" readonly="false" key="false" allowNull="true" unique="false" query="true" createApi="false" createBatchUpdateApi="false" createApiPerm="false" jsonProperty="District" isEnum="false" />
    <Place type="string" namespace="System" basetype="string" title="地址" readonly="false" key="false" allowNull="true" unique="false" query="true" createApi="false" createBatchUpdateApi="false" createApiPerm="false" jsonProperty="Place" isEnum="false" />
  </TraceRecord>
  <WarningInformation title="预警信息" type="table" basefilter="" perm="Normal" namespace="Kiloway.Project.SBM.TraceApi.Data.Entity" generateApi="true" methods="18446744073709551615" extensible="false">
    <Id type="long" namespace="System" basetype="long" title="标识" readonly="false" key="true" allowNull="true" unique="false" query="true" createApi="false" createBatchUpdateApi="false" createApiPerm="false" jsonProperty="Id" isEnum="false" />
    <WarningInfo type="string" namespace="System" basetype="string" title="标识" readonly="false" key="false" allowNull="true" unique="false" query="true" createApi="false" createBatchUpdateApi="false" createApiPerm="false" jsonProperty="WarningInfo" isEnum="false" />
    <Uid type="string" namespace="System" basetype="string" title="产品UID" readonly="false" key="false" allowNull="true" unique="false" query="true" createApi="false" createBatchUpdateApi="false" createApiPerm="false" jsonProperty="Uid" isEnum="false" />
    <ProductId type="Nullable&lt;long&gt;" namespace="System" basetype="long" title="产品标识" readonly="false" key="false" allowNull="true" unique="false" query="true" createApi="false" createBatchUpdateApi="false" createApiPerm="false" jsonProperty="ProductId" isEnum="false" />
    <ProductName type="string" namespace="System" basetype="string" title="产品" readonly="true" key="false" allowNull="true" unique="false" query="false" createApi="false" createBatchUpdateApi="false" createApiPerm="false" jsonProperty="ProductName" isEnum="false" />
    <Place type="string" namespace="System" basetype="string" title="追溯定位地址" readonly="false" key="false" allowNull="true" unique="false" query="true" createApi="false" createBatchUpdateApi="false" createApiPerm="false" jsonProperty="Place" isEnum="false" />
    <AddTime type="Nullable&lt;DateTime&gt;" namespace="System" basetype="DateTime" title="创建时间" readonly="false" key="false" allowNull="true" unique="false" query="true" createApi="false" createBatchUpdateApi="false" createApiPerm="false" jsonProperty="AddTime" isEnum="false" />
    <Status type="EnumWarningInformationStatus" namespace="Kiloway.Project.SBM.TraceApi.Constant" basetype="EnumWarningInformationStatus" title="状态标识" readonly="false" key="false" allowNull="true" unique="false" query="true" createApi="false" createBatchUpdateApi="false" createApiPerm="false" jsonProperty="Status" enumNames="未读,已读" isEnum="true" />
    <StatusName type="string" namespace="System" basetype="string" title="状态" readonly="true" key="false" allowNull="true" unique="false" query="false" createApi="false" createBatchUpdateApi="false" createApiPerm="false" jsonProperty="StatusName" isEnum="false" />
    <ShopId type="Nullable&lt;long&gt;" namespace="System" basetype="long" title="主单标识" readonly="false" key="false" allowNull="true" unique="false" query="true" createApi="false" createBatchUpdateApi="false" createApiPerm="false" jsonProperty="ShopId" isEnum="false" />
    <ShopName type="string" namespace="System" basetype="string" title="门店名称" readonly="true" key="false" allowNull="true" unique="false" query="false" createApi="false" createBatchUpdateApi="false" createApiPerm="false" jsonProperty="ShopName" isEnum="false" />
  </WarningInformation>
  <MQPubData title="MQPubData" type="table" basefilter="" perm="Login" namespace="Kiloway.Framework.Web.MicroService.MQ" generateApi="true" methods="18446744073709551615" extensible="false" systemTable="true">
    <Id type="long" namespace="System" basetype="long" title="Id" readonly="false" key="true" allowNull="true" unique="false" query="true" createApi="false" createBatchUpdateApi="false" createApiPerm="false" jsonProperty="Id" isEnum="false" />
    <ServiceName type="string" namespace="System" basetype="string" title="ServiceName" readonly="false" key="false" allowNull="true" unique="false" query="true" createApi="false" createBatchUpdateApi="false" createApiPerm="false" jsonProperty="ServiceName" isEnum="false" />
    <MessageType type="string" namespace="System" basetype="string" title="MessageType" readonly="false" key="false" allowNull="true" unique="false" query="true" createApi="false" createBatchUpdateApi="false" createApiPerm="false" jsonProperty="MessageType" isEnum="false" />
    <MessageName type="string" namespace="System" basetype="string" title="MessageName" readonly="false" key="false" allowNull="true" unique="false" query="true" createApi="false" createBatchUpdateApi="false" createApiPerm="false" jsonProperty="MessageName" isEnum="false" />
    <DataType type="string" namespace="System" basetype="string" title="DataType" readonly="false" key="false" allowNull="true" unique="false" query="true" createApi="false" createBatchUpdateApi="false" createApiPerm="false" jsonProperty="DataType" isEnum="false" />
    <Data type="string" namespace="System" basetype="string" title="Data" readonly="false" key="false" allowNull="true" unique="false" query="true" createApi="false" createBatchUpdateApi="false" createApiPerm="false" jsonProperty="Data" isEnum="false" />
    <PubTime type="DateTime" namespace="System" basetype="DateTime" title="PubTime" readonly="false" key="false" allowNull="true" unique="false" query="true" createApi="false" createBatchUpdateApi="false" createApiPerm="false" jsonProperty="PubTime" isEnum="false" />
    <State type="MQEventUserDataState" namespace="Kiloway.Framework.Web.MicroService.MQ" basetype="MQEventUserDataState" title="State" readonly="false" key="false" allowNull="true" unique="false" query="true" createApi="false" createBatchUpdateApi="false" createApiPerm="false" jsonProperty="State" enumNames="New,ProcessSuccess,ProcessFailure" isEnum="true" />
    <ProcTime type="Nullable&lt;DateTime&gt;" namespace="System" basetype="DateTime" title="ProcTime" readonly="false" key="false" allowNull="true" unique="false" query="true" createApi="false" createBatchUpdateApi="false" createApiPerm="false" jsonProperty="ProcTime" isEnum="false" />
    <ErrorMsg type="string" namespace="System" basetype="string" title="ErrorMsg" readonly="false" key="false" allowNull="true" unique="false" query="true" createApi="false" createBatchUpdateApi="false" createApiPerm="false" jsonProperty="ErrorMsg" isEnum="false" />
    <MessageId type="string" namespace="System" basetype="string" title="MessageId" readonly="false" key="false" allowNull="true" unique="false" query="true" createApi="false" createBatchUpdateApi="false" createApiPerm="false" jsonProperty="MessageId" isEnum="false" />
    <BusinessType type="string" namespace="System" basetype="string" title="BusinessType" readonly="false" key="false" allowNull="true" unique="false" query="true" createApi="false" createBatchUpdateApi="false" createApiPerm="false" jsonProperty="BusinessType" isEnum="false" />
    <MQMode type="int" namespace="System" basetype="int" title="MQMode" readonly="false" key="false" allowNull="true" unique="false" query="true" createApi="false" createBatchUpdateApi="false" createApiPerm="false" jsonProperty="MQMode" isEnum="false" />
  </MQPubData>
  <MQSubscribeData title="MQSubscribeData" type="table" basefilter="" perm="Login" namespace="Kiloway.Framework.Web.MicroService.MQ" generateApi="true" methods="18446744073709551615" extensible="false" systemTable="true">
    <Id type="long" namespace="System" basetype="long" title="Id" readonly="false" key="true" allowNull="true" unique="false" query="true" createApi="false" createBatchUpdateApi="false" createApiPerm="false" jsonProperty="Id" isEnum="false" />
    <ClientId type="string" namespace="System" basetype="string" title="ClientId" readonly="false" key="false" allowNull="true" unique="false" query="true" createApi="false" createBatchUpdateApi="false" createApiPerm="false" jsonProperty="ClientId" isEnum="false" />
    <MessageId type="string" namespace="System" basetype="string" title="MessageId" readonly="false" key="false" allowNull="true" unique="false" query="true" createApi="false" createBatchUpdateApi="false" createApiPerm="false" jsonProperty="MessageId" isEnum="false" />
    <ServiceName type="string" namespace="System" basetype="string" title="ServiceName" readonly="false" key="false" allowNull="true" unique="false" query="true" createApi="false" createBatchUpdateApi="false" createApiPerm="false" jsonProperty="ServiceName" isEnum="false" />
    <MessageType type="string" namespace="System" basetype="string" title="MessageType" readonly="false" key="false" allowNull="true" unique="false" query="true" createApi="false" createBatchUpdateApi="false" createApiPerm="false" jsonProperty="MessageType" isEnum="false" />
    <MessageName type="string" namespace="System" basetype="string" title="MessageName" readonly="false" key="false" allowNull="true" unique="false" query="true" createApi="false" createBatchUpdateApi="false" createApiPerm="false" jsonProperty="MessageName" isEnum="false" />
    <EventUserData type="string" namespace="System" basetype="string" title="EventUserData" readonly="false" key="false" allowNull="true" unique="false" query="true" createApi="false" createBatchUpdateApi="false" createApiPerm="false" jsonProperty="EventUserData" isEnum="false" />
    <RecvTime type="DateTime" namespace="System" basetype="DateTime" title="RecvTime" readonly="false" key="false" allowNull="true" unique="false" query="true" createApi="false" createBatchUpdateApi="false" createApiPerm="false" jsonProperty="RecvTime" isEnum="false" />
    <State type="MQEventUserDataState" namespace="Kiloway.Framework.Web.MicroService.MQ" basetype="MQEventUserDataState" title="State" readonly="false" key="false" allowNull="true" unique="false" query="true" createApi="false" createBatchUpdateApi="false" createApiPerm="false" jsonProperty="State" enumNames="New,ProcessSuccess,ProcessFailure" isEnum="true" />
    <ProcTime type="Nullable&lt;DateTime&gt;" namespace="System" basetype="DateTime" title="ProcTime" readonly="false" key="false" allowNull="true" unique="false" query="true" createApi="false" createBatchUpdateApi="false" createApiPerm="false" jsonProperty="ProcTime" isEnum="false" />
    <ErrorMsg type="string" namespace="System" basetype="string" title="ErrorMsg" readonly="false" key="false" allowNull="true" unique="false" query="true" createApi="false" createBatchUpdateApi="false" createApiPerm="false" jsonProperty="ErrorMsg" isEnum="false" />
    <BusinessType type="string" namespace="System" basetype="string" title="BusinessType" readonly="false" key="false" allowNull="true" unique="false" query="true" createApi="false" createBatchUpdateApi="false" createApiPerm="false" jsonProperty="BusinessType" isEnum="false" />
    <MQMode type="int" namespace="System" basetype="int" title="MQMode" readonly="false" key="false" allowNull="true" unique="false" query="true" createApi="false" createBatchUpdateApi="false" createApiPerm="false" jsonProperty="MQMode" isEnum="false" />
  </MQSubscribeData>
</Entity>