加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
Config.cs 12.46 KB
一键复制 编辑 原始数据 按行查看 历史
using System;
using System.Collections.Generic;
namespace GZPAssist
{
internal enum FengXianTypeEnum
{
老虎口危险点 = 0,
交叉作业风险 = 1,
工作间断转移风险 = 2,
其他补充安全措施 = 3
}
internal enum FengXianLevel
{
一级风险 = 0,
二级风险 = 1,
三级风险 = 2,
四级风险 = 3,
五级风险 = 4
}
[Serializable]
public class SingleRenwuGQJ
{
private string pName;
private List<string> pGQJ = new List<string>();
public string Name
{
get { return pName; }
set { pName = value; }
}
public List<string> GQJ
{
get { return pGQJ; }
set { pGQJ = value; }
}
public string GQJListString
{
get
{
string tmp = "";
for (int i = 0; i < pGQJ.Count; i++)
{
tmp = tmp + pGQJ[i] + "、";
}
if (tmp != "")
{ return tmp.Substring(0, tmp.Length - 1); }
else
{
return tmp;
}
}
}
}
[Serializable]
public class SingleFengXian
{
private string pFengXianDian = "";
private string pGuanKongCuoShi = "";
private string pBanZuFuzeRen = "";
private string pFengxianType = "";
public string FengXianDian
{
get { return pFengXianDian; }
set { pFengXianDian = value; }
}
public string GuanKongCuoShi
{
get { return pGuanKongCuoShi; }
set { pGuanKongCuoShi = value; }
}
public string BanZuFuzeRen
{
get { return pBanZuFuzeRen; }
set { pBanZuFuzeRen = value; }
}
public string FengxianType
{
get { return pFengxianType; }
set { pFengxianType = value; }
}
}
[Serializable]
internal class RenYuanInfo
{
private string pName;
private string pBanZu;
private int pBanZuID;
public string Name
{
get { return pName; }
set { pName = value; }
}
public string BanZu
{
get { return pBanZu; }
set { pBanZu = value; }
}
public int BanZuID
{
get { return pBanZuID; }
set { pBanZuID = value; }
}
}
[Serializable]
public class SingleGJZLD
{
private string pSheBei;
private string pZhiLiangDian;
public string SheBei
{
get { return pSheBei; }
set { pSheBei = value; }
}
public string ZhiLiangDian
{
get { return pZhiLiangDian; }
set { pZhiLiangDian = value; }
}
}
/// <summary>
/// 新版检修工序中,每个设备的不同工序及风险对应的类
/// RiskLevel:风险等级,0:低;1:中;2:高
/// </summary>
[Serializable]
public class SingleShebeiGongxuFengxian : SingleGJZLD
{
private string pGongXu;
private string pHouGuo;
private string pFangFanCuoShi;
private string pCombinSheBeiGongXu;
private string pRiskLevel; //
public string GongXu
{
get { return pGongXu; }
set { pGongXu = value; }
}
public string HouGuo
{
get { return pHouGuo; }
set { pHouGuo = value; }
}
public string FangFanCuoShi
{
get { return pFangFanCuoShi; }
set { pFangFanCuoShi = value; }
}
public string CombinSheBeiGongXu
{
get { return pCombinSheBeiGongXu; }
set { pCombinSheBeiGongXu = value; }
}
public string RiskLevel
{
get { return pRiskLevel; }
set { pRiskLevel = value; }
}
}
[Serializable]
internal class SingleSheBeiType
{
private string pShebeiType;
public List<SingleShebeiGongxuFengxian> GongXuList = new List<SingleShebeiGongxuFengxian>();
public string ShebeiType
{
get { return pShebeiType; }
set { pShebeiType = value; }
}
}
[Serializable]
internal class BasicGZPConfig_Class
{
public string FXKZK_ModName;
public string YQFK_ModName;
public string ECAC_ModName;
//工作票定位数据
public int GzpType_X = 0;
public int GzpType_Y = 0;
public int FuZeRen_X = 2;
public int FuZeRen_Y = 6;
public int ChengYuan_X = 4;
public int ChengYuan_Y = 1;
public int NeiRong_X = 8;
public int NeiRong_Y = 1;
public int ShuangChongMingCheng_X = 5;
public int ShuangChongMingCheng_Y = 11;
public int GongZuoPiaoHao_X = 1;
public int GongZuoPiaoHao_Y = 15;
public int BanZu_X = 2;
public int BanZu_Y = 11;
//风险控制卡标签
public string BM_FXKZK_BianHao;
public string BM_FXKZK_BianXie;
public string BM_FXKZK_ShenPi;
public string BM_FXKZK_ZuoYeMingCheng;
public string BM_FXKZK_GongZuoPiaoHao;
public string BM_FXKZK_FuZeRen;
public string BM_FXKZK_BanZu;
public string BM_FXKZK_StartTime;
public string BM_FXKZK_StopTime;
//疫情防控措施卡
public string BM_YQFK_ZuoYeMingCheng;
public string BM_YQFK_StartTime;
public string BM_YQFK_StopTime;
public string BM_YQFK_BianHao;
//版面
public string BM_BM_StartTime;
public string BM_BM_StopTime;
//二次安措
public string BM_ECAC_BianDianZhan;
public string BM_ECAC_BianHao;
public string BM_ECAC_BianZhiRen;
public string BM_ECAC_ShenHeRen;
public string BM_ECAC_StartTime;
public string BM_ECAC_StopTime;
public string BM_ECAC_SheBeiMingCheng;
public string BM_ECAC_GongZuoNeiRong;
public List<SingleFengXian> AllFengXian = new List<SingleFengXian>();
public List<RenYuanInfo> RenYuanInfo = new List<RenYuanInfo>();
public RenYuanInfo GetRenyuanInfo(string name)
{
for (int i = 0; i < RenYuanInfo.Count; i++)
{
if (RenYuanInfo[i].Name == name)
{
return RenYuanInfo[i];
}
}
return null;
}
}
[Serializable]
internal class TDGZP_Config_Class : BasicGZPConfig_Class
{
public List<SingleGJZLD> AllGJZLD = new List<SingleGJZLD>();
public List<SingleSheBeiType> AllSheBeiType = new List<SingleSheBeiType>();
public List<SingleRenwuGQJ> AllGQJ = new List<SingleRenwuGQJ>();
public string SDCS_ModName;
public string JXFA_ModName;
public string First_XCKC_ModName;
public string Second_XCKC_ModName;
public string DWJD_ModName;
public string BM_ModName;
public string AQJD_ModName;
public string FYFA_MoreThanFive_ModName;
public string TWJLB_ModName;
public string BBZFXKZK_ModName;
public string AQJSJD_ModName;
public string SDCSShenPiDayAheadDefault;
public string SDCSShenPiDayAhead_Fourth;
public string SDCSShenPiDayAhead_Third;
public string SDCSShenPiDayAhead_ThirdAB;
public string SecondKanChaDayAheadDefault;
public string DefaultKanChaDanwei;
//三大措施标签
public string BM_SDCS_BiaoTi;
public string BM_SDCS_FuZeRen;
public string BM_SDCS_QianFaRen;
public string BM_SDCS_BianZhiDate;
public string BM_SDCS_RenYuan;
public string BM_SDCS_NeiRong;
public string BM_SDCS_StartTime;
public string BM_SDCS_StopTime;
public string BM_SDCS_CuoShi;
public string BM_SDCS_DiXian;
public string BM_SDCS_ZheLan;
public string BM_SDCS_DDBW;
public string BM_SDCS_JiShuCuoShi;
public string BM_SDCS_FengXianDian;
public string BM_SDCS_GongQiJu;
public string BM_SDCS_YJB_PiZhun;
public string BM_SDCS_YJB_ShenHe;
public string BM_SDCS_ZX_PiZhun;
public string BM_SDCS_ZX_ShenHe;
public string BM_SDCS_ZX_BianXie;
public string BM_SDCS_XieTiaoZuYuan;
//到位监督卡标签名称
public string BM_DWJD_BiaoTi;
//检修方案标签名称
public string BM_JXFA_BiaoTi;
public string BM_JXFA_BianDianZhan;
public string BM_JXFA_XiangMuMingCheng;
public string BM_JXFA_NeiRong;
public string BM_JXFA_StartTime;
public string BM_JXFA_StopTime;
public string BM_JXFA_FuZeRen;
public string BM_JXFA_JianHuRen;
public string BM_JXFA_ChengYuan;
public string BM_JXFA_TingDianFanWei;
public string BM_JXFA_CuoShi;
public string BM_JXFA_DiXian;
public string BM_JXFA_ZheLan;
public string BM_JXFA_FengXianFangFan;
public string BM_JXFA_GuanJianZhiLiangDian;
public string BM_JXFA_GongQiJu;
public string BM_JXFA_BianZhiDate;
public string BM_JXFA_YJB_PiZhun;
public string BM_JXFA_YJB_ShenHe;
public string BM_JXFA_ZX_PiZhun;
public string BM_JXFA_ZX_ShenHe;
public string BM_JXFA_ZX_BianXie;
//现场勘察标签名称
public string BM_XCKC_Danwei;
public string BM_XCKC_BanZu;
public string BM_XCKC_Bianhao;
public string BM_XCKC_FuZeRen;
public string BM_XCKC_KanChaRenYuan;
public string BM_XCKC_KanChaSheBei;
public string BM_XCKC_GongZuoRenWu;
public string BM_XCKC_TingDianFanWei;
public string BM_XCKC_TingDianCuoShi;
public string BM_XCKC_DuanLuQiAndDaoZha;
public string BM_XCKC_DiXian;
public string BM_XCKC_ZheLan;
public string BM_XCKC_DaiDianBuWei;
public string BM_XCKC_FengXianDian;
public string BM_XCKC_FangFanCuoShi;
public string BM_XCKC_jiLuRen;
public string BM_XCKC_StartTime;
public string BM_XCKC_StopTime;
//标准作业卡
public string BM_STD_SheBeiMingCheng;
public string BM_STD_BianZhi;
public string BM_STD_ShenHe;
public string BM_STD_StartTime;
public string BM_STD_StopTime;
public string BM_STD_BianHao;
public string BM_STD_DaiDianBuWei;
//每日安全交底签名页
public string BM_AQJD_BiaoTi;
public string BM_AQJD_FuZeRen;
public string BM_AQJD_PiaoHao;
public string BM_AQJD_Date;
//防疫方案
public string BM_FYFAA_BiaoTi;
public string BM_FYFAA_BianZhiDate;
public string BM_FYFAA_StartTime;
public string BM_FYFAA_StopTime;
public string BM_FYFAA_NeiRong;
public string BM_FYFAA_FuZeRen;
public string BM_FYFAA_DiDian;
public string BM_FYFAA_RenShu;
public string BM_FYFAA_FangYiZuZhang;
public string BM_FYFAA_FangYiFuZuZhang;
public string BM_FYFAA_FuZeRen_1;
public string BM_FYFAA_JiLuRenYuan;
public string BM_FYFAA_XiaoDuRenYuan;
public string BM_FYFAA_XiaoDuRenYuan_1;
public string BM_FYFAA_KouZhaoShuLiang;
//多班组作业风险控制卡标签
public string BM_BBZFXKZK_BianHao;
public string BM_BBZFXKZK_BianXie;
public string BM_BBZFXKZK_ShenPi;
public string BM_BBZFXKZK_ZuoYeMingCheng;
public string BM_BBZFXKZK_GongZuoPiaoHao;
public string BM_BBZFXKZK_FuZeRen;
public string BM_BBZFXKZK_BanZu;
public string BM_BBZFXKZK_StartTime;
public string BM_BBZFXKZK_StopTime;
//安全技术交底标签
public string BM_AQJSJD_BiaoTi;
public string BM_AQJSJD_BianDianZhan;
public string BM_AQJSJD_JiaoDiRen;
public string BM_AQJSJD_Date;
public string BM_AQJSJD_NeiRong;
public string BM_AQJSJD_TingDianFanWei;
public string BM_AQJSJD_DaiDianBuWei;
public string BM_AQJSJD_CuoShi;
public string BM_AQJSJD_DiXian;
public string BM_AQJSJD_ZheLan;
public string BM_AQJSJD_JiShuCuoShi;
public string BM_AQJSJD_FengXianFangFan;
}
[Serializable]
internal class BTDGZP_Config_Class : BasicGZPConfig_Class
{
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化