/// <summary> /// 获取当前主机非状态值主机个数 /// </summary> /// <param name="state"></param> /// <returns></returns> public int host_state_num_o(char state) { try { DSCfunction dsc = new DSCfunction(); IList <SC_HOST> lsc = dsc.SELECT_HOST_STATE_O(state); return(lsc.Count); } catch (Exception e) { throw e; } }
/// <summary> /// 获取非状态当前主机列表 /// </summary> /// <param name="state">0=离线,1=在线</param> /// <returns></returns> public IList <SC_HOST> host_state_control_o(char state) { try { DSCfunction dsc = new DSCfunction(); IList <SC_HOST> lsc = dsc.SELECT_HOST_STATE_O(state); DLanData dld = new DLanData(); for (int i = 0; i < lsc.Count; i++) { lsc[i].HostName = dld.SELECT_BY_ID(lsc[i].HOST_ID).Building; } return(lsc); } catch (Exception e) { throw e; } }