public void HeadOther(List<ApplListOR> list, string mtype)
        {
            string id = Request.QueryString["GUID"];
            DataTable dt = null;
            switch (mtype)
            {
                case "server":
                    dt = new PerfApplicationDA().GetSysLay(Convert.ToInt32(id), 1);
                    break;
                case "use":
                    dt = new PerfApplicationDA().GetSysLay(Convert.ToInt32(id), 10);
                    break;
                case "web":
                    dt = new PerfApplicationDA().GetSysLay(Convert.ToInt32(id), " (dt.typeid=2 or dt.typeid=3 )");
                    break;
                case "DB":
                    dt = new PerfApplicationDA().GetSysLay(Convert.ToInt32(id), 4);
                    break;
            }
            if (dt != null)
            {
                foreach (DataRow dr in dt.Rows)
                {
                    ApplListOR obj = new ApplListOR();
                    obj.DeviceID = dr["DeviceID"].ToString();
                    obj.DeviceName = dr["DeviceName"].ToString();
                    obj.TypeName = dr["TypeName"].ToString();
                    obj.typeID = Convert.ToInt32(dr["typeid"].ToString());

                    obj.Status = Convert.ToInt32(dr["perf"].ToString());
                    obj.StatusShow = dr["Performance"].ToString();
                    obj.Warning = Convert.ToInt32(dr["WarningStatus"].ToString());
                    obj.WarningShow = dr["WarningStatusName"].ToString();
                    list.Add(obj);
                }
            }
        }
        private ApplListOR HeadStatusAndWaring(DataTable objDev)
        {
            ApplListOR obj = new ApplListOR();
            obj.Status = 1;
            obj.StatusShow = "正常";
            obj.Warning = 1;
            obj.WarningShow = "正常";

            foreach (DataRow dr in objDev.Rows)
            {
                if (dr["DeviceStatus"].ToString() != "1")
                {
                    obj.Status = Convert.ToInt32(dr["DeviceStatus"].ToString());
                    obj.StatusShow = dr["DeviceStatusName"].ToString();
                }
                if (dr["WarningStatus"].ToString() != "1")
                {
                    obj.Warning = Convert.ToInt32(dr["WarningStatus"].ToString());
                    obj.WarningShow = dr["WarningStatusName"].ToString();
                }
            }
            return obj;
        }