其他分享
首页 > 其他分享> > Unity加载json数据

Unity加载json数据

作者:互联网

android环境下对路径有要求:

数据结构

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using System;

[Serializable]
public class GZValveGameStatus
{

    public ValveInformations[] valveInformations;
}
[Serializable]
public class ValveInformations
{
    public int id;
    public string valveID;
    public string valveName;
    public string personInCharge;
    public ValveInspectionStandard[] valveInspectionStandard;
    public ValveNameplate[] valveNameplate;
    public ValveMaintenanceRecord[] valveMaintenanceRecord;

}
[Serializable]
public class ValveInspectionStandard
{
    public int id;
    public string InspectionContent;
    public string CorrectState;
    public string emergency;
    public string union;
    public string keyPoint;

}
[Serializable]
public class ValveNameplate
{
    public int id;
    public string valveNameplateValue;
    public string valveBriefIntroduction;
}
[Serializable]
public class ValveMaintenanceRecord
{
    public int id;
    public string project;
    public string workconditions;
    public string conclusion;
    public string data;

}

GZValveLoadJson.cs

using System;
using LitJson;
using System.Text;
using System.IO;
using UnityEngine;
public class GZValveLoadJson : MonoBehaviour {
    public static GZValveLoadJson GZValveLoadJsonInstance;
    GZGameStatus GZGameStatusRecieve;

    public bool IsLoadLocalDataSuccess { get; private set; }

    private void Awake()
    {
        GZValveLoadJsonInstance = this;
        //GZGameGlobalData.CurrentLoadDataPath = Application.streamingAssetsPath + "/";
       // GZGameGlobalData.CurrentLoadDataPath = Application.persistentDataPath + "/";
        GZGameGlobalData.CurrentLoadDataPath =  "/sdcard/AGZData/";


    }
    // Use this for initialization
    void Start()
    {
        //Debug.LogError(GZGameGlobalData.CurrentLoadDataPath);
    }

    // Update is called once per frame
    void Update()
    {

    }
    public GZValveGameStatus LoadTKJsonDataFromFile(string JsonFileName)
    {
        //Debug.LogError(GZGameGlobalData.CurrentLoadDataPath+JsonFileName);

        if (!File.Exists(GZGameGlobalData.CurrentLoadDataPath + JsonFileName))
        {
            IsLoadLocalDataSuccess = false;
            //TKDataHandle.TKDataHandleInstance.showText.text = "目录不存在";
            Debug.LogError("目录不存在");

            return null;
        }
        else
        {
            FileStream fs = new FileStream(GZGameGlobalData.CurrentLoadDataPath + JsonFileName, FileMode.Open);

            StreamReader sr = new StreamReader(fs);
            if (sr == null)
            {
                IsLoadLocalDataSuccess = false;
                //TKDataHandle.TKDataHandleInstance.showText.text = "文件不存在";
                Debug.LogError("文件不存在");

                return null;
            }
            else
            {
                string jsonData = sr.ReadToEnd();
                //Debug.LogError(jsonData);
                if (jsonData.Length > 0)
                {
                    //return JsonUtility.FromJson<TKGameStatus>(jsonData);
                    //TKDataHandle.TKDataHandleInstance.showText.text = "加载成功";
                    Debug.Log("加载成功");
                    IsLoadLocalDataSuccess = true;
                    return JsonMapper.ToObject<GZValveGameStatus>(jsonData);
                }
                sr.Close();
            }
            if (fs != null)
            {
                //Debug.LogError("fs.Close");

                fs.Close();
            }
        }
        return null;
    }
}

GZValveDataHandle.cs

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class GZValveDataHandle : MonoBehaviour {
    public static GZValveDataHandle GZValveDataHandleInstance;
    public GZValveGameStatus GZGameStatusRef;
    public List<ValveInformations> CurrentValveInformationsList;
    public Dictionary<string, ValveInformations> CurrentValveIDInformationDic;

    private void Awake()
    {
        GZValveDataHandleInstance = this;

    }
    // Use this for initialization
    void Start()
    {
        CurrentValveIDInformationDic = new Dictionary<string, ValveInformations>();
        //Invoke("OnLoadValveData", 3);
        onl oadValveData();

    }
    /// <summary>
    /// 加载处理阀门数据
    /// </summary>
    private void onl oadValveData()
    {
        GZGameStatusRef = GZValveLoadJson.GZValveLoadJsonInstance.LoadTKJsonDataFromFile("GZValvelinfo.json");
        Debug.Log(GZGameStatusRef.valveInformations[0].valveName);
        if (GZGameStatusRef != null)
        {
            foreach (var item in GZGameStatusRef.valveInformations)
            {
                CurrentValveInformationsList.Add(item);
                if (!CurrentValveIDInformationDic.ContainsKey(item.valveID))
                {
                    CurrentValveIDInformationDic.Add(item.valveID, item);
                }
            }
        }
    }
    /// <summary>
    /// 通过ID得到对应阀门的信息
    /// </summary>
    /// <param name="valveID"></param>
    /// <returns></returns>
    public ValveInformations OnGetValveInformationForID(string valveID)
    {
        if (CurrentValveIDInformationDic != null)
        {
            return CurrentValveIDInformationDic[valveID];
        }
        return null;
    }
    // Update is called once per frame
    void Update()
    {

    }
}

GZValvelinfo.json

