예제 #1
0
        /// <summary>
        /// 根据分站号获取电源箱地址号
        /// </summary>
        /// <param name="fzh"></param>
        /// <returns></returns>
        public static List <string> GetSwitchPowerBoxAddress(string mac)
        {
            var req = new GetAllPowerBoxAddressByMacRequest()
            {
                Mac = mac
            };
            var res = NetworkModuleService.GetAllPowerBoxAddress(req);

            if (!res.IsSuccess)
            {
                throw new Exception(res.Message);
            }
            return(res.Data);
        }
예제 #2
0
 public BasicResponse <List <string> > GetAllPowerBoxAddress(Sys.Safety.Request.NetworkModule.GetAllPowerBoxAddressByMacRequest request)
 {
     return(_NetworkModuleService.GetAllPowerBoxAddress(request));
 }