Exemplo n.º 1
0
 /// <summary>
 /// 根据网络设备ID,查询详细信息
 /// </summary>
 /// <param name="mDeviceID"></param>
 /// <returns></returns>
 public PerfVirtualOR SelectVirtualDetail(string mDeviceID)
 {
     DataTable dt = new TmpValueDA().SelectValues(mDeviceID);
     if (dt == null)
         return null;
     PerfVirtualOR obj = new PerfVirtualOR(dt);
     return obj;
 }
Exemplo n.º 2
0
        /// <summary>
        /// 根据网络设备ID,查询详细信息
        /// </summary>
        /// <param name="mDeviceID"></param>
        /// <returns></returns>
        public StateCompRoomEnviOR SelectDeviceDetail(string mDeviceID)
        {
            DataTable dt = new TmpValueDA().SelectValues(mDeviceID);
            if (dt == null)
                return null;
            StateCompRoomEnviOR obj = new StateCompRoomEnviOR(dt);

            return obj;
        }
Exemplo n.º 3
0
 /// <summary>
 /// 根据网络设备ID,查询详细信息
 /// </summary>
 /// <param name="mDeviceID"></param>
 /// <returns></returns>
 public PerfNetDetailOR SelectDeviceDetail(string mDeviceID)
 {
     DataTable dt = new TmpValueDA().SelectValues(mDeviceID);
     if (dt == null)
         return null;
     PerfNetDetailOR obj = new PerfNetDetailOR(dt);
     //加载网络接口
     obj.SubProts = GetNetPorts(mDeviceID);
     return obj;
 }
Exemplo n.º 4
0
 public float? GetValue(string DviceID, string ChanncelNo)
 {
     float f = 0f;
     object val = new TmpValueDA().SelectValue(DviceID, ChanncelNo);
     if (val != null)
     {
         float.TryParse(val.ToString(), out f);
     }
     return f;
 }
Exemplo n.º 5
0
 protected void Page_Load(object sender, EventArgs e)
 {
     string mdeivceid = Request.QueryString["id"];
     DeviceANDItemRefOR obj=	new TmpValueDA().SelectRefData(mdeivceid);
     string result=string.Empty;
     if (obj != null)
     {
         DataContractJsonSerializer serializer = new DataContractJsonSerializer(obj.GetType());
         using (MemoryStream ms = new MemoryStream())
         {
             serializer.WriteObject(ms, obj);
             result= System.Text.Encoding.UTF8.GetString(ms.ToArray());
         }
     }
     Response.Clear();
     Response.Write(result);
     Response.Flush();
     Response.End();
 }
Exemplo n.º 6
0
 /// <summary>
 /// 根据网络设备ID,查询详细信息
 /// </summary>
 /// <param name="mDeviceID"></param>
 /// <returns></returns>
 public PerfApplicationOR SelectPerfApplication(string mDeviceID)
 {
     DataTable dt = new TmpValueDA().SelectValues(mDeviceID);
     if (dt == null)
         return null;
     PerfApplicationOR obj = new PerfApplicationOR(dt);
     return obj;
 }