{
 "valveInformations":
  [
    {
      "id":0,
      "valveID":"XV2703",
      "valveName":"电动球阀",
      "personInCharge":"徐奇鹏",
      "valveInspectionStandard":
       [
            {
              "id":0,
              "InspectionContent":"巡检内容:阀门的外漏情况(含放空阀、注脂咀、排污咀)",
              "CorrectState":"正确状态:无外漏、无漏油",
              "emergency":"0",
              "union":"1",
              "keyPoint":"1"
            },  
           {
            "id":1,
            "InspectionContent":"巡检内容:开关状态",
            "CorrectState":"正确状态:5601#、5602#、5701#、5702#、5801#、5802#、5901#、5902#与计量撬运行备用情况一致,运行时为开,备用时为关;5603#、5604#、5605#、5606#、5703#、5704#、5705#、5706#、5803#、5804#、5805#、5806#、5903#、5904#、5905#、5906#为常关",
             "emergency":"0",
              "union":"1",
              "keyPoint":"0"
           }
       ],
      "valveNameplate":
       [
        {
          "id":0,
          "valveNameplateValue":"型号:GFWTB22DR-600Lb BW,序列号:120531D-06026,口径:24*'20',压力等级:600LB BW,阀体:LF2  DIB-1 GB/T19672,位号:,公称扭矩:19294N.m,阀杆:4140+ENP,结构长度:1549mm,10.2Mpa在-46℃,9.0Mpa在150℃,球体:LF2+ENP,联络端:ASME,B31.8,阀座:LF2+ENP+VITONAED,制作日期:2013.04,成都成高阀门有限公司",
          "valveBriefIntroduction":"功能:过滤分离器GF202出口阀,连接方式:焊接,附属设施:TEFULONG,序列号:A80025392588,接线图号:3000-000-06,执行器型号:型号:IK25/36R 底座:+ZJ8-240 轴套:BT4  转速:36rpm,最大力矩:300Nm ,防护等级:FLP/IP68,润滑油:L-CKE/P150,电机功率:2.05Kw 15min,电压:380V-3-50 ,电机额定电流:5.60Amp,指示触点: Amps:5  Vac:250  Vdc:30 ,重量:52Kg,生产年份:2019-08-21"
        }         
       ],
       "valveMaintenanceRecord":
       [
            {
              "id":0,
              "project":"月度维护、保养",
              "workconditions":"检漏液检查各密封点有无外漏、测量基础墩有无沉降、目视检查阀门外观是否良好",
              "conclusion":"无外漏、基础墩未沉降、外观良好",
              "data":"2020年1月20"
            },  
          {
              "id":1,
              "project":"月度维护、保养",
              "workconditions":"检漏液检查各密封点有无外漏、测量基础墩有无沉降、目视检查阀门外观是否良好",
              "conclusion":"无外漏、基础墩未沉降、外观良好",
              "data":"2020年2月20"
            },  
            {
              "id":2,
              "project":"月度维护、保养",
              "workconditions":"检漏液检查各密封点有无外漏、测量基础墩有无沉降、目视检查阀门外观是否良好",
              "conclusion":"无外漏、基础墩未沉降、外观良好",
              "data":"2020年3月20"
            },  
            {
              "id":3,
              "project":"机械设备春季维护保养",
              "workconditions":"对齿轮油、主控制板液晶显示屏检查,对执行机构齿轮箱进行维护保养,对阀门排污,内漏测试,并开关动作",
              "conclusion":"齿轮油、显示屏完好,齿轮箱润滑脂完好,无积水,阀门无内漏,排污量为0,开关灵活",
              "data":"2020年3月23"
            },  
            {
              "id":4,
              "project":"月度维护、保养",
              "workconditions":"检漏液检查各密封点有无外漏、测量基础墩有无沉降、目视检查阀门外观是否良好",
              "conclusion":"无外漏、基础墩未沉降、外观良好",
              "data":"2020年4月20"
            },  
            {
              "id":5,
              "project":"月度维护、保养",
              "workconditions":"检漏液检查各密封点有无外漏、测量基础墩有无沉降、目视检查阀门外观是否良好",
              "conclusion":"无外漏、基础墩未沉降、外观良好",
              "data":"2020年5月20"
            },  
            {
              "id":6,
              "project":"月度维护、保养",
              "workconditions":"检漏液检查各密封点有无外漏、测量基础墩有无沉降、目视检查阀门外观是否良好",
              "conclusion":"无外漏、基础墩未沉降、外观良好",
              "data":"2020年6月20"
            },  
            {
              "id":7,
              "project":"月度维护、保养",
              "workconditions":"检漏液检查各密封点有无外漏、测量基础墩有无沉降、目视检查阀门外观是否良好",
              "conclusion":"无外漏、基础墩未沉降、外观良好",
              "data":"2020年7月20"
            },  
            {
              "id":8,
              "project":"月度维护、保养",
              "workconditions":"检漏液检查各密封点有无外漏、测量基础墩有无沉降、目视检查阀门外观是否良好",
              "conclusion":"无外漏、基础墩未沉降、外观良好",
              "data":"2020年8月20"
            },  
            {
              "id":9,
              "project":"月度维护、保养",
              "workconditions":"检漏液检查各密封点有无外漏、测量基础墩有无沉降、目视检查阀门外观是否良好",
              "conclusion":"无外漏、基础墩未沉降、外观良好",
              "data":"2020年9月20"
            }
       ]
    },
     {
      "id":1,
      "valveID":"XV2710",
      "valveName":"电动球阀",
      "personInCharge":"徐奇鹏",
      "valveInspectionStandard":
       [
            {
              "id":0,
              "InspectionContent":"巡检内容:阀门的外漏情况(含放空阀、注脂咀、排污咀)",
              "CorrectState":"正确状态:无外漏、无漏油",
              "emergency":"0",
              "union":"1",
              "keyPoint":"1"
            },  
           {
            "id":1,
            "InspectionContent":"巡检内容:开关状态",
            "CorrectState":"正确状态:5601#、5602#、5701#、5702#、5801#、5802#、5901#、5902#与计量撬运行备用情况一致,运行时为开,备用时为关;5603#、5604#、5605#、5606#、5703#、5704#、5705#、5706#、5803#、5804#、5805#、5806#、5903#、5904#、5905#、5906#为常关",
             "emergency":"0",
              "union":"1",
              "keyPoint":"0"
           }
       ],
      "valveNameplate":
       [
        {
          "id":0,
          "valveNameplateValue":"型号:GFWTB22DR-600Lb BW ,序列号:120531D-06026,口径:24'*20',压力等级:600LB BW,阀体:LF2  DIB-1 GB/T19672,位号:  公称扭矩:19294N.m  , 阀杆:4140+ENP ,结构长度:1549mm   ,10.2Mpa在-46℃ ,  9.0Mpa在150℃,球体:LF2+ENP  ,  联络端:ASME B31.8,阀座:LF2+ENP+VITONAED ,制作日期:2013.04,成都成高阀门有限公司",
          "valveBriefIntroduction":"功能:过滤分离器GF206进气阀,连接方式:焊接,附属设施:电动头rotork,Serial no:CH09360707   ,  Wiring diagram:3000-000-08,Actuator type:size:IQ20 base:F14 coupling:B4,Speed:48rpm  ,Torque:203Nm , Enclosure:FLP/IP68 , Lubrication:SAE80EP ,   Motor rating:0.64Kw 15min  , Motor supply:380-3-50  ,  Nominal motor current:1.80Amp,Indication contacts: Amps:5  Vac:120  Vdc:30  ,  Unit weight:52Kg  , Year of manufacture:2012.10 ,阀体,size:24'*20'  , pressure:600LB  BODY:LF2,HEAT NO:12E733    CAP:LF2/LF6CL2 , HEAT NO:12E733/12"
        }         
       ],
       "valveMaintenanceRecord":
       [
            {
              "id":0,
              "project":"月度维护、保养",
              "workconditions":"检漏液检查各密封点有无外漏、测量基础墩有无沉降、目视检查阀门外观是否良好",
              "conclusion":"无外漏、基础墩未沉降、外观良好",
              "data":"2020年1月20"
            },  
          {
              "id":1,
              "project":"月度维护、保养",
              "workconditions":"检漏液检查各密封点有无外漏、测量基础墩有无沉降、目视检查阀门外观是否良好",
              "conclusion":"无外漏、基础墩未沉降、外观良好",
              "data":"2020年2月20"
            },  
            {
              "id":2,
              "project":"月度维护、保养",
              "workconditions":"对球阀进行排污,内漏测试,对齿轮油、主控制板液晶显示屏检查,进行动作开关",
              "conclusion":"阀门存在内漏,调整关限位后恢复正常,排污量为0,齿轮油、显示屏完好,开关灵活",
              "data":"2020年3月25"
            },  
            {
              "id":3,
              "project":"机械设备春季维护保养",
              "workconditions":"检漏液检查各密封点有无外漏、测量基础墩有无沉降、目视检查阀门外观是否良好",
              "conclusion":"无外漏、基础墩未沉降、外观良好",
              "data":"2020年3月20"
            },  
            {
              "id":4,
              "project":"月度维护、保养",
              "workconditions":"检漏液检查各密封点有无外漏、测量基础墩有无沉降、目视检查阀门外观是否良好",
              "conclusion":"无外漏、基础墩未沉降、外观良好",
              "data":"2020年4月20"
            },  
            {
              "id":5,
              "project":"月度维护、保养",
              "workconditions":"检漏液检查各密封点有无外漏、测量基础墩有无沉降、目视检查阀门外观是否良好",
              "conclusion":"无外漏、基础墩未沉降、外观良好",
              "data":"2020年5月20"
            },  
            {
              "id":6,
              "project":"月度维护、保养",
              "workconditions":"检漏液检查各密封点有无外漏、测量基础墩有无沉降、目视检查阀门外观是否良好",
              "conclusion":"无外漏、基础墩未沉降、外观良好",
              "data":"2020年6月20"
            },  
            {
              "id":7,
              "project":"月度维护、保养",
              "workconditions":"检漏液检查各密封点有无外漏、测量基础墩有无沉降、目视检查阀门外观是否良好",
              "conclusion":"无外漏、基础墩未沉降、外观良好",
              "data":"2020年7月20"
            },  
            {
              "id":8,
              "project":"月度维护、保养",
              "workconditions":"检漏液检查各密封点有无外漏、测量基础墩有无沉降、目视检查阀门外观是否良好",
              "conclusion":"无外漏、基础墩未沉降、外观良好",
              "data":"2020年8月20"
            },  
            {
              "id":9,
              "project":"月度维护、保养",
              "workconditions":"检漏液检查各密封点有无外漏、测量基础墩有无沉降、目视检查阀门外观是否良好",
              "conclusion":"无外漏、基础墩未沉降、外观良好",
              "data":"2020年9月20"
            }
       ]
    },
     {
      "id":2,
      "valveID":"XV6701",
      "valveName":"电动调节阀",
      "personInCharge":"徐奇鹏",
      "valveInspectionStandard":
       [
            {
              "id":0,
              "InspectionContent":"巡检内容:阀门的外漏情况(含放空阀、注脂咀、排污咀)",
              "CorrectState":"正确状态:无外漏、无漏油",
              "emergency":"0",
              "union":"1",
              "keyPoint":"1"
            },  
           {
            "id":1,
            "InspectionContent":"巡检内容:开关状态",
            "CorrectState":"正确状态:5601#、5602#、5701#、5702#、5801#、5802#、5901#、5902#与计量撬运行备用情况一致,运行时为开,备用时为关;5603#、5604#、5605#、5606#、5703#、5704#、5705#、5706#、5803#、5804#、5805#、5806#、5903#、5904#、5905#、5906#为常关",
             "emergency":"0",
              "union":"1",
              "keyPoint":"0"
           }
       ],
      "valveNameplate":
       [
        {
          "id":0,
          "valveNameplateValue":"产品型号:FCV-A800 , 产品编号号:T1909155JF,公称尺寸:DN600 , 工作温度:-46~60℃  ,  公称压力:CLASS600RF,位号:6701  ,  阀体材料:A352LCC ,  阀内材料:不锈钢,流量系数:CV=5500  ,  流量特性:等百分比 , 最大压差:10.0Mpa ,  额定行程:240mm,执行标准:IEC60534  , 产品重量:3398KG  ,产品序号:A8240406362-1639  出厂日期:2019.09,天津贝特尔流体控制阀门有限公司  设备流向:广州压气站",
          "valveBriefIntroduction":"功能:,连接方式:焊接,附属设施:电动头rotork,产品型号:M8440d-A   ,  表号:19F14224,接线图号:ME0.361.009F   , 力矩/推力:450Nm  ,   行程/速度:36rpm,防护等级:IP68 , 润滑油:Omala S2G320  ,  电机功率:3KW  ,额定电流:7A ,  电源电压:380V3PH 50HZ , 位号:6701,触电容量:Amps:5 vac:250 vdc:30 , 环境温度:-25℃/+70℃ , 重量:70Kg,生产日期:2019.09  , 防爆等级:ExdllBT4 Gb ,  连接:F16 , 证书号:320151346X , 重庆川仪自动化股份有限公司执行器公司"
        }         
       ],
       "valveMaintenanceRecord":
       [
            {
              "id":0,
              "project":"月度维护、保养",
              "workconditions":"检漏液检查各密封点有无外漏、目视检查阀门外观是否良好",
              "conclusion":"无外漏、外观良好",
              "data":"2020年1月20"
            },  
          {
              "id":1,
              "project":"月度维护、保养",
              "workconditions":"检漏液检查各密封点有无外漏、目视检查阀门外观是否良好",
              "conclusion":"无外漏、外观良好",
              "data":"2020年2月20"
            },  
            {
              "id":2,
              "project":"季度维护、保养",
              "workconditions":"检漏液检查各密封点有无外漏、目视检查阀门外观是否良好",
              "conclusion":"无外漏、外观良好",
              "data":"2020年3月20"
            },  
            {
              "id":3,
              "project":"月度维护、保养",
              "workconditions":"检漏液检查各密封点有无外漏、目视检查阀门外观是否良好",
              "conclusion":"无外漏、外观良好",
              "data":"2020年4月20"
            },  
            {
              "id":4,
              "project":"季度维护、保养",
              "workconditions":"检漏液检查各密封点有无外漏、目视检查阀门外观是否良好",
              "conclusion":"无外漏、外观良好",
              "data":"2020年5月20"
            },  
            {
              "id":5,
              "project":"月度维护、保养",
              "workconditions":"检漏液检查各密封点有无外漏、目视检查阀门外观是否良好",
              "conclusion":"无外漏、外观良好",
              "data":"2020年6月20"
            },  
            {
              "id":6,
              "project":"季度维护、保养",
              "workconditions":"检漏液检查各密封点有无外漏、目视检查阀门外观是否良好",
              "conclusion":"无外漏、外观良好",
              "data":"2020年7月20"
            },  
            {
              "id":7,
              "project":"月度维护、保养",
              "workconditions":"检漏液检查各密封点有无外漏、目视检查阀门外观是否良好",
              "conclusion":"无外漏、外观良好",
              "data":"2020年8月20"
            },  
            {
              "id":8,
              "project":"季度维护、保养",
              "workconditions":"检漏液检查各密封点有无外漏、目视检查阀门外观是否良好",
              "conclusion":"无外漏、外观良好",
              "data":"2020年9月20"
            }
       ]
    },
     {
      "id":3,
      "valveID":"GF206",
      "valveName":"过滤分离器",
      "personInCharge":"徐奇鹏",
      "valveInspectionStandard":
       [
            {
              "id":0,
              "InspectionContent":"巡检内容:设备本体及附属桁架外观检测",
              "CorrectState":"正确状态:本体表面,应清洁、无锈蚀、无掉漆、无裂纹、无油污、无漏气;附属桁架表面应清洁、无锈蚀、无掉漆、无油污;设备铭牌清晰完整,设备编号标识清晰完好,设备运行标识正确(运行/备用/检修);安全使用标识牌、使用登记证粘贴正确",
              "emergency":"1",
              "union":"1",
              "keyPoint":"0"
            },  
           {
            "id":1,
            "InspectionContent":"巡检内容:差压变送器是否有外漏气",
            "CorrectState":"正确状态:无泄漏",
             "emergency":"1",
              "union":"1",
              "keyPoint":"1"
           },
           {
            "id":2,
            "InspectionContent":"巡检内容:差压",
            "CorrectState":"正确状态:过滤分离器差压小于0.1MPa",
             "emergency":"0",
              "union":"1",
              "keyPoint":"0"
           },
           {
            "id":3,
            "InspectionContent":"巡检内容:基础",
            "CorrectState":"正确状态:无破损,无沉降",
             "emergency":"0",
              "union":"1",
              "keyPoint":"0"
           }
       ],
      "valveNameplate":
       [
        {
          "id":0,
          "valveNameplateValue":"",
          "valveBriefIntroduction":"连接方式:法兰连接,产品型号:GF625-10.5/1200-52CC1214  ,压力容器类别:Ⅲ类,产品编号:Y2019-71 ,耐压试验压力:15.0MPa ,设计压力:10.5MPa,最高允许工作压力:  ,设计温度:-20/60℃  ,容器自重:15850Kg ,工作介质:天然气 H2S分压 0.0003MPa,容积:4.60m³,安装地点:广州压气站,设备位号:,主体材料:Q345R,制造许可级别:A1、A2,制造日期:2019.9,产品标准:GB/T150-2011,制造许可证编:TS2210008-2020,筒体外径:1200*44*5730mm,设备代码:213010008201900047,使用登记证编号:,中油管道机械制造有限责任公司"
        }         
       ],
       "valveMaintenanceRecord":
       [
            {
              "id":0,
              "project":"月度维护、保养",
              "workconditions":"检查紧固件是否齐全、是否松动;测量基础有无沉降、倾斜、开裂;检查与其相关的管件是否完好;检查安全接地线是否连接紧固;检查其外观是否良好;检查液位是否正常",
              "conclusion":"紧固件齐全无松动;基础未沉降、倾斜、开裂;无锈蚀;相关管件完好;安全接地线连接紧固;外观良好无锈蚀;液位正常",
              "data":"2020年1月20"
            },  
          {
              "id":1,
              "project":"月度维护、保养",
              "workconditions":"检查紧固件是否齐全、是否松动;测量基础有无沉降、倾斜、开裂;检查与其相关的管件是否完好;检查安全接地线是否连接紧固;检查其外观是否良好;检查液位是否正常",
              "conclusion":"紧固件齐全无松动;基础未沉降、倾斜、开裂;无锈蚀;相关管件完好;安全接地线连接紧固;外观良好无锈蚀;液位正常",
              "data":"2020年2月20"
            },  
            {
              "id":2,
              "project":"压力容器年度检查",
              "workconditions":"检查紧固件是否齐全、是否松动;测量基础有无沉降、倾斜、开裂;检查与其相关的管件是否完好;检查安全接地线是否连接紧固;检查其外观是否良好;检查液位是否正常",
              "conclusion":"紧固件齐全无松动;基础未沉降、倾斜、开裂;无锈蚀;相关管件完好;安全接地线连接紧固;外观良好无锈蚀;液位正常",
              "data":"2020年3月20"
            },  
            {
              "id":3,
              "project":"机械设备春季维护保养",
              "workconditions":"检查其外观、焊缝是否完好,放空后打开快开盲板检测滤芯是否完好,对快开盲板进行维护保养,升压后检查盲板密封圈有无泄漏",
              "conclusion":"无外漏;外观良好无锈蚀,更换69根滤芯,清理积液腔内粉尘160公斤,更换盲板密封圈",
              "data":"2020年3月27"
            },  
            {
              "id":4,
              "project":"压力容器年度检查",
              "workconditions":"河北华北石油特种设备检验所对特种设备的安全管理、运行情况、安全附件进行年度检查",
              "conclusion":"无外漏;外观良好无锈蚀",
              "data":"2020年3月31"
            },  
            {
              "id":5,
              "project":"月度维护、保养",
              "workconditions":"检查紧固件是否齐全、是否松动;测量基础有无沉降、倾斜、开裂;检查与其相关的管件是否完好;检查安全接地线是否连接紧固;检查其外观是否良好;检查液位是否正常",
              "conclusion":"紧固件齐全无松动;基础未沉降、倾斜、开裂;无锈蚀;相关管件完好;安全接地线连接紧固;外观良好无锈蚀;液位正常",
              "data":"2020年4月20"
            },  
            {
              "id":6,
              "project":"月度维护、保养",
              "workconditions":"检查紧固件是否齐全、是否松动;测量基础有无沉降、倾斜、开裂;检查与其相关的管件是否完好;检查安全接地线是否连接紧固;检查其外观是否良好;检查液位是否正常",
              "conclusion":"紧固件齐全无松动;基础未沉降、倾斜、开裂;无锈蚀;相关管件完好;安全接地线连接紧固;外观良好无锈蚀;液位正常",
              "data":"2020年5月20"
            },  
            {
              "id":7,
              "project":"月度维护、保养",
              "workconditions":"检查紧固件是否齐全、是否松动;测量基础有无沉降、倾斜、开裂;检查与其相关的管件是否完好;检查安全接地线是否连接紧固;检查其外观是否良好;检查液位是否正常",
              "conclusion":"紧固件齐全无松动;基础未沉降、倾斜、开裂;无锈蚀;相关管件完好;安全接地线连接紧固;外观良好无锈蚀;液位正常",
              "data":"2020年6月20"
            },  
            {
              "id":8,
              "project":"月度维护、保养",
              "workconditions":"检查紧固件是否齐全、是否松动;测量基础有无沉降、倾斜、开裂;检查与其相关的管件是否完好;检查安全接地线是否连接紧固;检查其外观是否良好;检查液位是否正常",
              "conclusion":"紧固件齐全无松动;基础未沉降、倾斜、开裂;无锈蚀;相关管件完好;安全接地线连接紧固;外观良好无锈蚀;液位正常",
              "data":"2020年7月20"
            },  
            {
              "id":9,
              "project":"月度维护、保养",
              "workconditions":"检查紧固件是否齐全、是否松动;测量基础有无沉降、倾斜、开裂;检查与其相关的管件是否完好;检查安全接地线是否连接紧固;检查其外观是否良好;检查液位是否正常",
              "conclusion":"紧固件齐全无松动;基础未沉降、倾斜、开裂;无锈蚀;相关管件完好;安全接地线连接紧固;外观良好无锈蚀;液位正常",
              "data":"2020年8月20"
            },
            {
              "id":10,
              "project":"月度维护、保养",
              "workconditions":"检查紧固件是否齐全、是否松动;测量基础有无沉降、倾斜、开裂;检查与其相关的管件是否完好;检查安全接地线是否连接紧固;检查其外观是否良好;检查液位是否正常",
              "conclusion":"紧固件齐全无松动;基础未沉降、倾斜、开裂;无锈蚀;相关管件完好;安全接地线连接紧固;外观良好无锈蚀;液位正常",
              "data":"2020年9月20"
            }
       ]
    },
     {
      "id":4,
      "valveID":"GF202",
      "valveName":"过滤分离器",
      "personInCharge":"徐奇鹏",
      "valveInspectionStandard":
       [
            {
              "id":0,
              "InspectionContent":"巡检内容:设备本体及附属桁架外观检测",
              "CorrectState":"正确状态:本体表面,应清洁、无锈蚀、无掉漆、无裂纹、无油污、无漏气;附属桁架表面应清洁、无锈蚀、无掉漆、无油污;设备铭牌清晰完整,设备编号标识清晰完好,设备运行标识正确(运行/备用/检修);安全使用标识牌、使用登记证粘贴正确",
              "emergency":"1",
              "union":"1",
              "keyPoint":"0"
            },  
           {
            "id":1,
            "InspectionContent":"巡检内容:差压变送器是否有外漏气",
            "CorrectState":"正确状态:无泄漏",
             "emergency":"1",
              "union":"1",
              "keyPoint":"1"
           },
           {
            "id":2,
            "InspectionContent":"巡检内容:差压",
            "CorrectState":"正确状态:过滤分离器差压小于0.1MPa",
             "emergency":"0",
              "union":"1",
              "keyPoint":"0"
           },
           {
            "id":3,
            "InspectionContent":"巡检内容:基础",
            "CorrectState":"正确状态:无破损,无沉降",
             "emergency":"0",
              "union":"1",
              "keyPoint":"0"
           }
       ],
      "valveNameplate":
       [
        {
          "id":0,
          "valveNameplateValue":"",
          "valveBriefIntroduction":"连接方式:法兰连接,产品型号:GF625-10.5/1200-52CC1214  ,  压力容器类别:Ⅲ类,产品编号:Y2019-71   , 耐压试验压力:15.0MPa ,设计压力:10.5MPa ,  最高允许工作压力: ,设计,温度:-20/60℃ ,容器自重:15850Kg ,工作介质:天然气 H2S分压 0.0003MPa,容积:4.60m³  , 安装地点:广州压气站 ,设备位号:,主体材料:Q345R,制造许可级别:A1、A2 , 制造日期:2019.9,产品标准:GB/T150-2011  , 制造许可证编号:TS2210008-2020 ,筒体外径:1200*44*5730mm,设备代码:213010008201900043,使用登记证编号:,中油管道机械制造有限责任公司"
        }         
       ],
       "valveMaintenanceRecord":
       [
            {
              "id":0,
              "project":"月度维护、保养",
              "workconditions":"检查紧固件是否齐全、是否松动;测量基础有无沉降、倾斜、开裂;检查与其相关的管件是否完好;检查安全接地线是否连接紧固;检查其外观是否良好;检查液位是否正常",
              "conclusion":"紧固件齐全无松动;基础未沉降、倾斜、开裂;无锈蚀;相关管件完好;安全接地线连接紧固;外观良好无锈蚀;液位正常",
              "data":"2020年1月20"
            },  
          {
              "id":1,
              "project":"月度维护、保养",
              "workconditions":"检查紧固件是否齐全、是否松动;测量基础有无沉降、倾斜、开裂;检查与其相关的管件是否完好;检查安全接地线是否连接紧固;检查其外观是否良好;检查液位是否正常",
              "conclusion":"紧固件齐全无松动;基础未沉降、倾斜、开裂;无锈蚀;相关管件完好;安全接地线连接紧固;外观良好无锈蚀;液位正常",
              "data":"2020年2月20"
            },  
            {
              "id":2,
              "project":"压力容器年度检查",
              "workconditions":"检查紧固件是否齐全、是否松动;测量基础有无沉降、倾斜、开裂;检查与其相关的管件是否完好;检查安全接地线是否连接紧固;检查其外观是否良好;检查液位是否正常",
              "conclusion":"紧固件齐全无松动;基础未沉降、倾斜、开裂;无锈蚀;相关管件完好;安全接地线连接紧固;外观良好无锈蚀;液位正常",
              "data":"2020年3月20"
            },  
            {
              "id":3,
              "project":"机械设备春季维护保养",
              "workconditions":"河北华北石油特种设备检验所对特种设备的安全管理、运行情况、安全附件进行年度检查",
              "conclusion":"无外漏;外观良好无锈蚀",
              "data":"2020年3月31"
            },               
            {
              "id":5,
              "project":"月度维护、保养",
              "workconditions":"检查紧固件是否齐全、是否松动;测量基础有无沉降、倾斜、开裂;检查与其相关的管件是否完好;检查安全接地线是否连接紧固;检查其外观是否良好;检查液位是否正常",
              "conclusion":"紧固件齐全无松动;基础未沉降、倾斜、开裂;无锈蚀;相关管件完好;安全接地线连接紧固;外观良好无锈蚀;液位正常",
              "data":"2020年4月20"
            },  
            {
              "id":6,
              "project":"月度维护、保养",
              "workconditions":"检查紧固件是否齐全、是否松动;测量基础有无沉降、倾斜、开裂;检查与其相关的管件是否完好;检查安全接地线是否连接紧固;检查其外观是否良好;检查液位是否正常",
              "conclusion":"紧固件齐全无松动;基础未沉降、倾斜、开裂;无锈蚀;相关管件完好;安全接地线连接紧固;外观良好无锈蚀;液位正常",
              "data":"2020年5月20"
            },  
            {
              "id":7,
              "project":"月度维护、保养",
              "workconditions":"检查紧固件是否齐全、是否松动;测量基础有无沉降、倾斜、开裂;检查与其相关的管件是否完好;检查安全接地线是否连接紧固;检查其外观是否良好;检查液位是否正常",
              "conclusion":"紧固件齐全无松动;基础未沉降、倾斜、开裂;无锈蚀;相关管件完好;安全接地线连接紧固;外观良好无锈蚀;液位正常",
              "data":"2020年6月20"
            },  
            {
              "id":8,
              "project":"月度维护、保养",
              "workconditions":"检查紧固件是否齐全、是否松动;测量基础有无沉降、倾斜、开裂;检查与其相关的管件是否完好;检查安全接地线是否连接紧固;检查其外观是否良好;检查液位是否正常",
              "conclusion":"紧固件齐全无松动;基础未沉降、倾斜、开裂;无锈蚀;相关管件完好;安全接地线连接紧固;外观良好无锈蚀;液位正常",
              "data":"2020年7月20"
            },  
            {
              "id":9,
              "project":"月度维护、保养",
              "workconditions":"检查紧固件是否齐全、是否松动;测量基础有无沉降、倾斜、开裂;检查与其相关的管件是否完好;检查安全接地线是否连接紧固;检查其外观是否良好;检查液位是否正常",
              "conclusion":"紧固件齐全无松动;基础未沉降、倾斜、开裂;无锈蚀;相关管件完好;安全接地线连接紧固;外观良好无锈蚀;液位正常",
              "data":"2020年8月20"
            },
            {
              "id":10,
              "project":"月度维护、保养",
              "workconditions":"检查紧固件是否齐全、是否松动;测量基础有无沉降、倾斜、开裂;检查与其相关的管件是否完好;检查安全接地线是否连接紧固;检查其外观是否良好;检查液位是否正常",
              "conclusion":"紧固件齐全无松动;基础未沉降、倾斜、开裂;无锈蚀;相关管件完好;安全接地线连接紧固;外观良好无锈蚀;液位正常",
              "data":"2020年9月20"
            }
       ]
    },
     {
      "id":5,
      "valveID":"GF203",
      "valveName":"过滤分离器",
      "personInCharge":"徐奇鹏",
      "valveInspectionStandard":
       [
            {
              "id":0,
              "InspectionContent":"巡检内容:设备本体及附属桁架外观检测",
              "CorrectState":"正确状态:本体表面,应清洁、无锈蚀、无掉漆、无裂纹、无油污、无漏气;附属桁架表面应清洁、无锈蚀、无掉漆、无油污;设备铭牌清晰完整,设备编号标识清晰完好,设备运行标识正确(运行/备用/检修);安全使用标识牌、使用登记证粘贴正确",
              "emergency":"1",
              "union":"1",
              "keyPoint":"0"
            },  
           {
            "id":1,
            "InspectionContent":"巡检内容:差压变送器是否有外漏气",
            "CorrectState":"正确状态:无泄漏",
             "emergency":"1",
              "union":"1",
              "keyPoint":"1"
           },
           {
            "id":2,
            "InspectionContent":"巡检内容:差压",
            "CorrectState":"正确状态:过滤分离器差压小于0.1MPa",
             "emergency":"0",
              "union":"1",
              "keyPoint":"0"
           },
           {
            "id":3,
            "InspectionContent":"巡检内容:基础",
            "CorrectState":"正确状态:无破损,无沉降",
             "emergency":"0",
              "union":"1",
              "keyPoint":"0"
           }
       ],
      "valveNameplate":
       [
        {
          "id":0,
          "valveNameplateValue":"",
          "valveBriefIntroduction":"连接方式:法兰连接,产品型号:GF625-10.5/1200-52CC1214  ,  压力容器类别:Ⅲ类,产品编号:Y2019-71  ,  耐压试验压力:15.0MPa ,设计压力:10.5MPa , 最高允许工作压力:,设计温度:-20/60℃  , 容器自重:15850Kg ,  工作介质:天然气 H2S分压 0.0003MPa,容积:4.60m³  , 安装地点:广州压气站 , 设备位号:,主体材料:Q345R  ,  制造许可级别:A1、A2  , 制造日期:2019.9,产品标准:GB/T150-2011  , 制造许可证编号:TS2210008-2020 , 筒体外径:1200*44*5730mm,设备代码:213010008201900046  ,使用登记证编号:,中油管道机械制造有限责任公司"
        }         
       ],
       "valveMaintenanceRecord":
       [
            {
              "id":0,
              "project":"月度维护、保养",
              "workconditions":"检查紧固件是否齐全、是否松动;测量基础有无沉降、倾斜、开裂;检查与其相关的管件是否完好;检查安全接地线是否连接紧固;检查其外观是否良好;检查液位是否正常",
              "conclusion":"紧固件齐全无松动;基础未沉降、倾斜、开裂;无锈蚀;相关管件完好;安全接地线连接紧固;外观良好无锈蚀;液位正常",
              "data":"2020年1月20"
            },  
          {
              "id":1,
              "project":"月度维护、保养",
              "workconditions":"检查紧固件是否齐全、是否松动;测量基础有无沉降、倾斜、开裂;检查与其相关的管件是否完好;检查安全接地线是否连接紧固;检查其外观是否良好;检查液位是否正常",
              "conclusion":"紧固件齐全无松动;基础未沉降、倾斜、开裂;无锈蚀;相关管件完好;安全接地线连接紧固;外观良好无锈蚀;液位正常",
              "data":"2020年2月20"
            },  
            {
              "id":2,
              "project":"压力容器年度检查",
              "workconditions":"检查紧固件是否齐全、是否松动;测量基础有无沉降、倾斜、开裂;检查与其相关的管件是否完好;检查安全接地线是否连接紧固;检查其外观是否良好;检查液位是否正常",
              "conclusion":"紧固件齐全无松动;基础未沉降、倾斜、开裂;无锈蚀;相关管件完好;安全接地线连接紧固;外观良好无锈蚀;液位正常",
              "data":"2020年3月20"
            },  
            {
              "id":3,
              "project":"机械设备春季维护保养",
              "workconditions":"河北华北石油特种设备检验所对特种设备的安全管理、运行情况、安全附件进行年度检查",
              "conclusion":"无外漏;外观良好无锈蚀",
              "data":"2020年3月31"
            },               
            {
              "id":5,
              "project":"月度维护、保养",
              "workconditions":"检查紧固件是否齐全、是否松动;测量基础有无沉降、倾斜、开裂;检查与其相关的管件是否完好;检查安全接地线是否连接紧固;检查其外观是否良好;检查液位是否正常",
              "conclusion":"紧固件齐全无松动;基础未沉降、倾斜、开裂;无锈蚀;相关管件完好;安全接地线连接紧固;外观良好无锈蚀;液位正常",
              "data":"2020年4月20"
            },  
            {
              "id":6,
              "project":"月度维护、保养",
              "workconditions":"检查紧固件是否齐全、是否松动;测量基础有无沉降、倾斜、开裂;检查与其相关的管件是否完好;检查安全接地线是否连接紧固;检查其外观是否良好;检查液位是否正常",
              "conclusion":"紧固件齐全无松动;基础未沉降、倾斜、开裂;无锈蚀;相关管件完好;安全接地线连接紧固;外观良好无锈蚀;液位正常",
              "data":"2020年5月20"
            },  
            {
              "id":7,
              "project":"月度维护、保养",
              "workconditions":"检查紧固件是否齐全、是否松动;测量基础有无沉降、倾斜、开裂;检查与其相关的管件是否完好;检查安全接地线是否连接紧固;检查其外观是否良好;检查液位是否正常",
              "conclusion":"紧固件齐全无松动;基础未沉降、倾斜、开裂;无锈蚀;相关管件完好;安全接地线连接紧固;外观良好无锈蚀;液位正常",
              "data":"2020年6月20"
            },  
            {
              "id":8,
              "project":"月度维护、保养",
              "workconditions":"检查紧固件是否齐全、是否松动;测量基础有无沉降、倾斜、开裂;检查与其相关的管件是否完好;检查安全接地线是否连接紧固;检查其外观是否良好;检查液位是否正常",
              "conclusion":"紧固件齐全无松动;基础未沉降、倾斜、开裂;无锈蚀;相关管件完好;安全接地线连接紧固;外观良好无锈蚀;液位正常",
              "data":"2020年7月20"
            },  
            {
              "id":9,
              "project":"月度维护、保养",
              "workconditions":"检查紧固件是否齐全、是否松动;测量基础有无沉降、倾斜、开裂;检查与其相关的管件是否完好;检查安全接地线是否连接紧固;检查其外观是否良好;检查液位是否正常",
              "conclusion":"紧固件齐全无松动;基础未沉降、倾斜、开裂;无锈蚀;相关管件完好;安全接地线连接紧固;外观良好无锈蚀;液位正常",
              "data":"2020年8月20"
            },
            {
              "id":10,
              "project":"月度维护、保养",
              "workconditions":"检查紧固件是否齐全、是否松动;测量基础有无沉降、倾斜、开裂;检查与其相关的管件是否完好;检查安全接地线是否连接紧固;检查其外观是否良好;检查液位是否正常",
              "conclusion":"紧固件齐全无松动;基础未沉降、倾斜、开裂;无锈蚀;相关管件完好;安全接地线连接紧固;外观良好无锈蚀;液位正常",
              "data":"2020年9月20"
            }
       ]
    }

  ]
}

 

标签:外观,检查,是否,json,外漏,Unity,沉降,id,加载
来源: https://www.cnblogs.com/WalkingSnail/p/13962985.html