Beispiel #1
0
 public ScreenListModel searchByIP(string start,string end)
 {
     //TODO:
     /* 通过IP段查询屏幕列表
      *
      */
     ScreenListModel slm = new ScreenListModel();
     slm.List = Stub.Stub.getScreenStub();
     return slm;
 }
Beispiel #2
0
        /// <summary>
        /// 搜索IP
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void searchIP(object sender, EventArgs e)
        {
            String IPstart = this.txtIPStart.Text;
            String IPend = this.txtIPEnd.Text;
            ScreenManager.Service.ScreenDataService service = new ScreenManager.Service.ScreenDataService();

            //搜索屏幕
            screenList=service.searchByIP(IPstart, IPend);
            //加载屏幕列表
            this.reloadIPList();
        }
Beispiel #3
0
        public ScreenListModel searchByIP(string start, string end)
        {
            ScreenListModel screenList = new ScreenListModel();
            if (IPAddrHandleUtil.isValid(start))
            {
                log.Warn("the start ip address is invalid.the start is " + start);
                return screenList;
            }
            if (IPAddrHandleUtil.isValid(end))
            {
                log.Warn("the start ip address is invalid.the start is " + end);
                return screenList;
            }
            List<String> ipList = IPAddrHandleUtil.getIPListFromIPSegment(start, end);

            return null;
        }