Ejemplo n.º 1
0
 /// <summary>
 /// 将标示符转换为模块标示符
 /// </summary>
 /// <param name="id">标示符</param>
 /// <param name="moduleType">模块类型</param>
 /// <param name="moduleZoneNumber">模块区域编号[1-n]</param>
 /// <param name="moduleNumber">模块编号[1-n]</param>
 /// <returns>返回模块标示符对象</returns>
 public static Identity ToModuleId(String id, ModuleType moduleType, Byte moduleZoneNumber, Byte moduleNumber)
 {
     return(ToModuleId(Identity.Parse(id), moduleType, moduleZoneNumber, moduleNumber));
 }
Ejemplo n.º 2
0
 /// <summary>
 /// 将标示符转换为模块标示符
 /// </summary>
 /// <param name="id">标示符对象</param>
 /// <param name="moduleType">模块类型</param>
 /// <param name="moduleZoneNumber">模块区域编号[1-n]</param>
 /// <param name="moduleNumber">模块编号[1-n]</param>
 /// <returns>返回模块标示符对象</returns>
 public static Identity ToModuleId(Identity id, ModuleType moduleType, Byte moduleZoneNumber, Byte moduleNumber)
 {
     return(new Identity(id.Nation, id.Province, id.City, id.County, id.Classification, id.ProjectNumber, id.SerialNumber, id.Network, moduleType, moduleZoneNumber, moduleNumber));
 }
Ejemplo n.º 3
0
 /// <summary>
 /// 将普通模块标示符转换为设备标示符
 /// </summary>
 /// <param name="id">标示符</param>
 /// <returns>返回设备标示符对象</returns>
 public static Identity ToDeviceId(String id)
 {
     return(ToDeviceId(Identity.Parse(id)));
 }
Ejemplo n.º 4
0
 /// <summary>
 /// 将普通模块标示符转换为设备标示符
 /// </summary>
 /// <param name="id">标示符对象</param>
 /// <returns>返回设备标示符对象</returns>
 public static Identity ToDeviceId(Identity id)
 {
     return(new Identity(id.Nation, id.Province, id.City, id.County, id.Classification, id.ProjectNumber, id.SerialNumber, id.Network, ModuleType.None, 0, 0));
 }